mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Create getThemeOpt
This commit is contained in:
parent
2a1f531ffa
commit
9fef770143
@ -417,3 +417,14 @@ function formatDateAgo($datetime, $full = false)
|
|||||||
if (!$full) $string = array_slice($string, 0, 1);
|
if (!$full) $string = array_slice($string, 0, 1);
|
||||||
return $string ? implode(', ', $string) . ' ago' : 'just now';
|
return $string ? implode(', ', $string) . ' ago' : 'just now';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getThemeOpt()
|
||||||
|
{
|
||||||
|
if (!isset($_COOKIE['theme'])) {
|
||||||
|
$theme = "custom.php";
|
||||||
|
} else {
|
||||||
|
$theme = $_COOKIE['theme'];
|
||||||
|
}
|
||||||
|
return 'app/css/'.htmlspecialchars($theme, ENT_QUOTES);
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user