custom/plugins/DmfManuTheme/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 element_product_listing_wrapper_content %}
  3.     <div class="cms-element-product-listing">
  4.         {% if searchResult.total > 0 %}
  5.             {% block element_product_listing_pagination_nav_actions %}
  6.                 {% set justify = "between" %}
  7.                 {% if theme_config('dmf-listing-show-sorting') == false %}
  8.                     {% set justify = "center" %}
  9.                 {% endif %}
  10.                 <div class="cms-element-product-listing-actions row justify-content-{{justify}}">
  11.                     <div class="col-md-auto">
  12.                         {% if theme_config('dmf-listing-pagination-position') == "top" or theme_config('dmf-listing-pagination-position') == "both" %}
  13.                             {% block element_product_listing_pagination_nav_top %}
  14.                                 {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  15.                                     entities: searchResult,
  16.                                     criteria: searchResult.criteria
  17.                                 } %}
  18.                             {% endblock %}
  19.                         {% endif %}
  20.                     </div>
  21.                     {% block element_product_listing_sorting %}
  22.                         <div class="col-md-auto">
  23.                             {{parent()}}
  24.                         </div>
  25.                     {% endblock %}
  26.                 </div>
  27.             {% endblock %}
  28.         {% endif %}
  29.         {% block element_product_listing_row %}
  30.             <div class="row cms-listing-row js-listing-wrapper">
  31.                 {% if searchResult.total > 0 %}
  32.                     {% block element_product_listing_col %}
  33.                         {% for product in searchResult %}
  34.                             {% if cmsPage.extensions.category.customFields.listing_layout_mode == "list" %}
  35.                                 <div class="cms-listing-col col-12">
  36.                                     {% sw_include '@Storefront/storefront/component/product/card/box-single-column.html.twig' with {
  37.                                         'displayMode': displayMode
  38.                                     } %}
  39.                                 </div>
  40.                             {% else %}
  41.                                 <div class="cms-listing-col {{ listingColumns }}">
  42.                                     {% block element_product_listing_box %}
  43.                                         {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  44.                                             'layout': boxLayout,
  45.                                             'displayMode': displayMode
  46.                                         } %}
  47.                                     {% endblock %}
  48.                                 </div>
  49.                             {% endif %}
  50.                         {% endfor %}
  51.                     {% endblock %}
  52.                 {% else %}
  53.                     {% block element_product_listing_col_empty %}
  54.                         <div class="cms-listing-col col-12">
  55.                             {% block element_product_listing_col_empty_alert %}
  56.                                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  57.                                     type: 'info',
  58.                                     content: 'listing.emptyResultMessage'|trans|sw_sanitize
  59.                                 } %}
  60.                             {% endblock %}
  61.                         </div>
  62.                     {% endblock %}
  63.                 {% endif %}
  64.             </div>
  65.         {% endblock %}
  66.         {% if theme_config('dmf-listing-pagination-position') == "bottom" or theme_config('dmf-listing-pagination-position') == "both" %}
  67.             {% block element_product_listing_pagination_nav_bottom %}
  68.                 <div class="d-flex justify-content-center">
  69.                     {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  70.                         entities: searchResult,
  71.                         criteria: searchResult.criteria
  72.                     } %}
  73.                 </div>
  74.             {% endblock %}
  75.         {% endif %}
  76.     </div>
  77. {% endblock %}