diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index b9c4e252e..84cfe869a 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -55,79 +55,77 @@ class Af_Readability extends Plugin { function hook_prefs_tab($args) { if ($args != "prefFeeds") return; - print "
extension ".__('Readability settings (af_readability)')."\">"; + $enable_share_anything = sql_bool_to_bool($this->host->get($this, "enable_share_anything")); - if (version_compare(PHP_VERSION, '7.0.0', '<')) { - print_error("This plugin requires PHP 7.0."); - } else { - - print "

" . __("Global settings") . "

"; - - print_notice("Enable for specific feeds in the feed editor."); - - print "
"; - - print ""; - - print \Controls\hidden_tag("op", "pluginhandler"); - print \Controls\hidden_tag("method", "save"); - print \Controls\hidden_tag("plugin", "af_readability"); - - $enable_share_anything = sql_bool_to_bool($this->host->get($this, "enable_share_anything")); - - print "
"; - print ""; - print "
"; + ?> +
- print "
"; +

- print \Controls\submit_tag(__("Save")); - print ""; + - /* cleanup */ - $enabled_feeds = $this->filter_unknown_feeds( - $this->get_stored_array("enabled_feeds")); +
- $append_feeds = $this->filter_unknown_feeds( - $this->get_stored_array("append_feeds")); + + + - $this->host->set($this, "enabled_feeds", $enabled_feeds); - $this->host->set($this, "append_feeds", $append_feeds); - - if (count($enabled_feeds) > 0) { - print "
"; - print "

" . __("Currently enabled for (click to edit):") . "

"; - - print ""; - } - - } - - print "
"; + + +
+ +
+ +
+ + + + + filter_unknown_feeds( + $this->get_stored_array("enabled_feeds")); + + $append_feeds = $this->filter_unknown_feeds( + $this->get_stored_array("append_feeds")); + + $this->host->set($this, "enabled_feeds", $enabled_feeds); + $this->host->set($this, "append_feeds", $append_feeds); + ?> + + 0) { ?> +
+

+ + + +
+