diff options
author | 2013-01-29 23:45:00 +0700 | |
---|---|---|
committer | 2013-01-29 23:45:00 +0700 | |
commit | cdbf949013fe140fed0e5ad79ad6111c97ea07ad (patch) | |
tree | f6ce3225d78eacca649fe219f0aded18f718d864 /src/java/com/juick/http/www/PageTemplates.java | |
parent | 6a6b574cd010f01b4d26907707a28e70d3e384c6 (diff) |
Sape optimization
Diffstat (limited to 'src/java/com/juick/http/www/PageTemplates.java')
-rw-r--r-- | src/java/com/juick/http/www/PageTemplates.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 5851a3ee..42fafaf7 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -52,7 +52,7 @@ public class PageTemplates { out.println("<html>"); out.println("<head>"); out.println(" <title>" + title + "</title>"); - out.println(" <link rel=\"stylesheet\" href=\"//static.juick.com/style3.2013010900.css\"/>"); + out.println(" <link rel=\"stylesheet\" href=\"//static.juick.com/style3.2013012601.css\"/>"); out.println(" <link rel=\"icon\" type=\"image/png\" href=\"//static.juick.com/favicon.png\"/>"); out.println(" <script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js\" defer=\"defer\"></script>"); out.println(" <script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js\" defer=\"defer\" async=\"async\"></script>"); @@ -60,7 +60,7 @@ public class PageTemplates { if (headers != null) { out.println(headers); } - out.println(" <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,user-scalable=no\">"); + out.println(" <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,user-scalable=no\"/>"); out.println("</head>"); out.println(); out.println("<body>"); @@ -183,7 +183,7 @@ public class PageTemplates { out.println("<div id=\"fwrapper\"><div id=\"footer\">"); out.println(" <div id=\"footer-right\"><a href=\"/help/ru/contacts\" rel=\"nofollow\">" + rb.getString("Contacts") + "</a> · <a href=\"/help/\" rel=\"nofollow\">" + rb.getString("Help") + "</a></div>"); out.print(" <div id=\"footer-left\">juick.com © 2008-2013"); - if (sapeon && sape != null && (visitor == null || visitor.UID == 1)) { + if (sapeon && sape != null && (visitor == null || visitor.UID == 1) && request.getQueryString() == null) { String links = sape.getPageLinks(request.getRequestURI(), request.getCookies()).render(); if (links != null && !links.isEmpty()) { out.print("<br/>" + rb.getString("Sponsored by") + ": " + links); @@ -191,6 +191,9 @@ public class PageTemplates { } out.println("</div>"); out.println("</div></div>"); + } + + public static void pageEnd(PrintWriter out) { out.println("</body></html>"); } |