c39576bf7e338d2db8a01734a28691e416318cf45eb59e62793eba12e4cccf00.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /* partials/dashboard-pages.html.twig */
  3. class __TwigTemplate_04f8250bdf699797119c50fb6788037acd393cfb78ca31353fc6ce045224d778 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.pages", 1 => "admin.super"))) {
  16. // line 2
  17. echo " <div id=\"latest\">
  18. <div class=\"button-bar\">
  19. <a class=\"button\" href=\"";
  20. // line 4
  21. echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "route", array(0 => true), "method"), "html", null, true);
  22. echo "/pages\"><i class=\"fa fa-fw fa-file-text-o\"></i>";
  23. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.MANAGE_PAGES"), "html", null, true);
  24. echo "</a>
  25. </div>
  26. <h1>";
  27. // line 6
  28. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.LATEST_PAGE_UPDATES"), "html", null, true);
  29. echo "</h1>
  30. <table>
  31. ";
  32. // line 8
  33. $context['_parent'] = $context;
  34. $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "latestPages", array()));
  35. foreach ($context['_seq'] as $context["_key"] => $context["latest"]) {
  36. if ($this->getAttribute(($context["admin"] ?? null), "latestPages", array())) {
  37. // line 9
  38. echo " <tr>
  39. <td class=\"triple page-title\">
  40. <a href=\"";
  41. // line 11
  42. echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
  43. echo "/pages/";
  44. echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute($context["latest"], "route", array()), "/"), "html", null, true);
  45. echo "\"><i class=\"fa fa-fw fa-file-text-o\"></i> ";
  46. echo twig_escape_filter($this->env, $this->getAttribute($context["latest"], "title", array()));
  47. echo "</a></td>
  48. <td class=\"triple page-route\">";
  49. // line 12
  50. echo twig_escape_filter($this->env, $this->getAttribute($context["latest"], "route", array()), "html", null, true);
  51. echo "</td><td>";
  52. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->adminNicetimeFilter($this->getAttribute($context["latest"], "modified", array())), "html", null, true);
  53. echo "</td>
  54. </tr>
  55. ";
  56. }
  57. }
  58. $_parent = $context['_parent'];
  59. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['latest'], $context['_parent'], $context['loop']);
  60. $context = array_intersect_key($context, $_parent) + $_parent;
  61. // line 15
  62. echo " </table>
  63. </div>
  64. ";
  65. } else {
  66. // line 18
  67. echo " <div class=\"padding\">You don't have sufficient access to view the dashboard...</div>
  68. ";
  69. }
  70. }
  71. public function getTemplateName()
  72. {
  73. return "partials/dashboard-pages.html.twig";
  74. }
  75. public function isTraitable()
  76. {
  77. return false;
  78. }
  79. public function getDebugInfo()
  80. {
  81. return array ( 71 => 18, 66 => 15, 54 => 12, 46 => 11, 42 => 9, 37 => 8, 32 => 6, 25 => 4, 21 => 2, 19 => 1,);
  82. }
  83. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  84. public function getSource()
  85. {
  86. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  87. return $this->getSourceContext()->getCode();
  88. }
  89. public function getSourceContext()
  90. {
  91. return new Twig_Source("{% if authorize(['admin.pages', 'admin.super']) %}
  92. <div id=\"latest\">
  93. <div class=\"button-bar\">
  94. <a class=\"button\" href=\"{{ uri.route(true) }}/pages\"><i class=\"fa fa-fw fa-file-text-o\"></i>{{ \"PLUGIN_ADMIN.MANAGE_PAGES\"|tu }}</a>
  95. </div>
  96. <h1>{{ \"PLUGIN_ADMIN.LATEST_PAGE_UPDATES\"|tu }}</h1>
  97. <table>
  98. {% for latest in admin.latestPages if admin.latestPages %}
  99. <tr>
  100. <td class=\"triple page-title\">
  101. <a href=\"{{ base_url }}/pages/{{ latest.route|trim('/') }}\"><i class=\"fa fa-fw fa-file-text-o\"></i> {{ latest.title|e }}</a></td>
  102. <td class=\"triple page-route\">{{ latest.route }}</td><td>{{ latest.modified|adminNicetime }}</td>
  103. </tr>
  104. {% endfor %}
  105. </table>
  106. </div>
  107. {% else %}
  108. <div class=\"padding\">You don't have sufficient access to view the dashboard...</div>
  109. {% endif %}
  110. ", "partials/dashboard-pages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/dashboard-pages.html.twig");
  111. }
  112. }