displayBlock('global_attributes', $context, $blocks);
// line 37
echo " >
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
echo "\" data-type=\"collection\"
";
// line 40
if ($this->getAttribute(($context["field"] ?? null), "selectunique", array())) {
// line 41
echo " data-select-unique=\"";
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "selectunique", array())), "html_attr");
echo "\"
data-max=\"";
// line 42
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "selectunique", array())), "html", null, true);
echo "\"
";
}
// line 44
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "min", array(), "any", true, true)) {
echo "data-min=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "min", array()), "html", null, true);
echo "\"";
}
// line 45
echo " ";
if (($this->getAttribute(($context["field"] ?? null), "max", array(), "any", true, true) && !$this->getAttribute(($context["field"] ?? null), "selectunique", array()))) {
echo "data-max=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "max", array()), "html", null, true);
echo "\"";
}
// line 46
echo " >
";
// line 47
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "top", 1 => "both"))) {
// line 48
echo "
";
// line 49
if (($context["collapsible"] ?? null)) {
// line 50
echo " getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo "> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.EXPAND_ALL")), "html", null, true);
echo "
getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo "> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.COLLAPSE_ALL")), "html", null, true);
echo "
";
}
// line 55
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
// line 56
echo " env, ($context["value"] ?? null))) ? (" hidden") : (""));
echo "\" type=\"button\" data-action=\"sort\" data-action-sort=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
echo "\" data-action-sort-dir=\"";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
echo "\"
";
// line 57
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo ">env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnSortLabel"] ?? null))), "html", null, true);
echo " '";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
echo "'
";
}
// line 59
echo " getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo "> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnLabel"] ?? null))), "html", null, true);
echo "
";
}
// line 63
echo "
getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) {
echo "class=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
echo "\"";
}
echo " data-collection-holder=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\"
";
// line 64
if (($this->getAttribute(($context["field"] ?? null), "sort", array()) === false)) {
// line 65
echo " data-collection-nosort
";
}
// line 66
echo ">
";
// line 67
if ($this->getAttribute(($context["field"] ?? null), "fields", array())) {
// line 68
echo " ";
$context["collapsible"] = ((twig_length_filter($this->env, $this->getAttribute(($context["field"] ?? null), "fields", array())) > 1) && ( !$this->getAttribute(($context["field"] ?? null), "collapsible", array(), "any", true, true) || $this->getAttribute(($context["field"] ?? null), "collapsible", array())));
// line 69
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["value"] ?? null));
$context['loop'] = array(
'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["val"]) {
// line 70
echo " ";
$context["itemName"] = ((($context["name"] ?? null)) ? (((($context["name"] ?? null) . ".") . $context["key"])) : ($context["key"]));
// line 71
echo " env, ($context["itemName"] ?? null), "html", null, true);
echo "\" data-collection-key=\"";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" class=\"";
echo (((($context["collapsible"] ?? null) && $this->getAttribute(($context["field"] ?? null), "collapsed", array()))) ? ("collection-collapsed") : (""));
echo "\">
";
// line 73
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["field"] ?? null), "fields", array()));
$context['loop'] = array(
'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["childName"] => $context["child"]) {
// line 74
if (($context["childName"] == "value")) {
// line 75
$context["childKey"] = "";
// line 76
echo " ";
$context["childValue"] = $context["val"];
// line 77
echo " ";
$context["childName"] = ($context["itemName"] ?? null);
} elseif ((is_string($__internal_7cd7461123377b8c9c1b6a01f46c7bbd94bd12e59266005df5e93029ddbc0ec5 = // line 78
$context["childName"]) && is_string($__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a = ".") && ('' === $__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a || 0 === strpos($__internal_7cd7461123377b8c9c1b6a01f46c7bbd94bd12e59266005df5e93029ddbc0ec5, $__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a)))) {
// line 79
$context["childKey"] = twig_trim_filter($context["childName"], ".");
// line 80
echo " ";
$context["childValue"] = $this->getAttribute($context["val"], twig_slice($this->env, $context["childName"], 1, null), array(), "array");
// line 81
echo " ";
$context["childName"] = (($context["itemName"] ?? null) . $context["childName"]);
// line 82
echo " ";
} else {
// line 83
echo " ";
$context["childKey"] = $context["childName"];
// line 84
echo " ";
$context["childValue"] = $this->getAttribute(($context["data"] ?? null), "value", array(0 => (($context["scope"] ?? null) . $context["childName"])), "method");
// line 85
echo " ";
$context["childName"] = twig_replace_filter($context["childName"], array("*" => $context["key"]));
// line 86
echo " ";
}
// line 87
echo " ";
$context["child"] = twig_array_merge($context["child"], array("name" => $context["childName"]));
// line 88
echo "
";
// line 89
if (($this->getAttribute($context["child"], "type", array()) == "key")) {
// line 90
echo " ";
// line 91
$this->loadTemplate("forms/fields/key/key.html.twig", "forms/fields/list/list.html.twig", 91)->display(array_merge($context, array("field" => // line 92
$context["child"], "value" => $context["key"])));
// line 94
echo " ";
} elseif (($this->getAttribute($context["child"], "key", array()) == true)) {
// line 95
echo " ";
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 96
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/key/key.html.twig"), "forms/fields/list/list.html.twig", 95)->display(array_merge($context, array("field" => // line 98
$context["child"], "value" => $context["key"])));
// line 100
echo " ";
} elseif ($this->getAttribute($context["child"], "type", array())) {
// line 101
echo " ";
$context["originalValue"] = ($context["childValue"] ?? null);
// line 102
echo " ";
// line 103
$this->loadTemplate(array(0 => (((("forms/fields/" . $this->getAttribute( // line 104
$context["child"], "type", array())) . "/") . $this->getAttribute($context["child"], "type", array())) . ".html.twig"), 1 => "forms/fields/text/text.html.twig"), "forms/fields/list/list.html.twig", 103)->display(array_merge($context, array("field" => // line 106
$context["child"], "value" => ($context["childValue"] ?? null))));
// line 108
echo " ";
}
// line 109
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['childName'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
echo "
";
// line 111
if (($context["collapsible"] ?? null)) {
// line 112
echo " getAttribute(($context["field"] ?? null), "collapsed", array())) ? ("right") : ("down"));
echo "\" data-action=\"";
echo (($this->getAttribute(($context["field"] ?? null), "collapsed", array())) ? ("expand") : ("collapse"));
echo "\">
";
}
// line 115
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['val'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 119
echo " ";
}
// line 120
echo "
";
// line 121
if (twig_in_filter(($context["fieldControls"] ?? null), array(0 => "bottom", 1 => "both"))) {
// line 122
echo "
";
// line 123
if (($context["collapsible"] ?? null)) {
// line 124
echo " getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo "> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.EXPAND_ALL")), "html", null, true);
echo "
getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo "> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, "PLUGIN_ADMIN.COLLAPSE_ALL")), "html", null, true);
echo "
";
}
// line 129
echo " ";
if ($this->getAttribute(($context["field"] ?? null), "sortby", array())) {
// line 130
echo " env, ($context["value"] ?? null))) ? (" hidden") : (""));
echo "\" type=\"button\" data-action=\"sort\" data-action-sort=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
echo "\" data-action-sort-dir=\"";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
echo "\"
";
// line 131
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo ">env, (($this->getAttribute(($context["field"] ?? null), "sortby_dir", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "sortby_dir", array()), "asc")) : ("asc")), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnSortLabel"] ?? null))), "html", null, true);
echo " '";
echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "sortby", array()), "html", null, true);
echo "'
";
}
// line 133
echo " getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
echo "> ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, ($context["btnLabel"] ?? null))), "html", null, true);
echo "
";
}
// line 138
$context["itemName"] = ((($context["name"] ?? null)) ? ((($context["name"] ?? null) . ".*")) : ("*"));
// line 139
echo "
env, twig_replace_filter( $this->renderBlock("__internal_e408f6e41354bae6411f4fb2bf2e9ca816e0821165964d2e30246de2e260224d", $context, $blocks), array(" " => " ", "
" => " ")), "html_attr");
// line 188
echo "\">
env, ($context["name"] ?? null), "html", null, true);
echo "\">