|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
namespace Wms\Menu\Classes; |
|
|
namespace Wms\Menu\Classes; |
|
|
|
|
|
|
|
|
|
|
|
use Backend\Classes\SideMenuItem; |
|
|
use Backend\Models\User; |
|
|
use Backend\Models\User; |
|
|
use System\Classes\PluginManager; |
|
|
use System\Classes\PluginManager; |
|
|
|
|
|
|
|
@ -51,13 +52,20 @@ class Extend |
|
|
if ($page) { |
|
|
if ($page) { |
|
|
self::$navigation['sideMenu'][$name] = [ |
|
|
self::$navigation['sideMenu'][$name] = [ |
|
|
'label' => isset($page['label']) ? $page['label'] : 'wms.menu::lang.no-name', |
|
|
'label' => isset($page['label']) ? $page['label'] : 'wms.menu::lang.no-name', |
|
|
'group' => $group, |
|
|
|
|
|
'url' => isset($page['url']) ? $page['url'] : '#', |
|
|
'url' => isset($page['url']) ? $page['url'] : '#', |
|
|
'icon' => isset($page['icon']) ? $page['icon'] : 'icon-leaf', |
|
|
'icon' => isset($page['icon']) ? $page['icon'] : 'icon-leaf', |
|
|
'icon_base64' => isset($page['icon_base64']) ? $page['icon_base64'] : '', |
|
|
|
|
|
'icon_base64_minimized' => isset($page['icon_base64_minimized']) ? $page['icon_base64_minimized'] : '', |
|
|
|
|
|
|
|
|
'attributes' => [ |
|
|
|
|
|
'group' => $group, |
|
|
|
|
|
'icon_base64' => isset($page['icon_base64']) ? $page['icon_base64'] : '', |
|
|
|
|
|
'icon_base64_minimized' => isset($page['icon_base64_minimized']) ? $page['icon_base64_minimized'] : '', |
|
|
|
|
|
'keywords' => isset($page['keywords']) ? $page['keywords'] : '', |
|
|
|
|
|
'description' => isset($page['description']) ? $page['description'] : '' |
|
|
|
|
|
], |
|
|
'permissions' => isset($page['permissions']) ? $page['permissions'] : ['wms.*'], |
|
|
'permissions' => isset($page['permissions']) ? $page['permissions'] : ['wms.*'], |
|
|
]; |
|
|
]; |
|
|
|
|
|
/** |
|
|
|
|
|
* @see SideMenuItem::createFromArray() |
|
|
|
|
|
*/ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|