var/cache/dev/twig/28/28a06f1a5c6a9ceab9404508dff6612d.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_647c653b959fdbc2e753f361fbf4b3e6 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.     public function getTemplateName()
  140.     {
  141.         return "account/login.html.twig";
  142.     }
  143.     public function isTraitable()
  144.     {
  145.         return false;
  146.     }
  147.     public function getDebugInfo()
  148.     {
  149.         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,);
  150.     }
  151.     public function getSourceContext()
  152.     {
  153.         return new Source("{% extends 'layouts/layout.html.twig' %}
  154. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  155. {% block content %}
  156.     <div class=\"text-center\">
  157.         <div class=\"form-signin mb-5\">
  158.             {% if error %}
  159.                 <div class=\"alert alert-danger\">
  160.                     {{ error.getMessage() }}
  161.                 </div>
  162.             {% endif %}
  163.             {{ form_start(form) }}
  164.                 <h1 class=\"display-3 mb-3 font-weight-normal\">{{ 'general.please-sign-in' | trans }}</h1>
  165.                 {{ form_widget(form._username, { 'attr': {'placeholder': 'Username'}}) }}
  166.                 {{ form_widget(form._password, { 'attr': {'placeholder': 'Password'}}) }}
  167.                 <input type=\"hidden\" name=\"_csrf_token\"
  168.                        value=\"{{ csrf_token('authenticate') }}\"
  169.                 >
  170.                 <div class=\"custom-control custom-checkbox mb-3\">
  171.                     <input name=\"_remember_me\" type=\"checkbox\" class=\"custom-control-input\" id=\"rememberMe\">
  172.                     <label class=\"custom-control-label\" for=\"rememberMe\">Remember me</label>
  173.                 </div>
  174.                 {{ form_row(form._submit, {'attr': {'class': 'btn-success btn-lg btn-block mt-4'}}) }}
  175.             {{ form_end(form) }}
  176.             <p>{{ 'account.forgot-password' | trans }} <a href=\"{{ path('account-password-send-recovery') }}\">{{ 'account.password-recovery' | trans }}</a></p>
  177.             <p>{{ 'general.no-account' | trans }} <a href=\"{{ path('account-register') }}\">{{ 'general.register-now' | trans }}</a></p>
  178.             {% include 'account/partial/social_buttons.html.twig' with {'connect': false} %}
  179.         </div>
  180.     </div>
  181. {% endblock %}""account/login.html.twig""/var/www/www-data/data/www/pimcore.dev2.nowmedia.ru/templates/account/login.html.twig");
  182.     }
  183.     
  184.     public function checkSecurity()
  185.     {
  186.         static $tags = array("form_theme" => 2"if" => 12"include" => 40);
  187.         static $filters = array("escape" => 14"trans" => 19);
  188.         static $functions = array("form_start" => 18"form_widget" => 20"csrf_token" => 24"form_row" => 32"form_end" => 34"path" => 36);
  189.         try {
  190.             $this->sandbox->checkSecurity(
  191.                 ['form_theme''if''include'],
  192.                 ['escape''trans'],
  193.                 ['form_start''form_widget''csrf_token''form_row''form_end''path']
  194.             );
  195.         } catch (SecurityError $e) {
  196.             $e->setSourceContext($this->source);
  197.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  198.                 $e->setTemplateLine($tags[$e->getTagName()]);
  199.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  200.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  201.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  202.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  203.             }
  204.             throw $e;
  205.         }
  206.     }
  207. }