<?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;
/* frontend/menu_mobile.html.twig */
class __TwigTemplate_47f599df00100757264fd237fd072852fbd8ed353d44ec570cb865945465ce51 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/menu_mobile.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/menu_mobile.html.twig"));
// line 1
echo " <!-- Menu principale (mobile)-->
<nav id=\"menu\" class=\"\" style=\"\">
<ul>
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 4, $this->source); })()), "menu", [], "any", false, false, false, 4));
foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
// line 5
echo " <li>
<a href=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewCategory", ["name" => twig_get_attribute($this->env, $this->source, $context["menu"], "UrlName", [], "any", false, false, false, 6)]), "html", null, true);
echo "\" class=\"allowClick\">
<span>
";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menu"], "name", [], "any", false, false, false, 8), "html", null, true);
echo "
</span>
</a>
";
// line 11
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["menu"], "categories", [], "any", false, false, false, 11))) {
// line 12
echo " <ul>
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["menu"], "categories", [], "any", false, false, false, 13));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 14
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 14, $this->source); })()), "hasProducts", [0 => $context["subCategory"]], "method", false, false, false, 14) && (twig_get_attribute($this->env, $this->source, $context["subCategory"], "placement", [], "any", false, false, false, 14) > 0))) {
// line 15
echo " <li>
<a href=\"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewCategory", ["name" => twig_get_attribute($this->env, $this->source, $context["subCategory"], "UrlName", [], "any", false, false, false, 16)]), "html", null, true);
echo "\" class=\"allowClick\">
<span>
";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "name", [], "any", false, false, false, 18), "html", null, true);
echo "
</span>
</a>
";
// line 21
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["subCategory"], "categories", [], "any", false, false, false, 21))) {
// line 22
echo " <ul>
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["subCategory"], "categories", [], "any", false, false, false, 23));
foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
// line 24
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 24, $this->source); })()), "hasProducts", [0 => $context["Category"]], "method", false, false, false, 24) && (twig_get_attribute($this->env, $this->source, $context["Category"], "placement", [], "any", false, false, false, 24) > 0))) {
// line 25
echo " <li>
<a href=\"";
// line 26
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewCategory", ["name" => twig_get_attribute($this->env, $this->source, $context["subCategory"], "UrlName", [], "any", false, false, false, 26)], ["name" => twig_get_attribute($this->env, $this->source, $context["Category"], "UrlName", [], "any", false, false, false, 26)]), "html", null, true);
echo "\" class=\"allowClick\">
<span>
";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Category"], "name", [], "any", false, false, false, 28), "html", null, true);
echo "
</span>
</a>
</li>
";
}
// line 33
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </ul>
";
}
// line 36
echo " </li>
";
}
// line 38
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo " </ul>
";
}
// line 41
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
echo " </ul>
</nav>
<!-- Menu principale(mobile)-->
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "frontend/menu_mobile.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 151 => 43, 144 => 41, 140 => 39, 134 => 38, 130 => 36, 126 => 34, 120 => 33, 112 => 28, 107 => 26, 104 => 25, 101 => 24, 97 => 23, 94 => 22, 92 => 21, 86 => 18, 81 => 16, 78 => 15, 75 => 14, 71 => 13, 68 => 12, 66 => 11, 60 => 8, 55 => 6, 52 => 5, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source(" <!-- Menu principale (mobile)-->
<nav id=\"menu\" class=\"\" style=\"\">
<ul>
{% for menu in global.menu %}
<li>
<a href=\"{{path(\"viewCategory\", {\"name\": menu.UrlName})}}\" class=\"allowClick\">
<span>
{{menu.name}}
</span>
</a>
{% if menu.categories is not empty %}
<ul>
{% for subCategory in menu.categories %}
{% if global.hasProducts(subCategory) and subCategory.placement > 0 %}
<li>
<a href=\"{{path(\"viewCategory\", {\"name\": subCategory.UrlName})}}\" class=\"allowClick\">
<span>
{{subCategory.name}}
</span>
</a>
{% if subCategory.categories is not empty %}
<ul>
{% for Category in subCategory.categories %}
{% if global.hasProducts(Category) and Category.placement > 0 %}
<li>
<a href=\"{{path(\"viewCategory\",{\"name\": subCategory.UrlName}, {\"name\": Category.UrlName})}}\" class=\"allowClick\">
<span>
{{Category.name}}
</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
<!-- Menu principale(mobile)-->
", "frontend/menu_mobile.html.twig", "/var/www/html/Markego/templates/frontend/menu_mobile.html.twig");
}
}