diff --git a/facets-result-item.html.twig b/facets-result-item.html.twig deleted file mode 100644 index 1fb7d3d..0000000 --- a/facets-result-item.html.twig +++ /dev/null @@ -1,25 +0,0 @@ -{# -/** - * @file - * Default theme implementation of a facet result item. - * - * Available variables: - * - value: The item value. - * - raw_value: The raw item value. - * - show_count: If this facet provides count. - * - count: The amount of results. - * - is_active: The item is active. - * - facet: The facet for this result item. - * - id: the machine name for the facet. - * - label: The facet label. - * - * @ingroup themeable - */ -#} -{% if is_active %} - (-) -{% endif %} -{{ value }} -{% if show_count %} - ({{ count }}) -{% endif %} diff --git a/facets-item-list.html.twig b/templates/facets/facets-item-list.html.twig similarity index 100% rename from facets-item-list.html.twig rename to templates/facets/facets-item-list.html.twig diff --git a/templates/facets/facets-result-item.html.twig b/templates/facets/facets-result-item.html.twig new file mode 100644 index 0000000..bba53e8 --- /dev/null +++ b/templates/facets/facets-result-item.html.twig @@ -0,0 +1,31 @@ +{# +/** +* @file +* Default theme implementation of a facet result item. +* +* Available variables: +* - value: The item value. +* - raw_value: The raw item value. +* - show_count: If this facet provides count. +* - count: The amount of results. +* - is_active: The item is active. +* - facet: The facet for this result item. +* - id: the machine name for the facet. +* - label: The facet label. +* +* @ingroup themeable +*/ +#} +{% if is_active %} + + + + + +{% endif %} +{{ value }} +{% if show_count %} +({{ count }}) +{% endif %}