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(); }
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(); }
public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_tax_rules_group'] = array('href' => self::$currentIndex . '&addtax_rules_group&token=' . $this->token, 'desc' => $this->l('Add new tax rules group', null, null, false), 'icon' => 'process-icon-new'); } parent::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(); } }
public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['export_cart'] = array('href' => self::$currentIndex . '&exportcart&token=' . $this->token, 'desc' => $this->l('Export carts', null, null, false), 'icon' => 'process-icon-export'); } parent::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(); }
public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['export_cart'] = array('href' => self::$currentIndex . '&exportcart&token=' . $this->token, 'desc' => $this->trans('Export carts', array(), 'Admin.OrdersCustomers.Feature'), 'icon' => 'process-icon-export'); } parent::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(); }
public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_attachment'] = array('href' => self::$currentIndex . '&addattachment&token=' . $this->token, 'desc' => $this->trans('Add new attachment', array(), 'Admin.Catalog.Feature'), 'icon' => 'process-icon-new'); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_webservice'] = array('href' => self::$currentIndex . '&addwebservice_account&token=' . $this->token, 'desc' => $this->l('Add new webservice key', null, null, false), 'icon' => 'process-icon-new'); } parent::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(); }
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); }
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(); }
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(); }
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); }
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(); }
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(); }
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'); } }
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(); }
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)); }
public function initPageHeaderToolbar() { if ($this->display == 'details') { $this->page_header_toolbar_btn['back'] = array('href' => Context::getContext()->link->getAdminLink('AdminSupplyOrders'), 'desc' => $this->l('Back to list', null, null, false), 'icon' => 'process-icon-back'); } elseif (empty($this->display)) { $this->page_header_toolbar_btn['new_supply_order'] = array('href' => self::$currentIndex . '&addsupply_order&token=' . $this->token, 'desc' => $this->l('Add new supply order', null, null, false), 'icon' => 'process-icon-new'); $this->page_header_toolbar_btn['new_supply_order_template'] = array('href' => self::$currentIndex . '&addsupply_order&mod=template&token=' . $this->token, 'desc' => $this->l('Add new supply order template', null, null, false), 'icon' => 'process-icon-new'); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { $this->page_header_toolbar_title = $this->l('Menus'); if ($this->display == 'details') { $this->page_header_toolbar_btn['back_to_list'] = array('href' => Context::getContext()->link->getAdminLink('AdminTabs'), 'desc' => $this->l('Back to list', null, null, false), 'icon' => 'process-icon-back'); } elseif (empty($this->display)) { $this->page_header_toolbar_btn['new_menu'] = array('href' => self::$currentIndex . '&addtab&token=' . $this->token, 'desc' => $this->l('Add new menu', null, null, false), 'icon' => 'process-icon-new'); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { $this->page_header_toolbar_title = $this->l('Instant stock status'); if ($this->display == 'details') { $this->page_header_toolbar_btn['back_to_list'] = array('href' => Context::getContext()->link->getAdminLink('AdminStockInstantState') . (Tools::getValue('id_warehouse') ? '&id_warehouse=' . Tools::getValue('id_warehouse') : ''), 'desc' => $this->l('Back to list', null, null, false), 'icon' => 'process-icon-back'); } elseif (Tools::isSubmit('id_warehouse') && (int) Tools::getValue('id_warehouse') != -1) { $this->page_header_toolbar_btn['export-stock-state-quantities-csv'] = array('short' => $this->l('Export this list as CSV', null, null, false), 'href' => $this->context->link->getAdminLink('AdminStockInstantState') . '&csv_quantities&id_warehouse=' . (int) $this->getCurrentCoverageWarehouse(), 'desc' => $this->l('Export Quantities (CSV)', null, null, false), 'class' => 'process-icon-export'); $this->page_header_toolbar_btn['export-stock-state-prices-csv'] = array('short' => $this->l('Export this list as CSV', null, null, false), 'href' => $this->context->link->getAdminLink('AdminStockInstantState') . '&csv_prices&id_warehouse=' . (int) $this->getCurrentCoverageWarehouse(), 'desc' => $this->l('Export Prices (CSV)', null, null, false), 'class' => 'process-icon-export'); } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); if ($this->display != 'add' && $this->display != 'edit') { if ($this->id_object) { $this->loadObject(); } if (!$this->id_shop && $this->object && $this->object->id_shop) { $this->id_shop = $this->object->id_shop; } $this->page_header_toolbar_btn['edit'] = array('desc' => $this->l('Edit this shop'), 'href' => $this->context->link->getAdminLink('AdminShop') . '&updateshop&shop_id=' . (int) $this->id_shop); $this->page_header_toolbar_btn['new'] = array('desc' => $this->l('Add a new URL'), 'href' => $this->context->link->getAdminLink('AdminShopUrl') . '&add' . $this->table . '&shop_id=' . (int) $this->id_shop); } }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); if (!$this->display && $this->id_shop_group) { if ($this->id_object) { $this->loadObject(); } if (!$this->id_shop_group && $this->object && $this->object->id_shop_group) { $this->id_shop_group = $this->object->id_shop_group; } $this->page_header_toolbar_btn['edit'] = array('desc' => $this->l('Edit this shop group'), 'href' => $this->context->link->getAdminLink('AdminShopGroup') . '&updateshop_group&id_shop_group=' . $this->id_shop_group); $this->page_header_toolbar_btn['new'] = array('desc' => $this->l('Add new shop'), 'href' => $this->context->link->getAdminLink('AdminShop') . '&add' . $this->table . '&id_shop_group=' . $this->id_shop_group); } }
public function initPageHeaderToolbar() { if (empty($this->display)) { $this->page_header_toolbar_btn['new_manufacturer'] = array('href' => self::$currentIndex . '&addmanufacturer&token=' . $this->token, 'desc' => $this->l('Add new manufacturer', null, null, false), 'icon' => 'process-icon-new'); $this->page_header_toolbar_btn['new_manufacturer_address'] = array('href' => self::$currentIndex . '&addaddress&token=' . $this->token, 'desc' => $this->l('Add new manufacturer address', null, null, false), 'icon' => 'process-icon-new'); } elseif ($this->display == 'editaddresses' || $this->display == 'addaddress') { // Default cancel button - like old back link if (!isset($this->no_back) || $this->no_back == false) { $back = Tools::safeOutput(Tools::getValue('back', '')); if (empty($back)) { $back = self::$currentIndex . '&token=' . $this->token; } $this->page_header_toolbar_btn['cancel'] = array('href' => $back, 'desc' => $this->l('Cancel', null, null, false)); } } parent::initPageHeaderToolbar(); }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); $this->page_header_toolbar_btn = array(); }
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']); } }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); if (empty($this->display)) { if (!defined('_PS_HOST_MODE_')) { $this->page_header_toolbar_btn['import_theme'] = array('href' => self::$currentIndex . '&action=importtheme&token=' . $this->token, 'desc' => $this->l('Add new theme', null, null, false), 'icon' => 'process-icon-new'); } if (defined('_PS_HOST_MODE_')) { unset($this->toolbar_btn['new']); } $this->page_header_toolbar_btn['export_theme'] = array('href' => self::$currentIndex . '&action=exporttheme&token=' . $this->token, 'desc' => $this->l('Export theme', null, null, false), 'icon' => 'process-icon-export'); } if ($this->display == 'importtheme') { $this->toolbar_title[] = $this->l('Import theme'); } elseif ($this->display == 'exporttheme') { $this->toolbar_title[] = $this->l('Export theme'); } else { $this->toolbar_title[] = $this->l('Theme'); } $title = implode(' ' . Configuration::get('PS_NAVIGATION_PIPE') . ' ', $this->toolbar_title); $this->page_header_toolbar_title = $title; }
public function initPageHeaderToolbar() { parent::initPageHeaderToolbar(); unset($this->page_header_toolbar_btn['back']); }