32 lines
736 B
Smarty
Executable File
32 lines
736 B
Smarty
Executable File
{if count($sizes) > 0}
|
|
<div class="block_filter">
|
|
<div class="content">
|
|
<h4 class="open">{l s='Recherche par' mod='filtervp'} {$name} {l s='disponible' mod='filtervp'}</h4>
|
|
|
|
<div class="content_filter">
|
|
<ul id="filters">
|
|
{foreach from=$sizes item=size}
|
|
<li>
|
|
<input type="checkbox" name="size" value="{$size.id_attribute}" id="size_{$size.id_attribute}">
|
|
<label for="size_{$size.id_attribute}">{$size.name}</label>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
<script>
|
|
{literal}
|
|
$(document).ready(function() {
|
|
$('.open').live('click', function(e){
|
|
e.preventDefault();
|
|
$(this).toggleClass('active');
|
|
$('.content_filter').toggle();
|
|
});
|
|
});
|
|
{/literal}
|
|
</script> |