Add a way to enable tag filter directly in the customize page. re #46
This commit is contained in:
parent
3bdc692411
commit
948c1cb3fa
3 changed files with 11 additions and 0 deletions
9
base.php
9
base.php
|
@ -709,6 +709,11 @@ class PageCustomize extends Page
|
|||
if (getCurrentOption ("use_fancyapps") == 1) {
|
||||
$use_fancybox = "checked='checked'";
|
||||
}
|
||||
$html_tag_filter = "";
|
||||
if (getCurrentOption ("html_tag_filter") == 1) {
|
||||
$html_tag_filter = "checked='checked'";
|
||||
}
|
||||
|
||||
|
||||
$content = "";
|
||||
if (!preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) {
|
||||
|
@ -751,6 +756,10 @@ class PageCustomize extends Page
|
|||
array_push ($this->entryArray, new Entry (localize ("customize.email"), "",
|
||||
$content, "text",
|
||||
array ()));
|
||||
$content = '<input type="checkbox" onchange="updateCookieFromCheckbox (this);" id="html_tag_filter" ' . $html_tag_filter . ' />';
|
||||
array_push ($this->entryArray, new Entry (localize ("customize.filter"), "",
|
||||
$content, "text",
|
||||
array ()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue