var/cache/dev/twig/1d/1d607d892df30e40f5984a1f5a1cf817.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* security/login.html.twig */
  15. class __TwigTemplate_6c3c8c778ff4db85bab260719f91c181 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.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""security/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""security/login.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         yield "Log in!";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.         return; yield '';
  61.     }
  62.     // line 5
  63.     public function block_body($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         // line 6
  71.         yield "<div class=\"wrapper\"  style=\"background-image: url('https://wallpaperaccess.com/full/1512223.jpg');\">
  72. \t
  73.     <div class=\"login-form-bg h-100\" >
  74.         <div class=\"container h-100\" >
  75. \t\t<BR>
  76. \t\t
  77.             <div class=\"row justify-content-center h-100\">
  78. \t
  79. \t\t\t
  80.                 <div class=\"col-xl-6\">
  81.                     <div class=\"form-input-content\">
  82.                         <div class=\"card login-form mb-0\">
  83.                             <div class=\"card-body pt-5\">
  84. \t\t\t\t\t\t\t\t\t\t\t\t";
  85.         // line 20
  86.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'20$this->source); })()), "user", [], "any"falsefalsefalse20)) {
  87.             // line 21
  88.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  89. \t\t\t\t\t\t\t\t\t\t\t\t\t\tYou are logged in as ";
  90.             // line 22
  91.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'22$this->source); })()), "user", [], "any"falsefalsefalse22), "userIdentifier", [], "any"falsefalsefalse22), "html"nulltrue);
  92.             yield ", <a href=\"";
  93.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  94.             yield "\">Logout</a>
  95. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  96. \t\t\t\t\t\t\t\t\t\t\t\t";
  97.         } else {
  98.             // line 25
  99.             yield "                                <a class=\"text-center\" > <h4>SafeShops</h4></a>
  100.         
  101. \t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"post\" class=\"mt-5 mb-5 login-input\">
  102. \t\t\t\t\t\t\t\t\t\t\t\t";
  103.             // line 28
  104.             if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'28$this->source); })())) {
  105.                 // line 29
  106.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger\">";
  107.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'29$this->source); })()), "messageKey", [], "any"falsefalsefalse29), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'29$this->source); })()), "messageData", [], "any"falsefalsefalse29), "security"), "html"nulltrue);
  108.                 yield "</div>
  109. \t\t\t\t\t\t\t\t\t\t\t\t";
  110.             }
  111.             // line 31
  112.             yield "                            
  113.                                     <div class=\"form-group\">
  114.                                         <input type=\"email\" value=\"";
  115.             // line 33
  116.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'33$this->source); })()), "html"nulltrue);
  117.             yield "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus placeholder=\"Email\">
  118.                                     </div>
  119.                                     <div class=\"form-group\">
  120.                                         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required placeholder=\"Password\">
  121.                                     </div>
  122.                                     <button class=\"btn login-form__btn submit w-100\">Sign In</button>
  123. \t\t\t\t\t\t\t\t\t  <input type=\"hidden\" name=\"_csrf_token\"  value=\"";
  124.             // line 39
  125.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  126.             yield "\"  >
  127.                                 </form>
  128. \t\t\t\t\t\t\t\t
  129.                                 <p class=\"mt-5 login-form__footer\">Dont have account? <a href=\"";
  130.             // line 42
  131.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  132.             yield "\" class=\"text-primary\">Sign Up</a> now</p> ";
  133.         }
  134.         // line 43
  135.         yield "                            </div>
  136.                         </div>
  137.                     </div>
  138.                 </div>
  139.             </div>
  140.         </div><BR>   <div><BR>\t<BR></div>
  141.         <BR>
  142.         <div><BR>\t<BR></div>
  143.         <BR>\t<BR>\t<BR>\t<BR>
  144.     </div>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.         return; yield '';
  151.     }
  152.     /**
  153.      * @codeCoverageIgnore
  154.      */
  155.     public function getTemplateName()
  156.     {
  157.         return "security/login.html.twig";
  158.     }
  159.     /**
  160.      * @codeCoverageIgnore
  161.      */
  162.     public function isTraitable()
  163.     {
  164.         return false;
  165.     }
  166.     /**
  167.      * @codeCoverageIgnore
  168.      */
  169.     public function getDebugInfo()
  170.     {
  171.         return array (  155 => 43,  151 => 42,  145 => 39,  136 => 33,  132 => 31,  126 => 29,  124 => 28,  119 => 25,  111 => 22,  108 => 21,  106 => 20,  90 => 6,  80 => 5,  60 => 3,  37 => 1,);
  172.     }
  173.     public function getSourceContext()
  174.     {
  175.         return new Source("{% extends 'base.html.twig' %}
  176. {% block title %}Log in!{% endblock %}
  177. {% block body %}
  178. <div class=\"wrapper\"  style=\"background-image: url('https://wallpaperaccess.com/full/1512223.jpg');\">
  179. \t
  180.     <div class=\"login-form-bg h-100\" >
  181.         <div class=\"container h-100\" >
  182. \t\t<BR>
  183. \t\t
  184.             <div class=\"row justify-content-center h-100\">
  185. \t
  186. \t\t\t
  187.                 <div class=\"col-xl-6\">
  188.                     <div class=\"form-input-content\">
  189.                         <div class=\"card login-form mb-0\">
  190.                             <div class=\"card-body pt-5\">
  191. \t\t\t\t\t\t\t\t\t\t\t\t{% if app.user %}
  192. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  193. \t\t\t\t\t\t\t\t\t\t\t\t\t\tYou are logged in as {{ app.user.userIdentifier }}, <a href=\"{{ path('app_logout') }}\">Logout</a>
  194. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  195. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  196.                                 <a class=\"text-center\" > <h4>SafeShops</h4></a>
  197.         
  198. \t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"post\" class=\"mt-5 mb-5 login-input\">
  199. \t\t\t\t\t\t\t\t\t\t\t\t{% if error %}
  200. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  201. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  202.                             
  203.                                     <div class=\"form-group\">
  204.                                         <input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus placeholder=\"Email\">
  205.                                     </div>
  206.                                     <div class=\"form-group\">
  207.                                         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required placeholder=\"Password\">
  208.                                     </div>
  209.                                     <button class=\"btn login-form__btn submit w-100\">Sign In</button>
  210. \t\t\t\t\t\t\t\t\t  <input type=\"hidden\" name=\"_csrf_token\"  value=\"{{ csrf_token('authenticate') }}\"  >
  211.                                 </form>
  212. \t\t\t\t\t\t\t\t
  213.                                 <p class=\"mt-5 login-form__footer\">Dont have account? <a href=\"{{ path('app_register') }}\" class=\"text-primary\">Sign Up</a> now</p> {% endif %}
  214.                             </div>
  215.                         </div>
  216.                     </div>
  217.                 </div>
  218.             </div>
  219.         </div><BR>   <div><BR>\t<BR></div>
  220.         <BR>
  221.         <div><BR>\t<BR></div>
  222.         <BR>\t<BR>\t<BR>\t<BR>
  223.     </div>
  224. {% endblock %}
  225. ""security/login.html.twig""/var/www/safeshops.biz/templates/security/login.html.twig");
  226.     }
  227. }