[+] BO : Page header toolbar
This commit is contained in:
@@ -109,6 +109,27 @@ class AdminCmsContentControllerCore extends AdminController
|
||||
));
|
||||
}
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
$id_cms_category = (int)Tools::getValue('id_cms_category');
|
||||
if (!$id_cms_category)
|
||||
$id_cms_category = 1;
|
||||
|
||||
$this->page_header_toolbar_title = $this->l('CMS');
|
||||
$this->page_header_toolbar_btn['new_cms_category'] = array(
|
||||
'href' => self::$currentIndex.'&addcms_category&token='.$this->token,
|
||||
'desc' => $this->l('Add new CMS category'),
|
||||
'icon' => 'process-icon-new'
|
||||
);
|
||||
$this->page_header_toolbar_btn['new_cms_page'] = array(
|
||||
'href' => self::$currentIndex.'&addcms&id_cms_category='.$id_cms_category.'&token='.$this->token,
|
||||
'desc' => $this->l('Add new CMS page'),
|
||||
'icon' => 'process-icon-new'
|
||||
);
|
||||
|
||||
parent::initPageHeaderToolbar();
|
||||
}
|
||||
|
||||
public function postProcess()
|
||||
{
|
||||
if (Tools::isSubmit('submitDelcms')
|
||||
|
||||
Reference in New Issue
Block a user