<?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;
/* website/includes/menu-mobile-site.html.twig */
class __TwigTemplate_b6458bc6933e964a38db949b6541b6c4b4927aa2d3b04a2563eb319f77a0ab45 extends 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", "website/includes/menu-mobile-site.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/includes/menu-mobile-site.html.twig"));
// line 1
$macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"] = $this->macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"] = $this->loadTemplate("utils.html.twig", "website/includes/menu-mobile-site.html.twig", 1)->unwrap();
// line 2
$macros["__internal_d5fa573e216bd191b84afefd941e93c1408974db109f418b15ae66540b14b1fe"] = $this->macros["__internal_d5fa573e216bd191b84afefd941e93c1408974db109f418b15ae66540b14b1fe"] = $this->loadTemplate("website/controls/notification-icon.html.twig", "website/includes/menu-mobile-site.html.twig", 2)->unwrap();
// line 3
echo "<div class=\"menu-mobile-box\" data-menu-show=\"site\">
";
// line 6
echo " <div class=\"menu-slide\" data-slide-id=\"inicial\" data-slide-status=\"on\">
<header>
";
// line 8
if ((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 8, $this->source); })())) {
// line 9
echo " <div>
<div class=\"avatar\">
";
// line 11
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", false, false, false, 11), $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", false, false, false, 11)], 11, $context, $this->getSourceContext());
echo "
</div>
</div>
<div class=\"user\">
<p class=\"name\">";
// line 15
echo twig_escape_filter($this->env, 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.', 15, $this->source); })()), "name", [], "any", false, false, false, 15), "html", null, true);
echo "</p>
<a class=\"link tema--cor-tx js--open-user-opts\">
";
// line 17
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("options", "menu"), "html", null, true);
echo " ";
echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-down"], 17, $context, $this->getSourceContext());
echo "
</a>
</div>
";
}
// line 21
echo " ";
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); })()))) {
// line 22
echo " <div class=\"login\">
<a href=\"";
// line 23
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\" class=\"logar\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("sign_in", "head"), "html", null, true);
echo "</a>
<a href=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
echo "\" class=\"btn-login\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("create_a_user", "head"), "html", null, true);
echo "</a>
</div>
";
}
// line 27
echo "
";
// line 29
echo " ";
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", false, false, false, 29))) {
// line 30
echo " ";
// line 31
echo " <button class=\"btn-notif-mobile\" data-slide-nav=\"";
echo twig_escape_filter($this->env, 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.', 31, $this->source); })()), "link", [], "any", false, false, false, 31), "html", null, true);
echo "\">
";
// line 32
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());
echo "
</button>
";
}
// line 35
echo " </header>
";
// line 38
echo " <div class=\"menu-scroll principal\">
";
// line 40
echo " ";
if ((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 40, $this->source); })())) {
// line 41
echo " <div class=\"user-options js--user-options\" data-status=\"closed\">
<ul class=\"menu-lista\">
";
// line 44
echo " ";
if ((isset($context["canAccessAdm"]) || array_key_exists("canAccessAdm", $context) ? $context["canAccessAdm"] : (function () { throw new RuntimeError('Variable "canAccessAdm" does not exist.', 44, $this->source); })())) {
// line 45
echo " <li class=\"menu-item-admin\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("adminEad");
echo "\"><span><i class=\"fas fa-cogs\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("admin", "menu"), "html", null, true);
echo "</span></a></li>
";
}
// line 47
echo "
";
// line 49
echo " ";
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", false, false, false, 49))) {
// line 50
echo " <li class=\"menu-item-back-admin\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userLogoff");
echo "\"><span><i class=\"fas fa-cogs\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("back_as_admin", "menu"), "html", null, true);
echo "</span></a></li>
";
}
// line 52
echo "
<li class=\"menu-item-enrollment\"><a href=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("enrollentList");
echo "\" class=\"custom-client-enrollments\"><span><i class=\"fas fa-file-alt\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("enrollments", "menu"), "html", null, true);
echo "</span></a></li>
<li class=\"menu-item-purchases\"><a href=\"";
// line 54
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("transactionList");
echo "\" class=\"custom-client-purchases\"><span><i class=\"fas fa-shopping-bag\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("purchases", "menu"), "html", null, true);
echo "</span></a></li>
";
// line 57
echo " ";
if ($this->extensions['EADPlataforma\Twig\FunctionsExtension']->isModuleActive("product_subscription_module")) {
// line 58
echo " <li class=\"menu-item-subscriptions\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userSubscriptionList");
echo "\" class=\"custom-client-subscriptions\"><span><i class=\"far fa-credit-card\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("subscriptions", "menu"), "html", null, true);
echo "</span></a></li>
";
}
// line 60
echo "
<li class=\"menu-item-messages\"><a href=\"";
// line 61
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("message");
echo "\" class=\"custom-client-messages\"><span><i class=\"fas fa-envelope\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("messages", "menu"), "html", null, true);
echo "</span></a></li>
<li class=\"menu-item-profile\"><a href=\"";
// line 62
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userProfile");
echo "\" class=\"custom-client-edit_profile\"><span><i class=\"fas fa-cog\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("edit_profile", "menu"), "html", null, true);
echo "</span></a></li>
<li class=\"menu-item-logoff\"><a href=\"";
// line 63
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logoff");
echo "\" class=\"custom-client-sign_out\"><span><i class=\"fas fa-sign-out-alt\"></i>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("sign_out", "menu"), "html", null, true);
echo "</span></a></li>
</ul>
</div>
";
}
// line 67
echo "
<ul class=\"menu-lista\">
";
// line 69
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["menuItem"]) {
// line 70
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["menuItem"], "show", [], "any", false, false, false, 70)) {
// line 71
echo " ";
$context["text"] = twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuItem"], "text", [], "any", false, false, false, 71));
// line 72
echo " <li class=\"menu-item-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuItem"], "class", [], "any", false, false, false, 72), "html", null, true);
echo "\">
";
// line 74
echo " ";
if ((((twig_get_attribute($this->env, $this->source, $context["menuItem"], "slide", [], "any", true, true, false, 74) && !(null === twig_get_attribute($this->env, $this->source, $context["menuItem"], "slide", [], "any", false, false, false, 74)))) ? (twig_get_attribute($this->env, $this->source, $context["menuItem"], "slide", [], "any", false, false, false, 74)) : (false))) {
// line 75
echo " <a data-slide-nav=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuItem"], "link", [], "any", false, false, false, 75), "html", null, true);
echo "\"><span>";
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", null, true);
echo "</span><i>";
echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-right"], 75, $context, $this->getSourceContext());
echo "</i></a>
";
// line 77
echo " ";
} else {
// line 78
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["menuItem"], "link", [], "any", false, false, false, 78), "html", null, true);
echo "\"><span>";
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", null, true);
echo "</span></a>
";
}
// line 80
echo " </li>
";
}
// line 82
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 83
echo " </ul>
</div>
</div>
";
// line 88
echo " <div class=\"menu-slide\" data-slide-id=\"pages\" data-slide-status=\"off\">
<header>
<a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>";
// line 90
echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-left"], 90, $context, $this->getSourceContext());
echo "</i>
<span>";
// line 91
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("pages", "head")), "html", null, true);
echo "</span></a>
</header>
";
// line 95
echo " <div class=\"menu-scroll\">
<ul class=\"menu-lista\">
";
// line 97
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["i"] => $context["page"]) {
// line 98
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["page"], "showType", [], "any", false, false, false, 98), 1))) {
// line 99
echo " <li class=\"menu-item-page-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "id", [], "any", false, false, false, 99), "html", null, true);
echo "\">
<a href=\"";
// line 100
echo twig_escape_filter($this->env, (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["page"], "useExternalLink", [], "any", false, false, false, 100), 1))) ? (twig_get_attribute($this->env, $this->source, $context["page"], "externalLink", [], "any", false, false, false, 100)) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pageDetail", ["slug" => twig_get_attribute($this->env, $this->source, $context["page"], "slug", [], "any", false, false, false, 100)]))), "html", null, true);
echo "\"
";
// line 101
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["page"], "useExternalLink", [], "any", false, false, false, 101), 1))) {
echo "target=\"_blank\"";
}
echo ">
<span>";
// line 102
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "title", [], "any", false, false, false, 102)), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 106
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['i'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 107
echo " </ul>
</div>
</div>
";
// line 111
if (((isset($context["hasProducts"]) || array_key_exists("hasProducts", $context) ? $context["hasProducts"] : (function () { throw new RuntimeError('Variable "hasProducts" does not exist.', 111, $this->source); })()) && (1 === 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)))) {
// line 112
echo " ";
// line 113
echo " <div class=\"menu-slide\" data-slide-id=\"categorias\" data-slide-status=\"off\">
<header>
<a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>";
// line 115
echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-left"], 115, $context, $this->getSourceContext());
echo "</i>
<span>";
// line 116
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("categories", "head")), "html", null, true);
echo "</span></a>
</header>
";
// line 120
echo " <div class=\"menu-scroll\">
<ul class=\"menu-lista\">
";
// line 122
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 123
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["category"], "hasProduct", [], "method", false, false, false, 123)) {
// line 124
echo " <li class=\"menu-item-category-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 124), "html", null, true);
echo "\">
<a href=\"";
// line 125
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", false, false, false, 125)]), "html", null, true);
echo "\">
<span>";
// line 126
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "category", [], "any", false, false, false, 126)), "html", null, true);
echo "</span></a>
</li>
";
}
// line 129
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 130
echo " </ul>
</div>
</div>
";
}
// line 134
echo "
";
// line 135
if ((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 135, $this->source); })())) {
// line 136
echo " ";
// line 137
echo " <div class=\"menu-slide\" data-slide-id=\"notificacoes\" data-slide-status=\"off\">
<header>
<a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>";
// line 139
echo twig_call_macro($macros["__internal_48614a2301796962e943f66e1f77ab08b0a645e6244cd25a4736e05a12985ca1"], "macro_ico", ["chevron-left"], 139, $context, $this->getSourceContext());
echo "</i>
<span>";
// line 140
echo twig_escape_filter($this->env, twig_upper_filter($this->env, 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.', 140, $this->source); })()), "text", [], "any", false, false, false, 140)), "html", null, true);
echo "</span></a>
</header>
";
// line 144
echo " <div class=\"fix-notifications fix-notifications-mobile\" data-status=\"off\">
";
// line 145
$this->loadTemplate("website/includes/fix-notifications.html.twig", "website/includes/menu-mobile-site.html.twig", 145)->display($context);
// line 146
echo " </div>
</div>
";
}
// line 149
echo "
";
// line 151
echo "</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "website/includes/menu-mobile-site.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico, imgUpload %}
{% from \"website/controls/notification-icon.html.twig\" import notificon %}
<div class=\"menu-mobile-box\" data-menu-show=\"site\">
{# SLIDE: INICIAL #}
<div class=\"menu-slide\" data-slide-id=\"inicial\" data-slide-status=\"on\">
<header>
{% if user %}
<div>
<div class=\"avatar\">
{{ imgUpload(user.photo, enum('AbstractEnum::PATH_PROFILES'), 'user-profile-small', user.name) }}
</div>
</div>
<div class=\"user\">
<p class=\"name\">{{ user.name }}</p>
<a class=\"link tema--cor-tx js--open-user-opts\">
{{ getLanguage('options', 'menu') }} {{ ico('chevron-down') }}
</a>
</div>
{% endif %}
{% if user is empty %}
<div class=\"login\">
<a href=\"{{ path('login') }}\" class=\"logar\">{{ getLanguage('sign_in', 'head') }}</a>
<a href=\"{{ path('register') }}\" class=\"btn-login\">{{ getLanguage('create_a_user', 'head') }}</a>
</div>
{% endif %}
{# MOBILE NOTIFICAÇÕES #}
{% if user and menuMobileNotificacoes.show %}
{# SLIDE #}
<button class=\"btn-notif-mobile\" data-slide-nav=\"{{ menuMobileNotificacoes.link }}\">
{{ notificon('bell', totalNotifications) }}
</button>
{% endif %}
</header>
{# MENU MODULES #}
<div class=\"menu-scroll principal\">
{# USER OPTIONS #}
{% if user %}
<div class=\"user-options js--user-options\" data-status=\"closed\">
<ul class=\"menu-lista\">
{# ACESSO COMO ADMIN #}
{% if canAccessAdm %}
<li class=\"menu-item-admin\"><a href=\"{{ path('adminEad') }}\"><span><i class=\"fas fa-cogs\"></i>{{ getLanguage('admin', 'menu') }}</span></a></li>
{% endif %}
{# ADMIN LOGOUT #}
{% if session is defined and session and session.userOrigin %}
<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>
{% endif %}
<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>
<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>
{# SUBSCRIPTIONS #}
{% if isModuleActive(\"product_subscription_module\") %}
<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>
{% endif %}
<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>
<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>
<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>
</ul>
</div>
{% endif %}
<ul class=\"menu-lista\">
{% for menuItem in menuMobile %}
{% if menuItem.show %}
{% set text = menuItem.text|upper %}
<li class=\"menu-item-{{ menuItem.class }}\">
{# SLIDE #}
{% if menuItem.slide ?? false %}
<a data-slide-nav=\"{{ menuItem.link }}\"><span>{{ text }}</span><i>{{ ico('chevron-right') }}</i></a>
{# URL #}
{% else %}
<a href=\"{{ menuItem.link }}\"><span>{{ text }}</span></a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{# SLIDE: PAGES #}
<div class=\"menu-slide\" data-slide-id=\"pages\" data-slide-status=\"off\">
<header>
<a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>{{ ico('chevron-left') }}</i>
<span>{{ getLanguage('pages', 'head')|upper }}</span></a>
</header>
{# MENU MODULES #}
<div class=\"menu-scroll\">
<ul class=\"menu-lista\">
{% for i, page in pages %}
{% if page.showType == 1 %}
<li class=\"menu-item-page-{{ page.id }}\">
<a href=\"{{ (page.useExternalLink == 1)? page.externalLink : path('pageDetail', { slug:page.slug }) }}\"
{% if page.useExternalLink == 1 %}target=\"_blank\"{% endif %}>
<span>{{ page.title|upper }}</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% if hasProducts and categories|length > 0 %}
{# SLIDE: CATEGORIAS #}
<div class=\"menu-slide\" data-slide-id=\"categorias\" data-slide-status=\"off\">
<header>
<a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>{{ ico('chevron-left') }}</i>
<span>{{ getLanguage('categories', 'head')|upper }}</span></a>
</header>
{# MENU MODULES #}
<div class=\"menu-scroll\">
<ul class=\"menu-lista\">
{% for category in categories %}
{% if category.hasProduct() %}
<li class=\"menu-item-category-{{ category.id }}\">
<a href=\"{{ path('productListCategory', { type: 'produtos', slug: category.slug }) }}\">
<span>{{ category.category|upper }}</span></a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if user %}
{# SLIDE: NOTIFICAÇÕES #}
<div class=\"menu-slide\" data-slide-id=\"notificacoes\" data-slide-status=\"off\">
<header>
<a class=\"link-back\" data-slide-nav=\"inicial\" data-slide-back><i>{{ ico('chevron-left') }}</i>
<span>{{ menuMobileNotificacoes.text|upper }}</span></a>
</header>
{# MENU MODULES #}
<div class=\"fix-notifications fix-notifications-mobile\" data-status=\"off\">
{% include 'website/includes/fix-notifications.html.twig' %}
</div>
</div>
{% endif %}
{# -/ .menu-mobile-box #}
</div>", "website/includes/menu-mobile-site.html.twig", "/var/www/html/templates/website/includes/menu-mobile-site.html.twig");
}
}