<?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_6e04857a807f8a506f171a2f169e0f17 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
echo "
<div class=\"menu-bar desktop-menu\">
";
// line 52
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)) {
// line 53
echo " <div class=\"ui large stackable menu horizontal-menu\">
";
// line 54
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", 3 => "bitbag_sylius_cms_plugin_shop_articles_show", 4 => "app_crfq_create", 5 => "bitbag_organization_shop_user_request_search", 6 => "bitbag_organization_shop_user_request_join_or_claim"])) {
// line 55
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.', 55, $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, 55))) {
// line 56
echo " ";
echo twig_call_macro($macros["macros"], "macro_item", [$context["taxon"]], 56, $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 58
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 60
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("open_marketplace_shop_vendor_index");
echo "\" class=\"ui simple right item text 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 (twig_in_filter($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName(), [0 => "app_crfq_create", 1 => "bitbag_organization_shop_user_request_search", 2 => "bitbag_organization_shop_user_request_join_or_claim"])) {
// line 62
echo " ";
$this->loadTemplate("Context/Suppliers/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 62)->display($context);
// line 63
echo " ";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_videos")) {
// line 64
echo " ";
$this->loadTemplate("Context/TechVideos/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 64)->display($context);
// line 65
echo " ";
} elseif (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_tech_advisory")) {
// line 66
echo " ";
$this->loadTemplate("Context/TechAdvisory/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 66)->display($context);
// line 67
echo " ";
} elseif (twig_in_filter($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName(), [0 => "app_tech_knowledge", 1 => "bitbag_sylius_cms_plugin_shop_articles_show"])) {
// line 68
echo " ";
$this->loadTemplate("Context/TechKnowledge/horizontalMenu.html.twig", "@SyliusShop/Taxon/_horizontalMenu.html.twig", 68)->display($context);
// line 69
echo " ";
}
// line 70
echo " </div>
";
}
// line 72
echo " ";
if (($this->extensions['BitBag\OpenMarketplace\Component\Core\Common\Twig\CurrentRouteExtension']->getMainRequestRouteName() == "app_crfq_create")) {
// line 73
echo " <a href=\"";
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", null, true);
echo "\" class=\"hyfindr btn btn--primary header-button capitalize right floated\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.contact_uns"), "html", null, true);
echo "</a>
";
} else {
// line 75
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "\" class=\"hyfindr btn btn--primary header-button capitalize right floated\" ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
echo "style=\"display: none;\"";
}
echo ">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.register_products"), "html", null, true);
echo "</a>
";
}
// line 77
echo "</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\" title=\"";
echo twig_escape_filter($this->env, 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), "name", [], "any", false, false, false, 6), "html", null, true);
echo "\">
<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>
<img class=\"icon\" src=\"";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/shop/images/keyboard_arrow_down.svg", "shop"), "html", null, true);
echo "\" alt=\"Expand more\">
</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\" title=\"";
echo twig_escape_filter($this->env, 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), "name", [], "any", false, false, false, 23), "html", null, true);
echo "\">";
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 "\" title=\"";
echo twig_escape_filter($this->env, 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), "name", [], "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>
<img class=\"icon\" src=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/shop/images/keyboard_arrow_down.svg", "shop"), "html", null, true);
echo "\" alt=\"Expand more\">
</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\" title=\"";
echo twig_escape_filter($this->env, 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), "name", [], "any", false, false, false, 45), "html", null, true);
echo "\">";
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 ( 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,);
}
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\" title=\"{{ taxon.translation.name }}\">
<span class=\"text text-sm\">{{ taxon.name }}</span>
<img class=\"icon\" src=\"{{ asset('build/shop/images/keyboard_arrow_down.svg', 'shop') }}\" alt=\"Expand more\">
</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\" title=\"{{ taxon.translation.name }}\">{{ 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}) }}\" title=\"{{ taxon.translation.name }}\">
<span class=\"text\">{{ taxon.name }}</span>
<img class=\"icon\" src=\"{{ asset('build/shop/images/keyboard_arrow_down.svg', 'shop') }}\" alt=\"Expand more\">
</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\" title=\"{{ taxon.translation.name }}\">{{ taxon.name }}</a>
{% endif %}
{% endmacro %}
{% import _self as macros %}
<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', 'bitbag_sylius_cms_plugin_shop_articles_show', 'app_crfq_create', 'bitbag_organization_shop_user_request_search', 'bitbag_organization_shop_user_request_join_or_claim'] %}
{% 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=\"ui simple right item text text-sm\">{{ 'app.ui.brands'|trans }}</a>
{% elseif get_current_route_name() in ['app_crfq_create', 'bitbag_organization_shop_user_request_search', 'bitbag_organization_shop_user_request_join_or_claim'] %}
{% include 'Context/Suppliers/horizontalMenu.html.twig' %}
{% 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() in ['app_tech_knowledge', 'bitbag_sylius_cms_plugin_shop_articles_show'] %}
{% include 'Context/TechKnowledge/horizontalMenu.html.twig' %}
{% endif %}
</div>
{% endif %}
{% if get_current_route_name() == 'app_crfq_create' %}
<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>
{% else %}
<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>
{% endif %}
</div>
", "@SyliusShop/Taxon/_horizontalMenu.html.twig", "/srv/open_marketplace/templates/bundles/SyliusShopBundle/Taxon/_horizontalMenu.html.twig");
}
}