{#
/**
* @var bool showFilter
* @var string label
* @var string content
* @var string defaultText
* @var string filterName
* @var string popoverName
* @var string filterId
* @var array filterTexte
* @var string name
* @var array options
* @var bool showHr
* @var string hideClasses
* @var bool onlyShowIfSubmitted
* @var bool isSubmitted
* @var bool hasIdPrefix
* @var string filterVal
* @var bool price
*/ #}
{% if (showFilter is same as 'all' or showFilter is same as 'button') %}
{{ include('@ElementsDemiFrontend/Includes/elements/filter/filter-button.desktop.html.twig', {
'label' : label,
'content' : content,
'defaultText' : defaultText,
'filterName' : filterName,
'popoverName' : popoverName,
'onlyShowIfSubmitted' : onlyShowIfSubmitted,
'isSubmitted' : isSubmitted,
'filterId' : popoverName,
'filterVal' : filterVal,
'active' : true,
'className' : ''
}) }}
{% endif %}
{% if (showFilter is same as 'all' or showFilter is same as 'filter') %}
<script type="text/javascript" data-cookieconsent="ignore">
_filterTexte = window['_filterTexte'] || [];
_filterTexte.push.apply(_filterTexte, {{ filterTexte | json_encode | raw }});
</script>
<section id="popover-{{popoverName }}" class="filter-box{{onlyShowIfSubmitted ? "js-search-data__show-if-submitted" : "" }}" {{isSubmitted ? '' : 'hidden' }}>
<div class="filter-box__content">
{{ include('@ElementsDemiFrontend/Includes/elements/filter/filter-block.desktop.html.twig', {
'label' : label,
'content' : content,
'defaultText' : defaultText,
'name' : name,
'options' : options,
'idPrefix' : hasIdPrefix ? 'popover' : '',
'price' : price is defined ? price : false,
'showHr' : false,
'hideClasses' : '',
'filterId' : ''
}) }}
</div>
<div class="filter-box__action">
<button type="button"
class="btn-no-styling filter-box__action-item text-muted js-filter-form__close">{{ 'demi.filter.cancel' | trans }}</button>
<button type="button"
class="btn-no-styling filter-box__action-item text-primary js-filter-form__commit">{{ 'demi.filter.apply' | trans }}</button>
</div>
</section>
{% endif %}
{% if (showFilter is same as 'sidebar') %}
{{ include('@ElementsDemiFrontend/Includes/elements/filter/filter-block.desktop.html.twig', {
'label' : label,
'name' : name,
'options' : options,
'showHr' : showHr,
'filterId' : filterId,
'hideClasses' : hideClasses,
'idPrefix' : hasIdPrefix ? 'sideBar' : '',
'price' : price is defined ? price : false,
'content' : '',
'defaultText' : '',
}) }}
{% endif %}