parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/key/key.html.twig", 1);
$this->blocks = array(
'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())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_input($context, array $blocks = array())
{
// line 4
echo "
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
echo "\">
env, twig_join_filter(twig_escape_filter($this->env, ($context["value"] ?? null), "html_attr"), ", "), "html", null, true);
echo "\"
data-key-observe=\"";
// line 8
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
echo "\"
";
// line 9
$this->displayBlock('input_attributes', $context, $blocks);
// line 24
echo " />
";
}
// line 9
public function block_input_attributes($context, array $blocks = array())
{
// line 10
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 11
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 12
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 13
echo " ";
if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
echo "disabled=\"disabled\"";
}
// line 14
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 15
echo " ";
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "autofocus=\"autofocus\"";
}
// line 16
echo " ";
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "novalidate=\"novalidate\"";
}
// line 17
echo " ";
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
echo "readonly=\"readonly\"";
}
// line 18
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 19
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 20
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 21
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\Common\Twig\TwigExtension')->translate(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array()))), "html", null, true);
echo "\"
";
} elseif ($this->getAttribute( // line 22
($context["field"] ?? null), "title", array(), "any", true, true)) {
echo "title=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate(twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "title", array()))), "html", null, true);
echo "\" ";
}
// line 23
echo " ";
}
public function getTemplateName()
{
return "forms/fields/key/key.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 138 => 23, 132 => 22, 125 => 21, 118 => 20, 113 => 19, 106 => 18, 101 => 17, 96 => 16, 91 => 15, 84 => 14, 79 => 13, 72 => 12, 65 => 11, 58 => 10, 55 => 9, 49 => 24, 47 => 9, 43 => 8, 39 => 7, 32 => 4, 29 => 3, 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\" %}
{% block input %}
{% endblock %}", "forms/fields/key/key.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/key/key.html.twig");
}
}