<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @AmMacTrade/storefront/layout/breadcrumb.html.twig */
class __TwigTemplate_bfa367ce36f85d16977b446de9e65262 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'layout_breadcrumb_inner' => [$this, 'block_layout_breadcrumb_inner'],
'layout_breadcrumb_list' => [$this, 'block_layout_breadcrumb_list'],
'layout_breadcrumb_list_item' => [$this, 'block_layout_breadcrumb_list_item'],
'layout_breadcrumb_placeholder' => [$this, 'block_layout_breadcrumb_placeholder'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AmMacTrade/storefront/layout/breadcrumb.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AmMacTrade/storefront/layout/breadcrumb.html.twig"));
// line 1
$this->displayBlock('layout_breadcrumb_inner', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_layout_breadcrumb_inner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_inner"));
// line 2
echo " ";
if (($context["category"] ?? null)) {
// line 3
echo " ";
$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", false, false, false, 3));
// line 4
echo " ";
$context["categoryId"] = sw_get_attribute($this->env, $this->source, ($context["category"] ?? null), "id", [], "any", false, false, false, 4);
// line 5
echo "
";
// line 7
echo " ";
$context["breadcrumb"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->buildSeoBreadcrumb($context, ($context["category"] ?? null));
// line 8
echo " ";
// line 9
echo " ";
$context["breadcrumbKeys"] = twig_get_array_keys_filter(($context["breadcrumb"] ?? null));
// line 10
echo " ";
// line 11
echo " ";
$context["breadcrumbTypes"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->buildCategoryTypes(($context["breadcrumbCategories"] ?? null));
// line 12
echo "
<nav aria-label=\"breadcrumb\">
<div class=\"container\">
<div class=\"back-link\">
<a href=\"javascript:history.back();\">";
// line 16
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@AmMacTrade/storefront/layout/breadcrumb.html.twig", 16);
})())->display(twig_array_merge($context, ["size" => "fluid", "pack" => "solid", "name" => "arrow-medium-left"]));
echo " Übersicht</a>
</div>
";
// line 18
$this->displayBlock('layout_breadcrumb_list', $context, $blocks);
// line 59
echo " </div>
</nav>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_layout_breadcrumb_list($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list"));
// line 19
echo " <ol class=\"breadcrumb\"
itemscope
itemtype=\"https://schema.org/BreadcrumbList\">
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["breadcrumbCategories"] ?? null));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumbCategory"]) {
// line 23
echo " ";
$context["key"] = sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "id", [], "any", false, false, false, 23);
// line 24
echo " ";
$context["name"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "translated", [], "any", false, false, false, 24), "name", [], "any", false, false, false, 24);
// line 25
echo "
";
// line 26
$this->displayBlock('layout_breadcrumb_list_item', $context, $blocks);
// line 48
echo "
";
// line 49
$this->displayBlock('layout_breadcrumb_placeholder', $context, $blocks);
// line 56
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumbCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " </ol>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 26
public function block_layout_breadcrumb_list_item($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list_item"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list_item"));
// line 27
echo " <li class=\"breadcrumb-item\"
";
// line 28
if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
echo "aria-current=\"page\"";
}
// line 29
echo " itemprop=\"itemListElement\"
itemscope
itemtype=\"https://schema.org/ListItem\">
";
// line 32
if ((sw_get_attribute($this->env, $this->source, ($context["breadcrumbCategory"] ?? null), "type", [], "any", false, false, false, 32) == "folder")) {
// line 33
echo " <div>";
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</div>
";
} else {
// line 35
echo " <a href=\"";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, ($context["breadcrumbCategory"] ?? null));
echo "\"
class=\"breadcrumb-link ";
// line 36
if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
echo " is-active";
}
echo "\"
title=\"";
// line 37
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
";
// line 38
if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->isLinkNewTab(($context["breadcrumbCategory"] ?? null))) {
echo "target=\"_blank\"";
}
// line 39
echo " itemprop=\"item\">
<link itemprop=\"url\"
href=\"";
// line 41
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, ($context["breadcrumbCategory"] ?? null));
echo "\"/>
<span class=\"breadcrumb-title\" itemprop=\"name\">";
// line 42
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</span>
</a>
<meta itemprop=\"position\" content=\"";
// line 44
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["breadcrumbCategory"] ?? null), "id", [], "any", false, false, false, 44), "html", null, true);
echo "\"/>
";
}
// line 46
echo " </li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 49
public function block_layout_breadcrumb_placeholder($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_placeholder"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_placeholder"));
// line 50
echo " ";
if ((($context["key"] ?? null) != twig_last($this->env, ($context["breadcrumbKeys"] ?? null)))) {
// line 51
echo " <div class=\"breadcrumb-placeholder\">
";
// line 52
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@AmMacTrade/storefront/layout/breadcrumb.html.twig", 52);
})())->display(twig_array_merge($context, ["size" => "fluid", "pack" => "solid", "name" => "arrow-medium-right"]));
// line 53
echo " </div>
";
}
// line 55
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@AmMacTrade/storefront/layout/breadcrumb.html.twig";
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% block layout_breadcrumb_inner %}
{% if category %}
{% set breadcrumbCategories = sw_breadcrumb_full(category, context.context) %}
{% set categoryId = category.id %}
{# @deprecated tag:v6.5.0 - Use \"sw_breadcrumb_full\" directly. #}
{% set breadcrumb = sw_breadcrumb(category) %}
{# @deprecated tag:v6.5.0 - Use \"sw_breadcrumb_full\" directly. #}
{% set breadcrumbKeys = breadcrumb|keys %}
{# @deprecated tag:v6.5.0 - Use \"sw_breadcrumb_full\" directly. #}
{% set breadcrumbTypes = sw_breadcrumb_build_types(breadcrumbCategories) %}
<nav aria-label=\"breadcrumb\">
<div class=\"container\">
<div class=\"back-link\">
<a href=\"javascript:history.back();\">{% sw_icon 'arrow-medium-left' style { 'size': 'fluid', 'pack': 'solid'} %} Übersicht</a>
</div>
{% block layout_breadcrumb_list %}
<ol class=\"breadcrumb\"
itemscope
itemtype=\"https://schema.org/BreadcrumbList\">
{% for breadcrumbCategory in breadcrumbCategories %}
{% set key = breadcrumbCategory.id %}
{% set name = breadcrumbCategory.translated.name %}
{% block layout_breadcrumb_list_item %}
<li class=\"breadcrumb-item\"
{% if key is same as(categoryId) %}aria-current=\"page\"{% endif %}
itemprop=\"itemListElement\"
itemscope
itemtype=\"https://schema.org/ListItem\">
{% if breadcrumbCategory.type == 'folder' %}
<div>{{ name }}</div>
{% else %}
<a href=\"{{ category_url(breadcrumbCategory) }}\"
class=\"breadcrumb-link {% if key is same as(categoryId) %} is-active{% endif %}\"
title=\"{{ name }}\"
{% if category_linknewtab(breadcrumbCategory) %}target=\"_blank\"{% endif %}
itemprop=\"item\">
<link itemprop=\"url\"
href=\"{{ category_url(breadcrumbCategory) }}\"/>
<span class=\"breadcrumb-title\" itemprop=\"name\">{{ name }}</span>
</a>
<meta itemprop=\"position\" content=\"{{ breadcrumbCategory.id }}\"/>
{% endif %}
</li>
{% endblock %}
{% block layout_breadcrumb_placeholder %}
{% if key != breadcrumbKeys|last %}
<div class=\"breadcrumb-placeholder\">
{% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
</div>
{% endif %}
{% endblock %}
{% endfor %}
</ol>
{% endblock %}
</div>
</nav>
{% endif %}
{% endblock %}
", "@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");
}
}