From bb5e1a328d30785fc8d5ca866cd886110e3c37b9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 18:16:30 +0400 Subject: [PATCH] enable 4th field in plugin->about() to serve as a more info link --- classes/pref/prefs.php | 17 ++++++++++++++--- plugins/example/init.php | 3 ++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 28a19f729..a5d7300d2 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -629,7 +629,7 @@ class Pref_Prefs extends Handler_Protected { print "

".__("Plugins")."

"; - print_notice(__("Download more plugins at Tiny Tiny RSS forums.")); + print_notice(__("Download more plugins at tt-rss.org forums or wiki.")); print "

" . __("You will need to reload Tiny Tiny RSS for plugin changes to take effect.") . "

"; @@ -690,7 +690,12 @@ class Pref_Prefs extends Handler_Protected { type=\"checkbox\">"; print "$name"; - print "" . htmlspecialchars($about[1]) . ""; + print "" . htmlspecialchars($about[1]); + if (@$about[4]) { + print " — ".__("more info").""; + } + print ""; print "" . htmlspecialchars(sprintf("%.2f", $about[0])) . ""; print "" . htmlspecialchars($about[2]) . ""; @@ -742,7 +747,13 @@ class Pref_Prefs extends Handler_Protected { type=\"checkbox\">"; print ""; - print ""; + print ""; + if (@$about[4]) { + print " — ".__("more info").""; + } + print ""; + print "" . htmlspecialchars(sprintf("%.2f", $about[0])) . ""; print "" . htmlspecialchars($about[2]) . ""; diff --git a/plugins/example/init.php b/plugins/example/init.php index 926a57da8..333efd92d 100644 --- a/plugins/example/init.php +++ b/plugins/example/init.php @@ -10,7 +10,8 @@ class Example extends Plugin { return array(1.0, "Example plugin #1", "fox", - true); + true, + "http://site.com"); } function init($host) {