custom/plugins/Wingsacademy/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">
  4.         {% block page_content_section_breadcrumb_top %}
  5.             {% if cmsPage.sections|length <= 1 || page.cmsPage.name == "Contact Form" %}
  6.                 <div class="breadcrumb cms-breadcrumb container">
  7.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  8.                         context: context,
  9.                         category: category
  10.                     } only %}
  11.                 </div>
  12.             {% endif %}
  13.         {% endblock %}
  14.         {% for section in cmsPage.sections %}
  15.             {% set sectionBgColor = section.backgroundColor %}
  16.             {% set sectionBgImg = section.backgroundMedia|sw_encode_media_url %}
  17.             {% set sectionBgImgMode = section.backgroundMediaMode %}
  18.             {% set sectionClasses = [section.cssClass, 'pos-' ~ section.position, 'cms-section-' ~ section.type] %}
  19.             {% if sectionBgImg %}
  20.                 {% set sectionClasses = ['bg-image']|merge(sectionClasses) %}
  21.             {% endif %}
  22.             {% if sectionBgColor %}
  23.                 {% set sectionClasses = ['bg-color']|merge(sectionClasses) %}
  24.             {% endif %}
  25.             {% block page_content_section %}
  26.                 <div class="cms-section {{ sectionClasses|join(' ') }}"
  27.                      style="{% if sectionBgColor %}background-color: {{ sectionBgColor }};{% endif %}{% if sectionBgImg %}background-image: url({{ sectionBgImg }});background-size: {{ section.backgroundMediaMode }};{% endif %}">
  28.                     {% sw_include "@Storefront/storefront/section/cms-section-" ~ section.type ~ ".html.twig" %}
  29.                 </div>
  30.             {% endblock %}
  31.             {% block page_content_section_breadcrumb_bottom %}
  32.                 {% if loop.length > 1 && loop.first && page.cmsPage.name != "Contact Form" %}
  33.                     <div class="breadcrumb cms-breadcrumb container">
  34.                         {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  35.                             context: context,
  36.                             category: category
  37.                         } only %}
  38.                     </div>
  39.                 {% endif %}
  40.             {% endblock %}
  41.         {% endfor %}
  42.     </div>
  43. {% endblock %}