Add the email in the customize page. re #53
This commit is contained in:
parent
d9f0f3e051
commit
bb0ba69c09
9
base.php
9
base.php
|
@ -25,7 +25,12 @@ function getCurrentOption ($option) {
|
||||||
if ($option == "style") {
|
if ($option == "style") {
|
||||||
return "default";
|
return "default";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($config ["cops_" . $option])) {
|
||||||
return $config ["cops_" . $option];
|
return $config ["cops_" . $option];
|
||||||
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentCss () {
|
function getCurrentCss () {
|
||||||
|
@ -742,6 +747,10 @@ class PageCustomize extends Page
|
||||||
array_push ($this->entryArray, new Entry (localize ("customize.paging"), "",
|
array_push ($this->entryArray, new Entry (localize ("customize.paging"), "",
|
||||||
$content, "text",
|
$content, "text",
|
||||||
array ()));
|
array ()));
|
||||||
|
$content = '<input type="email" onchange="updateCookie (this);" id="email" value="' . getCurrentOption ("email") . '" />';
|
||||||
|
array_push ($this->entryArray, new Entry (localize ("customize.email"), "",
|
||||||
|
$content, "text",
|
||||||
|
array ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -327,7 +327,7 @@
|
||||||
"customize.title":"Customize COPS UI",
|
"customize.title":"Customize COPS UI",
|
||||||
"customize.style":"Theme",
|
"customize.style":"Theme",
|
||||||
"customize.fancybox":"Use a Lightbox",
|
"customize.fancybox":"Use a Lightbox",
|
||||||
"customize.fancybox":"Use Fancybox",
|
|
||||||
"customize.paging":"Max number of books per page (-1 to disable)",
|
"customize.paging":"Max number of books per page (-1 to disable)",
|
||||||
|
"customize.email":"Set your email (to allow book emailing)",
|
||||||
"fin":"fin"
|
"fin":"fin"
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,6 +121,7 @@
|
||||||
"customize.style":"Thème",
|
"customize.style":"Thème",
|
||||||
"customize.fancybox":"Utiliser une Lightbox",
|
"customize.fancybox":"Utiliser une Lightbox",
|
||||||
"customize.paging":"Nombre de livres par page (-1 pour désactiver)",
|
"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.eng":"Anglais",
|
||||||
"languages.fra":"Français",
|
"languages.fra":"Français",
|
||||||
"fin":"fin"
|
"fin":"fin"
|
||||||
|
|
Loading…
Reference in a new issue