mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Small changes to system.php
Removed dark theme since it will be enabled by switch at top bar
This commit is contained in:
parent
aec2e3b7bf
commit
3cf88d98b2
@ -191,17 +191,18 @@ function DisplaySystem(&$extraFooterScripts)
|
|||||||
$themes = [
|
$themes = [
|
||||||
"default" => "RaspAP (default)",
|
"default" => "RaspAP (default)",
|
||||||
"hackernews" => "HackerNews",
|
"hackernews" => "HackerNews",
|
||||||
"material-light" => "Material (light)",
|
"material-light" => "Material (Use dark colors)"
|
||||||
"material-dark" => "Material (dark)"
|
|
||||||
];
|
];
|
||||||
$themeFiles = [
|
$themeFiles = [
|
||||||
"default" => "custom.php",
|
"default" => "custom.php",
|
||||||
"hackernews" => "hackernews.css",
|
"hackernews" => "hackernews.css",
|
||||||
"material-light" => "material-light.php",
|
"material-light" => "material-light.php"
|
||||||
"material-dark" => "material-dark.php"
|
|
||||||
];
|
];
|
||||||
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
||||||
|
|
||||||
|
// widget options
|
||||||
|
$widgetOpt = $_SESSION["widgetOpt"];
|
||||||
|
|
||||||
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
|
$extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false);
|
||||||
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);
|
$extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);
|
||||||
|
|
||||||
@ -228,6 +229,7 @@ function DisplaySystem(&$extraFooterScripts)
|
|||||||
"hostapd_status",
|
"hostapd_status",
|
||||||
"hostapd_led",
|
"hostapd_led",
|
||||||
"themes",
|
"themes",
|
||||||
"selectedTheme"
|
"selectedTheme",
|
||||||
|
"widgetOpt"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user