|
|
@ -6,13 +6,16 @@ use Backend\Classes\Controller as BackendController; |
|
|
|
use Cms\Classes\Controller as CmsController; |
|
|
|
use Cms\Classes\Page as CmsPage; |
|
|
|
use System\Classes\PluginBase; |
|
|
|
use System\Traits\AssetMaker; |
|
|
|
|
|
|
|
/** |
|
|
|
* Menu Plugin Information File |
|
|
|
*/ |
|
|
|
class Plugin extends PluginBase |
|
|
|
{ |
|
|
|
protected const ICON = 'icon-sliders'; |
|
|
|
const ICON = 'icon-sliders'; |
|
|
|
|
|
|
|
use AssetMaker; |
|
|
|
|
|
|
|
/** |
|
|
|
* @var CmsController |
|
|
@ -77,6 +80,12 @@ class Plugin extends PluginBase |
|
|
|
$config = $page->theme->getConfig(); |
|
|
|
$page->theme->menu = $this->getMenu(optional($config)['menu'] ?: [], !!optional($config)['pageTitleMoreImportant']); |
|
|
|
}); |
|
|
|
|
|
|
|
\Event::listen('backend.page.beforeDisplay', function($controller, $action, $params) { |
|
|
|
$this->addCss('/plugins/wms/menu/assets/css/_wms_extend_menu.css'); |
|
|
|
|
|
|
|
\Block::append('head', $this->makeAssets('css')); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public function registerNavigation() |
|
|
|