vendor/store.shopware.com/laenengrid/src/Resources/views/storefront/section/cms-section-lae-grid.html.twig line 1

Open in your IDE?
  1. {% block page_content_section_lae_grid %}
  2.     {% set columns = section.customFields.laeGridColumns %}
  3.     {% set noGutters = section.customFields.laeGridConfig.noGutters %}
  4.     {% set layout = section.sizingMode ? section.sizingMode|replace({"_": "-"}) : "container" %}
  5.     {% block page_content_section_lae_grid_layout %}
  6.         <div class="cms-section-lae-grid {{ layout }}">
  7.             <div class="row {% if noGutters %}no-gutters{% endif %}">
  8.                 {% block page_content_section_lae_grid_row %}
  9.                     {% for i in range(0, columns - 1) %}
  10.                         {% set activeColumn = section.customFields.laeGridColumnWidths[i] %}
  11.                         {% block page_content_section_lae_grid_column %}
  12.                             <div class="col-{{ activeColumn.col }}
  13. {% if activeColumn.sm %}col-sm-{{ activeColumn.sm }} {% endif %}
  14. {% if activeColumn.md %}col-md-{{ activeColumn.md }} {% endif %}
  15. {% if activeColumn.lg %}col-lg-{{ activeColumn.lg }} {% endif %}
  16. {% if activeColumn.xl %}col-xl-{{ activeColumn.xl }} {% endif %}
  17. {% if activeColumn.hideOn.default %}d-none {% else %}d-block {% endif %}
  18. {% if activeColumn.hideOn.sm %}d-sm-none {% else %}d-sm-block {% endif %}
  19. {% if activeColumn.hideOn.md %}d-md-none {% else %}d-md-block {% endif %}
  20. {% if activeColumn.hideOn.lg %}d-lg-none {% else %}d-lg-block {% endif %}
  21. {% if activeColumn.hideOn.xl %}d-xl-none {% else %}d-xl-block {% endif %}
  22. {{ activeColumn.cssClasses }}">
  23.                                 {% block page_content_section_lae_grid_column_blocks %}
  24.                                     {% for block in section.blocks|filter(b => b.customFields.laeGridColumn == i) %}
  25.                                         {% if activeColumn.isSidebar %}
  26.                                             {{ block.setSectionPosition('sidebar') ~ '' }}
  27.                                         {% endif %}
  28.                                         {% block page_content_section_lae_grid_column_block %}
  29.                                             {% sw_include "@Storefront/storefront/section/cms-section-block-container.html.twig" %}
  30.                                         {% endblock %}
  31.                                     {% endfor %}
  32.                                 {% endblock %}
  33.                             </div>
  34.                         {% endblock %}
  35.                     {% endfor %}
  36.                 {% endblock %}
  37.             </div>
  38.         </div>
  39.     {% endblock %}
  40. {% endblock %}