/**
  * Set media files (CSS, javaScript)
  */
 public function setMedia()
 {
     $this->addJquery();
     $this->addJS($this->path . 'js/socialuserheader.js');
     $this->addCSS($this->path . 'css/socialuserheader.css');
     parent::setMedia();
 }
Ejemplo n.º 2
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     $this->addJS(array(_PS_JS_DIR_ . 'vendor/d3.v3.min.js', __PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $this->bo_theme . '/js/vendor/nv.d3.min.js', _PS_JS_DIR_ . '/admin/dashboard.js'));
     $this->addCSS(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $this->bo_theme . '/css/vendor/nv.d3.css');
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('smartWizard');
     $this->addJqueryPlugin('typewatch');
     $this->addJs(_PS_JS_DIR_ . 'admin/carrier_wizard.js');
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJs(_PS_JS_DIR_ . '/admin/email.js');
     Media::addJsDefL('textMsg', $this->l('This is a test message. Your server is now configured to send email.', null, true, false));
     Media::addJsDefL('textSubject', $this->l('Test message -- Prestashop', null, true, false));
     Media::addJsDefL('textSendOk', $this->l('A test email has been sent to the email address you provided.', null, true, false));
     Media::addJsDefL('textSendError', $this->l('Error: Please check your configuration', null, true, false));
     Media::addJsDefL('token_mail', $this->token);
     Media::addJsDefL('errorMail', $this->l('This email address is not valid', null, true, false));
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin(array('autocomplete', 'fancybox', 'tablefilter'));
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(_PS_JS_DIR_ . 'admin/attributes.js');
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     $this->addJS(_PS_JS_DIR_ . 'vendor/d3.v3.min.js');
     $this->addJS('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false');
     if ($this->tabAccess['edit'] == 1 && $this->display == 'view') {
         $this->addJS(_PS_JS_DIR_ . 'admin_order.js');
         $this->addJS(_PS_JS_DIR_ . 'tools.js');
         $this->addJqueryPlugin('autocomplete');
     }
     $margin = Configuration::get('PROFIT_MARGIN');
     $price_type = Configuration::get('PRODUCT_DYNAMIC_PRICE');
     if (isset($margin) && $price_type == 1) {
         $margin = floatval($margin) / 100;
         $margin = 1 - $margin;
     } else {
         $margin = 1;
     }
     $this->context->smarty->assign('profit_margin', $margin);
 }
Ejemplo n.º 8
0
 public function setMedia()
 {
     parent::setMedia();
     $bo_theme = Validate::isLoadedObject($this->context->employee) && $this->context->employee->bo_theme ? $this->context->employee->bo_theme : 'default';
     if (!file_exists(_PS_BO_ALL_THEMES_DIR_ . $bo_theme . DIRECTORY_SEPARATOR . 'template')) {
         $bo_theme = 'default';
     }
     $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.iframe-transport.js');
     $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.fileupload.js');
     $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.fileupload-process.js');
     $this->addJs(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $bo_theme . '/js/jquery.fileupload-validate.js');
     $this->addJs(__PS_BASE_URI__ . 'js/vendor/spin.js');
     $this->addJs(__PS_BASE_URI__ . 'js/vendor/ladda.js');
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJs(_PS_JS_DIR_ . '/admin/attachments.js');
     Media::addJsDefL('confirm_text', $this->l('This attachment is associated with the following products, do you really want to  delete it?', null, true, false));
 }
Ejemplo n.º 10
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $this->bo_theme . '/js/vendor/jquery-passy.js');
     $this->addjQueryPlugin('validate');
     $this->addJS(_PS_JS_DIR_ . 'jquery/plugins/validate/localization/messages_' . $this->context->language->iso_code . '.js');
 }
 /**
  * AdminController::setMedia() override
  * @see AdminController::setMedia()
  */
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('fieldselection');
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('highlight');
 }
Ejemplo n.º 13
0
 public function setMedia()
 {
     parent::setMedia(true);
 }
Ejemplo n.º 14
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     $this->addJS(_PS_JS_DIR_ . 'vendor/d3.v3.min.js');
     $this->addJS('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false');
     if ($this->tabAccess['edit'] == 1 && $this->display == 'view') {
         $this->addJS(_PS_JS_DIR_ . 'admin_order.js');
         $this->addJS(_PS_JS_DIR_ . 'tools.js');
         $this->addJqueryPlugin('autocomplete');
     }
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->context->controller->addJqueryUI('ui.datepicker');
 }
Ejemplo n.º 16
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     if ($this->tabAccess['edit'] == 1 && $this->display == 'view') {
         $this->addJS(_PS_JS_DIR_ . 'admin_order.js');
         $this->addJS(_PS_JS_DIR_ . 'tools.js');
         $this->addJqueryPlugin('autocomplete');
     }
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(_PS_JS_DIR_ . 'admin/themes.js');
     if ($this->context->mode == Context::MODE_HOST && Tools::getValue('action') == 'importtheme') {
         $this->addJS(_PS_JS_DIR_ . 'admin/addons.js');
     }
 }
Ejemplo n.º 18
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addjQueryPlugin('tagify', null, false);
 }
 public function setMedia()
 {
     return parent::setMedia();
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('fancybox');
     $this->addJqueryUi('ui.sortable');
 }
 public function setMedia()
 {
     parent::setMedia();
     if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
         $this->addJqueryPlugin('excanvas');
     }
     $this->addJqueryPlugin('flot');
     $this->addJqueryPlugin('fancybox');
 }
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUi('ui.widget');
     $this->addJqueryPlugin('tagify');
 }
Ejemplo n.º 23
0
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <*****@*****.**>
*  @copyright  2007-2016 PrestaShop SA
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/
$con = new AdminController();
$tab = new Tab((int) Tab::getIdFromClassName(Tools::getValue('controller')));
$con->id = $tab->id;
$con->init();
$con->initToolbar();
$con->initPageHeaderToolbar();
$con->setMedia();
$con->initHeader();
$con->initFooter();
$title = array($tab->getFieldByLang('name'));
Context::getContext()->smarty->assign(array('navigationPipe', Configuration::get('PS_NAVIGATION_PIPE'), 'meta_title' => implode(' ' . Configuration::get('PS_NAVIGATION_PIPE') . ' ', $title), 'display_header' => true, 'display_header_javascript' => true, 'display_footer' => true));
$dir = Context::getContext()->smarty->getTemplateDir(0) . 'controllers' . DIRECTORY_SEPARATOR . trim($con->override_folder, '\\/') . DIRECTORY_SEPARATOR;
$header_tpl = file_exists($dir . 'header.tpl') ? $dir . 'header.tpl' : 'header.tpl';
$tool_tpl = file_exists($dir . 'page_header_toolbar.tpl') ? $dir . 'page_header_toolbar.tpl' : 'page_header_toolbar.tpl';
Context::getContext()->smarty->assign(array('show_page_header_toolbar' => true, 'title' => implode(' ' . Configuration::get('PS_NAVIGATION_PIPE') . ' ', $title), 'toolbar_btn' => array()));
echo Context::getContext()->smarty->fetch($header_tpl);
echo Context::getContext()->smarty->fetch($tool_tpl);
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin(array('typewatch', 'fancybox', 'autocomplete'));
 }
Ejemplo n.º 25
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin(array('autocomplete', 'fancybox', 'tablefilter'));
     if ($this->context->mode == Context::MODE_HOST && Tools::isSubmit('addnewmodule')) {
         $this->addJS(_PS_JS_DIR_ . 'admin/addons.js');
     }
 }
Ejemplo n.º 26
0
 public function setMedia()
 {
     parent::setMedia();
     $this->addJs(_PS_JS_DIR_ . '/admin/attachments.js');
     Media::addJsDefL('confirm_text', $this->trans('This attachment is associated with the following products, do you really want to  delete it?', array(), 'Admin.Catalog.Notification'));
 }
 public function setMedia()
 {
     $this->addPstMedia();
     parent::setMedia();
 }