3220e3522bdfdf445a0730924be239728a8c1dfa3f3a99f4a67dae3c389e4c5c.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /* forms/fields/selectize/selectize.html.twig */
  3. class __TwigTemplate_d09f9954908d28943f85b012b7817e745e5bc4aaed99ed6d62368a0f3da0ab5f 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/selectize/selectize.html.twig", 1);
  10. $this->blocks = array(
  11. 'global_attributes' => array($this, 'block_global_attributes'),
  12. 'input_attributes' => array($this, 'block_input_attributes'),
  13. );
  14. }
  15. protected function doGetParent(array $context)
  16. {
  17. return "forms/field.html.twig";
  18. }
  19. protected function doDisplay(array $context, array $blocks = array())
  20. {
  21. $this->parent->display($context, array_merge($this->blocks, $blocks));
  22. }
  23. // line 3
  24. public function block_global_attributes($context, array $blocks = array())
  25. {
  26. // line 4
  27. echo " data-grav-selectize=\"";
  28. echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? (twig_array_merge(twig_array_merge($this->getAttribute(($context["field"] ?? null), "selectize", array()), array("create" => true)), array("items" => ($context["value"] ?? null)))) : (array("create" => true)))), "html_attr");
  29. echo "\"
  30. ";
  31. // line 5
  32. $this->displayParentBlock("global_attributes", $context, $blocks);
  33. echo "
  34. ";
  35. }
  36. // line 8
  37. public function block_input_attributes($context, array $blocks = array())
  38. {
  39. // line 9
  40. echo " type=\"text\"
  41. ";
  42. // line 10
  43. $this->displayParentBlock("input_attributes", $context, $blocks);
  44. echo "
  45. ";
  46. }
  47. public function getTemplateName()
  48. {
  49. return "forms/fields/selectize/selectize.html.twig";
  50. }
  51. public function isTraitable()
  52. {
  53. return false;
  54. }
  55. public function getDebugInfo()
  56. {
  57. return array ( 49 => 10, 46 => 9, 43 => 8, 37 => 5, 32 => 4, 29 => 3, 11 => 1,);
  58. }
  59. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  60. public function getSource()
  61. {
  62. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  63. return $this->getSourceContext()->getCode();
  64. }
  65. public function getSourceContext()
  66. {
  67. return new Twig_Source("{% extends \"forms/field.html.twig\" %}
  68. {% block global_attributes %}
  69. data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize|merge({'create': true})|merge({'items':value}) : {'create': true})|json_encode()|e('html_attr') }}\"
  70. {{ parent() }}
  71. {% endblock %}
  72. {% block input_attributes %}
  73. type=\"text\"
  74. {{ parent() }}
  75. {% endblock %}
  76. ", "forms/fields/selectize/selectize.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/selectize/selectize.html.twig");
  77. }
  78. }