custom/plugins/ProcBasicElements/src/Resources/views/storefront/page/content/detail.html.twig line 13

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/content/detail.html.twig' %}
  2. {# add an additional class on the cms-section #}
  3. {% block page_content_section %}
  4.     {% set additionalSectionCls = '' %}
  5.     {% if(section.customFields.procClassValue.sectionCls) %}
  6.         {% set additionalSectionCls = section.customFields.procClassValue.sectionCls %}
  7.     {% endif %}
  8.     <div class="cms-section {{ sectionClasses|join(' ') }}{% if additionalSectionCls %} {{ additionalSectionCls }}{% endif %}"
  9.          style="{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}">
  10.         {% sw_include "@Storefront/storefront/section/cms-section-" ~ section.type ~ ".html.twig" with {additionalSectionCls} %}
  11.     </div>
  12. {% endblock %}