From f10808259c286cb4ebc6318a71eee470066fc6ef Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 Dec 2011 22:38:25 +0400 Subject: [PATCH] tweak headlines-toolbar appearance --- classes/feeds.php | 94 ++++++++++++++++++++--------------------------- tt-rss.css | 69 +++++++++++++++++++++++++--------- 2 files changed, 91 insertions(+), 72 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index 5ecac494..2e9aea68 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -68,7 +68,43 @@ class Feeds extends Protected_Handler { $tog_marked_link = "selectionToggleMarked()"; $tog_published_link = "selectionTogglePublished()"; - $reply = "
"; + if ($is_cat) $cat_q = "&is_cat=$is_cat"; + + if ($search) { + $search_q = "&q=$search&m=$match_on&smode=$search_mode"; + } else { + $search_q = ""; + } + + $rss_link = htmlspecialchars(get_self_url_prefix() . + "/public.php?op=rss&id=$feed_id$cat_q$search_q"); + + // right part + + $reply .= ""; + + if ($feed_site_url) { + $target = "target=\"_blank\""; + $reply .= "". + truncate_string($feed_title,30).""; + + if ($error) { + $reply .= " (Error)"; + } + + } else { + $reply .= $feed_title; + } + + $reply .= " + + "; + + $reply .= ""; + + // left part $reply .= __('Select:')." ".__('All').", @@ -103,17 +139,6 @@ class Feeds extends Protected_Handler { $reply .= ""; - if ($is_cat) $cat_q = "&is_cat=$is_cat"; - - if ($search) { - $search_q = "&q=$search&m=$match_on&smode=$search_mode"; - } else { - $search_q = ""; - } - - $rss_link = htmlspecialchars(get_self_url_prefix() . - "/public.php?op=rss&id=$feed_id$cat_q$search_q"); - $reply .= ""; $reply .= ""; @@ -122,50 +147,9 @@ class Feeds extends Protected_Handler { $reply .= ""; - $reply .= "
"; - - $reply .= "
"; - - if ($feed_site_url) { - $target = "target=\"_blank\""; - $reply .= "". - truncate_string($feed_title,30).""; - - if ($error) { - $reply .= " (Error)"; - } - - } else { - if ($feed_id < -10) { - $label_id = -11-$feed_id; - - $result = db_query($this->link, "SELECT fg_color, bg_color - FROM ttrss_labels2 WHERE id = '$label_id' AND owner_uid = " . - $_SESSION["uid"]); - - if (db_num_rows($result) != 0) { - $fg_color = db_fetch_result($result, 0, "fg_color"); - $bg_color = db_fetch_result($result, 0, "bg_color"); - - $reply .= ""; - $reply .= $feed_title; - $reply .= ""; - } else { - $reply .= $feed_title; - } - - } else { - $reply .= $feed_title; - } - } - - $reply .= " - - "; + //$reply .= "
"; - $reply .= ""; + //$reply .= "