Exemple #1
0
 protected function _prepareLayout()
 {
     !$this->isNeedToHideRecent() && $this->addTab(self::TAB_ID_RECENT, ['label' => $this->__('Recently Used'), 'title' => $this->__('Recently Used'), 'content' => $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs\\Recent')->toHtml(), 'active' => true]);
     $this->addTab(self::TAB_ID_BROWSE, ['label' => $this->__('Browse'), 'title' => $this->__('Browse'), 'content' => $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs\\Browse')->toHtml(), 'active' => $this->isNeedToHideRecent() ? true : false]);
     $this->addTab(self::TAB_ID_SEARCH, ['label' => $this->__('Search'), 'title' => $this->__('Search'), 'content' => $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs\\Search')->toHtml()]);
     return parent::_prepareLayout();
 }
Exemple #2
0
 protected function _prepareLayout()
 {
     $hideRecent = $this->getHelper('Data\\GlobalData')->getValue('category_chooser_hide_recent');
     !$hideRecent && $this->addTab(self::TAB_ID_RECENT, array('label' => $this->__('Recently Used'), 'title' => $this->__('Recently Used'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Recent')->toHtml(), 'active' => true));
     $this->addTab(self::TAB_ID_BROWSE, array('label' => $this->__('Browse'), 'title' => $this->__('Browse'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Browse')->toHtml(), 'active' => $hideRecent ? true : false));
     $this->addTab(self::TAB_ID_SEARCH, array('label' => $this->__('Search'), 'title' => $this->__('Search'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Search')->toHtml()));
     $this->addTab(self::TAB_ID_ATTRIBUTE, array('label' => $this->__('Magento Attribute'), 'title' => $this->__('Magento Attribute'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Attribute')->toHtml()));
     return parent::_prepareLayout();
 }
Exemple #3
0
 protected function _prepareLayout()
 {
     $this->css->addFile('log/grid.css');
     parent::_prepareLayout();
 }