custom/plugins/SchilderSysteme/src/Resources/views/storefront/section/cms-section-sidebar.html.twig line 1

Open in your IDE?
  1. {% block page_content_section_sidebar %}
  2.     {% set sectionMobileBehaviorClass = 'cms-section-sidebar-mobile-' ~ section.mobileBehavior %}
  3.     {% set layout = section.sizingMode ? section.sizingMode|replace({"_": "-"}) : "container" %}
  4.     {% set displayFilterOnLevel = 3 %}
  5.     {% set categoryLevel = page.header.navigation.active.level %}
  6.     {% set shouldDisplayFilter = categoryLevel > displayFilterOnLevel %}
  7.     <div class="cms-section-sidebar {{ sectionMobileBehaviorClass }} {{ layout }} row {% if not shouldDisplayFilter %} no-filter {% endif %}">
  8.         {% set sidebarBlocks = section.blocks.filterBySectionPosition('sidebar') %}
  9.         {% set mainContentBlocks = section.blocks.filterBySectionPosition('main') %}
  10.         {% block section_sidebar_content %}
  11.             <div class="cms-section-sidebar-sidebar-content col-lg-4 col-xl-3">
  12.                 {% for block in sidebarBlocks %}
  13.                     {% block section_sidebar_content_block %}
  14.                         {% sw_include "@Storefront/storefront/section/cms-section-block-container.html.twig" %}
  15.                     {% endblock %}
  16.                 {% endfor %}
  17.             </div>
  18.         {% endblock %}
  19.         {% block section_main_content %}
  20.             <div class="cms-section-sidebar-main-content col-lg-8 col-xl-9">
  21.                 {% for block in mainContentBlocks %}
  22.                     {% block section_main_content_block %}
  23.                         {% sw_include "@Storefront/storefront/section/cms-section-block-container.html.twig" %}
  24.                     {% endblock %}
  25.                 {% endfor %}
  26.             </div>
  27.         {% endblock %}
  28.     </div>
  29. {% endblock %}