public function hookHeader($params)
 {
     Tools::addJS($this->_path . 'blocklayered.js');
     Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery-ui-1.8.10.custom.min.js');
     Tools::addCSS($this->_path . 'blocklayered.css', 'all');
     Tools::addCSS(_PS_CSS_DIR_ . 'jquery-ui-1.8.10.custom.css', 'all');
 }
 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();
     if ($this->assignCase == 1) {
         Tools::addJS(_THEME_JS_DIR_ . 'cms.js');
     }
     Tools::addCSS(_THEME_CSS_DIR_ . 'cms.css');
 }
 public function hookHeader($params)
 {
     if (!$this->isModuleAvailable()) {
         return;
     }
     Tools::addCSS($this->_path . 'style.css', 'all');
     Tools::addJS($this->_path . 'carriercompare.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');
     }
 }
 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS(_THEME_CSS_DIR_ . '/comparator.css');
     if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
         Tools::addJS(_THEME_JS_DIR_ . 'products-comparison.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 hookHeader($params)
 {
     $fileName = explode(DIRECTORY_SEPARATOR, $_SERVER['PHP_SELF']);
     if ($fileName[sizeof($fileName) - 1] != 'order.php') {
         return;
     }
     Tools::addCSS($this->_path . 'style.css', 'all');
     Tools::addJS($this->_path . 'carriercompare.js');
 }
Example #9
0
 public function hookHeader($params)
 {
     if (Configuration::get('PS_SEARCH_AJAX')) {
         Tools::addCSS(_PS_CSS_DIR_ . 'jquery.autocomplete.css');
         Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.autocomplete.js');
     }
     Tools::addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     Tools::addCSS($this->_path . 'blocksearch.css', 'all');
 }
 public function hookHeader($params)
 {
     if ($this->psversion() == 5) {
         //$this->context->controller->addCSS(($this->_path).'scrolltop.css', 'all');
         $this->context->controller->addJS($this->_path . 'scrolltop.js', 'all');
     } else {
         Tools::addCSS($this->_path . 'scrolltop.css');
         Tools::addJS($this->_path . 'scrolltop.js');
     }
 }
 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');
     }
 }
Example #12
0
 public function hookheader($params)
 {
     global $smarty, $cookie;
     $vars = array('search_ssl' => (int) (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'), 'path' => $this->_path, 'searchable_active' => Configuration::get('MENU_SEARCH'), 'searchable_button' => Configuration::get('MENU_BUTTON'), 'searchable_autocomplete' => Configuration::get('MENU_COMPLETION'), 'id_lang' => $cookie->id_lang, 'id' => $this->_getId(), 'category_id' => $this->_getCategoryId($cookie->id_lang), 'categories_num' => intVal(Configuration::get('MENU_CATEGORIES_NUM')), 'categories_zero' => Configuration::get('MENU_CATEGORIES_ZERO') ? true : false, 'icons' => Configuration::get('MENU_ICONS'), 'icons_path' => dirname(__FILE__) . '/gfx/icons/', 'icons_url' => $this->_path . 'gfx/icons/', 'items' => Menu::getItemsForView($cookie->id_lang), 'logged' => isset($cookie->id_customer) && $cookie->isLogged() ? true : false, 'hook' => isset($parameters['preview']) ? 'menu' : Configuration::get('MENU_HOOK'));
     // CSS Files
     if (Configuration::get('MENU_STYLES_ENABLE')) {
         Tools::addCss(array($this->_path . 'css/superfish-modified.css' => 'screen', $this->_path . 'cache/menu.css' => 'screen', __PS_BASE_URI__ . 'css/jquery.autocomplete.css' => 'screen'));
     }
     // JS Files
     Tools::addJS(array($this->_path . 'js/hoverIntent.js', $this->_path . 'js/superfish-modified.js', __PS_BASE_URI__ . 'js/jquery/jquery.autocomplete.js'));
     $smarty->assign('menu', $vars);
     return $this->display(__FILE__, 'header.tpl');
 }
Example #13
0
 public function setMedia()
 {
     global $cookie;
     Tools::addCSS(_THEME_CSS_DIR_ . 'global.css', 'all');
     Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.min.js', _PS_JS_DIR_ . 'jquery/jquery.easing.1.3.js', _PS_JS_DIR_ . 'tools.js', _PS_JS_DIR_ . 'cookies.js', _PS_JS_DIR_ . 'carousel.js'));
     if (Tools::isSubmit('live_edit') && Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad') . _COOKIE_KEY_)) {
         Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery-ui-1.8.10.custom.min.js', _PS_JS_DIR_ . 'jquery/jquery.fancybox-1.3.4.js', _PS_JS_DIR_ . 'hookLiveEdit.js'));
         Tools::addCSS(_PS_CSS_DIR_ . 'jquery.fancybox-1.3.4.css');
     }
     $language = new Language($cookie->id_lang);
     if ($language->is_rtl) {
         Tools::addCSS(_THEME_CSS_DIR_ . 'rtl.css');
     }
 }
 public function hookHeader()
 {
     global $cookie;
     $shopUrl = __PS_BASE_URI__;
     $themeUrl = $shopUrl . 'themes/' . _THEME_NAME_ . '/';
     if (in_array(Configuration::get('BLANK_FONT'), array("almelo", "jura", "gabo"))) {
         Tools::addJS($themeUrl . 'js/cufon-yui.js');
         Tools::addCSS($themeUrl . 'css/blank/themes/' . Configuration::get('BLANK_COLOUR') . '/style.css', 'all');
         Tools::addJS($themeUrl . 'js/fonts/' . Configuration::get('BLANK_FONT') . '/font.js');
     } else {
         Tools::addCSS($themeUrl . 'css/blank/themes/' . Configuration::get('BLANK_COLOUR') . '/style.css', 'all');
         Tools::addCSS($themeUrl . 'css/blank/themes/' . Configuration::get('BLANK_COLOUR') . '/' . Configuration::get('BLANK_FONT') . '/style.css', 'all');
     }
 }
 /**
  * _hookAll has to be called in each hookXXX methods. This is made to avoid code duplication.
  * 
  * @param mixed $params 
  * @return void
  */
 private function _hookCommon($params)
 {
     global $smarty;
     Tools::addJS($this->_path . 'ajax-solr/core/Core.js');
     Tools::addJS($this->_path . 'ajax-solr/core/AbstractManager.js');
     Tools::addJS($this->_path . 'ajax-solr/core/AbstractWidget.js');
     Tools::addJS($this->_path . 'ajax-solr/core/Parameter.js');
     Tools::addJS($this->_path . 'ajax-solr/core/ParameterStore.js');
     Tools::addJS($this->_path . 'ajax-solr/managers/Manager.jquery.js');
     Tools::addJS($this->_path . 'ajax-solr/autocompleteWidget.js');
     Tools::addCSS(_PS_CSS_DIR_ . 'jquery.autocomplete.css');
     Tools::addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     Tools::addCSS($this->_path . 'solrbridge.css', 'all');
     return true;
 }
Example #16
0
 public function setMedia()
 {
     parent::setMedia();
     if (version_compare(_PS_VERSION_, '1.5.0.0', '>=') && (method_exists($this->context, 'getMobileDevice') && $this->context->getMobileDevice() == false || !method_exists($this->context, 'getMobileDevice'))) {
         $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');
         }
     } else {
         if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')) {
             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');
             }
         }
     }
 }
 /**
  * _hookAll has to be called in each hookXXX methods. This is made to avoid code duplication.
  * 
  * @param mixed $params 
  * @return void
  */
 private function _hookCommon($params)
 {
     global $smarty;
     $smarty->assign('ENT_QUOTES', ENT_QUOTES);
     $smarty->assign('search_ssl', (int) (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'));
     $ajaxSearch = (int) Configuration::get('PS_SEARCH_AJAX');
     $smarty->assign('ajaxsearch', $ajaxSearch);
     $instantSearch = (int) Configuration::get('PS_INSTANT_SEARCH');
     $smarty->assign('instantsearch', $instantSearch);
     if ($ajaxSearch) {
         Tools::addCSS(_PS_CSS_DIR_ . 'jquery.autocomplete.css');
         Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.autocomplete.js');
     }
     Tools::addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     Tools::addCSS($this->_path . 'blocksearch.css', 'all');
     return true;
 }
 /**
  * _hookAll has to be called in each hookXXX methods. This is made to avoid code duplication.
  * 
  * @param mixed $params 
  * @return void
  */
 private function _hookCommon($params)
 {
     global $smarty;
     $smarty->assign('ENT_QUOTES', ENT_QUOTES);
     $smarty->assign('search_ssl', (int) Tools::usingSecureMode());
     $ajaxSearch = (int) Configuration::get('PS_SEARCH_AJAX');
     $smarty->assign('ajaxsearch', $ajaxSearch);
     $instantSearch = (int) Configuration::get('PS_INSTANT_SEARCH');
     $smarty->assign(array('instantsearch' => $instantSearch, 'order_process' => Configuration::get('PS_ORDER_PROCESS_TYPE') ? 'order-opc' : 'order'));
     if ($ajaxSearch) {
         Tools::addCSS(_PS_CSS_DIR_ . 'jquery.autocomplete.css');
         Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.autocomplete.js');
     }
     Tools::addCSS(_THEME_CSS_DIR_ . 'product_list.css');
     Tools::addCSS($this->_path . 'blocksearch.css', 'all');
     return true;
 }
 public function preProcess()
 {
     if ($id_cms = (int) Tools::getValue('id_cms')) {
         $this->cms = new CMS($id_cms, self::$cookie->id_lang);
     } elseif ($id_cms_category = (int) Tools::getValue('id_cms_category')) {
         $this->cms_category = new CMSCategory($id_cms_category, self::$cookie->id_lang);
     }
     $this->canonicalRedirection();
     parent::preProcess();
     /* assignCase (1 = CMS page, 2 = CMS category) */
     if (Validate::isLoadedObject($this->cms) and ($this->cms->active or Tools::getValue('adtoken') == Tools::encrypt('PreviewCMS' . $this->cms->id) and file_exists(dirname(__FILE__) . '/../' . Tools::getValue('ad') . '/ajax.php'))) {
         $this->assignCase = 1;
     } elseif (Validate::isLoadedObject($this->cms_category)) {
         $this->assignCase = 2;
     } else {
         Tools::display404Error('404.php');
     }
     // too early if in setMedia
     if ($this->assignCase == 1) {
         Tools::addJS(_THEME_JS_DIR_ . 'cms.js');
     }
 }
Example #20
0
 /**
  * Stores stylesheet
  * @return void
  */
 public function setMedia()
 {
     global $oSmarty, $css_styles, $js_scripts;
     parent::setMedia();
     Tools::addCSS('base.css', 'local', 'screen');
     Tools::addCSS('jquery/bubblePopup/jquery.bubblepopup.v2.3.1.css', 'global', 'screen');
     //Style need contextMenu
     Tools::addCSS('jquery/contextmenu/jquery.contextMenu.css', 'global', 'screen');
     //Style neeed for upload files.
     Tools::addCSS('jquery/upload/fileuploader.css', 'global', 'screen');
     //Style neeed for treeview
     Tools::addCSS('jquery/dynatree/skin-vista/ui.dynatree.css', 'global', 'screen');
     //Javascripts effect bootstrap popover and alert dialog
     Tools::addJS('bootstrap/bootstrap-popover.js');
     Tools::addJS('bootstrap/bootstrap-alerts.js');
     Tools::addJS('jquery/bubblePopup/jquery.bubblepopup.v2.3.1.min.js');
     //Javascripts need to use context Menu. -->
     Tools::addJS('jquery/contextmenu/jquery.contextMenu.js');
     //Javascripts neeed to upload files.
     Tools::addJS('jquery/upload/fileuploader.js');
     //Javascript neeed to treeview
     Tools::addJS('jquery/dynatree/jquery.dynatree.js');
 }
 /**
  * @param $js_uri
  * @return void
  */
 public function addJS($js_uri)
 {
     Tools::addJS($js_uri);
 }
 public function hookHeader()
 {
     if (_PS_VERSION_ < '1.5') {
         Tools::addJS(_PS_JS_DIR_ . 'jquery/jquery.validate.creditcard2-1.0.1.js');
     } else {
         $this->context->controller->addJqueryPlugin('validate-creditcard');
     }
 }
 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS(_THEME_CSS_DIR_ . 'addresses.css');
     Tools::addJS(_THEME_JS_DIR_ . 'tools.js');
 }
*  @author PrestaShop SA <*****@*****.**>
*  @copyright  2007-2012 PrestaShop SA
*  @version  Release: $Revision: 14011 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/
/* SSL Management */
$useSSL = true;
require_once dirname(__FILE__) . '/../../config/config.inc.php';
require_once dirname(__FILE__) . '/../../init.php';
include_once dirname(__FILE__) . '/ReferralProgramModule.php';
if (!$cookie->isLogged()) {
    Tools::redirect('authentication.php?back=modules/referralprogram/referralprogram-program.php');
}
Tools::addCSS(_PS_CSS_DIR_ . 'thickbox.css', 'all');
Tools::addJS(array(_PS_JS_DIR_ . 'jquery/thickbox-modified.js', _PS_JS_DIR_ . 'jquery/jquery.idTabs.modified.js'));
include dirname(__FILE__) . '/../../header.php';
// get discount value (ready to display)
$discount_type = (int) Configuration::get('REFERRAL_DISCOUNT_TYPE');
if ($discount_type == 1) {
    $discount = Discount::display((double) Configuration::get('REFERRAL_PERCENTAGE'), $discount_type, new Currency($cookie->id_currency));
} else {
    $discount = Discount::display((double) Configuration::get('REFERRAL_DISCOUNT_VALUE_' . (int) $cookie->id_currency), $discount_type, new Currency($cookie->id_currency));
}
$activeTab = 'sponsor';
$error = false;
// Mailing invitation to friend sponsor
$invitation_sent = false;
$nbInvitation = 0;
if (Tools::isSubmit('submitSponsorFriends') and Tools::getValue('friendsEmail') and sizeof($friendsEmail = Tools::getValue('friendsEmail')) >= 1) {
    $activeTab = 'sponsor';
 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 hookHeader()
 {
     global $cookie;
     $tmplocale = strtolower(Language::getIsoById((int) $cookie->id_lang));
     $locale = 'el';
     if (in_array($tmplocale, array('el', 'en'))) {
         $locale = $tmplocale;
     }
     Tools::addJS($this->_path . 'assets/js/front.js');
     Tools::addCSS($this->_path . 'assets/css/everypay.css');
     Tools::addJS('https://js.everypay.gr/' . $locale . '.everypay.js');
     if ($this->configuration['EVERYPAY_BUTTON_MODE']) {
         Tools::addJS('https://button.everypay.gr/js/button.js');
     }
     return null;
 }
 public function setMedia()
 {
     parent::setMedia();
     Tools::addCSS('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
     Tools::addCSS(_THEME_CSS_DIR_ . 'jquery.fancybox.css?v=2.1.5');
     Tools::addCSS(_THEME_CSS_DIR_ . 'jquery.fancybox-thumbs.css?v=1.0.7');
     Tools::addCSS(_THEME_CSS_DIR_ . 'style.slider.css', 'all');
     Tools::addJS(_THEME_JS_DIR_ . 'slider.js');
     // Tools::addJS(_THEME_JS_DIR_.'jquery.slide.js');
     // Tools::addJS(_THEME_JS_DIR_.'slides.min.jquery.js');
     Tools::addJS(_THEME_JS_DIR_ . 'google_map.js');
     // Tools::addJS(_THEME_JS_DIR_.'jquery.tablednd.0.7.min.js');
     Tools::addJS("https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js");
     Tools::addJS(_THEME_JS_DIR_ . 'vendors/bootstrap.min.js');
     Tools::addJS(_THEME_JS_DIR_ . 'vendors/bootstrap-select.min.js');
     Tools::addJS(_THEME_JS_DIR_ . 'vendors/jquery.flexslider-min.js');
     Tools::addJS(_THEME_JS_DIR_ . 'vendors/jquery.fancybox.pack.js?v=2.1.5');
     Tools::addJS(_THEME_JS_DIR_ . 'vendors/jquery.fancybox-thumbs.js?v=1.0.7');
 }
 public function setMedia()
 {
     parent::setMedia();
     // Adding CSS style sheet
     Tools::addCSS(_THEME_CSS_DIR_ . 'order-opc.css');
     // Adding JS files
     Tools::addJS(_THEME_JS_DIR_ . 'order-opc.js');
     Tools::addJs(_PS_JS_DIR_ . 'jquery/jquery.scrollTo-1.4.2-min.js');
     Tools::addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
 }
 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 hookHeader($params)
    {
        global $js_files, $css_files, $smarty;
        $addjs_exists = method_exists('Tools', 'addJS');
        // Check if URL contain specific site data and change the site if needed
        self::_initForceSite($params, $addjs_exists);
        // If forced mobile site, need to make sure PrestaShop redirect well on mobile site
        $this->_redirectSite($params, 'ps_mobile_site', $addjs_exists);
        // If the theme is not the mobile one, we just stop here.
        if (_THEME_NAME_ != 'prestashop_mobile') {
            return;
        }
        // Load the hookMobileHeader for the registered modules
        $modules = Db::getInstance()->ExecuteS('
		SELECT `name`
		FROM `' . _DB_PREFIX_ . 'module` m
		LEFT JOIN `' . _DB_PREFIX_ . 'hook_module` hm ON (hm.id_module = m.id_module)
		WHERE hm.`id_hook` = ' . (int) Configuration::get('PS_MOBILE_HOOK_HEADER_ID'));
        foreach ($modules as $m) {
            $tmp = Module::getInstanceByName($m['name']);
            $this->_html .= $tmp->hookDisplayMobileHeader();
        }
        // If forced full site, need to make sure PrestaShop redirect well on full site
        $this->_redirectSite($params, 'ps_full_site', $addjs_exists);
        self::_removeJQuery();
        if (strpos($_SERVER['PHP_SELF'], 'order.php') !== false) {
            $addr = new Address((int) $params['cart']->id_address_invoice);
            if (Validate::isLoadedObject($addr)) {
                if (in_array(Country::getIsoById((int) $addr->id_country), array('FR', 'PL', 'IT', 'ES'))) {
                    array_push($js_files, _THEME_DIR_ . 'js/payment.js');
                }
            }
        }
        // Create a new Array of all JS and append the old one to it (Important for JQuery)
        $js_files_mobile = array_unique(array_merge(array(_THEME_DIR_ . 'js/jquery.min.js', _THEME_DIR_ . 'js/jquery.mobile.min.js', _THEME_DIR_ . 'js/global.js', _THEME_DIR_ . 'js/swipe.js', _THEME_DIR_ . 'js/product.js', _THEME_DIR_ . 'js/tools.js', _THEME_DIR_ . 'js/order-address.js', _THEME_DIR_ . 'js/statesManagement.js'), $js_files));
        // Empty the former js files
        $js_files = array();
        if ($addjs_exists) {
            Tools::addJS($js_files_mobile);
            Tools::addCSS(_THEME_DIR_ . 'css/jquery.mobile.min.css');
        } else {
            $css_files[_THEME_DIR_ . 'css/jquery.mobile.min.css'] = 'all';
        }
        $smarty->assign(array('mobile_theme_phone' => _PS_MOBILE_PHONE_, 'mobile_theme_tablet' => _PS_MOBILE_TABLET_, 'js_files_mobile' => $js_files_mobile, 'css_files_mobile' => $css_files));
        /* Template Styles */
        $smarty->assign('ps_mobile_styles', Configuration::getMultiple(array('PS_MOBILE_THEME_HEADINGS', 'PS_MOBILE_THEME_FILTERING_BAR', 'PS_MOBILE_THEME_PROCESS_BAR', 'PS_MOBILE_THEME_CONF_MSG', 'PS_MOBILE_THEME_ERROR_MSG', 'PS_MOBILE_THEME_LIST_HEADERS', 'PS_MOBILE_THEME_BUTTONS', 'PS_MOBILE_THEME_HEADER_FOOTER')));
        $paypal = Module::getInstanceByName('paypal');
        if ($paypal && $paypal->active && version_compare($paypal->version, '3.2.0', '>=')) {
            if (strpos($_SERVER['PHP_SELF'], 'product.php') !== false) {
                $smarty->assign('paypal_product', $paypal->renderExpressCheckoutButton('product') . $paypal->renderExpressCheckoutForm('product'));
            }
            if (strpos($_SERVER['PHP_SELF'], 'order.php') !== false || strpos($_SERVER['PHP_SELF'], '.php') !== false) {
                $smarty->assign('paypal_cart', $paypal->renderExpressCheckoutButton('cart') . $paypal->renderExpressCheckoutForm('cart'));
            }
        }
        // Display/assign specific content for pages
        self::_pageStore($params);
        // Add translation of JS message for the payment page
        if (strpos($_SERVER['PHP_SELF'], 'order.php') !== false) {
            $smarty->assign('translate_nopayment', '<script type="text/javascript">var translate_nopaymentmodule = "' . $this->l('Sorry, no payment module is available in your country.') . '";</script>');
        }
        // The hookHeader is not called from the mobile template. Affect $smarty->HOOK_HEADER_MOBILE instead
        $smarty->assign('HOOK_HEADER_MOBILE', $this->_html);
    }