{% extends default ? "partials/field.html.twig" : 'forms/' ~ layout|default('field') ~ '.html.twig' %} {% block input %} {% set local_fonts = gantry.theme.details.configuration['fonts']|default([]) %} {% set map = [] %} {% for name, variants in local_fonts %} {% if variants is iterable %}{% set variants = variants|keys %} {% else %}{% set variants = ['regular'] %}{% endif %} {% set map = map|merge([{ family: name, variants: variants }]) %} {% endfor %}
{% set picker = {'field':'input[name="' ~ ((scope ~ name)|fieldName|e) ~ '"]'} %}
{% endblock %}