custom/plugins/MetalementsTheme/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.     <div class="cms-sections wct-custom-cms-sections">
  4.         {% for section in cmsPage.sections %}
  5.             {% set sectionBgColor = section.backgroundColor %}
  6.             {% set sectionBgImg = section.backgroundMedia|sw_encode_media_url %}
  7.             {% set sectionBgImgMode = section.backgroundMediaMode %}
  8.             {% set sectionClasses = [section.cssClass, 'pos-' ~ section.position, 'cms-section-' ~ section.type] %}
  9.             {% if sectionBgImg %}
  10.                 {% set sectionClasses = ['bg-image']|merge(sectionClasses) %}
  11.             {% endif %}
  12.             {% if sectionBgColor %}
  13.                 {% set sectionClasses = ['bg-color']|merge(sectionClasses) %}
  14.             {% endif %}
  15.             {% if section.cssClass == "wct-product-review-section" %}
  16.                 <div class="wct-trusted-shops-product-reviews" style="background: white;">
  17.                     <!-- Begin eTrusted widget tag -->
  18.                         <etrusted-widget data-etrusted-widget-id="wdg-86b3b589-1fed-4986-9375-9cdd18f23219" data-sku="{{page.product.productNumber}}"></etrusted-widget>
  19.                     <!-- End eTrusted widget tag -->
  20.                 </div>
  21.             {% endif %}
  22.             {% block page_content_section %}
  23.                 <div class="cms-section {{ sectionClasses|join(' ') }}"
  24.                      style="{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}">
  25.                     {% sw_include "@Storefront/storefront/section/cms-section-" ~ section.type ~ ".html.twig" %}
  26.                 </div>
  27.             {% endblock %}
  28.         {% endfor %}
  29.     </div>
  30. {% endblock %}