{% macro singleSetting(setting, index = 0) %} {% set settingValue = setting.getValue %}
{% if setting.introduction %}

{{ setting.introduction }}

{% endif %} {{ _self.field(setting, index) }}
{% endmacro %} {% macro field(setting, index = -1) %} {% if index == -1 %} {% set index = setting.getName %} {% endif %} {% set settingValue = setting.getValue %} {% if setting.uiControlType != 'checkbox' %} {% endif %} {% if setting.inlineHelp %}
{{ setting.inlineHelp }} {% if setting.defaultValue and setting.uiControlType != 'checkbox' and setting.uiControlType != 'radio' %}
{{ 'General_Default'|translate }}: {% if setting.defaultValue is iterable %} {{ setting.defaultValue|join(', ')|truncate(50) }} {% else %} {{ setting.defaultValue|truncate(50) }} {% endif %} {% endif %}
{% endif %} {% if setting.uiControlType == 'select' or setting.uiControlType == 'multiselect' %} {% elseif setting.uiControlType == 'textarea' %} {% elseif setting.uiControlType == 'radio' %} {% for key, value in setting.availableValues %} {% endfor %} {% elseif setting.uiControlType == 'checkbox' %} {% else %} {% endif %} {% if setting.uiControlType != 'checkbox' and setting.uiControlType != 'radio' %} {{ setting.description }} {% endif %} {% endmacro %}