* Adjust code.
This commit is contained in:
@@ -381,14 +381,14 @@ class adminModel extends model
|
||||
$currentMenu = $this->lang->admin->menuList->$currentMenuKey;
|
||||
$output = "<div class='btn-group header-btn'>";
|
||||
$output .= "<button class='btn pull-right btn-link' data-toggle='dropdown'>";
|
||||
$output .= "<span class='text'>{$currentMenu['name']}</span>";
|
||||
$output .= "<span class='text'>{$currentMenu['name']}</span> ";
|
||||
$output .= "<span class='caret'></span></button>";
|
||||
$output .= "<ul class='dropdown-menu' id='adminMenu'>";
|
||||
foreach($this->lang->admin->menuList as $menuKey => $menuGroup)
|
||||
{
|
||||
$class = $menuKey == $currentMenuKey ? "class='active'" : '';
|
||||
if($menuGroup['disabled']) $class .= ' disabled';
|
||||
$output .= "<li $class>" . html::a($menuGroup['disabled'] ? '###' : $menuGroup['link'], "<img src='/static/svg/admin-$menuKey.svg'/> {$menuGroup['name']}") . "</li>";
|
||||
$output .= "<li $class>" . html::a($menuGroup['disabled'] ? '###' : $menuGroup['link'], "<img src='/static/svg/admin-$menuKey.svg' /> {$menuGroup['name']}") . "</li>";
|
||||
}
|
||||
$output .= "</ul></div>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user