d41c80ca21097269a6cf978a04c934034addda62f9fbf8c28b1a309a7e7cb349.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /* forms/fields/columns/columns.html.twig */
  3. class __TwigTemplate_ad35faf4f8876afe92e5f4b0809cf4cf86100105cb4a0d566f86551ae8871e6f 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. echo "<div class=\"form-columns grid pure-g\">
  16. ";
  17. // line 2
  18. if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
  19. // line 3
  20. echo " ";
  21. $context["cols"] = twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "fields", array()));
  22. // line 4
  23. echo " ";
  24. $context['_parent'] = $context;
  25. $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", array()));
  26. $context['loop'] = array(
  27. 'parent' => $context['_parent'],
  28. 'index0' => 0,
  29. 'index' => 1,
  30. 'first' => true,
  31. );
  32. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  33. $length = count($context['_seq']);
  34. $context['loop']['revindex0'] = $length - 1;
  35. $context['loop']['revindex'] = $length;
  36. $context['loop']['length'] = $length;
  37. $context['loop']['last'] = 1 === $length;
  38. }
  39. foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
  40. // line 5
  41. echo " ";
  42. $this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", array())) . "/") . $this->getAttribute($context["field"], "type", array())) . ".html.twig"), 1 => "forms/fields/column/column.html.twig"), "forms/fields/columns/columns.html.twig", 5)->display(array_merge($context, array("cols" => ($context["cols"] ?? null))));
  43. // line 6
  44. echo " ";
  45. ++$context['loop']['index0'];
  46. ++$context['loop']['index'];
  47. $context['loop']['first'] = false;
  48. if (isset($context['loop']['length'])) {
  49. --$context['loop']['revindex0'];
  50. --$context['loop']['revindex'];
  51. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  52. }
  53. }
  54. $_parent = $context['_parent'];
  55. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
  56. $context = array_intersect_key($context, $_parent) + $_parent;
  57. }
  58. // line 8
  59. echo "</div>
  60. ";
  61. }
  62. public function getTemplateName()
  63. {
  64. return "forms/fields/columns/columns.html.twig";
  65. }
  66. public function isTraitable()
  67. {
  68. return false;
  69. }
  70. public function getDebugInfo()
  71. {
  72. return array ( 63 => 8, 48 => 6, 45 => 5, 27 => 4, 24 => 3, 22 => 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("<div class=\"form-columns grid pure-g\">
  83. {% if field.fields %}
  84. {% set cols = field.fields|length %}
  85. {% for field in field.fields %}
  86. {% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/column/column.html.twig'] with {'cols':cols} %}
  87. {% endfor %}
  88. {% endif %}
  89. </div>
  90. ", "forms/fields/columns/columns.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/columns/columns.html.twig");
  91. }
  92. }