var/cache/dev/twig/88/882e89a20b7f74d6fdbfaf78cfcb8968.php line 49
<?phpuse 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;/* clienti/login_primary.html.twig */class __TwigTemplate_e3ee1c929e256c073d1214e7a8b2f070 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['body' => [$this, 'block_body'],'javascript' => [$this, 'block_javascript'],];}protected function doGetParent(array $context){// line 1return "base.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "clienti/login_primary.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "clienti/login_primary.html.twig"));$this->parent = $this->loadTemplate("base.html.twig", "clienti/login_primary.html.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 3public function block_body($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));// line 4echo "<div class=\"col-lg-12\" style=\"margin-top: 50px;\">";// line 8if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {// line 9echo " ";echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 9, $this->source); })()), "OttieniElementoDizionario", ["login_collegato_come", "login"], "method", false, false, false, 9), "valoreUscita", [], "any", false, false, false, 9) . " ") . ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 9), "username", [], "any", true, true, false, 9)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 9), "username", [], "any", false, false, false, 9), "")) : (""))), "html", null, true);echo "<a href=\"";// line 10echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");echo "\" class=\"btn btn-danger\">";// line 11echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 11, $this->source); })()), "OttieniElementoDizionario", ["login_logout", "login"], "method", false, false, false, 11), "valoreUscita", [], "any", false, false, false, 11), "html", null, true);echo "</a>";} else {// line 14echo " <div class=\"col-lg-12\" style=\"margin-top: 50px;\"><div class=\"col-sm-4 col-sm-offset-4\" style=\"margin-bottom: 10px;\"><img src=\"";// line 16echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 16, $this->source); })()), "ritornaImpostazioneDaNome", ["Logo"], "method", false, false, false, 16), "html", null, true);echo "\" class=\"img img-responsive center-block img-login-logo\" title=\"";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 16, $this->source); })()), "ritornaImpostazioneDaNome", ["NomeShop"], "method", false, false, false, 16), "html", null, true);echo "\"></div><div class=\"col-lg-4 col-md-4 col-md-offset-4 col-lg-offset-4\"><div class=\"panel panel-info\"><div class=\"panel-heading\">";// line 20echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 20, $this->source); })()), "OttieniElementoDizionario", ["login_title", "login"], "method", false, false, false, 20), "valoreUscita", [], "any", false, false, false, 20), "html", null, true);echo "</div><div class=\"panel-body\">";// line 22if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })())) {// line 23echo " <div class=\"alert alert-danger\" style=\"padding: 5px; margin-bottom:5px;text-align:center;\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 23, $this->source); })()), "message", [], "any", false, false, false, 23), "html", null, true);echo "</div>";}// line 25echo " <form id=\"login_form_\" method=\"post\"><input type=\"hidden\" name=\"csrf_token\" value=\"";// line 26echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);echo "\"/><label for=\"username\">";// line 28echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 28, $this->source); })()), "OttieniElementoDizionario", ["login_username", "login"], "method", false, false, false, 28), "valoreUscita", [], "any", false, false, false, 28), "html", null, true);echo "</label><input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\" value=\"";// line 29echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username", $context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.', 29, $this->source); })()), "html", null, true);echo "\" required=\"required\" /><label for=\"password\">";// line 31echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 31, $this->source); })()), "OttieniElementoDizionario", ["login_password", "login"], "method", false, false, false, 31), "valoreUscita", [], "any", false, false, false, 31), "html", null, true);echo "</label><input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\" required=\"required\" /><div class=\"checkbox\"><label><input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />";// line 36echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 36, $this->source); })()), "OttieniElementoDizionario", ["login_ricordami", "login"], "method", false, false, false, 36), "valoreUscita", [], "any", false, false, false, 36), "html", null, true);echo "</label></div>";// line 40if ((array_key_exists("fb_login_url", $context) && ((isset($context["fb_login_url"]) || array_key_exists("fb_login_url", $context) ? $context["fb_login_url"] : (function () { throw new RuntimeError('Variable "fb_login_url" does not exist.', 40, $this->source); })()) != ""))) {// line 41echo " <a href=\"";echo twig_escape_filter($this->env, (isset($context["fb_login_url"]) || array_key_exists("fb_login_url", $context) ? $context["fb_login_url"] : (function () { throw new RuntimeError('Variable "fb_login_url" does not exist.', 41, $this->source); })()), "html", null, true);echo "\"><img src=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/sistema/facebook-sign-in-button-png-26.png"), "html", null, true);echo "\"></a>";}// line 43echo "";// line 44if ((array_key_exists("google_login_url", $context) && ((isset($context["google_login_url"]) || array_key_exists("google_login_url", $context) ? $context["google_login_url"] : (function () { throw new RuntimeError('Variable "google_login_url" does not exist.', 44, $this->source); })()) != ""))) {// line 45echo " <a href=\"";echo twig_escape_filter($this->env, (isset($context["google_login_url"]) || array_key_exists("google_login_url", $context) ? $context["google_login_url"] : (function () { throw new RuntimeError('Variable "google_login_url" does not exist.', 45, $this->source); })()), "html", null, true);echo "\"><img src=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/sistema/google-signin-btn.png"), "html", null, true);echo "\"></a>";}// line 47echo "<input type=\"submit\" id=\"_submit\" class=\"btn btn-success form-inline\" name=\"_submit\" value=\"";// line 48echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 48, $this->source); })()), "OttieniElementoDizionario", ["login_login", "login"], "method", false, false, false, 48), "valoreUscita", [], "any", false, false, false, 48), "html", null, true);echo "\" />";// line 49if ((twig_get_attribute($this->env, $this->source, (isset($context["impostazioni"]) || array_key_exists("impostazioni", $context) ? $context["impostazioni"] : (function () { throw new RuntimeError('Variable "impostazioni" does not exist.', 49, $this->source); })()), "ritornaImpostazioneDaNome", ["AbilitaRegistrazioneAutonomaUtenti"], "method", false, false, false, 49) == "1")) {// line 50echo " <a style=\"margin-left: 15px; float: right;\" type=\"button\" href=\"";echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");echo "\" class=\"btn btn-primary form-inline\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 50, $this->source); })()), "OttieniElementoDizionario", ["login_registrati", "login"], "method", false, false, false, 50), "valoreUscita", [], "any", false, false, false, 50), "html", null, true);echo "</a>";}// line 52echo " <br><br><a href=\"";// line 53echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_dimenticata");echo "\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["traduzione"]) || array_key_exists("traduzione", $context) ? $context["traduzione"] : (function () { throw new RuntimeError('Variable "traduzione" does not exist.', 53, $this->source); })()), "OttieniElementoDizionario", ["login_password_dimenticata", "login"], "method", false, false, false, 53), "valoreUscita", [], "any", false, false, false, 53), "html", null, true);echo "</a></form><div id=\"form_access_error\" class=\"hidden\"></div></div></div></div></div>";}// line 62echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 65public function block_javascript($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));// line 66echo "<script type=\"text/javascript\">\$(document).ready(function () {\$(\"#form_dropdown_li\").html(\"\");\$(\"#usa_tasto_login_testo_header\").html(\"\");});</script>";// line 76$this->displayParentBlock("javascript", $context, $blocks);echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "clienti/login_primary.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 240 => 76, 228 => 66, 218 => 65, 207 => 62, 193 => 53, 190 => 52, 182 => 50, 180 => 49, 176 => 48, 173 => 47, 165 => 45, 163 => 44, 160 => 43, 152 => 41, 150 => 40, 143 => 36, 135 => 31, 130 => 29, 126 => 28, 121 => 26, 118 => 25, 112 => 23, 110 => 22, 105 => 20, 96 => 16, 92 => 14, 86 => 11, 82 => 10, 77 => 9, 75 => 8, 69 => 4, 59 => 3, 36 => 1,);}public function getSourceContext(){return new Source("{% extends 'base.html.twig' %}{% block body %}<div class=\"col-lg-12\" style=\"margin-top: 50px;\">{% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}{{ traduzione.OttieniElementoDizionario(\"login_collegato_come\", \"login\").valoreUscita ~ ' ' ~ app.user.username|default(\"\") }}<a href=\"{{ path('app_logout') }}\" class=\"btn btn-danger\">{{ traduzione.OttieniElementoDizionario(\"login_logout\", \"login\").valoreUscita }}</a>{% else %}<div class=\"col-lg-12\" style=\"margin-top: 50px;\"><div class=\"col-sm-4 col-sm-offset-4\" style=\"margin-bottom: 10px;\"><img src=\"{{ impostazioni.ritornaImpostazioneDaNome('Logo') }}\" class=\"img img-responsive center-block img-login-logo\" title=\"{{ impostazioni.ritornaImpostazioneDaNome('NomeShop') }}\"></div><div class=\"col-lg-4 col-md-4 col-md-offset-4 col-lg-offset-4\"><div class=\"panel panel-info\"><div class=\"panel-heading\">{{ traduzione.OttieniElementoDizionario(\"login_title\", \"login\").valoreUscita }}</div><div class=\"panel-body\">{% if error %}<div class=\"alert alert-danger\" style=\"padding: 5px; margin-bottom:5px;text-align:center;\">{{ error.message }}</div>{% endif %}<form id=\"login_form_\" method=\"post\"><input type=\"hidden\" name=\"csrf_token\" value=\"{{ csrf_token('authenticate') }}\"/><label for=\"username\">{{ traduzione.OttieniElementoDizionario(\"login_username\", \"login\").valoreUscita }}</label><input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\" value=\"{{ last_username }}\" required=\"required\" /><label for=\"password\">{{ traduzione.OttieniElementoDizionario(\"login_password\", \"login\").valoreUscita }}</label><input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\" required=\"required\" /><div class=\"checkbox\"><label><input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />{{ traduzione.OttieniElementoDizionario(\"login_ricordami\", \"login\").valoreUscita }}</label></div>{% if fb_login_url is defined and fb_login_url != '' %}<a href=\"{{ fb_login_url }}\"><img src=\"{{ asset('img/sistema/facebook-sign-in-button-png-26.png') }}\"></a>{% endif %}{% if google_login_url is defined and google_login_url != '' %}<a href=\"{{ google_login_url }}\"><img src=\"{{ asset('img/sistema/google-signin-btn.png') }}\"></a>{% endif %}<input type=\"submit\" id=\"_submit\" class=\"btn btn-success form-inline\" name=\"_submit\" value=\"{{ traduzione.OttieniElementoDizionario(\"login_login\", \"login\").valoreUscita }}\" />{% if impostazioni.ritornaImpostazioneDaNome('AbilitaRegistrazioneAutonomaUtenti') == '1' %}<a style=\"margin-left: 15px; float: right;\" type=\"button\" href=\"{{ path('register') }}\" class=\"btn btn-primary form-inline\">{{ traduzione.OttieniElementoDizionario(\"login_registrati\", \"login\").valoreUscita }}</a>{% endif %}<br><br><a href=\"{{ path('password_dimenticata') }}\">{{ traduzione.OttieniElementoDizionario(\"login_password_dimenticata\", \"login\").valoreUscita }}</a></form><div id=\"form_access_error\" class=\"hidden\"></div></div></div></div></div>{% endif %}{% endblock %}{% block javascript %}<script type=\"text/javascript\">\$(document).ready(function () {\$(\"#form_dropdown_li\").html(\"\");\$(\"#usa_tasto_login_testo_header\").html(\"\");});</script>{{ parent() }}{% endblock %}", "clienti/login_primary.html.twig", "/var/www/webshop_testindustria/templates/clienti/login_primary.html.twig");}}