Add a way to enable tag filter directly in the customize page. re #46
This commit is contained in:
parent
3bdc692411
commit
948c1cb3fa
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 ()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -329,5 +329,6 @@
|
|||
"customize.fancybox":"Use a Lightbox",
|
||||
"customize.paging":"Max number of books per page (-1 to disable)",
|
||||
"customize.email":"Set your email (to allow book emailing)",
|
||||
"customize.filter":"Enable tag filtering",
|
||||
"fin":"fin"
|
||||
}
|
||||
|
|
|
@ -122,6 +122,7 @@
|
|||
"customize.fancybox":"Utiliser une Lightbox",
|
||||
"customize.paging":"Nombre de livres par page (-1 pour désactiver)",
|
||||
"customize.email":"Adresse email (pour l'envoi automatique de livres)",
|
||||
"customize.filter":"Filtrage via les étiquettes",
|
||||
"languages.eng":"Anglais",
|
||||
"languages.fra":"Français",
|
||||
"fin":"fin"
|
||||
|
|
Loading…
Reference in a new issue