8d46178e1db7a08e822ae7f2b5ceb0f62f5ab02533c5b47ee902eef45b8e7bf9.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Markup;
  6. use Twig\Sandbox\SecurityError;
  7. use Twig\Sandbox\SecurityNotAllowedTagError;
  8. use Twig\Sandbox\SecurityNotAllowedFilterError;
  9. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  10. use Twig\Source;
  11. use Twig\Template;
  12. /* list/unordered.twig */
  13. class __TwigTemplate_3d2c9a52e1d502cea3652e5ba2a5b7139e1742ea491f971660dcf4ab63dd499c extends \Twig\Template
  14. {
  15. public function __construct(Environment $env)
  16. {
  17. parent::__construct($env);
  18. $this->parent = false;
  19. $this->blocks = [
  20. ];
  21. }
  22. protected function doDisplay(array $context, array $blocks = [])
  23. {
  24. // line 1
  25. echo "<ul";
  26. if ( !twig_test_empty(($context["id"] ?? null))) {
  27. echo " id=\"";
  28. echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
  29. echo "\"";
  30. }
  31. // line 2
  32. if ( !twig_test_empty(($context["class"] ?? null))) {
  33. echo " class=\"";
  34. echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
  35. echo "\"";
  36. }
  37. echo ">
  38. ";
  39. // line 4
  40. if ( !twig_test_empty(($context["items"] ?? null))) {
  41. // line 5
  42. echo " ";
  43. $context['_parent'] = $context;
  44. $context['_seq'] = twig_ensure_traversable(($context["items"] ?? null));
  45. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  46. // line 6
  47. echo " ";
  48. if ( !twig_test_iterable($context["item"])) {
  49. // line 7
  50. echo " ";
  51. $context["item"] = ["content" => $context["item"]];
  52. // line 8
  53. echo " ";
  54. }
  55. // line 9
  56. echo " ";
  57. $this->loadTemplate("list/item.twig", "list/unordered.twig", 9)->display(twig_to_array($context["item"]));
  58. // line 10
  59. echo " ";
  60. }
  61. $_parent = $context['_parent'];
  62. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  63. $context = array_intersect_key($context, $_parent) + $_parent;
  64. // line 11
  65. echo " ";
  66. } elseif ( !twig_test_empty(($context["content"] ?? null))) {
  67. // line 12
  68. echo " ";
  69. echo ($context["content"] ?? null);
  70. echo "
  71. ";
  72. }
  73. // line 14
  74. echo "</ul>
  75. ";
  76. }
  77. public function getTemplateName()
  78. {
  79. return "list/unordered.twig";
  80. }
  81. public function isTraitable()
  82. {
  83. return false;
  84. }
  85. public function getDebugInfo()
  86. {
  87. return array ( 80 => 14, 74 => 12, 71 => 11, 65 => 10, 62 => 9, 59 => 8, 56 => 7, 53 => 6, 48 => 5, 46 => 4, 37 => 2, 30 => 1,);
  88. }
  89. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  90. public function getSource()
  91. {
  92. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  93. return $this->getSourceContext()->getCode();
  94. }
  95. public function getSourceContext()
  96. {
  97. return new Source("", "list/unordered.twig", "/www/pma/templates/list/unordered.twig");
  98. }
  99. }