]> git.wh0rd.org Git - tt-rss.git/commitdiff
add subtoolbar dropdown action to view generated feed
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Nov 2010 14:28:38 +0000 (17:28 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Nov 2010 14:28:38 +0000 (17:28 +0300)
functions.php

index 601d59ecdc53a1af4edb4c163650598e8013c16e..174a19e8d3ca5aa97a3e4fe86dedc2163d1f777a 100644 (file)
                                $search_q = "&q=$search&m=$match_on&smode=$search_mode";
                        }
 
+                       $rss_link = "backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view-mode=$view_mode$search_q";
+
                        print "
                                <a target=\"_blank\"
                                        title=\"".__("View as RSS feed")."\"
-                                       href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view-mode=$view_mode$search_q\">
+                                       href=\"$rss_link\">
                                        <img class=\"noborder\" src=\"images/feed-icon-12x12.png\"></a>";
 
                        print "</div>";
 
                        print_labels_headlines_dropdown($link, $feed_id);
 
+                       print "<li class=\"insensitive\">".__('Feed:')."</li>";
+                       print "<li onclick=\"window.open('$rss_link')\">&nbsp;&nbsp;".__('View as RSS')."</li>";
+
                        print "</ul>";
 
                        print "</div>";