<?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;
/* @Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig */
class __TwigTemplate_146397364a1c70c3335e28955aad3fc5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'layout_navigation_offcanvas_navigation_category_back_link_text' => [$this, 'block_layout_navigation_offcanvas_navigation_category_back_link_text'],
'layout_utilities_offcanvas_close_icon' => [$this, 'block_layout_utilities_offcanvas_close_icon'],
];
}
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", "@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig"));
// line 1
if ((sw_get_attribute($this->env, $this->source, ($context["item"] ?? null), "parentId", [], "any", false, false, false, 1) == sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 1), "navigationCategoryId", [], "any", false, false, false, 1))) {
// line 2
echo " ";
$context["url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.menu.offcanvas");
} else {
// line 4
echo " ";
$context["url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.menu.offcanvas", ["navigationId" => sw_get_attribute($this->env, $this->source, ($context["item"] ?? null), "parentId", [], "any", false, false, false, 4)]);
}
// line 6
echo "
<a class=\"nav-item nav-link is-back-link navigation-offcanvas-link js-navigation-offcanvas-link\"
href=\"";
// line 8
echo sw_escape_filter($this->env, ($context["url"] ?? null), "html", null, true);
echo "\"
itemprop=\"url\"
title=\"";
// line 10
echo sw_escape_filter($this->env, twig_striptags($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.back")), "html", null, true);
echo "\">
";
// line 11
$this->displayBlock('layout_navigation_offcanvas_navigation_category_back_link_text', $context, $blocks);
// line 22
echo "</a>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
public function block_layout_navigation_offcanvas_navigation_category_back_link_text($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_category_back_link_text"));
$__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_category_back_link_text"));
// line 12
echo " <span class=\"navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon\">
";
// line 13
$this->displayBlock('layout_utilities_offcanvas_close_icon', $context, $blocks);
// line 16
echo " </span>
<span itemprop=\"name\">
";
// line 19
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.back"));
echo "
</span>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_layout_utilities_offcanvas_close_icon($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_utilities_offcanvas_close_icon"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_utilities_offcanvas_close_icon"));
// line 14
echo " ";
((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, "@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig", 14);
})())->display(twig_array_merge($context, ["pack" => "solid", "size" => "sm", "name" => "arrow-medium-left"]));
// line 15
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 133 => 15, 124 => 14, 114 => 13, 101 => 19, 96 => 16, 94 => 13, 91 => 12, 81 => 11, 70 => 22, 68 => 11, 64 => 10, 59 => 8, 55 => 6, 51 => 4, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if item.parentId == context.salesChannel.navigationCategoryId %}
{% set url = path('frontend.menu.offcanvas') %}
{% else %}
{% set url = path('frontend.menu.offcanvas', { 'navigationId': item.parentId }) %}
{% endif %}
<a class=\"nav-item nav-link is-back-link navigation-offcanvas-link js-navigation-offcanvas-link\"
href=\"{{ url }}\"
itemprop=\"url\"
title=\"{{ \"general.back\"|trans|striptags }}\">
{% block layout_navigation_offcanvas_navigation_category_back_link_text %}
<span class=\"navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon\">
{% block layout_utilities_offcanvas_close_icon %}
{% sw_icon 'arrow-medium-left' style { 'pack':'solid', 'size': 'sm' } %}
{% endblock %}
</span>
<span itemprop=\"name\">
{{ \"general.back\"|trans|sw_sanitize }}
</span>
{% endblock %}
</a>
", "@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig", "/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/shopware/storefront/Resources/views/storefront/layout/navigation/offcanvas/back-link.html.twig");
}
}