public function displayHeader() { global $css_files, $js_files; if (!self::$initialized) { $this->init(); } // P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); /* Hooks are volontary out the initialize array (need those variables already assigned) */ self::$smarty->assign(array('time' => time(), 'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'logo_image_width' => Configuration::get('SHOP_LOGO_WIDTH'), 'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int) Tools::getValue('content_only'), 'hide_left_column' => 0, 'hide_right_column' => 1)); self::$smarty->assign(array('HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'), 'HOOK_RIGHT_COLUMN' => Module::hookExec('rightColumn'), 'HOOK_BHEAD_TOP' => Module::hookExec('displayBheadTop'), 'HOOK_BHEAD_BTM' => Module::hookExec('displayBheadBtm'), 'HOOK_BBODY_TOP' => Module::hookExec('displayBbodyTop'), 'HOOK_SIDE1_TOP' => Module::hookExec('displaySide1Top'), 'HOOK_SIDE1_BTM' => Module::hookExec('displaySide1Btm'), 'HOOK_MAIN_TOP' => Module::hookExec('displayMainTop'), 'HOOK_CONTENT_SIDE1' => Module::hookExec('displayContentSide1'), 'HOOK_CONTENT_TOP' => Module::hookExec('displayContentTop'), 'HOOK_CONTENT_BTM' => Module::hookExec('displayContentBtm'), 'HOOK_CONTENT_SIDE2' => Module::hookExec('displayContentSide2'), 'HOOK_MAIN_BTM' => Module::hookExec('displayMainBtm'), 'HOOK_SIDE2_TOP' => Module::hookExec('displaySide2Top'), 'HOOK_SIDE2_BTM' => Module::hookExec('displaySide2Btm'))); $page_array_left = array("no-index", "no-search", "no-category", "prices-drop", "new-products", "all-products", "best-sales", "no-product", "order", "authentication", "my-account", "history", "orde//r-slip", "search", "identity", "discount", "sendtoafriend-form", "password", "addresses", "no-cms", "contact-form"); self::$smarty->assign(array('page_array_left' => $page_array_left)); $page_array_right = array("index", "no-search", "category", "prices-drop", "new-products", "all-products", "best-sales", "product", "order", "authentication", "my-account", "history", "orde//r-slip", "search", "identity", "discount", "sendtoafriend-form", "password", "addresses", "cms", "contact-form"); self::$smarty->assign(array('page_array_right' => $page_array_right)); if ((Configuration::get('PS_CSS_THEME_CACHE') || Configuration::get('PS_JS_THEME_CACHE')) && is_writable(_PS_THEME_DIR_ . 'cache')) { // CSS compressor management if (Configuration::get('PS_CSS_THEME_CACHE')) { Tools::cccCss(); } // JS compressor management if (Configuration::get('PS_JS_THEME_CACHE')) { Tools::cccJs(); } } self::$smarty->assign('css_files', $css_files); self::$smarty->assign('js_files', array_unique($js_files)); self::$smarty->display(_PS_THEME_DIR_ . 'header.tpl'); }
public function displayHeader() { global $css_files, $js_files; if (!self::$initialized) { $this->init(); } // P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); /* Hooks are volontary out the initialize array (need those variables already assigned) */ self::$smarty->assign(array('time' => time(), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'logo_image_width' => Configuration::get('SHOP_LOGO_WIDTH'), 'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int) Tools::getValue('content_only'))); self::$smarty->assign(array('HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_BELOWNAVH' => Module::hookExec('belownavh'), 'HOOK_FILTERBY_CENTER' => Module::hookExec('filterbyCenter'))); if ((Configuration::get('PS_CSS_THEME_CACHE') or Configuration::get('PS_JS_THEME_CACHE')) and is_writable(_PS_THEME_DIR_ . 'cache')) { // CSS compressor management if (Configuration::get('PS_CSS_THEME_CACHE')) { Tools::cccCss(); } //JS compressor management if (Configuration::get('PS_JS_THEME_CACHE')) { Tools::cccJs(); } } self::$smarty->assign('css_files', $css_files); self::$smarty->assign('js_files', array_unique($js_files)); self::$smarty->display(_PS_THEME_DIR_ . 'header.tpl'); }
public function displayHeader() { global $css_files, $js_files; if (!self::$initialized) { $this->init(); } // P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); /* Hooks are volontary out the initialize array (need those variables already assigned) */ self::$smarty->assign(array('time' => time(), 'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'logo_image_width' => Configuration::get('SHOP_LOGO_WIDTH'), 'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int) Tools::getValue('content_only'))); self::$smarty->assign(array('HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'))); if ((Configuration::get('PS_CSS_THEME_CACHE') or Configuration::get('PS_JS_THEME_CACHE')) and is_writable(_PS_THEME_DIR_ . 'cache')) { // CSS compressor management if (Configuration::get('PS_CSS_THEME_CACHE')) { Tools::cccCss(); } //JS compressor management if (Configuration::get('PS_JS_THEME_CACHE')) { Tools::cccJs(); } } /*pl*/ $tags_name = Tools::getValue('pltn'); self::$smarty->assign('meta_title', $tags_name . ' - Blog '); // $id_pl_blog_category = (int) Tools::getValue('plidc'); // if ($id_pl_blog_category != null) // { // $category = $this->getMetaCategoryById($id_pl_blog_category); // $meta_title = $category['category_meta_title']; // $meta_description = $category['category_meta_description']; // $meta_keywords = $category['category_meta_keywords']; // if ($meta_title != null) // self::$smarty->assign('meta_title', $meta_title.' - Blog '); // if ($meta_description != null) // self::$smarty->assign('meta_description',$meta_description); // if ($meta_keywords != null) // self::$smarty->assign('meta_keywords', $meta_keywords); // } // else // { // $category_name = 'List post'; // self::$smarty->assign('meta_title', $category_name.' - Blog '); // } /* -pl */ self::$smarty->assign('css_files', $css_files); self::$smarty->assign('js_files', array_unique($js_files)); self::$smarty->display(_PS_THEME_DIR_ . 'header.tpl'); }
public function displayHeader() { global $css_files, $js_files; if (!self::$initialized) { $this->init(); } foreach (Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(' SELECT id_category FROM `' . _DB_PREFIX_ . 'category` WHERE `id_category`>=364 AND `id_category`<=371 ORDER BY `position` asc') as $catlevl) { $idcat[] = $catlevl['id_category']; } $urlsCat[364] = '<li class="n1"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '364-computadores" name="Computadores" target="_self" id="Computadores"><span>Computadores</span></a></li>'; $urlsCat[365] = '<li class="n2"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '365-desktop" name="Desktop" target="_self" id="Desktop"><span>Desktop</span></a></li>'; $urlsCat[366] = '<li class="n3"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '366-fotografia-camaras" name="Fotografia / Camaras" target="_self" id="Fotografia / Camaras"><span>Fotografía / Cámaras</span></a></li>'; $urlsCat[367] = '<li class="n4"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '367-conectividad" name="Conectividad" target="_self" id="Conectividad"><span>Conectividad</span></a></li>'; $urlsCat[368] = '<li class="n5"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '368-productividad-empresas" name="Productividad y Empresas" target="_self" id="Productividad y Empresas"><span>Productividad & Empresas</span></a></li>'; $urlsCat[369] = '<li class="n6"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '369-video-display" name="Video / Display" target="_self" id="Video / Display"><span>Video / Display</span></a></li>'; $urlsCat[370] = '<li class="n7"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '370-seguridad" name="Seguridad" target="_self" id="Seguridad"><span>Seguridad</span></a></li>'; $urlsCat[371] = '<li class="n8"><a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '371-otros" name="Otros" target="_self" id="Otros"><span>Otros</span></a></li>'; // P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); /* Hooks are volontary out the initialize array (need those variables already assigned) */ self::$smarty->assign(array('idcat' => $idcat, 'urlsCat' => $urlsCat, 'oka' => 'asdddddd', 'time' => time(), 'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'logo_image_width' => Configuration::get('SHOP_LOGO_WIDTH'), 'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int) Tools::getValue('content_only'))); self::$smarty->assign(array('HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'))); if ((Configuration::get('PS_CSS_THEME_CACHE') or Configuration::get('PS_JS_THEME_CACHE')) and is_writable(_PS_THEME_DIR_ . 'cache')) { // CSS compressor management if (Configuration::get('PS_CSS_THEME_CACHE')) { Tools::cccCss(); } //JS compressor management if (Configuration::get('PS_JS_THEME_CACHE')) { Tools::cccJs(); } } self::$smarty->assign('css_files', $css_files); self::$smarty->assign('js_files', array_unique($js_files)); self::$smarty->display(_PS_THEME_DIR_ . 'header.tpl'); }
public function displayHeader() { global $css_files, $js_files; if (!self::$initialized) { $this->init(); } // P3P Policies (http://www.w3.org/TR/2002/REC-P3P-20020416/#compact_policies) header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); /* Hooks are volontary out the initialize array (need those variables already assigned) */ self::$smarty->assign(array('time' => time(), 'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'logo_image_width' => Configuration::get('SHOP_LOGO_WIDTH'), 'logo_image_height' => Configuration::get('SHOP_LOGO_HEIGHT'), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int) Tools::getValue('content_only'))); self::$smarty->assign(array('HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'))); if ((Configuration::get('PS_CSS_THEME_CACHE') or Configuration::get('PS_JS_THEME_CACHE')) and is_writable(_PS_THEME_DIR_ . 'cache')) { // CSS compressor management if (Configuration::get('PS_CSS_THEME_CACHE')) { Tools::cccCss(); } //JS compressor management if (Configuration::get('PS_JS_THEME_CACHE')) { Tools::cccJs(); } } $css_filesCopy = array(); $js_filesCopy = array(); $css_filesCopyKeys = array_keys($css_files); $js_filesCopyKeys = array_keys($js_files); foreach ($css_filesCopyKeys as $keyCSS) { if (strlen(strstr($keyCSS, 'blocklayered')) == 0) { $css_filesCopy[$keyCSS] = $css_files[$keyCSS]; } } foreach ($js_filesCopyKeys as $keyJS) { if (strlen(strstr($js_files[$keyJS], 'blocklayered')) == 0) { $js_filesCopy[$keyJS] = $js_files[$keyJS]; } } self::$smarty->assign('css_files', $css_filesCopy); self::$smarty->assign('js_files', array_unique($js_filesCopy)); self::$smarty->display(_PS_THEME_DIR_ . '../../modules/blockconfigurador/headerConfigurador.tpl'); }