mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-02 12:19:20 +02:00
fix & add admin icons
This commit is contained in:
parent
11768424a3
commit
a080b21408
@ -4,23 +4,23 @@ $menus = [
|
|||||||
['name' => 'Dashboard', 'icon' => 'tachometer-alt', 'order' => 10, 'link' => 'dashboard'],
|
['name' => 'Dashboard', 'icon' => 'tachometer-alt', 'order' => 10, 'link' => 'dashboard'],
|
||||||
['name' => 'News', 'icon' => 'newspaper', 'order' => 20, 'link' =>
|
['name' => 'News', 'icon' => 'newspaper', 'order' => 20, 'link' =>
|
||||||
[
|
[
|
||||||
['name' => 'View', 'link' => 'news', 'order' => 10],
|
['name' => 'View', 'link' => 'news', 'icon' => 'list', 'order' => 10],
|
||||||
['name' => 'Add news', 'link' => 'news&action=new&type=1', 'order' => 20],
|
['name' => 'Add news', 'link' => 'news&action=new&type=1', 'icon' => 'plus', 'order' => 20],
|
||||||
['name' => 'Add ticker', 'link' => 'news&action=new&type=2', 'order' => 30],
|
['name' => 'Add ticker', 'link' => 'news&action=new&type=2', 'icon' => 'plus', 'order' => 30],
|
||||||
['name' => 'Add article', 'link' => 'news&action=new&type=3', 'order' => 40],
|
['name' => 'Add article', 'link' => 'news&action=new&type=3', 'icon' => 'plus', 'order' => 40],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
['name' => 'Changelogs', 'icon' => 'newspaper', 'order' => 30, 'link' =>
|
['name' => 'Changelogs', 'icon' => 'newspaper', 'order' => 30, 'link' =>
|
||||||
[
|
[
|
||||||
['name' => 'View', 'link' => 'changelog', 'order' => 10],
|
['name' => 'View', 'link' => 'changelog', 'icon' => 'list', 'order' => 10],
|
||||||
['name' => 'Add', 'link' => 'changelog&action=new', 'order' => 20],
|
['name' => 'Add', 'link' => 'changelog&action=new', 'icon' => 'plus', 'order' => 20],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
['name' => 'Mailer', 'icon' => 'envelope', 'order' => 40, 'link' => 'mailer', 'disabled' => !config('mail_enabled')],
|
['name' => 'Mailer', 'icon' => 'envelope', 'order' => 40, 'link' => 'mailer', 'disabled' => !config('mail_enabled')],
|
||||||
['name' => 'Pages', 'icon' => 'book', 'order' => 50, 'link' =>
|
['name' => 'Pages', 'icon' => 'book', 'order' => 50, 'link' =>
|
||||||
[
|
[
|
||||||
['name' => 'View', 'link' => 'pages', 'order' => 10],
|
['name' => 'View', 'link' => 'pages', 'icon' => 'list', 'order' => 10],
|
||||||
['name' => 'Add', 'link' => 'pages&action=new', 'order' => 20],
|
['name' => 'Add', 'link' => 'pages&action=new', 'icon' => 'plus', 'order' => 20],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
['name' => 'Menus', 'icon' => 'list', 'order' => 60, 'link' => 'menus'],
|
['name' => 'Menus', 'icon' => 'list', 'order' => 60, 'link' => 'menus'],
|
||||||
@ -28,23 +28,23 @@ $menus = [
|
|||||||
['name' => 'Server Data', 'icon' => 'gavel', 'order' => 80, 'link' => 'data'],
|
['name' => 'Server Data', 'icon' => 'gavel', 'order' => 80, 'link' => 'data'],
|
||||||
['name' => 'Editor', 'icon' => 'edit', 'order' => 90, 'link' =>
|
['name' => 'Editor', 'icon' => 'edit', 'order' => 90, 'link' =>
|
||||||
[
|
[
|
||||||
['name' => 'Accounts', 'link' => 'accounts', 'order' => 10],
|
['name' => 'Accounts', 'link' => 'accounts', 'icon' => 'users', 'order' => 10],
|
||||||
['name' => 'Players', 'link' => 'players', 'order' => 20],
|
['name' => 'Players', 'link' => 'players', 'icon' => 'user-astronaut', 'order' => 20],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
['name' => 'Tools', 'icon' => 'tools', 'order' => 100, 'link' =>
|
['name' => 'Tools', 'icon' => 'tools', 'order' => 100, 'link' =>
|
||||||
[
|
[
|
||||||
['name' => 'Mass Account Actions', 'link' => 'tools&tool=account', 'order' => 10],
|
['name' => 'Mass Account Actions', 'link' => 'tools&tool=account', 'order' => 10],
|
||||||
['name' => 'Mass Teleport Actions', 'link' => 'tools&tool=teleport', 'order' => 20],
|
['name' => 'Mass Teleport Actions', 'link' => 'tools&tool=teleport', 'order' => 20],
|
||||||
['name' => 'Notepad', 'link' => 'notepad', 'order' => 30],
|
['name' => 'Notepad', 'link' => 'notepad', 'icon' => 'marker', 'order' => 30],
|
||||||
['name' => 'phpinfo', 'link' => 'phpinfo', 'order' => 40],
|
['name' => 'phpinfo', 'link' => 'phpinfo', 'icon' => 'server', 'order' => 40],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
['name' => 'Logs', 'icon' => 'bug', 'order' => 110, 'link' =>
|
['name' => 'Logs', 'icon' => 'bug', 'order' => 110, 'link' =>
|
||||||
[
|
[
|
||||||
['name' => 'Logs', 'link' => 'logs', 'order' => 10],
|
['name' => 'Logs', 'link' => 'logs', 'icon' => 'book', 'order' => 10],
|
||||||
['name' => 'Reports', 'link' => 'reports', 'order' => 20],
|
['name' => 'Reports', 'link' => 'reports', 'icon' => 'book', 'order' => 20],
|
||||||
['name' => 'Visitors', 'icon' => 'user', 'link' => 'visitors', 'order' => 30],
|
['name' => 'Visitors', 'link' => 'visitors', 'icon' => 'user', 'order' => 30],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -79,12 +79,12 @@
|
|||||||
$nav_construct .= ' active';
|
$nav_construct .= ' active';
|
||||||
$used_menu = true;
|
$used_menu = true;
|
||||||
}
|
}
|
||||||
$nav_construct .= '"><i class="far fa-' . (isset($sub_menu['icon']) ? $sub_menu['icon'] : 'circle') . ' nav-icon"></i><p>' . $sub_menu['name'] . '</p></a></li>';
|
$nav_construct .= '"><i class="fas fa-' . ($sub_menu['icon'] ?? 'circle') . ' nav-icon"></i><p>' . $sub_menu['name'] . '</p></a></li>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<li class="nav-item has-treeview<?php echo($used_menu ? ' menu-open' : '') ?>">
|
<li class="nav-item has-treeview<?php echo($used_menu ? ' menu-open' : '') ?>">
|
||||||
<a href="#" class="nav-link<?php echo($used_menu ? ' active' : '') ?>">
|
<a href="#" class="nav-link<?php echo($used_menu ? ' active' : '') ?>">
|
||||||
<i class="nav-icon fas fa-<?php echo(isset($menu['icon']) ? $menu['icon'] : 'link') ?>"></i>
|
<i class="nav-icon fas fa-<?php echo($menu['icon'] ?? 'link') ?>"></i>
|
||||||
<p><?php echo $menu['name'] ?></p><i class="right fas fa-angle-left"></i>
|
<p><?php echo $menu['name'] ?></p><i class="right fas fa-angle-left"></i>
|
||||||
</a>
|
</a>
|
||||||
<ul class="nav nav-treeview">
|
<ul class="nav nav-treeview">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user