var/cache/dev_hb20adcc116cac57cb0563ce07d309ac5/twig/56/56ddf777284ad3dd5ddf99086ebd0eab018213b447b1517224c80228a8cf74ef.php line 101

  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @Storefront/storefront/page/content/index.html.twig */
  16. class __TwigTemplate_4aa5cfa2fac780b3cd1055314764055b extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'base_main_inner' => [$this'block_base_main_inner'],
  26.             'page_content' => [$this'block_page_content'],
  27.             'cms_breadcrumb' => [$this'block_cms_breadcrumb'],
  28.             'cms_content' => [$this'block_cms_content'],
  29.             'page_content_blocks' => [$this'block_page_content_blocks'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 2
  35.         return "@Storefront/storefront/base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/content/index.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/page/content/index.html.twig"));
  44.         $this->parent $this->loadTemplate("@Storefront/storefront/base.html.twig""@Storefront/storefront/page/content/index.html.twig"2);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 4
  52.     public function block_base_main_inner($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_main_inner"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_main_inner"));
  59.         // line 5
  60.         echo "    <div class=\"container-main\">
  61.         ";
  62.         // line 6
  63.         $this->displayBlock('page_content'$context$blocks);
  64.         // line 27
  65.         echo "    </div>
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.     }
  72.     // line 6
  73.     public function block_page_content($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  80.         // line 7
  81.         echo "            ";
  82.         $this->displayBlock('cms_breadcrumb'$context$blocks);
  83.         // line 15
  84.         echo "
  85.             ";
  86.         // line 16
  87.         $this->displayBlock('cms_content'$context$blocks);
  88.         // line 26
  89.         echo "        ";
  90.         
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.     }
  95.     // line 7
  96.     public function block_cms_breadcrumb($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_breadcrumb"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_breadcrumb"));
  103.         // line 8
  104.         echo "                <div class=\"breadcrumb cms-breadcrumb container\">
  105.                     ";
  106.         // line 9
  107.         $this->loadTemplate("@Storefront/storefront/layout/breadcrumb.html.twig""@Storefront/storefront/page/content/index.html.twig"9)->display(twig_to_array(["context" =>         // line 10
  108. ($context["context"] ?? null), "category" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 11
  109. ($context["page"] ?? null), "header", [], "any"falsefalsefalse11), "navigation", [], "any"falsefalsefalse11), "active", [], "any"falsefalsefalse11)]));
  110.         // line 13
  111.         echo "                </div>
  112.             ";
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 16
  119.     public function block_cms_content($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_content"));
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_content"));
  126.         // line 17
  127.         echo "                ";
  128.         $context["cmsPageClasses"] = twig_trim_filter(("cms-page " twig_striptags(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "landingPage", [], "any"falsefalsefalse17), "cmsPage", [], "any"falsefalsefalse17), "cssClass", [], "any"falsefalsefalse17))));
  129.         // line 18
  130.         echo "                ";
  131.         $context["cmsPage"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "landingPage", [], "any"falsefalsefalse18)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "landingPage", [], "any"falsefalsefalse18), "cmsPage", [], "any"falsefalsefalse18)) : (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse18)));
  132.         // line 19
  133.         echo "                ";
  134.         $context["landingPage"] = ((sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "landingPage", [], "any"falsefalsefalse19)) ? (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "landingPage", [], "any"falsefalsefalse19)) : ([]));
  135.         // line 20
  136.         echo "                <div class=\"";
  137.         echo sw_escape_filter($this->env, ($context["cmsPageClasses"] ?? null), "html"nulltrue);
  138.         echo "\">
  139.                     ";
  140.         // line 21
  141.         $this->displayBlock('page_content_blocks'$context$blocks);
  142.         // line 24
  143.         echo "                </div>
  144.             ";
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.     }
  150.     // line 21
  151.     public function block_page_content_blocks($context, array $blocks = [])
  152.     {
  153.         $macros $this->macros;
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_blocks"));
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_blocks"));
  158.         // line 22
  159.         echo "                        ";
  160.         $this->loadTemplate("@Storefront/storefront/page/content/detail.html.twig""@Storefront/storefront/page/content/index.html.twig"22)->display(twig_array_merge($context, ["cmsPage" => ($context["cmsPage"] ?? null), "landingPage" => ($context["landingPage"] ?? null)]));
  161.         // line 23
  162.         echo "                    ";
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.     }
  168.     public function getTemplateName()
  169.     {
  170.         return "@Storefront/storefront/page/content/index.html.twig";
  171.     }
  172.     public function isTraitable()
  173.     {
  174.         return false;
  175.     }
  176.     public function getDebugInfo()
  177.     {
  178.         return array (  194 => 23,  191 => 22,  181 => 21,  170 => 24,  168 => 21,  163 => 20,  160 => 19,  157 => 18,  154 => 17,  144 => 16,  133 => 13,  131 => 11,  130 => 10,  129 => 9,  126 => 8,  116 => 7,  106 => 26,  104 => 16,  101 => 15,  98 => 7,  88 => 6,  77 => 27,  75 => 6,  72 => 5,  62 => 4,  39 => 2,);
  179.     }
  180.     public function getSourceContext()
  181.     {
  182.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  183. {# @var page \\Shopware\\Storefront\\Page\\LandingPage\\LandingPage|\\Shopware\\Storefront\\Page\\CategoryPage\\CategoryPage #}
  184. {% block base_main_inner %}
  185.     <div class=\"container-main\">
  186.         {% block page_content %}
  187.             {% block cms_breadcrumb %}
  188.                 <div class=\"breadcrumb cms-breadcrumb container\">
  189.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  190.                         context: context,
  191.                         category: page.header.navigation.active
  192.                     } only %}
  193.                 </div>
  194.             {% endblock %}
  195.             {% block cms_content %}
  196.                 {% set cmsPageClasses = ('cms-page ' ~ page.landingPage.cmsPage.cssClass|striptags)|trim %}
  197.                 {% set cmsPage = page.landingPage ? page.landingPage.cmsPage : page.cmsPage %}
  198.                 {% set landingPage = page.landingPage ? page.landingPage : {} %}
  199.                 <div class=\"{{ cmsPageClasses }}\">
  200.                     {% block page_content_blocks %}
  201.                         {% sw_include \"@Storefront/storefront/page/content/detail.html.twig\" with {'cmsPage': cmsPage, 'landingPage': landingPage} %}
  202.                     {% endblock %}
  203.                 </div>
  204.             {% endblock %}
  205.         {% endblock %}
  206.     </div>
  207. {% endblock %}
  208. ""@Storefront/storefront/page/content/index.html.twig""/usr/www/users/showcase/shopware6/vendor/shopware/storefront/Resources/views/storefront/page/content/index.html.twig");
  209.     }
  210. }