blocks = [ 'field' => [$this, 'block_field'], ]; } protected function doGetParent(array $context) { // line 1 return "forms/field.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/section/section.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_field($context, array $blocks = []) { // line 4 if ((twig_test_empty($this->getAttribute(($context["field"] ?? null), "security", [])) || $this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize($this->env->getExtension('Grav\Common\Twig\TwigExtension')->arrayFilter($this->getAttribute(($context["field"] ?? null), "security", []))))) { // line 5 echo " "; // line 6 if (($this->getAttribute(($context["field"] ?? null), "title", []) || $this->getAttribute(($context["field"] ?? null), "underline", []))) { // line 7 echo "

env, $this->getAttribute(($context["field"] ?? null), "classes", []), "html", null, true); echo " "; (($this->getAttribute(($context["field"] ?? null), "underline", [])) ? (print (twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "underline", []), "html", null, true))) : (print ("no_underline"))); echo "\">"; if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", [], "any", false, true), "twig", [], "any", false, true), "filters", [], "any", false, true), "tu", [], "array", true, true)) { echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "title", [])), "html", null, true); } else { echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->env, $this->getAttribute(($context["field"] ?? null), "title", [])), "html", null, true); } echo "

"; } // line 9 echo " "; // line 10 if ($this->getAttribute(($context["field"] ?? null), "text", [])) { // line 11 echo "

"; if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", [], "any", false, true), "twig", [], "any", false, true), "filters", [], "any", false, true), "tu", [], "array", true, true)) { echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "text", [])); } else { echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->env, $this->getAttribute(($context["field"] ?? null), "text", [])); } echo "

"; } // line 13 echo " "; // line 14 if ($this->getAttribute(($context["field"] ?? null), "fields", [])) { // line 15 echo "
env, $this->getAttribute(($context["field"] ?? null), "field_classes", []), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "outer_classes", []), "html", null, true); echo "\"> "; // line 16 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "fields", [])); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["field"]) { // line 17 echo " "; if ($this->getAttribute($context["field"], "type", [])) { // line 18 echo " "; $context["value"] = (($this->getAttribute($context["field"], "name", [])) ? ($this->getAttribute(($context["data"] ?? null), "value", [0 => $this->getAttribute($context["field"], "name", [])], "method")) : ($this->getAttribute(($context["data"] ?? null), "toArray", []))); // line 19 echo " "; $this->loadTemplate([0 => (((("forms/fields/" . $this->getAttribute($context["field"], "type", [])) . "/") . $this->getAttribute($context["field"], "type", [])) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"], "forms/fields/section/section.html.twig", 19)->display($context); // line 20 echo " "; } // line 21 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 22 echo "
"; } // line 24 echo " "; } } public function getTemplateName() { return "forms/fields/section/section.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 137 => 24, 133 => 22, 119 => 21, 116 => 20, 113 => 19, 110 => 18, 107 => 17, 90 => 16, 83 => 15, 81 => 14, 78 => 13, 68 => 11, 66 => 10, 63 => 9, 49 => 7, 47 => 6, 44 => 5, 42 => 4, 39 => 3, 29 => 1,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Source("{% extends \"forms/field.html.twig\" %} {% block field %} {% if field.security is empty or authorize(array(field.security)) %} {% if field.title or field.underline %}

{% if grav.twig.twig.filters['tu'] is defined %}{{ field.title|tu }}{% else %}{{ field.title|t }}{% endif %}

{% endif %} {% if field.text %}

{% if grav.twig.twig.filters['tu'] is defined %}{{ field.text|tu|raw }}{% else %}{{ field.text|t|raw }}{% endif %}

{% endif %} {% if field.fields %}
{% for field in field.fields %} {% if field.type %} {% set value = field.name ? data.value(field.name) : data.toArray %} {% include [\"forms/fields/#{field.type}/#{field.type}.html.twig\", 'forms/fields/text/text.html.twig'] %} {% endif %} {% endfor %}
{% endif %} {% endif %} {% endblock %} ", "forms/fields/section/section.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/admin/themes/grav/templates/forms/fields/section/section.html.twig"); } }