1c38af371f97af3178f712ca1c3b18c4f07490cb53dc5d99ad80fbec0f748ae0.php 5.7 KB

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