custom/plugins/ProcBasicElements/src/Resources/views/storefront/section/cms-section-default.html.twig line 46

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/section/cms-section-default.html.twig' %}
  2. {% block page_content_section_default %}
  3.     {% set layout = section.sizingMode ? section.sizingMode|replace({"_": "-"}) : "container" %}
  4.     <div class="cms-section-default {{ layout }}">
  5.         {% if additionalSectionCls === 'proc-slider' or additionalSectionCls === 'proc-headbanner-slider' or additionalSectionCls === 'proc-slider-2' or additionalSectionCls === 'proc-slider-3' %}
  6.             {% set centerItems = false %}
  7.             {% set config = {
  8.                 'centerItems': {
  9.                   value: centerItems
  10.                 },
  11.                 'title': {
  12.                     'value': null
  13.                 },
  14.                 'border': {
  15.                     'value': false
  16.                 },
  17.                 'rotate': {
  18.                     'value': false
  19.                 },
  20.                 'navigation': {
  21.                     'value': true
  22.                 },
  23.                 'navigationArrows': {
  24.                     'value': 'inside'
  25.                 },
  26.                 'verticalAlign': {
  27.                     'value': 'center'
  28.                 }
  29.             } %}
  30.             {% sw_include "@ProcBasicElements/storefront/section/cms-section-block-slider.html.twig" with {
  31.                 additionalSectionCls: additionalSectionCls,
  32.                 sliderConfig: config,
  33.                 element: {
  34.                     'data': {
  35.                         'blocks': section.blocks
  36.                     },
  37.                     type: 'cms-slider'
  38.                 }
  39.             } only %}
  40.         {% else %}
  41.             {% for block in section.blocks %}
  42.                 {% block section_default_content_block %}
  43.                     {% sw_include "@Storefront/storefront/section/cms-section-block-container.html.twig" %}
  44.                 {% endblock %}
  45.             {% endfor %}
  46.         {% endif %}
  47.     </div>
  48. {% endblock %}