From 948c1cb3fa38e7ca89cbf586e099991eaa1798de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 13 Jul 2013 08:29:17 +0200 Subject: [PATCH] Add a way to enable tag filter directly in the customize page. re #46 --- base.php | 9 +++++++++ lang/Localization_en.json | 1 + lang/Localization_fr.json | 1 + 3 files changed, 11 insertions(+) diff --git a/base.php b/base.php index 3b7d1e4..19e25b3 100644 --- a/base.php +++ b/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 = ''; + array_push ($this->entryArray, new Entry (localize ("customize.filter"), "", + $content, "text", + array ())); } } diff --git a/lang/Localization_en.json b/lang/Localization_en.json index e2aa878..d45da45 100644 --- a/lang/Localization_en.json +++ b/lang/Localization_en.json @@ -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" } diff --git a/lang/Localization_fr.json b/lang/Localization_fr.json index 20485fa..5f11daa 100644 --- a/lang/Localization_fr.json +++ b/lang/Localization_fr.json @@ -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"