|
|
|
@ -22,13 +22,10 @@ class Af_RedditImgur extends Plugin {
|
|
|
|
|
function hook_prefs_tab($args) {
|
|
|
|
|
if ($args != "prefFeeds") return;
|
|
|
|
|
|
|
|
|
|
print "<div id=\"af_redditimgur_prefs\" dojoType=\"dijit.layout.AccordionPane\" title=\"".__('af_redditimgur settings')."\">";
|
|
|
|
|
print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Reddit content settings (af_redditimgur)')."\">";
|
|
|
|
|
|
|
|
|
|
$enable_readability = $this->host->get($this, "enable_readability");
|
|
|
|
|
$enable_readability_checked = $enable_readability ? "checked" : "";
|
|
|
|
|
|
|
|
|
|
$enable_content_dupcheck = $this->host->get($this, "enable_content_dupcheck");
|
|
|
|
|
$enable_content_dupcheck_checked = $enable_content_dupcheck ? "checked" : "";
|
|
|
|
|
|
|
|
|
|
print "<form dojoType=\"dijit.form.Form\">";
|
|
|
|
|
|
|
|
|
@ -53,20 +50,14 @@ class Af_RedditImgur extends Plugin {
|
|
|
|
|
print "<p>" . __("Uses Readability (full-text-rss) implementation by <a target='_blank' href='https://bitbucket.org/fivefilters/'>FiveFilters.org</a>");
|
|
|
|
|
print "<p/>";
|
|
|
|
|
|
|
|
|
|
print "<input dojoType=\"dijit.form.CheckBox\" id=\"enable_readability\"
|
|
|
|
|
$enable_readability_checked name=\"enable_readability\"> ";
|
|
|
|
|
|
|
|
|
|
print "<label for=\"enable_readability\">" . __("Extract missing content using Readability") . "</label>";
|
|
|
|
|
print_checkbox("enable_readability", $enable_readability);
|
|
|
|
|
print " <label for=\"enable_readability\">" . __("Extract missing content using Readability") . "</label>";
|
|
|
|
|
|
|
|
|
|
print "<br/>";
|
|
|
|
|
|
|
|
|
|
print "<input dojoType=\"dijit.form.CheckBox\" id=\"enable_content_dupcheck\"
|
|
|
|
|
$enable_content_dupcheck_checked name=\"enable_content_dupcheck\"> ";
|
|
|
|
|
|
|
|
|
|
print "<label for=\"enable_content_dupcheck\">" . __("Enable additional duplicate checking") . "</label>";
|
|
|
|
|
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
|
|
|
|
__("Save")."</button>";
|
|
|
|
|
|
|
|
|
|
print_checkbox("enable_content_dupcheck", $enable_content_dupcheck);
|
|
|
|
|
print " <label for=\"enable_content_dupcheck\">" . __("Enable additional duplicate checking") . "</label>";
|
|
|
|
|
print "<p>"; print_button("submit", __("Save"));
|
|
|
|
|
print "</form>";
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
|