From e67f01bb08125eae47c42965367dc96624e5f146 Mon Sep 17 00:00:00 2001
From: Ugnich Anton
Date: Sun, 23 Feb 2014 12:11:58 +0700
Subject: isMobileRequest
---
src/java/com/juick/http/www/Discover.java | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
(limited to 'src/java/com/juick/http/www/Discover.java')
diff --git a/src/java/com/juick/http/www/Discover.java b/src/java/com/juick/http/www/Discover.java
index 1db264f7..1ba6992a 100644
--- a/src/java/com/juick/http/www/Discover.java
+++ b/src/java/com/juick/http/www/Discover.java
@@ -73,9 +73,11 @@ public class Discover {
canonical = "";
}
PageTemplates.pageHead(out, title, canonical);
- PageTemplates.pageNavigation(out, visitor, null);
- PageTemplates.pageHomeColumn(out, sql, visitor);
+ if (!Utils.isMobileRequest(request)) {
+ PageTemplates.pageNavigation(out, visitor, null);
+ PageTemplates.pageHomeColumn(out, sql, visitor);
+ }
out.println("");
@@ -90,7 +92,10 @@ public class Discover {
out.println("");
- PageTemplates.pageFooter(request, out, visitor, true);
+ if (!Utils.isMobileRequest(request)) {
+ PageTemplates.pageFooter(request, out, visitor, true);
+ }
+
PageTemplates.pageDialogTemplate(out);
PageTemplates.pageEnd(out);
} finally {
--
cgit v1.2.3