a9ef454ed7233f7dbc31ae8e11d5c917b4ec0aa1c5e1bd2b043791fd1ad330a1.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. /* partials/messages.html.twig */
  3. class __TwigTemplate_601b70f198fe6791c681684c16dc8adad37494513701923e125dbcba77b32fdd 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. $context["admin_messages"] = twig_array_merge($this->getAttribute(($context["admin"] ?? null), "messages", array()), $this->getAttribute(($context["admin"] ?? null), "getTempMessages", array(), "method"));
  16. // line 2
  17. $context["form_message"] = $this->getAttribute(($context["form"] ?? null), "message", array());
  18. // line 3
  19. echo "<div id=\"messages\" class=\"top-notifications-container";
  20. echo (((twig_length_filter($this->env, ($context["admin_messages"] ?? null)) || ($context["form_message"] ?? null))) ? (" default-box-shadow") : (""));
  21. echo "\">
  22. <div class=\"single-notification info alert hidden\" data-gpm-grav></div>";
  23. // line 5
  24. $context['_parent'] = $context;
  25. $context['_seq'] = twig_ensure_traversable(($context["admin_messages"] ?? null));
  26. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  27. // line 6
  28. echo "<div class=\"";
  29. echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "scope", array()));
  30. echo " alert\">";
  31. echo $this->getAttribute($context["message"], "message", array());
  32. echo "</div>";
  33. }
  34. $_parent = $context['_parent'];
  35. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  36. $context = array_intersect_key($context, $_parent) + $_parent;
  37. // line 8
  38. if (($context["form_message"] ?? null)) {
  39. // line 9
  40. echo "<div class=\"error alert\">";
  41. echo ($context["form_message"] ?? null);
  42. echo "</div>";
  43. }
  44. // line 11
  45. $context['_parent'] = $context;
  46. $context['_seq'] = twig_ensure_traversable(($context["plugin_messages"] ?? null));
  47. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  48. // line 12
  49. echo "<div class=\"";
  50. echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "scope", array()));
  51. echo " alert\">";
  52. echo $this->getAttribute($context["message"], "message", array());
  53. echo "</div>";
  54. }
  55. $_parent = $context['_parent'];
  56. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  57. $context = array_intersect_key($context, $_parent) + $_parent;
  58. // line 14
  59. echo "</div>
  60. ";
  61. }
  62. public function getTemplateName()
  63. {
  64. return "partials/messages.html.twig";
  65. }
  66. public function isTraitable()
  67. {
  68. return false;
  69. }
  70. public function getDebugInfo()
  71. {
  72. return array ( 63 => 14, 53 => 12, 49 => 11, 44 => 9, 42 => 8, 32 => 6, 28 => 5, 23 => 3, 21 => 2, 19 => 1,);
  73. }
  74. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  75. public function getSource()
  76. {
  77. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  78. return $this->getSourceContext()->getCode();
  79. }
  80. public function getSourceContext()
  81. {
  82. return new Twig_Source("{% set admin_messages = admin.messages|merge(admin.getTempMessages()) %}
  83. {% set form_message = form.message %}
  84. <div id=\"messages\" class=\"top-notifications-container{{ admin_messages|length or form_message ? ' default-box-shadow' : '' }}\">
  85. <div class=\"single-notification info alert hidden\" data-gpm-grav></div>
  86. {%- for message in admin_messages -%}
  87. <div class=\"{{ message.scope|e }} alert\">{{ message.message|raw }}</div>
  88. {%- endfor -%}
  89. {%- if form_message -%}
  90. <div class=\"error alert\">{{ form_message|raw }}</div>
  91. {%- endif -%}
  92. {%- for message in plugin_messages -%}
  93. <div class=\"{{ message.scope|e }} alert\">{{ message.message|raw }}</div>
  94. {%- endfor -%}
  95. </div>
  96. ", "partials/messages.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/messages.html.twig");
  97. }
  98. }