From: Andrew Dolgov Date: Wed, 27 Mar 2013 14:16:30 +0000 (+0400) Subject: enable 4th field in plugin->about() to serve as a more info link X-Git-Tag: 1.7.6~238 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bb5e1a328d30785fc8d5ca866cd886110e3c37b9;p=tt-rss.git enable 4th field in plugin->about() to serve as a more info link --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 28a19f72..a5d7300d 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 926a57da..333efd92 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) {