parent = false; $this->blocks = array( 'field' => array($this, 'block_field'), 'contents' => array($this, 'block_contents'), 'label' => array($this, 'block_label'), 'global_attributes' => array($this, 'block_global_attributes'), 'group' => array($this, 'block_group'), 'input' => array($this, 'block_input'), 'prepend' => array($this, 'block_prepend'), 'input_attributes' => array($this, 'block_input_attributes'), 'append' => array($this, 'block_append'), ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["originalValue"] = ((array_key_exists("originalValue", $context)) ? (($context["originalValue"] ?? null)) : (($context["value"] ?? null))); // line 2 $context["toggleableChecked"] = ($this->getAttribute(($context["field"] ?? null), "toggleable", array()) && ( !(null === ($context["originalValue"] ?? null)) && !twig_test_empty(($context["originalValue"] ?? null)))); // line 3 $context["isDisabledToggleable"] = ($this->getAttribute(($context["field"] ?? null), "toggleable", array()) && !($context["toggleableChecked"] ?? null)); // line 4 $context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null))); // line 5 $context["vertical"] = ($this->getAttribute(($context["field"] ?? null), "style", array()) == "vertical"); // line 6 $context["field_name"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))); // line 7 echo " "; // line 8 if (($this->getAttribute(($context["field"] ?? null), "yaml", array()) && twig_test_iterable(($context["value"] ?? null)))) { // line 9 echo " "; $context["value"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->toYamlFilter(($context["value"] ?? null)); } // line 11 echo " "; // line 12 $this->displayBlock('field', $context, $blocks); } public function block_field($context, array $blocks = array()) { // line 13 echo "
getAttribute(($context["field"] ?? null), "toggleable", array())) { echo " form-field-toggleable"; } echo " "; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "outerclasses", array()), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "field_classes", array()), "html", null, true); echo "\"> "; // line 14 $this->displayBlock('contents', $context, $blocks); // line 89 echo "
"; } // line 14 public function block_contents($context, array $blocks = array()) { // line 15 echo "
"; // line 16 if ($this->getAttribute(($context["field"] ?? null), "toggleable", array())) { // line 17 echo " env, ($context["field_name"] ?? null), "html", null, true); echo "\"> env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true); echo "\" "; // line 20 if (($context["toggleableChecked"] ?? null)) { echo "value=\"1\""; } // line 21 echo " name=\"toggleable_"; echo twig_escape_filter($this->env, ($context["field_name"] ?? null), "html", null, true); echo "\" "; // line 22 if (($context["toggleableChecked"] ?? null)) { echo "checked=\"checked\""; } // line 23 echo " > "; } // line 27 echo " getAttribute(($context["field"] ?? null), "toggleable", array())) ? (((" class=\"toggleable\" for=\"toggleable_" . $this->getAttribute(($context["field"] ?? null), "name", array())) . "\"")) : ("")); echo "> "; // line 28 $this->displayBlock('label', $context, $blocks); // line 36 echo " "; // line 37 if ($this->getAttribute(($context["field"] ?? null), "sublabel", array())) { // line 38 echo "
"; // line 39 echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFilter($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "sublabel", array()))); echo "
"; } // line 42 echo "
displayBlock('global_attributes', $context, $blocks); // line 49 echo " > "; // line 50 $this->displayBlock('group', $context, $blocks); // line 82 echo " "; if ($this->getAttribute(($context["field"] ?? null), "description", array())) { // line 83 echo "
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true); echo "\"> "; // line 84 echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "description", array())); echo "
"; } // line 87 echo "
"; } // line 28 public function block_label($context, array $blocks = array()) { // line 29 echo " "; if ($this->getAttribute(($context["field"] ?? null), "help", array())) { // line 30 echo " env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "help", array())), "html"); echo "\">"; echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())); echo " "; } else { // line 32 echo " "; echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "label", array())); echo " "; } // line 34 echo " "; echo ((twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) ? ("*") : ("")); echo " "; } // line 44 public function block_global_attributes($context, array $blocks = array()) { // line 45 echo " data-grav-field=\""; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "type", array()), "html", null, true); echo "\" data-grav-disabled=\""; // line 46 echo twig_escape_filter($this->env, ($context["toggleableChecked"] ?? null), "html", null, true); echo "\" data-grav-default=\""; // line 47 echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr"); echo "\" "; } // line 50 public function block_group($context, array $blocks = array()) { // line 51 echo " "; $this->displayBlock('input', $context, $blocks); // line 81 echo " "; } // line 51 public function block_input($context, array $blocks = array()) { // line 52 echo "
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true); echo " "; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true); echo "\"> "; // line 53 $this->displayBlock('prepend', $context, $blocks); // line 54 echo " env, ($context["field_name"] ?? null), "html", null, true); echo "\" value=\""; // line 57 echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true); echo "\" "; // line 58 if ($this->getAttribute(($context["field"] ?? null), "key", array())) { // line 59 echo " data-key-observe=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . ($context["field_name"] ?? null))), "html", null, true); echo "\" "; } // line 61 echo " "; // line 62 echo " "; $this->displayBlock('input_attributes', $context, $blocks); // line 77 echo " /> "; // line 78 $this->displayBlock('append', $context, $blocks); // line 79 echo "
"; } // line 53 public function block_prepend($context, array $blocks = array()) { } // line 62 public function block_input_attributes($context, array $blocks = array()) { // line 63 echo " "; if ($this->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 "\" "; } // line 64 echo " "; if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) { echo "id=\""; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array())); echo "\" "; } // line 65 echo " "; if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) { echo "style=\""; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array())); echo "\" "; } // line 66 echo " "; if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) { echo "disabled=\"disabled\""; } // line 67 echo " "; if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) { echo "placeholder=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true); echo "\""; } // line 68 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "autofocus=\"autofocus\""; } // line 69 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "novalidate=\"novalidate\""; } // line 70 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "readonly=\"readonly\""; } // line 71 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off"))) { echo "autocomplete=\""; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true); echo "\""; } // line 72 echo " "; if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "required=\"required\""; } // line 73 echo " "; if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array())) { echo "pattern=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array()), "html", null, true); echo "\""; } // line 74 echo " "; if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())) { echo "title=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array()))), "html", null, true); echo "\" "; } elseif ($this->getAttribute( // line 75 ($context["field"] ?? null), "title", array(), "any", true, true)) { echo "title=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "title", array()))), "html", null, true); echo "\" "; } // line 76 echo " "; } // line 78 public function block_append($context, array $blocks = array()) { } public function getTemplateName() { return "forms/field.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 375 => 78, 371 => 76, 365 => 75, 358 => 74, 351 => 73, 346 => 72, 339 => 71, 334 => 70, 329 => 69, 324 => 68, 317 => 67, 312 => 66, 305 => 65, 298 => 64, 291 => 63, 288 => 62, 283 => 53, 278 => 79, 276 => 78, 273 => 77, 270 => 62, 268 => 61, 262 => 59, 260 => 58, 256 => 57, 251 => 56, 248 => 54, 246 => 53, 239 => 52, 236 => 51, 232 => 81, 229 => 51, 226 => 50, 220 => 47, 216 => 46, 211 => 45, 208 => 44, 201 => 34, 195 => 32, 187 => 30, 184 => 29, 181 => 28, 176 => 87, 170 => 84, 163 => 83, 160 => 82, 158 => 50, 155 => 49, 153 => 44, 147 => 43, 144 => 42, 138 => 39, 135 => 38, 133 => 37, 130 => 36, 128 => 28, 123 => 27, 117 => 24, 114 => 23, 110 => 22, 105 => 21, 101 => 20, 97 => 19, 91 => 17, 89 => 16, 82 => 15, 79 => 14, 74 => 89, 72 => 14, 58 => 13, 52 => 12, 49 => 11, 45 => 9, 43 => 8, 40 => 7, 38 => 6, 36 => 5, 34 => 4, 32 => 3, 30 => 2, 28 => 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 Twig_Source("{% set originalValue = originalValue is defined ? originalValue : value %} {% set toggleableChecked = field.toggleable and (originalValue is not null and originalValue is not empty) %} {% set isDisabledToggleable = field.toggleable and not toggleableChecked %} {% set value = (value is null ? field.default : value) %} {% set vertical = field.style == 'vertical' %} {% set field_name = (scope ~ field.name)|fieldName %} {% if field.yaml and value is iterable %} {% set value = value|toYaml %} {% endif %} {% block field %}
{% block contents %}
{% if field.toggleable %} {% endif %} {% block label %} {% if field.help %} {{ field.label|tu|raw }} {% else %} {{ field.label|tu|raw }} {% endif %} {{ field.validate.required in ['on', 'true', 1] ? '*' }} {% endblock %} {% if field.sublabel %}
{{ field.sublabel|tu|markdown|raw }}
{% endif %}
{% block group %} {% block input %}
{% block prepend %}{% endblock prepend %} {% block append %}{% endblock append %}
{% endblock %} {% endblock %} {% if field.description %}
{{ field.description|tu|raw }}
{% endif %}
{% endblock %}
{% endblock %} ", "forms/field.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/field.html.twig"); } }