custom/plugins/EmovaTheme/src/Resources/views/storefront/page/content/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {# TODO: Ggf. mehrere Klassen behandeln #}
  3. {% set bodyClasses = (page.cmsPage.cssClass|striptags)|trim %}
  4. {% block base_body_classes %}{{ parent() }}{% if bodyClasses is not empty %} page-{{ bodyClasses }}{% endif %}{% endblock %}
  5. {% block base_main_inner %}
  6.     <div class="container-main">
  7.         {% block page_content %}
  8.              {# {% block cms_breadcrumb %}
  9.                 <div class="breadcrumb cms-breadcrumb container" style="padding-left: 0 !important;">
  10.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  11.                         context: context,
  12.                         category: page.header.navigation.active
  13.                     } only %}
  14.                 </div>
  15.             {% endblock %} #}
  16.             {% block cms_content %}
  17.                 {% set cmsPageClasses = ('cms-page ' ~ page.cmsPage.cssClass|striptags)|trim %}
  18.                 <div class="{{ cmsPageClasses }} row">
  19.                     {% block page_content_blocks %}
  20.                         {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': page.cmsPage} %}
  21.                     {% endblock %}
  22.                 </div>
  23.             {% endblock %}
  24.         {% endblock %}
  25.     </div>
  26. {#
  27.   <script>
  28.   ((containerMain, cmsPage)=>{
  29.       if (!containerMain || !cmsPage) return;
  30.       if (cmsPage.classList.contains("preisanfrage") || cmsPage.classList.contains("fullscreen")) {
  31.           containerMain.style.setProperty('max-width', 'unset', 'important');
  32.       }
  33.   })(document.querySelector('.container-main'), document.querySelector(".cms-page"));
  34.   </script>#}
  35. {% endblock %}