var/cache/dev/twig/63/63f619efc855ec6349e76dd7707e3682.php line 99

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_e7e79a95f35747fa2c08a573a305443f 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 26
  34.         echo "
  35. ";
  36.         // line 48
  37.         echo "
  38. ";
  39.         // line 49
  40.         $macros["macros"] = $this->macros["macros"] = $this;
  41.         // line 50
  42.         $context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bitbag_sylius_organization_plugin_shop_register_organization_vendor");
  43.         // line 51
  44.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  45.             // line 52
  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"falsetruefalse52), "customer", [], "any"falsetruefalse52), "organization", [], "any"falsetruefalse52), "vendor", [], "any"truetruefalse52)) ? (_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"falsetruefalse52), "customer", [], "any"falsetruefalse52), "organization", [], "any"falsetruefalse52), "vendor", [], "any"falsefalsefalse52), null)) : (null)) == null)) {
  48.                 // line 53
  49.                 echo "        ";
  50.                 $context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_register_form");
  51.                 // line 54
  52.                 echo "    ";
  53.             } else {
  54.                 // line 55
  55.                 echo "        ";
  56.                 $context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_product_listings_index");
  57.                 // line 56
  58.                 echo "    ";
  59.             }
  60.         }
  61.         // line 58
  62.         echo "
  63. <div class=\"menu-bar desktop-menu\">
  64.     ";
  65.         // line 60
  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.'60$this->source); })())) > 0)) {
  67.             // line 61
  68.             echo "        <div class=\"ui large stackable menu horizontal-menu\">
  69.             ";
  70.             // line 62
  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 63
  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.'63$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"falsefalsefalse63))) {
  78.                         // line 64
  79.                         echo "                    ";
  80.                         echo twig_call_macro($macros["macros"], "macro_item", [$context["taxon"]], 64$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 66
  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 67
  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 68
  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 70
  105.                 echo "                ";
  106.                 $this->loadTemplate("Context/TechVideos/horizontalMenu.html.twig""@SyliusShop/Taxon/_horizontalMenu.html.twig"70)->display($context);
  107.                 // line 71
  108.                 echo "            ";
  109.             } elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_advisory")) {
  110.                 // line 72
  111.                 echo "                ";
  112.                 $this->loadTemplate("Context/TechAdvisory/horizontalMenu.html.twig""@SyliusShop/Taxon/_horizontalMenu.html.twig"72)->display($context);
  113.                 // line 73
  114.                 echo "            ";
  115.             } elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_knowledge")) {
  116.                 // line 74
  117.                 echo "                ";
  118.                 $this->loadTemplate("Context/TechKnowledge/horizontalMenu.html.twig""@SyliusShop/Taxon/_horizontalMenu.html.twig"74)->display($context);
  119.                 // line 75
  120.                 echo "            ";
  121.             }
  122.             // line 76
  123.             echo "        </div>
  124.     ";
  125.         }
  126.         // line 78
  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.'78$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.                 ";
  177.                 // line 11
  178.                 if ((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.'11$this->source); })()), "slug", [], "any"falsefalsefalse11) == "components")) {
  179.                     // line 12
  180.                     echo "                    style=\"grid-template-rows: repeat(15, 1fr);\"
  181.                 ";
  182.                 } elseif ((twig_length_filter($this->env,                 // line 13
  183. (isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'13$this->source); })())) < 12)) {
  184.                     // line 14
  185.                     echo "                    style=\"grid-template-rows: repeat(";
  186.                     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.'14$this->source); })()), "enabledChildren", [], "any"falsefalsefalse14)), "html"nulltrue);
  187.                     echo ", 1fr)\"
  188.                 ";
  189.                 }
  190.                 // line 15
  191.                 echo ">
  192.                 
  193.                 ";
  194.                 // line 17
  195.                 $context['_parent'] = $context;
  196.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'17$this->source); })()));
  197.                 foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  198.                     // line 18
  199.                     echo "                    ";
  200.                     echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 18$context$this->getSourceContext());
  201.                     echo "
  202.                 ";
  203.                 }
  204.                 $_parent $context['_parent'];
  205.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  206.                 $context array_intersect_key($context$_parent) + $_parent;
  207.                 // line 20
  208.                 echo "            </div>
  209.         </div>
  210.     ";
  211.             } else {
  212.                 // line 23
  213.                 echo "        <a href=\"";
  214.                 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.'23$this->source); })()), "slug", [], "any"falsefalsefalse23), "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.'23$this->source); })()), "translation", [], "any"falsefalsefalse23), "locale", [], "any"falsefalsefalse23)]), "html"nulltrue);
  215.                 echo "\" class=\"item text text-sm\">";
  216.                 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.'23$this->source); })()), "name", [], "any"falsefalsefalse23), "html"nulltrue);
  217.                 echo "</a>
  218.     ";
  219.             }
  220.             
  221.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  222.             
  223.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  224.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  225.         } finally {
  226.             ob_end_clean();
  227.         }
  228.     }
  229.     // line 27
  230.     public function macro_nested_item($__taxon__ null, ...$__varargs__)
  231.     {
  232.         $macros $this->macros;
  233.         $context $this->env->mergeGlobals([
  234.             "taxon" => $__taxon__,
  235.             "varargs" => $__varargs__,
  236.         ]);
  237.         $blocks = [];
  238.         ob_start();
  239.         try {
  240.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  241.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""nested_item"));
  242.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  243.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""nested_item"));
  244.             // line 28
  245.             echo "    ";
  246.             $macros["macros"] = $this;
  247.             // line 29
  248.             echo "    ";
  249.             $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.'29$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.'29$this->source); })()), "translation", [], "any"falsefalsefalse29), "locale", [], "any"falsefalsefalse29)], "method"falsefalsefalse29);
  250.             // line 30
  251.             echo "
  252.     ";
  253.             // line 31
  254.             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.'31$this->source); })())) > 0)) {
  255.                 // line 32
  256.                 echo "            <div class=\"item nested_item\">
  257.                 <a href=\"";
  258.                 // line 33
  259.                 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.'33$this->source); })()), "slug", [], "any"falsefalsefalse33), "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.'33$this->source); })()), "translation", [], "any"falsefalsefalse33), "locale", [], "any"falsefalsefalse33)]), "html"nulltrue);
  260.                 echo "\">
  261.                     <span class=\"text\">";
  262.                 // line 34
  263.                 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.'34$this->source); })()), "name", [], "any"falsefalsefalse34), "html"nulltrue);
  264.                 echo "</span>
  265.                     <span class=\"material-symbols-outlined\">expand_more</span>
  266.                 </a>
  267.                 <div class=\"menu right hyfindr-column-menu\" ";
  268.                 // line 38
  269.                 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.'38$this->source); })())) < 12)) {
  270.                     echo "style=\"grid-template-rows: repeat(";
  271.                     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.'38$this->source); })()), "enabledChildren", [], "any"falsefalsefalse38)), "html"nulltrue);
  272.                     echo ", 1fr)\"";
  273.                 }
  274.                 echo ">
  275.                     ";
  276.                 // line 39
  277.                 $context['_parent'] = $context;
  278.                 $context['_seq'] = twig_ensure_traversable((isset($context["children"]) || array_key_exists("children"$context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.'39$this->source); })()));
  279.                 foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  280.                     // line 40
  281.                     echo "                        ";
  282.                     echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 40$context$this->getSourceContext());
  283.                     echo "
  284.                     ";
  285.                 }
  286.                 $_parent $context['_parent'];
  287.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  288.                 $context array_intersect_key($context$_parent) + $_parent;
  289.                 // line 42
  290.                 echo "                </div>
  291.             </div>
  292.     ";
  293.             } else {
  294.                 // line 45
  295.                 echo "        <a href=\"";
  296.                 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.'45$this->source); })()), "slug", [], "any"falsefalsefalse45), "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.'45$this->source); })()), "translation", [], "any"falsefalsefalse45), "locale", [], "any"falsefalsefalse45)]), "html"nulltrue);
  297.                 echo "\" class=\"item nested_item text text-sm\">";
  298.                 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.'45$this->source); })()), "name", [], "any"falsefalsefalse45), "html"nulltrue);
  299.                 echo "</a>
  300.     ";
  301.             }
  302.             
  303.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  304.             
  305.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  306.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  307.         } finally {
  308.             ob_end_clean();
  309.         }
  310.     }
  311.     public function getTemplateName()
  312.     {
  313.         return "@SyliusShop/Taxon/_horizontalMenu.html.twig";
  314.     }
  315.     public function isTraitable()
  316.     {
  317.         return false;
  318.     }
  319.     public function getDebugInfo()
  320.     {
  321.         return array (  320 => 45,  315 => 42,  306 => 40,  302 => 39,  294 => 38,  287 => 34,  283 => 33,  280 => 32,  278 => 31,  275 => 30,  272 => 29,  269 => 28,  250 => 27,  229 => 23,  224 => 20,  215 => 18,  211 => 17,  207 => 15,  201 => 14,  199 => 13,  196 => 12,  194 => 11,  187 => 7,  183 => 6,  180 => 5,  177 => 4,  174 => 3,  171 => 2,  152 => 1,  136 => 78,  132 => 76,  129 => 75,  126 => 74,  123 => 73,  120 => 72,  117 => 71,  114 => 70,  107 => 68,  103 => 67,  98 => 66,  88 => 64,  82 => 63,  80 => 62,  77 => 61,  75 => 60,  71 => 58,  67 => 56,  64 => 55,  61 => 54,  58 => 53,  55 => 52,  53 => 51,  51 => 50,  49 => 49,  46 => 48,  43 => 26,);
  322.     }
  323.     public function getSourceContext()
  324.     {
  325.         return new Source("{% macro item(taxon) %}
  326.     {% import _self as macros %}
  327.     {% set children = taxon.getEnabledChildrenByTranslationName(taxon.translation.locale) %}
  328.     {% if children|length > 0 %}
  329.         <div class=\"ui simple dropdown item\">
  330.             <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\">
  331.                 <span class=\"text text-sm\">{{ taxon.name }}</span>
  332.                 <span class=\"material-symbols-outlined\">expand_more</span>
  333.             </a>
  334.             <div class=\"menu hyfindr-column-menu\" 
  335.                 {% if taxon.slug == 'components' %}
  336.                     style=\"grid-template-rows: repeat(15, 1fr);\"
  337.                 {% elseif children|length < 12 %}
  338.                     style=\"grid-template-rows: repeat({{ taxon.enabledChildren|length }}, 1fr)\"
  339.                 {% endif %}>
  340.                 
  341.                 {% for childTaxon in children %}
  342.                     {{ macros.nested_item(childTaxon) }}
  343.                 {% endfor %}
  344.             </div>
  345.         </div>
  346.     {% else %}
  347.         <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>
  348.     {% endif %}
  349. {% endmacro %}
  350. {% macro nested_item(taxon) %}
  351.     {% import _self as macros %}
  352.     {% set children = taxon.getEnabledChildrenByTranslationName(taxon.translation.locale) %}
  353.     {% if children|length > 0 %}
  354.             <div class=\"item nested_item\">
  355.                 <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}) }}\">
  356.                     <span class=\"text\">{{ taxon.name }}</span>
  357.                     <span class=\"material-symbols-outlined\">expand_more</span>
  358.                 </a>
  359.                 <div class=\"menu right hyfindr-column-menu\" {% if children|length < 12 %}style=\"grid-template-rows: repeat({{ taxon.enabledChildren|length }}, 1fr)\"{% endif %}>
  360.                     {% for childTaxon in children %}
  361.                         {{ macros.nested_item(childTaxon) }}
  362.                     {% endfor %}
  363.                 </div>
  364.             </div>
  365.     {% else %}
  366.         <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>
  367.     {% endif %}
  368. {% endmacro %}
  369. {% import _self as macros %}
  370. {% set registerProductsLink = url('bitbag_sylius_organization_plugin_shop_register_organization_vendor') %}
  371. {% if is_granted('ROLE_USER') %}
  372.     {% if app.user.customer.organization.vendor|default(null) == null %}
  373.         {% set registerProductsLink = url('open_marketplace_vendor_register_form') %}
  374.     {% else %}
  375.         {% set registerProductsLink = url('open_marketplace_vendor_product_listings_index') %}
  376.     {% endif %}
  377. {% endif %}
  378. <div class=\"menu-bar desktop-menu\">
  379.     {% if taxons|length > 0 %}
  380.         <div class=\"ui large stackable menu horizontal-menu\">
  381.             {% if get_current_route_name() not in ['app_tech_videos', 'app_tech_advisory', 'app_tech_knowledge'] %}
  382.                 {% for taxon in taxons if true == taxon.enabled %}
  383.                     {{ macros.item(taxon) }}
  384.                 {% endfor %}
  385.                 {{ render(path('open_marketplace_shop_render_country_menu', {'template': 'Context/Shop/Menu/country.html.twig'})) }}
  386.                 {{ render(path('open_marketplace_shop_render_use_case_menu', {'template': 'Context/Shop/Menu/useCases.html.twig'})) }}
  387.                 <a href=\"{{ path('open_marketplace_shop_vendor_index') }}\" class=\"item text-sm\">{{ 'app.ui.brands'|trans }}</a>
  388.             {% elseif get_current_route_name() == 'app_tech_videos' %}
  389.                 {% include 'Context/TechVideos/horizontalMenu.html.twig' %}
  390.             {% elseif get_current_route_name() == 'app_tech_advisory' %}
  391.                 {% include 'Context/TechAdvisory/horizontalMenu.html.twig' %}
  392.             {% elseif get_current_route_name() == 'app_tech_knowledge' %}
  393.                 {% include 'Context/TechKnowledge/horizontalMenu.html.twig' %}
  394.             {% endif %}
  395.         </div>
  396.     {% endif %}
  397.     <a href=\"{{ registerProductsLink }}\" class=\"hyfindr btn btn--primary header-button capitalize\">{{  'app.ui.register_products'|trans }}</a>
  398. </div>
  399. ""@SyliusShop/Taxon/_horizontalMenu.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Taxon/_horizontalMenu.html.twig");
  400.     }
  401. }