var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/a8/a852d07e3f89fb845f097ede5b0eba6b18001f8d187202e54f86c865cbd59403.php line 40

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. /* @EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig */
  16. class __TwigTemplate_46254e9cad35181434497aca60048f72 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->blocks = [
  25.             'layout_navigation_offcanvas_navigation_categories' => [$this'block_layout_navigation_offcanvas_navigation_categories'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@Storefront/storefront/layout/navigation/offcanvas/categories.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig"));
  40.         $this->parent $this->loadTemplate("@Storefront/storefront/layout/navigation/offcanvas/categories.html.twig""@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_layout_navigation_offcanvas_navigation_categories($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_navigation_offcanvas_navigation_categories"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_navigation_offcanvas_navigation_categories"));
  55.         // line 4
  56.         echo "    ";
  57.         $context["teaser_field"] = "custom_navigation_fields_is_teaser";
  58.         // line 5
  59.         echo "    ";
  60.         $context["link_text_overwrite"] = "custom_navigation_fields_link_text";
  61.         // line 6
  62.         echo "    ";
  63.         if (($context["isRoot"] ?? null)) {
  64.             $context["rootClass"] = " is-root-category";
  65.         }
  66.         // line 7
  67.         echo "
  68.     <div class=\"navigation-offcanvas-container js-navigation-offcanvas\">
  69.         <div class=\"navigation-offcanvas-overlay-content js-navigation-offcanvas-overlay-content\">
  70.             <div class=\"navigation-offcanvas-content-container";
  71.         // line 10
  72.         echo sw_escape_filter($this->env, ($context["rootClass"] ?? null), "html"nulltrue);
  73.         echo "\">
  74.                 ";
  75.         // line 11
  76.         if ( !($context["isRoot"] ?? null)) {
  77.             // line 12
  78.             echo "                    ";
  79.             $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)]));
  80.             // line 13
  81.             echo "
  82.                     ";
  83.             // line 14
  84.             $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)]));
  85.             // line 15
  86.             echo "                ";
  87.         }
  88.         // line 16
  89.         echo "
  90.                 <ul class=\"list-unstyled navigation-offcanvas-list";
  91.         // line 17
  92.         echo sw_escape_filter($this->env, ($context["rootClass"] ?? null), "html"nulltrue);
  93.         echo "\">
  94.                     ";
  95.         // line 18
  96.         if (( !($context["isRoot"] ?? null) && (sw_get_attribute($this->env$this->source, ($context["active"] ?? null), "type", [], "any"falsefalsefalse18) != "folder"))) {
  97.             // line 19
  98.             echo "                        ";
  99.             $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)]));
  100.             // line 20
  101.             echo "                    ";
  102.         }
  103.         // line 21
  104.         echo "
  105.                     ";
  106.         // line 22
  107.         $context['_parent'] = $context;
  108.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["children"] ?? null), "tree", [], "any"falsefalsefalse22));
  109.         $context['loop'] = [
  110.           'parent' => $context['_parent'],
  111.           'index0' => 0,
  112.           'index'  => 1,
  113.           'first'  => true,
  114.         ];
  115.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  116.             $length count($context['_seq']);
  117.             $context['loop']['revindex0'] = $length 1;
  118.             $context['loop']['revindex'] = $length;
  119.             $context['loop']['length'] = $length;
  120.             $context['loop']['last'] = === $length;
  121.         }
  122.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  123.             // line 23
  124.             echo "                        ";
  125.             $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)]));
  126.             // line 24
  127.             echo "                    ";
  128.             ++$context['loop']['index0'];
  129.             ++$context['loop']['index'];
  130.             $context['loop']['first'] = false;
  131.             if (isset($context['loop']['length'])) {
  132.                 --$context['loop']['revindex0'];
  133.                 --$context['loop']['revindex'];
  134.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  135.             }
  136.         }
  137.         $_parent $context['_parent'];
  138.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  139.         $context array_intersect_key($context$_parent) + $_parent;
  140.         // line 25
  141.         echo "                </ul>
  142.             </div>
  143.         </div>
  144.     </div>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     public function getTemplateName()
  152.     {
  153.         return "@EfbStorefront/storefront/layout/navigation/offcanvas/categories.html.twig";
  154.     }
  155.     public function isTraitable()
  156.     {
  157.         return false;
  158.     }
  159.     public function getDebugInfo()
  160.     {
  161.         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,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("{% sw_extends '@Storefront/storefront/layout/navigation/offcanvas/categories.html.twig' %}
  166. {% block layout_navigation_offcanvas_navigation_categories %}
  167.     {% set teaser_field = 'custom_navigation_fields_is_teaser' %}
  168.     {% set link_text_overwrite = 'custom_navigation_fields_link_text' %}
  169.     {% if isRoot %}{% set rootClass = ' is-root-category' %}{% endif %}
  170.     <div class=\"navigation-offcanvas-container js-navigation-offcanvas\">
  171.         <div class=\"navigation-offcanvas-overlay-content js-navigation-offcanvas-overlay-content\">
  172.             <div class=\"navigation-offcanvas-content-container{{ rootClass }}\">
  173.                 {% if not isRoot %}
  174.                     {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/active-item-link.html.twig' with { item: active } %}
  175.                     {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/back-link.html.twig' with { item: active } %}
  176.                 {% endif %}
  177.                 <ul class=\"list-unstyled navigation-offcanvas-list{{ rootClass }}\">
  178.                     {% if not isRoot and active.type != \"folder\" %}
  179.                         {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/show-active-link.html.twig' with { item: active } %}
  180.                     {% endif %}
  181.                     {% for item in children.tree %}
  182.                         {% sw_include '@Storefront/storefront/layout/navigation/offcanvas/item-link.html.twig' with { item: item, activeId: activeId } %}
  183.                     {% endfor %}
  184.                 </ul>
  185.             </div>
  186.         </div>
  187.     </div>
  188. {% endblock %}
  189. ""@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");
  190.     }
  191. }