diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 16289c36e..3ad83464f 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -346,7 +346,10 @@ class BlockLayered extends Module 'is_indexable' =>(bool)$is_indexable )); - return $this->display(__FILE__, 'attribute_group_form.tpl'); + if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE) + return $this->display(__FILE__, 'attribute_group_form_1.6.tpl'); + else + return $this->display(__FILE__, 'attribute_group_form.tpl'); } //ATTRIBUTES @@ -421,8 +424,11 @@ class BlockLayered extends Module 'default_form_language' => (int)$this->context->controller->default_form_language, 'values' => $values )); - - return $this->display(__FILE__, 'attribute_form.tpl'); + + if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE) + return $this->display(__FILE__, 'attribute_form_1.6.tpl'); + else + return $this->display(__FILE__, 'attribute_form.tpl'); } //FEATURES @@ -514,8 +520,11 @@ class BlockLayered extends Module 'values' => $values, 'is_indexable' =>(bool)$is_indexable )); - - return $this->display(__FILE__, 'feature_form.tpl'); + + if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE) + return $this->display(__FILE__, 'feature_form_1.6.tpl'); + else + return $this->display(__FILE__, 'feature_form.tpl'); } //FEATURES VALUE @@ -591,8 +600,11 @@ class BlockLayered extends Module 'default_form_language' => (int)$this->context->controller->default_form_language, 'values' => $values )); - - return $this->display(__FILE__, 'feature_value_form.tpl'); + + if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE) + return $this->display(__FILE__, 'feature_value_form_1.6.tpl'); + else + return $this->display(__FILE__, 'feature_value_form.tpl'); } public function hookProductListAssign($params) diff --git a/modules/blocklayered/views/templates/hook/attribute_form.tpl b/modules/blocklayered/views/templates/hook/attribute_form.tpl index 5430bbdad..12d4f142b 100644 --- a/modules/blocklayered/views/templates/hook/attribute_form.tpl +++ b/modules/blocklayered/views/templates/hook/attribute_form.tpl @@ -22,61 +22,32 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registred Trademark & Property of PrestaShop SA *} -
{l s='Specific URL format in block layered generation' mod='blockfacette'}
+ {l s='Invalid characters: <>;=#{}_' mod='blockfacette'}{l s='Specific URL format in block layered generation' mod='blockfacette'}
-{l s='Specific format for meta title' mod='blockfacette'}
{l s='Specific format for meta title' mod='blockfacette'}
-{l s='Specific URL format in block layered generation' mod='blockfacette'}
+{l s='Specific format for meta title' mod='blockfacette'}
+{l s='Specific URL format in block layered generation' mod='blockfacette'}
+ {l s='Invalid characters: <>;=#{}_' mod='blockfacette'}{l s='Specific URL format in block layered generation' mod='blockfacette'}
-{l s='Specific format for meta title' mod='blockfacette'}
{l s='Specific format for meta title' mod='blockfacette'}
-{l s='Use this attribute in URL generated by the layered navigation module' mod='blockfacette'}
-{l s='Use this attribute in URL generated by the layered navigation module' mod='blockfacette'}
+{l s='Specific URL format in block layered generation' mod='blockfacette'}
+{l s='Specific format for meta title' mod='blockfacette'}
+{l s='Use this attribute in URL generated by the layered navigation module' mod='blockfacette'}
+{l s='Specific URL format in block layered generation' mod='blockfacette'}
+ {l s='Invalid characters: <>;=#{}_' mod='blockfacette'}{l s='Specific URL format in block layered generation' mod='blockfacette'}
-{l s='Specific format for meta title' mod='blockfacette'}
{l s='Specific format for meta title' mod='blockfacette'}
-{l s='Use this attribute in URL generated by the layered navigation module' mod='blockfacette'}
-{l s='Use this attribute in URL generated by the layered navigation module' mod='blockfacette'}
+{l s='Specific URL format in block layered generation' mod='blockfacette'}
+{l s='Specific format for meta title' mod='blockfacette'}
+{l s='Use this attribute in URL generated by the layered navigation module' mod='blockfacette'}
+{l s='Specific URL format in block layered generation' mod='blockfacette'}
+ {l s='Invalid characters: <>;=#{}_' mod='blockfacette'}{l s='Specific URL format in block layered generation' mod='blockfacette'}
-{l s='Specific format for meta title' mod='blockfacette'}
{l s='Specific format for meta title' mod='blockfacette'}
-{l s='Specific URL format in block layered generation' mod='blockfacette'}
+{l s='Specific format for meta title' mod='blockfacette'}
+