2d6fd692de5c8f454faf6e54c63704d917a377f3327e783f3e0db6aa11b4e7fc.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?php
  2. /* forms/fields/text/text.html.twig */
  3. class __TwigTemplate_9862170de84877e54fb0ed86a72cd79d8ecd4c6efc07c655187197b702dce5a2 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/text/text.html.twig", 1);
  10. $this->blocks = array(
  11. 'prepend' => array($this, 'block_prepend'),
  12. 'input_attributes' => array($this, 'block_input_attributes'),
  13. 'append' => array($this, 'block_append'),
  14. 'input' => array($this, 'block_input'),
  15. );
  16. }
  17. protected function doGetParent(array $context)
  18. {
  19. return "forms/field.html.twig";
  20. }
  21. protected function doDisplay(array $context, array $blocks = array())
  22. {
  23. $this->parent->display($context, array_merge($this->blocks, $blocks));
  24. }
  25. // line 3
  26. public function block_prepend($context, array $blocks = array())
  27. {
  28. // line 4
  29. if ($this->getAttribute(($context["field"] ?? null), "prepend", array())) {
  30. // line 5
  31. echo " <div class=\"form-input-addon form-input-prepend\">
  32. ";
  33. // line 6
  34. 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)) {
  35. // line 7
  36. echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "prepend", array()));
  37. } else {
  38. // line 9
  39. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "prepend", array()));
  40. }
  41. // line 11
  42. echo " </div>
  43. ";
  44. }
  45. }
  46. // line 15
  47. public function block_input_attributes($context, array $blocks = array())
  48. {
  49. // line 16
  50. echo " type=\"text\"
  51. ";
  52. // line 17
  53. $this->displayParentBlock("input_attributes", $context, $blocks);
  54. echo "
  55. ";
  56. }
  57. // line 20
  58. public function block_append($context, array $blocks = array())
  59. {
  60. // line 21
  61. echo " ";
  62. if ($this->getAttribute(($context["field"] ?? null), "append", array())) {
  63. // line 22
  64. echo " <div class=\"form-input-addon form-input-append\">
  65. ";
  66. // line 23
  67. 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)) {
  68. // line 24
  69. echo $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "append", array()));
  70. } else {
  71. // line 26
  72. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "append", array()));
  73. }
  74. // line 28
  75. echo " </div>
  76. ";
  77. }
  78. }
  79. // line 32
  80. public function block_input($context, array $blocks = array())
  81. {
  82. // line 33
  83. if (($this->getAttribute(($context["field"] ?? null), "prepend", array()) || $this->getAttribute(($context["field"] ?? null), "append", array()))) {
  84. // line 34
  85. echo " ";
  86. $context["field"] = twig_array_merge(($context["field"] ?? null), array("wrapper_classes" => "form-input-addon-wrapper"));
  87. }
  88. // line 36
  89. $this->displayParentBlock("input", $context, $blocks);
  90. echo "
  91. ";
  92. }
  93. public function getTemplateName()
  94. {
  95. return "forms/fields/text/text.html.twig";
  96. }
  97. public function isTraitable()
  98. {
  99. return false;
  100. }
  101. public function getDebugInfo()
  102. {
  103. return array ( 97 => 36, 93 => 34, 91 => 33, 88 => 32, 82 => 28, 79 => 26, 76 => 24, 74 => 23, 71 => 22, 68 => 21, 65 => 20, 59 => 17, 56 => 16, 53 => 15, 47 => 11, 44 => 9, 41 => 7, 39 => 6, 36 => 5, 34 => 4, 31 => 3, 11 => 1,);
  104. }
  105. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  106. public function getSource()
  107. {
  108. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  109. return $this->getSourceContext()->getCode();
  110. }
  111. public function getSourceContext()
  112. {
  113. return new Twig_Source("{% extends \"forms/field.html.twig\" %}
  114. {% block prepend %}
  115. {% if field.prepend %}
  116. <div class=\"form-input-addon form-input-prepend\">
  117. {% if grav.twig.twig.filters['tu'] is defined %}
  118. {{- field.prepend|tu|raw -}}
  119. {% else %}
  120. {{- field.prepend|t|raw -}}
  121. {% endif %}
  122. </div>
  123. {% endif %}
  124. {% endblock %}
  125. {% block input_attributes %}
  126. type=\"text\"
  127. {{ parent() }}
  128. {% endblock %}
  129. {% block append %}
  130. {% if field.append %}
  131. <div class=\"form-input-addon form-input-append\">
  132. {% if grav.twig.twig.filters['tu'] is defined %}
  133. {{- field.append|tu|raw -}}
  134. {% else %}
  135. {{- field.append|t|raw -}}
  136. {% endif %}
  137. </div>
  138. {% endif %}
  139. {% endblock %}
  140. {% block input %}
  141. {% if field.prepend or field.append %}
  142. {% set field = field|merge({'wrapper_classes': 'form-input-addon-wrapper'}) %}
  143. {% endif %}
  144. {{ parent() }}
  145. {% endblock %}", "forms/fields/text/text.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/text/text.html.twig");
  146. }
  147. }