15962f8b7e50d93e0f7ee266bb1d741bee9581f4a7662c4d98c36e1bcb97bc83.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. /* partials/login.html.twig */
  3. class __TwigTemplate_e48d3b3889fbeaee326d219e3b892e538cc2b3d886643f71a5a6769cb464dc71 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. // line 1
  9. $this->parent = $this->loadTemplate("partials/base.html.twig", "partials/login.html.twig", 1);
  10. $this->blocks = array(
  11. 'messages' => array($this, 'block_messages'),
  12. 'body' => array($this, 'block_body'),
  13. 'instructions' => array($this, 'block_instructions'),
  14. 'form' => array($this, 'block_form'),
  15. );
  16. }
  17. protected function doGetParent(array $context)
  18. {
  19. return "partials/base.html.twig";
  20. }
  21. protected function doDisplay(array $context, array $blocks = array())
  22. {
  23. // line 2
  24. $context["scope"] = ((($context["scope"] ?? null)) ? (($context["scope"] ?? null)) : ("data."));
  25. // line 1
  26. $this->parent->display($context, array_merge($this->blocks, $blocks));
  27. }
  28. // line 3
  29. public function block_messages($context, array $blocks = array())
  30. {
  31. }
  32. // line 5
  33. public function block_body($context, array $blocks = array())
  34. {
  35. // line 6
  36. echo "<body id=\"admin-login-wrapper\">
  37. <section id=\"admin-login\" class=\"default-box-shadow ";
  38. // line 7
  39. echo twig_escape_filter($this->env, ($context["classes"] ?? null), "html", null, true);
  40. echo "\">
  41. <h1>
  42. ";
  43. // line 9
  44. echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
  45. echo "
  46. </h1>
  47. ";
  48. // line 12
  49. $this->loadTemplate("partials/messages.html.twig", "partials/login.html.twig", 12)->display($context);
  50. // line 13
  51. echo "
  52. ";
  53. // line 14
  54. $this->displayBlock('instructions', $context, $blocks);
  55. // line 15
  56. echo "
  57. ";
  58. // line 16
  59. $context["redirect"] = ((($context["redirect"] ?? null)) ? (($context["redirect"] ?? null)) : ($this->getAttribute(($context["uri"] ?? null), "route", array(0 => false), "method")));
  60. // line 17
  61. echo "
  62. <form method=\"post\" action=\"";
  63. // line 18
  64. echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
  65. echo "\">
  66. <div class=\"padding\">
  67. ";
  68. // line 20
  69. $this->displayBlock('form', $context, $blocks);
  70. // line 21
  71. echo " <input type=\"hidden\" name=\"redirect\" value=\"";
  72. echo twig_escape_filter($this->env, ($context["redirect"] ?? null), "html", null, true);
  73. echo "\" />
  74. ";
  75. // line 22
  76. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->nonceFieldFunc("admin-form", "admin-nonce");
  77. echo "
  78. </div>
  79. </form>
  80. </section>
  81. </body>
  82. ";
  83. }
  84. // line 14
  85. public function block_instructions($context, array $blocks = array())
  86. {
  87. }
  88. // line 20
  89. public function block_form($context, array $blocks = array())
  90. {
  91. }
  92. public function getTemplateName()
  93. {
  94. return "partials/login.html.twig";
  95. }
  96. public function isTraitable()
  97. {
  98. return false;
  99. }
  100. public function getDebugInfo()
  101. {
  102. return array ( 98 => 20, 93 => 14, 83 => 22, 78 => 21, 76 => 20, 71 => 18, 68 => 17, 66 => 16, 63 => 15, 61 => 14, 58 => 13, 56 => 12, 50 => 9, 45 => 7, 42 => 6, 39 => 5, 34 => 3, 30 => 1, 28 => 2, 11 => 1,);
  103. }
  104. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  105. public function getSource()
  106. {
  107. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  108. return $this->getSourceContext()->getCode();
  109. }
  110. public function getSourceContext()
  111. {
  112. return new Twig_Source("{% extends 'partials/base.html.twig' %}
  113. {% set scope = scope ?: 'data.' %}
  114. {% block messages %}{% endblock %}
  115. {% block body %}
  116. <body id=\"admin-login-wrapper\">
  117. <section id=\"admin-login\" class=\"default-box-shadow {{ classes }}\">
  118. <h1>
  119. {{ title }}
  120. </h1>
  121. {% include 'partials/messages.html.twig' %}
  122. {% block instructions %}{% endblock %}
  123. {% set redirect = redirect ?: uri.route(false) %}
  124. <form method=\"post\" action=\"{{ base_url_relative }}\">
  125. <div class=\"padding\">
  126. {% block form %}{% endblock %}
  127. <input type=\"hidden\" name=\"redirect\" value=\"{{ redirect }}\" />
  128. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  129. </div>
  130. </form>
  131. </section>
  132. </body>
  133. {% endblock %}
  134. ", "partials/login.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/login.html.twig");
  135. }
  136. }