From 698776460d3cd7075024b8795dbbaf7132415890 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 11 Jan 2010 16:42:11 +0300 Subject: move feed browser to subscribe to feed dialog --- modules/popup-dialog.php | 3 +++ modules/pref-feeds.php | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index bfc1f2483..00efdcb74 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -128,6 +128,9 @@ + + "; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 835b45041..5330a4ffa 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1135,11 +1135,11 @@ type=\"submit\" id=\"subscribe_to_feed_btn\" class=\"button\" value=\"".__('Subscribe to feed')."\">"; - if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { +/* if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { print " "; - } + } */ $feeds_sort = db_escape_string($_REQUEST["sort"]); @@ -1533,7 +1533,16 @@ } else if ($mode == 2) { $feed_url = $line["feed_url"]; + + $icon_file = ICONS_DIR . "/" . $line["id"] . ".ico"; + if (file_exists($icon_file) && filesize($icon_file) > 0) { + $feed_icon = ""; + } else { + $feed_icon = ""; + } + $check_box = ""; @@ -1547,7 +1556,7 @@ } print "
  • $check_box". - $line["title"] . $site_url . "
  • "; + "$feed_icon " . $line["title"] . $site_url . ""; } -- cgit v1.2.3