70f43dfe84522797170fbabc2f5ec4773f604b47a66bc351394460ffec625d4a.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /* partials/nav-quick-tray.html.twig */
  3. class __TwigTemplate_d53ab5674680e3f974348351339a353d26cf79f9654d6daeb896df1fbfa6aa6a 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->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_quick_tray", array())) {
  16. // line 2
  17. echo " <ul id=\"admin-nav-quick-tray\">
  18. ";
  19. // line 3
  20. $context['_parent'] = $context;
  21. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array()), "plugins_quick_tray", array()));
  22. foreach ($context['_seq'] as $context["label"] => $context["item"]) {
  23. // line 4
  24. echo " ";
  25. if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(((($this->getAttribute($context["item"], "authorize", array(), "any", true, true) && twig_test_iterable($this->getAttribute($context["item"], "authorize", array())))) ? ($this->getAttribute($context["item"], "authorize", array())) : (array(0 => (($this->getAttribute($context["item"], "authorize", array())) ? ($this->getAttribute($context["item"], "authorize", array())) : (("admin." . (($this->getAttribute($context["item"], "location", array())) ? ($this->getAttribute($context["item"], "location", array())) : ($this->getAttribute($context["item"], "route", array())))))), 1 => "admin.super"))))) {
  26. // line 5
  27. echo " ";
  28. $context["data_tags"] = "";
  29. // line 6
  30. echo " ";
  31. if ($this->getAttribute($context["item"], "data", array())) {
  32. // line 7
  33. echo " ";
  34. $context['_parent'] = $context;
  35. $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "data", array()));
  36. foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  37. // line 8
  38. echo " ";
  39. $context["data_tags"] = (((((($context["data_tags"] ?? null) . " data-") . $context["key"]) . "=\"") . $context["value"]) . "\"");
  40. // line 9
  41. echo " ";
  42. }
  43. $_parent = $context['_parent'];
  44. unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
  45. $context = array_intersect_key($context, $_parent) + $_parent;
  46. // line 10
  47. echo " ";
  48. }
  49. // line 11
  50. echo " <li class=\"";
  51. echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "class", array()), "html", null, true);
  52. echo " hint--bottom\" data-hint=\"";
  53. echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "hint", array()), "html", null, true);
  54. echo "\" ";
  55. echo ($context["data_tags"] ?? null);
  56. echo ">
  57. ";
  58. // line 12
  59. if ($this->getAttribute($context["item"], "route", array())) {
  60. // line 13
  61. echo " <a href=\"";
  62. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc($this->getAttribute($context["item"], "route", array())), "html", null, true);
  63. echo "\">
  64. <i class=\"fa fa-fw ";
  65. // line 14
  66. echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
  67. echo "\"></i>
  68. </a>
  69. ";
  70. } else {
  71. // line 17
  72. echo " <i class=\"fa fa-fw ";
  73. echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()), "html", null, true);
  74. echo "\"></i>
  75. ";
  76. }
  77. // line 19
  78. echo " </li>
  79. ";
  80. }
  81. // line 21
  82. echo " ";
  83. }
  84. $_parent = $context['_parent'];
  85. unset($context['_seq'], $context['_iterated'], $context['label'], $context['item'], $context['_parent'], $context['loop']);
  86. $context = array_intersect_key($context, $_parent) + $_parent;
  87. // line 22
  88. echo " </ul>
  89. ";
  90. }
  91. }
  92. public function getTemplateName()
  93. {
  94. return "partials/nav-quick-tray.html.twig";
  95. }
  96. public function isTraitable()
  97. {
  98. return false;
  99. }
  100. public function getDebugInfo()
  101. {
  102. return array ( 92 => 22, 86 => 21, 82 => 19, 76 => 17, 70 => 14, 65 => 13, 63 => 12, 54 => 11, 51 => 10, 45 => 9, 42 => 8, 37 => 7, 34 => 6, 31 => 5, 28 => 4, 24 => 3, 21 => 2, 19 => 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("{% if grav.twig.plugins_quick_tray %}
  113. <ul id=\"admin-nav-quick-tray\">
  114. {% for label, item in grav.twig.plugins_quick_tray %}
  115. {% if authorize((item.authorize is defined and item.authorize is iterable) ? item.authorize : [item.authorize ?: ('admin.' ~ (item.location ?: item.route)), 'admin.super']) %}
  116. {% set data_tags = '' %}
  117. {% if (item.data) %}
  118. {% for key, value in item.data %}
  119. {% set data_tags = data_tags ~ ' data-' ~ key ~ '=\"' ~ value ~ '\"' %}
  120. {% endfor %}
  121. {% endif %}
  122. <li class=\"{{ item.class }} hint--bottom\" data-hint=\"{{ item.hint }}\" {{ data_tags|raw }}>
  123. {% if item.route %}
  124. <a href=\"{{ url(item.route) }}\">
  125. <i class=\"fa fa-fw {{ item.icon }}\"></i>
  126. </a>
  127. {% else %}
  128. <i class=\"fa fa-fw {{ item.icon }}\"></i>
  129. {% endif %}
  130. </li>
  131. {% endif %}
  132. {% endfor %}
  133. </ul>
  134. {% endif %}
  135. ", "partials/nav-quick-tray.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav-quick-tray.html.twig");
  136. }
  137. }