{** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {$facetedsearch = ''} {if Module::isEnabled('an_theme')} {if Module::getInstanceByName('an_theme')->getParam('categoryPage_facetedsearch') == 'turnon'} {$facetedsearch = 'turnon'} {elseif Module::getInstanceByName('an_theme')->getParam('categoryPage_facetedsearch') == 'turnoff'} {$facetedsearch = 'turnoff'} {else} {$facetedsearch = 'standard'} {/if} {/if}
{block name='facets_title'}

{l s='Filter By' d='Shop.Theme.Actions'}

{/block} {foreach from=$facets item="facet"} {if $facet.displayed}
{assign var=_expand_id value=10|mt_rand:100000} {assign var=_collapse value=true} {foreach from=$facet.filters item="filter"} {if $filter.active}{assign var=_collapse value=false}{/if} {/foreach}

{$facet.label}

{if $facetedsearch != 'standard'} {/if}
{if $facet.widgetType !== 'dropdown'} {block name='facet_item_other'} {/block} {else} {block name='facet_item_dropdown'} {/block} {/if}
{/if} {/foreach} {block name='facets_clearall_button'}
{/block}