From a5c0bd0a726f700cdd37f2b89ddf93c05ee1d394 Mon Sep 17 00:00:00 2001 From: Dim00z Date: Mon, 22 Feb 2016 20:32:40 +0100 Subject: [PATCH] Update to v1.6.2b Modif tpl (some smarty compilation errors now corrected) --- gshoppingflux/gshoppingflux.php | 4 ++-- .../templates/admin/_configure/helpers/form/form.tpl | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gshoppingflux/gshoppingflux.php b/gshoppingflux/gshoppingflux.php index e2b238d..4c8e04c 100644 --- a/gshoppingflux/gshoppingflux.php +++ b/gshoppingflux/gshoppingflux.php @@ -1299,7 +1299,7 @@ public function renderLangForm() 'form' => array( 'legend' => array( 'title' => $this->l('Language export settings'), - 'icon' => 'icon-link' + 'icon' => 'icon-globe' ), 'input' => array( array( @@ -1456,7 +1456,7 @@ public function renderCategList() $fields_list = array( 'id_gcategory' => array( - 'title' => $this->l('Category ID') + 'title' => $this->l('ID') ) ); diff --git a/gshoppingflux/views/templates/admin/_configure/helpers/form/form.tpl b/gshoppingflux/views/templates/admin/_configure/helpers/form/form.tpl index f1287cc..7d471b6 100644 --- a/gshoppingflux/views/templates/admin/_configure/helpers/form/form.tpl +++ b/gshoppingflux/views/templates/admin/_configure/helpers/form/form.tpl @@ -27,13 +27,14 @@ {block name="input"} {if $input.type == 'switch' && isset($input.is_bool) && $input.is_bool == true && isset($input.disabled) && $input.disabled == true} - {if $fields_value[$input.name] == 1} + {$enab = $fields_value[$input.name]} + {if $enab == 1} {$input.values[0].label} {else} {$input.values[1].label} - {/if} - - {elseif $input.type == 'switch' && $smarty.const._PS_VERSION_|@addcslashes:'\'' < '1.6'} + {/if} + + {elseif $input.type == 'switch' && $smarty.const._PS_VERSION_|@addcslashes:'\'' < '1.6'} {foreach $input.values as $value}