var/cache/dev/twig/08/08744d30aec9dc9ab173790483154ef0235b68565991cb7bca1f043d40dbfc86.php line 76

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. /* frontend/menu_mobile.html.twig */
  14. class __TwigTemplate_47f599df00100757264fd237fd072852fbd8ed353d44ec570cb865945465ce51 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/menu_mobile.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/menu_mobile.html.twig"));
  33.         // line 1
  34.         echo "    <!-- Menu principale (mobile)-->
  35.     <nav id=\"menu\" class=\"\" style=\"\">
  36.         <ul>
  37.             ";
  38.         // line 4
  39.         $context['_parent'] = $context;
  40.         $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"falsefalsefalse4));
  41.         foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
  42.             // line 5
  43.             echo "                    <li>
  44.                         <a href=\"";
  45.             // line 6
  46.             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"falsefalsefalse6)]), "html"nulltrue);
  47.             echo "\" class=\"allowClick\">
  48.                             <span>
  49.                                 ";
  50.             // line 8
  51.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menu"], "name", [], "any"falsefalsefalse8), "html"nulltrue);
  52.             echo "
  53.                             </span>
  54.                         </a>
  55.                           ";
  56.             // line 11
  57.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["menu"], "categories", [], "any"falsefalsefalse11))) {
  58.                 // line 12
  59.                 echo "                         <ul>
  60.                             ";
  61.                 // line 13
  62.                 $context['_parent'] = $context;
  63.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["menu"], "categories", [], "any"falsefalsefalse13));
  64.                 foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
  65.                     // line 14
  66.                     echo "                            ";
  67.                     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", [=> $context["subCategory"]], "method"falsefalsefalse14) && (twig_get_attribute($this->env$this->source$context["subCategory"], "placement", [], "any"falsefalsefalse14) > 0))) {
  68.                         // line 15
  69.                         echo "                                    <li>
  70.                                          <a href=\"";
  71.                         // line 16
  72.                         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"falsefalsefalse16)]), "html"nulltrue);
  73.                         echo "\" class=\"allowClick\">
  74.                                             <span>
  75.                                                  ";
  76.                         // line 18
  77.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subCategory"], "name", [], "any"falsefalsefalse18), "html"nulltrue);
  78.                         echo "
  79.                                             </span>
  80.                                         </a>
  81.                                         ";
  82.                         // line 21
  83.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["subCategory"], "categories", [], "any"falsefalsefalse21))) {
  84.                             // line 22
  85.                             echo "                                        <ul>
  86.                                                 ";
  87.                             // line 23
  88.                             $context['_parent'] = $context;
  89.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["subCategory"], "categories", [], "any"falsefalsefalse23));
  90.                             foreach ($context['_seq'] as $context["_key"] => $context["Category"]) {
  91.                                 // line 24
  92.                                 echo "                                                ";
  93.                                 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", [=> $context["Category"]], "method"falsefalsefalse24) && (twig_get_attribute($this->env$this->source$context["Category"], "placement", [], "any"falsefalsefalse24) > 0))) {
  94.                                     // line 25
  95.                                     echo "                                                        <li>
  96.                                                             <a href=\"";
  97.                                     // line 26
  98.                                     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"falsefalsefalse26)], ["name" => twig_get_attribute($this->env$this->source$context["Category"], "UrlName", [], "any"falsefalsefalse26)]), "html"nulltrue);
  99.                                     echo "\" class=\"allowClick\">
  100.                                                                 <span>
  101.                                                                     ";
  102.                                     // line 28
  103.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Category"], "name", [], "any"falsefalsefalse28), "html"nulltrue);
  104.                                     echo "
  105.                                                                 </span>
  106.                                                             </a>
  107.                                                         </li>
  108.                                                          ";
  109.                                 }
  110.                                 // line 33
  111.                                 echo "                                            ";
  112.                             }
  113.                             $_parent $context['_parent'];
  114.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Category'], $context['_parent'], $context['loop']);
  115.                             $context array_intersect_key($context$_parent) + $_parent;
  116.                             // line 34
  117.                             echo "                                        </ul>
  118.                                         ";
  119.                         }
  120.                         // line 36
  121.                         echo "                                    </li>
  122.                                       ";
  123.                     }
  124.                     // line 38
  125.                     echo "                        ";
  126.                 }
  127.                 $_parent $context['_parent'];
  128.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
  129.                 $context array_intersect_key($context$_parent) + $_parent;
  130.                 // line 39
  131.                 echo "                    </ul>
  132.                     ";
  133.             }
  134.             // line 41
  135.             echo "                    </li>
  136.             ";
  137.         }
  138.         $_parent $context['_parent'];
  139.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menu'], $context['_parent'], $context['loop']);
  140.         $context array_intersect_key($context$_parent) + $_parent;
  141.         // line 43
  142.         echo "        </ul>
  143.     </nav>
  144.     <!-- Menu principale(mobile)-->
  145. ";
  146.         
  147.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  148.         
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  150.     }
  151.     public function getTemplateName()
  152.     {
  153.         return "frontend/menu_mobile.html.twig";
  154.     }
  155.     public function isTraitable()
  156.     {
  157.         return false;
  158.     }
  159.     public function getDebugInfo()
  160.     {
  161.         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,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("    <!-- Menu principale (mobile)-->
  166.     <nav id=\"menu\" class=\"\" style=\"\">
  167.         <ul>
  168.             {% for menu in global.menu %}
  169.                     <li>
  170.                         <a href=\"{{path(\"viewCategory\", {\"name\": menu.UrlName})}}\" class=\"allowClick\">
  171.                             <span>
  172.                                 {{menu.name}}
  173.                             </span>
  174.                         </a>
  175.                           {% if menu.categories is not empty %}
  176.                          <ul>
  177.                             {% for subCategory in menu.categories %}
  178.                             {% if global.hasProducts(subCategory) and subCategory.placement > 0 %}
  179.                                     <li>
  180.                                          <a href=\"{{path(\"viewCategory\", {\"name\": subCategory.UrlName})}}\" class=\"allowClick\">
  181.                                             <span>
  182.                                                  {{subCategory.name}}
  183.                                             </span>
  184.                                         </a>
  185.                                         {% if subCategory.categories is not empty %}
  186.                                         <ul>
  187.                                                 {% for Category in subCategory.categories %}
  188.                                                 {% if  global.hasProducts(Category) and Category.placement > 0 %}
  189.                                                         <li>
  190.                                                             <a href=\"{{path(\"viewCategory\",{\"name\": subCategory.UrlName}, {\"name\": Category.UrlName})}}\" class=\"allowClick\">
  191.                                                                 <span>
  192.                                                                     {{Category.name}}
  193.                                                                 </span>
  194.                                                             </a>
  195.                                                         </li>
  196.                                                          {% endif %}
  197.                                             {% endfor %}
  198.                                         </ul>
  199.                                         {% endif %}
  200.                                     </li>
  201.                                       {% endif %}
  202.                         {% endfor %}
  203.                     </ul>
  204.                     {% endif %}
  205.                     </li>
  206.             {% endfor %}
  207.         </ul>
  208.     </nav>
  209.     <!-- Menu principale(mobile)-->
  210. ""frontend/menu_mobile.html.twig""/var/www/html/Markego/templates/frontend/menu_mobile.html.twig");
  211.     }
  212. }