Esempio n. 1
0
 protected function _init()
 {
     parent::_init();
     $this->viewPath = Base::getApp()->getController()->getTemplatePath() . DIRECTORY_SEPARATOR . 'Widget' . DIRECTORY_SEPARATOR;
     $this->items = \CMSBackend\Library\MobileMenu::$items;
     $this->items = \Toxotes\Plugin::applyFilters('custom_admin_mobile_nav', $this->items);
 }
Esempio n. 2
0
 protected function _init()
 {
     parent::_init();
     $this->viewPath = Base::getApp()->getController()->getTemplatePath() . DIRECTORY_SEPARATOR . 'Widget' . DIRECTORY_SEPARATOR;
     //f**k it
     foreach ($this->_menus as $m => $content) {
         $this->_menus[$m]['label'] = t($this->_menus[$m]['label']);
     }
     //Menu Widget
     $this->_addChildMenu('menu_widget', ['label' => t('Menu List'), 'url' => ['menu/default']]);
     $this->_addChildMenu('menu_widget', ['label' => t('Add Menu'), 'url' => ['menu/create']]);
     //Post
     $this->_addChildMenu('posts', ['label' => t('All Posts'), 'url' => ['post/default']]);
     $this->_addChildMenu('posts', ['label' => t('Compose New'), 'url' => ['post/create']]);
     $this->_addChildMenu('posts', ['label' => t('Categories'), 'url' => ['category/default', 'taxonomy' => 'category']]);
     $this->_addSiteContentMenu();
     $this->_addProductsMenu();
     $this->items = \Toxotes\Plugin::applyFilters('after_init_admin_main_nav', $this->items);
     $this->_addSystemMenu();
     $this->_buildMenu();
 }
Esempio n. 3
0
 protected function _init()
 {
     parent::_init();
     $this->viewPath = Base::getApp()->getController()->getTemplatePath() . DIRECTORY_SEPARATOR . 'Widget' . DIRECTORY_SEPARATOR;
     $this->items = \Toxotes\Plugin::applyFilters('custom_admin_left_sidebar', $this->items);
 }