vendor/crehler/mojebambino-engine/src/Resources/views/storefront/page/content/detail.html.twig line 1

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