true);
	}
	function save() {
		$enable_share_anything = checkbox_to_sql_bool($_POST["enable_share_anything"]);
		$this->host->set($this, "enable_share_anything", $enable_share_anything);
		echo __("Data saved.");
	}
	function init($host)
	{
		$this->host = $host;
		if (version_compare(PHP_VERSION, '5.6.0', '<')) {
			return;
		}
		$host->add_hook($host::HOOK_ARTICLE_FILTER, $this);
		$host->add_hook($host::HOOK_PREFS_TAB, $this);
		$host->add_hook($host::HOOK_PREFS_EDIT_FEED, $this);
		$host->add_hook($host::HOOK_PREFS_SAVE_FEED, $this);
		$host->add_filter_action($this, "action_inline", __("Inline content"));
	}
	function hook_prefs_tab($args) {
		if ($args != "prefFeeds") return;
		print "
extension ".__('Readability settings (af_readability)')."\">";
		if (version_compare(PHP_VERSION, '5.6.0', '<')) {
			print_error("This plugin requires PHP version 5.6.");
		} else {
			print "
" . __("Global settings") . "
";
			print_notice("Enable for specific feeds in the feed editor.");
			print "
";
			$enabled_feeds = $this->host->get($this, "enabled_feeds");
			if (!is_array($enabled_feeds)) $enabled_feeds = array();
			$enabled_feeds = $this->filter_unknown_feeds($enabled_feeds);
			$this->host->set($this, "enabled_feeds", $enabled_feeds);
			if (count($enabled_feeds) > 0) {
				print "
" . __("Currently enabled for (click to edit):") . "
";
				print "
";
			}
		}
		print "