parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/iconpicker/iconpicker.html.twig", 1); $this->blocks = array( 'global_attributes' => array($this, 'block_global_attributes'), 'input' => array($this, 'block_input'), 'input_attributes' => array($this, 'block_input_attributes'), ); } protected function doGetParent(array $context) { return "forms/field.html.twig"; } protected function doDisplay(array $context, array $blocks = array()) { // line 2 $context["originalValue"] = ((array_key_exists("originalValue", $context)) ? (($context["originalValue"] ?? null)) : (($context["value"] ?? null))); // line 3 $context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null))); // line 1 $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 5 public function block_global_attributes($context, array $blocks = array()) { // line 6 echo " data-grav-iconpicker data-name=\""; // line 7 echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "name", array()), "html", null, true); echo "\" data-value=\""; // line 8 echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true); echo "\" "; // line 9 $this->displayParentBlock("global_attributes", $context, $blocks); echo " "; } // line 12 public function block_input($context, array $blocks = array()) { // line 13 echo "
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true); echo "\" data-type=\"collection\">
env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true); echo "\" data-format=\""; // line 18 echo ((($this->getAttribute(($context["field"] ?? null), "format", array()) == "short")) ? ("short") : ("long")); echo "\" value=\""; // line 19 echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true); echo "\" type=\"text\" "; // line 22 echo " "; $this->displayBlock('input_attributes', $context, $blocks); // line 34 echo " />
"; } // line 22 public function block_input_attributes($context, array $blocks = array()) { // line 23 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 24 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 25 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 26 echo " "; if ($this->getAttribute(($context["field"] ?? null), "disabled", array())) { echo "disabled=\"disabled\""; } // line 27 echo " "; if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) { echo "placeholder=\""; echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "placeholder", array()), "html", null, true); echo "\""; } // line 28 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "autofocus=\"autofocus\""; } // line 29 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "novalidate=\"novalidate\""; } // line 30 echo " "; if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) { echo "readonly=\"readonly\""; } // line 31 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 32 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 33 echo " "; } public function getTemplateName() { return "forms/fields/iconpicker/iconpicker.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 176 => 33, 171 => 32, 164 => 31, 159 => 30, 154 => 29, 149 => 28, 142 => 27, 137 => 26, 130 => 25, 123 => 24, 116 => 23, 113 => 22, 106 => 42, 93 => 40, 89 => 39, 82 => 34, 79 => 22, 74 => 19, 70 => 18, 65 => 17, 58 => 13, 55 => 12, 49 => 9, 45 => 8, 41 => 7, 38 => 6, 35 => 5, 31 => 1, 29 => 3, 27 => 2, 11 => 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("{% extends \"forms/field.html.twig\" %} {% set originalValue = originalValue is defined ? originalValue : value %} {% set value = (value is null ? field.default : value) %} {% block global_attributes %} data-grav-iconpicker data-name=\"{{field.name}}\" data-value=\"{{value}}\" {{ parent() }} {% endblock %} {% block input %}
{% endblock %} ", "forms/fields/iconpicker/iconpicker.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/admin/themes/grav/templates/forms/fields/iconpicker/iconpicker.html.twig"); } }