Add the email in the customize page. re #53

This commit is contained in:
Sébastien Lucas 2013-07-03 23:40:08 +02:00
parent d9f0f3e051
commit bb0ba69c09
3 changed files with 12 additions and 2 deletions

View file

@ -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 = '<input type="email" onchange="updateCookie (this);" id="email" value="' . getCurrentOption ("email") . '" />';
array_push ($this->entryArray, new Entry (localize ("customize.email"), "",
$content, "text",
array ()));
}
}