From 00253ab8b523602ab4a5d018f8ffac7c8f54f332 Mon Sep 17 00:00:00 2001
From: Jerome Nadaud
Date: Wed, 11 Dec 2013 15:03:11 +0100
Subject: [PATCH 1/5] [-] MO : BlockLayered - FixBug #PNM-468 Wrong filter unit
---
modules/blocklayered/blocklayered.tpl | 8 +++-----
.../modules/blocklayered/blocklayered.tpl | 8 +++-----
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/modules/blocklayered/blocklayered.tpl b/modules/blocklayered/blocklayered.tpl
index 006d6dab8..9348625fc 100644
--- a/modules/blocklayered/blocklayered.tpl
+++ b/modules/blocklayered/blocklayered.tpl
@@ -51,12 +51,10 @@ param_product_url = '';
x
{$filter.name|escape:html:'UTF-8'}{l s=':' mod='blocklayered'}
- {if $filter.format}
- {displayPrice price=$filter.values[0]} -
- {displayPrice price=$filter.values[1]}
+ {if $filter.format == 1}
+ {l s='%1$s - %2$s'|sprintf:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8'}
{else}
- {$filter.values[0]|escape:html:'UTF-8'}{$filter.unit|escape:html:'UTF-8'} -
- {$filter.values[1]|escape:html:'UTF-8'}{$filter.unit|escape:html:'UTF-8'}
+ {l s='%1$s %3$s - %2$s %3$s'|sprintf:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8'}
{/if}
{/if}
diff --git a/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl b/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
index 4097c239a..3832c3a49 100644
--- a/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
+++ b/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
@@ -51,12 +51,10 @@ param_product_url = '';
{$filter.name|escape:html:'UTF-8'}{l s=':' mod='blocklayered'}
- {if $filter.format}
- {displayPrice price=$filter.values[0]} -
- {displayPrice price=$filter.values[1]}
+ {if $filter.format == 1}
+ {l s='%1$s - %2$s'|sprintf:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8'}
{else}
- {$filter.values[0]|escape:html:'UTF-8'}{$filter.unit|escape:html:'UTF-8'} -
- {$filter.values[1]|escape:html:'UTF-8'}{$filter.unit|escape:html:'UTF-8'}
+ {l s='%1$s %3$s - %2$s %3$s'|sprintf:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8'}
{/if}
{/if}
From 1056f295a37053cba88ef1c384e7f908fe8c085a Mon Sep 17 00:00:00 2001
From: Jerome Nadaud
Date: Wed, 11 Dec 2013 15:08:01 +0100
Subject: [PATCH 2/5] [-] MO : BlockLayered - FixBug #PNM-468 Correct sprintf
format
---
modules/blocklayered/blocklayered.tpl | 5 ++---
.../default-bootstrap/modules/blocklayered/blocklayered.tpl | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/modules/blocklayered/blocklayered.tpl b/modules/blocklayered/blocklayered.tpl
index 9348625fc..6264b393e 100644
--- a/modules/blocklayered/blocklayered.tpl
+++ b/modules/blocklayered/blocklayered.tpl
@@ -50,11 +50,10 @@ param_product_url = '';
{if $smarty.foreach.f_values.first}
x
- {$filter.name|escape:html:'UTF-8'}{l s=':' mod='blocklayered'}
{if $filter.format == 1}
- {l s='%1$s - %2$s'|sprintf:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8'}
+ {l s='%1$s: %2$s - %3$s'|sprintf:$filter.name:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8' mod='blocklayered'}
{else}
- {l s='%1$s %3$s - %2$s %3$s'|sprintf:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8'}
+ {l s='%1$s: %2$s %4$s - %3$s %4$s'|sprintf:$filter.name:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8' mod='blocklayered'}
{/if}
{/if}
diff --git a/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl b/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
index 3832c3a49..484b3b1ea 100644
--- a/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
+++ b/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
@@ -50,11 +50,10 @@ param_product_url = '';
{if $smarty.foreach.f_values.first}
- {$filter.name|escape:html:'UTF-8'}{l s=':' mod='blocklayered'}
{if $filter.format == 1}
- {l s='%1$s - %2$s'|sprintf:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8'}
+ {l s='%1$s: %2$s - %3$s'|sprintf:$filter.name:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8' mod='blocklayered'}
{else}
- {l s='%1$s %3$s - %2$s %3$s'|sprintf:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8'}
+ {l s='%1$s: %2$s %4$s - %3$s %4$s'|sprintf:$filter.name:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8' mod='blocklayered'}
{/if}
{/if}
From 472742a42dbf3d5bc1daee203526b3ca76aec4a0 Mon Sep 17 00:00:00 2001
From: Jerome Nadaud
Date: Wed, 11 Dec 2013 16:22:06 +0100
Subject: [PATCH 3/5] // Small smarty escape fix
---
modules/blocklayered/blocklayered.php | 5 ++++-
.../modules/blocklayered/blocklayered.tpl | 18 +++++++++---------
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php
index 3ad83464f..7346ca95c 100644
--- a/modules/blocklayered/blocklayered.php
+++ b/modules/blocklayered/blocklayered.php
@@ -1458,7 +1458,10 @@ class BlockLayered extends Module
Configuration::updateValue('PS_LAYERED_FILTER_INDEX_MNF', (int)Tools::getValue('ps_layered_filter_index_manufacturer'));
Configuration::updateValue('PS_LAYERED_FILTER_INDEX_CAT', (int)Tools::getValue('ps_layered_filter_index_category'));
- $message = ''.$this->l('Settings saved successfully').'
';
+ if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE)
+ $message = ''.$this->l('Settings saved successfully').'
';
+ else
+ $message = ''.$this->l('Settings saved successfully').'
';
}
else if (Tools::getValue('deleteFilterTemplate'))
{
diff --git a/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl b/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
index 484b3b1ea..493e3000f 100644
--- a/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
+++ b/themes/default-bootstrap/modules/blocklayered/blocklayered.tpl
@@ -51,9 +51,9 @@ param_product_url = '';
{if $filter.format == 1}
- {l s='%1$s: %2$s - %3$s'|sprintf:$filter.name:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8' mod='blocklayered'}
+ {l s='%1$s: %2$s - %3$s'|sprintf:$filter.name:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:'html':'UTF-8' mod='blocklayered'}
{else}
- {l s='%1$s: %2$s %4$s - %3$s %4$s'|sprintf:$filter.name:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8' mod='blocklayered'}
+ {l s='%1$s: %2$s %4$s - %3$s %4$s'|sprintf:$filter.name:$filter.values[0]:$filter.values[1]:$filter.unit|escape:'html':'UTF-8' mod='blocklayered'}
{/if}
{/if}
@@ -62,7 +62,7 @@ param_product_url = '';
{if $id_value == $filter_key && !is_numeric($filter_value) && ($filter.type eq 'id_attribute_group' || $filter.type eq 'id_feature') || $id_value == $filter_value && $filter.type neq 'id_attribute_group' && $filter.type neq 'id_feature'}
- {$filter.name|escape:html:'UTF-8'}{l s=':' mod='blocklayered'} {$value.name|escape:html:'UTF-8'}
+ {$filter.name|escape:'html':'UTF-8'}{l s=':' mod='blocklayered'} {$value.name|escape:'html':'UTF-8'}
{/if}
{/foreach}
@@ -82,7 +82,7 @@ param_product_url = '';
{/if}
-
{$filter.name|escape:html:'UTF-8'}
+
{$filter.name|escape:'html':'UTF-8'}
@@ -99,9 +99,9 @@ param_product_url = '';
{/if}
@@ -120,9 +120,9 @@ param_product_url = '';
{/if}
@@ -134,7 +134,7 @@ param_product_url = '';
{foreach from=$filter.values key=id_value item=value}
{if $value.nbr || !$hide_0_values}
{/if}
{/foreach}
From c574b04a636d9a687b99206633e497e076289088 Mon Sep 17 00:00:00 2001
From: gRoussac
Date: Wed, 11 Dec 2013 16:22:33 +0100
Subject: [PATCH 4/5] [*] FO : Move header modules to new hook, last part 2/2
---
.../cart_rules/helpers/list/list_header.tpl | 2 +-
.../customers/helpers/list/list_header.tpl | 2 +-
.../template/controllers/modules/page.tpl | 2 +-
modules/blockbanner/blockbanner.tpl | 3 +-
modules/blockcontact/blockcontact.php | 20 +-
modules/blockcontact/config.xml | 2 +-
modules/blockcontact/upgrade/install-1.1.php | 9 +
modules/blockcurrencies/blockcurrencies.php | 13 +-
modules/blockcurrencies/config.xml | 6 +-
.../blockcurrencies/upgrade/install-0.2.php | 9 +
modules/blocklanguages/blocklanguages.php | 16 +-
modules/blocklanguages/config.xml | 2 +-
.../blocklanguages/upgrade/install-1.2.php | 9 +
themes/default-bootstrap/404.tpl | 2 +-
themes/default-bootstrap/address.tpl | 34 +-
themes/default-bootstrap/addresses.tpl | 12 +-
themes/default-bootstrap/authentication.tpl | 12 +-
themes/default-bootstrap/breadcrumb.tpl | 2 +-
themes/default-bootstrap/category.tpl | 4 +-
themes/default-bootstrap/css/global.css | 5 +-
.../css/jquery/jquery.bxslider.css | 256 +++----
.../css/modules/blockcart/blockcart.css | 530 ++-------------
.../css/modules/blockcontact/blockcontact.css | 25 +-
.../css/modules/homeslider/bx_styles.css | 340 +++++-----
themes/default-bootstrap/css/product_list.css | 625 +++---------------
themes/default-bootstrap/discount.tpl | 4 +-
themes/default-bootstrap/guest-tracking.tpl | 4 +-
themes/default-bootstrap/header.tpl | 4 +-
themes/default-bootstrap/history.tpl | 14 +-
themes/default-bootstrap/identity.tpl | 4 +-
.../js/jquery/resonsive_utilites.js | 9 +-
.../templates/front/payment_execution.tpl | 4 +-
.../bankwire/views/templates/hook/payment.tpl | 2 +-
.../views/templates/hook/payment_return.tpl | 4 +-
.../modules/blockcart/blockcart-json.tpl | 4 +-
.../modules/blockcart/blockcart.tpl | 20 +-
.../modules/blockcms/blockcms.tpl | 22 +-
.../modules/blockcontact/blockcontact.tpl | 12 +-
.../blockcurrencies/blockcurrencies.tpl | 47 ++
.../modules/blocklanguages/blocklanguages.tpl | 70 ++
.../blockmanufacturer/blockmanufacturer.tpl | 6 +-
.../modules/blockmyaccount/blockmyaccount.tpl | 16 +-
.../blockmyaccountfooter.tpl | 14 +-
.../blocknewsletter/blocknewsletter.tpl | 2 +-
.../modules/blocksearch/blocksearch-top.tpl | 4 +-
.../modules/blocksearch/blocksearch.tpl | 2 +-
.../modules/blocksocial/blocksocial.tpl | 6 +-
.../modules/blockspecials/blockspecials.tpl | 8 +-
.../modules/blockstore/blockstore.tpl | 6 +-
.../modules/blocksupplier/blocksupplier.tpl | 6 +-
.../modules/blocktags/blocktags.tpl | 2 +-
.../modules/blocktopmenu/blocktopmenu.tpl | 2 +-
.../modules/blockuserinfo/blockuserinfo.tpl | 2 +-
.../modules/blockuserinfo/nav.tpl | 6 +-
.../modules/blockviewed/blockviewed.tpl | 6 +-
.../blockwishlist/blockwishlist-ajax.tpl | 4 +-
.../modules/blockwishlist/blockwishlist.tpl | 4 +-
.../modules/blockwishlist/managewishlist.tpl | 8 +-
.../modules/blockwishlist/view.tpl | 10 +-
.../views/templates/front/mywishlist.tpl | 4 +-
.../templates/front/payment_execution.tpl | 4 +-
.../cheque/views/templates/hook/payment.tpl | 2 +-
.../views/templates/hook/payment_return.tpl | 4 +-
.../loyalty/views/templates/front/loyalty.tpl | 6 +-
.../views/templates/hook/my-account.tpl | 2 +-
.../productcomments/productcomments.tpl | 2 +-
.../productscategory/productscategory.tpl | 4 +-
.../views/templates/front/program.tpl | 12 +-
.../views/templates/hook/my-account.tpl | 2 +-
.../views/templates/hook/shopping-cart.tpl | 2 +-
.../sendtoafriend/sendtoafriend-extra.tpl | 2 +-
.../modules/stripejs/order-confirmation.tpl | 6 +-
.../modules/stripejs/payment.tpl | 4 +-
themes/default-bootstrap/my-account.tpl | 14 +-
themes/default-bootstrap/nbr-product-page.tpl | 2 +-
.../order-address-multishipping.tpl | 10 +-
.../order-address-product-line.tpl | 8 +-
themes/default-bootstrap/order-address.tpl | 12 +-
themes/default-bootstrap/order-carrier.tpl | 8 +-
.../default-bootstrap/order-confirmation.tpl | 4 +-
themes/default-bootstrap/order-detail.tpl | 12 +-
themes/default-bootstrap/order-follow.tpl | 10 +-
.../order-opc-new-account.tpl | 4 +-
themes/default-bootstrap/order-payment.tpl | 8 +-
themes/default-bootstrap/order-return.tpl | 6 +-
themes/default-bootstrap/order-slip.tpl | 8 +-
themes/default-bootstrap/order-steps.tpl | 6 +-
themes/default-bootstrap/pagination.tpl | 2 +-
themes/default-bootstrap/password.tpl | 4 +-
themes/default-bootstrap/product-compare.tpl | 2 +-
themes/default-bootstrap/product-list.tpl | 8 +-
themes/default-bootstrap/product.tpl | 40 +-
.../default-bootstrap/products-comparison.tpl | 16 +-
themes/default-bootstrap/scenes.tpl | 2 +-
.../shopping-cart-product-line.tpl | 8 +-
themes/default-bootstrap/shopping-cart.tpl | 12 +-
themes/default-bootstrap/sitemap.tpl | 28 +-
97 files changed, 858 insertions(+), 1712 deletions(-)
create mode 100644 modules/blockcontact/upgrade/install-1.1.php
create mode 100644 modules/blockcurrencies/upgrade/install-0.2.php
create mode 100644 modules/blocklanguages/upgrade/install-1.2.php
create mode 100644 themes/default-bootstrap/modules/blockcurrencies/blockcurrencies.tpl
create mode 100644 themes/default-bootstrap/modules/blocklanguages/blocklanguages.tpl
diff --git a/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/list_header.tpl b/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/list_header.tpl
index 396a824b6..e37acba66 100644
--- a/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/list_header.tpl
+++ b/admin-dev/themes/default/template/controllers/cart_rules/helpers/list/list_header.tpl
@@ -26,7 +26,7 @@
{block name='override_header'}
{if $submit_form_ajax}
diff --git a/admin-dev/themes/default/template/controllers/customers/helpers/list/list_header.tpl b/admin-dev/themes/default/template/controllers/customers/helpers/list/list_header.tpl
index 38b9eecff..50f7bb5f5 100644
--- a/admin-dev/themes/default/template/controllers/customers/helpers/list/list_header.tpl
+++ b/admin-dev/themes/default/template/controllers/customers/helpers/list/list_header.tpl
@@ -27,7 +27,7 @@
{block name='override_header'}
{if $submit_form_ajax}
diff --git a/admin-dev/themes/default/template/controllers/modules/page.tpl b/admin-dev/themes/default/template/controllers/modules/page.tpl
index efd10729f..243738042 100644
--- a/admin-dev/themes/default/template/controllers/modules/page.tpl
+++ b/admin-dev/themes/default/template/controllers/modules/page.tpl
@@ -72,7 +72,7 @@
{l s='An upgrade is available for some of your modules!'}
diff --git a/modules/blockbanner/blockbanner.tpl b/modules/blockbanner/blockbanner.tpl
index 9604d6c1a..da0b77b28 100644
--- a/modules/blockbanner/blockbanner.tpl
+++ b/modules/blockbanner/blockbanner.tpl
@@ -22,7 +22,6 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
-
-
+
\ No newline at end of file
diff --git a/modules/blockcontact/blockcontact.php b/modules/blockcontact/blockcontact.php
index b11a3e0d6..3fddf9ce1 100644
--- a/modules/blockcontact/blockcontact.php
+++ b/modules/blockcontact/blockcontact.php
@@ -33,9 +33,9 @@ class Blockcontact extends Module
{
$this->name = 'blockcontact';
$this->tab = 'front_office_features';
- $this->version = '1.0';
+ $this->version = '1.1';
- $this->bootstrap = true;
+ $this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Contact Block');
@@ -47,7 +47,7 @@ class Blockcontact extends Module
return parent::install()
&& Configuration::updateValue('blockcontact_telnumber', '')
&& Configuration::updateValue('blockcontact_email', '')
- && $this->registerHook('displayRightColumn')
+ && $this->registerHook('displayNav')
&& $this->registerHook('displayHeader');
}
@@ -74,12 +74,12 @@ class Blockcontact extends Module
return $html;
}
- public function hookDisplayHeader()
+ public function hookDisplayHeader($params)
{
$this->context->controller->addCSS(($this->_path).'blockcontact.css', 'all');
}
- public function hookDisplayRightColumn()
+ public function hookDisplayRightColumn($params)
{
global $smarty;
if (!$this->isCached('blockcontact.tpl', $this->getCacheId()))
@@ -90,9 +90,15 @@ class Blockcontact extends Module
return $this->display(__FILE__, 'blockcontact.tpl', $this->getCacheId());
}
- public function hookDisplayLeftColumn()
+ public function hookDisplayLeftColumn($params)
{
- return $this->hookDisplayRightColumn();
+ return $this->hookDisplayRightColumn($params);
+ }
+
+ public function hookDisplayNav($params)
+ {
+
+ return $this->hookDisplayRightColumn($params);
}
public function renderForm()
diff --git a/modules/blockcontact/config.xml b/modules/blockcontact/config.xml
index 967c3ddaa..2bb59c1ae 100644
--- a/modules/blockcontact/config.xml
+++ b/modules/blockcontact/config.xml
@@ -2,7 +2,7 @@
blockcontact
-
+
diff --git a/modules/blockcontact/upgrade/install-1.1.php b/modules/blockcontact/upgrade/install-1.1.php
new file mode 100644
index 000000000..33ef44c89
--- /dev/null
+++ b/modules/blockcontact/upgrade/install-1.1.php
@@ -0,0 +1,9 @@
+unregisterHook('displayRightColumn') && $object->registerHook('displayNav'));
+}
diff --git a/modules/blockcurrencies/blockcurrencies.php b/modules/blockcurrencies/blockcurrencies.php
index 34eda8b86..8376e8bd3 100644
--- a/modules/blockcurrencies/blockcurrencies.php
+++ b/modules/blockcurrencies/blockcurrencies.php
@@ -33,7 +33,7 @@ class BlockCurrencies extends Module
{
$this->name = 'blockcurrencies';
$this->tab = 'front_office_features';
- $this->version = 0.1;
+ $this->version = 0.2;
$this->author = 'PrestaShop';
$this->need_instance = 0;
@@ -45,7 +45,7 @@ class BlockCurrencies extends Module
public function install()
{
- return parent::install() && $this->registerHook('top') && $this->registerHook('header');
+ return parent::install() && $this->registerHook('displayNav') && $this->registerHook('displayHeader');
}
private function _prepareHook($params)
@@ -67,13 +67,18 @@ class BlockCurrencies extends Module
* @param array $params Parameters
* @return string Content
*/
- public function hookTop($params)
+ public function hookDisplayTop($params)
{
if ($this->_prepareHook($params))
return $this->display(__FILE__, 'blockcurrencies.tpl');
}
- public function hookHeader($params)
+ public function hookDisplayNav($params)
+ {
+ return $this->hookDisplayTop($params);
+ }
+
+ public function hookDisplayHeader($params)
{
if (Configuration::get('PS_CATALOG_MODE'))
return;
diff --git a/modules/blockcurrencies/config.xml b/modules/blockcurrencies/config.xml
index f5ba1e9fb..2f1a202c1 100755
--- a/modules/blockcurrencies/config.xml
+++ b/modules/blockcurrencies/config.xml
@@ -1,9 +1,9 @@
blockcurrencies
-
-
-
+
+
+
0
diff --git a/modules/blockcurrencies/upgrade/install-0.2.php b/modules/blockcurrencies/upgrade/install-0.2.php
new file mode 100644
index 000000000..9f76b7b77
--- /dev/null
+++ b/modules/blockcurrencies/upgrade/install-0.2.php
@@ -0,0 +1,9 @@
+unregisterHook('top') && $object->registerHook('displayNav'));
+}
diff --git a/modules/blocklanguages/blocklanguages.php b/modules/blocklanguages/blocklanguages.php
index 351102cdb..e460daad3 100644
--- a/modules/blocklanguages/blocklanguages.php
+++ b/modules/blocklanguages/blocklanguages.php
@@ -33,19 +33,19 @@ class BlockLanguages extends Module
{
$this->name = 'blocklanguages';
$this->tab = 'front_office_features';
- $this->version = 1.1;
+ $this->version = 1.2;
$this->author = 'PrestaShop';
$this->need_instance = 0;
parent::__construct();
$this->displayName = $this->l('Language block');
- $this->description = $this->l('Adds a block allowing customers to select a website language. ');
+ $this->description = $this->l('Adds a block allowing customers to select a website language.');
}
public function install()
{
- return (parent::install() && $this->registerHook('top') && $this->registerHook('header'));
+ return (parent::install() && $this->registerHook('displayNav') && $this->registerHook('displayHeader'));
}
private function _prepareHook($params)
@@ -94,14 +94,20 @@ class BlockLanguages extends Module
* @param array $params Parameters
* @return string Content
*/
- public function hookTop($params)
+ public function hookDisplayTop($params)
{
if (!$this->_prepareHook($params))
return;
return $this->display(__FILE__, 'blocklanguages.tpl');
}
- public function hookHeader($params)
+ public function hookDisplayNav($params)
+ {
+
+ return $this->hookDisplayTop($params);
+ }
+
+ public function hookDisplayHeader($params)
{
$this->context->controller->addCSS($this->_path.'blocklanguages.css', 'all');
}
diff --git a/modules/blocklanguages/config.xml b/modules/blocklanguages/config.xml
index c83d813dc..463e60398 100755
--- a/modules/blocklanguages/config.xml
+++ b/modules/blocklanguages/config.xml
@@ -2,7 +2,7 @@
blocklanguages
-
+
diff --git a/modules/blocklanguages/upgrade/install-1.2.php b/modules/blocklanguages/upgrade/install-1.2.php
new file mode 100644
index 000000000..1fee978f9
--- /dev/null
+++ b/modules/blocklanguages/upgrade/install-1.2.php
@@ -0,0 +1,9 @@
+unregisterHook('top') && $object->registerHook('displayNav'));
+}
diff --git a/themes/default-bootstrap/404.tpl b/themes/default-bootstrap/404.tpl
index d29bb86cb..0afd5b4a4 100644
--- a/themes/default-bootstrap/404.tpl
+++ b/themes/default-bootstrap/404.tpl
@@ -33,7 +33,7 @@
{l s='To find a product, please type its name in the field below.'}
-