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