c3d6c64fb670f8a9494ba77a1fb2155059144c780aa355f72f5915c89cf2f2de.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /* forms/fields/column/column.html.twig */
  3. class __TwigTemplate_27d33db924f9d050c15c86e1ed6a2669e71a6f44e2dd0f582f8aca072496adb7 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(($context["field"] ?? null), "fields", array())) {
  16. // line 2
  17. echo " <div class=\"form-column block pure-u-1-";
  18. echo twig_escape_filter($this->env, ($context["cols"] ?? null), "html", null, true);
  19. echo "\">
  20. ";
  21. // line 3
  22. $context['_parent'] = $context;
  23. $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
  24. $context['loop'] = array(
  25. 'parent' => $context['_parent'],
  26. 'index0' => 0,
  27. 'index' => 1,
  28. 'first' => true,
  29. );
  30. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  31. $length = count($context['_seq']);
  32. $context['loop']['revindex0'] = $length - 1;
  33. $context['loop']['revindex'] = $length;
  34. $context['loop']['length'] = $length;
  35. $context['loop']['last'] = 1 === $length;
  36. }
  37. foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
  38. // line 4
  39. echo " ";
  40. if ($this->getAttribute($context["field"], "type", array())) {
  41. // line 5
  42. echo " ";
  43. $context["value"] = (($this->getAttribute($context["field"], "name", array())) ? ($this->getAttribute(($context["data"] ?? null), "value", array(0 => $this->getAttribute($context["field"], "name", array())), "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", array())));
  44. // line 6
  45. echo " ";
  46. $this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/column/column.html.twig", 6)->display($context);
  47. // line 7
  48. echo " ";
  49. }
  50. // line 8
  51. echo " ";
  52. ++$context['loop']['index0'];
  53. ++$context['loop']['index'];
  54. $context['loop']['first'] = false;
  55. if (isset($context['loop']['length'])) {
  56. --$context['loop']['revindex0'];
  57. --$context['loop']['revindex'];
  58. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  59. }
  60. }
  61. $_parent = $context['_parent'];
  62. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
  63. $context = array_intersect_key($context, $_parent) + $_parent;
  64. // line 9
  65. echo " </div>
  66. ";
  67. }
  68. }
  69. public function getTemplateName()
  70. {
  71. return "forms/fields/column/column.html.twig";
  72. }
  73. public function isTraitable()
  74. {
  75. return false;
  76. }
  77. public function getDebugInfo()
  78. {
  79. return array ( 69 => 9, 55 => 8, 52 => 7, 49 => 6, 46 => 5, 43 => 4, 26 => 3, 21 => 2, 19 => 1,);
  80. }
  81. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  82. public function getSource()
  83. {
  84. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  85. return $this->getSourceContext()->getCode();
  86. }
  87. public function getSourceContext()
  88. {
  89. return new Twig_Source("{% if field.fields %}
  90. <div class=\"form-column block pure-u-1-{{ cols }}\">
  91. {% for field in field.fields %}
  92. {% if field.type %}
  93. {% set value = field.name ? data.value(field.name) : data.toArray %}
  94. {% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %}
  95. {% endif %}
  96. {% endfor %}
  97. </div>
  98. {% endif %}
  99. ", "forms/fields/column/column.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/column/column.html.twig");
  100. }
  101. }