vendor/store.shopware.com/swagb2bplatform/SwagB2bPlatform/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. {% set b2bListingView = 'listing' %}
  3. {% if app.request.get('b2bListingView') %}
  4.     {% set b2bListingView = app.request.get('b2bListingView') %}
  5. {% endif %}
  6. {% set params = params|merge({ 'b2bListingView': b2bListingView }) %}
  7. {% block element_product_listing_sorting %}
  8.     {% if b2bSuite and b2b_acl_check('b2bfastorder', 'index') %}
  9.         <div class="b2b__listing-toggle js--b2b-listingview-mode mt-2">
  10.             <button class="btn {% if b2bListingView == 'table' %}btn-outline-primary{% else %}btn-primary{% endif %}">
  11.                 {% sw_icon 'view-grid' %}
  12.             </button>
  13.             <button class="btn {% if b2bListingView == 'table' %}btn-primary{% else %}btn-outline-primary{% endif %}">
  14.                 {% sw_icon 'align-justify' %}
  15.             </button>
  16.         </div>
  17.     {% endif %}
  18.     {{ parent() }}
  19. {% endblock %}
  20. {% block element_product_listing_col %}
  21.     {% if b2bSuite and b2bListingView == 'table' %}
  22.         {% sw_include '@SwagB2bPlatform/storefront/_custom/product-listing/b2b-listing.html.twig' %}
  23.     {% else %}
  24.         {{ parent() }}
  25.     {% endif %}
  26. {% endblock %}
  27. {% block element_product_listing_pagination_nav_bottom %}
  28.     {% if b2bSuite and b2bListingView == 'table' %}
  29.         <div class="module-listingview__pagination">
  30.             {{ parent() }}
  31.         </div>
  32.     {% else %}
  33.         {{ parent() }}
  34.     {% endif %}
  35. {% endblock %}