Update of /var/cvs/contributions/didactor2/src/core/templates/cockpit
In directory james.mmbase.org:/tmp/cvs-serv29403
Modified Files:
footer.jspx
Log Message:
made better xhtml compatible
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/templates/cockpit
Index: footer.jspx
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/templates/cockpit/footer.jspx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- footer.jspx 22 Aug 2008 08:53:48 -0000 1.6
+++ footer.jspx 22 Aug 2008 09:02:27 -0000 1.7
@@ -2,6 +2,7 @@
type="application/xml"
postprocessor="none"
xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:di="http://www.didactor.nl/ditaglib_1.0"
xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
xmlns:jsp="http://java.sun.com/JSP/Page">
@@ -19,10 +20,9 @@
</mm:hasrank>
<di:getsetting component="core" setting="google_analytics">
<mm:isnotempty>
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
+ <script type="text/javascript"
+ src="${fn:startsWith(pageContext.request.requestURL,
'http://') ? 'http://www' : 'https://ssl'}.google-analytics.com/ga.js"
+ />
<script type="text/javascript">
var pageTracker = _gat._getTracker("${_}");
pageTracker._trackPageview();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs