The current Css is modified if a specific cookie is set. re #25
Questo commit è contenuto in:
parent
530f5b6291
commit
f5ff23cf9d
1 ha cambiato i file con 12 aggiunte e 1 eliminazioni
13
base.php
13
base.php
|
|
@ -17,8 +17,19 @@ function getURLParam ($name, $default = NULL) {
|
|||
return $default;
|
||||
}
|
||||
|
||||
function getCurrentOption ($option) {
|
||||
global $config;
|
||||
if (isset($_COOKIE[$option])) {
|
||||
return $_COOKIE[$option];
|
||||
}
|
||||
if ($option == "style") {
|
||||
return "default";
|
||||
}
|
||||
return $config ["cops_" . $option];
|
||||
}
|
||||
|
||||
function getCurrentCss () {
|
||||
return "styles/style-default.css";
|
||||
return "styles/style-" . getCurrentOption ("style") . ".css";
|
||||
}
|
||||
|
||||
function getUrlWithVersion ($url) {
|
||||
|
|
|
|||
Caricamento…
Aggiungi tabella
Aggiungi collegamento
Crea riferimento in una nuova segnalazione