Fix number text and background color not applying (#7235)
* Fix number text and background color not applying * Update registrations.php * Update voicemails.php * Update missed_calls.php * Update recent_calls.php * Update domains.php
This commit is contained in:
parent
bb1006aca8
commit
b2349060b5
|
|
@ -55,7 +55,7 @@
|
|||
echo " <span class='hud_title' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\">".escape($dashboard_label)."</span>";
|
||||
echo " <div style='position: relative; display: inline-block;'>\n";
|
||||
echo " <span class='hud_stat' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\"><i class=\"fas ".$dashboard_icon."\"></i></span>\n";
|
||||
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#5d5ce3')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$active_registrations." / ".($active_registrations + $inactive_registrations)."</span>\n";
|
||||
echo " <span style=\"background-color: ".($dashboard_number_background_color ?? '#5d5ce3')."; color: ".($dashboard_number_text_color ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$active_registrations." / ".($active_registrations + $inactive_registrations)."</span>\n";
|
||||
echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") {
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@
|
|||
echo "<span class='hud_content'>\n";
|
||||
echo "<div style='position: relative; display: inline-block;'>\n";
|
||||
echo " <span class='hud_stat'><i class=\"fas ".$dashboard_icon." \"></i></span>\n";
|
||||
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#03c04a')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$messages['new']."</span>\n";
|
||||
echo " <span style=\"background-color: ".($dashboard_number_background_color ?? '#03c04a')."; color: ".($dashboard_number_text_color ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$messages['new']."</span>\n";
|
||||
echo " </div>\n";
|
||||
echo "</span>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@
|
|||
echo "<span class='hud_content'>\n";
|
||||
echo "<div style='position: relative; display: inline-block;'>\n";
|
||||
echo " <span class='hud_stat'><i class=\"fas ".$dashboard_icon." \"></i></span>\n";
|
||||
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#EA4C46')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
|
||||
echo " <span style=\"background-color: ".($dashboard_number_background_color ?? '#EA4C46')."; color: ".($dashboard_number_text_color ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
|
||||
echo " </div>\n";
|
||||
echo "</span>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@
|
|||
echo "<div class='hud_content'>\n";
|
||||
echo " <div style='position: relative; display: inline-block;'>\n";
|
||||
echo " <span class='hud_stat'><i class=\"fas ".$dashboard_icon." \"></i></span>\n";
|
||||
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#417ed3')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
|
||||
echo " <span style=\"background-color: ".($dashboard_number_background_color ?? '#417ed3')."; color: ".($dashboard_number_text_color ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 23px; left: 24.5px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$num_rows."</span>\n";
|
||||
echo " </div>\n";
|
||||
echo "</div>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -533,6 +533,7 @@ function toggle_grid_row_end_all() {
|
|||
$dashboard_chart_type = $row['dashboard_chart_type'] ?? "doughnut";
|
||||
$dashboard_label_text_color = $row['dashboard_label_text_color'] ?? $settings->get('theme', 'dashboard_label_text_color', '');
|
||||
$dashboard_number_text_color = $row['dashboard_number_text_color'] ?? $settings->get('theme', 'dashboard_number_text_color', '');
|
||||
$dashboard_number_background_color = $row['dashboard_number_background_color'] ?? $settings->get('theme', 'dashboard_number_background_color', '');
|
||||
$dashboard_details_state = $row['dashboard_details_state'] ?? "expanded";
|
||||
$dashboard_row_span = $row['dashboard_row_span'] ?? 2;
|
||||
|
||||
|
|
@ -558,6 +559,7 @@ function toggle_grid_row_end_all() {
|
|||
$dashboard_chart_type = preg_replace($text_pattern, '', $dashboard_chart_type);
|
||||
$dashboard_label_text_color = preg_replace($text_pattern, '', $dashboard_label_text_color);
|
||||
$dashboard_number_text_color = preg_replace($text_pattern, '', $dashboard_number_text_color);
|
||||
$dashboard_number_background_color = preg_replace($text_pattern, '', $dashboard_number_background_color);
|
||||
$dashboard_details_state = preg_replace($text_pattern, '', $dashboard_details_state);
|
||||
$dashboard_row_span = preg_replace($number_pattern, '', $dashboard_row_span);
|
||||
$dashboard_path = preg_replace($text_pattern, '', strtolower($row['dashboard_path']));
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
echo " <span class='hud_title' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\">".escape($dashboard_label)."</span>";
|
||||
echo " <div style='position: relative; display: inline-block;'>\n";
|
||||
echo " <span class='hud_stat' onclick=\"window.open('".$dashboard_url."', '".$dashboard_target."', '".$window_parameters."')\"><i class=\"fas ".$dashboard_icon."\"></i></span>\n";
|
||||
echo " <span style=\"background-color: ".($row['dashboard_number_background_color'] ?? '#0292FF')."; color: ".($row['dashboard_number_text_color'] ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$domain_count."</span>\n";
|
||||
echo " <span style=\"background-color: ".($dashboard_number_background_color ?? '#0292FF')."; color: ".($dashboard_number_text_color ?? '#ffffff')."; font-size: 12px; font-weight: bold; text-align: center; position: absolute; top: 22px; left: 25px; padding: 2px 7px 1px 7px; border-radius: 10px; white-space: nowrap;\">".$domain_count."</span>\n";
|
||||
echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue