From 11befbb22ff3761a1d29c93fd80cc7b75502bd84 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Sep 2006 05:15:28 +0100 Subject: [PATCH] subtoolbar is now sticky --- backend.php | 94 ++++----------------------------------------------- functions.php | 89 ++++++++++++++++++++++++++++++++++++++++++++++++ tt-rss.css | 15 +++++++- tt-rss.php | 4 +-- 4 files changed, 111 insertions(+), 91 deletions(-) diff --git a/backend.php b/backend.php index 656d88df..72b3dab6 100644 --- a/backend.php +++ b/backend.php @@ -799,98 +799,14 @@ Could not display feed (query failed). Please check label match syntax or local configuration."; return; } - - 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"; - - 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 "
"; - - } if (db_num_rows($result) > 0) { print_headline_subtoolbar($link, $feed_site_url, $feed_title, false, $rtl_content, $feed, $cat_view, $search, $match_on, $search_mode); + print "
"; + if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { print ""; @@ -1043,8 +959,10 @@ print "
"; } - print_headline_subtoolbar($link, - "javascript:catchupPage()", "Mark page as read", true, $rtl_content); + print "
"; + +// print_headline_subtoolbar($link, +// "javascript:catchupPage()", "Mark page as read", true, $rtl_content); } else { diff --git a/functions.php b/functions.php index c218b687..7028958f 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 "
"; + + } + ?> diff --git a/tt-rss.css b/tt-rss.css index aa4c96c6..d01699aa 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1285,7 +1285,7 @@ div.headlines_normal { height : 305px; top : 85px; right : 0px; - overflow : auto; + overflow : hidden; font-size : small; border-collapse : collapse; } @@ -1337,3 +1337,16 @@ div.headlines_cdm { margin-left : 1px; background-color : white; } + +#headlineActionsTop { +/* border-width : 0px 0px 1px 0px; + border-style : solid; + border-color : #c0c0c0; + background-color : #fafafa; */ + font-size : x-small; +} + +#headlinesInnerContainer { + height : 280px; + overflow : auto; +} diff --git a/tt-rss.php b/tt-rss.php index bd61bed9..23cb712a 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -199,8 +199,8 @@ window.onload = init;   - + -- 2.39.5