var/cache/dev/twig/88/8870f93b4d72101a0a2fc1d0ab854dc26838450a873b5cf47d2871a7488dc64a.php line 33

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-mobile-site.html.twig */
  14. class __TwigTemplate_b6458bc6933e964a38db949b6541b6c4b4927aa2d3b04a2563eb319f77a0ab45 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-mobile-site.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-mobile-site.html.twig"));
  33.         // line 1
  34.         $macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"] = $this->macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"] = $this->loadTemplate("utils.html.twig""website/includes/menu-mobile-site.html.twig"1)->unwrap();
  35.         // line 2
  36.         $macros["__internal_d5fa573e216bd191b84afefd941e93c1408974db109f418b15ae66540b14b1fe"] = $this->macros["__internal_d5fa573e216bd191b84afefd941e93c1408974db109f418b15ae66540b14b1fe"] = $this->loadTemplate("website/controls/notification-icon.html.twig""website/includes/menu-mobile-site.html.twig"2)->unwrap();
  37.         // line 3
  38.         echo "<div class=\"menu-mobile-box\" data-menu-show=\"site\">
  39.     ";
  40.         // line 6
  41.         echo "    <div class=\"menu-slide\" data-slide-id=\"inicial\" data-slide-status=\"on\">
  42.         <header>
  43.             ";
  44.         // line 8
  45.         if ((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'8$this->source); })())) {
  46.             // line 9
  47.             echo "                <div>
  48.                     <div class=\"avatar\">
  49.                         ";
  50.             // line 11
  51.             echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "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.'11$this->source); })()), "photo", [], "any"falsefalsefalse11), $this->extensions['EADPlataforma\Twig\FunctionsExtension']->enum("AbstractEnum::PATH_PROFILES"), "user-profile-small"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.'11$this->source); })()), "name", [], "any"falsefalsefalse11)], 11$context$this->getSourceContext());
  52.             echo "
  53.                     </div>
  54.                 </div>
  55.                 <div class=\"user\">
  56.                     <p class=\"name\">";
  57.             // line 15
  58.             echo twig_escape_filter($this->envtwig_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.'15$this->source); })()), "name", [], "any"falsefalsefalse15), "html"nulltrue);
  59.             echo "</p>
  60.                     <a class=\"link tema--cor-tx js--open-user-opts\">
  61.                         ";
  62.             // line 17
  63.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("options""menu"), "html"nulltrue);
  64.             echo "&nbsp;";
  65.             echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-down"], 17$context$this->getSourceContext());
  66.             echo "
  67.                     </a>
  68.                 </div>
  69.             ";
  70.         }
  71.         // line 21
  72.         echo "            ";
  73.         if (twig_test_empty((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'21$this->source); })()))) {
  74.             // line 22
  75.             echo "                <div class=\"login\">
  76.                     <a href=\"";
  77.             // line 23
  78.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  79.             echo "\" class=\"logar\">";
  80.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("sign_in""head"), "html"nulltrue);
  81.             echo "</a>
  82.                     <a href=\"";
  83.             // line 24
  84.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  85.             echo "\" class=\"btn-login\">";
  86.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("create_a_user""head"), "html"nulltrue);
  87.             echo "</a>
  88.                 </div>
  89.             ";
  90.         }
  91.         // line 27
  92.         echo "
  93.             ";
  94.         // line 29
  95.         echo "            ";
  96.         if (((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'29$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["menuMobileNotificacoes"]) || array_key_exists("menuMobileNotificacoes"$context) ? $context["menuMobileNotificacoes"] : (function () { throw new RuntimeError('Variable "menuMobileNotificacoes" does not exist.'29$this->source); })()), "show", [], "any"falsefalsefalse29))) {
  97.             // line 30
  98.             echo "                ";
  99.             // line 31
  100.             echo "                <button class=\"btn-notif-mobile\" data-slide-nav=\"";
  101.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["menuMobileNotificacoes"]) || array_key_exists("menuMobileNotificacoes"$context) ? $context["menuMobileNotificacoes"] : (function () { throw new RuntimeError('Variable "menuMobileNotificacoes" does not exist.'31$this->source); })()), "link", [], "any"falsefalsefalse31), "html"nulltrue);
  102.             echo "\">
  103.                     ";
  104.             // line 32
  105.             echo twig_call_macro($macros["__internal_d5fa573e216bd191b84afefd941e93c1408974db109f418b15ae66540b14b1fe"], "macro_notificon", ["bell", (isset($context["totalNotifications"]) || array_key_exists("totalNotifications"$context) ? $context["totalNotifications"] : (function () { throw new RuntimeError('Variable "totalNotifications" does not exist.'32$this->source); })())], 32$context$this->getSourceContext());
  106.             echo "
  107.                 </button>
  108.             ";
  109.         }
  110.         // line 35
  111.         echo "        </header>
  112.         ";
  113.         // line 38
  114.         echo "        <div class=\"menu-scroll principal\">
  115.             ";
  116.         // line 40
  117.         echo "            ";
  118.         if ((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'40$this->source); })())) {
  119.             // line 41
  120.             echo "                <div class=\"user-options js--user-options\" data-status=\"closed\">
  121.                     <ul class=\"menu-lista\">
  122.                         ";
  123.             // line 44
  124.             echo "                        ";
  125.             if ((isset($context["canAccessAdm"]) || array_key_exists("canAccessAdm"$context) ? $context["canAccessAdm"] : (function () { throw new RuntimeError('Variable "canAccessAdm" does not exist.'44$this->source); })())) {
  126.                 // line 45
  127.                 echo "                            <li class=\"menu-item-admin\"><a href=\"";
  128.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("adminEad");
  129.                 echo "\"><span><i class=\"fas fa-cogs\"></i>";
  130.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("admin""menu"), "html"nulltrue);
  131.                 echo "</span></a></li>
  132.                         ";
  133.             }
  134.             // line 47
  135.             echo "
  136.                         ";
  137.             // line 49
  138.             echo "                        ";
  139.             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.'49$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.'49$this->source); })()), "userOrigin", [], "any"falsefalsefalse49))) {
  140.                 // line 50
  141.                 echo "                            <li class=\"menu-item-back-admin\"><a href=\"";
  142.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userLogoff");
  143.                 echo "\"><span><i class=\"fas fa-cogs\"></i>";
  144.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_as_admin""menu"), "html"nulltrue);
  145.                 echo "</span></a></li>
  146.                         ";
  147.             }
  148.             // line 52
  149.             echo "                        
  150.                         <li class=\"menu-item-enrollment\"><a href=\"";
  151.             // line 53
  152.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("enrollentList");
  153.             echo "\" class=\"custom-client-enrollments\"><span><i class=\"fas fa-file-alt\"></i>";
  154.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("enrollments""menu"), "html"nulltrue);
  155.             echo "</span></a></li>
  156.                         <li class=\"menu-item-purchases\"><a href=\"";
  157.             // line 54
  158.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("transactionList");
  159.             echo "\" class=\"custom-client-purchases\"><span><i class=\"fas fa-shopping-bag\"></i>";
  160.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("purchases""menu"), "html"nulltrue);
  161.             echo "</span></a></li>
  162.                         ";
  163.             // line 57
  164.             echo "                        ";
  165.             if ($this->extensions['EADPlataforma\Twig\FunctionsExtension']->isModuleActive("product_subscription_module")) {
  166.                 // line 58
  167.                 echo "                            <li class=\"menu-item-subscriptions\"><a href=\"";
  168.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userSubscriptionList");
  169.                 echo "\" class=\"custom-client-subscriptions\"><span><i class=\"far fa-credit-card\"></i>";
  170.                 echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("subscriptions""menu"), "html"nulltrue);
  171.                 echo "</span></a></li>
  172.                         ";
  173.             }
  174.             // line 60
  175.             echo "
  176.                         <li class=\"menu-item-messages\"><a href=\"";
  177.             // line 61
  178.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("message");
  179.             echo "\" class=\"custom-client-messages\"><span><i class=\"fas fa-envelope\"></i>";
  180.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("messages""menu"), "html"nulltrue);
  181.             echo "</span></a></li>
  182.                         <li class=\"menu-item-profile\"><a href=\"";
  183.             // line 62
  184.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userProfile");
  185.             echo "\" class=\"custom-client-edit_profile\"><span><i class=\"fas fa-cog\"></i>";
  186.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("edit_profile""menu"), "html"nulltrue);
  187.             echo "</span></a></li>
  188.                         <li class=\"menu-item-logoff\"><a href=\"";
  189.             // line 63
  190.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logoff");
  191.             echo "\" class=\"custom-client-sign_out\"><span><i class=\"fas fa-sign-out-alt\"></i>";
  192.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("sign_out""menu"), "html"nulltrue);
  193.             echo "</span></a></li>
  194.                     </ul>
  195.                 </div>
  196.             ";
  197.         }
  198.         // line 67
  199.         echo "
  200.             <ul class=\"menu-lista\">
  201.                 ";
  202.         // line 69
  203.         $context['_parent'] = $context;
  204.         $context['_seq'] = twig_ensure_traversable((isset($context["menuMobile"]) || array_key_exists("menuMobile"$context) ? $context["menuMobile"] : (function () { throw new RuntimeError('Variable "menuMobile" does not exist.'69$this->source); })()));
  205.         foreach ($context['_seq'] as $context["_key"] => $context["menuItem"]) {
  206.             // line 70
  207.             echo "                    ";
  208.             if (twig_get_attribute($this->env$this->source$context["menuItem"], "show", [], "any"falsefalsefalse70)) {
  209.                 // line 71
  210.                 echo "                        ";
  211.                 $context["text"] = twig_upper_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "text", [], "any"falsefalsefalse71));
  212.                 // line 72
  213.                 echo "                        <li class=\"menu-item-";
  214.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "class", [], "any"falsefalsefalse72), "html"nulltrue);
  215.                 echo "\">
  216.                             ";
  217.                 // line 74
  218.                 echo "                            ";
  219.                 if ((((twig_get_attribute($this->env$this->source$context["menuItem"], "slide", [], "any"truetruefalse74) &&  !(null === twig_get_attribute($this->env$this->source$context["menuItem"], "slide", [], "any"falsefalsefalse74)))) ? (twig_get_attribute($this->env$this->source$context["menuItem"], "slide", [], "any"falsefalsefalse74)) : (false))) {
  220.                     // line 75
  221.                     echo "                                <a data-slide-nav=\"";
  222.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "link", [], "any"falsefalsefalse75), "html"nulltrue);
  223.                     echo "\"><span>";
  224.                     echo twig_escape_filter($this->env, (isset($context["text"]) || array_key_exists("text"$context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.'75$this->source); })()), "html"nulltrue);
  225.                     echo "</span><i>";
  226.                     echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-right"], 75$context$this->getSourceContext());
  227.                     echo "</i></a>
  228.                             ";
  229.                     // line 77
  230.                     echo "                            ";
  231.                 } else {
  232.                     // line 78
  233.                     echo "                                <a href=\"";
  234.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["menuItem"], "link", [], "any"falsefalsefalse78), "html"nulltrue);
  235.                     echo "\"><span>";
  236.                     echo twig_escape_filter($this->env, (isset($context["text"]) || array_key_exists("text"$context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.'78$this->source); })()), "html"nulltrue);
  237.                     echo "</span></a>
  238.                             ";
  239.                 }
  240.                 // line 80
  241.                 echo "                        </li>
  242.                     ";
  243.             }
  244.             // line 82
  245.             echo "                ";
  246.         }
  247.         $_parent $context['_parent'];
  248.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuItem'], $context['_parent'], $context['loop']);
  249.         $context array_intersect_key($context$_parent) + $_parent;
  250.         // line 83
  251.         echo "            </ul>
  252.         </div>
  253.     </div>
  254.     ";
  255.         // line 88
  256.         echo "    <div class=\"menu-slide\" data-slide-id=\"pages\" data-slide-status=\"off\">
  257.         <header>
  258.             <a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>";
  259.         // line 90
  260.         echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-left"], 90$context$this->getSourceContext());
  261.         echo "</i> 
  262.             <span>";
  263.         // line 91
  264.         echo twig_escape_filter($this->envtwig_upper_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("pages""head")), "html"nulltrue);
  265.         echo "</span></a>
  266.         </header>
  267.         ";
  268.         // line 95
  269.         echo "        <div class=\"menu-scroll\">
  270.             <ul class=\"menu-lista\">
  271.                 ";
  272.         // line 97
  273.         $context['_parent'] = $context;
  274.         $context['_seq'] = twig_ensure_traversable((isset($context["pages"]) || array_key_exists("pages"$context) ? $context["pages"] : (function () { throw new RuntimeError('Variable "pages" does not exist.'97$this->source); })()));
  275.         foreach ($context['_seq'] as $context["i"] => $context["page"]) {
  276.             // line 98
  277.             echo "                    ";
  278.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["page"], "showType", [], "any"falsefalsefalse98), 1))) {
  279.                 // line 99
  280.                 echo "                        <li class=\"menu-item-page-";
  281.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "id", [], "any"falsefalsefalse99), "html"nulltrue);
  282.                 echo "\">
  283.                             <a href=\"";
  284.                 // line 100
  285.                 echo twig_escape_filter($this->env, (((=== twig_compare(twig_get_attribute($this->env$this->source$context["page"], "useExternalLink", [], "any"falsefalsefalse100), 1))) ? (twig_get_attribute($this->env$this->source$context["page"], "externalLink", [], "any"falsefalsefalse100)) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pageDetail", ["slug" => twig_get_attribute($this->env$this->source$context["page"], "slug", [], "any"falsefalsefalse100)]))), "html"nulltrue);
  286.                 echo "\"
  287.                                 ";
  288.                 // line 101
  289.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["page"], "useExternalLink", [], "any"falsefalsefalse101), 1))) {
  290.                     echo "target=\"_blank\"";
  291.                 }
  292.                 echo ">
  293.                                 <span>";
  294.                 // line 102
  295.                 echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "title", [], "any"falsefalsefalse102)), "html"nulltrue);
  296.                 echo "</span>
  297.                             </a>
  298.                         </li>
  299.                     ";
  300.             }
  301.             // line 106
  302.             echo "                ";
  303.         }
  304.         $_parent $context['_parent'];
  305.         unset($context['_seq'], $context['_iterated'], $context['i'], $context['page'], $context['_parent'], $context['loop']);
  306.         $context array_intersect_key($context$_parent) + $_parent;
  307.         // line 107
  308.         echo "            </ul>
  309.         </div>
  310.     </div>
  311.     ";
  312.         // line 111
  313.         if (((isset($context["hasProducts"]) || array_key_exists("hasProducts"$context) ? $context["hasProducts"] : (function () { throw new RuntimeError('Variable "hasProducts" does not exist.'111$this->source); })()) && (=== twig_compare(twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'111$this->source); })())), 0)))) {
  314.             // line 112
  315.             echo "        ";
  316.             // line 113
  317.             echo "        <div class=\"menu-slide\" data-slide-id=\"categorias\" data-slide-status=\"off\">
  318.             <header>
  319.                 <a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>";
  320.             // line 115
  321.             echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-left"], 115$context$this->getSourceContext());
  322.             echo "</i> 
  323.                 <span>";
  324.             // line 116
  325.             echo twig_escape_filter($this->envtwig_upper_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories""head")), "html"nulltrue);
  326.             echo "</span></a>
  327.             </header>
  328.             ";
  329.             // line 120
  330.             echo "            <div class=\"menu-scroll\">
  331.                 <ul class=\"menu-lista\">
  332.                     ";
  333.             // line 122
  334.             $context['_parent'] = $context;
  335.             $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'122$this->source); })()));
  336.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  337.                 // line 123
  338.                 echo "                        ";
  339.                 if (twig_get_attribute($this->env$this->source$context["category"], "hasProduct", [], "method"falsefalsefalse123)) {
  340.                     // line 124
  341.                     echo "                            <li class=\"menu-item-category-";
  342.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse124), "html"nulltrue);
  343.                     echo "\">
  344.                                 <a href=\"";
  345.                     // line 125
  346.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("productListCategory", ["type" => "produtos""slug" => twig_get_attribute($this->env$this->source$context["category"], "slug", [], "any"falsefalsefalse125)]), "html"nulltrue);
  347.                     echo "\">
  348.                                 <span>";
  349.                     // line 126
  350.                     echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse126)), "html"nulltrue);
  351.                     echo "</span></a>
  352.                             </li>
  353.                         ";
  354.                 }
  355.                 // line 129
  356.                 echo "                    ";
  357.             }
  358.             $_parent $context['_parent'];
  359.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  360.             $context array_intersect_key($context$_parent) + $_parent;
  361.             // line 130
  362.             echo "                </ul>
  363.             </div>
  364.         </div>
  365.     ";
  366.         }
  367.         // line 134
  368.         echo "
  369.     ";
  370.         // line 135
  371.         if ((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'135$this->source); })())) {
  372.             // line 136
  373.             echo "        ";
  374.             // line 137
  375.             echo "        <div class=\"menu-slide\" data-slide-id=\"notificacoes\" data-slide-status=\"off\">
  376.             <header>
  377.                 <a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>";
  378.             // line 139
  379.             echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-left"], 139$context$this->getSourceContext());
  380.             echo "</i> 
  381.                 <span>";
  382.             // line 140
  383.             echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["menuMobileNotificacoes"]) || array_key_exists("menuMobileNotificacoes"$context) ? $context["menuMobileNotificacoes"] : (function () { throw new RuntimeError('Variable "menuMobileNotificacoes" does not exist.'140$this->source); })()), "text", [], "any"falsefalsefalse140)), "html"nulltrue);
  384.             echo "</span></a>
  385.             </header>
  386.             ";
  387.             // line 144
  388.             echo "            <div class=\"fix-notifications fix-notifications-mobile\" data-status=\"off\">
  389.                 ";
  390.             // line 145
  391.             $this->loadTemplate("website/includes/fix-notifications.html.twig""website/includes/menu-mobile-site.html.twig"145)->display($context);
  392.             // line 146
  393.             echo "            </div>
  394.         </div>
  395.     ";
  396.         }
  397.         // line 149
  398.         echo "
  399. ";
  400.         // line 151
  401.         echo "</div>";
  402.         
  403.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  404.         
  405.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  406.     }
  407.     public function getTemplateName()
  408.     {
  409.         return "website/includes/menu-mobile-site.html.twig";
  410.     }
  411.     public function isTraitable()
  412.     {
  413.         return false;
  414.     }
  415.     public function getDebugInfo()
  416.     {
  417.         return array (  418 => 151,  415 => 149,  410 => 146,  408 => 145,  405 => 144,  399 => 140,  395 => 139,  391 => 137,  389 => 136,  387 => 135,  384 => 134,  378 => 130,  372 => 129,  366 => 126,  362 => 125,  357 => 124,  354 => 123,  350 => 122,  346 => 120,  340 => 116,  336 => 115,  332 => 113,  330 => 112,  328 => 111,  322 => 107,  316 => 106,  309 => 102,  303 => 101,  299 => 100,  294 => 99,  291 => 98,  287 => 97,  283 => 95,  277 => 91,  273 => 90,  269 => 88,  263 => 83,  257 => 82,  253 => 80,  245 => 78,  242 => 77,  233 => 75,  230 => 74,  225 => 72,  222 => 71,  219 => 70,  215 => 69,  211 => 67,  202 => 63,  196 => 62,  190 => 61,  187 => 60,  179 => 58,  176 => 57,  169 => 54,  163 => 53,  160 => 52,  152 => 50,  149 => 49,  146 => 47,  138 => 45,  135 => 44,  131 => 41,  128 => 40,  125 => 38,  121 => 35,  115 => 32,  110 => 31,  108 => 30,  105 => 29,  102 => 27,  94 => 24,  88 => 23,  85 => 22,  82 => 21,  73 => 17,  68 => 15,  61 => 11,  57 => 9,  55 => 8,  51 => 6,  47 => 3,  45 => 2,  43 => 1,);
  418.     }
  419.     public function getSourceContext()
  420.     {
  421.         return new Source("{% from 'utils.html.twig' import ico, imgUpload %}
  422. {% from \"website/controls/notification-icon.html.twig\" import notificon %}
  423. <div class=\"menu-mobile-box\" data-menu-show=\"site\">
  424.     {# SLIDE: INICIAL #}
  425.     <div class=\"menu-slide\" data-slide-id=\"inicial\" data-slide-status=\"on\">
  426.         <header>
  427.             {% if user %}
  428.                 <div>
  429.                     <div class=\"avatar\">
  430.                         {{ imgUpload(user.photo, enum('AbstractEnum::PATH_PROFILES'), 'user-profile-small', user.name) }}
  431.                     </div>
  432.                 </div>
  433.                 <div class=\"user\">
  434.                     <p class=\"name\">{{ user.name }}</p>
  435.                     <a class=\"link tema--cor-tx js--open-user-opts\">
  436.                         {{ getLanguage('options', 'menu') }}&nbsp;{{ ico('chevron-down') }}
  437.                     </a>
  438.                 </div>
  439.             {% endif %}
  440.             {% if user is empty %}
  441.                 <div class=\"login\">
  442.                     <a href=\"{{ path('login') }}\" class=\"logar\">{{ getLanguage('sign_in', 'head') }}</a>
  443.                     <a href=\"{{ path('register') }}\" class=\"btn-login\">{{ getLanguage('create_a_user', 'head') }}</a>
  444.                 </div>
  445.             {% endif %}
  446.             {# MOBILE NOTIFICAÇÕES #}
  447.             {% if user and menuMobileNotificacoes.show %}
  448.                 {# SLIDE #}
  449.                 <button class=\"btn-notif-mobile\" data-slide-nav=\"{{ menuMobileNotificacoes.link }}\">
  450.                     {{ notificon('bell', totalNotifications) }}
  451.                 </button>
  452.             {% endif %}
  453.         </header>
  454.         {# MENU MODULES #}
  455.         <div class=\"menu-scroll principal\">
  456.             {# USER OPTIONS #}
  457.             {% if user %}
  458.                 <div class=\"user-options js--user-options\" data-status=\"closed\">
  459.                     <ul class=\"menu-lista\">
  460.                         {# ACESSO COMO ADMIN #}
  461.                         {% if canAccessAdm %}
  462.                             <li class=\"menu-item-admin\"><a href=\"{{ path('adminEad') }}\"><span><i class=\"fas fa-cogs\"></i>{{ getLanguage('admin', 'menu') }}</span></a></li>
  463.                         {% endif %}
  464.                         {# ADMIN LOGOUT #}
  465.                         {% if session is defined and session and session.userOrigin %}
  466.                             <li class=\"menu-item-back-admin\"><a href=\"{{ path('userLogoff') }}\"><span><i class=\"fas fa-cogs\"></i>{{ getLanguage('back_as_admin', 'menu') }}</span></a></li>
  467.                         {% endif %}
  468.                         
  469.                         <li class=\"menu-item-enrollment\"><a href=\"{{ path('enrollentList') }}\" class=\"custom-client-enrollments\"><span><i class=\"fas fa-file-alt\"></i>{{ getLanguage('enrollments', 'menu') }}</span></a></li>
  470.                         <li class=\"menu-item-purchases\"><a href=\"{{ path('transactionList') }}\" class=\"custom-client-purchases\"><span><i class=\"fas fa-shopping-bag\"></i>{{ getLanguage('purchases', 'menu') }}</span></a></li>
  471.                         {# SUBSCRIPTIONS #}
  472.                         {% if isModuleActive(\"product_subscription_module\") %}
  473.                             <li class=\"menu-item-subscriptions\"><a href=\"{{ path('userSubscriptionList') }}\" class=\"custom-client-subscriptions\"><span><i class=\"far fa-credit-card\"></i>{{ getLanguage('subscriptions', 'menu') }}</span></a></li>
  474.                         {% endif %}
  475.                         <li class=\"menu-item-messages\"><a href=\"{{ path('message') }}\" class=\"custom-client-messages\"><span><i class=\"fas fa-envelope\"></i>{{ getLanguage('messages', 'menu') }}</span></a></li>
  476.                         <li class=\"menu-item-profile\"><a href=\"{{ path('userProfile') }}\" class=\"custom-client-edit_profile\"><span><i class=\"fas fa-cog\"></i>{{ getLanguage('edit_profile', 'menu') }}</span></a></li>
  477.                         <li class=\"menu-item-logoff\"><a href=\"{{ path('logoff') }}\" class=\"custom-client-sign_out\"><span><i class=\"fas fa-sign-out-alt\"></i>{{ getLanguage('sign_out', 'menu') }}</span></a></li>
  478.                     </ul>
  479.                 </div>
  480.             {% endif %}
  481.             <ul class=\"menu-lista\">
  482.                 {% for menuItem in menuMobile %}
  483.                     {% if menuItem.show %}
  484.                         {% set text = menuItem.text|upper %}
  485.                         <li class=\"menu-item-{{ menuItem.class }}\">
  486.                             {# SLIDE #}
  487.                             {% if menuItem.slide ?? false %}
  488.                                 <a data-slide-nav=\"{{ menuItem.link }}\"><span>{{ text }}</span><i>{{ ico('chevron-right') }}</i></a>
  489.                             {# URL #}
  490.                             {% else %}
  491.                                 <a href=\"{{ menuItem.link }}\"><span>{{ text }}</span></a>
  492.                             {% endif %}
  493.                         </li>
  494.                     {% endif %}
  495.                 {% endfor %}
  496.             </ul>
  497.         </div>
  498.     </div>
  499.     {# SLIDE: PAGES #}
  500.     <div class=\"menu-slide\" data-slide-id=\"pages\" data-slide-status=\"off\">
  501.         <header>
  502.             <a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>{{ ico('chevron-left') }}</i> 
  503.             <span>{{ getLanguage('pages', 'head')|upper }}</span></a>
  504.         </header>
  505.         {# MENU MODULES #}
  506.         <div class=\"menu-scroll\">
  507.             <ul class=\"menu-lista\">
  508.                 {% for i, page in pages %}
  509.                     {% if page.showType == 1 %}
  510.                         <li class=\"menu-item-page-{{ page.id }}\">
  511.                             <a href=\"{{ (page.useExternalLink == 1)? page.externalLink : path('pageDetail', { slug:page.slug }) }}\"
  512.                                 {% if page.useExternalLink == 1 %}target=\"_blank\"{% endif %}>
  513.                                 <span>{{ page.title|upper }}</span>
  514.                             </a>
  515.                         </li>
  516.                     {% endif %}
  517.                 {% endfor %}
  518.             </ul>
  519.         </div>
  520.     </div>
  521.     {% if hasProducts and categories|length > 0 %}
  522.         {# SLIDE: CATEGORIAS #}
  523.         <div class=\"menu-slide\" data-slide-id=\"categorias\" data-slide-status=\"off\">
  524.             <header>
  525.                 <a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>{{ ico('chevron-left') }}</i> 
  526.                 <span>{{ getLanguage('categories', 'head')|upper }}</span></a>
  527.             </header>
  528.             {# MENU MODULES #}
  529.             <div class=\"menu-scroll\">
  530.                 <ul class=\"menu-lista\">
  531.                     {% for category in categories %}
  532.                         {% if category.hasProduct() %}
  533.                             <li class=\"menu-item-category-{{ category.id }}\">
  534.                                 <a href=\"{{ path('productListCategory', { type: 'produtos', slug: category.slug }) }}\">
  535.                                 <span>{{ category.category|upper }}</span></a>
  536.                             </li>
  537.                         {% endif %}
  538.                     {% endfor %}
  539.                 </ul>
  540.             </div>
  541.         </div>
  542.     {% endif %}
  543.     {% if user %}
  544.         {# SLIDE: NOTIFICAÇÕES #}
  545.         <div class=\"menu-slide\" data-slide-id=\"notificacoes\" data-slide-status=\"off\">
  546.             <header>
  547.                 <a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>{{ ico('chevron-left') }}</i> 
  548.                 <span>{{ menuMobileNotificacoes.text|upper }}</span></a>
  549.             </header>
  550.             {# MENU MODULES #}
  551.             <div class=\"fix-notifications fix-notifications-mobile\" data-status=\"off\">
  552.                 {% include 'website/includes/fix-notifications.html.twig' %}
  553.             </div>
  554.         </div>
  555.     {% endif %}
  556. {# -/ .menu-mobile-box #}
  557. </div>""website/includes/menu-mobile-site.html.twig""/var/www/html/templates/website/includes/menu-mobile-site.html.twig");
  558.     }
  559. }