public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_whitelist'] = array('href' => self::$currentIndex . '&addneo_whitelist&token=' . $this->token, 'desc' => $this->l('Add new whitelist', null, null, false), 'icon' => 'process-icon-new'); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); /*if (empty($this->display)) $this->page_header_toolbar_btn['new_order'] = array( 'href' => self::$currentIndex.'&addorder&token='.$this->token, 'desc' => $this->l('Add new order', null, null, false), 'icon' => 'process-icon-new' ); if ($this->display == 'add') unset($this->page_header_toolbar_btn['save']); if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->page_header_toolbar_btn['new_order']) && Shop::isFeatureActive()) unset($this->page_header_toolbar_btn['new_order']);*/ }