custom/plugins/KayloBasicTheme/src/Resources/views/storefront/page/content/detail.html.twig line 1

Open in your IDE?
  1. {% block page_content_sections_inner %}
  2.     <div class="cms-sections">
  3.         {% for section in cmsPage.sections %}
  4.             {% set sectionBgColor = section.backgroundColor %}
  5.             {% set sectionBgImg = section.backgroundMedia|sw_encode_media_url %}
  6.             {% set sectionBgImgMode = section.backgroundMediaMode %}
  7.             {% set sectionClasses = [section.cssClass, 'pos-' ~ section.position, 'cms-section-' ~ section.type] %}
  8.             {% if sectionBgImg %}
  9.                 {% set sectionClasses = ['bg-image']|merge(sectionClasses) %}
  10.             {% endif %}
  11.             {% if sectionBgColor %}
  12.                 {% set sectionClasses = ['bg-color']|merge(sectionClasses) %}
  13.             {% endif %}
  14.             {% block page_content_section %}
  15.                 <div class="cms-section {{ sectionClasses|join(' ') }}"
  16.                      style="{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}">
  17.                     {% sw_include "@Storefront/storefront/section/cms-section-" ~ section.type ~ ".html.twig" %}
  18.                 </div>
  19.             {% endblock %}
  20.         {% endfor %}
  21.     </div>
  22. {% endblock %}