var/cache/dev/twig/a2/a216d995688675e541af117aef92b71d.php line 40

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. /* @Account/account/login.html.twig */
  14. class __TwigTemplate_b39110c29e07e3f479923668c02723de 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.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "@Account/account/login.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Account/account/login.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Account/account/login.html.twig"));
  40.         // line 3
  41.         if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })()) && array_key_exists("recaptcha"$context))) {
  42.             // line 4
  43.             if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'4$this->source); })()) == 2)) {
  44.                 // line 5
  45.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "https://www.google.com/recaptcha/api.js"], "method"falsefalsetrue5);
  46.             } elseif ((            // line 6
  47. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'6$this->source); })()) == 3)) {
  48.                 // line 7
  49.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> ("https://www.google.com/recaptcha/api.js?render=" . (isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic"$context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.'7$this->source); })()))], "method"falsefalsetrue7);
  50.             }
  51.         }
  52.         // line 11
  53.         $context["head_title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login Page");
  54.         // line 1
  55.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  56.         
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.     }
  61.     // line 13
  62.     public function block_content($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         // line 14
  70.         echo "    <div class=\"container mb-5 pb-5\">
  71.         <div class=\"row justify-content-center\">
  72.             ";
  73.         // line 17
  74.         if ((isset($context["signupsuccess"]) || array_key_exists("signupsuccess"$context) ? $context["signupsuccess"] : (function () { throw new RuntimeError('Variable "signupsuccess" does not exist.'17$this->source); })())) {
  75.             // line 18
  76.             echo "                <div class=\"col-lg-6\">
  77.                     <div class=\"alert alert-info\">
  78.                         <h3>";
  79.             // line 20
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your registration was successful"), "html"nulltrue);
  81.             echo "</h3><br>
  82.                         <p>";
  83.             // line 21
  84.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your request has been send for approval."), "html"nulltrue);
  85.             echo "</p>
  86.                     </div>
  87.                 </div>
  88.             ";
  89.         }
  90.         // line 25
  91.         echo "
  92.             <div class=\"col-lg-6\">
  93.                 <div class=\"login-panel panel panel-default\">
  94.                     <div class=\"panel-body area-col\">
  95.                         <div class=\"area-col-inner position-relative area-shape area-shape-default bg-secondary p-5\">
  96.                             <div class=\"panel-heading\">
  97.                                 <h1 class=\"text-center text-white mb-5\"><span class=\"heading-line white\">";
  98.         // line 37
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("LoginPortal - Login"), "html"nulltrue);
  100.         echo "</span></h1>
  101.                             </div>
  102.                             ";
  103.         // line 40
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("LoginPortal - Introtext");
  105.         echo "
  106.                             ";
  107.         // line 43
  108.         echo "
  109.                             ";
  110.         // line 46
  111.         echo "                            ";
  112.         $context['_parent'] = $context;
  113.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'46$this->source); })()), "flashes", [=> [=> "success"=> "warning"]], "method"falsefalsetrue46));
  114.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  115.             // line 47
  116.             echo "                                ";
  117.             $context['_parent'] = $context;
  118.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  119.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  120.                 // line 48
  121.                 echo "                                    <div id=\"messages\" class=\"flash-";
  122.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["label"], 48$this->source), "html"nulltrue);
  123.                 echo "\">
  124.                                         ";
  125.                 // line 49
  126.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["message"], 49$this->source), "html"nulltrue);
  127.                 echo "
  128.                                     </div>
  129.                                 ";
  130.             }
  131.             $_parent $context['_parent'];
  132.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  133.             $context array_intersect_key($context$_parent) + $_parent;
  134.             // line 52
  135.             echo "                            ";
  136.         }
  137.         $_parent $context['_parent'];
  138.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  139.         $context array_intersect_key($context$_parent) + $_parent;
  140.         // line 53
  141.         echo "
  142.                             <br>
  143.                             <div class=\"mt-3\">
  144.                                 ";
  145.         // line 58
  146.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'58$this->source); })()), 58$this->source), 'form_start');
  147.         echo "
  148.                                 <div class=\"row\">
  149.                                     <div class=\"col-12 mb-3\">
  150.                                         ";
  151.         // line 62
  152.         echo "                                        ";
  153.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'62$this->source); })()), "email", [], "any"falsefalsetrue62), 62$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  154.         echo "
  155.                                         ";
  156.         // line 63
  157.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'63$this->source); })()), "email", [], "any"falsefalsetrue63), 63$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'63$this->source); })()), "email", [], "any"falsefalsetrue63), "vars", [], "any"falsefalsetrue63), "label", [], "any"falsefalsetrue63)]]);
  158.         echo "
  159.                                         <div id=\"emailHelp\" class=\"form-text\">";
  160.         // line 65
  161.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'65$this->source); })()), "email", [], "any"falsefalsetrue65), 65$this->source), 'help');
  162.         echo "</div>
  163.                                         <div class=\"form-error\">
  164.                                             ";
  165.         // line 68
  166.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'68$this->source); })()), "email", [], "any"falsefalsetrue68), 68$this->source), 'errors');
  167.         echo "
  168.                                         </div>
  169.                                     </div>
  170.                                     <div class=\"col-12 mb-3\">
  171.                                         ";
  172.         // line 73
  173.         echo "                                        ";
  174.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'73$this->source); })()), "password", [], "any"falsefalsetrue73), 73$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  175.         echo "
  176.                                         ";
  177.         // line 74
  178.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'74$this->source); })()), "password", [], "any"falsefalsetrue74), 74$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'74$this->source); })()), "password", [], "any"falsefalsetrue74), "vars", [], "any"falsefalsetrue74), "label", [], "any"falsefalsetrue74)]]);
  179.         echo "
  180.                                         <div id=\"lastnameHelp\" class=\"form-text\">";
  181.         // line 76
  182.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'76$this->source); })()), "password", [], "any"falsefalsetrue76), 76$this->source), 'help');
  183.         echo "</div>
  184.                                         <div class=\"form-error\">
  185.                                             ";
  186.         // line 79
  187.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'79$this->source); })()), "password", [], "any"falsefalsetrue79), 79$this->source), 'errors');
  188.         echo "
  189.                                         </div>
  190.                                     </div>
  191.                                 </div>
  192.                                 ";
  193.         // line 103
  194.         echo "
  195.                                 ";
  196.         // line 104
  197.         if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'104$this->source); })()) && array_key_exists("recaptcha"$context))) {
  198.             // line 105
  199.             echo "                                    ";
  200.             if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'105$this->source); })()) == 2)) {
  201.                 // line 106
  202.                 echo "                                        <div class=\"form-group\">
  203.                                             <div class=\"g-recaptcha\" data-sitekey=\"";
  204.                 // line 107
  205.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic"$context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.'107$this->source); })()), 107$this->source), "html"nulltrue);
  206.                 echo "\"></div>
  207.                                         </div>
  208.                                     ";
  209.             } elseif ((            // line 109
  210. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'109$this->source); })()) == 3)) {
  211.                 // line 110
  212.                 echo "                                        <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  213.                                     ";
  214.             }
  215.             // line 112
  216.             echo "                                ";
  217.         }
  218.         // line 113
  219.         echo "
  220.                                 <div class=\"text-center mb-3\">
  221.                                     ";
  222.         // line 115
  223.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'115$this->source); })()), "submit", [], "any"falsefalsetrue115), 115$this->source), 'row', ["attr" => ["class" => "btn btn-black w-100""value" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'115$this->source); })()), "submit", [], "any"falsefalsetrue115), "vars", [], "any"falsefalsetrue115), "label", [], "any"falsefalsetrue115)]]);
  224.         echo "
  225.                                 </div>
  226.                                 <div class=\"text-center mb-3\">
  227.                                     <a href=\"";
  228.         // line 119
  229.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signup-page");
  230.         echo "\" class=\"btn btn-outline-white signup me-3\">
  231.                                         <i class=\"far fa-user-circle fa-1x\"></i> ";
  232.         // line 120
  233.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Create account?"), "html"nulltrue);
  234.         echo "
  235.                                     </a>
  236.                                     <a href=\"";
  237.         // line 123
  238.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lostpassword-page");
  239.         echo "\"
  240.                                        class=\"text-white\">";
  241.         // line 124
  242.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot password?"), "html"nulltrue);
  243.         echo "</a>
  244.                                 </div>
  245.                                 ";
  246.         // line 127
  247.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'127$this->source); })()), 127$this->source), 'form_end');
  248.         echo "
  249.                             </div>
  250.                             <svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
  251.                                 <clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
  252.                                     <path d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
  253.                                 </clipPath>
  254.                             </svg>
  255.                         </div>
  256.                     </div>
  257.                 </div>
  258.             </div>
  259.         </div>
  260.     </div>
  261.     ";
  262.         // line 145
  263.         if ((( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'145$this->source); })()) && ((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'145$this->source); })()) == 3)) && (twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'145$this->source); })()), "flashes", [=> [=> "success"]], "method"falsefalsetrue145), "success", [], "any"falsefalsetrue145)) || twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'145$this->source); })()), "flashes", [=> [=> "warning"]], "method"falsefalsetrue145), "warning", [], "any"falsefalsetrue145))))) {
  264.             // line 146
  265.             echo "        <script>
  266.             function getReCaptcha() {
  267.                 grecaptcha.ready(function () {
  268.                     grecaptcha.execute('";
  269.             // line 149
  270.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic"$context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.'149$this->source); })()), 149$this->source), "html"nulltrue);
  271.             echo "', {action: 'account_login'}).then(function (token) {
  272.                         var recaptchaResponse = document.getElementById('gtoken');
  273.                         recaptchaResponse.value = token;
  274.                     });
  275.                 });
  276.             }
  277.             getReCaptcha();  // This is the initial call
  278.             setInterval(function () {
  279.                 getReCaptcha();
  280.             }, 60000);
  281.         </script>
  282.     ";
  283.         }
  284.         
  285.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  286.         
  287.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  288.     }
  289.     public function getTemplateName()
  290.     {
  291.         return "@Account/account/login.html.twig";
  292.     }
  293.     public function isTraitable()
  294.     {
  295.         return false;
  296.     }
  297.     public function getDebugInfo()
  298.     {
  299.         return array (  309 => 149,  304 => 146,  302 => 145,  281 => 127,  275 => 124,  271 => 123,  265 => 120,  261 => 119,  254 => 115,  250 => 113,  247 => 112,  243 => 110,  241 => 109,  236 => 107,  233 => 106,  230 => 105,  228 => 104,  225 => 103,  217 => 79,  211 => 76,  206 => 74,  201 => 73,  194 => 68,  188 => 65,  183 => 63,  178 => 62,  172 => 58,  165 => 53,  159 => 52,  150 => 49,  145 => 48,  140 => 47,  135 => 46,  131 => 43,  126 => 40,  120 => 37,  106 => 25,  99 => 21,  95 => 20,  91 => 18,  89 => 17,  84 => 14,  74 => 13,  64 => 1,  62 => 11,  58 => 7,  56 => 6,  54 => 5,  52 => 4,  50 => 3,  37 => 1,);
  300.     }
  301.     public function getSourceContext()
  302.     {
  303.         return new Source("{% extends base_layout() %}
  304. {% if not editmode and recaptcha is defined %}
  305.     {% if recaptcha == 2 %}
  306.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
  307.     {% elseif recaptcha == 3 %}
  308.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
  309.     {% endif %}
  310. {% endif %}
  311. {% set head_title = \"Login Page\"|trans %}
  312. {% block content %}
  313.     <div class=\"container mb-5 pb-5\">
  314.         <div class=\"row justify-content-center\">
  315.             {% if signupsuccess %}
  316.                 <div class=\"col-lg-6\">
  317.                     <div class=\"alert alert-info\">
  318.                         <h3>{{ 'Your registration was successful'|trans }}</h3><br>
  319.                         <p>{{ 'Your request has been send for approval.'|trans }}</p>
  320.                     </div>
  321.                 </div>
  322.             {% endif %}
  323.             <div class=\"col-lg-6\">
  324.                 <div class=\"login-panel panel panel-default\">
  325.                     <div class=\"panel-body area-col\">
  326.                         <div class=\"area-col-inner position-relative area-shape area-shape-default bg-secondary p-5\">
  327.                             <div class=\"panel-heading\">
  328.                                 <h1 class=\"text-center text-white mb-5\"><span class=\"heading-line white\">{{ 'LoginPortal - Login'|trans }}</span></h1>
  329.                             </div>
  330.                             {{ 'LoginPortal - Introtext'|trans|raw }}
  331.                             {#  <span id=\"password-success\" style=\"color: #000\">{{ 'You can access now with your email and new password'|trans }}</span>#}
  332.                             {# read and display several types of flash messages #}
  333.                             {% for label, messages in app.flashes(['success', 'warning']) %}
  334.                                 {% for message in messages %}
  335.                                     <div id=\"messages\" class=\"flash-{{ label }}\">
  336.                                         {{ message }}
  337.                                     </div>
  338.                                 {% endfor %}
  339.                             {% endfor %}
  340.                             <br>
  341.                             <div class=\"mt-3\">
  342.                                 {{ form_start(form) }}
  343.                                 <div class=\"row\">
  344.                                     <div class=\"col-12 mb-3\">
  345.                                         {# {{ form_row(form.firstname) }}#}
  346.                                         {{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}
  347.                                         {{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label}}) }}
  348.                                         <div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
  349.                                         <div class=\"form-error\">
  350.                                             {{ form_errors(form.email) }}
  351.                                         </div>
  352.                                     </div>
  353.                                     <div class=\"col-12 mb-3\">
  354.                                         {# {{ form_row(form.lastname) }}#}
  355.                                         {{ form_label(form.password, null, {'label_attr': {'class': 'form-label'}}) }}
  356.                                         {{ form_widget(form.password, {'attr': {'class': 'form-control', 'placeholder': form.password.vars.label }}) }}
  357.                                         <div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.password) }}</div>
  358.                                         <div class=\"form-error\">
  359.                                             {{ form_errors(form.password) }}
  360.                                         </div>
  361.                                     </div>
  362.                                 </div>
  363.                                 {# {{ form_row(form.conditions) }}
  364.                                 <div class=\"col-12 form-check text-start mb-3\">
  365.                                     {{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
  366.                                     #}{#{{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}#}{#
  367.                                     <label class=\"form-check-label required\" for=\"login_form_conditions\">{{ 'Ik ga akkoord met'|trans }}</label>
  368.                                     <a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\"
  369.                                        target=\"_blank\" class=\"fw-bold text-black\">
  370.                                         {{ 'privacy'|trans }}
  371.                                     </a>
  372.                                     <div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
  373.                                     <div class=\"form-error\">
  374.                                         {{ form_errors(form.conditions) }}
  375.                                     </div>
  376.                                 </div>#}
  377.                                 {% if not editmode and recaptcha is defined %}
  378.                                     {% if recaptcha == 2 %}
  379.                                         <div class=\"form-group\">
  380.                                             <div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
  381.                                         </div>
  382.                                     {% elseif recaptcha == 3 %}
  383.                                         <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  384.                                     {% endif %}
  385.                                 {% endif %}
  386.                                 <div class=\"text-center mb-3\">
  387.                                     {{ form_row(form.submit, {'attr': {'class': 'btn btn-black w-100','value': form.submit.vars.label}}) }}
  388.                                 </div>
  389.                                 <div class=\"text-center mb-3\">
  390.                                     <a href=\"{{ path(\"signup-page\") }}\" class=\"btn btn-outline-white signup me-3\">
  391.                                         <i class=\"far fa-user-circle fa-1x\"></i> {{ 'Create account?'|trans }}
  392.                                     </a>
  393.                                     <a href=\"{{ path(\"lostpassword-page\") }}\"
  394.                                        class=\"text-white\">{{ 'Forgot password?'|trans }}</a>
  395.                                 </div>
  396.                                 {{ form_end(form) }}
  397.                             </div>
  398.                             <svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
  399.                                 <clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
  400.                                     <path d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
  401.                                 </clipPath>
  402.                             </svg>
  403.                         </div>
  404.                     </div>
  405.                 </div>
  406.             </div>
  407.         </div>
  408.     </div>
  409.     {% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
  410.         <script>
  411.             function getReCaptcha() {
  412.                 grecaptcha.ready(function () {
  413.                     grecaptcha.execute('{{ recaptchaPublic }}', {action: 'account_login'}).then(function (token) {
  414.                         var recaptchaResponse = document.getElementById('gtoken');
  415.                         recaptchaResponse.value = token;
  416.                     });
  417.                 });
  418.             }
  419.             getReCaptcha();  // This is the initial call
  420.             setInterval(function () {
  421.                 getReCaptcha();
  422.             }, 60000);
  423.         </script>
  424.     {% endif %}
  425. {% endblock %}
  426. ""@Account/account/login.html.twig""/var/www/clients/client2/web42/web/pc/bundles/AccountBundle/Resources/views/account/login.html.twig");
  427.     }
  428.     
  429.     public function checkSecurity()
  430.     {
  431.         static $tags = array("if" => 3"do" => 5"set" => 11"for" => 46);
  432.         static $filters = array("trans" => 11"escape" => 20"raw" => 40);
  433.         static $functions = array("pimcore_head_script" => 5"form_start" => 58"form_label" => 62"form_widget" => 63"form_help" => 65"form_errors" => 68"form_row" => 115"path" => 119"form_end" => 127"base_layout" => 1);
  434.         try {
  435.             $this->sandbox->checkSecurity(
  436.                 ['if''do''set''for'],
  437.                 ['trans''escape''raw'],
  438.                 ['pimcore_head_script''form_start''form_label''form_widget''form_help''form_errors''form_row''path''form_end''base_layout']
  439.             );
  440.         } catch (SecurityError $e) {
  441.             $e->setSourceContext($this->source);
  442.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  443.                 $e->setTemplateLine($tags[$e->getTagName()]);
  444.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  445.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  446.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  447.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  448.             }
  449.             throw $e;
  450.         }
  451.     }
  452. }