From 11befbb22ff3761a1d29c93fd80cc7b75502bd84 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Sep 2006 05:15:28 +0100 Subject: subtoolbar is now sticky --- functions.php | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index c218b6876..7028958f0 100644 --- a/functions.php +++ b/functions.php @@ -2597,4 +2597,93 @@ mb_strtolower(strip_tags($title))); } + function print_headline_subtoolbar($link, $feed_site_url, $feed_title, + $bottom = false, $rtl_content = false, $feed_id = 0, + $is_cat = false, $search = false, $match_on = false, + $search_mode = false) { + + if (!$bottom) { + $class = "headlinesSubToolbar"; + $tid = "headlineActionsTop"; + } else { + $class = "headlinesSubToolbar"; + $tid = "headlineActionsBottom"; + } + + print ""; + + if ($rtl_content) { + $rtl_cpart = "RTL"; + } else { + $rtl_cpart = ""; + } + + if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { + + print ""; + + if ($search && $feed_id > 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) { + print ""; + } + + } else { + + print ""; + + } + + print ""; + print "
+ Select: + All, + Unread, + None +    + Toggle: Unread, + Starred +    + Mark as read: + Page, + Feed"; + print " + + Convert this search to label + Select: + All, + Unread, + None +    + Toggle: Unread, + Starred"; + + print ""; + + if ($feed_site_url) { + if (!$bottom) { + $target = "target=\"_blank\""; + } + print "$feed_title"; + } else { + print $feed_title; + } + + if ($search) { + $search_q = "&q=$search&m=$match_on&smode=$search_mode"; + } + + if (!$bottom) { + print "  + + \"Generated + "; + } + + print "
"; + + } + ?> -- cgit v1.2.3-54-g00ecf