public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_product_type'] = array('href' => self::$currentIndex . '&addtax&token=' . $this->token, 'desc' => $this->module->l('Add new product type', 'AdminNowProductType', null, false), 'icon' => 'process-icon-new'); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); $this->context->controller->addJS(__PS_BASE_URI__ . 'modules/leoblog/assets/admin/form.js'); $this->page_header_toolbar_title = $this->l('Dashboard'); $this->page_header_toolbar_btn = array(); }
/** * Build List linked Icons Toolbar */ public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['save'] = array('href' => 'index.php?tab=AdminLeotempcpPanel&token=' . Tools::getAdminTokenLite('AdminLeotempcpPanel') . '&action=savepos', 'id' => 'savepos', 'desc' => $this->l('Save Positions')); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { $link = $this->context->link; if (Tools::getValue('id_leoblog_blog')) { $this->page_header_toolbar_btn['save-and-preview'] = array('href' => $link->getAdminLink('AdminLeoblogComments') . '&id_leoblog_blog=' . Tools::getValue('id_leoblog_blog'), 'desc' => $this->l('Manage Comments'), 'icon' => 'icon-comment icon-3x process-icon-comment'); $this->page_header_toolbar_btn['save-and-stay'] = array('short' => 'SaveAndStay', 'href' => '#', 'desc' => $this->l('Save and stay')); } return parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); if (file_exists(_PS_THEME_DIR_ . 'js/modules/leoblog/assets/leoblog.js')) { $this->context->controller->addJS(__PS_BASE_URI__ . 'modules/leoblog/assets/admin/form.js'); } else { $this->context->controller->addJS(__PS_BASE_URI__ . 'modules/leoblog/views/js/admin/form.js'); } $this->page_header_toolbar_title = $this->l('Dashboard'); $this->page_header_toolbar_btn = array(); }
public function initPageHeaderToolbar() { $link = $this->context->link; if (Tools::getValue('id_leoblog_blog')) { $this->page_header_toolbar_btn['back-blog'] = array('href' => $link->getAdminLink('AdminLeoblogBlogs') . '&updateleoblog_blog&id_leoblog_blog=' . Tools::getValue('id_leoblog_blog'), 'desc' => $this->l('Back To The Blog'), 'icon' => 'icon-blog icon-3x process-icon-blog'); } if (Tools::getValue('id_comment')) { $this->page_header_toolbar_btn['save-and-stay'] = array('short' => 'SaveAndStay', 'href' => '#', 'desc' => $this->l('Save and stay')); } return parent::initPageHeaderToolbar(); }