5bee15b1862b472f001ab0795da57fc8a2dae97b31aa96841531e2324baa735c.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /* forms/fields/hidden/hidden.html.twig */
  3. class __TwigTemplate_a103371c1705d91b5430ed4bd1a710fa028a093e2f790ae10380705fce9f958f 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. $context["value"] = (((null === ($context["value"] ?? null))) ? ((($this->getAttribute(($context["field"] ?? null), "evaluate", array())) ? ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->evaluateStringFunc($this->env, $context, $this->getAttribute(($context["field"] ?? null), "default", array()))) : ($this->getAttribute(($context["field"] ?? null), "default", array())))) : (($context["value"] ?? null)));
  16. // line 2
  17. echo "
  18. <input data-grav-field=\"hidden\" data-grav-disabled=\"false\" type=\"hidden\" class=\"input\" name=\"";
  19. // line 3
  20. 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);
  21. echo "\" value=\"";
  22. echo twig_escape_filter($this->env, twig_join_filter(($context["value"] ?? null), ", "), "html", null, true);
  23. echo "\" />
  24. ";
  25. }
  26. public function getTemplateName()
  27. {
  28. return "forms/fields/hidden/hidden.html.twig";
  29. }
  30. public function isTraitable()
  31. {
  32. return false;
  33. }
  34. public function getDebugInfo()
  35. {
  36. return array ( 24 => 3, 21 => 2, 19 => 1,);
  37. }
  38. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  39. public function getSource()
  40. {
  41. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  42. return $this->getSourceContext()->getCode();
  43. }
  44. public function getSourceContext()
  45. {
  46. return new Twig_Source("{% set value = (value is null ? (field.evaluate ? evaluate(field.default) : field.default) : value) %}
  47. <input data-grav-field=\"hidden\" data-grav-disabled=\"false\" type=\"hidden\" class=\"input\" name=\"{{ (scope ~ field.name)|fieldName }}\" value=\"{{ value|join(', ') }}\" />
  48. ", "forms/fields/hidden/hidden.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/hidden/hidden.html.twig");
  49. }
  50. }