From 804ef16a1df1ecd8a948cdc0894d82cba77e8f42 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Mon, 22 Dec 2014 17:28:47 +0700 Subject: + WIX advertising --- src/java/com/juick/http/www/Home.java | 2 +- src/java/com/juick/http/www/PageTemplates.java | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/java/com/juick/http/www/Home.java b/src/java/com/juick/http/www/Home.java index 8b4ec6a6..52012182 100644 --- a/src/java/com/juick/http/www/Home.java +++ b/src/java/com/juick/http/www/Home.java @@ -99,7 +99,7 @@ public class Home { } PageTemplates.pageHead(out, title, head); PageTemplates.pageNavigation(out, visitor, paramSearch); - PageTemplates.pageHomeColumn(out, sql, visitor); + PageTemplates.pageHomeColumn(out, sql, visitor, paramShow == null && paramBefore == 0 && paramSearch == null && visitor == null); out.println("
"); diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 686971e8..7d6bd1c8 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -139,12 +139,20 @@ public class PageTemplates { } public static void pageHomeColumn(PrintWriter out, Connection sql, com.juick.User visitor) { + pageHomeColumn(out, sql, visitor, false); + } + + public static void pageHomeColumn(PrintWriter out, Connection sql, com.juick.User visitor, boolean showAdv) { if (tagsHTML == null) { tagsHTML = PageTemplates.getPopularTags(sql, 80); } out.println("