Remove material light/dark themes (deprecated)

This commit is contained in:
billz
2024-10-25 01:02:09 -07:00
parent 8087ae3ab1
commit ce46f87459
3 changed files with 0 additions and 1236 deletions

View File

@@ -137,18 +137,12 @@ function DisplaySystem(&$extraFooterScripts)
$themes = [
"default" => "RaspAP (default)",
"hackernews" => "HackerNews",
"material-light" => "Material"
];
$themeFiles = [
"default" => "custom.php",
"hackernews" => "hackernews.css",
"material-light" => "material-light.php"
];
$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'=>'app/js/huebee.js', 'defer'=>false);
$logLimit = isset($_SESSION['log_limit']) ? $_SESSION['log_limit'] : RASPI_LOG_SIZE_LIMIT;