本文整理汇总了PHP中AdminController::initPageHeaderToolbar方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::initPageHeaderToolbar方法的具体用法?PHP AdminController::initPageHeaderToolbar怎么用?PHP AdminController::initPageHeaderToolbar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::initPageHeaderToolbar方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_specific_price_rule'] = array('href' => self::$currentIndex . '&addspecific_price_rule&token=' . $this->token, 'desc' => $this->l('Add new catalog price rule', null, null, false), 'icon' => 'process-icon-new');
}
parent::initPageHeaderToolbar();
}
示例2: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_order_message'] = array('href' => self::$currentIndex . '&addorder_message&token=' . $this->token, 'desc' => $this->l('Add new order message'), 'icon' => 'process-icon-new');
}
parent::initPageHeaderToolbar();
}
示例3: initPageHeaderToolbar
/**
* Build List linked Icons Toolbar
*/
public function initPageHeaderToolbar()
{
$this->context->controller->addJS(__PS_BASE_URI__ . 'js/jquery/ui/jquery.ui.sortable.min.js');
if (file_exists(_PS_THEME_DIR_ . 'js/modules/leoblog/assets/admin/jquery.nestable.js')) {
$this->context->controller->addJS(__PS_BASE_URI__ . 'modules/leoblog/assets/admin/jquery.nestable.js');
} else {
$this->context->controller->addJS(__PS_BASE_URI__ . 'modules/leoblog/views/js/admin/jquery.nestable.js');
}
if (file_exists(_PS_THEME_DIR_ . 'js/modules/leoblog/assets/admin/form.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->context->controller->addJS(__PS_BASE_URI__ . 'js/jquery/plugins/jquery.cookie-plugin.js');
$this->context->controller->addJS(__PS_BASE_URI__ . 'js/jquery/ui/jquery.ui.tabs.min.js');
$this->context->controller->addCss(__PS_BASE_URI__ . 'js/jquery/ui/themes/base/jquery.ui.tabs.css');
if (file_exists(_PS_THEME_DIR_ . 'css/modules/leoblog/assets/admin/form.css')) {
$this->context->controller->addCss(__PS_BASE_URI__ . 'modules/leoblog/assets/admin/form.css');
} else {
$this->context->controller->addCss(__PS_BASE_URI__ . 'modules/leoblog/views/css/admin/form.css');
}
if (empty($this->display)) {
parent::initPageHeaderToolbar();
}
}
示例4: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_store'] = array('href' => self::$currentIndex . '&addstore&token=' . $this->token, 'desc' => $this->trans('Add new store', array(), 'Admin.ShopParameters.Feature'), 'icon' => 'process-icon-new');
}
parent::initPageHeaderToolbar();
}
示例5: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
if ($this->display == 'details') {
$this->page_header_toolbar_btn['back_to_list'] = array('href' => Context::getContext()->link->getAdminLink('AdminStockManagement'), 'desc' => $this->l('Back to list', null, null, false), 'icon' => 'process-icon-back');
}
parent::initPageHeaderToolbar();
}
示例6: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Carriers');
if ($this->display != 'view') {
$this->page_header_toolbar_btn['new_carrier'] = array('href' => $this->context->link->getAdminLink('AdminCarriers') . '&onboarding_carrier', 'desc' => $this->l('Add new carrier', null, null, false), 'icon' => 'process-icon-new');
}
parent::initPageHeaderToolbar();
}
示例7: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Dashboard');
$this->page_header_toolbar_btn['switch_demo'] = array('desc' => $this->l('Demo mode', null, null, false), 'icon' => 'process-icon-toggle-' . (Configuration::get('PS_DASHBOARD_SIMULATION') ? 'on' : 'off'), 'help' => $this->l('This mode displays sample data so you can try your dashboard without real numbers.', null, null, false));
parent::initPageHeaderToolbar();
// Remove the last element on this controller to match the title with the rule of the others
array_pop($this->meta_title);
}
示例8: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Stock movement');
if (Tools::isSubmit('id_warehouse') && (int) Tools::getValue('id_warehouse') != -1) {
$this->page_header_toolbar_btn['export-stock-mvt-csv'] = array('short' => $this->l('Export this list as CSV', null, null, false), 'href' => $this->context->link->getAdminLink('AdminStockMvt') . '&csv&id_warehouse=' . (int) $this->getCurrentWarehouseId(), 'desc' => $this->l('Export (CSV)', null, null, false), 'imgclass' => 'export');
}
parent::initPageHeaderToolbar();
}
示例9: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
$this->initToolbar();
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_contact'] = array('href' => self::$currentIndex . '&addcontact&token=' . $this->token, 'desc' => $this->l('Add new contact', null, null, false), 'icon' => 'process-icon-new');
}
parent::initPageHeaderToolbar();
}
示例10: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
parent::initPageHeaderToolbar();
$this->page_header_toolbar_title = $this->l('Dashboard');
$this->page_header_toolbar_btn = array();
// Remove the last element on this controller to match the title with the rule of the others
array_pop($this->meta_title);
}
示例11: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Stock coverage');
if ($this->display == 'details') {
$this->page_header_toolbar_btn['back_to_list'] = array('href' => Context::getContext()->link->getAdminLink('AdminStockCover') . (Tools::getValue('coverage_period') ? '&coverage_period=' . Tools::getValue('coverage_period') : '') . (Tools::getValue('warn_days') ? '&warn_days=' . Tools::getValue('warn_days') : '') . (Tools::getValue('id_warehouse') ? '&id_warehouse=' . Tools::getValue('id_warehouse') : ''), 'desc' => $this->l('Back to list', null, null, false), 'icon' => 'process-icon-back');
}
parent::initPageHeaderToolbar();
}
示例12: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->trans('Carriers', array(), 'Admin.Shipping.Feature');
if ($this->display != 'view') {
$this->page_header_toolbar_btn['new_carrier'] = array('href' => $this->context->link->getAdminLink('AdminCarrierWizard'), 'desc' => $this->trans('Add new carrier', array(), 'Admin.Shipping.Feature'), 'icon' => 'process-icon-new');
}
parent::initPageHeaderToolbar();
}
示例13: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
parent::initPageHeaderToolbar();
if ($this->display != 'add' && $this->display != 'edit') {
$this->page_header_toolbar_btn['new'] = array('desc' => $this->l('Add a new shop group'), 'href' => self::$currentIndex . '&add' . $this->table . '&token=' . $this->token);
$this->page_header_toolbar_btn['new_2'] = array('desc' => $this->l('Add a new shop'), 'href' => $this->context->link->getAdminLink('AdminShop') . '&addshop', 'imgclass' => 'new_2', 'icon' => 'process-icon-new');
}
}
示例14: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_search_engine'] = array('href' => self::$currentIndex . '&addsearch_engine&token=' . $this->token, 'desc' => $this->l('Add new search engine', null, null, false), 'icon' => 'process-icon-new');
}
$this->identifier_name = 'server';
parent::initPageHeaderToolbar();
}
示例15: initPageHeaderToolbar
public function initPageHeaderToolbar()
{
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_alias'] = array('href' => self::$currentIndex . '&addalias&token=' . $this->token, 'desc' => $this->l('Add new alias', null, null, false), 'icon' => 'process-icon-new');
}
$this->identifier_name = 'alias';
parent::initPageHeaderToolbar();
$this->toolbar_btn['import'] = array('href' => $this->context->link->getAdminLink('AdminImport', true) . '&import_type=alias', 'desc' => $this->l('Import', null, null, false));
}