From 3cf88d98b26810aff963d9bf54f6035103eb6e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Gur=C3=A1=C5=88?= Date: Mon, 28 Aug 2023 23:12:04 +0200 Subject: [PATCH] Small changes to system.php Removed dark theme since it will be enabled by switch at top bar --- includes/system.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/includes/system.php b/includes/system.php index 3bab0c3b..e21bbe0e 100755 --- a/includes/system.php +++ b/includes/system.php @@ -191,17 +191,18 @@ function DisplaySystem(&$extraFooterScripts) $themes = [ "default" => "RaspAP (default)", "hackernews" => "HackerNews", - "material-light" => "Material (light)", - "material-dark" => "Material (dark)" + "material-light" => "Material (Use dark colors)" ]; $themeFiles = [ "default" => "custom.php", "hackernews" => "hackernews.css", - "material-light" => "material-light.php", - "material-dark" => "material-dark.php" + "material-light" => "material-light.php" ]; $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'=>'app/js/huebee.js', 'defer'=>false); @@ -228,6 +229,7 @@ function DisplaySystem(&$extraFooterScripts) "hostapd_status", "hostapd_led", "themes", - "selectedTheme" + "selectedTheme", + "widgetOpt" )); }