47c8bb036f24cda65e5bfbbf55689341313601125c8862e7f07edd7d6f2c4d49.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /* forms/fields/email/email.html.twig */
  3. class __TwigTemplate_a3450616240a857973b145f04cd648c5e821baa9a4c71c6d0a63af5802122bfd 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/email/email.html.twig", 1);
  10. $this->blocks = array(
  11. 'input_attributes' => array($this, 'block_input_attributes'),
  12. );
  13. }
  14. protected function doGetParent(array $context)
  15. {
  16. return "forms/field.html.twig";
  17. }
  18. protected function doDisplay(array $context, array $blocks = array())
  19. {
  20. $this->parent->display($context, array_merge($this->blocks, $blocks));
  21. }
  22. // line 3
  23. public function block_input_attributes($context, array $blocks = array())
  24. {
  25. // line 4
  26. echo " type=\"email\"
  27. ";
  28. // line 5
  29. if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
  30. echo "multiple=\"multiple\"";
  31. }
  32. // line 6
  33. echo " ";
  34. $this->displayParentBlock("input_attributes", $context, $blocks);
  35. echo "
  36. ";
  37. }
  38. public function getTemplateName()
  39. {
  40. return "forms/fields/email/email.html.twig";
  41. }
  42. public function isTraitable()
  43. {
  44. return false;
  45. }
  46. public function getDebugInfo()
  47. {
  48. return array ( 38 => 6, 34 => 5, 31 => 4, 28 => 3, 11 => 1,);
  49. }
  50. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  51. public function getSource()
  52. {
  53. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  54. return $this->getSourceContext()->getCode();
  55. }
  56. public function getSourceContext()
  57. {
  58. return new Twig_Source("{% extends \"forms/field.html.twig\" %}
  59. {% block input_attributes %}
  60. type=\"email\"
  61. {% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
  62. {{ parent() }}
  63. {% endblock %}", "forms/fields/email/email.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/email/email.html.twig");
  64. }
  65. }