templates/frontend-eforum/category/results.html.twig line 1

Open in your IDE?
  1. {% embed '/frontend-eforum/_partials/header.html.twig' %}
  2.     {%- block metaTitle -%}
  3.         {%- if
  4.             category is defined
  5.             and category is not empty
  6.             and category.metaTags is not empty
  7.         -%}
  8.             {{- category.metaTags.title -}}
  9.         {%- endif -%}
  10.     {%- endblock -%}
  11.     {%- block metaDescription -%}
  12.         {%-  if
  13.             category is defined
  14.             and category is not empty
  15.             and category.metaTags is not empty
  16.         -%}
  17.             <meta name="description" content="{{- category.metaTags.description -}}">
  18.         {%- endif -%}
  19.     {%- endblock -%}
  20.     {%- block seoHeadScripts -%}
  21.         {%-  if
  22.             category is defined
  23.             and category is not empty
  24.             and category.metaTags is not empty
  25.         -%}
  26.             {{- category.metaTags.headScripts -}}
  27.         {%- endif -%}
  28.     {%- endblock -%}
  29.     {%- block seoBodyScripts -%}
  30.         {%-  if
  31.             category is defined
  32.             and category is not empty
  33.             and category.metaTags is not empty
  34.         -%}
  35.             {{- category.metaTags.bodyScripts -}}
  36.         {%- endif -%}
  37.     {%- endblock -%}
  38. {% endembed %}
  39. {% include "frontend-eforum/_partials/breadcrumbs.html.twig" %}
  40. <section class="category-filter">
  41.     {% if filters is not empty %}
  42.         {% include('frontend-eforum/search/filters.html.twig') %}
  43.     {% endif %}
  44.     <section class="product-list product-list--custom">
  45.         <div class="container">
  46.             {% if results is empty %}
  47.                 <header class="search-results__header">
  48.                     <div class="container">
  49.                         <p class="search-results__text">
  50.                             Niestety nie udało nam się znaleźć produktów pasujących do podanych parametrów.
  51.                         </p>
  52.                         <p class="search-results__textSmall">Jaka może być tego przyczyna?</p>
  53.                         <ul class="search-results__info">
  54.                             <li>Przeszukiwana kategoria jest pusta</li>
  55.                             <li>Nie ma produktów o podanym typie</li>
  56.                             <li>Literówka w nazwie kategorii, typie produktu lub poszukiwanej frazie</li>
  57.                             <li>Alternatywnie, spróbuj wyszukać produktu w naszych kategoriach</li>
  58.                         </ul>
  59.                     </div>
  60.                 </header>
  61.                 {% if categories is defined and categories is not null %}
  62.                     {% include 'frontend-eforum/_partials/results-categories.html.twig' %}
  63.                 {% endif %}
  64.             {% else %}
  65.                 <header class="product-list__count">
  66.                     <span class="product-list__count-text">Znaleziono {{ results.getTotalItemCount }} pasujących produktów</span>
  67.                 </header>
  68.                 <div class="row">
  69.                     {% for result in results %}
  70.                         {% include "frontend-eforum/_partials/product-box.html.twig" with {product: result, class: 'col-xs-12 col-sm-6 col-md-4 col-lg-3'} %}
  71.                     {% endfor %}
  72.                 </div>
  73.                 {{ knp_pagination_render(results, 'frontend-eforum/_partials/pagination.html.twig') }}
  74.             {% endif %}
  75.         </div>
  76.     </section>
  77. </section>
  78. {% if modules is defined %}
  79.     {% include "frontend-eforum/content.html.twig" with {modules: modules} %}
  80. {% endif %}
  81. {% include '/frontend-eforum/footer.html.twig' %}
  82. {% if(dataLayer is defined and dataLayer) %}
  83.     <script>
  84.         window.dataLayer = window.dataLayer || [];
  85.         window.dataLayer.push({
  86.             'ecomm_prodid' : '{{ dataLayer.ecomm_prodid }}',
  87.         });
  88.     </script>
  89. {% endif %}