custom/plugins/OttSaleCategory/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% set isSaleCategory = 'product_list' === page.cmsPage.type and page.header.navigation.active.customFields.ott_category_general_sale_active %}
  3. {% block base_body_classes %}
  4.     {% apply spaceless %}
  5.         {{ parent() }}{% if isSaleCategory %} overflow-auto{% endif %}
  6.     {% endapply %}
  7. {% endblock %}
  8. {% block base_main %}
  9.     <div class="ott-content-main-wrapper flex-grow-1 position-relative">
  10.         <main class="content-main{% if isSaleCategory %} ott-is-sale-category{% endif %}">
  11.             {% block base_flashbags %}
  12.                 {{ parent() }}
  13.             {% endblock %}
  14.             {% block base_main_inner %}
  15.                 {{ parent() }}
  16.             {% endblock %}
  17.         </main>
  18.         {% if isSaleCategory %}
  19.             <div class="ott-sale-category-container d-none">
  20.                 <div class="ott-sale-category-inner">
  21.                     {% sw_include '@Storefront/storefront/component/ott-sale-category/modal.html.twig' %}
  22.                 </div>
  23.             </div>
  24.         {% endif %}
  25.     </div>
  26. {% endblock %}