// Toolbar modifs

This commit is contained in:
Jerome Nadaud
2013-10-08 18:42:07 +02:00
parent b7e13e2e7f
commit d88857610d
78 changed files with 871 additions and 626 deletions
+22 -11
View File
@@ -118,17 +118,28 @@ class AdminCmsContentControllerCore extends AdminController
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'
);
$this->page_header_toolbar_title = 'CMS';
if ($this->display == 'list')
{
$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'
);
}
else
{
$this->page_header_toolbar_btn['cancel'] = array(
'href' => self::$currentIndex.'&token='.$this->token,
'desc' => $this->l('Cancel')
);
}
if (is_array($this->page_header_toolbar_btn)
&& $this->page_header_toolbar_btn instanceof Traversable