From 84e5ac3a172e15f11b04203cf9e93c9d5c8174ed Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Tue, 1 Jan 2013 18:18:05 +0700 Subject: Yandex advertising --- src/java/com/juick/http/www/Blogs.java | 4 ++- src/java/com/juick/http/www/PageTemplates.java | 36 ++++++++++++++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) (limited to 'src/java/com/juick/http') diff --git a/src/java/com/juick/http/www/Blogs.java b/src/java/com/juick/http/www/Blogs.java index 548231ae..44c734d2 100644 --- a/src/java/com/juick/http/www/Blogs.java +++ b/src/java/com/juick/http/www/Blogs.java @@ -215,7 +215,9 @@ public class Blogs { out.println("

" + getTags(sql, 36) + "

"); out.println(""); - out.println("
"); + out.println("
"); + PageTemplates.pageYandexAd(out, visitor == null ? 2 : 3); // разный ID для залогиненых и нет + out.println("
"); out.println(""); // topwrapper diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 628c9be9..67f036fc 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -55,11 +55,11 @@ public class PageTemplates { out.println(""); out.println(""); out.println(" " + title + ""); - out.println(" "); + out.println(" "); out.println(" "); out.println(" "); out.println(" "); - out.println(" "); + out.println(" "); if (headers != null) { out.println(headers); } @@ -148,6 +148,37 @@ public class PageTemplates { out.println(); } + public static void pageYandexAd(PrintWriter out, int stat_id) { + out.println("
"); + out.println(""); + } + public static void pageDialogTemplate(PrintWriter out, Locale locale) { ResourceBundle rb = ResourceBundle.getBundle("Global", locale); out.println("
"); @@ -178,6 +209,7 @@ public class PageTemplates { } out.println(""); out.println(""); + out.println(""); } public static String formatTags(ArrayList tags, com.juick.User user) { -- cgit v1.2.3