var/cache/dev_h7c987e168e0fffb75676c4822b2502a6/twig/f4/f43b18e75620508817c36cf4596f7f3198e8619cfeb390847174612080b10057.php line 58

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. /* @AmMacTrade/storefront/layout/breadcrumb.html.twig */
  16. class __TwigTemplate_bfa367ce36f85d16977b446de9e65262 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->parent false;
  25.         $this->blocks = [
  26.             'layout_breadcrumb_inner' => [$this'block_layout_breadcrumb_inner'],
  27.             'layout_breadcrumb_list' => [$this'block_layout_breadcrumb_list'],
  28.             'layout_breadcrumb_list_item' => [$this'block_layout_breadcrumb_list_item'],
  29.             'layout_breadcrumb_placeholder' => [$this'block_layout_breadcrumb_placeholder'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AmMacTrade/storefront/layout/breadcrumb.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AmMacTrade/storefront/layout/breadcrumb.html.twig"));
  39.         // line 1
  40.         $this->displayBlock('layout_breadcrumb_inner'$context$blocks);
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     public function block_layout_breadcrumb_inner($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_inner"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_inner"));
  53.         // line 2
  54.         echo "    ";
  55.         if (($context["category"] ?? null)) {
  56.             // line 3
  57.             echo "        ";
  58.             $context["breadcrumbCategories"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->getFullBreadcrumb($context, ($context["category"] ?? null), sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "context", [], "any"falsefalsefalse3));
  59.             // line 4
  60.             echo "        ";
  61.             $context["categoryId"] = sw_get_attribute($this->env$this->source, ($context["category"] ?? null), "id", [], "any"falsefalsefalse4);
  62.             // line 5
  63.             echo "
  64.         ";
  65.             // line 7
  66.             echo "        ";
  67.             $context["breadcrumb"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->buildSeoBreadcrumb($context, ($context["category"] ?? null));
  68.             // line 8
  69.             echo "        ";
  70.             // line 9
  71.             echo "        ";
  72.             $context["breadcrumbKeys"] = twig_get_array_keys_filter(($context["breadcrumb"] ?? null));
  73.             // line 10
  74.             echo "        ";
  75.             // line 11
  76.             echo "        ";
  77.             $context["breadcrumbTypes"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->buildCategoryTypes(($context["breadcrumbCategories"] ?? null));
  78.             // line 12
  79.             echo "
  80.         <nav aria-label=\"breadcrumb\">
  81.             <div class=\"container\">
  82.                 <div class=\"back-link\">
  83.                     <a href=\"javascript:history.back();\">";
  84.             // line 16
  85.             ((function () use ($context$blocks) {
  86.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  87.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  88.                 return $this->loadTemplate($includeTemplate ?? null"@AmMacTrade/storefront/layout/breadcrumb.html.twig"16);
  89.             })())->display(twig_array_merge($context, ["size" => "fluid""pack" => "solid""name" => "arrow-medium-left"]));
  90.             echo " Übersicht</a>
  91.                 </div>
  92.                 ";
  93.             // line 18
  94.             $this->displayBlock('layout_breadcrumb_list'$context$blocks);
  95.             // line 59
  96.             echo "            </div>
  97.         </nav>
  98.     ";
  99.         }
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.     }
  105.     // line 18
  106.     public function block_layout_breadcrumb_list($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list"));
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list"));
  113.         // line 19
  114.         echo "                    <ol class=\"breadcrumb\"
  115.                         itemscope
  116.                         itemtype=\"https://schema.org/BreadcrumbList\">
  117.                         ";
  118.         // line 22
  119.         $context['_parent'] = $context;
  120.         $context['_seq'] = twig_ensure_traversable(($context["breadcrumbCategories"] ?? null));
  121.         $context['loop'] = [
  122.           'parent' => $context['_parent'],
  123.           'index0' => 0,
  124.           'index'  => 1,
  125.           'first'  => true,
  126.         ];
  127.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  128.             $length count($context['_seq']);
  129.             $context['loop']['revindex0'] = $length 1;
  130.             $context['loop']['revindex'] = $length;
  131.             $context['loop']['length'] = $length;
  132.             $context['loop']['last'] = === $length;
  133.         }
  134.         foreach ($context['_seq'] as $context["_key"] => $context["breadcrumbCategory"]) {
  135.             // line 23
  136.             echo "                            ";
  137.             $context["key"] = sw_get_attribute($this->env$this->source$context["breadcrumbCategory"], "id", [], "any"falsefalsefalse23);
  138.             // line 24
  139.             echo "                            ";
  140.             $context["name"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["breadcrumbCategory"], "translated", [], "any"falsefalsefalse24), "name", [], "any"falsefalsefalse24);
  141.             // line 25
  142.             echo "
  143.                             ";
  144.             // line 26
  145.             $this->displayBlock('layout_breadcrumb_list_item'$context$blocks);
  146.             // line 48
  147.             echo "
  148.                             ";
  149.             // line 49
  150.             $this->displayBlock('layout_breadcrumb_placeholder'$context$blocks);
  151.             // line 56
  152.             echo "                        ";
  153.             ++$context['loop']['index0'];
  154.             ++$context['loop']['index'];
  155.             $context['loop']['first'] = false;
  156.             if (isset($context['loop']['length'])) {
  157.                 --$context['loop']['revindex0'];
  158.                 --$context['loop']['revindex'];
  159.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  160.             }
  161.         }
  162.         $_parent $context['_parent'];
  163.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumbCategory'], $context['_parent'], $context['loop']);
  164.         $context array_intersect_key($context$_parent) + $_parent;
  165.         // line 57
  166.         echo "                    </ol>
  167.                 ";
  168.         
  169.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170.         
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172.     }
  173.     // line 26
  174.     public function block_layout_breadcrumb_list_item($context, array $blocks = [])
  175.     {
  176.         $macros $this->macros;
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list_item"));
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_list_item"));
  181.         // line 27
  182.         echo "                                <li class=\"breadcrumb-item\"
  183.                                     ";
  184.         // line 28
  185.         if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
  186.             echo "aria-current=\"page\"";
  187.         }
  188.         // line 29
  189.         echo "                                    itemprop=\"itemListElement\"
  190.                                     itemscope
  191.                                     itemtype=\"https://schema.org/ListItem\">
  192.                                     ";
  193.         // line 32
  194.         if ((sw_get_attribute($this->env$this->source, ($context["breadcrumbCategory"] ?? null), "type", [], "any"falsefalsefalse32) == "folder")) {
  195.             // line 33
  196.             echo "                                        <div>";
  197.             echo sw_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  198.             echo "</div>
  199.                                     ";
  200.         } else {
  201.             // line 35
  202.             echo "                                        <a href=\"";
  203.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, ($context["breadcrumbCategory"] ?? null));
  204.             echo "\"
  205.                                            class=\"breadcrumb-link ";
  206.             // line 36
  207.             if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
  208.                 echo " is-active";
  209.             }
  210.             echo "\"
  211.                                            title=\"";
  212.             // line 37
  213.             echo sw_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  214.             echo "\"
  215.                                            ";
  216.             // line 38
  217.             if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->isLinkNewTab(($context["breadcrumbCategory"] ?? null))) {
  218.                 echo "target=\"_blank\"";
  219.             }
  220.             // line 39
  221.             echo "                                           itemprop=\"item\">
  222.                                             <link itemprop=\"url\"
  223.                                                   href=\"";
  224.             // line 41
  225.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, ($context["breadcrumbCategory"] ?? null));
  226.             echo "\"/>
  227.                                             <span class=\"breadcrumb-title\" itemprop=\"name\">";
  228.             // line 42
  229.             echo sw_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  230.             echo "</span>
  231.                                         </a>
  232.                                         <meta itemprop=\"position\" content=\"";
  233.             // line 44
  234.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["breadcrumbCategory"] ?? null), "id", [], "any"falsefalsefalse44), "html"nulltrue);
  235.             echo "\"/>
  236.                                     ";
  237.         }
  238.         // line 46
  239.         echo "                                </li>
  240.                             ";
  241.         
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  243.         
  244.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  245.     }
  246.     // line 49
  247.     public function block_layout_breadcrumb_placeholder($context, array $blocks = [])
  248.     {
  249.         $macros $this->macros;
  250.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  251.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_placeholder"));
  252.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_breadcrumb_placeholder"));
  254.         // line 50
  255.         echo "                                ";
  256.         if ((($context["key"] ?? null) != twig_last($this->env, ($context["breadcrumbKeys"] ?? null)))) {
  257.             // line 51
  258.             echo "                                    <div class=\"breadcrumb-placeholder\">
  259.                                         ";
  260.             // line 52
  261.             ((function () use ($context$blocks) {
  262.                 $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  263.                 $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  264.                 return $this->loadTemplate($includeTemplate ?? null"@AmMacTrade/storefront/layout/breadcrumb.html.twig"52);
  265.             })())->display(twig_array_merge($context, ["size" => "fluid""pack" => "solid""name" => "arrow-medium-right"]));
  266.             // line 53
  267.             echo "                                    </div>
  268.                                 ";
  269.         }
  270.         // line 55
  271.         echo "                            ";
  272.         
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  274.         
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  276.     }
  277.     public function getTemplateName()
  278.     {
  279.         return "@AmMacTrade/storefront/layout/breadcrumb.html.twig";
  280.     }
  281.     public function getDebugInfo()
  282.     {
  283.         return array (  302 => 55,  298 => 53,  290 => 52,  287 => 51,  284 => 50,  274 => 49,  263 => 46,  258 => 44,  253 => 42,  249 => 41,  245 => 39,  241 => 38,  237 => 37,  231 => 36,  226 => 35,  220 => 33,  218 => 32,  213 => 29,  209 => 28,  206 => 27,  196 => 26,  185 => 57,  171 => 56,  169 => 49,  166 => 48,  164 => 26,  161 => 25,  158 => 24,  155 => 23,  138 => 22,  133 => 19,  123 => 18,  110 => 59,  108 => 18,  97 => 16,  91 => 12,  88 => 11,  86 => 10,  83 => 9,  81 => 8,  78 => 7,  75 => 5,  72 => 4,  69 => 3,  66 => 2,  47 => 1,);
  284.     }
  285.     public function getSourceContext()
  286.     {
  287.         return new Source("{% block layout_breadcrumb_inner %}
  288.     {% if category %}
  289.         {% set breadcrumbCategories = sw_breadcrumb_full(category, context.context) %}
  290.         {% set categoryId = category.id %}
  291.         {# @deprecated tag:v6.5.0 - Use \"sw_breadcrumb_full\" directly. #}
  292.         {% set breadcrumb = sw_breadcrumb(category) %}
  293.         {# @deprecated tag:v6.5.0 - Use \"sw_breadcrumb_full\" directly. #}
  294.         {% set breadcrumbKeys = breadcrumb|keys %}
  295.         {# @deprecated tag:v6.5.0 - Use \"sw_breadcrumb_full\" directly. #}
  296.         {% set breadcrumbTypes = sw_breadcrumb_build_types(breadcrumbCategories) %}
  297.         <nav aria-label=\"breadcrumb\">
  298.             <div class=\"container\">
  299.                 <div class=\"back-link\">
  300.                     <a href=\"javascript:history.back();\">{% sw_icon 'arrow-medium-left' style { 'size': 'fluid', 'pack': 'solid'} %} Übersicht</a>
  301.                 </div>
  302.                 {% block layout_breadcrumb_list %}
  303.                     <ol class=\"breadcrumb\"
  304.                         itemscope
  305.                         itemtype=\"https://schema.org/BreadcrumbList\">
  306.                         {% for breadcrumbCategory in breadcrumbCategories %}
  307.                             {% set key = breadcrumbCategory.id %}
  308.                             {% set name = breadcrumbCategory.translated.name %}
  309.                             {% block layout_breadcrumb_list_item %}
  310.                                 <li class=\"breadcrumb-item\"
  311.                                     {% if key is same as(categoryId) %}aria-current=\"page\"{% endif %}
  312.                                     itemprop=\"itemListElement\"
  313.                                     itemscope
  314.                                     itemtype=\"https://schema.org/ListItem\">
  315.                                     {% if breadcrumbCategory.type == 'folder' %}
  316.                                         <div>{{ name }}</div>
  317.                                     {% else %}
  318.                                         <a href=\"{{ category_url(breadcrumbCategory) }}\"
  319.                                            class=\"breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}\"
  320.                                            title=\"{{ name }}\"
  321.                                            {% if category_linknewtab(breadcrumbCategory) %}target=\"_blank\"{% endif %}
  322.                                            itemprop=\"item\">
  323.                                             <link itemprop=\"url\"
  324.                                                   href=\"{{ category_url(breadcrumbCategory) }}\"/>
  325.                                             <span class=\"breadcrumb-title\" itemprop=\"name\">{{ name }}</span>
  326.                                         </a>
  327.                                         <meta itemprop=\"position\" content=\"{{ breadcrumbCategory.id }}\"/>
  328.                                     {% endif %}
  329.                                 </li>
  330.                             {% endblock %}
  331.                             {% block layout_breadcrumb_placeholder %}
  332.                                 {% if key != breadcrumbKeys|last %}
  333.                                     <div class=\"breadcrumb-placeholder\">
  334.                                         {% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
  335.                                     </div>
  336.                                 {% endif %}
  337.                             {% endblock %}
  338.                         {% endfor %}
  339.                     </ol>
  340.                 {% endblock %}
  341.             </div>
  342.         </nav>
  343.     {% endif %}
  344. {% endblock %}
  345. ""@AmMacTrade/storefront/layout/breadcrumb.html.twig""/var/www/vhosts/devmt.de/httpdocs/shopware-ce/custom/plugins/AmMacTrade/src/Resources/views/storefront/layout/breadcrumb.html.twig");
  346.     }
  347. }