diff --git a/core/dashboard/resources/dashboard/content.php b/core/dashboard/resources/dashboard/content.php index 50e112f3c0..daec932471 100644 --- a/core/dashboard/resources/dashboard/content.php +++ b/core/dashboard/resources/dashboard/content.php @@ -8,11 +8,17 @@ $language = new text; $text = $language->get($_SESSION['domain']['language']['code'], 'core/dashboard'); +//prepare the settings + $dashboard_content_length = strlen($dashboard_content); + $dashboard_content_text_vertical_align = 'top'; + if ($dashboard_content_length < 30) { $dashboard_content_text_vertical_align = 'middle'; } + $dashboard_content_height = $dashboard_row_span * 120 . 'px'; + //dashboard icon echo "
\n"; echo "
\n"; echo " ".escape($dashboard_name).""; - echo " ".str_replace("\r", '
', escape($dashboard_content))."
\n"; + echo " ".str_replace("\r", '
', escape($dashboard_content))."
\n"; echo "
\n"; if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") { echo "
".str_replace("\r", '
', escape($dashboard_content_details))."
\n";