<?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;
/* @EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig */
class __TwigTemplate_46254e9cad35181434497aca60048f72 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_navigation_offcanvas_navigation_categories' => [$this, 'block_layout_navigation_offcanvas_navigation_categories'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/layout/navigation/offcanvas/categories.html.twig";
}
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", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/layout/navigation/offcanvas/categories.html.twig", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_layout_navigation_offcanvas_navigation_categories($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_navigation_offcanvas_navigation_categories"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_navigation_offcanvas_navigation_categories"));
// line 4
echo " ";
$context["teaser_field"] = "custom_navigation_fields_is_teaser";
// line 5
echo " ";
$context["link_text_overwrite"] = "custom_navigation_fields_link_text";
// line 6
echo " ";
if (($context["isRoot"] ?? null)) {
$context["rootClass"] = " is-root-category";
}
// line 7
echo "
<div class=\"navigation-offcanvas-container js-navigation-offcanvas\">
<div class=\"navigation-offcanvas-overlay-content js-navigation-offcanvas-overlay-content\">
<div class=\"navigation-offcanvas-content-container";
// line 10
echo sw_escape_filter($this->env, ($context["rootClass"] ?? null), "html", null, true);
echo "\">
";
// line 11
if ( !($context["isRoot"] ?? null)) {
// line 12
echo " ";
$this->loadTemplate("@EfbStorefront/storefront/layout/navigation/offcanvas/active-item-link.html.twig", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig", 12)->display(twig_array_merge($context, ["item" => ($context["active"] ?? null)]));
// line 13
echo "
";
// line 14
$this->loadTemplate("@EfbStorefront/storefront/layout/navigation/offcanvas/back-link.html.twig", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig", 14)->display(twig_array_merge($context, ["item" => ($context["active"] ?? null)]));
// line 15
echo " ";
}
// line 16
echo "
<ul class=\"list-unstyled navigation-offcanvas-list";
// line 17
echo sw_escape_filter($this->env, ($context["rootClass"] ?? null), "html", null, true);
echo "\">
";
// line 18
if (( !($context["isRoot"] ?? null) && (sw_get_attribute($this->env, $this->source, ($context["active"] ?? null), "type", [], "any", false, false, false, 18) != "folder"))) {
// line 19
echo " ";
$this->loadTemplate("@EfbStorefront/storefront/layout/navigation/offcanvas/show-active-link.html.twig", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig", 19)->display(twig_array_merge($context, ["item" => ($context["active"] ?? null)]));
// line 20
echo " ";
}
// line 21
echo "
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, ($context["children"] ?? null), "tree", [], "any", false, false, false, 22));
$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["item"]) {
// line 23
echo " ";
$this->loadTemplate("@EfbStorefront/storefront/layout/navigation/offcanvas/item-link.html.twig", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig", 23)->display(twig_array_merge($context, ["item" => $context["item"], "activeId" => ($context["activeId"] ?? null)]));
// line 24
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['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " </ul>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 153 => 25, 139 => 24, 136 => 23, 119 => 22, 116 => 21, 113 => 20, 110 => 19, 108 => 18, 104 => 17, 101 => 16, 98 => 15, 96 => 14, 93 => 13, 90 => 12, 88 => 11, 84 => 10, 79 => 7, 74 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/navigation/offcanvas/categories.html.twig' %}
{% block layout_navigation_offcanvas_navigation_categories %}
{% set teaser_field = 'custom_navigation_fields_is_teaser' %}
{% set link_text_overwrite = 'custom_navigation_fields_link_text' %}
{% if isRoot %}{% set rootClass = ' is-root-category' %}{% endif %}
<div class=\"navigation-offcanvas-container js-navigation-offcanvas\">
<div class=\"navigation-offcanvas-overlay-content js-navigation-offcanvas-overlay-content\">
<div class=\"navigation-offcanvas-content-container{{ rootClass }}\">
{% if not isRoot %}
{% sw_include '@Storefront/storefront/layout/navigation/offcanvas/active-item-link.html.twig' with { item: active } %}
{% sw_include '@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig' with { item: active } %}
{% endif %}
<ul class=\"list-unstyled navigation-offcanvas-list{{ rootClass }}\">
{% if not isRoot and active.type != \"folder\" %}
{% sw_include '@Storefront/storefront/layout/navigation/offcanvas/show-active-link.html.twig' with { item: active } %}
{% endif %}
{% for item in children.tree %}
{% sw_include '@Storefront/storefront/layout/navigation/offcanvas/item-link.html.twig' with { item: item, activeId: activeId } %}
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}
", "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig", "/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/custom/static-plugins/EfbStorefront/Resources/views/storefront/layout/navigation/offcanvas/categories.html.twig");
}
}