123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?php
- /* forms/fields/spacer/spacer.html.twig */
- class __TwigTemplate_88c61b9b425c988f25dbba9db64146dcb4e6433ca2e3b7e949ab55358998117e extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = false;
- $this->blocks = array(
- );
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 1
- echo "<div class=\"form-spacer ";
- echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true);
- echo "\">
- ";
- // line 2
- if ($this->getAttribute(($context["field"] ?? null), "title", array())) {
- // line 3
- echo " <h3>
- ";
- // line 4
- 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)) {
- // line 5
- echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "title", array()));
- } else {
- // line 7
- echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "title", array()));
- }
- // line 9
- echo " </h3>
- ";
- }
- // line 11
- echo "
- ";
- // line 12
- if ($this->getAttribute(($context["field"] ?? null), "markdown", array())) {
- // line 13
- echo " <p>
- ";
- // line 14
- 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)) {
- // line 15
- 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())));
- } else {
- // line 17
- echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->markdownFunction($this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "text", array())));
- }
- // line 19
- echo " </p>
- ";
- } else {
- // line 21
- echo " <p>
- ";
- // line 22
- 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)) {
- // line 23
- echo $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter($this->getAttribute(($context["field"] ?? null), "text", array()));
- } else {
- // line 25
- echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute(($context["field"] ?? null), "text", array()));
- }
- // line 27
- echo " </p>
- ";
- }
- // line 29
- echo "
- ";
- // line 30
- if ($this->getAttribute(($context["field"] ?? null), "underline", array())) {
- // line 31
- echo " <hr />
- ";
- }
- // line 33
- echo "</div>
- ";
- }
- public function getTemplateName()
- {
- return "forms/fields/spacer/spacer.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- 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,);
- }
- /** @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("<div class=\"form-spacer {{ field.classes }}\">
- {% if field.title %}
- <h3>
- {% if grav.twig.twig.filters['tu'] is defined %}
- {{- field.title|tu|raw -}}
- {% else %}
- {{- field.title|t|raw -}}
- {% endif %}
- </h3>
- {% endif %}
- {% if field.markdown %}
- <p>
- {% if grav.twig.twig.filters['tu'] is defined %}
- {{- field.text|tu|markdown|raw -}}
- {% else %}
- {{- field.text|t|markdown|raw -}}
- {% endif %}
- </p>
- {% else %}
- <p>
- {% if grav.twig.twig.filters['tu'] is defined %}
- {{- field.text|tu|raw -}}
- {% else %}
- {{- field.text|t|raw -}}
- {% endif %}
- </p>
- {% endif %}
- {% if field.underline %}
- <hr />
- {% endif %}
- </div>
- ", "forms/fields/spacer/spacer.html.twig", "/mnt/data/Sites/r2c.net/user/plugins/form/templates/forms/fields/spacer/spacer.html.twig");
- }
- }
|