var/cache/dev_h673c1862f440d2629e17234d0abd7e8c/twig/6a/6adc19f4c472829ef4c97dfb84719d5184e78b03370e534f7002b88bac410b38.php line 44

Open in your IDE?
  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. /* @BaumarktTheme/storefront/page/content/index.html.twig */
  16. class __TwigTemplate_8213de1ea81e8354e51ed4ca38d0dcf8086936377727b4f235fdc4c7a988dcb5 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.             'page_content' => [$this'block_page_content'],
  26.             'page_content_cover_image' => [$this'block_page_content_cover_image'],
  27.             'cms_breadcrumb' => [$this'block_cms_breadcrumb'],
  28.             'page_content_subcategories_wrapper' => [$this'block_page_content_subcategories_wrapper'],
  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/page/content/index.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BaumarktTheme/storefront/page/content/index.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BaumarktTheme/storefront/page/content/index.html.twig"));
  44.         $this->parent $this->loadTemplate("@Storefront/storefront/page/content/index.html.twig""@BaumarktTheme/storefront/page/content/index.html.twig"2);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 4
  52.     public function block_page_content($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content"));
  59.         // line 5
  60.         echo "
  61.     ";
  62.         // line 6
  63.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse6), "type", [], "any"falsefalsefalse6) == "product_list")) {
  64.             // line 7
  65.             echo "        ";
  66.             $context["categoryCustomFields"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse7), "navigation", [], "any"falsefalsefalse7), "active", [], "any"falsefalsefalse7), "translated", [], "any"falsefalsefalse7), "customFields", [], "any"falsefalsefalse7);
  67.             // line 8
  68.             echo "
  69.         ";
  70.             // line 9
  71.             if (sw_get_attribute($this->env$this->source, ($context["categoryCustomFields"] ?? null), "category_cover_img", [], "any"falsefalsefalse9)) {
  72.                 // line 10
  73.                 echo "            ";
  74.                 $context["coverImgId"] = sw_get_attribute($this->env$this->source, ($context["categoryCustomFields"] ?? null), "category_cover_img", [], "any"falsefalsefalse10);
  75.                 // line 11
  76.                 echo "            ";
  77.                 $context["coverImgMediaCollection"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\MediaExtension']->searchMedia([=> ($context["coverImgId"] ?? null)], sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "context", [], "any"falsefalsefalse11));
  78.                 // line 12
  79.                 echo "            ";
  80.                 $context["coverImgMedia"] = sw_get_attribute($this->env$this->source, ($context["coverImgMediaCollection"] ?? null), "get", [=> ($context["coverImgId"] ?? null)], "method"falsefalsefalse12);
  81.                 // line 13
  82.                 echo "        ";
  83.             }
  84.             // line 14
  85.             echo "
  86.         ";
  87.             // line 15
  88.             $this->displayBlock('page_content_cover_image'$context$blocks);
  89.             // line 27
  90.             echo "
  91.         ";
  92.             // line 28
  93.             $context["linkableSections"] = [];
  94.             // line 29
  95.             echo "        ";
  96.             $context['_parent'] = $context;
  97.             $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse29), "sections", [], "any"falsefalsefalse29));
  98.             foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  99.                 // line 30
  100.                 echo "            ";
  101.                 if (sw_get_attribute($this->env$this->source$context["section"], "name", [], "any"falsefalsefalse30)) {
  102.                     // line 31
  103.                     echo "                ";
  104.                     $context["linkableSections"] = twig_array_merge(($context["linkableSections"] ?? null), [=> $context["section"]]);
  105.                     // line 32
  106.                     echo "            ";
  107.                 }
  108.                 // line 33
  109.                 echo "        ";
  110.             }
  111.             $_parent $context['_parent'];
  112.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  113.             $context array_intersect_key($context$_parent) + $_parent;
  114.             // line 34
  115.             echo "
  116.         ";
  117.             // line 35
  118.             if ((twig_length_filter($this->env, ($context["linkableSections"] ?? null)) > 0)) {
  119.                 // line 36
  120.                 echo "            <div class=\"listing-page-navigation\" data-scroll-section>
  121.                 <ul>
  122.                     ";
  123.                 // line 38
  124.                 $context['_parent'] = $context;
  125.                 $context['_seq'] = twig_ensure_traversable(($context["linkableSections"] ?? null));
  126.                 foreach ($context['_seq'] as $context["_key"] => $context["section"]) {
  127.                     // line 39
  128.                     echo "                        ";
  129.                     $context["sectionNameSnippet"] = twig_replace_filter(twig_striptags(sw_get_attribute($this->env$this->source$context["section"], "name", [], "any"falsefalsefalse39)), [" " => ""]);
  130.                     // line 40
  131.                     echo "                        ";
  132.                     $context["sectionName"] = $this->extensions['GlobusSW6\Service\Twig\SwSanitizeTwigFilterDecorator']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(($context["sectionNameSnippet"] ?? null)));
  133.                     // line 41
  134.                     echo "                        ";
  135.                     if ((($context["sectionNameSnippet"] ?? null) == ($context["sectionName"] ?? null))) {
  136.                         // line 42
  137.                         echo "                            ";
  138.                         $context["sectionName"] = sw_get_attribute($this->env$this->source$context["section"], "name", [], "any"falsefalsefalse42);
  139.                         // line 43
  140.                         echo "                        ";
  141.                     }
  142.                     // line 44
  143.                     echo "                        <li>
  144.                             <a href=\"#\" data-section-id=\"globus-listing-section-";
  145.                     // line 45
  146.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["section"], "id", [], "any"falsefalsefalse45), "html"nulltrue);
  147.                     echo "\">";
  148.                     echo sw_escape_filter($this->env, ($context["sectionName"] ?? null), "html"nulltrue);
  149.                     echo "</a>
  150.                         </li>
  151.                     ";
  152.                 }
  153.                 $_parent $context['_parent'];
  154.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['section'], $context['_parent'], $context['loop']);
  155.                 $context array_intersect_key($context$_parent) + $_parent;
  156.                 // line 48
  157.                 echo "                </ul>
  158.             </div>
  159.         ";
  160.             }
  161.             // line 51
  162.             echo "    ";
  163.         }
  164.         // line 52
  165.         echo "
  166.     ";
  167.         // line 53
  168.         $this->displayBlock('cms_breadcrumb'$context$blocks);
  169.         // line 66
  170.         echo "
  171.     ";
  172.         // line 67
  173.         $this->displayBlock('page_content_subcategories_wrapper'$context$blocks);
  174.         // line 84
  175.         echo "
  176.     <div class=\"cms-page\">
  177.         ";
  178.         // line 86
  179.         $this->displayBlock('page_content_blocks'$context$blocks);
  180.         // line 89
  181.         echo "    </div>
  182.     ";
  183.         // line 91
  184.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse91), "type", [], "any"falsefalsefalse91) == "product_list")) {
  185.             // line 92
  186.             echo "        ";
  187.             if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse92), "navigation", [], "any"falsefalsefalse92), "active", [], "any"falsefalsefalse92), "translated", [], "any"falsefalsefalse92), "customFields", [], "any"falsefalsefalse92), "category_description_seo", [], "any"falsefalsefalse92)) {
  188.                 // line 93
  189.                 echo "            <div class=\"cms-seo-text-wrapper\">
  190.                 <div class=\"cms-seo-container container\">
  191.                     ";
  192.                 // line 95
  193.                 if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse95), "metaTitle", [], "any"falsefalsefalse95)) {
  194.                     // line 96
  195.                     echo "                        <div class=\"h3 cms-seo-title\">
  196.                             ";
  197.                     // line 97
  198.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "metaInformation", [], "any"falsefalsefalse97), "metaTitle", [], "any"falsefalsefalse97), "html"nulltrue);
  199.                     echo "
  200.                         </div>
  201.                     ";
  202.                 }
  203.                 // line 100
  204.                 echo "                    ";
  205.                 if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse100), "navigation", [], "any"falsefalsefalse100), "active", [], "any"falsefalsefalse100), "translated", [], "any"falsefalsefalse100), "customFields", [], "any"falsefalsefalse100), "category_subtitle_seo", [], "any"falsefalsefalse100)) {
  206.                     // line 101
  207.                     echo "                        <div class=\"cms-seo-subtitle\">
  208.                             ";
  209.                     // line 102
  210.                     echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse102), "navigation", [], "any"falsefalsefalse102), "active", [], "any"falsefalsefalse102), "translated", [], "any"falsefalsefalse102), "customFields", [], "any"falsefalsefalse102), "category_subtitle_seo", [], "any"falsefalsefalse102), "html"nulltrue);
  211.                     echo "
  212.                         </div>
  213.                     ";
  214.                 }
  215.                 // line 105
  216.                 echo "                    <div class=\"cms-seo-description\">
  217.                         <p>
  218.                             ";
  219.                 // line 107
  220.                 echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse107), "navigation", [], "any"falsefalsefalse107), "active", [], "any"falsefalsefalse107), "translated", [], "any"falsefalsefalse107), "customFields", [], "any"falsefalsefalse107), "category_description_seo", [], "any"falsefalsefalse107);
  221.                 echo "
  222.                         </p>
  223.                     </div>
  224.                     <div class=\"cms-seo-btn-wrapper d-flex justify-content-center\">
  225.                     <a href=\"";
  226.                 // line 112
  227.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.listingSeoBtnUrl"), "html"nulltrue);
  228.                 echo "
  229. \" class=\"cms-seo-btn btn btn-primary\">
  230.                         ";
  231.                 // line 114
  232.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("listing.listingSeoBtn"), "html"nulltrue);
  233.                 echo "
  234.                     </a>
  235.                     </div>
  236.                 </div>
  237.             </div>
  238.         ";
  239.             }
  240.             // line 120
  241.             echo "    ";
  242.         }
  243.         // line 121
  244.         echo "
  245. ";
  246.         
  247.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  248.         
  249.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  250.     }
  251.     // line 15
  252.     public function block_page_content_cover_image($context, array $blocks = [])
  253.     {
  254.         $macros $this->macros;
  255.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  256.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_cover_image"));
  257.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  258.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_cover_image"));
  259.         // line 16
  260.         echo "
  261.             ";
  262.         // line 17
  263.         if (($context["coverImgMedia"] ?? null)) {
  264.             // line 18
  265.             echo "                <div class=\"category-cover-img\" style=\"background-image: url(";
  266.             echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeUrl(sw_get_attribute($this->env$this->source, ($context["coverImgMedia"] ?? null), "url", [], "any"falsefalsefalse18)), "html"nulltrue);
  267.             echo ");\">
  268.                     <div class=\"category-cover-img-layer\"></div>
  269.                     <div class=\"category-cover-img-name\">
  270.                         <h1>";
  271.             // line 21
  272.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse21), "navigation", [], "any"falsefalsefalse21), "active", [], "any"falsefalsefalse21), "translated", [], "any"falsefalsefalse21), "name", [], "any"falsefalsefalse21), "html"nulltrue);
  273.             echo "</h1>
  274.                     </div>
  275.                 </div>
  276.             ";
  277.         }
  278.         // line 25
  279.         echo "
  280.         ";
  281.         
  282.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  283.         
  284.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  285.     }
  286.     // line 53
  287.     public function block_cms_breadcrumb($context, array $blocks = [])
  288.     {
  289.         $macros $this->macros;
  290.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  291.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_breadcrumb"));
  292.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  293.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""cms_breadcrumb"));
  294.         // line 54
  295.         echo "
  296.         ";
  297.         // line 55
  298.         if ((($context["controllerAction"] ?? null) == "home")) {
  299.             // line 57
  300.             echo "        ";
  301.         } else {
  302.             // line 58
  303.             echo "            <div class=\"breadcrumb cms-breadcrumb container\" data-content-breadcrumb=\"true\">
  304.                 ";
  305.             // line 59
  306.             $this->loadTemplate("@BaumarktTheme/storefront/layout/breadcrumb.html.twig""@BaumarktTheme/storefront/page/content/index.html.twig"59)->display(twig_to_array(["context" =>             // line 60
  307. ($context["context"] ?? null), "category" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,             // line 61
  308. ($context["page"] ?? null), "header", [], "any"falsefalsefalse61), "navigation", [], "any"falsefalsefalse61), "active", [], "any"falsefalsefalse61)]));
  309.             // line 63
  310.             echo "            </div>
  311.         ";
  312.         }
  313.         // line 65
  314.         echo "    ";
  315.         
  316.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  317.         
  318.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  319.     }
  320.     // line 67
  321.     public function block_page_content_subcategories_wrapper($context, array $blocks = [])
  322.     {
  323.         $macros $this->macros;
  324.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  325.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_subcategories_wrapper"));
  326.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  327.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_subcategories_wrapper"));
  328.         // line 68
  329.         echo "        ";
  330.         $context["treeItems"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse68), "navigation", [], "any"falsefalsefalse68), "tree", [], "any"falsefalsefalse68);
  331.         // line 69
  332.         echo "        ";
  333.         $context["currentLevel"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse69), "navigation", [], "any"falsefalsefalse69), "active", [], "any"falsefalsefalse69), "level", [], "any"falsefalsefalse69);
  334.         // line 70
  335.         echo "        ";
  336.         $context["currentChildren"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse70), "navigation", [], "any"falsefalsefalse70), "active", [], "any"falsefalsefalse70), "childCount", [], "any"falsefalsefalse70);
  337.         // line 71
  338.         echo "        ";
  339.         $context["activeId"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "header", [], "any"falsefalsefalse71), "navigation", [], "any"falsefalsefalse71), "active", [], "any"falsefalsefalse71), "id", [], "any"falsefalsefalse71);
  340.         // line 72
  341.         echo "
  342.         ";
  343.         // line 73
  344.         if ((($context["currentChildren"] ?? null) > 0)) {
  345.             // line 74
  346.             echo "
  347.             <div class=\"subcategories-navigation-wrapper\">
  348.                 <div class=\"subcategories-navigation container d-flex justify-content-between\">
  349.                     ";
  350.             // line 78
  351.             $this->loadTemplate("@BaumarktTheme/storefront/page/content/subnavigation.html.twig""@BaumarktTheme/storefront/page/content/index.html.twig"78)->display(twig_to_array(["activeId" => ($context["activeId"] ?? null), "treeItems" => ($context["treeItems"] ?? null)]));
  352.             // line 79
  353.             echo "                </div>
  354.             </div>
  355.         ";
  356.         }
  357.         // line 83
  358.         echo "    ";
  359.         
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  361.         
  362.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  363.     }
  364.     // line 86
  365.     public function block_page_content_blocks($context, array $blocks = [])
  366.     {
  367.         $macros $this->macros;
  368.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_blocks"));
  370.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  371.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_content_blocks"));
  372.         // line 87
  373.         echo "            ";
  374.         $this->loadTemplate("@BaumarktTheme/storefront/page/content/detail.html.twig""@BaumarktTheme/storefront/page/content/index.html.twig"87)->display(twig_array_merge($context, ["cmsPage" => sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cmsPage", [], "any"falsefalsefalse87)]));
  375.         // line 88
  376.         echo "        ";
  377.         
  378.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  379.         
  380.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  381.     }
  382.     public function getTemplateName()
  383.     {
  384.         return "@BaumarktTheme/storefront/page/content/index.html.twig";
  385.     }
  386.     public function isTraitable()
  387.     {
  388.         return false;
  389.     }
  390.     public function getDebugInfo()
  391.     {
  392.         return array (  412 => 88,  409 => 87,  399 => 86,  389 => 83,  383 => 79,  381 => 78,  375 => 74,  373 => 73,  370 => 72,  367 => 71,  364 => 70,  361 => 69,  358 => 68,  348 => 67,  338 => 65,  334 => 63,  332 => 61,  331 => 60,  330 => 59,  327 => 58,  324 => 57,  322 => 55,  319 => 54,  309 => 53,  298 => 25,  291 => 21,  284 => 18,  282 => 17,  279 => 16,  269 => 15,  258 => 121,  255 => 120,  246 => 114,  241 => 112,  233 => 107,  229 => 105,  223 => 102,  220 => 101,  217 => 100,  211 => 97,  208 => 96,  206 => 95,  202 => 93,  199 => 92,  197 => 91,  193 => 89,  191 => 86,  187 => 84,  185 => 67,  182 => 66,  180 => 53,  177 => 52,  174 => 51,  169 => 48,  158 => 45,  155 => 44,  152 => 43,  149 => 42,  146 => 41,  143 => 40,  140 => 39,  136 => 38,  132 => 36,  130 => 35,  127 => 34,  121 => 33,  118 => 32,  115 => 31,  112 => 30,  107 => 29,  105 => 28,  102 => 27,  100 => 15,  97 => 14,  94 => 13,  91 => 12,  88 => 11,  85 => 10,  83 => 9,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  62 => 4,  39 => 2,);
  393.     }
  394.     public function getSourceContext()
  395.     {
  396.         return new Source("{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
  397. {% block page_content %}
  398.     {% if page.cmsPage.type == 'product_list' %}
  399.         {% set categoryCustomFields = page.header.navigation.active.translated.customFields %}
  400.         {% if categoryCustomFields.category_cover_img %}
  401.             {% set coverImgId = categoryCustomFields.category_cover_img %}
  402.             {% set coverImgMediaCollection = searchMedia([coverImgId], context.context) %}
  403.             {% set coverImgMedia = coverImgMediaCollection.get(coverImgId) %}
  404.         {% endif %}
  405.         {% block page_content_cover_image %}
  406.             {% if coverImgMedia %}
  407.                 <div class=\"category-cover-img\" style=\"background-image: url({{ coverImgMedia.url|sw_encode_url }});\">
  408.                     <div class=\"category-cover-img-layer\"></div>
  409.                     <div class=\"category-cover-img-name\">
  410.                         <h1>{{ page.header.navigation.active.translated.name }}</h1>
  411.                     </div>
  412.                 </div>
  413.             {% endif %}
  414.         {% endblock %}
  415.         {% set linkableSections = [] %}
  416.         {% for section in page.cmsPage.sections %}
  417.             {% if section.name %}
  418.                 {% set linkableSections = linkableSections|merge([section]) %}
  419.             {% endif %}
  420.         {% endfor %}
  421.         {% if linkableSections|length > 0 %}
  422.             <div class=\"listing-page-navigation\" data-scroll-section>
  423.                 <ul>
  424.                     {% for section in linkableSections %}
  425.                         {% set sectionNameSnippet = section.name|striptags|replace({' ': ''}) %}
  426.                         {% set sectionName = sectionNameSnippet|trans|sw_sanitize %}
  427.                         {% if sectionNameSnippet == sectionName %}
  428.                             {% set sectionName = section.name %}
  429.                         {% endif %}
  430.                         <li>
  431.                             <a href=\"#\" data-section-id=\"globus-listing-section-{{ section.id }}\">{{ sectionName }}</a>
  432.                         </li>
  433.                     {% endfor %}
  434.                 </ul>
  435.             </div>
  436.         {% endif %}
  437.     {% endif %}
  438.     {% block cms_breadcrumb %}
  439.         {% if controllerAction == 'home' %}
  440. {# removes breadcrumb navigation on homepage to prevent unneccesary whitespace #}
  441.         {% else %}
  442.             <div class=\"breadcrumb cms-breadcrumb container\" data-content-breadcrumb=\"true\">
  443.                 {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  444.                     context: context,
  445.                     category: page.header.navigation.active
  446.                 } only %}
  447.             </div>
  448.         {% endif %}
  449.     {% endblock %}
  450.     {% block page_content_subcategories_wrapper %}
  451.         {% set treeItems = page.header.navigation.tree %}
  452.         {% set currentLevel = page.header.navigation.active.level %}
  453.         {% set currentChildren = page.header.navigation.active.childCount %}
  454.         {% set activeId = page.header.navigation.active.id %}
  455.         {% if currentChildren > 0 %}
  456.             <div class=\"subcategories-navigation-wrapper\">
  457.                 <div class=\"subcategories-navigation container d-flex justify-content-between\">
  458.                     {% sw_include '@Storefront/storefront/page/content/subnavigation.html.twig' with { activeId: activeId, treeItems: treeItems} only %}
  459.                 </div>
  460.             </div>
  461.         {% endif %}
  462.     {% endblock %}
  463.     <div class=\"cms-page\">
  464.         {% block page_content_blocks %}
  465.             {% sw_include \"@Storefront/storefront/page/content/detail.html.twig\" with {'cmsPage': page.cmsPage} %}
  466.         {% endblock %}
  467.     </div>
  468.     {% if page.cmsPage.type == 'product_list' %}
  469.         {% if page.header.navigation.active.translated.customFields.category_description_seo %}
  470.             <div class=\"cms-seo-text-wrapper\">
  471.                 <div class=\"cms-seo-container container\">
  472.                     {% if page.metaInformation.metaTitle %}
  473.                         <div class=\"h3 cms-seo-title\">
  474.                             {{ page.metaInformation.metaTitle }}
  475.                         </div>
  476.                     {% endif %}
  477.                     {% if page.header.navigation.active.translated.customFields.category_subtitle_seo %}
  478.                         <div class=\"cms-seo-subtitle\">
  479.                             {{ page.header.navigation.active.translated.customFields.category_subtitle_seo }}
  480.                         </div>
  481.                     {% endif %}
  482.                     <div class=\"cms-seo-description\">
  483.                         <p>
  484.                             {{ page.header.navigation.active.translated.customFields.category_description_seo|raw }}
  485.                         </p>
  486.                     </div>
  487.                     <div class=\"cms-seo-btn-wrapper d-flex justify-content-center\">
  488.                     <a href=\"{{ \"listing.listingSeoBtnUrl\"|trans }}
  489. \" class=\"cms-seo-btn btn btn-primary\">
  490.                         {{ \"listing.listingSeoBtn\"|trans }}
  491.                     </a>
  492.                     </div>
  493.                 </div>
  494.             </div>
  495.         {% endif %}
  496.     {% endif %}
  497. {% endblock %}
  498. ""@BaumarktTheme/storefront/page/content/index.html.twig""/srv/users/globus-int/apps/globus-int/releases/81/custom/static-plugins/BaumarktTheme/src/Resources/views/storefront/page/content/index.html.twig");
  499.     }
  500. }