parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { // line 1 $context["client_side_validation"] = (( !(null === $this->getAttribute(($context["form"] ?? null), "client_side_validation", []))) ? ($this->getAttribute(($context["form"] ?? null), "client_side_validation", [])) : ((($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", [], "any", false, true), "form", [], "any", false, true), "client_side_validation", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", [], "any", false, true), "form", [], "any", false, true), "client_side_validation", []), true)) : (true)))); // line 2 $context["inline_errors"] = (( !(null === $this->getAttribute(($context["form"] ?? null), "inline_errors", []))) ? ($this->getAttribute(($context["form"] ?? null), "inline_errors", [])) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "form", []), "inline_errors", [0 => false], "method"))); // line 3 echo "
"; // line 6 if ((($this->getAttribute(($context["page"] ?? null), "template", []) == "login") || ($context["show_login_form"] ?? null))) { // line 7 echo " "; $context["user"] = $this->getAttribute(($context["grav"] ?? null), "user", []); // line 8 echo " "; if (($this->getAttribute(($context["user"] ?? null), "authenticated", []) && $this->getAttribute(($context["user"] ?? null), "authorized", []))) { // line 9 echo "

"; echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->env, "PLUGIN_LOGIN.WELCOME"); echo " "; echo (($this->getAttribute(($context["user"] ?? null), "fullname", [])) ? ($this->getAttribute(($context["user"] ?? null), "fullname", [])) : ($this->getAttribute(($context["user"] ?? null), "username", []))); echo "


env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => ((((($context["base_url_relative"] ?? null) . $this->getAttribute(($context["uri"] ?? null), "path", [])) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", []), "param_sep", [])) . "login.logout"), 1 => "logout-form", 2 => "logout-nonce"], "method")); echo "\">"; echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->env, "PLUGIN_LOGIN.BTN_LOGOUT"); echo " "; } elseif (($this->getAttribute( // line 13 ($context["user"] ?? null), "authenticated", []) && $this->getAttribute(($context["user"] ?? null), "twofa_enabled", []))) { // line 14 echo " "; $this->loadTemplate("partials/login-twofa.html.twig", "partials/login-form.html.twig", 14)->display($context); // line 15 echo " "; } else { // line 17 echo " "; echo ($context["content"] ?? null); echo " "; // line 20 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "login", []), "getProviderLoginTemplates", [])); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["template"]) { // line 21 echo " "; $this->loadTemplate($context["template"], "partials/login-form.html.twig", 21)->display($context); // line 22 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['template'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 23 echo "
env, (($context["base_url_relative"] ?? null) . $this->getAttribute(($context["uri"] ?? null), "path", []))); echo "\" class=\""; echo ($context["form_outer_classes"] ?? null); echo " login-form\"> "; // line 27 echo " "; if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_loginPage", [])) { // line 28 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_hooked_loginPage", [])); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["label"]) { // line 29 echo " "; $this->loadTemplate($context["label"], "partials/login-form.html.twig", 29)->display($context); // line 30 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 31 echo " "; } // line 32 echo " "; // line 33 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["form"] ?? null), "fields", [])); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["field"]) { // line 34 echo " "; $context["value"] = ((($this->getAttribute($context["field"], "name", []) == "username")) ? (($context["username"] ?? null)) : ("")); // line 35 echo " "; if ($this->getAttribute($context["field"], "type", [])) { // line 36 echo " "; $this->loadTemplate([0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", [])) . "/") . $this->getAttribute($context["field"], "type", [])) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"], "partials/login-form.html.twig", 36)->display($context); // line 37 echo " "; } // line 38 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 39 echo "
"; // line 41 if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "login", []), "rememberme", []), "enabled", []) && ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "form", [], "any", false, true), "login", [], "any", false, true), "rememberme", [], "any", true, true) && !(null === $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "form", [], "any", false, true), "login", [], "any", false, true), "rememberme", [])))) ? ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "form", [], "any", false, true), "login", [], "any", false, true), "rememberme", [])) : (true)))) { // line 42 echo "
"; } // line 49 echo " "; // line 50 if (((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "form", [], "any", false, true), "login", [], "any", false, true), "forgot_button", [], "any", true, true) && !(null === $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "form", [], "any", false, true), "login", [], "any", false, true), "forgot_button", [])))) ? ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", [], "any", false, true), "form", [], "any", false, true), "login", [], "any", false, true), "forgot_button", [])) : (true))) { // line 51 echo " getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", []), "login", []), "route_forgot", []); echo "\"> "; echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->env, "PLUGIN_LOGIN.BTN_FORGOT"); echo " "; } // line 53 echo "
"; // line 57 echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("login-form", "login-form-nonce"); echo "
"; } // line 61 echo " "; } // line 63 echo "
"; } public function getTemplateName() { return "partials/login-form.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 270 => 63, 266 => 61, 259 => 57, 251 => 54, 248 => 53, 237 => 51, 235 => 50, 232 => 49, 223 => 45, 218 => 42, 216 => 41, 212 => 40, 209 => 39, 195 => 38, 192 => 37, 189 => 36, 186 => 35, 183 => 34, 166 => 33, 163 => 32, 160 => 31, 146 => 30, 143 => 29, 125 => 28, 122 => 27, 115 => 24, 112 => 23, 98 => 22, 95 => 21, 77 => 20, 71 => 17, 67 => 15, 64 => 14, 62 => 13, 55 => 11, 47 => 9, 44 => 8, 41 => 7, 39 => 6, 34 => 3, 32 => 2, 30 => 1,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Source("{% set client_side_validation = form.client_side_validation is not null ? form.client_side_validation : config.plugins.form.client_side_validation|default(true) %} {% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
{% if page.template == 'login' or show_login_form %} {% set user = grav.user %} {% if user.authenticated and user.authorized %}

{{ 'PLUGIN_LOGIN.WELCOME'|t }} {{ user.fullname ?: user.username }}


{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }} {% elseif user.authenticated and user.twofa_enabled %} {% include 'partials/login-twofa.html.twig' %} {% else %} {{ content|raw }} {# NEW WAY OF INCLUDING 3RD PARTY LOGIN OPTIONS #} {% for template in grav.login.getProviderLoginTemplates %} {% include template %} {% endfor %}
{# OLD WAY OF INCLUDING 3RD PARTY LOGIN OPTIONS #} {% if grav.twig.plugins_hooked_loginPage %} {% for label in grav.twig.plugins_hooked_loginPage %} {% include label %} {% endfor %} {% endif %} {% for field in form.fields %} {% set value = field.name == 'username' ? username : '' %} {% if field.type %} {% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %} {% endif %} {% endfor %}
{% if config.plugins.login.rememberme.enabled and page.header.form.login.rememberme ?? true %}
{% endif %} {% if page.header.form.login.forgot_button ?? true %} {{ 'PLUGIN_LOGIN.BTN_FORGOT'|t }} {% endif %}
{{ nonce_field('login-form', 'login-form-nonce')|raw }}
{% endif %} {% endif %}
", "partials/login-form.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/login/templates/partials/login-form.html.twig"); } }