parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->loadTemplate("login.html.twig", "login.html.twig", 1, "1539425397")->display(array_merge($context, array("title" => "Grav Admin Login"))); } public function getTemplateName() { return "login.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 19 => 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 Twig_Source("{% embed 'partials/login.html.twig' with {title:'Grav Admin Login'} %} {% block form %} {% if grav.user.username and grav.user.authenticated %}
{% else %} {% for field in form.fields %} {% if field.type %}
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
{% endif %} {% endfor %}
{% if notAuthorized %} {{ 'PLUGIN_ADMIN.BACK'|tu }} {% else %} {% if not authenticated %} {{ 'PLUGIN_ADMIN.LOGIN_BTN_FORGOT'|tu }} {% else %} {% endif %} {% endif %}
{% endif %} {% endblock %} {% endembed %} ", "login.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/login.html.twig"); } } /* login.html.twig */ class __TwigTemplate_31a5220dc52086498ad3c55b8de8ecbb39f98539caf1dd351e857e2cc92192e9_1539425397 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->loadTemplate("partials/login.html.twig", "login.html.twig", 1); $this->blocks = array( 'form' => array($this, 'block_form'), ); } protected function doGetParent(array $context) { return "partials/login.html.twig"; } protected function doDisplay(array $context, array $blocks = array()) { $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_form($context, array $blocks = array()) { // line 4 echo " "; // line 5 if (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()) && $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "authenticated", array()))) { // line 6 echo "
"; } else { // line 12 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["form"] ?? null), "fields", array())); $context['loop'] = array( '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 13 echo " "; if ($this->getAttribute($context["field"], "type", array())) { // line 14 echo "
"; // line 15 $this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "login.html.twig", 15)->display($context); // line 16 echo "
"; } // line 18 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 19 echo "
"; // line 21 if (($context["notAuthorized"] ?? null)) { // line 22 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true); echo " "; } else { // line 25 echo " "; if ( !($context["authenticated"] ?? null)) { // line 26 echo " env, ($context["base_url_relative"] ?? null), "html", null, true); echo "/forgot\"> "; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LOGIN_BTN_FORGOT"), "html", null, true); echo " "; } else { // line 29 echo " "; } // line 31 echo " "; } // line 32 echo "
"; } // line 41 echo " "; } public function getTemplateName() { return "login.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 234 => 41, 223 => 32, 220 => 31, 214 => 29, 209 => 27, 202 => 26, 199 => 25, 194 => 23, 189 => 22, 187 => 21, 183 => 19, 169 => 18, 165 => 16, 163 => 15, 160 => 14, 157 => 13, 139 => 12, 132 => 8, 128 => 6, 126 => 5, 123 => 4, 120 => 3, 19 => 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 Twig_Source("{% embed 'partials/login.html.twig' with {title:'Grav Admin Login'} %} {% block form %} {% if grav.user.username and grav.user.authenticated %}
{% else %} {% for field in form.fields %} {% if field.type %}
{% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
{% endif %} {% endfor %}
{% if notAuthorized %} {{ 'PLUGIN_ADMIN.BACK'|tu }} {% else %} {% if not authenticated %} {{ 'PLUGIN_ADMIN.LOGIN_BTN_FORGOT'|tu }} {% else %} {% endif %} {% endif %}
{% endif %} {% endblock %} {% endembed %} ", "login.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/login.html.twig"); } }