chg: [dashboard widget UI] made some changes to accomodate the new widgets

new_widgets
iglocska 2023-05-16 14:11:02 +02:00
parent c1ad695a9f
commit c702f5366d
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 6 additions and 2 deletions

View File

@ -27,9 +27,14 @@
$change = '<span class="red bold"> (-' . $change . ')</span>';
}
}
if (!empty($element['html_title'])) {
$title = $element['html_title'];
} else {
$title = h($element['title']);
}
echo sprintf(
'<div><span class="bold">%s</span>: <span class="%s">%s</span>%s%s</div>',
h($element['title']),
$title,
empty($element['class']) ? 'blue' : h($element['class']),
!isset($element['value']) ? '' : $element['value'],
empty($element['html']) ? '' : $element['html'],

View File

@ -20,7 +20,6 @@
), true);
}
?>
<div id="world-map-<?= $randomNumber ?>" style="width: 600px; height: 400px"></div>
<script>
(function() { // variables and functions have their own scope (no override)