From 3975b0ce5bdeb448e7b3049b2b30c67866ccb8f3 Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Thu, 6 Oct 2011 11:18:29 +0000 Subject: Corrected reference path error git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@852 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/sitemesh/standalone.jsp | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'pdf-as-web/src') diff --git a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp index 0e21dbf..4b1ab94 100644 --- a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp +++ b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp @@ -50,6 +50,11 @@ String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response); String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response); + /*if (serverUrl.contains("http")) { + serverUrl.replace("http","https"); + baseUrl.replace("http","https"); + }*/ + String requestLang = (String)request.getParameter("lang"); String language = ""; @@ -113,8 +118,24 @@ } } } + } + //Insert sitemap + Element breadcrumbsDiv = source.getElementById("breadcrumbs"); + if (breadcrumbsDiv!=null) { + String replaceString = ""; + if (language.equals("de")) { + replaceString = "
Sie sind hier: Startseite > PDF-Signatur > PDF-Signatur \n
"; + } + else { + replaceString = "
You are here: Start page > PDF-Signatures > PDF-Signature \n
"; + } + phpHeader = phpHeader.replace(breadcrumbsDiv, replaceString); + } + + + //Insert a hidden language fake link, that is shown when the change of language is disabled int positionToInsertLangLink = 0; source = new Source(phpHeader); @@ -141,6 +162,8 @@ phpHeader = firstPart+languagelink+secondPart; + + %> PDF Signature @@ -156,11 +179,11 @@ - - + + - + <%= phpHeader %>
-- cgit v1.2.3