parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/themeselect/themeselect.html.twig", 1);
$this->blocks = array(
'global_attributes' => array($this, 'block_global_attributes'),
'input' => array($this, 'block_input'),
);
}
protected function doGetParent(array $context)
{
return "forms/field.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 3
$context["options"] = array();
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "themes", array()));
foreach ($context['_seq'] as $context["slug"] => $context["package"]) {
// line 5
$context["option"] = array($context["slug"] => $this->getAttribute($this->getAttribute($context["package"], "toArray", array(), "method"), "name", array()));
// line 6
$context["options"] = twig_array_merge(($context["options"] ?? null), ($context["option"] ?? null));
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['slug'], $context['package'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 9
public function block_global_attributes($context, array $blocks = array())
{
// line 10
echo " data-grav-selectize=\"";
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute(($context["field"] ?? null), "selectize", array(), "any", true, true)) ? ($this->getAttribute(($context["field"] ?? null), "selectize", array())) : (array()))), "html_attr");
echo "\"
data-grav-field=\"select\"
data-grav-disabled=\"";
// line 12
echo (((null === ($context["originalValue"] ?? null))) ? ("true") : ("false"));
echo "\"
data-grav-default=\"";
// line 13
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute(($context["field"] ?? null), "default", array())), "html_attr");
echo "\"
";
}
// line 16
public function block_input($context, array $blocks = array())
{
// line 17
echo "
env, $this->getAttribute(($context["field"] ?? null), "size", array()), "html", null, true);
echo "\">
";
}
public function getTemplateName()
{
return "forms/fields/themeselect/themeselect.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 122 => 27, 107 => 25, 103 => 24, 96 => 23, 91 => 22, 86 => 21, 81 => 20, 77 => 19, 71 => 18, 66 => 17, 63 => 16, 57 => 13, 53 => 12, 47 => 10, 44 => 9, 40 => 1, 34 => 6, 32 => 5, 28 => 4, 26 => 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\" %}
{% set options = {} %}
{% for slug, package in admin.themes %}
{% set option = {(slug): package.toArray().name} %}
{% set options = options|merge(option) %}
{% endfor %}
{% block global_attributes %}
data-grav-selectize=\"{{ (field.selectize is defined ? field.selectize : {})|json_encode()|e('html_attr') }}\"
data-grav-field=\"select\"
data-grav-disabled=\"{{ originalValue is null ? 'true' : 'false' }}\"
data-grav-default=\"{{ field.default|json_encode()|e('html_attr') }}\"
{% endblock %}
{% block input %}
{% endblock %}
", "forms/fields/themeselect/themeselect.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/themeselect/themeselect.html.twig");
}
}