src/Storefront/Resources/views/storefront/page/content/index.html.twig line 1

  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {# @var page \Shopware\Storefront\Page\LandingPage\LandingPage|\Shopware\Storefront\Page\CategoryPage\CategoryPage #}
  3. {% block base_main_inner %}
  4.     <div class="container-main">
  5.         {% block page_content %}
  6.             {% block cms_breadcrumb %}
  7.                 <div class="breadcrumb cms-breadcrumb container">
  8.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  9.                         context: context,
  10.                         category: page.header.navigation.active
  11.                     } only %}
  12.                 </div>
  13.             {% endblock %}
  14.             {% block cms_content %}
  15.                 {% set cmsPageClasses = ('cms-page ' ~ page.landingPage.cmsPage.cssClass|striptags)|trim %}
  16.                 {% set cmsPage = page.landingPage ? page.landingPage.cmsPage : page.cmsPage %}
  17.                 {% set landingPage = page.landingPage ? page.landingPage : {} %}
  18.                 <div class="{{ cmsPageClasses }}">
  19.                     {% block page_content_blocks %}
  20.                         {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': cmsPage, 'landingPage': landingPage} %}
  21.                     {% endblock %}
  22.                 </div>
  23.             {% endblock %}
  24.         {% endblock %}
  25.     </div>
  26. {% endblock %}