From 8361e724785767d57cd28be7ceaea7ad81fae0a2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Sep 2012 16:05:59 +0400 Subject: implement sharing of arbitrary stuff using bookmarklet and API call, bump API version --- classes/pref/feeds.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'classes/pref/feeds.php') diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index ef308ee1c..d6bb94ebe 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1557,7 +1557,7 @@ class Pref_Feeds extends Handler_Protected { print ""; # pane } - print "
"; + print "
"; 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.") . "

"; @@ -1569,6 +1569,12 @@ class Pref_Feeds extends Handler_Protected { print "" . __('Subscribe in Tiny Tiny RSS'). ""; + print "

" . __("Use this bookmarklet to publish arbitrary pages using Tiny Tiny RSS") . "

"; + + $bm_url = htmlspecialchars("javascript:(function(){var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='".SELF_URL_PATH."/public.php?op=sharepopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=500,height=200')){l.href=g;}}a();})()"); + + print "" . __('Share with Tiny Tiny RSS'). ""; + print "
"; #pane print "
"; -- cgit v1.2.3