custom/plugins/Poller24/src/Resources/views/storefront/component/product/listing.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
  2. {% block product_listing %}
  3. {% set preconf = 0 %}
  4. {% if 'ortsfest' in page.metaInformation.metaTitle %}
  5. {% set preconf = 'of' %}
  6. {% endif %}
  7. {% if 'herausnehmbar' in page.metaInformation.metaTitle %}
  8. {% set preconf = 'hn' %}
  9. {% endif %}
  10. {% if 'umlegbar' in page.metaInformation.metaTitle %}
  11. {% set preconf = 'ul' %}
  12. {% endif %}
  13.     <div class="cms-element-product-listing-wrapper"
  14.          data-listing-pagination="true"
  15.          data-listing-pagination-options='{{ paginationConfig }}'
  16.          data-listing="true"
  17.          data-listing-options='{{ listingPagination|json_encode }}'>
  18.         {% block element_product_listing_wrapper_content %}
  19.             <div class="cms-element-product-listing">
  20.                 {% if searchResult.total > 0 %}
  21.                     {% block element_product_listing_pagination_nav_actions %}
  22.                         <div class="cms-element-product-listing-actions row justify-content-between">
  23.                             <div class="col-md-auto">
  24.                                 {% block element_product_listing_pagination_nav_top %}
  25.                                     {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  26.                                         entities: searchResult,
  27.                                         criteria: searchResult.criteria
  28.                                     } %}
  29.                                 {% endblock %}
  30.                             </div>
  31.                             <div class="col-md-auto">
  32.                                 {% block element_product_listing_sorting %}
  33.                                     {% sw_include '@Storefront/storefront/component/sorting.html.twig' with {
  34.                                         current: searchResult.sorting,
  35.                                         sortings: searchResult.availableSortings
  36.                                     } %}
  37.                                 {% endblock %}
  38.                             </div>
  39.                         </div>
  40.                     {% endblock %}
  41.                 {% endif %}
  42.                 {% block element_product_listing_row %}
  43.                     <div class="row cms-listing-row js-listing-wrapper">
  44.                         {% if searchResult.total > 0 %}
  45.                             {% block element_product_listing_col %}
  46.                                 {% for product in searchResult %}
  47.                                     <div class="cms-listing-col {{ listingColumns }}">
  48.                                         {% block element_product_listing_box %}
  49.                                             {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  50.                                                 'layout': boxLayout,
  51.                                                 'displayMode': displayMode
  52.                                             } %}
  53.                                         {% endblock %}
  54.                                     </div>
  55.                                 {% endfor %}
  56.                             {% endblock %}
  57.                         {% else %}
  58.                             {% block element_product_listing_col_empty %}
  59.                                 <div class="cms-listing-col col-12">
  60.                                     {% block element_product_listing_col_empty_alert %}
  61.                                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  62.                                             type: 'info',
  63.                                             content: 'Diese Kategorie befindet sich im Aufbau. Sie können aber jetzt schon eine <a href="/Shop-Service/Kontakt/">Anfrage</a> stellen.'
  64.                                         } %}
  65.                                     {% endblock %}
  66.                                 </div>
  67.                             {% endblock %}
  68.                         {% endif %}
  69.                     </div>
  70.                 {% endblock %}
  71.                 {% if searchResult.total > searchResult.limit %}
  72.                     {% block element_product_listing_pagination_nav_bottom %}
  73.                         {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  74.                             entities: searchResult,
  75.                             criteria: searchResult.criteria
  76.                         } %}
  77.                     {% endblock %}
  78.                 {% endif %}
  79.             </div>
  80.         {% endblock %}
  81.     </div>
  82. {% endblock %}