var/cache/dev/twig/cc/ccc81081abd6dc2d800eb87f039ea902.php line 79

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