From: Andrew Dolgov
Date: Sat, 11 Sep 2010 07:34:42 +0000 (+0400)
Subject: prefs: add bookmarklet to subscribe to feeds
X-Git-Tag: 1.4.3-proper
X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=46dc15380ed7a6712175f3e8a06a82ba8f4f1a92;p=tt-rss.git
prefs: add bookmarklet to subscribe to feeds
---
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index c0bb4416..dc3553d1 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -1501,6 +1501,18 @@
print "
";
}
+ print "".__("Subscribing via bookmarklet")."
";
+
+ print "" . __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.") . "
";
+
+ $bm_subscribe_url = str_replace('%s', '', add_feed_url());
+
+ $confirm_str = __('Subscribe to %s in Tiny Tiny RSS?');
+
+ $bm_url = htmlspecialchars("javascript:{if(confirm('$confirm_str'.replace('%s',window.location.href)))window.location.href='$bm_subscribe_url'+window.location.href}");
+
+ print "" . __('Subscribe in Tiny Tiny RSS'). "";
+
print "".__("Published articles")."
";
if (!get_pref($link, "_PREFS_PUBLISH_KEY")) {