custom/plugins/S360BasePlugin/src/Resources/views/storefront/section/cms-section-block-container.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/section/cms-section-block-container.html.twig' %}
  2. {#
  3. {% block section_content_block_row %}
  4.     {% if 's360-force-breadcrumb' in blockClasses|join(' ') or 's360-force-breadcrumb' in sectionClasses|join(' ') %}
  5. #}
  6.         {# @deprecated tag:v6.4.0 class `cms-breadcrump` use `cms-breadcrumb` instead #}
  7. {#      <div class="breadcrumb cms-breadcrumb cms-breadcrump cms-breadcrumb container">
  8.             {% block cms_breadcrumb %}
  9. #} 
  10.                 {# @deprecated tag:v6.4.0 parameter `navigationTree` will be removed #}
  11. {#                {% sw_include '@Storefront/storefront/component/listing/breadcrumb.html.twig' with {
  12.                     context: context,
  13.                     navigationTree: page.header.navigation.tree,
  14.                     category: page.header.navigation.active
  15.                 } only %}
  16.             {% endblock %}
  17.         </div>
  18.     {% endif %}
  19. #}
  20.     {# sectionClasses is an array with key 0 or 1 containing the custom classes depending on the other settings of the section! #}
  21. {#   
  22.     {% if 's360-box-content' in sectionClasses|join(' ') and section.sizingMode is not same as('boxed') %}
  23.         <div class="container">
  24.             {% set colCls = 'col-12' %}
  25.             {% if 'small-container-lg' in blockClasses %}
  26.                 {% set colCls = 'col-lg-10 offset-lg-1' %}
  27.             {% endif %}
  28.             <div class="row">
  29.                 <div class="{{colCls}}">
  30.                     {{ parent() }}
  31.                 </div>
  32.             </div>
  33.         </div>
  34.     {% elseif 'small-container-lg' in blockClasses|join(' ') %}
  35.         <div class="container">
  36.             <div class="row">
  37.                 <div class="col-lg-10 offset-lg-1">
  38.                     {{ parent() }}
  39.                 </div>
  40.             </div>
  41.         </div>
  42.     {% else %}
  43.         {{ parent() }}
  44.     {% endif %}
  45. {% endblock %}
  46. #}