mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Fix theme select for material variants
This commit is contained in:
parent
4f2a43365b
commit
a4e8beabdf
@ -144,6 +144,9 @@ function DisplaySystem(&$extraFooterScripts)
|
|||||||
"material-light" => "material-light.php"
|
"material-light" => "material-light.php"
|
||||||
];
|
];
|
||||||
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
$selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
|
||||||
|
if (strpos($_COOKIE['theme'],'material') !== false) {
|
||||||
|
$selectedTheme = 'material-light';
|
||||||
|
}
|
||||||
|
|
||||||
$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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user