05ead202ad3065c9eeb26eedf5949cd728a7e6fa513c6913a83ae0e94afea90d.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?php
  2. /* forms/fields/textarea/textarea.html.twig */
  3. class __TwigTemplate_a8f5e8d690cd8b4b740a01ecb24d59b7299ee6d3cfa697c5a960b45ebaefbe75 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. // line 1
  9. $this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/textarea/textarea.html.twig", 1);
  10. $this->blocks = array(
  11. 'input' => array($this, 'block_input'),
  12. 'input_attributes' => array($this, 'block_input_attributes'),
  13. );
  14. }
  15. protected function doGetParent(array $context)
  16. {
  17. return "forms/field.html.twig";
  18. }
  19. protected function doDisplay(array $context, array $blocks = array())
  20. {
  21. $this->parent->display($context, array_merge($this->blocks, $blocks));
  22. }
  23. // line 3
  24. public function block_input($context, array $blocks = array())
  25. {
  26. // line 4
  27. echo " <div class=\"";
  28. echo twig_escape_filter($this->env, ((($context["form_field_wrapper_classes"] ?? null)) ? (($context["form_field_wrapper_classes"] ?? null)) : ("form-textarea-wrapper")), "html", null, true);
  29. echo " ";
  30. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
  31. echo " ";
  32. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "wrapper_classes", array()), "html", null, true);
  33. echo "\">
  34. <textarea
  35. ";
  36. // line 7
  37. echo " name=\"";
  38. 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);
  39. echo "\"
  40. ";
  41. // line 9
  42. echo " ";
  43. $this->displayBlock('input_attributes', $context, $blocks);
  44. // line 25
  45. echo " >";
  46. echo twig_escape_filter($this->env, twig_trim_filter(($context["value"] ?? null)), "html");
  47. echo "</textarea>
  48. </div>
  49. ";
  50. }
  51. // line 9
  52. public function block_input_attributes($context, array $blocks = array())
  53. {
  54. // line 10
  55. echo " class=\"";
  56. echo twig_escape_filter($this->env, ($context["form_field_textarea_classes"] ?? null), "html", null, true);
  57. echo " ";
  58. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
  59. echo "\"
  60. ";
  61. // line 11
  62. if ($this->getAttribute(($context["field"] ?? null), "id", array(), "any", true, true)) {
  63. echo "id=\"";
  64. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "id", array()));
  65. echo "\" ";
  66. }
  67. // line 12
  68. echo " ";
  69. if ($this->getAttribute(($context["field"] ?? null), "style", array(), "any", true, true)) {
  70. echo "style=\"";
  71. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "style", array()));
  72. echo "\" ";
  73. }
  74. // line 13
  75. echo " ";
  76. if (($this->getAttribute(($context["field"] ?? null), "disabled", array()) || ($context["isDisabledToggleable"] ?? null))) {
  77. echo "disabled=\"disabled\"";
  78. }
  79. // line 14
  80. echo " ";
  81. if ($this->getAttribute(($context["field"] ?? null), "placeholder", array())) {
  82. echo "placeholder=\"";
  83. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "placeholder", array())), "html", null, true);
  84. echo "\"";
  85. }
  86. // line 15
  87. echo " ";
  88. if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
  89. echo "autofocus=\"autofocus\"";
  90. }
  91. // line 16
  92. echo " ";
  93. if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
  94. echo "novalidate=\"novalidate\"";
  95. }
  96. // line 17
  97. echo " ";
  98. if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "readonly", array()), array(0 => "on", 1 => "true", 2 => 1))) {
  99. echo "readonly=\"readonly\"";
  100. }
  101. // line 18
  102. echo " ";
  103. if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "autocomplete", array()), array(0 => "on", 1 => "off"))) {
  104. echo "autocomplete=\"";
  105. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "autocomplete", array()), "html", null, true);
  106. echo "\"";
  107. }
  108. // line 19
  109. echo " ";
  110. if (twig_in_filter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
  111. echo "required=\"required\"";
  112. }
  113. // line 20
  114. echo " ";
  115. if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array())) {
  116. echo "pattern=\"";
  117. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "pattern", array()), "html", null, true);
  118. echo "\"";
  119. }
  120. // line 21
  121. echo " ";
  122. if ($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())) {
  123. echo "title=\"";
  124. if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", array(), "any", false, true), "twig", array(), "any", false, true), "filters", array(), "any", false, true), "tu", array(), "array", true, true)) {
  125. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())));
  126. } else {
  127. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["field"] ?? null), "validate", array()), "message", array())));
  128. }
  129. echo "\"";
  130. }
  131. // line 22
  132. echo " ";
  133. if ($this->getAttribute(($context["field"] ?? null), "rows", array(), "any", true, true)) {
  134. echo "rows=\"";
  135. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "rows", array()), "html", null, true);
  136. echo "\"";
  137. }
  138. // line 23
  139. echo " ";
  140. if ($this->getAttribute(($context["field"] ?? null), "cols", array(), "any", true, true)) {
  141. echo "cols=\"";
  142. echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "cols", array()), "html", null, true);
  143. echo "\"";
  144. }
  145. // line 24
  146. echo " ";
  147. }
  148. public function getTemplateName()
  149. {
  150. return "forms/fields/textarea/textarea.html.twig";
  151. }
  152. public function isTraitable()
  153. {
  154. return false;
  155. }
  156. public function getDebugInfo()
  157. {
  158. return array ( 152 => 24, 145 => 23, 138 => 22, 127 => 21, 120 => 20, 115 => 19, 108 => 18, 103 => 17, 98 => 16, 93 => 15, 86 => 14, 81 => 13, 74 => 12, 68 => 11, 61 => 10, 58 => 9, 50 => 25, 47 => 9, 42 => 7, 32 => 4, 29 => 3, 11 => 1,);
  159. }
  160. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  161. public function getSource()
  162. {
  163. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  164. return $this->getSourceContext()->getCode();
  165. }
  166. public function getSourceContext()
  167. {
  168. return new Twig_Source("{% extends \"forms/field.html.twig\" %}
  169. {% block input %}
  170. <div class=\"{{ form_field_wrapper_classes ?: 'form-textarea-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}\">
  171. <textarea
  172. {# required attribute structures #}
  173. name=\"{{ (scope ~ field.name)|fieldName }}\"
  174. {# input attribute structures #}
  175. {% block input_attributes %}
  176. class=\"{{ form_field_textarea_classes }} {{ field.classes }}\"
  177. {% if field.id is defined %}id=\"{{ field.id|e }}\" {% endif %}
  178. {% if field.style is defined %}style=\"{{ field.style|e }}\" {% endif %}
  179. {% if field.disabled or isDisabledToggleable %}disabled=\"disabled\"{% endif %}
  180. {% if field.placeholder %}placeholder=\"{{ field.placeholder|t }}\"{% endif %}
  181. {% if field.autofocus in ['on', 'true', 1] %}autofocus=\"autofocus\"{% endif %}
  182. {% if field.novalidate in ['on', 'true', 1] %}novalidate=\"novalidate\"{% endif %}
  183. {% if field.readonly in ['on', 'true', 1] %}readonly=\"readonly\"{% endif %}
  184. {% if field.autocomplete in ['on', 'off'] %}autocomplete=\"{{ field.autocomplete }}\"{% endif %}
  185. {% if field.validate.required in ['on', 'true', 1] %}required=\"required\"{% endif %}
  186. {% if field.validate.pattern %}pattern=\"{{ field.validate.pattern }}\"{% endif %}
  187. {% if field.validate.message %}title=\"{% if grav.twig.twig.filters['tu'] is defined %}{{ field.validate.message|tu|e }}{% else %}{{ field.validate.message|t|e }}{% endif %}\"{% endif %}
  188. {% if field.rows is defined %}rows=\"{{ field.rows }}\"{% endif %}
  189. {% if field.cols is defined %}cols=\"{{ field.cols }}\"{% endif %}
  190. {% endblock %}
  191. >{{ value|trim|e('html') }}</textarea>
  192. </div>
  193. {% endblock %}
  194. ", "forms/fields/textarea/textarea.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/textarea/textarea.html.twig");
  195. }
  196. }