211c79a5ee840efb86a9d9d10829fe8c2254a0e5f5105146d6725657f0f53a9b.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /* error.html.twig */
  3. class __TwigTemplate_8938aa1083c7c0f2376e9a635cdf67f5cf665340aa0814ae86dbc1bc4403c9e8 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", "error.html.twig", 1);
  10. $this->blocks = array(
  11. 'content' => array($this, 'block_content'),
  12. );
  13. }
  14. protected function doGetParent(array $context)
  15. {
  16. return "partials/base.html.twig";
  17. }
  18. protected function doDisplay(array $context, array $blocks = array())
  19. {
  20. $this->parent->display($context, array_merge($this->blocks, $blocks));
  21. }
  22. // line 3
  23. public function block_content($context, array $blocks = array())
  24. {
  25. // line 4
  26. echo "\t<div id=\"error\">
  27. \t\t<div>
  28. \t\t\t<h1>";
  29. // line 6
  30. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate("ERROR");
  31. echo " ";
  32. echo $this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", array()), "http_response_code", array());
  33. echo "</h1>
  34. \t\t\t<p>
  35. \t\t\t\t";
  36. // line 8
  37. echo $this->getAttribute(($context["page"] ?? null), "content", array());
  38. echo "
  39. \t\t\t</p>
  40. \t\t</div>
  41. \t</div>
  42. ";
  43. }
  44. public function getTemplateName()
  45. {
  46. return "error.html.twig";
  47. }
  48. public function isTraitable()
  49. {
  50. return false;
  51. }
  52. public function getDebugInfo()
  53. {
  54. return array ( 42 => 8, 35 => 6, 31 => 4, 28 => 3, 11 => 1,);
  55. }
  56. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  57. public function getSource()
  58. {
  59. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  60. return $this->getSourceContext()->getCode();
  61. }
  62. public function getSourceContext()
  63. {
  64. return new Twig_Source("{% extends 'partials/base.html.twig' %}
  65. {% block content %}
  66. \t<div id=\"error\">
  67. \t\t<div>
  68. \t\t\t<h1>{{ 'ERROR'|t }} {{ page.header.http_response_code }}</h1>
  69. \t\t\t<p>
  70. \t\t\t\t{{ page.content }}
  71. \t\t\t</p>
  72. \t\t</div>
  73. \t</div>
  74. {% endblock %}
  75. ", "error.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/error.html.twig");
  76. }
  77. }