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