Added themes to settings

This commit is contained in:
Marek Guráň 2023-08-07 12:14:53 +02:00 committed by GitHub
parent bb0a82acbc
commit 7b07869d68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,11 +190,15 @@ function DisplaySystem(&$extraFooterScripts)
// theme options
$themes = [
"default" => "RaspAP (default)",
"hackernews" => "HackerNews"
"hackernews" => "HackerNews",
"material-light" => "Material (light)",
"material-dark" => "Material (dark)"
];
$themeFiles = [
"default" => "custom.php",
"hackernews" => "hackernews.css"
"hackernews" => "hackernews.css",
"material-light" => "material-light.php",
"material-dark" => "material-dark.php"
];
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);