Add a way to enable tag filter directly in the customize page. re #46

This commit is contained in:
Sébastien Lucas 2013-07-13 08:29:17 +02:00
parent 3bdc692411
commit 948c1cb3fa
3 changed files with 11 additions and 0 deletions

View File

@ -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 ()));
}
}

View File

@ -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"
}

View File

@ -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"