// Blocklayered: BO message used "echo", replaced by a return.
// Blocklayered: Bug when show_limit = 0
This commit is contained in:
@@ -1211,9 +1211,9 @@ class BlockLayered extends Module
|
||||
|
||||
Db::getInstance()->AutoExecute(_DB_PREFIX_.'layered_filter', $valuesToInsert, 'INSERT');
|
||||
|
||||
echo '<div class="conf">'.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '<img src="../img/admin/ok2.png" alt="" />').
|
||||
$this->l('Your filter').' "'.Tools::safeOutput(Tools::getValue('layered_tpl_name')).'" '.
|
||||
((isset($_POST['id_layered_filter']) && $_POST['id_layered_filter']) ? $this->l('was updated successfully.') : $this->l('was added successfully.')).'</div>';
|
||||
$html .= '<div class="conf">'.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '<img src="../img/admin/ok2.png" alt="" />').
|
||||
$this->l('Your filter').' "'.Tools::safeOutput(Tools::getValue('layered_tpl_name')).'" '.
|
||||
((isset($_POST['id_layered_filter']) && $_POST['id_layered_filter']) ? $this->l('was updated successfully.') : $this->l('was added successfully.')).'</div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ param_product_url = '#{$param_product_url}';
|
||||
</script>
|
||||
{/if}
|
||||
</ul>
|
||||
{if count($filter.values) > $filter.filter_show_limit && $filter.filter_type != 2}
|
||||
{if count($filter.values) > $filter.filter_show_limit && $filter.filter_show_limit > 0 && $filter.filter_type != 2}
|
||||
<span class="hide-action more">{l s='Show more' mod='blocklayered'}</span>
|
||||
<span class="hide-action less">{l s='Show less' mod='blocklayered'}</span>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user