diff options
author | Andrew Dolgov <[email protected]> | 2007-10-30 09:22:01 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-10-30 09:22:01 +0100 |
commit | 203610630a5c2d077cbfb1d69e89c1e60d8b074e (patch) | |
tree | f10bd478f2fb38607f4c2d368c23403feaa41693 /functions.php | |
parent | de0800a9712ce296724e557e05763d9cf1e93846 (diff) |
add 3pane theme
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/functions.php b/functions.php index ab03832b0..53723273c 100644 --- a/functions.php +++ b/functions.php @@ -2664,6 +2664,7 @@ } } + print "<param key=\"theme\" value=\"".$_SESSION["theme"]."\"/>"; print "<param key=\"daemon_enabled\" value=\"" . ENABLE_UPDATE_DAEMON . "\"/>"; print "<param key=\"feeds_frame_refresh\" value=\"" . FEEDS_FRAME_REFRESH . "\"/>"; print "<param key=\"daemon_refresh_only\" value=\"true\"/>"; @@ -2707,6 +2708,7 @@ function print_runtime_info($link) { print "<runtime-info>"; + if (ENABLE_UPDATE_DAEMON) { print "<param key=\"daemon_is_running\" value=\"". sprintf("%d", file_is_locked("update_daemon.lock")) . "\"/>"; @@ -3659,23 +3661,26 @@ } */ print "<td class=\"headlineTitle$rtl_cpart\">"; - - if ($feed_site_url) { - if (!$bottom) { - $target = "target=\"_new\""; - } - print "<a $target href=\"$feed_site_url\">". - truncate_string($feed_title,30)."</a>"; - } 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 "<a $target href=\"$feed_site_url\">". + truncate_string($feed_title,30)."</a>"; + } 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 = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, "; - 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; |