From: Andrew Dolgov Date: Fri, 31 Aug 2007 00:55:33 +0000 (+0100) Subject: add patch to integrate better with firefox (closes #148) X-Git-Tag: 1.2.15~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=755a43eefaea639d27cdf30dd3cf765f2a74a15c;p=tt-rss.git add patch to integrate better with firefox (closes #148) --- diff --git a/functions.php b/functions.php index d37f4bdf..d8faef6a 100644 --- a/functions.php +++ b/functions.php @@ -4739,4 +4739,10 @@ (SELECT COUNT(int_id) FROM ttrss_user_entries WHERE ref_id = id) = 0"); } + function add_feed_url() { + $url_path = 'http://' . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); + $url_path .= "?op=pref-feeds&quiet=1&subop=add&feed_url=%s"; + return $url_path; + } + ?> diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 25cbf707..6df9804b 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1035,6 +1035,15 @@ value=\"".__('Export OPML')."\">"; + print "

" . __("Firefox Integration") . "

"; + + print "

" . __('This Tiny Tiny RSS site can be used as a Firefox Feed Reader by clicking the link below.'); + print "

" . + __('Click here to register this site as a feed reader.') . "

"; + + print "

".__("Published articles")."

"; if (!get_pref($link, "_PREFS_PUBLISH_KEY")) {