MTShop/web/themes/custom/martis/templates/facets/facets-result-item.html.twig

22 lines
511 B
Twig
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{#
/**
* @file
* Default theme implementation of a facet result item.
*
* Available variables:
* - value: The item value.
* - show_count: If this facet provides count.
* - count: The amount of results.
* - is_active: The item is active.
*
* @ingroup themeable
*/
#}
{% if is_active %}
<span class="facet-item__status js-facet-deactivate">×</span>
{% endif %}
<span class="facet-item__value">{{ value }}</span>
{% if show_count %}
<span class="facet-item__count">({{ count }})</span>
{% endif %}