New bootstrap-based layout #30
@ -15,9 +15,10 @@ class AdminMenu extends Menu
|
||||
if (!$user->isAdmin())
|
||||
return;
|
||||
|
||||
$this->items[] = [
|
||||
$this->items[0] = [
|
||||
'label' => 'Admin',
|
||||
'icon' => 'gear',
|
||||
'badge' => ErrorLog::getCount(),
|
||||
'subs' => [
|
||||
[
|
||||
'uri' => '/managealbums/',
|
||||
@ -43,6 +44,9 @@ class AdminMenu extends Menu
|
||||
],
|
||||
];
|
||||
|
||||
if ($this->items[0]['badge'] == 0)
|
||||
unset($this->items[0]['badge']);
|
||||
|
||||
foreach ($this->items as $i => $item)
|
||||
{
|
||||
if (isset($item['uri']))
|
||||
|
Loading…
Reference in New Issue
Block a user