From 06210328cccfe3171d58d6cbae1bd0fda6ebf58b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 12 Nov 2021 10:19:38 -0700 Subject: [PATCH] Use CSS Grid for the dashboard. --- core/dashboard/index.php | 100 ++++++++++++++++++++++++++------------- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/core/dashboard/index.php b/core/dashboard/index.php index af167bf2eb..7a08776885 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -119,28 +119,6 @@ \n"; - echo " \n"; - echo " "; - echo " ".$text['title-dashboard']."
"; - echo " \n"; - echo " \n"; - if ($_SESSION['theme']['menu_style']['text'] != 'side') { - echo " ".$text['label-welcome']." ".$_SESSION["username"].""; - } - echo " \n"; - echo " \n"; - echo " \n"; - echo " "; - echo " ".$text['description-dashboard']; - echo " \n"; - echo " \n"; - echo "\n"; - echo "
"; - */ - //show the content echo "
\n"; echo "
".$text['title-dashboard']."
\n"; @@ -156,22 +134,76 @@ echo "
\n"; //display login message - //if (if_group("superadmin") && isset($_SESSION['login']['message']['text']) && $_SESSION['login']['message']['text'] != '') { - // echo "
".$text['login-message_attention']."  ".$_SESSION['login']['message']['text']."  (".$text['login-message_dismiss'].")
"; - //} + if (if_group("superadmin") && isset($_SESSION['login']['message']['text']) && $_SESSION['login']['message']['text'] != '') { + echo "
".$text['login-message_attention']."  ".$_SESSION['login']['message']['text']."  (".$text['login-message_dismiss'].")
"; + } + +?> + + + +\n"; - $n = 0; + echo "
\n"; + $x = 0; foreach($dashboard as $row) { - echo "
\n"; - echo "
\n"; - echo "
\n"; - include($row['dashboard_path']); - echo "
\n"; - echo "
\n"; + //if ($x > 3) { $class = 'col-num'; } + //echo "
"; + echo "
"; + include($row['dashboard_path']); echo "
\n"; - $n++; + $x++; } echo "
\n";