var/cache/dev/twig/82/82fb81a1129f0e51d398a79005d114ea.php line 103

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/Taxon/_horizontalMenu.html.twig */
  14. class __TwigTemplate_a1bd9efa9629965d150ebea9682bb441 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Taxon/_horizontalMenu.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Taxon/_horizontalMenu.html.twig"));
  33.         // line 21
  34.         echo "
  35. ";
  36.         // line 43
  37.         echo "
  38. ";
  39.         // line 44
  40.         $macros["macros"] = $this->macros["macros"] = $this;
  41.         // line 45
  42.         $context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bitbag_sylius_organization_plugin_shop_register_organization_vendor");
  43.         // line 46
  44.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  45.             // line 47
  46.             echo "    ";
  47.             if ((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse47), "customer", [], "any"falsetruefalse47), "organization", [], "any"falsetruefalse47), "vendor", [], "any"truetruefalse47)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse47), "customer", [], "any"falsetruefalse47), "organization", [], "any"falsetruefalse47), "vendor", [], "any"falsefalsefalse47), null)) : (null)) == null)) {
  48.                 // line 48
  49.                 echo "        ";
  50.                 $context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_register_form");
  51.                 // line 49
  52.                 echo "    ";
  53.             } else {
  54.                 // line 50
  55.                 echo "        ";
  56.                 $context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_product_listings_index");
  57.                 // line 51
  58.                 echo "    ";
  59.             }
  60.         }
  61.         // line 53
  62.         echo "
  63. <div class=\"menu-bar desktop-menu\">
  64.     ";
  65.         // line 55
  66.         if ((twig_length_filter($this->env, (isset($context["taxons"]) || array_key_exists("taxons"$context) ? $context["taxons"] : (function () { throw new RuntimeError('Variable "taxons" does not exist.'55$this->source); })())) > 0)) {
  67.             // line 56
  68.             echo "        <div class=\"ui large stackable menu horizontal-menu\">
  69.             ";
  70.             // line 57
  71.             if (!twig_in_filter($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName(), [=> "app_tech_videos"=> "app_tech_advisory"=> "app_tech_knowledge"])) {
  72.                 // line 58
  73.                 echo "                ";
  74.                 $context['_parent'] = $context;
  75.                 $context['_seq'] = twig_ensure_traversable((isset($context["taxons"]) || array_key_exists("taxons"$context) ? $context["taxons"] : (function () { throw new RuntimeError('Variable "taxons" does not exist.'58$this->source); })()));
  76.                 foreach ($context['_seq'] as $context["_key"] => $context["taxon"]) {
  77.                     if ((true == twig_get_attribute($this->env$this->source$context["taxon"], "enabled", [], "any"falsefalsefalse58))) {
  78.                         // line 59
  79.                         echo "                    ";
  80.                         echo twig_call_macro($macros["macros"], "macro_item", [$context["taxon"]], 59$context$this->getSourceContext());
  81.                         echo "
  82.                 ";
  83.                     }
  84.                 }
  85.                 $_parent $context['_parent'];
  86.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxon'], $context['_parent'], $context['loop']);
  87.                 $context array_intersect_key($context$_parent) + $_parent;
  88.                 // line 61
  89.                 echo "                ";
  90.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("open_marketplace_shop_render_country_menu", ["template" => "Context/Shop/Menu/country.html.twig"]));
  91.                 echo "
  92.                 ";
  93.                 // line 62
  94.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("open_marketplace_shop_render_use_case_menu", ["template" => "Context/Shop/Menu/useCases.html.twig"]));
  95.                 echo "
  96.                 <a href=\"";
  97.                 // line 63
  98.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("open_marketplace_shop_vendor_index");
  99.                 echo "\" class=\"item text-sm\">";
  100.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.brands"), "html"nulltrue);
  101.                 echo "</a>
  102.             ";
  103.             } elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_videos")) {
  104.                 // line 65
  105.                 echo "                ";
  106.                 $this->loadTemplate("Context/TechVideos/horizontalMenu.html.twig""@SyliusShop/Taxon/_horizontalMenu.html.twig"65)->display($context);
  107.                 // line 66
  108.                 echo "            ";
  109.             } elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_advisory")) {
  110.                 // line 67
  111.                 echo "                ";
  112.                 $this->loadTemplate("Context/TechAdvisory/horizontalMenu.html.twig""@SyliusShop/Taxon/_horizontalMenu.html.twig"67)->display($context);
  113.                 // line 68
  114.                 echo "            ";
  115.             } elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_knowledge")) {
  116.                 // line 69
  117.                 echo "                ";
  118.                 $this->loadTemplate("Context/TechKnowledge/horizontalMenu.html.twig""@SyliusShop/Taxon/_horizontalMenu.html.twig"69)->display($context);
  119.                 // line 70
  120.                 echo "            ";
  121.             }
  122.             // line 71
  123.             echo "        </div>
  124.     ";
  125.         }
  126.         // line 73
  127.         echo "    <a href=\"";
  128.         echo twig_escape_filter($this->env, (isset($context["registerProductsLink"]) || array_key_exists("registerProductsLink"$context) ? $context["registerProductsLink"] : (function () { throw new RuntimeError('Variable "registerProductsLink" does not exist.'73$this->source); })()), "html"nulltrue);
  129.         echo "\" class=\"hyfindr btn btn--primary header-button capitalize\">";
  130.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.register_products"), "html"nulltrue);
  131.         echo "</a>
  132. </div>
  133. ";
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.         
  137.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138.     }
  139.     // line 1
  140.     public function macro_item($__taxon__ null, ...$__varargs__)
  141.     {
  142.         $macros $this->macros;
  143.         $context $this->env->mergeGlobals([
  144.             "taxon" => $__taxon__,
  145.             "varargs" => $__varargs__,
  146.         ]);
  147.         $blocks = [];
  148.         ob_start();
  149.         try {
  150.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""item"));
  152.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""item"));
  154.             // line 2
  155.             echo "    ";
  156.             $macros["macros"] = $this;
  157.             // line 3
  158.             echo "    ";
  159.             $context["children"] = twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'3$this->source); })()), "getEnabledChildrenByTranslationName", [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'3$this->source); })()), "translation", [], "any"falsefalsefalse3), "locale", [], "any"falsefalsefalse3)], "method"falsefalsefalse3);
  160.             // line 4
  161.             echo "    ";
  162.             if ((twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'4$this->source); })())) > 0)) {
  163.                 // line 5
  164.                 echo "        <div class=\"ui simple dropdown item\">
  165.                         <a href=\"";
  166.                 // line 6
  167.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_elasticsearch_plugin_shop_list_products", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'6$this->source); })()), "slug", [], "any"falsefalsefalse6), "products" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products"), "product_category" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_category"), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'6$this->source); })()), "translation", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6)]), "html"nulltrue);
  168.                 echo "\" data-js=\"menu-link\" class=\"menu-dropdown-link\">
  169.                 <span class=\"text text-sm\">";
  170.                 // line 7
  171.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'7$this->source); })()), "name", [], "any"falsefalsefalse7), "html"nulltrue);
  172.                 echo "</span>
  173.                 <span class=\"material-symbols-outlined\">expand_more</span>
  174.             </a>
  175.             <div class=\"menu hyfindr-column-menu\" ";
  176.                 // line 10
  177.                 if ((twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'10$this->source); })())) < 12)) {
  178.                     echo "style=\"grid-template-rows: repeat(";
  179.                     echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'10$this->source); })()), "enabledChildren", [], "any"falsefalsefalse10)), "html"nulltrue);
  180.                     echo ", 1fr)\"";
  181.                 }
  182.                 echo ">
  183.                 ";
  184.                 // line 11
  185.                 $context['_parent'] = $context;
  186.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'11$this->source); })()));
  187.                 foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  188.                     // line 12
  189.                     echo "                    ";
  190.                     echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 12$context$this->getSourceContext());
  191.                     echo "
  192.                 ";
  193.                 }
  194.                 $_parent $context['_parent'];
  195.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  196.                 $context array_intersect_key($context$_parent) + $_parent;
  197.                 // line 14
  198.                 echo "            </div>
  199.         </div>
  200.     ";
  201.             } else {
  202.                 // line 18
  203.                 echo "        <a href=\"";
  204.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_elasticsearch_plugin_shop_list_products", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'18$this->source); })()), "slug", [], "any"falsefalsefalse18), "products" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products"), "product_category" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_category"), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'18$this->source); })()), "translation", [], "any"falsefalsefalse18), "locale", [], "any"falsefalsefalse18)]), "html"nulltrue);
  205.                 echo "\" class=\"item text text-sm\">";
  206.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'18$this->source); })()), "name", [], "any"falsefalsefalse18), "html"nulltrue);
  207.                 echo "</a>
  208.     ";
  209.             }
  210.             
  211.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  212.             
  213.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  214.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  215.         } finally {
  216.             ob_end_clean();
  217.         }
  218.     }
  219.     // line 22
  220.     public function macro_nested_item($__taxon__ null, ...$__varargs__)
  221.     {
  222.         $macros $this->macros;
  223.         $context $this->env->mergeGlobals([
  224.             "taxon" => $__taxon__,
  225.             "varargs" => $__varargs__,
  226.         ]);
  227.         $blocks = [];
  228.         ob_start();
  229.         try {
  230.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  231.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""nested_item"));
  232.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  233.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""nested_item"));
  234.             // line 23
  235.             echo "    ";
  236.             $macros["macros"] = $this;
  237.             // line 24
  238.             echo "    ";
  239.             $context["children"] = twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'24$this->source); })()), "getEnabledChildrenByTranslationName", [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'24$this->source); })()), "translation", [], "any"falsefalsefalse24), "locale", [], "any"falsefalsefalse24)], "method"falsefalsefalse24);
  240.             // line 25
  241.             echo "
  242.     ";
  243.             // line 26
  244.             if ((twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'26$this->source); })())) > 0)) {
  245.                 // line 27
  246.                 echo "            <div class=\"item nested_item\">
  247.                 <a href=\"";
  248.                 // line 28
  249.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_elasticsearch_plugin_shop_list_products", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'28$this->source); })()), "slug", [], "any"falsefalsefalse28), "products" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products"), "product_category" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_category"), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'28$this->source); })()), "translation", [], "any"falsefalsefalse28), "locale", [], "any"falsefalsefalse28)]), "html"nulltrue);
  250.                 echo "\">
  251.                     <span class=\"text\">";
  252.                 // line 29
  253.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'29$this->source); })()), "name", [], "any"falsefalsefalse29), "html"nulltrue);
  254.                 echo "</span>
  255.                     <span class=\"material-symbols-outlined\">expand_more</span>
  256.                 </a>
  257.                 <div class=\"menu right hyfindr-column-menu\" ";
  258.                 // line 33
  259.                 if ((twig_length_filter($this->env, (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'33$this->source); })())) < 12)) {
  260.                     echo "style=\"grid-template-rows: repeat(";
  261.                     echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'33$this->source); })()), "enabledChildren", [], "any"falsefalsefalse33)), "html"nulltrue);
  262.                     echo ", 1fr)\"";
  263.                 }
  264.                 echo ">
  265.                     ";
  266.                 // line 34
  267.                 $context['_parent'] = $context;
  268.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'34$this->source); })()));
  269.                 foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  270.                     // line 35
  271.                     echo "                        ";
  272.                     echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 35$context$this->getSourceContext());
  273.                     echo "
  274.                     ";
  275.                 }
  276.                 $_parent $context['_parent'];
  277.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  278.                 $context array_intersect_key($context$_parent) + $_parent;
  279.                 // line 37
  280.                 echo "                </div>
  281.             </div>
  282.     ";
  283.             } else {
  284.                 // line 40
  285.                 echo "        <a href=\"";
  286.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_elasticsearch_plugin_shop_list_products", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'40$this->source); })()), "slug", [], "any"falsefalsefalse40), "products" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products"), "product_category" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_category"), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'40$this->source); })()), "translation", [], "any"falsefalsefalse40), "locale", [], "any"falsefalsefalse40)]), "html"nulltrue);
  287.                 echo "\" class=\"item nested_item text text-sm\">";
  288.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'40$this->source); })()), "name", [], "any"falsefalsefalse40), "html"nulltrue);
  289.                 echo "</a>
  290.     ";
  291.             }
  292.             
  293.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  294.             
  295.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  296.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  297.         } finally {
  298.             ob_end_clean();
  299.         }
  300.     }
  301.     public function getTemplateName()
  302.     {
  303.         return "@SyliusShop/Taxon/_horizontalMenu.html.twig";
  304.     }
  305.     public function isTraitable()
  306.     {
  307.         return false;
  308.     }
  309.     public function getDebugInfo()
  310.     {
  311.         return array (  311 => 40,  306 => 37,  297 => 35,  293 => 34,  285 => 33,  278 => 29,  274 => 28,  271 => 27,  269 => 26,  266 => 25,  263 => 24,  260 => 23,  241 => 22,  220 => 18,  214 => 14,  205 => 12,  201 => 11,  193 => 10,  187 => 7,  183 => 6,  180 => 5,  177 => 4,  174 => 3,  171 => 2,  152 => 1,  136 => 73,  132 => 71,  129 => 70,  126 => 69,  123 => 68,  120 => 67,  117 => 66,  114 => 65,  107 => 63,  103 => 62,  98 => 61,  88 => 59,  82 => 58,  80 => 57,  77 => 56,  75 => 55,  71 => 53,  67 => 51,  64 => 50,  61 => 49,  58 => 48,  55 => 47,  53 => 46,  51 => 45,  49 => 44,  46 => 43,  43 => 21,);
  312.     }
  313.     public function getSourceContext()
  314.     {
  315.         return new Source("{% macro item(taxon) %}
  316.     {% import _self as macros %}
  317.     {% set children = taxon.getEnabledChildrenByTranslationName(taxon.translation.locale) %}
  318.     {% if children|length > 0 %}
  319.         <div class=\"ui simple dropdown item\">
  320.                         <a href=\"{{ path('bitbag_sylius_elasticsearch_plugin_shop_list_products', {'slug': taxon.slug, 'products':'products'|trans, 'product_category':'product_category'|trans, '_locale': taxon.translation.locale}) }}\" data-js=\"menu-link\" class=\"menu-dropdown-link\">
  321.                 <span class=\"text text-sm\">{{ taxon.name }}</span>
  322.                 <span class=\"material-symbols-outlined\">expand_more</span>
  323.             </a>
  324.             <div class=\"menu hyfindr-column-menu\" {% if children|length < 12 %}style=\"grid-template-rows: repeat({{ taxon.enabledChildren|length }}, 1fr)\"{% endif %}>
  325.                 {% for childTaxon in children %}
  326.                     {{ macros.nested_item(childTaxon) }}
  327.                 {% endfor %}
  328.             </div>
  329.         </div>
  330.     {% else %}
  331.         <a href=\"{{ path('bitbag_sylius_elasticsearch_plugin_shop_list_products', {'slug': taxon.slug, 'products':'products'|trans, 'product_category':'product_category'|trans, '_locale': taxon.translation.locale}) }}\" class=\"item text text-sm\">{{ taxon.name }}</a>
  332.     {% endif %}
  333. {% endmacro %}
  334. {% macro nested_item(taxon) %}
  335.     {% import _self as macros %}
  336.     {% set children = taxon.getEnabledChildrenByTranslationName(taxon.translation.locale) %}
  337.     {% if children|length > 0 %}
  338.             <div class=\"item nested_item\">
  339.                 <a href=\"{{ path('bitbag_sylius_elasticsearch_plugin_shop_list_products', {'slug': taxon.slug, 'products':'products'|trans, 'product_category':'product_category'|trans, '_locale': taxon.translation.locale}) }}\">
  340.                     <span class=\"text\">{{ taxon.name }}</span>
  341.                     <span class=\"material-symbols-outlined\">expand_more</span>
  342.                 </a>
  343.                 <div class=\"menu right hyfindr-column-menu\" {% if children|length < 12 %}style=\"grid-template-rows: repeat({{ taxon.enabledChildren|length }}, 1fr)\"{% endif %}>
  344.                     {% for childTaxon in children %}
  345.                         {{ macros.nested_item(childTaxon) }}
  346.                     {% endfor %}
  347.                 </div>
  348.             </div>
  349.     {% else %}
  350.         <a href=\"{{ path('bitbag_sylius_elasticsearch_plugin_shop_list_products', {'slug': taxon.slug, 'products':'products'|trans, 'product_category':'product_category'|trans, '_locale': taxon.translation.locale}) }}\" class=\"item nested_item text text-sm\">{{ taxon.name }}</a>
  351.     {% endif %}
  352. {% endmacro %}
  353. {% import _self as macros %}
  354. {% set registerProductsLink = url('bitbag_sylius_organization_plugin_shop_register_organization_vendor') %}
  355. {% if is_granted('ROLE_USER') %}
  356.     {% if app.user.customer.organization.vendor|default(null) == null %}
  357.         {% set registerProductsLink = url('open_marketplace_vendor_register_form') %}
  358.     {% else %}
  359.         {% set registerProductsLink = url('open_marketplace_vendor_product_listings_index') %}
  360.     {% endif %}
  361. {% endif %}
  362. <div class=\"menu-bar desktop-menu\">
  363.     {% if taxons|length > 0 %}
  364.         <div class=\"ui large stackable menu horizontal-menu\">
  365.             {% if get_current_route_name() not in ['app_tech_videos', 'app_tech_advisory', 'app_tech_knowledge'] %}
  366.                 {% for taxon in taxons if true == taxon.enabled %}
  367.                     {{ macros.item(taxon) }}
  368.                 {% endfor %}
  369.                 {{ render(path('open_marketplace_shop_render_country_menu', {'template': 'Context/Shop/Menu/country.html.twig'})) }}
  370.                 {{ render(path('open_marketplace_shop_render_use_case_menu', {'template': 'Context/Shop/Menu/useCases.html.twig'})) }}
  371.                 <a href=\"{{ path('open_marketplace_shop_vendor_index') }}\" class=\"item text-sm\">{{ 'app.ui.brands'|trans }}</a>
  372.             {% elseif get_current_route_name() == 'app_tech_videos' %}
  373.                 {% include 'Context/TechVideos/horizontalMenu.html.twig' %}
  374.             {% elseif get_current_route_name() == 'app_tech_advisory' %}
  375.                 {% include 'Context/TechAdvisory/horizontalMenu.html.twig' %}
  376.             {% elseif get_current_route_name() == 'app_tech_knowledge' %}
  377.                 {% include 'Context/TechKnowledge/horizontalMenu.html.twig' %}
  378.             {% endif %}
  379.         </div>
  380.     {% endif %}
  381.     <a href=\"{{ registerProductsLink }}\" class=\"hyfindr btn btn--primary header-button capitalize\">{{  'app.ui.register_products'|trans }}</a>
  382. </div>
  383. ""@SyliusShop/Taxon/_horizontalMenu.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Taxon/_horizontalMenu.html.twig");
  384.     }
  385. }