var/cache/dev/twig/89/894ffd4281177a95a6c127c68854dce3836e674a658a9e08dd17a2adb355f0db.php line 124

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. /* website/includes/menu.html.twig */
  14. class __TwigTemplate_6b3bc10666bcbee136005f573c4d994d51ff0091038f96170d0d727cc1ae1255 extends 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""website/includes/menu.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""website/includes/menu.html.twig"));
  33.         // line 1
  34.         $macros["__internal_da70e63a8198f10f3cc611c3e0550ee4c040241632d8f947c99d6722114ca708"] = $this->macros["__internal_da70e63a8198f10f3cc611c3e0550ee4c040241632d8f947c99d6722114ca708"] = $this->loadTemplate("utils.html.twig""website/includes/menu.html.twig"1)->unwrap();
  35.         // line 2
  36.         $macros["__internal_cc8b3b1c51fff1f09095030fe3c198d1539eff92fd06c7492d52e04447f7be7e"] = $this->macros["__internal_cc8b3b1c51fff1f09095030fe3c198d1539eff92fd06c7492d52e04447f7be7e"] = $this->loadTemplate("website/controls/notification-icon.html.twig""website/includes/menu.html.twig"2)->unwrap();
  37.         // line 3
  38.         echo "
  39. <div class=\"topo\" ";
  40.         // line 4
  41.         if (array_key_exists("productPage"$context)) {
  42.             echo " data-page-height-top=\"";
  43.             echo ((twig_get_attribute($this->env$this->source, (isset($context["productPage"]) || array_key_exists("productPage"$context) ? $context["productPage"] : (function () { throw new RuntimeError('Variable "productPage" does not exist.'4$this->source); })()), "showShortageControlTime", [], "any"falsefalsefalse4)) ? ("1") : ("0"));
  44.             echo "\" ";
  45.         }
  46.         echo ">
  47.     <button class=\"btn-menu-mobile js--open-menu-mobile\" data-menu-mobile-open=\"site\">
  48.         <i class=\"fas fa-bars\"></i>
  49.     </button>
  50.     ";
  51.         // line 10
  52.         echo "    <div class=\"logo\">
  53.         <a href=\"";
  54.         // line 11
  55.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  56.         echo "\">";
  57.         echo twig_call_macro($macros["__internal_da70e63a8198f10f3cc611c3e0550ee4c040241632d8f947c99d6722114ca708"], "macro_imgUpload", [$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getConfig("logo"), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_OTHERS"), ""twig_get_attribute($this->env$this->source, (isset($context["client"]) || array_key_exists("client"$context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.'11$this->source); })()), "brand", [], "any"falsefalsefalse11)], 11$context$this->getSourceContext());
  58.         echo "</a>
  59.     </div>
  60.     ";
  61.         // line 15
  62.         echo "    <nav class=\"menu-links\">
  63.         ";
  64.         // line 16
  65.         $context['_parent'] = $context;
  66.         $context['_seq'] = twig_ensure_traversable((isset($context["menu"]) || array_key_exists("menu"$context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.'16$this->source); })()));
  67.         foreach ($context['_seq'] as $context["_key"] => $context["menuItem"]) {
  68.             // line 17
  69.             echo "            ";
  70.             if (twig_get_attribute($this->env$this->source$context["menuItem"], "show", [], "any"falsefalsefalse17)) {
  71.                 // line 18
  72.                 echo "                ";
  73.                 // line 19
  74.                 echo "                ";
  75.                 if (((twig_get_attribute($this->env$this->source$context["menuItem"], "dropdown", [], "any"truetruefalse19)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["menuItem"], "dropdown", [], "any"falsefalsefalse19), false)) : (false))) {
  76.                     // line 20
  77.                     echo "                    <div class=\"dropdown custom-client-";
  78.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "class", [], "any"falsefalsefalse20), "html"nulltrue);
  79.                     echo "\">
  80.                         <a><i class=\"fas fa-chevron-down seta\"></i> ";
  81.                     // line 21
  82.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "text", [], "any"falsefalsefalse21), "html"nulltrue);
  83.                     echo "</a>
  84.                         <ul class=\"dropdown-list\">
  85.                             ";
  86.                     // line 23
  87.                     $context['_parent'] = $context;
  88.                     $context['_seq'] = twig_ensure_traversable((isset($context["pages"]) || array_key_exists("pages"$context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.'23$this->source); })()));
  89.                     foreach ($context['_seq'] as $context["i"] => $context["page"]) {
  90.                         // line 24
  91.                         echo "                                ";
  92.                         if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["page"], "showType", [], "any"falsefalsefalse24), 1))) {
  93.                             // line 25
  94.                             echo "                                    ";
  95.                             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["page"], "useExternalLink", [], "any"falsefalsefalse25), 1))) {
  96.                                 // line 26
  97.                                 echo "                                        <li><a href=\"";
  98.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "externalLink", [], "any"falsefalsefalse26), "html"nulltrue);
  99.                                 echo "\" target=\"_blank\" title=\"";
  100.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "title", [], "any"falsefalsefalse26), "html"nulltrue);
  101.                                 echo "\">
  102.                                             <span>";
  103.                                 // line 27
  104.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "title", [], "any"falsefalsefalse27), "html"nulltrue);
  105.                                 echo "</span></a>
  106.                                         </li>
  107.                                     ";
  108.                             } else {
  109.                                 // line 30
  110.                                 echo "                                        <li><a href=\"";
  111.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pageDetail", ["slug" => twig_get_attribute($this->env$this->source$context["page"], "slug", [], "any"falsefalsefalse30)]), "html"nulltrue);
  112.                                 echo "\" title=\"";
  113.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "title", [], "any"falsefalsefalse30), "html"nulltrue);
  114.                                 echo "\">
  115.                                             <span>";
  116.                                 // line 31
  117.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "title", [], "any"falsefalsefalse31), "html"nulltrue);
  118.                                 echo "</span></a>
  119.                                         </li>
  120.                                     ";
  121.                             }
  122.                             // line 34
  123.                             echo "                                ";
  124.                         }
  125.                         // line 35
  126.                         echo "                            ";
  127.                     }
  128.                     $_parent $context['_parent'];
  129.                     unset($context['_seq'], $context['_iterated'], $context['i'], $context['page'], $context['_parent'], $context['loop']);
  130.                     $context array_intersect_key($context$_parent) + $_parent;
  131.                     // line 36
  132.                     echo "                        </ul>
  133.                     </div>
  134.                 ";
  135.                     // line 39
  136.                     echo "                ";
  137.                 } else {
  138.                     // line 40
  139.                     echo "                    <a href=\"";
  140.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "link", [], "any"falsefalsefalse40), "html"nulltrue);
  141.                     echo "\" class=\"custom-client-";
  142.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "class", [], "any"falsefalsefalse40), "html"nulltrue);
  143.                     echo "\">";
  144.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "text", [], "any"falsefalsefalse40), "html"nulltrue);
  145.                     echo "</a>
  146.                 ";
  147.                 }
  148.                 // line 42
  149.                 echo "            ";
  150.             }
  151.             // line 43
  152.             echo "        ";
  153.         }
  154.         $_parent $context['_parent'];
  155.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuItem'], $context['_parent'], $context['loop']);
  156.         $context array_intersect_key($context$_parent) + $_parent;
  157.         // line 44
  158.         echo "
  159.         ";
  160.         // line 46
  161.         echo "        ";
  162.         if (((isset($context["isDarkTheme"]) || array_key_exists("isDarkTheme"$context) ? $context["isDarkTheme"] : (function () { throw new RuntimeError('Variable "isDarkTheme" does not exist.'46$this->source); })()) && ( !(isset($context["isRestricted"]) || array_key_exists("isRestricted"$context) ? $context["isRestricted"] : (function () { throw new RuntimeError('Variable "isRestricted" does not exist.'46$this->source); })()) || (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'46$this->source); })())))) {
  163.             // line 47
  164.             echo "            <a class=\"js--search-open\">BUSCA&ensp;<i class=\"ico-busca\">";
  165.             echo twig_call_macro($macros["__internal_da70e63a8198f10f3cc611c3e0550ee4c040241632d8f947c99d6722114ca708"], "macro_ico", ["search"], 47$context$this->getSourceContext());
  166.             echo "</i></a>
  167.             ";
  168.             // line 51
  169.             echo "        ";
  170.         }
  171.         // line 52
  172.         echo "    </nav>
  173.     ";
  174.         // line 55
  175.         echo "    ";
  176.         if (twig_test_empty((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'55$this->source); })()))) {
  177.             // line 56
  178.             echo "        <nav class=\"login\">
  179.             <a href=\"";
  180.             // line 57
  181.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  182.             echo "\" class=\"logar\">";
  183.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("sign_in""head"), "html"nulltrue);
  184.             echo "</a>
  185.             ";
  186.             // line 58
  187.             if ( !(isset($context["isRestricted"]) || array_key_exists("isRestricted"$context) ? $context["isRestricted"] : (function () { throw new RuntimeError('Variable "isRestricted" does not exist.'58$this->source); })())) {
  188.                 // line 59
  189.                 echo "                <a href=\"";
  190.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  191.                 echo "\" class=\"btn-login\">";
  192.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("create_a_user""head"), "html"nulltrue);
  193.                 echo "</a>
  194.             ";
  195.             }
  196.             // line 61
  197.             echo "        </nav>
  198.     ";
  199.         }
  200.         // line 63
  201.         echo "
  202.     ";
  203.         // line 64
  204.         if (((isset($context["hasProducts"]) || array_key_exists("hasProducts"$context) ? $context["hasProducts"] : (function () { throw new RuntimeError('Variable "hasProducts" does not exist.'64$this->source); })()) &&  !(isset($context["isRestricted"]) || array_key_exists("isRestricted"$context) ? $context["isRestricted"] : (function () { throw new RuntimeError('Variable "isRestricted" does not exist.'64$this->source); })()))) {
  205.             // line 65
  206.             echo "        ";
  207.             // line 66
  208.             echo "        <button class=\"btn-busca-mobile js--open-busca-mobile\">
  209.             <i class=\"fas fa-search\"></i>
  210.         </button>
  211.         ";
  212.             // line 71
  213.             echo "        <div class=\"contem-cart\">
  214.             <a href=\"";
  215.             // line 72
  216.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart");
  217.             echo "\">
  218.                 ";
  219.             // line 73
  220.             echo twig_call_macro($macros["__internal_cc8b3b1c51fff1f09095030fe3c198d1539eff92fd06c7492d52e04447f7be7e"], "macro_notificon", ["cart"$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getUserCartNumber()], 73$context$this->getSourceContext());
  221.             echo "
  222.             </a>
  223.         </div>
  224.     ";
  225.         }
  226.         // line 77
  227.         echo "
  228.     ";
  229.         // line 79
  230.         echo "    ";
  231.         if ((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'79$this->source); })())) {
  232.             // line 80
  233.             echo "
  234.         ";
  235.             // line 82
  236.             echo "        ";
  237.             $this->loadTemplate("website/includes/submenu-notifications.html.twig""website/includes/menu.html.twig"82)->display($context);
  238.             // line 83
  239.             echo "
  240.         ";
  241.             // line 85
  242.             echo "        <div class=\"contem-user\">
  243.             <div class=\"btn-menu js--context-menu\" data-context-menu=\".user-menu\">
  244.                 <i class=\"fas fa-chevron-down seta\"></i>
  245.                 <div class=\"avatar\">
  246.                     ";
  247.             // line 89
  248.             echo twig_call_macro($macros["__internal_da70e63a8198f10f3cc611c3e0550ee4c040241632d8f947c99d6722114ca708"], "macro_ico", ["user"], 89$context$this->getSourceContext());
  249.             echo "
  250.                     ";
  251.             // line 90
  252.             echo twig_call_macro($macros["__internal_da70e63a8198f10f3cc611c3e0550ee4c040241632d8f947c99d6722114ca708"], "macro_imgUpload", [twig_get_attribute($this->env$this->source, (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'90$this->source); })()), "photo", [], "any"falsefalsefalse90), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_PROFILES"), "user-profile"], 90$context$this->getSourceContext());
  253.             echo "
  254.                 </div>
  255.             </div>
  256.             <div class=\"user-menu context-menu\">
  257.                 <nav>
  258.                     ";
  259.             // line 97
  260.             echo "                    ";
  261.             if ((isset($context["canAccessAdm"]) || array_key_exists("canAccessAdm"$context) ? $context["canAccessAdm"] : (function () { throw new RuntimeError('Variable "canAccessAdm" does not exist.'97$this->source); })())) {
  262.                 // line 98
  263.                 echo "                        <a href=\"";
  264.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("adminEad");
  265.                 echo "\">
  266.                             <i class=\"fas fa-cogs\"></i>
  267.                             <span>";
  268.                 // line 100
  269.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("admin""menu"), "html"nulltrue);
  270.                 echo "</span>
  271.                         </a>
  272.                     ";
  273.             }
  274.             // line 103
  275.             echo "
  276.                     ";
  277.             // line 105
  278.             echo "                    ";
  279.             if (((array_key_exists("session"$context) && (isset($context["session"]) || array_key_exists("session"$context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.'105$this->source); })())) && twig_get_attribute($this->env$this->source, (isset($context["session"]) || array_key_exists("session"$context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.'105$this->source); })()), "userOrigin", [], "any"falsefalsefalse105))) {
  280.                 // line 106
  281.                 echo "                        <a href=\"";
  282.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userLogoff");
  283.                 echo "\">
  284.                             <i class=\"fas fa-cogs\"></i>
  285.                             <span>";
  286.                 // line 108
  287.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_as_admin""menu"), "html"nulltrue);
  288.                 echo "</span>
  289.                         </a>
  290.                     ";
  291.             }
  292.             // line 111
  293.             echo "
  294.                     <a href=\"";
  295.             // line 112
  296.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("enrollentList");
  297.             echo "\" class=\"custom-client-enrollments\">
  298.                         <i class=\"fas fa-file-alt\"></i>
  299.                         <span>";
  300.             // line 114
  301.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("enrollments""menu"), "html"nulltrue);
  302.             echo "</span>
  303.                     </a>
  304.                     <a href=\"";
  305.             // line 116
  306.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("transactionList");
  307.             echo "\" class=\"custom-client-purchases\">
  308.                         <i class=\"fas fa-shopping-bag\"></i>
  309.                         <span>";
  310.             // line 118
  311.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("purchases""menu"), "html"nulltrue);
  312.             echo "</span>
  313.                     </a>
  314.                     ";
  315.             // line 122
  316.             echo "                    ";
  317.             if ($this->extensions['EADPlataforma\Twig\FunctionsExtension']->isModuleActive("product_subscription_module")) {
  318.                 // line 123
  319.                 echo "                        <a href=\"";
  320.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userSubscriptionList");
  321.                 echo "\" class=\"custom-client-subscriptions\">
  322.                             <i class=\"far fa-credit-card\"></i>
  323.                             <span>";
  324.                 // line 125
  325.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("subscriptions""menu"), "html"nulltrue);
  326.                 echo "</span>
  327.                         </a>
  328.                     ";
  329.             }
  330.             // line 128
  331.             echo "
  332.                     <a href=\"";
  333.             // line 129
  334.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("message");
  335.             echo "\" class=\"custom-client-messages\">
  336.                         <i class=\"fas fa-envelope\"></i>
  337.                         <span>";
  338.             // line 131
  339.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("messages""menu"), "html"nulltrue);
  340.             echo "</span>
  341.                     </a>
  342.                     <a href=\"";
  343.             // line 133
  344.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userProfile");
  345.             echo "\" class=\"custom-client-edit_profile\">
  346.                         <i class=\"fas fa-cog\"></i>
  347.                         <span>";
  348.             // line 135
  349.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("edit_profile""menu"), "html"nulltrue);
  350.             echo "</span>
  351.                     </a>
  352.                     <a href=\"";
  353.             // line 137
  354.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logoff");
  355.             echo "\" class=\"custom-client-sign_out\">
  356.                         <i class=\"fas fa-sign-out-alt\"></i>
  357.                         <span>";
  358.             // line 139
  359.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("sign_out""menu"), "html"nulltrue);
  360.             echo "</span>
  361.                     </a>
  362.                 </nav>
  363.             </div>
  364.         </div>
  365.     ";
  366.         }
  367.         // line 145
  368.         echo "</div>
  369. ";
  370.         
  371.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  372.         
  373.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  374.     }
  375.     public function getTemplateName()
  376.     {
  377.         return "website/includes/menu.html.twig";
  378.     }
  379.     public function isTraitable()
  380.     {
  381.         return false;
  382.     }
  383.     public function getDebugInfo()
  384.     {
  385.         return array (  383 => 145,  374 => 139,  369 => 137,  364 => 135,  359 => 133,  354 => 131,  349 => 129,  346 => 128,  340 => 125,  334 => 123,  331 => 122,  325 => 118,  320 => 116,  315 => 114,  310 => 112,  307 => 111,  301 => 108,  295 => 106,  292 => 105,  289 => 103,  283 => 100,  277 => 98,  274 => 97,  265 => 90,  261 => 89,  255 => 85,  252 => 83,  249 => 82,  246 => 80,  243 => 79,  240 => 77,  233 => 73,  229 => 72,  226 => 71,  220 => 66,  218 => 65,  216 => 64,  213 => 63,  209 => 61,  201 => 59,  199 => 58,  193 => 57,  190 => 56,  187 => 55,  183 => 52,  180 => 51,  175 => 47,  172 => 46,  169 => 44,  163 => 43,  160 => 42,  150 => 40,  147 => 39,  143 => 36,  137 => 35,  134 => 34,  128 => 31,  121 => 30,  115 => 27,  108 => 26,  105 => 25,  102 => 24,  98 => 23,  93 => 21,  88 => 20,  85 => 19,  83 => 18,  80 => 17,  76 => 16,  73 => 15,  65 => 11,  62 => 10,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  386.     }
  387.     public function getSourceContext()
  388.     {
  389.         return new Source("{% from 'utils.html.twig' import ico, imgUpload %}
  390. {% from \"website/controls/notification-icon.html.twig\" import notificon %}
  391. <div class=\"topo\" {% if productPage is defined %} data-page-height-top=\"{{ productPage.showShortageControlTime ? '1':'0' }}\" {% endif %}>
  392.     <button class=\"btn-menu-mobile js--open-menu-mobile\" data-menu-mobile-open=\"site\">
  393.         <i class=\"fas fa-bars\"></i>
  394.     </button>
  395.     {# LOGO #}
  396.     <div class=\"logo\">
  397.         <a href=\"{{ path('home') }}\">{{ imgUpload(getConfig('logo'), enum('AbstractEnum::PATH_OTHERS'), '', client.brand) }}</a>
  398.     </div>
  399.     {# MENU #}
  400.     <nav class=\"menu-links\">
  401.         {% for menuItem in menu %}
  402.             {% if menuItem.show %}
  403.                 {# DROPDOWN #}
  404.                 {% if menuItem.dropdown|default(false) %}
  405.                     <div class=\"dropdown custom-client-{{ menuItem.class }}\">
  406.                         <a><i class=\"fas fa-chevron-down seta\"></i> {{ menuItem.text }}</a>
  407.                         <ul class=\"dropdown-list\">
  408.                             {% for i, page in pages %}
  409.                                 {% if page.showType == 1 %}
  410.                                     {% if page.useExternalLink == 1 %}
  411.                                         <li><a href=\"{{ page.externalLink }}\" target=\"_blank\" title=\"{{ page.title }}\">
  412.                                             <span>{{ page.title }}</span></a>
  413.                                         </li>
  414.                                     {% else %}
  415.                                         <li><a href=\"{{ path('pageDetail', { slug:page.slug }) }}\" title=\"{{ page.title }}\">
  416.                                             <span>{{ page.title }}</span></a>
  417.                                         </li>
  418.                                     {% endif %}
  419.                                 {% endif %}
  420.                             {% endfor %}
  421.                         </ul>
  422.                     </div>
  423.                 {# URL #}
  424.                 {% else %}
  425.                     <a href=\"{{ menuItem.link }}\" class=\"custom-client-{{ menuItem.class }}\">{{ menuItem.text }}</a>
  426.                 {% endif %}
  427.             {% endif %}
  428.         {% endfor %}
  429.         {# SEARCH #}
  430.         {% if isDarkTheme and (not isRestricted or user) %}
  431.             <a class=\"js--search-open\">BUSCA&ensp;<i class=\"ico-busca\">{{ ico('search') }}</i></a>
  432.             {#
  433.             <a class=\"js--search-open\">BUSCA</a>
  434.             #}
  435.         {% endif %}
  436.     </nav>
  437.     {# LOGIN #}
  438.     {% if user is empty %}
  439.         <nav class=\"login\">
  440.             <a href=\"{{ path('login') }}\" class=\"logar\">{{ getLanguage('sign_in', 'head') }}</a>
  441.             {% if not isRestricted %}
  442.                 <a href=\"{{ path('register') }}\" class=\"btn-login\">{{ getLanguage('create_a_user', 'head') }}</a>
  443.             {% endif %}
  444.         </nav>
  445.     {% endif %}
  446.     {% if hasProducts and not isRestricted %}
  447.         {# MOBILE BUSCA #}
  448.         <button class=\"btn-busca-mobile js--open-busca-mobile\">
  449.             <i class=\"fas fa-search\"></i>
  450.         </button>
  451.         {# CART #}
  452.         <div class=\"contem-cart\">
  453.             <a href=\"{{ path('cart') }}\">
  454.                 {{ notificon('cart', getUserCartNumber()) }}
  455.             </a>
  456.         </div>
  457.     {% endif %}
  458.     {# USER #}
  459.     {% if user %}
  460.         {# NOTIFICATIONS #}
  461.         {% include 'website/includes/submenu-notifications.html.twig' %}
  462.         {# USER ACTIONS #}
  463.         <div class=\"contem-user\">
  464.             <div class=\"btn-menu js--context-menu\" data-context-menu=\".user-menu\">
  465.                 <i class=\"fas fa-chevron-down seta\"></i>
  466.                 <div class=\"avatar\">
  467.                     {{ ico('user') }}
  468.                     {{ imgUpload(user.photo, enum('AbstractEnum::PATH_PROFILES'), 'user-profile') }}
  469.                 </div>
  470.             </div>
  471.             <div class=\"user-menu context-menu\">
  472.                 <nav>
  473.                     {# ACESSO COMO ADMIN #}
  474.                     {% if canAccessAdm %}
  475.                         <a href=\"{{ path('adminEad') }}\">
  476.                             <i class=\"fas fa-cogs\"></i>
  477.                             <span>{{ getLanguage('admin', 'menu') }}</span>
  478.                         </a>
  479.                     {% endif %}
  480.                     {# ADMIN LOGOUT #}
  481.                     {% if session is defined and session and session.userOrigin %}
  482.                         <a href=\"{{ path('userLogoff') }}\">
  483.                             <i class=\"fas fa-cogs\"></i>
  484.                             <span>{{ getLanguage('back_as_admin', 'menu') }}</span>
  485.                         </a>
  486.                     {% endif %}
  487.                     <a href=\"{{ path('enrollentList') }}\" class=\"custom-client-enrollments\">
  488.                         <i class=\"fas fa-file-alt\"></i>
  489.                         <span>{{ getLanguage('enrollments', 'menu') }}</span>
  490.                     </a>
  491.                     <a href=\"{{ path('transactionList') }}\" class=\"custom-client-purchases\">
  492.                         <i class=\"fas fa-shopping-bag\"></i>
  493.                         <span>{{ getLanguage('purchases', 'menu') }}</span>
  494.                     </a>
  495.                     {# SUBSCRIPTIONS #}
  496.                     {% if isModuleActive(\"product_subscription_module\") %}
  497.                         <a href=\"{{ path('userSubscriptionList') }}\" class=\"custom-client-subscriptions\">
  498.                             <i class=\"far fa-credit-card\"></i>
  499.                             <span>{{ getLanguage('subscriptions', 'menu') }}</span>
  500.                         </a>
  501.                     {% endif %}
  502.                     <a href=\"{{ path('message') }}\" class=\"custom-client-messages\">
  503.                         <i class=\"fas fa-envelope\"></i>
  504.                         <span>{{ getLanguage('messages', 'menu') }}</span>
  505.                     </a>
  506.                     <a href=\"{{ path('userProfile') }}\" class=\"custom-client-edit_profile\">
  507.                         <i class=\"fas fa-cog\"></i>
  508.                         <span>{{ getLanguage('edit_profile', 'menu') }}</span>
  509.                     </a>
  510.                     <a href=\"{{ path('logoff') }}\" class=\"custom-client-sign_out\">
  511.                         <i class=\"fas fa-sign-out-alt\"></i>
  512.                         <span>{{ getLanguage('sign_out', 'menu') }}</span>
  513.                     </a>
  514.                 </nav>
  515.             </div>
  516.         </div>
  517.     {% endif %}
  518. </div>
  519. ""website/includes/menu.html.twig""/var/www/html/templates/website/includes/menu.html.twig");
  520.     }
  521. }