var/cache/dev/twig/cb/cbde1b66503537d7c36d9f487f7c2c25.php line 48

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. /* forms/sign-in.html.twig */
  14. class __TwigTemplate_8032d23f4f4c8549abbb5f38e7f57bdb 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.             'right' => [$this'block_right'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base-split.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""forms/sign-in.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""forms/sign-in.html.twig"));
  38.         $this->parent $this->loadTemplate("base-split.html.twig""forms/sign-in.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 3
  46.     public function block_right($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""right"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""right"));
  53.         // line 4
  54.         echo "    
  55.     ";
  56.         // line 5
  57.         if ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'5$this->source); })())) {
  58.             // line 6
  59.             echo "        <div class=\"alert alert-";
  60.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'6$this->source); })()), "type", [], "any"falsefalsefalse6), "html"nulltrue);
  61.             echo "\">
  62.         ";
  63.             // line 7
  64.             if ((twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'7$this->source); })()), "type", [], "any"falsefalsefalse7) == "warning")) {
  65.                 // line 8
  66.                 echo "            <i class=\"fa fa-exclamation-triangle\"></i> 
  67.         ";
  68.             } elseif ((twig_get_attribute($this->env$this->source,             // line 9
  69. (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'9$this->source); })()), "type", [], "any"falsefalsefalse9) == "success")) {
  70.                 // line 10
  71.                 echo "            <i class=\"fa fa-check\"></i> 
  72.         ";
  73.             }
  74.             // line 12
  75.             echo "        ";
  76.             echo twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'12$this->source); })()), "text", [], "any"falsefalsefalse12);
  77.             echo "
  78.         </div>
  79.     ";
  80.         }
  81.         // line 15
  82.         echo "
  83.     ";
  84.         // line 16
  85.         if (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.'16$this->source); })()), "user", [], "any"falsefalsefalse16)) {
  86.             // line 17
  87.             echo "        <p>Hello ";
  88.             echo twig_escape_filter($this->envtwig_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.'17$this->source); })()), "user", [], "any"falsefalsefalse17), "getFullName", [], "method"falsefalsefalse17), "html"nulltrue);
  89.             echo ",<br />
  90.         You are currently signed in.<br />
  91.         <form method=\"post\" action=\"/sign-out\">
  92.             <button 
  93.                 type=\"submit\" 
  94.                 class=\"btn btn-secondary text-white bg-dark mt-2\"
  95.             >Sign Out</button>
  96.         </form>
  97.         
  98.     ";
  99.         } else {
  100.             // line 27
  101.             echo "        ";
  102.             // line 28
  103.             echo "        <form action=\"/sign-in\" method=\"post\">
  104.             <legend>Sign In</legend>
  105.             
  106.             <hr />
  107.             
  108.             <label class=\"btn-block\">Username or Email Address
  109.                 <input 
  110.                     class=\"form-control\" 
  111.                     type=\"text\" 
  112.                     name=\"_username\" 
  113.                     placeholder=\"Your Username or Email Address\"
  114.                 />
  115.             </label>
  116.             
  117.             <label class=\"btn-block\">Password
  118.                 <input 
  119.                     class=\"form-control\" 
  120.                     type=\"password\" 
  121.                     name=\"_password\" 
  122.                     placeholder=\"Your Password\"
  123.                 />
  124.             </label>
  125.             
  126.             <div class=\"form-row g-recaptcha\" data-sitekey=\"6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B\" required></div>
  127.             
  128.             <button 
  129.                 type=\"submit\" 
  130.                 class=\"btn btn-secondary text-white bg-dark mt-2\"
  131.             >Sign In</button>
  132.         </form>
  133.         
  134.         <hr />
  135.         <ul class=\"mt-3\">
  136.             <li><a href=\"/sign-up\" class=\"text-white\">Click here to Sign Up.</a></li>
  137.             <li><a href=\"/forgot-password\" class=\"text-white\">Forgot Password?</a></li>
  138.             <li><a href=\"/forgot-username\" class=\"text-white\">Forgot Username?</a></li>
  139.             <li><a href=\"/send-activation\" class=\"text-white\">Re-send Activation.</a></li>
  140.         </ul>
  141.     ";
  142.         }
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "forms/sign-in.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  117 => 28,  115 => 27,  101 => 17,  99 => 16,  96 => 15,  89 => 12,  85 => 10,  83 => 9,  80 => 8,  78 => 7,  73 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% extends \"base-split.html.twig\" %}
  163. {% block right %}
  164.     
  165.     {% if message %}
  166.         <div class=\"alert alert-{{ message.type }}\">
  167.         {% if message.type == 'warning' %}
  168.             <i class=\"fa fa-exclamation-triangle\"></i> 
  169.         {% elseif message.type == 'success' %}
  170.             <i class=\"fa fa-check\"></i> 
  171.         {% endif %}
  172.         {{ message.text | raw}}
  173.         </div>
  174.     {% endif %}
  175.     {% if app.user %}
  176.         <p>Hello {{ app.user.getFullName() }},<br />
  177.         You are currently signed in.<br />
  178.         <form method=\"post\" action=\"/sign-out\">
  179.             <button 
  180.                 type=\"submit\" 
  181.                 class=\"btn btn-secondary text-white bg-dark mt-2\"
  182.             >Sign Out</button>
  183.         </form>
  184.         
  185.     {% else %}
  186.         {#<form action=\"{{ path(\"sign-in\") }}\" method=\"post\">#}
  187.         <form action=\"/sign-in\" method=\"post\">
  188.             <legend>Sign In</legend>
  189.             
  190.             <hr />
  191.             
  192.             <label class=\"btn-block\">Username or Email Address
  193.                 <input 
  194.                     class=\"form-control\" 
  195.                     type=\"text\" 
  196.                     name=\"_username\" 
  197.                     placeholder=\"Your Username or Email Address\"
  198.                 />
  199.             </label>
  200.             
  201.             <label class=\"btn-block\">Password
  202.                 <input 
  203.                     class=\"form-control\" 
  204.                     type=\"password\" 
  205.                     name=\"_password\" 
  206.                     placeholder=\"Your Password\"
  207.                 />
  208.             </label>
  209.             
  210.             <div class=\"form-row g-recaptcha\" data-sitekey=\"6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B\" required></div>
  211.             
  212.             <button 
  213.                 type=\"submit\" 
  214.                 class=\"btn btn-secondary text-white bg-dark mt-2\"
  215.             >Sign In</button>
  216.         </form>
  217.         
  218.         <hr />
  219.         <ul class=\"mt-3\">
  220.             <li><a href=\"/sign-up\" class=\"text-white\">Click here to Sign Up.</a></li>
  221.             <li><a href=\"/forgot-password\" class=\"text-white\">Forgot Password?</a></li>
  222.             <li><a href=\"/forgot-username\" class=\"text-white\">Forgot Username?</a></li>
  223.             <li><a href=\"/send-activation\" class=\"text-white\">Re-send Activation.</a></li>
  224.         </ul>
  225.     {% endif %}
  226. {% endblock %}""forms/sign-in.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/forms/sign-in.html.twig");
  227.     }
  228. }