{% embed '/frontend-eforum/_partials/header.html.twig' %}
{%- block metaTitle -%}
{%- if
category is defined
and category is not empty
and category.metaTags is not empty
-%}
{{- category.metaTags.title -}}
{%- endif -%}
{%- endblock -%}
{%- block metaDescription -%}
{%- if
category is defined
and category is not empty
and category.metaTags is not empty
-%}
<meta name="description" content="{{- category.metaTags.description -}}">
{%- endif -%}
{%- endblock -%}
{%- block seoHeadScripts -%}
{%- if
category is defined
and category is not empty
and category.metaTags is not empty
-%}
{{- category.metaTags.headScripts -}}
{%- endif -%}
{%- endblock -%}
{%- block seoBodyScripts -%}
{%- if
category is defined
and category is not empty
and category.metaTags is not empty
-%}
{{- category.metaTags.bodyScripts -}}
{%- endif -%}
{%- endblock -%}
{% endembed %}
{% include "frontend-eforum/_partials/breadcrumbs.html.twig" %}
<section class="category-filter">
{% if filters is not empty %}
{% include('frontend-eforum/search/filters.html.twig') %}
{% endif %}
<section class="product-list product-list--custom">
<div class="container">
{% if results is empty %}
<header class="search-results__header">
<div class="container">
<p class="search-results__text">
Niestety nie udało nam się znaleźć produktów pasujących do podanych parametrów.
</p>
<p class="search-results__textSmall">Jaka może być tego przyczyna?</p>
<ul class="search-results__info">
<li>Przeszukiwana kategoria jest pusta</li>
<li>Nie ma produktów o podanym typie</li>
<li>Literówka w nazwie kategorii, typie produktu lub poszukiwanej frazie</li>
<li>Alternatywnie, spróbuj wyszukać produktu w naszych kategoriach</li>
</ul>
</div>
</header>
{% if categories is defined and categories is not null %}
{% include 'frontend-eforum/_partials/results-categories.html.twig' %}
{% endif %}
{% else %}
<header class="product-list__count">
<span class="product-list__count-text">Znaleziono {{ results.getTotalItemCount }} pasujących produktów</span>
</header>
<div class="row">
{% for result in results %}
{% include "frontend-eforum/_partials/product-box.html.twig" with {product: result, class: 'col-xs-12 col-sm-6 col-md-4 col-lg-3'} %}
{% endfor %}
</div>
{{ knp_pagination_render(results, 'frontend-eforum/_partials/pagination.html.twig') }}
{% endif %}
</div>
</section>
</section>
{% if modules is defined %}
{% include "frontend-eforum/content.html.twig" with {modules: modules} %}
{% endif %}
{% include '/frontend-eforum/footer.html.twig' %}
{% if(dataLayer is defined and dataLayer) %}
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'ecomm_prodid' : '{{ dataLayer.ecomm_prodid }}',
});
</script>
{% endif %}