123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?php
- /* forms/fields/key/key.html.twig */
- class __TwigTemplate_a2a6fb1f2429748017817298c2e8e31fa7b2909fd807acc7b4770106482dd78b extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- // line 1
- $this->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 " <div class=\"form-input-wrapper ";
- echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
- echo "\">
- <input
- type=\"text\"
- value=\"";
- // line 7
- echo twig_escape_filter($this->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 " />
- </div>
- ";
- }
- // 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 %}
- <div class=\"form-input-wrapper {{ field.size }}\">
- <input
- type=\"text\"
- value=\"{{ value|e('html_attr')|join(', ') }}\"
- data-key-observe=\"{{ (scope ~ field.name)|fieldName }}\"
- {% block input_attributes %}
- {% if field.classes is defined %}class=\"{{ field.classes }}\" {% endif %}
- {% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
- {% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
- {% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
- {% if field.placeholder %}placeholder=\"{{ field.placeholder }}\"{% endif %}
- {% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
- {% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
- {% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
- {% if field.autocomplete in ['on', 'off'] %}autocomplete=\"{{ field.autocomplete }}\"{% endif %}
- {% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
- {% if field.validate.pattern %}pattern=\"{{ field.validate.pattern }}\"{% endif %}
- {% if field.validate.message %}title=\"{{ field.validate.message|e|t }}\"
- {% elseif field.title is defined %}title=\"{{ field.title|e|t }}\" {% endif %}
- {% endblock %}
- />
- </div>
- {% 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");
- }
- }
|