Files
Ethica-vitrine/cache/twig/32/3220e3522bdfdf445a0730924be239728a8c1dfa3f3a99f4a67dae3c389e4c5c.php
2018-04-11 17:57:57 +02:00

93 lines
3.1 KiB
PHP

<?php
/* forms/fields/selectize/selectize.html.twig */
class __TwigTemplate_d09f9954908d28943f85b012b7817e745e5bc4aaed99ed6d62368a0f3da0ab5f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/selectize/selectize.html.twig", 1);
$this->blocks = array(
'global_attributes' => array($this, 'block_global_attributes'),
'input_attributes' => array($this, 'block_input_attributes'),
);
}
protected function doGetParent(array $context)
{
return "forms/field.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_global_attributes($context, array $blocks = array())
{
// line 4
echo " data-grav-selectize=\"";
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");
echo "\"
";
// line 5
$this->displayParentBlock("global_attributes", $context, $blocks);
echo "
";
}
// line 8
public function block_input_attributes($context, array $blocks = array())
{
// line 9
echo " type=\"text\"
";
// line 10
$this->displayParentBlock("input_attributes", $context, $blocks);
echo "
";
}
public function getTemplateName()
{
return "forms/fields/selectize/selectize.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 49 => 10, 46 => 9, 43 => 8, 37 => 5, 32 => 4, 29 => 3, 11 => 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("{% extends \"forms/field.html.twig\" %}
{% block global_attributes %}
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize|merge({'create': true})|merge({'items':value}) : {'create': true})|json_encode()|e('html_attr') }}\"
{{ parent() }}
{% endblock %}
{% block input_attributes %}
type=\"text\"
{{ parent() }}
{% endblock %}
", "forms/fields/selectize/selectize.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/selectize/selectize.html.twig");
}
}