<?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_e7e79a95f35747fa2c08a573a305443f 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 26
echo "
";
// line 48
echo "
";
// line 49
$macros["macros"] = $this->macros["macros"] = $this;
// line 50
$context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("bitbag_sylius_organization_plugin_shop_register_organization_vendor");
// line 51
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 52
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, 52), "customer", [], "any", false, true, false, 52), "organization", [], "any", false, true, false, 52), "vendor", [], "any", true, true, false, 52)) ? (_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, 52), "customer", [], "any", false, true, false, 52), "organization", [], "any", false, true, false, 52), "vendor", [], "any", false, false, false, 52), null)) : (null)) == null)) {
// line 53
echo " ";
$context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_register_form");
// line 54
echo " ";
} else {
// line 55
echo " ";
$context["registerProductsLink"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("open_marketplace_vendor_product_listings_index");
// line 56
echo " ";
}
}
// line 58
echo "
<div class=\"menu-bar desktop-menu\">
";
// line 60
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)) {
// line 61
echo " <div class=\"ui large stackable menu horizontal-menu\">
";
// line 62
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 63
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.', 63, $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, 63))) {
// line 64
echo " ";
echo twig_call_macro($macros["macros"], "macro_item", [$context["taxon"]], 64, $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 66
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 67
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 68
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 70
echo " ";
$this->loadTemplate("Context/TechVideos/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 70)->display($context);
// line 71
echo " ";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_advisory")) {
// line 72
echo " ";
$this->loadTemplate("Context/TechAdvisory/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 72)->display($context);
// line 73
echo " ";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_knowledge")) {
// line 74
echo " ";
$this->loadTemplate("Context/TechKnowledge/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 74)->display($context);
// line 75
echo " ";
}
// line 76
echo " </div>
";
}
// line 78
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.', 78, $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 11
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", false, false, false, 11) == "components")) {
// line 12
echo " style=\"grid-template-rows: repeat(15, 1fr);\"
";
} elseif ((twig_length_filter($this->env, // line 13
(isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 13, $this->source); })())) < 12)) {
// line 14
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.', 14, $this->source); })()), "enabledChildren", [], "any", false, false, false, 14)), "html", null, true);
echo ", 1fr)\"
";
}
// line 15
echo ">
";
// line 17
$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.', 17, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
// line 18
echo " ";
echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 18, $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 20
echo " </div>
</div>
";
} else {
// line 23
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.', 23, $this->source); })()), "slug", [], "any", false, false, false, 23), "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.', 23, $this->source); })()), "translation", [], "any", false, false, false, 23), "locale", [], "any", false, false, false, 23)]), "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.', 23, $this->source); })()), "name", [], "any", false, false, false, 23), "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 27
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 28
echo " ";
$macros["macros"] = $this;
// line 29
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.', 29, $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.', 29, $this->source); })()), "translation", [], "any", false, false, false, 29), "locale", [], "any", false, false, false, 29)], "method", false, false, false, 29);
// line 30
echo "
";
// line 31
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)) {
// line 32
echo " <div class=\"item nested_item\">
<a href=\"";
// line 33
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", false, false, false, 33), "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.', 33, $this->source); })()), "translation", [], "any", false, false, false, 33), "locale", [], "any", false, false, false, 33)]), "html", null, true);
echo "\">
<span class=\"text\">";
// line 34
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.', 34, $this->source); })()), "name", [], "any", false, false, false, 34), "html", null, true);
echo "</span>
<span class=\"material-symbols-outlined\">expand_more</span>
</a>
<div class=\"menu right hyfindr-column-menu\" ";
// line 38
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)) {
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.', 38, $this->source); })()), "enabledChildren", [], "any", false, false, false, 38)), "html", null, true);
echo ", 1fr)\"";
}
echo ">
";
// line 39
$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.', 39, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
// line 40
echo " ";
echo twig_call_macro($macros["macros"], "macro_nested_item", [$context["childTaxon"]], 40, $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 42
echo " </div>
</div>
";
} else {
// line 45
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.', 45, $this->source); })()), "slug", [], "any", false, false, false, 45), "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.', 45, $this->source); })()), "translation", [], "any", false, false, false, 45), "locale", [], "any", false, false, false, 45)]), "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.', 45, $this->source); })()), "name", [], "any", false, false, false, 45), "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 ( 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,);
}
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 taxon.slug == 'components' %}
style=\"grid-template-rows: repeat(15, 1fr);\"
{% elseif 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");
}
}