From 203610630a5c2d077cbfb1d69e89c1e60d8b074e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 30 Oct 2007 09:22:01 +0100 Subject: add 3pane theme --- functions.php | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index ab03832b0..53723273c 100644 --- a/functions.php +++ b/functions.php @@ -2664,6 +2664,7 @@ } } + print ""; print ""; print ""; print ""; @@ -2707,6 +2708,7 @@ function print_runtime_info($link) { print ""; + if (ENABLE_UPDATE_DAEMON) { print ""; @@ -3659,23 +3661,26 @@ } */ print ""; - - if ($feed_site_url) { - if (!$bottom) { - $target = "target=\"_new\""; - } - print "". - truncate_string($feed_title,30).""; - } else { - print $feed_title; - } - if ($search) { - $search_q = "&q=$search&m=$match_on&smode=$search_mode"; - } + if ($_SESSION["theme"] != "3pane") { - if ($user_page_offset > 1) { - print " [$user_page_offset] "; + if ($feed_site_url) { + if (!$bottom) { + $target = "target=\"_new\""; + } + print "". + truncate_string($feed_title,30).""; + } else { + print $feed_title; + } + + if ($search) { + $search_q = "&q=$search&m=$match_on&smode=$search_mode"; + } + + if ($user_page_offset > 1) { + print " [$user_page_offset] "; + } } if (!$bottom) { @@ -4287,16 +4292,22 @@ $num_tags = 0; + if ($_SESSION["theme"] == "3pane") { + $tag_limit = 3; + } else { + $tag_limit = 6; + } + foreach ($tags as $tag) { $num_tags++; $tag_escaped = str_replace("'", "\\'", $tag); $tag_str = "$tag, "; - if ($num_tags == 6) { + if ($num_tags == $tag_limit) { $tags_str .= "..."; - } else if ($num_tags < 6) { + } else if ($num_tags < $tag_limit) { $tags_str .= $tag_str; } $f_tags_str .= $tag_str; -- cgit v1.2.3