public function setMedia() { parent::setMedia(); Tools::addCSS(_THEME_CSS_DIR_ . 'history.css'); Tools::addCSS(_THEME_CSS_DIR_ . 'addresses.css'); Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.scrollTo-1.4.2-min.js', _THEME_JS_DIR_ . 'history.js')); }
public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'product_list.css'); $this->addJS(_THEME_JS_DIR_ . 'header.js'); $this->addJS(_THEME_JS_DIR_ . 'product_list.js'); }
/** * Set default medias for this controller */ public function setMedia() { parent::setMedia(); $this->addJS(_PS_JS_DIR_ . 'validate.js'); $this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js'); $this->addJS(_THEME_JS_DIR_ . 'validate_fields.js'); }
/** * Set default medias for this controller */ public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'addresses.css'); $this->addJS(_THEME_JS_DIR_ . 'tools.js'); // retro compat themes 1.5 }
public function setMedia() { parent::setMedia(); $this->addCSS(array(_THEME_CSS_DIR_ . 'history.css', _THEME_CSS_DIR_ . 'addresses.css')); $this->addJqueryPlugin('scrollTo'); $this->addJS(array(_THEME_JS_DIR_ . 'history.js', _THEME_JS_DIR_ . 'tools.js')); }
public function setMedia() { parent::setMedia(); //if ($this->assignCase == 1) //Tools::addJS(_THEME_JS_DIR_.'cms.js'); //Tools::addCSS(_THEME_CSS_DIR_.'cms.css'); }
/** * Set default medias for this controller * @see FrontController::setMedia() */ public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'authentication.css'); $this->addJqueryPlugin('typewatch'); $this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js'); }
public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'sitemap.css'); $this->addJS(_THEME_JS_DIR_ . 'tools/treeManagement.js'); $this->addJS(_THEME_JS_DIR_ . 'header.js'); }
public function setMedia() { parent::setMedia(); Tools::addJS(_THEME_JS_DIR_ . 'slider.js'); Tools::addJS(_THEME_JS_DIR_ . 'slides.min.jquery.js'); Tools::addJS(_THEME_JS_DIR_ . 'jquery.slide.js'); Tools::addJS(_THEME_JS_DIR_ . 'jquery.form.js'); }
public function setMedia() { parent::setMedia(); Context::getContext()->controller->addCSS(array(_PS_CSS_DIR_ . 'jquery.cluetip.css' => 'all', _MODULE_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all')); if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) { $this->addJS(_THEME_JS_DIR_ . 'products-comparison.js'); } }
public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . '/comparator.css'); if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) { $this->addJS(_THEME_JS_DIR_ . 'products-comparison.js'); } }
public function setMedia() { parent::setMedia(); Context::getContext()->controller->addCSS(array(_PS_CSS_DIR_ . "jquery.cluetip.css" => "all", _MODULE_DIR_ . "category.css" => "all", _THEME_CSS_DIR_ . "product_list.css" => "all")); if (Configuration::get("PS_COMPARATOR_MAX_ITEM") > 0) { $this->addJS(_THEME_JS_DIR_ . "products-comparison.js"); } }
public function setMedia() { parent::setMedia(); Tools::addCSS(array(_PS_CSS_DIR_ . 'jquery.cluetip.css' => 'all', _THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all')); if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) { Tools::addJS(_THEME_JS_DIR_ . 'products-comparison.js'); } }
/** * Set default medias for this controller */ public function setMedia() { parent::setMedia(); //TODO : check why cluetip css is include without js file $this->addCSS(array(_THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all')); if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) { $this->addJS(_THEME_JS_DIR_ . 'products-comparison.js'); } }
/** * Set default medias for this controller * @see FrontController::setMedia() */ public function setMedia() { parent::setMedia(); if (Context::getContext()->getMobileDevice() === false) { $this->addCSS(_THEME_CSS_DIR_ . 'authentication.css'); } $this->addJqueryPlugin('typewatch'); $this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js'); }
/** * Set default medias for this controller * @see FrontController::setMedia() */ public function setMedia() { parent::setMedia(); if (!$this->useMobileTheme()) { $this->addCSS(_THEME_CSS_DIR_ . 'authentication.css'); } $this->addJqueryPlugin('typewatch'); $this->addJS(array(_THEME_JS_DIR_ . 'tools/vatManagement.js', _THEME_JS_DIR_ . 'tools/statesManagement.js', _THEME_JS_DIR_ . 'authentication.js', _PS_JS_DIR_ . 'validate.js')); }
/** * Set default medias for this controller */ public function setMedia() { parent::setMedia(); if ($this->context->getMobileDevice() == false) { //TODO : check why cluetip css is include without js file $this->addCSS(array(_THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all')); } $this->addJS(_THEME_JS_DIR_ . 'category.js'); }
public function setMedia() { parent::setMedia(); $this->addJS(_THEME_JS_DIR_ . 'carousel.js'); if ($this->assignCase == 1) { $this->addJS(_THEME_JS_DIR_ . 'cms.js'); } $this->addCSS(_THEME_CSS_DIR_ . 'cms.css'); }
public function setMedia() { parent::setMedia(); Tools::addCSS(_THEME_CSS_DIR_ . 'product.css'); Tools::addCSS(_PS_CSS_DIR_ . 'jquery.fancybox-1.3.4.css', 'screen'); Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.fancybox-1.3.4.js', _PS_JS_DIR_ . 'jquery/jquery.idTabs.modified.js', _PS_JS_DIR_ . 'jquery/jquery.scrollTo-1.4.2-min.js', _PS_JS_DIR_ . 'jquery/jquery.serialScroll-1.2.2-min.js', _THEME_JS_DIR_ . 'tools.js', _THEME_JS_DIR_ . 'product.js')); if (Configuration::get('PS_DISPLAY_JQZOOM') == 1) { Tools::addCSS(_PS_CSS_DIR_ . 'jqzoom.css', 'screen'); Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.jqzoom.js'); } }
/** * Sets default medias for this controller */ public function setMedia() { parent::setMedia(); if (!$this->useMobileTheme()) { //TODO : check why cluetip css is include without js file $this->addCSS(array(_THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all')); } $scenes = Scene::getScenes($this->category->id, $this->context->language->id, true, false); if ($scenes && count($scenes)) { $this->addJS(_THEME_JS_DIR_ . 'scenes.js'); $this->addJqueryPlugin(array('scrollTo', 'serialScroll')); } $this->addJS(_THEME_JS_DIR_ . 'category.js'); }
public function setMedia() { parent::setMedia(); if ($this->context->getMobileDevice() == false) { $this->addCSS(_THEME_CSS_DIR_ . 'product.css'); $this->addCSS(_PS_CSS_DIR_ . 'jquery.fancybox-1.3.4.css', 'screen'); $this->addJqueryPlugin(array('fancybox', 'idTabs', 'scrollTo', 'serialScroll')); $this->addJS(array(_THEME_JS_DIR_ . 'tools.js', _THEME_JS_DIR_ . 'product.js')); } else { $this->addJqueryPlugin(array('scrollTo', 'serialScroll')); $this->addJS(array(_THEME_JS_DIR_ . 'tools.js', _THEME_MOBILE_JS_DIR_ . 'product.js', _THEME_MOBILE_JS_DIR_ . 'jquery.touch-gallery.js')); } if (Configuration::get('PS_DISPLAY_JQZOOM') == 1) { $this->addJqueryPlugin('jqzoom'); } }
public function setMedia() { parent::setMedia(); if (count($this->errors)) { return; } if (!$this->useMobileTheme()) { $this->addCSS(_THEME_CSS_DIR_ . 'product.css'); $this->addCSS(_THEME_CSS_DIR_ . 'print.css', 'print'); $this->addJqueryPlugin(array('fancybox', 'idTabs', 'scrollTo', 'serialScroll', 'bxslider')); $this->addJS(array(_THEME_JS_DIR_ . 'tools.js', _THEME_JS_DIR_ . 'product.js')); } else { $this->addJqueryPlugin(array('scrollTo', 'serialScroll')); $this->addJS(array(_THEME_JS_DIR_ . 'tools.js', _THEME_MOBILE_JS_DIR_ . 'product.js', _THEME_MOBILE_JS_DIR_ . 'jquery.touch-gallery.js')); } if (Configuration::get('PS_DISPLAY_JQZOOM') == 1) { $this->addJqueryPlugin('jqzoom'); } }
public function setMedia() { parent::setMedia(); Tools::addCSS(_THEME_CSS_DIR_ . 'stores.css'); if (!Configuration::get('PS_STORES_SIMPLIFIED')) { Tools::addJS(_THEME_JS_DIR_ . 'stores.js'); } Tools::addJS('http://maps.google.com/maps/api/js?sensor=true'); }
public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'history.css'); $this->addCSS(_THEME_CSS_DIR_ . 'addresses.css'); }
* * @author PaymentSense <*****@*****.**> * @copyright 2013 PaymentSense * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * This file is part of the Prestashop PaymentSense Re-Directed Payment Module See paymentsense.php for Licensing and support info. File Last Modified: 12/03/2013 - By Shaun Ponting - Opal Creations */ include dirname(__FILE__) . '/../../config/config.inc.php'; include dirname(__FILE__) . '/../../init.php'; include dirname(__FILE__) . '/paymentsense.php'; $paymentsense = new PaymentSense(); if ($paymentsense->active) { if ((int) Configuration::get('PS_REWRITING_SETTINGS') === 1) { $rewrited_url = __PS_BASE_URI__; } /*include(dirname(__FILE__).'/../../header.php');*/ $controller = new FrontController(); $controller->init(); $controller->initContent(); $controller->setMedia(); $controller->displayHeader(); if (!isset($link)) { $link = new Link(); } $smarty->assign('cartURL', $link->getPageLink('order.php?step=1')); $smarty->assign('contactURL', $link->getPageLink('contact-form.php')); $smarty->display(dirname(__FILE__) . '/views/templates/front/return.tpl'); $controller->displayFooter(); }
public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'my-account.css'); }
public function setMedia() { parent::setMedia(); Tools::addCSS(_THEME_CSS_DIR_ . 'authentication.css'); Tools::addJS(array(_THEME_JS_DIR_ . 'tools/statesManagement.js', _PS_JS_DIR_ . 'jquery/jquery-typewatch.pack.js')); }
public function setMedia() { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'contact-form.css'); $this->addJS(_THEME_JS_DIR_ . 'contact-form.js'); }
public function setMedia() { if (Tools::getValue('ajax') != 'true') { parent::setMedia(); $this->addCSS(_THEME_CSS_DIR_ . 'history.css'); $this->addCSS(_THEME_CSS_DIR_ . 'addresses.css'); } }
public function setMedia() { parent::setMedia(); if ($this->context->getMobileDevice() === false) { // Adding CSS style sheet $this->addCSS(_THEME_CSS_DIR_ . 'addresses.css'); } // Adding JS files $this->addJS(_THEME_JS_DIR_ . 'tools.js'); if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 && Tools::getValue('step') == 1 || Configuration::get('PS_ORDER_PROCESS_TYPE') == 1) { $this->addJS(_THEME_JS_DIR_ . 'order-address.js'); } $this->addJqueryPlugin('fancybox'); if ((int) Configuration::get('PS_BLOCK_CART_AJAX') || Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 || Tools::getValue('step') == 2) { $this->addJqueryPlugin('typewatch'); $this->addJS(_THEME_JS_DIR_ . 'cart-summary.js'); } }