summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-04 17:28:38 +0300
committerAndrew Dolgov <[email protected]>2010-11-04 17:28:38 +0300
commitf0361de20b2ec5602b3ebe440aa4b26046eb8193 (patch)
treef2b7145ae00c038d206768b67b1849917059a0a5 /functions.php
parentc784546704d9a76933c0929e427ef826e35a70a0 (diff)
add subtoolbar dropdown action to view generated feed
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 601d59ecd..174a19e8d 100644
--- a/functions.php
+++ b/functions.php
@@ -4230,10 +4230,12 @@
$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>";
@@ -4279,6 +4281,9 @@
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>";