From 46dc15380ed7a6712175f3e8a06a82ba8f4f1a92 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Sep 2010 11:34:42 +0400 Subject: [PATCH] prefs: add bookmarklet to subscribe to feeds --- modules/pref-feeds.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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")) { -- 2.39.5