diff --git a/config/xml/themes/default.xml b/config/xml/themes/default.xml index bf1fdf304..e24a7a85a 100644 --- a/config/xml/themes/default.xml +++ b/config/xml/themes/default.xml @@ -52,6 +52,7 @@ + @@ -149,9 +150,8 @@ - - + @@ -178,10 +178,6 @@ - - - - @@ -216,6 +212,12 @@ + + + + + + diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 2b9f6d16b..e4925a003 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -2098,6 +2098,7 @@ class AdminThemesControllerCore extends AdminController 'blockcustomerprivacy', 'blockfacebook', 'blocklanguages', + 'qloblockcontact', 'blocklayered', 'blocklink', 'blockmanufacturer', diff --git a/install/models/install.php b/install/models/install.php index a50b62ac6..dcf1ccb6f 100644 --- a/install/models/install.php +++ b/install/models/install.php @@ -654,8 +654,9 @@ class InstallModelInstall extends InstallAbstractModel 'bankwire', 'cheque', 'blockmyaccount', - 'blocklanguages', + 'qloblockcontact', 'blockcurrencies', + 'blocklanguages', 'productcomments', 'wkfooterlangcurrencyblock', 'wkfooterpaymentinfoblockcontainer', diff --git a/modules/blockcurrencies/Readme.md b/modules/blockcurrencies/Readme.md index 63743a9e9..2b1dce473 100644 --- a/modules/blockcurrencies/Readme.md +++ b/modules/blockcurrencies/Readme.md @@ -1,37 +1 @@ -# Currency block - -## About - -Adds a block allowing customers to choose their preferred shopping currency. - -## Contributing - -PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements. - -### Requirements - -Contributors **must** follow the following rules: - -* **Make your Pull Request on the "dev" branch**, NOT the "master" branch. -* Do not update the module's version number. -* Follow [the coding standards][1]. - -### Process in details - -Contributors wishing to edit a module's files should follow the following process: - -1. Create your GitHub account, if you do not have one already. -2. Fork the blockcurrencies project to your GitHub account. -3. Clone your fork to your local machine in the ```/modules``` directory of your PrestaShop installation. -4. Create a branch in your local clone of the module for your changes. -5. Change the files in your branch. Be sure to follow [the coding standards][1]! -6. Push your changed branch to your fork in your GitHub account. -7. Create a pull request for your changes **on the _'dev'_ branch** of the module's project. Be sure to follow [the commit message norm][2] in your pull request. If you need help to make a pull request, read the [Github help page about creating pull requests][3]. -8. Wait for one of the core developers either to include your change in the codebase, or to comment on possible improvements you should make to your code. - -That's it: you have contributed to this open-source project! Congratulations! - -[1]: http://doc.prestashop.com/display/PS16/Coding+Standards -[2]: http://doc.prestashop.com/display/PS16/How+to+write+a+commit+message -[3]: https://help.github.com/articles/using-pull-requests - +## Currency selector block \ No newline at end of file diff --git a/modules/blockcurrencies/blockcurrencies.css b/modules/blockcurrencies/blockcurrencies.css deleted file mode 100644 index 2fd112500..000000000 --- a/modules/blockcurrencies/blockcurrencies.css +++ /dev/null @@ -1,91 +0,0 @@ -#.footer-container currencies-block-top { - position: relative; -} -/*@media (max-width:479px) { - .footer-container #currencies-block-top { - width: 25%; - } -}*/ -.footer-container #currencies-block-top span.firstWord { - display: none; -} -.footer-container #currencies-block-top div.current { - background-color: #3a3a3a; - border: 1px solid #868686; - color: #bfbfbf; - cursor: pointer; - font-size: 16px; - font-weight: 400; - line-height: 18px; - padding: 10px; - position: relative; - text-shadow: 1px 1px rgba(0, 0, 0, 0.2); -} -/*@media (max-width:479px) { - .footer-container #currencies-block-top div.current { - text-align: center; - padding: 9px 5px 10px; - font-size: 11px; - } -}*/ -.footer-container #currencies-block-top div.current strong { - color: #777777; -} - -/* .footer-container #currencies-block-top div.current:hover, .footer-container #currencies-block-top div.current.active { - background: #2b2b2b; } */ -.footer-container #currencies-block-top div.current:after { - content: "\f0d7"; - font-family: "FontAwesome"; - font-size: 12px; - position: absolute; - right: 10px; - line-height: 18px; - color: #bfbfbf; - vertical-align: 0px; - padding-left: 7px; -} -/*@media (max-width:479px) { - .footer-container #currencies-block-top div.current:after { - padding-left: 2px; - font-size: 13px; - line-height: 13px; - vertical-align: 0; - } -}*/ -/*@media (max-width:479px) { - .footer-container #currencies-block-top div.current .cur-label { - display: none; - } -}*/ -.footer-container #currencies-block-top ul { - display: none; - position: absolute; - top: 41px; - right: 0; - left: 0; /*width: 157px;*/ - background: #fff; - z-index: 1000; -} -.footer-container #currencies-block-top ul li { - font-weight: 400; - color: #ffffff; - line-height: 28px; - font-size: 16px; - padding: 0px; -} -.footer-container #currencies-block-top ul li a, .footer-container #currencies-block-top ul li > span { - font-weight: normal; - text-shadow: unset; - padding: 3px 10px; - display: block; - color: #555555; -} -.footer-container #currencies-block-top ul li.selected, .footer-container #currencies-block-top ul li:hover a { - background: #3594E6; -} -.footer-container #currencies-block-top ul li.selected > a, .footer-container #currencies-block-top ul li:hover a { - color: #fff; -} - -/*# sourceMappingURL=blockcurrencies.css.map */ \ No newline at end of file diff --git a/modules/blockcurrencies/blockcurrencies.php b/modules/blockcurrencies/blockcurrencies.php index 3b158f9d3..0bf537458 100644 --- a/modules/blockcurrencies/blockcurrencies.php +++ b/modules/blockcurrencies/blockcurrencies.php @@ -24,77 +24,69 @@ * International Registered Trademark & Property of PrestaShop SA */ -if (!defined('_PS_VERSION_')) - exit; +if (!defined('_PS_VERSION_')) { + exit; +} class BlockCurrencies extends Module { - public function __construct() - { - $this->name = 'blockcurrencies'; - $this->tab = 'front_office_features'; - $this->version = '0.4.0'; - $this->author = 'PrestaShop'; - $this->need_instance = 0; + public function __construct() + { + $this->name = 'blockcurrencies'; + $this->tab = 'front_office_features'; + $this->version = '0.4.0'; + $this->author = 'PrestaShop'; + $this->need_instance = 0; - parent::__construct(); + parent::__construct(); - $this->displayName = $this->l('Currency block'); - $this->description = $this->l('Adds a block allowing customers to choose their preferred shopping currency.'); - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); - } + $this->displayName = $this->l('Currency selector block'); + $this->description = $this->l('Adds a block allowing customers to select their preferred currency.'); + $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); + } - public function install() - { - return parent::install() - && $this->registerHook('displayFooterMostLeftBlock') - && $this->registerHook('displayHeader'); - } + public function install() + { + if (!parent::install() + || !$this->registerHook('actionFrontControllerSetMedia') + || !$this->registerHook('displayNav') + || !$this->registerHook('displayExternalNavigationHook') + ) { + return false; + } + return true; + } - protected function _prepareHook($params) - { - if (Configuration::get('PS_CATALOG_MODE')) - return false; + public function hookActionFrontControllerSetMedia() + { + $this->context->controller->addCSS($this->getPathUri().'views/css/hook/blockcurrencies.css'); + $this->context->controller->addJS($this->getPathUri().'views/js/hook/blockcurrencies.js'); + } - if (!Currency::isMultiCurrencyActivated()) - return false; + protected function _prepareHook() + { + if (Configuration::get('PS_CATALOG_MODE')) { + return false; + } - $this->smarty->assign('blockcurrencies_sign', $this->context->currency->sign); - - return true; - } + if (!Currency::isMultiCurrencyActivated()) { + return false; + } + return true; + } - /** - * Returns module content for header - * - * @param array $params Parameters - * @return string Content - */ - public function hookDisplayTop($params) - { - if ($this->_prepareHook($params)) - return $this->display(__FILE__, 'blockcurrencies.tpl'); - } + public function hookDisplayNav() + { + if ($this->_prepareHook()) { + return $this->display(__FILE__, 'blockcurrencies.tpl'); + } + } - public function hookDisplayNav($params) - { - return $this->hookDisplayTop($params); - } - - public function hookDisplayTopSubPrimaryBlock($params) - { - return $this->hookDisplayTop($params); - } - - public function hookDisplayFooterMostLeftBlock($params) - { - return $this->hookDisplayTop($params); - } - - public function hookDisplayHeader($params) - { - if (Configuration::get('PS_CATALOG_MODE')) - return; - $this->context->controller->addCSS(($this->_path).'blockcurrencies.css', 'all'); - } -} \ No newline at end of file + public function hookDisplayExternalNavigationHook() + { + if (!$this->_prepareHook()) { + return; + } + return $this->display(__FILE__, 'external-navigation-hook.tpl'); + } +} diff --git a/modules/blockcurrencies/blockcurrencies.tpl b/modules/blockcurrencies/blockcurrencies.tpl deleted file mode 100644 index f0d1e3677..000000000 --- a/modules/blockcurrencies/blockcurrencies.tpl +++ /dev/null @@ -1,63 +0,0 @@ -{* -* 2007-2015 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* 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-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - - - -
-
-

- - - {l s='Currency' mod='blockcurrencies'} : {$blockcurrencies_sign} -

-
    - {foreach from=$currencies key=k item=f_currency} -
  • id_currency == $f_currency.id_currency}class="selected"{/if}> - {$f_currency.sign} -
  • - {/foreach} -
-
-
- diff --git a/modules/blockcurrencies/composer.json b/modules/blockcurrencies/composer.json deleted file mode 100644 index fcacdbe06..000000000 --- a/modules/blockcurrencies/composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "PrestaShop/blockcurrencies", - "description": "PrestaShop module blockcurrencies", - "homepage": "https://github.com/PrestaShop/blockcurrencies", - "license": "AFL - Academic Free License (AFL 3.0)", - "authors": [ - { - "name": "PrestaShop SA", - "email": "contact@prestashop.com" - } - ], - "require": { - "php": ">=5.3.2" - }, - "config": { - "preferred-install": "dist" - }, - "type": "prestashop-module" -} diff --git a/modules/blockcurrencies/img/block_languages_top_p_bg.png b/modules/blockcurrencies/img/block_languages_top_p_bg.png deleted file mode 100644 index 102df869d..000000000 Binary files a/modules/blockcurrencies/img/block_languages_top_p_bg.png and /dev/null differ diff --git a/modules/blockcurrencies/img/index.php b/modules/blockcurrencies/img/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blockcurrencies/img/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockcurrencies/translations/index.php b/modules/blockcurrencies/translations/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blockcurrencies/translations/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blockcurrencies/upgrade/install-0.2.php b/modules/blockcurrencies/upgrade/install-0.2.php deleted file mode 100644 index 8d71d3742..000000000 --- a/modules/blockcurrencies/upgrade/install-0.2.php +++ /dev/null @@ -1,9 +0,0 @@ -registerHook('displayNav')); -} diff --git a/modules/blockcurrencies/views/css/hook/blockcurrencies.css b/modules/blockcurrencies/views/css/hook/blockcurrencies.css new file mode 100644 index 000000000..c121d186e --- /dev/null +++ b/modules/blockcurrencies/views/css/hook/blockcurrencies.css @@ -0,0 +1,53 @@ +/** +* 2010-2022 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt +*/ + +.currencies-block-wrap button.dropdown-toggle { + padding: 0; + background-color: transparent; + color: #fff; +} + +.currencies-block-wrap .caret { + border-top-color: white; +} + +.currencies-block-wrap .dropdown-menu { + max-height: 300px; + overflow-y: auto; +} + +/* popup - start */ +.fancybox-blockcurrencies .fancybox-inner { + border-radius: 4px; +} + +.fancybox-blockcurrencies .list-group { + margin-bottom: 0; +} + +.fancybox-blockcurrencies .list-group-item { + border: none; + min-width: 160px; + font-size: 14px; +} + +.fancybox-blockcurrencies .list-group-item.active { + background-color: #379BF0; +} +/* popup - end */ diff --git a/modules/blockcurrencies/views/css/hook/index.php b/modules/blockcurrencies/views/css/hook/index.php new file mode 100644 index 000000000..0a4a63f52 --- /dev/null +++ b/modules/blockcurrencies/views/css/hook/index.php @@ -0,0 +1,29 @@ + +* @copyright 2007-2017 PrestaShop SA +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + +{if count($currencies) > 1} + +{/if} diff --git a/modules/blockcurrencies/views/templates/hook/external-navigation-hook.tpl b/modules/blockcurrencies/views/templates/hook/external-navigation-hook.tpl new file mode 100644 index 000000000..cb3bec1c6 --- /dev/null +++ b/modules/blockcurrencies/views/templates/hook/external-navigation-hook.tpl @@ -0,0 +1,52 @@ +{* +* 2010-2022 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt +*} + +{if count($currencies) > 1} + + + +{/if} diff --git a/modules/blockcurrencies/views/templates/hook/index.php b/modules/blockcurrencies/views/templates/hook/index.php new file mode 100644 index 000000000..0a4a63f52 --- /dev/null +++ b/modules/blockcurrencies/views/templates/hook/index.php @@ -0,0 +1,29 @@ + span { - font-weight: normal; - text-shadow: unset; - padding: 3px 10px; - display: block; - color: #555555; } - .footer-container #languages-block-top ul li.selected, .footer-container #languages-block-top ul li:hover a { - background: #3594E6; } - .footer-container #languages-block-top ul li.selected > span, .footer-container #languages-block-top ul li:hover a { - color: #fff; } - -/*# sourceMappingURL=blocklanguages.css.map */ diff --git a/modules/blocklanguages/blocklanguages.php b/modules/blocklanguages/blocklanguages.php index ba386d877..ffde7d380 100644 --- a/modules/blocklanguages/blocklanguages.php +++ b/modules/blocklanguages/blocklanguages.php @@ -24,106 +24,96 @@ * International Registered Trademark & Property of PrestaShop SA */ -if (!defined('_PS_VERSION_')) - exit; +if (!defined('_PS_VERSION_')) { + exit; +} class BlockLanguages extends Module { - public function __construct() - { - $this->name = 'blocklanguages'; - $this->tab = 'front_office_features'; - $this->version = '1.5.0'; - $this->author = 'PrestaShop'; - $this->need_instance = 0; + public function __construct() + { + $this->name = 'blocklanguages'; + $this->tab = 'front_office_features'; + $this->version = '1.5.0'; + $this->author = 'PrestaShop'; + $this->need_instance = 0; - parent::__construct(); + parent::__construct(); - $this->displayName = $this->l('Language selector block'); - $this->description = $this->l('Adds a block allowing customers to select a language for your store\'s content.'); - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); - } + $this->displayName = $this->l('Language selector block'); + $this->description = $this->l('Adds a block allowing customers to select a language for your website.'); + $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); + } - public function install() - { - return (parent::install() - && $this->registerHook('displayFooterMostLeftBlock') - && $this->registerHook('displayHeader') - ); - } + public function install() + { + if (!parent::install() + || !$this->registerHook('actionFrontControllerSetMedia') + || !$this->registerHook('displayNav') + || !$this->registerHook('displayExternalNavigationHook') + ) { + return false; + } + return true; + } - protected function _prepareHook($params) - { - $languages = Language::getLanguages(true, $this->context->shop->id); - if (!count($languages)) - return false; - $link = new Link(); + public function hookActionFrontControllerSetMedia() + { + $this->context->controller->addCSS($this->getPathUri().'views/css/hook/blocklanguages.css'); + $this->context->controller->addJS($this->getPathUri().'views/js/hook/blocklanguages.js'); + } - if ((int)Configuration::get('PS_REWRITING_SETTINGS')) - { - $default_rewrite = array(); - if (Dispatcher::getInstance()->getController() == 'product' && ($id_product = (int)Tools::getValue('id_product'))) - { - $rewrite_infos = Product::getUrlRewriteInformations((int)$id_product); - foreach ($rewrite_infos as $infos) - $default_rewrite[$infos['id_lang']] = $link->getProductLink((int)$id_product, $infos['link_rewrite'], $infos['category_rewrite'], $infos['ean13'], (int)$infos['id_lang']); - } + protected function _prepareHook() + { + $languages = Language::getLanguages(true, $this->context->shop->id); + if (!count($languages)) { + return false; + } - if (Dispatcher::getInstance()->getController() == 'category' && ($id_category = (int)Tools::getValue('id_category'))) - { - $rewrite_infos = Category::getUrlRewriteInformations((int)$id_category); - foreach ($rewrite_infos as $infos) - $default_rewrite[$infos['id_lang']] = $link->getCategoryLink((int)$id_category, $infos['link_rewrite'], $infos['id_lang']); - } + $link = new Link(); + if ((int)Configuration::get('PS_REWRITING_SETTINGS')) { + $default_rewrite = array(); + if (Dispatcher::getInstance()->getController() == 'product' && ($id_product = (int)Tools::getValue('id_product'))) { + $rewrite_infos = Product::getUrlRewriteInformations((int)$id_product); + foreach ($rewrite_infos as $infos) { + $default_rewrite[$infos['id_lang']] = $link->getProductLink((int)$id_product, $infos['link_rewrite'], $infos['category_rewrite'], $infos['ean13'], (int)$infos['id_lang']); + } + } - if (Dispatcher::getInstance()->getController() == 'cms' && (($id_cms = (int)Tools::getValue('id_cms')) || ($id_cms_category = (int)Tools::getValue('id_cms_category')))) - { - $rewrite_infos = (isset($id_cms) && !isset($id_cms_category)) ? CMS::getUrlRewriteInformations($id_cms) : CMSCategory::getUrlRewriteInformations($id_cms_category); - foreach ($rewrite_infos as $infos) - { - $arr_link = (isset($id_cms) && !isset($id_cms_category)) ? - $link->getCMSLink($id_cms, $infos['link_rewrite'], null, $infos['id_lang']) : - $link->getCMSCategoryLink($id_cms_category, $infos['link_rewrite'], $infos['id_lang']); - $default_rewrite[$infos['id_lang']] = $arr_link; - } - } - $this->smarty->assign('lang_rewrite_urls', $default_rewrite); - } - return true; - } + if (Dispatcher::getInstance()->getController() == 'category' && ($id_category = (int)Tools::getValue('id_category'))) { + $rewrite_infos = Category::getUrlRewriteInformations((int)$id_category); + foreach ($rewrite_infos as $infos) { + $default_rewrite[$infos['id_lang']] = $link->getCategoryLink((int)$id_category, $infos['link_rewrite'], $infos['id_lang']); + } + } - /** - * Returns module content for header - * - * @param array $params Parameters - * @return string Content - */ - public function hookDisplayTop($params) - { - if (!$this->_prepareHook($params)) - return; - return $this->display(__FILE__, 'blocklanguages.tpl'); - } + if (Dispatcher::getInstance()->getController() == 'cms' && (($id_cms = (int)Tools::getValue('id_cms')) || ($id_cms_category = (int)Tools::getValue('id_cms_category')))) { + $rewrite_infos = (isset($id_cms) && !isset($id_cms_category)) ? CMS::getUrlRewriteInformations($id_cms) : CMSCategory::getUrlRewriteInformations($id_cms_category); + foreach ($rewrite_infos as $infos) { + $arr_link = (isset($id_cms) && !isset($id_cms_category)) ? + $link->getCMSLink($id_cms, $infos['link_rewrite'], null, $infos['id_lang']) : + $link->getCMSCategoryLink($id_cms_category, $infos['link_rewrite'], $infos['id_lang']); + $default_rewrite[$infos['id_lang']] = $arr_link; + } + } + $this->smarty->assign('lang_rewrite_urls', $default_rewrite); + } + return true; + } - public function hookDisplayNav($params) - { - return $this->hookDisplayTop($params); - } + public function hookDisplayNav() + { + if (!$this->_prepareHook()) { + return; + } + return $this->display(__FILE__, 'blocklanguages.tpl'); + } - public function hookDisplayTopSubPrimaryBlock($params) - { - return $this->hookDisplayTop($params); - } - - public function hookDisplayFooterMostLeftBlock($params) - { - return $this->hookDisplayTop($params); - } - - public function hookDisplayHeader($params) - { - $this->context->controller->addCSS($this->_path.'blocklanguages.css', 'all'); - } + public function hookDisplayExternalNavigationHook() + { + if (!$this->_prepareHook()) { + return; + } + return $this->display(__FILE__, 'external-navigation-hook.tpl'); + } } - - diff --git a/modules/blocklanguages/blocklanguages.tpl b/modules/blocklanguages/blocklanguages.tpl deleted file mode 100644 index 100d1c1d9..000000000 --- a/modules/blocklanguages/blocklanguages.tpl +++ /dev/null @@ -1,74 +0,0 @@ -{* -* 2007-2015 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* 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-2015 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - -{if count($languages) > 1} -
-
- {* @todo fix display current languages, removing the first foreach loop *} -{foreach from=$languages key=k item=language name="languages"} - {if $language.iso_code == $lang_iso} -

- {$language.iso_code|escape:'html':'UTF-8'} -

- {/if} -{/foreach} - -
-
- - -{/if} - \ No newline at end of file diff --git a/modules/blocklanguages/composer.json b/modules/blocklanguages/composer.json deleted file mode 100644 index 1f8cc1569..000000000 --- a/modules/blocklanguages/composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "prestashop/blocklanguages", - "description": "PrestaShop module blocklanguages", - "homepage": "https://github.com/PrestaShop/blocklanguages", - "license": "AFL - Academic Free License (AFL 3.0)", - "authors": [ - { - "name": "PrestaShop SA", - "email": "contact@prestashop.com" - } - ], - "require": { - "php": ">=5.3.2" - }, - "config": { - "preferred-install": "dist" - }, - "type": "prestashop-module" -} diff --git a/modules/blocklanguages/img/block_languages_top_p_bg.png b/modules/blocklanguages/img/block_languages_top_p_bg.png deleted file mode 100644 index 102df869d..000000000 Binary files a/modules/blocklanguages/img/block_languages_top_p_bg.png and /dev/null differ diff --git a/modules/blocklanguages/img/index.php b/modules/blocklanguages/img/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blocklanguages/img/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blocklanguages/index.php b/modules/blocklanguages/index.php index e5064df41..4ba399a0c 100644 --- a/modules/blocklanguages/index.php +++ b/modules/blocklanguages/index.php @@ -23,13 +23,13 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ - + header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - + header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); - + header("Location: ../"); exit; \ No newline at end of file diff --git a/modules/blocklanguages/translations/index.php b/modules/blocklanguages/translations/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/blocklanguages/translations/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/blocklanguages/upgrade/install-1.2.php b/modules/blocklanguages/upgrade/install-1.2.php deleted file mode 100644 index cf7cdf040..000000000 --- a/modules/blocklanguages/upgrade/install-1.2.php +++ /dev/null @@ -1,9 +0,0 @@ -registerHook('displayNav')); -} diff --git a/modules/blocklanguages/views/css/hook/blocklanguages.css b/modules/blocklanguages/views/css/hook/blocklanguages.css new file mode 100644 index 000000000..0e9da74b1 --- /dev/null +++ b/modules/blocklanguages/views/css/hook/blocklanguages.css @@ -0,0 +1,53 @@ +/** +* 2010-2022 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt +*/ + +.languages-block-wrap button.dropdown-toggle { + padding: 0; + background-color: transparent; + color: #fff; +} + +.languages-block-wrap .caret { + border-top-color: white; +} + +.languages-block-wrap .dropdown-menu { + max-height: 300px; + overflow-y: auto; +} + +/* popup - start */ +.fancybox-blocklanguages .fancybox-inner { + border-radius: 4px; +} + +.fancybox-blocklanguages .list-group { + margin-bottom: 0; +} + +.fancybox-blocklanguages .list-group-item { + border: none; + min-width: 160px; + font-size: 14px; +} + +.fancybox-blocklanguages .list-group-item.active { + background-color: #379BF0; +} +/* popup - end */ diff --git a/modules/blocklanguages/views/css/hook/index.php b/modules/blocklanguages/views/css/hook/index.php new file mode 100644 index 000000000..0a4a63f52 --- /dev/null +++ b/modules/blocklanguages/views/css/hook/index.php @@ -0,0 +1,29 @@ + 1} + +{/if} diff --git a/modules/blocklanguages/views/templates/hook/external-navigation-hook.tpl b/modules/blocklanguages/views/templates/hook/external-navigation-hook.tpl new file mode 100644 index 000000000..3220d7a58 --- /dev/null +++ b/modules/blocklanguages/views/templates/hook/external-navigation-hook.tpl @@ -0,0 +1,52 @@ +{* +* 2010-2022 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt +*} + +{if count($languages) > 1} + + + +{/if} diff --git a/modules/blocklanguages/views/templates/hook/index.php b/modules/blocklanguages/views/templates/hook/index.php new file mode 100644 index 000000000..0a4a63f52 --- /dev/null +++ b/modules/blocklanguages/views/templates/hook/index.php @@ -0,0 +1,29 @@ +name = 'qloblockcontact'; + $this->tab = 'front_office_features'; + $this->version = '1.0.0'; + $this->ps_versions_compliancy = array('min' => '1.6', 'max' => '1.6'); + $this->author = 'Webkul'; + $this->bootstrap = true; + parent::__construct(); + $this->displayName = $this->l('QloApps Contact Block'); + $this->description = $this->l('Allows admin to add customer service information to website navigation bar.'); + $this->confirmUnsinstall = $this->l('Are you sure you want to uninstall?'); + } + + public function install() + { + if (!parent::install() + || !Configuration::updateValue('QBC_PHONE', '') + || !Configuration::updateValue('QBC_EMAIL', '') + || !$this->registerHook('actionFrontControllerSetMedia') + || !$this->registerHook('displayNav') + || !$this->registerHook('displayExternalNavigationHook') + ) { + return false; + } + return true; + } + + public function getContent() + { + if (Tools::isSubmit('submitModuleConfig')) { + Configuration::updateValue('QBC_PHONE', Tools::getValue('QBC_PHONE')); + Configuration::updateValue('QBC_EMAIL', Tools::getValue('QBC_EMAIL')); + Tools::redirectAdmin( + $this->context->link->getAdminLink('AdminModules').'&configure='.$this->name.'&conf=6' + ); + } + return $this->renderForm(); + } + + public function hookActionFrontControllerSetMedia() + { + $this->context->controller->addCSS($this->getPathUri().'views/css/hook/display-nav.css'); + } + + public function hookDisplayNav() + { + $this->smarty->assign(array( + 'phone' => Configuration::get('QBC_PHONE'), + 'email' => Configuration::get('QBC_EMAIL'), + )); + return $this->display(__FILE__, 'display-nav.tpl'); + } + + public function renderForm() + { + $fields_form = array( + 'form' => array( + 'legend' => array( + 'title' => $this->l('Configuration'), + 'icon' => 'icon-cogs', + ), + 'input' => array( + array( + 'type' => 'text', + 'label' => $this->l('Phone'), + 'hint' => $this->l('The phone number used for customer service.'), + 'name' => 'QBC_PHONE', + 'class' => 'fixed-width-xxl', + ), + array( + 'type' => 'text', + 'label' => $this->l('Email'), + 'hint' => $this->l('The email used for customer service.'), + 'name' => 'QBC_EMAIL', + 'class' => 'fixed-width-xxl', + ), + ), + 'submit' => array( + 'title' => $this->l('Save'), + ) + ), + ); + + $helper = new HelperForm(); + $helper->show_toolbar = false; + $helper->table = $this->table; + $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT')); + $helper->default_form_language = $lang->id; + $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; + $this->fields_form = array(); + + $helper->identifier = $this->identifier; + $helper->submit_action = 'submitModuleConfig'; + $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; + $helper->token = Tools::getAdminTokenLite('AdminModules'); + $helper->tpl_vars = array( + 'fields_value' => $this->getConfigFieldsValues(), + 'languages' => $this->context->controller->getLanguages(), + 'id_language' => $this->context->language->id + ); + return $helper->generateForm(array($fields_form)); + } + + public function hookDisplayExternalNavigationHook() + { + $this->smarty->assign(array( + 'phone' => Configuration::get('QBC_PHONE'), + 'email' => Configuration::get('QBC_EMAIL'), + )); + return $this->display(__FILE__, 'external-navigation-hook.tpl'); + } + + public function getConfigFieldsValues() + { + return array( + 'QBC_PHONE' => Tools::getValue('QBC_PHONE', Configuration::get('QBC_PHONE')), + 'QBC_EMAIL' => Tools::getValue('QBC_EMAIL', Configuration::get('QBC_EMAIL')), + ); + } + + public function uninstall() + { + if (!parent::uninstall() + || !Configuration::deleteByName('QBC_PHONE') + || !Configuration::deleteByName('QBC_EMAIL') + ) { + return false; + } + return true; + } +} diff --git a/modules/qloblockcontact/views/css/hook/display-nav.css b/modules/qloblockcontact/views/css/hook/display-nav.css new file mode 100644 index 000000000..80d7c3d24 --- /dev/null +++ b/modules/qloblockcontact/views/css/hook/display-nav.css @@ -0,0 +1,43 @@ +/** +* 2010-2022 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt +*/ + +#nav-main .contact-item a { + color: #fff; +} + +#nav-main .contact-item { + margin-right: 24px; +} + +#nav-main .contact-item i { + font-size: 14px; + padding-right: 2px; + position: relative; + top: 1px; +} + +@media (max-width: 767px) { + #nav-main .contact-item { + display: none; + } +} + +#nav-main i.icon-phone { + font-size: 15px; +} diff --git a/modules/qloblockcontact/views/css/hook/index.php b/modules/qloblockcontact/views/css/hook/index.php new file mode 100644 index 000000000..0a4a63f52 --- /dev/null +++ b/modules/qloblockcontact/views/css/hook/index.php @@ -0,0 +1,29 @@ + + + {$email} + +{/if} +{if $phone} +
+ + {$phone} +
+{/if} diff --git a/modules/qloblockcontact/views/templates/hook/external-navigation-hook.tpl b/modules/qloblockcontact/views/templates/hook/external-navigation-hook.tpl new file mode 100644 index 000000000..4c20672cb --- /dev/null +++ b/modules/qloblockcontact/views/templates/hook/external-navigation-hook.tpl @@ -0,0 +1,39 @@ +{* +* 2010-2022 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2022 Webkul IN +* @license LICENSE.txt +*} + +{if $email || $phone} + +{/if} diff --git a/modules/qloblockcontact/views/templates/hook/index.php b/modules/qloblockcontact/views/templates/hook/index.php new file mode 100644 index 000000000..499810d54 --- /dev/null +++ b/modules/qloblockcontact/views/templates/hook/index.php @@ -0,0 +1,29 @@ +name = 'wkfooteraboutblock'; $this->tab = 'front_office_features'; $this->version = '1.0.3'; - $this->author = 'webkul'; + $this->author = 'Webkul'; $this->need_instance = 0; $this->bootstrap = true; @@ -40,7 +40,7 @@ class WkFooterAboutBlock extends Module $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); } - public function hookFooter($params) + public function hookDisplayFooterMostLeftBlock($params) { $this->context->smarty->assign( array('WK_HTL_SHORT_DESC' => Configuration::get('WK_HTL_SHORT_DESC', $this->context->language->id)) @@ -50,29 +50,10 @@ class WkFooterAboutBlock extends Module return $this->display(__FILE__, 'wkFooterAboutBlock.tpl'); } - public function hookDisplayFooterMostLeftBlock($params) - { - $languages = Language::getLanguages(true, $this->context->shop->id); - $currencies = Currency::getCurrencies(false, true); - if ((count($languages) <= 1) && (count($currencies) <= 1)) { - return $this->hookFooter($params); - } - } - - public function hookdisplayFooterPaymentInfo($params) - { - $languages = Language::getLanguages(true, $this->context->shop->id); - $currencies = Currency::getCurrencies(false, true); - if ((count($languages) > 1) || (count($currencies) > 1)) { - return $this->hookFooter($params); - } - } - public function install() { if (!parent::install() - ||!$this->registerHook('displayFooterMostLeftBlock') - ||!$this->registerHook('displayFooterPaymentInfo') + || !$this->registerHook('displayFooterMostLeftBlock') ) { return false; } diff --git a/themes/hotel-reservation-theme/css/global.css b/themes/hotel-reservation-theme/css/global.css index a13cb81e4..06274630b 100644 --- a/themes/hotel-reservation-theme/css/global.css +++ b/themes/hotel-reservation-theme/css/global.css @@ -5796,10 +5796,17 @@ header { max-height: 100%; } header .banner .row { margin: 0px; } - header .nav { - background-color: none; } - header .nav .row { + header #nav-main { + background-color: #333; + color: #fff; } + header #nav-main nav > div { + display: inline-block; + padding: 8px 0; } + header .nav .row, + header #nav-main .row { margin: 0px; } + #nav-main .nav-main-item-right:not(:last-of-type) { + margin-left: 24px; } header .nav nav { width: 100%; } header .row { diff --git a/themes/hotel-reservation-theme/css/modules/blockcurrencies/blockcurrencies.css b/themes/hotel-reservation-theme/css/modules/blockcurrencies/blockcurrencies.css deleted file mode 100644 index 2fd112500..000000000 --- a/themes/hotel-reservation-theme/css/modules/blockcurrencies/blockcurrencies.css +++ /dev/null @@ -1,91 +0,0 @@ -#.footer-container currencies-block-top { - position: relative; -} -/*@media (max-width:479px) { - .footer-container #currencies-block-top { - width: 25%; - } -}*/ -.footer-container #currencies-block-top span.firstWord { - display: none; -} -.footer-container #currencies-block-top div.current { - background-color: #3a3a3a; - border: 1px solid #868686; - color: #bfbfbf; - cursor: pointer; - font-size: 16px; - font-weight: 400; - line-height: 18px; - padding: 10px; - position: relative; - text-shadow: 1px 1px rgba(0, 0, 0, 0.2); -} -/*@media (max-width:479px) { - .footer-container #currencies-block-top div.current { - text-align: center; - padding: 9px 5px 10px; - font-size: 11px; - } -}*/ -.footer-container #currencies-block-top div.current strong { - color: #777777; -} - -/* .footer-container #currencies-block-top div.current:hover, .footer-container #currencies-block-top div.current.active { - background: #2b2b2b; } */ -.footer-container #currencies-block-top div.current:after { - content: "\f0d7"; - font-family: "FontAwesome"; - font-size: 12px; - position: absolute; - right: 10px; - line-height: 18px; - color: #bfbfbf; - vertical-align: 0px; - padding-left: 7px; -} -/*@media (max-width:479px) { - .footer-container #currencies-block-top div.current:after { - padding-left: 2px; - font-size: 13px; - line-height: 13px; - vertical-align: 0; - } -}*/ -/*@media (max-width:479px) { - .footer-container #currencies-block-top div.current .cur-label { - display: none; - } -}*/ -.footer-container #currencies-block-top ul { - display: none; - position: absolute; - top: 41px; - right: 0; - left: 0; /*width: 157px;*/ - background: #fff; - z-index: 1000; -} -.footer-container #currencies-block-top ul li { - font-weight: 400; - color: #ffffff; - line-height: 28px; - font-size: 16px; - padding: 0px; -} -.footer-container #currencies-block-top ul li a, .footer-container #currencies-block-top ul li > span { - font-weight: normal; - text-shadow: unset; - padding: 3px 10px; - display: block; - color: #555555; -} -.footer-container #currencies-block-top ul li.selected, .footer-container #currencies-block-top ul li:hover a { - background: #3594E6; -} -.footer-container #currencies-block-top ul li.selected > a, .footer-container #currencies-block-top ul li:hover a { - color: #fff; -} - -/*# sourceMappingURL=blockcurrencies.css.map */ \ No newline at end of file diff --git a/themes/hotel-reservation-theme/css/modules/blockcurrencies/index.php b/themes/hotel-reservation-theme/css/modules/blockcurrencies/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/css/modules/blockcurrencies/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/themes/hotel-reservation-theme/css/modules/blocklanguages/blocklanguages.css b/themes/hotel-reservation-theme/css/modules/blocklanguages/blocklanguages.css deleted file mode 100644 index 0210003ae..000000000 --- a/themes/hotel-reservation-theme/css/modules/blocklanguages/blocklanguages.css +++ /dev/null @@ -1,77 +0,0 @@ -.footer-container #languages-block-top { - /*float: right; - margin-right: 10px;*/ - /*border-left: 1px solid #515151;*/ - position: relative; } - /*@media (max-width: 479px) { - .footer-container #languages-block-top { - width: 25%; } }*/ - .footer-container #languages-block-top span.firstWord { - display: none; } - .footer-container #languages-block-top div.current { - background-color: #3a3a3a; - border: 1px solid #868686; - color: #bfbfbf; - cursor: pointer; - font-size: 16px; - font-weight: 400; - line-height: 18px; - padding: 10px; - position: relative; - text-shadow: 1px 1px rgba(0, 0, 0, 0.2); } - /*@media (max-width: 479px) { - .footer-container #languages-block-top div.current { - text-align: center; - padding: 9px 5px 10px; - font-size: 11px; } }*/ - - .footer-container #languages-block-top div.current strong { - color: #777777; } - .footer-container #languages-block-top div.current:after { - content: "\f0d7"; - font-family: "FontAwesome"; - font-size: 12px; - position: absolute; - right: 10px; - line-height: 18px; - color: #bfbfbf; - vertical-align: 0px; - padding-left: 7px; } - /*@media (max-width: 479px) { - .footer-container #languages-block-top div.current:after { - padding-left: 2px; - font-size: 13px; - line-height: 13px; - vertical-align: 0; } }*/ - - @media (max-width: 479px) { - .footer-container #languages-block-top div.current .cur-label { - display: none; } } - .footer-container #languages-block-top ul { - display: none; - position: absolute; - top: 41px; - right: 0; - left: 0; - background: #fff; - padding: 2px 0px 0px; - z-index: 10; } - .footer-container #languages-block-top ul li { - font-weight: 400; - color: #ffffff; - line-height: 28px; - font-size: 16px; - padding: 0px; } - .footer-container #languages-block-top ul li a, - .footer-container #languages-block-top ul li > span { - font-weight: normal; - text-shadow: unset; - padding: 3px 10px; - display: block; - color: #555555; } - .footer-container #languages-block-top ul li.selected, .footer-container #languages-block-top ul li:hover a { - background: #3594E6; } - .footer-container #languages-block-top ul li.selected > span, .footer-container #languages-block-top ul li:hover a { - color: #fff; } - -/*# sourceMappingURL=blocklanguages.css.map */ diff --git a/themes/hotel-reservation-theme/css/modules/blocklanguages/index.php b/themes/hotel-reservation-theme/css/modules/blocklanguages/index.php deleted file mode 100644 index 9a99a8662..000000000 --- a/themes/hotel-reservation-theme/css/modules/blocklanguages/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; diff --git a/themes/hotel-reservation-theme/header.tpl b/themes/hotel-reservation-theme/header.tpl index bc6fc2e1c..db1598043 100644 --- a/themes/hotel-reservation-theme/header.tpl +++ b/themes/hotel-reservation-theme/header.tpl @@ -92,7 +92,7 @@ -