<?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;
/* @BaumarktTheme/storefront/layout/breadcrumb.html.twig */
class __TwigTemplate_9fba10498a106ecbae7e2b8f45485d64faf074cdaaf01e7cc25b5bb5389602f7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_breadcrumb_inner' => [$this, 'block_layout_breadcrumb_inner'],
'layout_breadcrumb_list_item' => [$this, 'block_layout_breadcrumb_list_item'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/layout/breadcrumb.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BaumarktTheme/storefront/layout/breadcrumb.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@BaumarktTheme/storefront/layout/breadcrumb.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/layout/breadcrumb.html.twig", "@BaumarktTheme/storefront/layout/breadcrumb.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_layout_breadcrumb_inner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_inner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_inner"));
// line 4
echo " ";
$this->displayParentBlock("layout_breadcrumb_inner", $context, $blocks);
echo "
";
// line 6
if ((($context["category"] ?? null) && (($context["controllerName"] ?? null) == "Product"))) {
// line 7
echo " <div class=\"mobile-breadcrumb\">
";
// line 8
$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, 8));
// line 9
echo " ";
$context["categoryId"] = sw_get_attribute($this->env, $this->source, ($context["category"] ?? null), "id", [], "any", false, false, false, 9);
// line 10
echo "
";
// line 12
echo " ";
$context["breadcrumb"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->buildSeoBreadcrumb($context, ($context["category"] ?? null));
// line 13
echo " ";
// line 14
echo " ";
$context["breadcrumbKeys"] = twig_get_array_keys_filter(($context["breadcrumb"] ?? null));
// line 15
echo " ";
// line 16
echo " ";
$context["breadcrumbTypes"] = $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\BuildBreadcrumbExtension']->buildCategoryTypes(($context["breadcrumbCategories"] ?? null));
// line 17
echo " ";
if ((twig_length_filter($this->env, ($context["breadcrumbCategories"] ?? null)) > 0)) {
// line 18
echo " <nav>
<ol class=\"breadcrumb d-block d-md-none\">
";
// line 20
$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 21
echo " ";
$context["key"] = sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "id", [], "any", false, false, false, 21);
// line 22
echo " ";
$context["name"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "translated", [], "any", false, false, false, 22), "name", [], "any", false, false, false, 22);
// line 23
echo "
";
// line 24
if ((($context["key"] ?? null) == twig_last($this->env, ($context["breadcrumbKeys"] ?? null)))) {
// line 25
echo " <div class=\"breadcrumb-placeholder\">
";
// line 26
((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, "@BaumarktTheme/storefront/layout/breadcrumb.html.twig", 26);
})())->display(twig_array_merge($context, ["size" => "fluid", "pack" => "solid", "name" => "arrow-medium-left"]));
// line 27
echo " </div>
<li class=\"breadcrumb-item\"
";
// line 29
if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
echo "aria-current=\"page\"";
}
// line 30
echo " itemprop=\"itemListElement\"
itemscope
itemtype=\"https://schema.org/ListItem\">
";
// line 33
if ((sw_get_attribute($this->env, $this->source, $context["breadcrumbCategory"], "type", [], "any", false, false, false, 33) == "folder")) {
// line 34
echo " <div class=\"folder\" itemprop=\"name\">";
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</div>
";
} else {
// line 36
echo " <a href=\"";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, $context["breadcrumbCategory"]);
echo "\"
class=\"breadcrumb-link ";
// line 37
if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
echo " is-active";
}
echo "\"
title=\"";
// line 38
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
";
// line 39
if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->isLinkNewTab($context["breadcrumbCategory"])) {
echo "target=\"_blank\"";
}
// line 40
echo " itemprop=\"item\">
<link itemprop=\"url\"
href=\"";
// line 42
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, $context["breadcrumbCategory"]);
echo "\"/>
<span class=\"breadcrumb-title\" itemprop=\"name\">";
// line 43
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</span>
</a>
";
}
// line 46
echo " <meta itemprop=\"position\" content=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 46), "html", null, true);
echo "\"/>
</li>
";
}
// line 49
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 50
echo " </ol>
</nav>
";
}
// line 53
echo " </div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 57
public function block_layout_breadcrumb_list_item($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list_item"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_breadcrumb_list_item"));
// line 58
echo " ";
if (((twig_length_filter($this->env, ($context["breadcrumbCategories"] ?? null)) > 2) && (($context["key"] ?? null) == twig_first($this->env, ($context["breadcrumbKeys"] ?? null))))) {
// line 59
echo " <li class=\"previous-categories breadcrumb-item\">... </li>
<div class=\"breadcrumb-placeholder\">
";
// line 61
((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, "@BaumarktTheme/storefront/layout/breadcrumb.html.twig", 61);
})())->display(twig_array_merge($context, ["size" => "fluid", "pack" => "solid", "name" => "arrow-medium-right"]));
// line 62
echo " </div>
";
}
// line 64
echo "
<li class=\"breadcrumb-item\"
";
// line 66
if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
echo "aria-current=\"page\"";
}
// line 67
echo " itemprop=\"itemListElement\"
itemscope
itemtype=\"https://schema.org/ListItem\">
";
// line 70
if ((sw_get_attribute($this->env, $this->source, ($context["breadcrumbCategory"] ?? null), "type", [], "any", false, false, false, 70) == "folder")) {
// line 71
echo " <div itemprop=\"item\">
<div class=\"folder\" itemprop=\"name\">";
// line 72
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</div>
</div>
";
} else {
// line 75
echo " <a href=\"";
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, ($context["breadcrumbCategory"] ?? null));
echo "\"
class=\"breadcrumb-link ";
// line 76
if ((($context["key"] ?? null) === ($context["categoryId"] ?? null))) {
echo " is-active";
}
echo "\"
title=\"";
// line 77
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
";
// line 78
if ($this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->isLinkNewTab(($context["breadcrumbCategory"] ?? null))) {
echo "target=\"_blank\"";
}
// line 79
echo " itemprop=\"item\">
<link itemprop=\"url\"
href=\"";
// line 81
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\CategoryUrlExtension']->getCategoryUrl($context, ($context["breadcrumbCategory"] ?? null));
echo "\"/>
<span class=\"breadcrumb-title\" itemprop=\"name\">";
// line 82
echo sw_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</span>
</a>
";
}
// line 85
echo " <meta itemprop=\"position\" content=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["loop"] ?? null), "index", [], "any", false, false, false, 85), "html", null, true);
echo "\"/>
</li>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@BaumarktTheme/storefront/layout/breadcrumb.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 325 => 85, 319 => 82, 315 => 81, 311 => 79, 307 => 78, 303 => 77, 297 => 76, 292 => 75, 286 => 72, 283 => 71, 281 => 70, 276 => 67, 272 => 66, 268 => 64, 264 => 62, 256 => 61, 252 => 59, 249 => 58, 239 => 57, 227 => 53, 222 => 50, 208 => 49, 201 => 46, 195 => 43, 191 => 42, 187 => 40, 183 => 39, 179 => 38, 173 => 37, 168 => 36, 162 => 34, 160 => 33, 155 => 30, 151 => 29, 147 => 27, 139 => 26, 136 => 25, 134 => 24, 131 => 23, 128 => 22, 125 => 21, 108 => 20, 104 => 18, 101 => 17, 98 => 16, 96 => 15, 93 => 14, 91 => 13, 88 => 12, 85 => 10, 82 => 9, 80 => 8, 77 => 7, 75 => 6, 69 => 4, 59 => 3, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
{% block layout_breadcrumb_inner %}
{{ parent() }}
{% if category and controllerName == 'Product' %}
<div class=\"mobile-breadcrumb\">
{% 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) %}
{% if breadcrumbCategories|length > 0 %}
<nav>
<ol class=\"breadcrumb d-block d-md-none\">
{% for breadcrumbCategory in breadcrumbCategories %}
{% set key = breadcrumbCategory.id %}
{% set name = breadcrumbCategory.translated.name %}
{% if key == breadcrumbKeys|last %}
<div class=\"breadcrumb-placeholder\">
{% sw_icon 'arrow-medium-left' style { 'size': 'fluid', 'pack': 'solid'} %}
</div>
<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 class=\"folder\" itemprop=\"name\">{{ 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>
{% endif %}
<meta itemprop=\"position\" content=\"{{ loop.index }}\"/>
</li>
{% endif %}
{% endfor %}
</ol>
</nav>
{% endif %}
</div>
{% endif %}
{% endblock %}
{% block layout_breadcrumb_list_item %}
{% if breadcrumbCategories|length > 2 and key == breadcrumbKeys|first %}
<li class=\"previous-categories breadcrumb-item\">... </li>
<div class=\"breadcrumb-placeholder\">
{% sw_icon 'arrow-medium-right' style { 'size': 'fluid', 'pack': 'solid'} %}
</div>
{% endif %}
<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 itemprop=\"item\">
<div class=\"folder\" itemprop=\"name\">{{ name }}</div>
</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>
{% endif %}
<meta itemprop=\"position\" content=\"{{ loop.index }}\"/>
</li>
{% endblock %}", "@BaumarktTheme/storefront/layout/breadcrumb.html.twig", "/srv/users/globus-int/apps/globus-int/releases/81/custom/static-plugins/BaumarktTheme/src/Resources/views/storefront/layout/breadcrumb.html.twig");
}
}