|
@@ -163,7 +163,7 @@
|
|
|
$expanded_all = true;
|
|
|
if (is_array($dashboard) && @sizeof($dashboard) != 0) {
|
|
|
foreach ($dashboard as $row) {
|
|
|
- if ($row['dashboard_details_state'] == 'contracted' || $row['dashboard_details_state'] == 'hidden') { $expanded_all = false; }
|
|
|
+ if ($row['dashboard_details_state'] == 'contracted' || $row['dashboard_details_state'] == 'hidden' || $row['dashboard_details_state'] == 'disabled') { $expanded_all = false; }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -266,6 +266,12 @@
|
|
|
echo " display: none;\n";
|
|
|
echo "}\n";
|
|
|
}
|
|
|
+ if ($row['dashboard_details_state'] == "disabled") {
|
|
|
+ echo "#".$dashboard_name." .hud_box .hud_expander, \n";
|
|
|
+ echo "#".$dashboard_name." .hud_box .hud_details {\n";
|
|
|
+ echo " display: none;\n";
|
|
|
+ echo "}\n";
|
|
|
+ }
|
|
|
}
|
|
|
?>
|
|
|
}
|
|
@@ -315,6 +321,7 @@
|
|
|
$dashboard_heading_text_color = $row['dashboard_heading_text_color'] ?? $settings->get('theme', 'dashboard_heading_text_color');
|
|
|
$dashboard_number_background_color = $row['dashboard_number_background_color'] ?? $settings->get('theme', 'dashboard_number_background_color');
|
|
|
$dashboard_number_text_color = $row['dashboard_number_text_color'] ?? $settings->get('theme', 'dashboard_number_text_color');
|
|
|
+ $dashboard_details_state = $row['dashboard_details_state'];
|
|
|
echo "<div class='widget' id='".str_replace(" ", "_", strtolower($dashboard_name))."' draggable='false'>\n";
|
|
|
include($row['dashboard_path']);
|
|
|
echo "</div>\n";
|
|
@@ -421,4 +428,4 @@
|
|
|
//show the footer
|
|
|
require_once "resources/footer.php";
|
|
|
|
|
|
-?>
|
|
|
+?>
|