var/cache/dev/twig/af/afb498f373be2b89539c775985cdd00a.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/login.html.twig */
  14. class __TwigTemplate_03ef7252dad1b6a808249ca365aacb26 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 "layouts/layout.html.twig";
  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/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/login.html.twig"));
  40.         // line 2
  41.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'2$this->source); })()), ["bootstrap_4_layout.html.twig"], true);
  42.         // line 1
  43.         $this->parent $this->loadTemplate("layouts/layout.html.twig""account/login.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_content($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  58.         // line 6
  59.         echo "
  60.     <div class=\"text-center\">
  61.         <div class=\"form-signin mb-5\">
  62.             ";
  63.         // line 12
  64.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'12$this->source); })())) {
  65.             // line 13
  66.             echo "                <div class=\"alert alert-danger\">
  67.                     ";
  68.             // line 14
  69.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'14$this->source); })()), "getMessage", [], "method"falsefalsetrue14), 14$this->source), "html"nulltrue);
  70.             echo "
  71.                 </div>
  72.             ";
  73.         }
  74.         // line 17
  75.         echo "
  76.             ";
  77.         // line 18
  78.         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.'18$this->source); })()), 18$this->source), 'form_start');
  79.         echo "
  80.                 <h1 class=\"display-3 mb-3 font-weight-normal\">";
  81.         // line 19
  82.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.please-sign-in"), "html"nulltrue);
  83.         echo "</h1>
  84.                 ";
  85.         // line 20
  86.         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.'20$this->source); })()), "_username", [], "any"falsefalsetrue20), 20$this->source), 'widget', ["attr" => ["placeholder" => "Username"]]);
  87.         echo "
  88.                 ";
  89.         // line 21
  90.         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.'21$this->source); })()), "_password", [], "any"falsefalsetrue21), 21$this->source), 'widget', ["attr" => ["placeholder" => "Password"]]);
  91.         echo "
  92.                 <input type=\"hidden\" name=\"_csrf_token\"
  93.                        value=\"";
  94.         // line 24
  95.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  96.         echo "\"
  97.                 >
  98.                 <div class=\"custom-control custom-checkbox mb-3\">
  99.                     <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">
  100.                     <label class=\"custom-control-label\" for=\"rememberMe\">Remember me</label>
  101.                 </div>
  102.                 ";
  103.         // line 32
  104.         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.'32$this->source); })()), "_submit", [], "any"falsefalsetrue32), 32$this->source), 'row', ["attr" => ["class" => "btn-success btn-lg btn-block mt-4"]]);
  105.         echo "
  106.             ";
  107.         // line 34
  108.         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.'34$this->source); })()), 34$this->source), 'form_end');
  109.         echo "
  110.             <p>";
  111.         // line 36
  112.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.forgot-password"), "html"nulltrue);
  113.         echo " <a href=\"";
  114.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-password-send-recovery");
  115.         echo "\">";
  116.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.password-recovery"), "html"nulltrue);
  117.         echo "</a></p>
  118.             <p>";
  119.         // line 37
  120.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.no-account"), "html"nulltrue);
  121.         echo " <a href=\"";
  122.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-register");
  123.         echo "\">";
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.register-now"), "html"nulltrue);
  125.         echo "</a></p>
  126.             ";
  127.         // line 40
  128.         $this->loadTemplate("account/partial/social_buttons.html.twig""account/login.html.twig"40)->display(twig_array_merge($context, ["connect" => false]));
  129.         // line 41
  130.         echo "
  131.         </div>
  132.     </div>
  133. ";
  134.         
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136.         
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getTemplateName()
  143.     {
  144.         return "account/login.html.twig";
  145.     }
  146.     /**
  147.      * @codeCoverageIgnore
  148.      */
  149.     public function isTraitable()
  150.     {
  151.         return false;
  152.     }
  153.     /**
  154.      * @codeCoverageIgnore
  155.      */
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  154 => 41,  152 => 40,  142 => 37,  134 => 36,  129 => 34,  124 => 32,  113 => 24,  107 => 21,  103 => 20,  99 => 19,  95 => 18,  92 => 17,  86 => 14,  83 => 13,  81 => 12,  73 => 6,  63 => 5,  52 => 1,  50 => 2,  37 => 1,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% extends 'layouts/layout.html.twig' %}
  163. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  164. {% block content %}
  165.     <div class=\"text-center\">
  166.         <div class=\"form-signin mb-5\">
  167.             {% if error %}
  168.                 <div class=\"alert alert-danger\">
  169.                     {{ error.getMessage() }}
  170.                 </div>
  171.             {% endif %}
  172.             {{ form_start(form) }}
  173.                 <h1 class=\"display-3 mb-3 font-weight-normal\">{{ 'general.please-sign-in' | trans }}</h1>
  174.                 {{ form_widget(form._username, { 'attr': {'placeholder': 'Username'}}) }}
  175.                 {{ form_widget(form._password, { 'attr': {'placeholder': 'Password'}}) }}
  176.                 <input type=\"hidden\" name=\"_csrf_token\"
  177.                        value=\"{{ csrf_token('authenticate') }}\"
  178.                 >
  179.                 <div class=\"custom-control custom-checkbox mb-3\">
  180.                     <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">
  181.                     <label class=\"custom-control-label\" for=\"rememberMe\">Remember me</label>
  182.                 </div>
  183.                 {{ form_row(form._submit, {'attr': {'class': 'btn-success btn-lg btn-block mt-4'}}) }}
  184.             {{ form_end(form) }}
  185.             <p>{{ 'account.forgot-password' | trans }} <a href=\"{{ path('account-password-send-recovery') }}\">{{ 'account.password-recovery' | trans }}</a></p>
  186.             <p>{{ 'general.no-account' | trans }} <a href=\"{{ path('account-register') }}\">{{ 'general.register-now' | trans }}</a></p>
  187.             {% include 'account/partial/social_buttons.html.twig' with {'connect': false} %}
  188.         </div>
  189.     </div>
  190. {% endblock %}""account/login.html.twig""/var/www/dev-10/templates/account/login.html.twig");
  191.     }
  192.     
  193.     public function checkSecurity()
  194.     {
  195.         static $tags = array("form_theme" => 2"if" => 12"include" => 40);
  196.         static $filters = array("escape" => 14"trans" => 19);
  197.         static $functions = array("form_start" => 18"form_widget" => 20"csrf_token" => 24"form_row" => 32"form_end" => 34"path" => 36);
  198.         try {
  199.             $this->sandbox->checkSecurity(
  200.                 ['form_theme''if''include'],
  201.                 ['escape''trans'],
  202.                 ['form_start''form_widget''csrf_token''form_row''form_end''path']
  203.             );
  204.         } catch (SecurityError $e) {
  205.             $e->setSourceContext($this->source);
  206.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  207.                 $e->setTemplateLine($tags[$e->getTagName()]);
  208.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  209.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  210.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  211.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  212.             }
  213.             throw $e;
  214.         }
  215.     }
  216. }