var/cache/dev/twig/88/882e89a20b7f74d6fdbfaf78cfcb8968.php line 39

  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. /* clienti/login_primary.html.twig */
  14. class __TwigTemplate_e3ee1c929e256c073d1214e7a8b2f070 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->blocks = [
  23.             'body' => [$this, 'block_body'],
  24.             'javascript' => [$this, 'block_javascript'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros = $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "clienti/login_primary.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "clienti/login_primary.html.twig"));
  39.         $this->parent = $this->loadTemplate("base.html.twig", "clienti/login_primary.html.twig", 1);
  40.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros = $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  54.         // line 4
  55.         echo "
  56. <div class=\"col-lg-12\" style=\"margin-top: 50px;\">
  57.     ";
  58.         // line 8
  59.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  60.             // line 9
  61.             echo "        ";
  62.             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);
  63.             echo "
  64.         <a href=\"";
  65.             // line 10
  66.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  67.             echo "\" class=\"btn btn-danger\">
  68.             ";
  69.             // line 11
  70.             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.', 11, $this->source); })()), "OttieniElementoDizionario", ["login_logout", "login"], "method", false, false, false, 11), "valoreUscita", [], "any", false, false, false, 11), "html", null, true);
  71.             echo "
  72.         </a>
  73.     ";
  74.         } else {
  75.             // line 14
  76.             echo "        <div class=\"col-lg-12\" style=\"margin-top: 50px;\">
  77.             <div class=\"col-sm-4 col-sm-offset-4\" style=\"margin-bottom: 10px;\">
  78.                 <img src=\"";
  79.             // line 16
  80.             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", ["Logo"], "method", false, false, false, 16), "html", null, true);
  81.             echo "\" class=\"img img-responsive center-block img-login-logo\" title=\"";
  82.             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);
  83.             echo "\">
  84.             </div>
  85.             <div class=\"col-lg-4 col-md-4 col-md-offset-4 col-lg-offset-4\">
  86.                 <div class=\"panel panel-info\">
  87.                     <div class=\"panel-heading\">";
  88.             // line 20
  89.             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.', 20, $this->source); })()), "OttieniElementoDizionario", ["login_title", "login"], "method", false, false, false, 20), "valoreUscita", [], "any", false, false, false, 20), "html", null, true);
  90.             echo "</div>
  91.                     <div class=\"panel-body\">
  92.                         ";
  93.             // line 22
  94.             if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })())) {
  95.                 // line 23
  96.                 echo "                            <div class=\"alert alert-danger\" style=\"padding: 5px; margin-bottom:5px;text-align:center;\">";
  97.                 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);
  98.                 echo "</div>
  99.                         ";
  100.             }
  101.             // line 25
  102.             echo "                        <form id=\"login_form_\" method=\"post\">
  103.                             <input type=\"hidden\" name=\"csrf_token\" value=\"";
  104.             // line 26
  105.             echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  106.             echo "\"/>
  107.                             <label for=\"username\">";
  108.             // line 28
  109.             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.', 28, $this->source); })()), "OttieniElementoDizionario", ["login_username", "login"], "method", false, false, false, 28), "valoreUscita", [], "any", false, false, false, 28), "html", null, true);
  110.             echo "</label>
  111.                             <input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\" value=\"";
  112.             // line 29
  113.             echo 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);
  114.             echo "\" required=\"required\" />
  115.                             <label for=\"password\">";
  116.             // line 31
  117.             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.', 31, $this->source); })()), "OttieniElementoDizionario", ["login_password", "login"], "method", false, false, false, 31), "valoreUscita", [], "any", false, false, false, 31), "html", null, true);
  118.             echo "</label>
  119.                             <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\" required=\"required\" />
  120.                             <div class=\"checkbox\">
  121.                                 <label>
  122.                                     <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />";
  123.             // line 36
  124.             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.', 36, $this->source); })()), "OttieniElementoDizionario", ["login_ricordami", "login"], "method", false, false, false, 36), "valoreUscita", [], "any", false, false, false, 36), "html", null, true);
  125.             echo "
  126.                                 </label>
  127.                             </div>
  128.                             ";
  129.             // line 40
  130.             if ((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); })()) != ""))) {
  131.                 // line 41
  132.                 echo "                                <a href=\"";
  133.                 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);
  134.                 echo "\"><img src=\"";
  135.                 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);
  136.                 echo "\"></a>
  137.                             ";
  138.             }
  139.             // line 43
  140.             echo "
  141.                             ";
  142.             // line 44
  143.             if ((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); })()) != ""))) {
  144.                 // line 45
  145.                 echo "                                <a href=\"";
  146.                 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);
  147.                 echo "\"><img src=\"";
  148.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/sistema/google-signin-btn.png"), "html", null, true);
  149.                 echo "\"></a>
  150.                             ";
  151.             }
  152.             // line 47
  153.             echo "
  154.                             <input type=\"submit\" id=\"_submit\" class=\"btn btn-success form-inline\" name=\"_submit\" value=\"";
  155.             // line 48
  156.             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.', 48, $this->source); })()), "OttieniElementoDizionario", ["login_login", "login"], "method", false, false, false, 48), "valoreUscita", [], "any", false, false, false, 48), "html", null, true);
  157.             echo "\" />
  158.                             ";
  159.             // line 49
  160.             if ((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")) {
  161.                 // line 50
  162.                 echo "                                <a style=\"margin-left: 15px; float: right;\" type=\"button\" href=\"";
  163.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  164.                 echo "\" class=\"btn btn-primary form-inline\">";
  165.                 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);
  166.                 echo "</a>
  167.                             ";
  168.             }
  169.             // line 52
  170.             echo "                            <br><br>
  171.                             <a href=\"";
  172.             // line 53
  173.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_dimenticata");
  174.             echo "\">";
  175.             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);
  176.             echo "</a>
  177.                         </form>
  178.                         <div id=\"form_access_error\" class=\"hidden\"></div>
  179.                     </div>
  180.                 </div>
  181.             </div>
  182.         </div>
  183.     ";
  184.         }
  185.         // line 62
  186.         echo "
  187. ";
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.         
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192.     }
  193.     // line 65
  194.     public function block_javascript($context, array $blocks = [])
  195.     {
  196.         $macros = $this->macros;
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
  201.         // line 66
  202.         echo "
  203.     <script type=\"text/javascript\">
  204.         \$(document).ready(function () {
  205.             \$(\"#form_dropdown_li\").html(\"\");
  206.             \$(\"#usa_tasto_login_testo_header\").html(\"\");
  207.         });
  208.     </script>
  209.     ";
  210.         // line 76
  211.         $this->displayParentBlock("javascript", $context, $blocks);
  212.         echo "
  213. ";
  214.         
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  216.         
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  218.     }
  219.     public function getTemplateName()
  220.     {
  221.         return "clienti/login_primary.html.twig";
  222.     }
  223.     public function isTraitable()
  224.     {
  225.         return false;
  226.     }
  227.     public function getDebugInfo()
  228.     {
  229.         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,);
  230.     }
  231.     public function getSourceContext()
  232.     {
  233.         return new Source("{% extends 'base.html.twig' %}
  234. {% block body %}
  235. <div class=\"col-lg-12\" style=\"margin-top: 50px;\">
  236.     {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  237.         {{ traduzione.OttieniElementoDizionario(\"login_collegato_come\", \"login\").valoreUscita ~ ' ' ~ app.user.username|default(\"\") }}
  238.         <a href=\"{{ path('app_logout') }}\" class=\"btn btn-danger\">
  239.             {{ traduzione.OttieniElementoDizionario(\"login_logout\", \"login\").valoreUscita }}
  240.         </a>
  241.     {% else %}
  242.         <div class=\"col-lg-12\" style=\"margin-top: 50px;\">
  243.             <div class=\"col-sm-4 col-sm-offset-4\" style=\"margin-bottom: 10px;\">
  244.                 <img src=\"{{ impostazioni.ritornaImpostazioneDaNome('Logo') }}\" class=\"img img-responsive center-block img-login-logo\" title=\"{{ impostazioni.ritornaImpostazioneDaNome('NomeShop') }}\">
  245.             </div>
  246.             <div class=\"col-lg-4 col-md-4 col-md-offset-4 col-lg-offset-4\">
  247.                 <div class=\"panel panel-info\">
  248.                     <div class=\"panel-heading\">{{ traduzione.OttieniElementoDizionario(\"login_title\", \"login\").valoreUscita }}</div>
  249.                     <div class=\"panel-body\">
  250.                         {% if error %}
  251.                             <div class=\"alert alert-danger\" style=\"padding: 5px; margin-bottom:5px;text-align:center;\">{{ error.message }}</div>
  252.                         {% endif %}
  253.                         <form id=\"login_form_\" method=\"post\">
  254.                             <input type=\"hidden\" name=\"csrf_token\" value=\"{{ csrf_token('authenticate') }}\"/>
  255.                             <label for=\"username\">{{ traduzione.OttieniElementoDizionario(\"login_username\", \"login\").valoreUscita }}</label>
  256.                             <input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\" value=\"{{ last_username }}\" required=\"required\" />
  257.                             <label for=\"password\">{{ traduzione.OttieniElementoDizionario(\"login_password\", \"login\").valoreUscita }}</label>
  258.                             <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\" required=\"required\" />
  259.                             <div class=\"checkbox\">
  260.                                 <label>
  261.                                     <input type=\"checkbox\" id=\"remember_me\" name=\"_remember_me\" value=\"on\" />{{ traduzione.OttieniElementoDizionario(\"login_ricordami\", \"login\").valoreUscita }}
  262.                                 </label>
  263.                             </div>
  264.                             {% if fb_login_url is defined and fb_login_url != '' %}
  265.                                 <a href=\"{{ fb_login_url }}\"><img src=\"{{ asset('img/sistema/facebook-sign-in-button-png-26.png') }}\"></a>
  266.                             {% endif %}
  267.                             {% if google_login_url is defined and google_login_url != '' %}
  268.                                 <a href=\"{{ google_login_url }}\"><img src=\"{{ asset('img/sistema/google-signin-btn.png') }}\"></a>
  269.                             {% endif %}
  270.                             <input type=\"submit\" id=\"_submit\" class=\"btn btn-success form-inline\" name=\"_submit\" value=\"{{ traduzione.OttieniElementoDizionario(\"login_login\", \"login\").valoreUscita }}\" />
  271.                             {% if impostazioni.ritornaImpostazioneDaNome('AbilitaRegistrazioneAutonomaUtenti') == '1' %}
  272.                                 <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>
  273.                             {% endif %}
  274.                             <br><br>
  275.                             <a href=\"{{ path('password_dimenticata') }}\">{{ traduzione.OttieniElementoDizionario(\"login_password_dimenticata\", \"login\").valoreUscita }}</a>
  276.                         </form>
  277.                         <div id=\"form_access_error\" class=\"hidden\"></div>
  278.                     </div>
  279.                 </div>
  280.             </div>
  281.         </div>
  282.     {% endif %}
  283. {%  endblock %}
  284. {% block javascript %}
  285.     <script type=\"text/javascript\">
  286.         \$(document).ready(function () {
  287.             \$(\"#form_dropdown_li\").html(\"\");
  288.             \$(\"#usa_tasto_login_testo_header\").html(\"\");
  289.         });
  290.     </script>
  291.     {{ parent() }}
  292. {% endblock %}", "clienti/login_primary.html.twig", "/var/www/webshop_testindustria/templates/clienti/login_primary.html.twig");
  293.     }
  294. }