Exemple #1
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $items = parent::defineItems();
     if (isset($items['store_setup']) && isset($items['store_setup'][static::ITEM_CHILDREN]) && isset($items['store_setup'][static::ITEM_CHILDREN]['tax_classes'])) {
         $items['store_setup'][static::ITEM_CHILDREN]['tax_classes'][static::ITEM_TARGET] = 'sales_tax';
     }
     return $items;
 }
Exemple #2
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $list = parent::defineItems();
     if (isset($list['catalog'])) {
         $list['catalog'][static::ITEM_CHILDREN]['reviews'] = array(static::ITEM_TITLE => static::t('Reviews'), static::ITEM_TARGET => 'reviews');
     }
     return $list;
 }
Exemple #3
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $items = parent::defineItems();
     if (isset($items['sales'])) {
         $items['sales'][static::ITEM_CHILDREN]['capost_returns'] = array(static::ITEM_TITLE => static::t('Returns'), static::ITEM_TARGET => 'capost_returns', static::ITEM_PERMISSION => 'manage orders', static::ITEM_WEIGHT => 400);
     }
     return $items;
 }
Exemple #4
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $items = parent::defineItems();
     if (isset($items['store_setup']) && isset($items['store_setup'][static::ITEM_CHILDREN])) {
         $items['store_setup'][static::ITEM_CHILDREN]['sitemap'] = array(static::ITEM_TITLE => static::t('XML sitemap'), static::ITEM_TARGET => 'sitemap', static::ITEM_WEIGHT => 2000);
     }
     return $items;
 }
Exemple #5
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $list = parent::defineItems();
     if (!isset($list['content'])) {
         $list['content'] = array(static::ITEM_TITLE => static::t('Content'), static::ITEM_TARGET => 'menus', static::ITEM_WEIGHT => 500, static::ITEM_ICON_SVG => 'images/contacts.svg', static::ITEM_CHILDREN => array());
     }
     $list['content'][static::ITEM_CHILDREN]['news_messages'] = array(static::ITEM_TITLE => static::t('News messages'), static::ITEM_TARGET => 'news_messages');
     return $list;
 }
Exemple #6
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $items = parent::defineItems();
     if (!isset($items['content'])) {
         $items['content'] = array(static::ITEM_TITLE => static::t('Content'), static::ITEM_TARGET => 'menus', static::ITEM_WEIGHT => 500, static::ITEM_ICON_SVG => 'images/contacts.svg', static::ITEM_CHILDREN => array());
     }
     $items['content'][static::ITEM_CHILDREN] += array('menus' => array(static::ITEM_TITLE => static::t('Menus'), static::ITEM_TARGET => 'menus', static::ITEM_PERMISSION => 'manage menus', static::ITEM_WEIGHT => 100), 'pages' => array(static::ITEM_TITLE => static::t('Pages'), static::ITEM_TARGET => 'pages', static::ITEM_PERMISSION => 'manage custom pages', static::ITEM_WEIGHT => 200));
     return $items;
 }
Exemple #7
0
 /**
  * Define items
  *
  * @return array
  */
 protected function defineItems()
 {
     $items = parent::defineItems();
     $items['users'][self::ITEM_CHILDREN]['roles'] = array(self::ITEM_TITLE => static::t('Roles'), self::ITEM_TARGET => 'roles', self::ITEM_WEIGHT => 300);
     return $items;
 }