custom/plugins/FuerstenbergPorzellan/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.     <div class="cms-element-product-listing-wrapper"
  4.          data-listing-pagination="true"
  5.          data-listing-pagination-options='{{ paginationConfig }}'
  6.          data-listing="true"
  7.          data-listing-options='{{ listingPagination|json_encode }}'>
  8.         {% block element_product_listing_wrapper_content %}
  9.             <div class="cms-element-product-listing">
  10.                 {% if searchResult.total > 0 %}
  11.                     {% block element_product_listing_pagination_nav_actions %}
  12.                         <div class="cms-element-product-listing-actions row justify-content-between">
  13.                            
  14.                             <div class="col-md-auto">
  15.                                 {% block element_product_listing_sorting %}
  16.                                     {% sw_include '@Storefront/storefront/component/sorting.html.twig' with {
  17.                                         current: searchResult.sorting,
  18.                                         sortings: searchResult.availableSortings
  19.                                     } %}
  20.                                 {% endblock %}
  21.                             </div>
  22.                         </div>
  23.                     {% endblock %}
  24.                 {% endif %}
  25.                 {% block element_product_listing_row %}
  26.                     <div class="row cms-listing-row js-listing-wrapper">
  27.                         {% if searchResult.total > 0 %}
  28.                             {% block element_product_listing_col %}
  29.                                 {% for product in searchResult %}
  30.                                     <div class="cms-listing-col {{ listingColumns }}">
  31.                                         {% block element_product_listing_box %}
  32.                                             {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  33.                                                 'layout': boxLayout,
  34.                                                 'displayMode': displayMode
  35.                                             } %}
  36.                                         {% endblock %}
  37.                                     </div>
  38.                                 {% endfor %}
  39.                             {% endblock %}
  40.                         {% else %}
  41.                             {% block element_product_listing_col_empty %}
  42.                                 <div class="cms-listing-col col-12">
  43.                                     {% block element_product_listing_col_empty_alert %}
  44.                                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  45.                                             type: 'info',
  46.                                             content: 'listing.emptyResultMessage'|trans|sw_sanitize
  47.                                         } %}
  48.                                     {% endblock %}
  49.                                 </div>
  50.                             {% endblock %}
  51.                         {% endif %}
  52.                     </div>
  53.                 {% endblock %}
  54.                 {% if searchResult.total > searchResult.limit %}
  55.                     {% block element_product_listing_pagination_nav_bottom %}
  56.                         {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  57.                             entities: searchResult,
  58.                             criteria: searchResult.criteria,
  59.                             paginationLocation: 'bottom',
  60.                         } %}
  61.                     {% endblock %}
  62.                 {% endif %}
  63.             </div>
  64.         {% endblock %}
  65.     </div>
  66.     
  67. {% endblock %}