var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/79/79ae31ec750d2320e3dad9a23ee1d12b7c17f3b9df412c60feaab66d292782eb.php line 70

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. /* @Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig */
  16. class __TwigTemplate_146397364a1c70c3335e28955aad3fc5 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_navigation_offcanvas_navigation_category_back_link_text' => [$this'block_layout_navigation_offcanvas_navigation_category_back_link_text'],
  27.             'layout_utilities_offcanvas_close_icon' => [$this'block_layout_utilities_offcanvas_close_icon'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig"));
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig"));
  37.         // line 1
  38.         if ((sw_get_attribute($this->env$this->source, ($context["item"] ?? null), "parentId", [], "any"falsefalsefalse1) == sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse1), "navigationCategoryId", [], "any"falsefalsefalse1))) {
  39.             // line 2
  40.             echo "    ";
  41.             $context["url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.menu.offcanvas");
  42.         } else {
  43.             // line 4
  44.             echo "    ";
  45.             $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"falsefalsefalse4)]);
  46.         }
  47.         // line 6
  48.         echo "
  49. <a class=\"nav-item nav-link is-back-link navigation-offcanvas-link js-navigation-offcanvas-link\"
  50.    href=\"";
  51.         // line 8
  52.         echo sw_escape_filter($this->env, ($context["url"] ?? null), "html"nulltrue);
  53.         echo "\"
  54.    itemprop=\"url\"
  55.    title=\"";
  56.         // line 10
  57.         echo sw_escape_filter($this->envtwig_striptags($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.back")), "html"nulltrue);
  58.         echo "\">
  59.     ";
  60.         // line 11
  61.         $this->displayBlock('layout_navigation_offcanvas_navigation_category_back_link_text'$context$blocks);
  62.         // line 22
  63.         echo "</a>
  64. ";
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.     }
  70.     // line 11
  71.     public function block_layout_navigation_offcanvas_navigation_category_back_link_text($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_navigation_offcanvas_navigation_category_back_link_text"));
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_navigation_offcanvas_navigation_category_back_link_text"));
  78.         // line 12
  79.         echo "        <span class=\"navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon\">
  80.             ";
  81.         // line 13
  82.         $this->displayBlock('layout_utilities_offcanvas_close_icon'$context$blocks);
  83.         // line 16
  84.         echo "        </span>
  85.         <span itemprop=\"name\">
  86.             ";
  87.         // line 19
  88.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.back"));
  89.         echo "
  90.         </span>
  91.     ";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.     }
  97.     // line 13
  98.     public function block_layout_utilities_offcanvas_close_icon($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_utilities_offcanvas_close_icon"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_utilities_offcanvas_close_icon"));
  105.         // line 14
  106.         echo "                ";
  107.         ((function () use ($context$blocks) {
  108.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  109.             $includeTemplate $finder->find("@Storefront/storefront/utilities/icon.html.twig");
  110.             return $this->loadTemplate($includeTemplate ?? null"@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig"14);
  111.         })())->display(twig_array_merge($context, ["pack" => "solid""size" => "sm""name" => "arrow-medium-left"]));
  112.         // line 15
  113.         echo "            ";
  114.         
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  116.         
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118.     }
  119.     public function getTemplateName()
  120.     {
  121.         return "@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig";
  122.     }
  123.     public function isTraitable()
  124.     {
  125.         return false;
  126.     }
  127.     public function getDebugInfo()
  128.     {
  129.         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,);
  130.     }
  131.     public function getSourceContext()
  132.     {
  133.         return new Source("{% if item.parentId == context.salesChannel.navigationCategoryId %}
  134.     {% set url = path('frontend.menu.offcanvas') %}
  135. {% else %}
  136.     {% set url = path('frontend.menu.offcanvas', { 'navigationId': item.parentId }) %}
  137. {% endif %}
  138. <a class=\"nav-item nav-link is-back-link navigation-offcanvas-link js-navigation-offcanvas-link\"
  139.    href=\"{{ url }}\"
  140.    itemprop=\"url\"
  141.    title=\"{{ \"general.back\"|trans|striptags }}\">
  142.     {% block layout_navigation_offcanvas_navigation_category_back_link_text %}
  143.         <span class=\"navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon\">
  144.             {% block layout_utilities_offcanvas_close_icon %}
  145.                 {% sw_icon 'arrow-medium-left' style { 'pack':'solid', 'size': 'sm' } %}
  146.             {% endblock %}
  147.         </span>
  148.         <span itemprop=\"name\">
  149.             {{ \"general.back\"|trans|sw_sanitize }}
  150.         </span>
  151.     {% endblock %}
  152. </a>
  153. ""@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");
  154.     }
  155. }