vendor/shopware/storefront/Resources/views/storefront/page/content/index.html.twig line 11

Open in your IDE?
  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.                 {# @deprecated tag:v6.5.0 - keep if branch - page.cmsPage will be removed. Use page.landingPage.cmsPage instead #}
  16.                 {% if feature('v6.5.0.0') %}
  17.                     {% set cmsPageClasses = ('cms-page ' ~ page.landingPage.cmsPage.cssClass|striptags)|trim %}
  18.                     {% set cmsPage = page.landingPage ? page.landingPage.cmsPage : page.cmsPage %}
  19.                 {% else %}
  20.                     {% set cmsPageClasses = ('cms-page ' ~ page.cmsPage.cssClass|striptags)|trim %}
  21.                     {% set cmsPage = page.cmsPage %}
  22.                 {% endif %}
  23.                 {% set landingPage = page.landingPage ? page.landingPage : {} %}
  24.                 <div class="{{ cmsPageClasses }}">
  25.                     {% block page_content_blocks %}
  26.                         {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': cmsPage, 'landingPage': landingPage} %}
  27.                     {% endblock %}
  28.                 </div>
  29.             {% endblock %}
  30.         {% endblock %}
  31.     </div>
  32. {% endblock %}