<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SyliusShop/Taxon/_horizontalMenu.html.twig */
class __TwigTemplate_a1bd9efa9629965d150ebea9682bb441 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Taxon/_horizontalMenu.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Taxon/_horizontalMenu.html.twig"));
// line 21
echo "
";
// line 43
echo "
";
// line 44
$macros["macros"] = $this->macros["macros"] = $this;
// line 45
$context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bitbag_sylius_organization_plugin_shop_register_organization_vendor");
// line 46
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 47
echo " ";
if ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 47), "customer", [], "any", false, true, false, 47), "organization", [], "any", false, true, false, 47), "vendor", [], "any", true, true, false, 47)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 47), "customer", [], "any", false, true, false, 47), "organization", [], "any", false, true, false, 47), "vendor", [], "any", false, false, false, 47), null)) : (null)) == null)) {
// line 48
echo " ";
$context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_register_form");
// line 49
echo " ";
} else {
// line 50
echo " ";
$context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_product_listings_index");
// line 51
echo " ";
}
}
// line 53
echo "
<div class=\"menu-bar desktop-menu\">
";
// line 55
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)) {
// line 56
echo " <div class=\"ui large stackable menu horizontal-menu\">
";
// line 57
if (!twig_in_filter($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName(), [0 => "app_tech_videos", 1 => "app_tech_advisory", 2 => "app_tech_knowledge"])) {
// line 58
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["taxon"]) {
if ((true == twig_get_attribute($this->env, $this->source, $context["taxon"], "enabled", [], "any", false, false, false, 58))) {
// line 59
echo " ";
echo twig_call_macro($macros["macros"], "macro_item", [$context["taxon"]], 59, $context, $this->getSourceContext());
echo "
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxon'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " ";
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"]));
echo "
";
// line 62
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"]));
echo "
<a href=\"";
// line 63
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("open_marketplace_shop_vendor_index");
echo "\" class=\"item text-sm\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.brands"), "html", null, true);
echo "</a>
";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_videos")) {
// line 65
echo " ";
$this->loadTemplate("Context/TechVideos/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 65)->display($context);
// line 66
echo " ";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_advisory")) {
// line 67
echo " ";
$this->loadTemplate("Context/TechAdvisory/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 67)->display($context);
// line 68
echo " ";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_knowledge")) {
// line 69
echo " ";
$this->loadTemplate("Context/TechKnowledge/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 69)->display($context);
// line 70
echo " ";
}
// line 71
echo " </div>
";
}
// line 73
echo " <a href=\"";
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", null, true);
echo "\" class=\"hyfindr btn btn--primary header-button capitalize\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.register_products"), "html", null, true);
echo "</a>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 1
public function macro_item($__taxon__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"taxon" => $__taxon__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "item"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "item"));
// line 2
echo " ";
$macros["macros"] = $this;
// line 3
echo " ";
$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", [0 => twig_get_attribute($this->env, $this->source, 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); })()), "translation", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3)], "method", false, false, false, 3);
// line 4
echo " ";
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)) {
// line 5
echo " <div class=\"ui simple dropdown item\">
<a href=\"";
// line 6
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", false, false, false, 6), "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->source, 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); })()), "translation", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6)]), "html", null, true);
echo "\" data-js=\"menu-link\" class=\"menu-dropdown-link\">
<span class=\"text text-sm\">";
// line 7
echo twig_escape_filter($this->env, 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.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
echo "</span>
<span class=\"material-symbols-outlined\">expand_more</span>
</a>
<div class=\"menu hyfindr-column-menu\" ";
// line 10
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)) {
echo "style=\"grid-template-rows: repeat(";
echo twig_escape_filter($this->env, twig_length_filter($this->env, 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.', 10, $this->source); })()), "enabledChildren", [], "any", false, false, false, 10)), "html", null, true);
echo ", 1fr)\"";
}
echo ">
";
// line 11
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
// line 12
echo " ";
echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 12, $context, $this->getSourceContext());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
echo " </div>
</div>
";
} else {
// line 18
echo " <a href=\"";
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", false, false, false, 18), "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->source, 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); })()), "translation", [], "any", false, false, false, 18), "locale", [], "any", false, false, false, 18)]), "html", null, true);
echo "\" class=\"item text text-sm\">";
echo twig_escape_filter($this->env, 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); })()), "name", [], "any", false, false, false, 18), "html", null, true);
echo "</a>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
// line 22
public function macro_nested_item($__taxon__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"taxon" => $__taxon__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "nested_item"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "nested_item"));
// line 23
echo " ";
$macros["macros"] = $this;
// line 24
echo " ";
$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", [0 => twig_get_attribute($this->env, $this->source, 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); })()), "translation", [], "any", false, false, false, 24), "locale", [], "any", false, false, false, 24)], "method", false, false, false, 24);
// line 25
echo "
";
// line 26
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)) {
// line 27
echo " <div class=\"item nested_item\">
<a href=\"";
// line 28
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", false, false, false, 28), "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->source, 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); })()), "translation", [], "any", false, false, false, 28), "locale", [], "any", false, false, false, 28)]), "html", null, true);
echo "\">
<span class=\"text\">";
// line 29
echo twig_escape_filter($this->env, 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); })()), "name", [], "any", false, false, false, 29), "html", null, true);
echo "</span>
<span class=\"material-symbols-outlined\">expand_more</span>
</a>
<div class=\"menu right hyfindr-column-menu\" ";
// line 33
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)) {
echo "style=\"grid-template-rows: repeat(";
echo twig_escape_filter($this->env, twig_length_filter($this->env, 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); })()), "enabledChildren", [], "any", false, false, false, 33)), "html", null, true);
echo ", 1fr)\"";
}
echo ">
";
// line 34
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
// line 35
echo " ";
echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 35, $context, $this->getSourceContext());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo " </div>
</div>
";
} else {
// line 40
echo " <a href=\"";
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", false, false, false, 40), "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->source, 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); })()), "translation", [], "any", false, false, false, 40), "locale", [], "any", false, false, false, 40)]), "html", null, true);
echo "\" class=\"item nested_item text text-sm\">";
echo twig_escape_filter($this->env, 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); })()), "name", [], "any", false, false, false, 40), "html", null, true);
echo "</a>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "@SyliusShop/Taxon/_horizontalMenu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% macro item(taxon) %}
{% import _self as macros %}
{% set children = taxon.getEnabledChildrenByTranslationName(taxon.translation.locale) %}
{% if children|length > 0 %}
<div class=\"ui simple dropdown item\">
<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\">
<span class=\"text text-sm\">{{ taxon.name }}</span>
<span class=\"material-symbols-outlined\">expand_more</span>
</a>
<div class=\"menu hyfindr-column-menu\" {% if children|length < 12 %}style=\"grid-template-rows: repeat({{ taxon.enabledChildren|length }}, 1fr)\"{% endif %}>
{% for childTaxon in children %}
{{ macros.nested_item(childTaxon) }}
{% endfor %}
</div>
</div>
{% else %}
<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>
{% endif %}
{% endmacro %}
{% macro nested_item(taxon) %}
{% import _self as macros %}
{% set children = taxon.getEnabledChildrenByTranslationName(taxon.translation.locale) %}
{% if children|length > 0 %}
<div class=\"item nested_item\">
<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}) }}\">
<span class=\"text\">{{ taxon.name }}</span>
<span class=\"material-symbols-outlined\">expand_more</span>
</a>
<div class=\"menu right hyfindr-column-menu\" {% if children|length < 12 %}style=\"grid-template-rows: repeat({{ taxon.enabledChildren|length }}, 1fr)\"{% endif %}>
{% for childTaxon in children %}
{{ macros.nested_item(childTaxon) }}
{% endfor %}
</div>
</div>
{% else %}
<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>
{% endif %}
{% endmacro %}
{% import _self as macros %}
{% set registerProductsLink = url('bitbag_sylius_organization_plugin_shop_register_organization_vendor') %}
{% if is_granted('ROLE_USER') %}
{% if app.user.customer.organization.vendor|default(null) == null %}
{% set registerProductsLink = url('open_marketplace_vendor_register_form') %}
{% else %}
{% set registerProductsLink = url('open_marketplace_vendor_product_listings_index') %}
{% endif %}
{% endif %}
<div class=\"menu-bar desktop-menu\">
{% if taxons|length > 0 %}
<div class=\"ui large stackable menu horizontal-menu\">
{% if get_current_route_name() not in ['app_tech_videos', 'app_tech_advisory', 'app_tech_knowledge'] %}
{% for taxon in taxons if true == taxon.enabled %}
{{ macros.item(taxon) }}
{% endfor %}
{{ render(path('open_marketplace_shop_render_country_menu', {'template': 'Context/Shop/Menu/country.html.twig'})) }}
{{ render(path('open_marketplace_shop_render_use_case_menu', {'template': 'Context/Shop/Menu/useCases.html.twig'})) }}
<a href=\"{{ path('open_marketplace_shop_vendor_index') }}\" class=\"item text-sm\">{{ 'app.ui.brands'|trans }}</a>
{% elseif get_current_route_name() == 'app_tech_videos' %}
{% include 'Context/TechVideos/horizontalMenu.html.twig' %}
{% elseif get_current_route_name() == 'app_tech_advisory' %}
{% include 'Context/TechAdvisory/horizontalMenu.html.twig' %}
{% elseif get_current_route_name() == 'app_tech_knowledge' %}
{% include 'Context/TechKnowledge/horizontalMenu.html.twig' %}
{% endif %}
</div>
{% endif %}
<a href=\"{{ registerProductsLink }}\" class=\"hyfindr btn btn--primary header-button capitalize\">{{ 'app.ui.register_products'|trans }}</a>
</div>
", "@SyliusShop/Taxon/_horizontalMenu.html.twig", "/srv/open_marketplace/templates/bundles/SyliusShopBundle/Taxon/_horizontalMenu.html.twig");
}
}