From bb0ba69c09e5a360ffc4ed965b1bae27cf32b610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 3 Jul 2013 23:40:08 +0200 Subject: [PATCH] Add the email in the customize page. re #53 --- base.php | 11 ++++++++++- lang/Localization_en.json | 2 +- lang/Localization_fr.json | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/base.php b/base.php index 7e89a34..3b7d1e4 100644 --- a/base.php +++ b/base.php @@ -25,7 +25,12 @@ function getCurrentOption ($option) { if ($option == "style") { return "default"; } - return $config ["cops_" . $option]; + + if (isset($config ["cops_" . $option])) { + return $config ["cops_" . $option]; + } + + return ""; } function getCurrentCss () { @@ -742,6 +747,10 @@ class PageCustomize extends Page array_push ($this->entryArray, new Entry (localize ("customize.paging"), "", $content, "text", array ())); + $content = ''; + array_push ($this->entryArray, new Entry (localize ("customize.email"), "", + $content, "text", + array ())); } } diff --git a/lang/Localization_en.json b/lang/Localization_en.json index 7d5a6d0..e2aa878 100644 --- a/lang/Localization_en.json +++ b/lang/Localization_en.json @@ -327,7 +327,7 @@ "customize.title":"Customize COPS UI", "customize.style":"Theme", "customize.fancybox":"Use a Lightbox", -"customize.fancybox":"Use Fancybox", "customize.paging":"Max number of books per page (-1 to disable)", +"customize.email":"Set your email (to allow book emailing)", "fin":"fin" } diff --git a/lang/Localization_fr.json b/lang/Localization_fr.json index c81c98c..20485fa 100644 --- a/lang/Localization_fr.json +++ b/lang/Localization_fr.json @@ -121,6 +121,7 @@ "customize.style":"Thème", "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)", "languages.eng":"Anglais", "languages.fra":"Français", "fin":"fin"