diff --git a/system/classes/menu.php b/system/classes/menu.php index eaea773e..f394b855 100644 --- a/system/classes/menu.php +++ b/system/classes/menu.php @@ -703,6 +703,10 @@ function buildMenu($db, $parent, $menu, $id, $currentRole, $divider, $template) // echo "
";print_r($menu);echo""; exit; $navBarBrand = ''; $title_status = template::getTemplateSetting($db, "value", "globalmenu-title"); + $navbar_center = template::getTemplateSetting($db, "value", "navbar-center"); + if ($navbar_center == "1") { $navbar_center = " w-100 justify-content-center"; } + else { $navbar_center = ""; } + if ($title_status != '0') { // get menu title @@ -711,7 +715,7 @@ function buildMenu($db, $parent, $menu, $id, $currentRole, $divider, $template) $menuName = $row[0]; if (!empty($menuName)) { - $navBarBrand = "" . $menuName . ""; + $navBarBrand = "" . $menuName . ""; } else { @@ -719,22 +723,24 @@ function buildMenu($db, $parent, $menu, $id, $currentRole, $divider, $template) } } + // DRAW BOOTSTRAP 4 MENU if ($bootstrapVersion == "4") { $html = ""; $html .= " -