{% for plugin, plugin_data in plugins.items() if get_filtered_settings(plugin_data["settings"], current_endpoint == "global-config") %}
{% endfor %}
{% if current_endpoint != "global-config" %}
{% endif %}
{% for plugin, plugin_data in plugins.items() %}
{% set filtered_settings = get_filtered_settings(plugin_data["settings"], current_endpoint == "global-config") %}
{% if filtered_settings %}
{% for setting, setting_data in filtered_settings.items() if not setting_data.get('multiple', false) and setting not in blacklisted_settings and (not service_endpoint or setting_data['context'] == "multisite") %}
{% set setting_id_prefix = "setting-" + plugin + "-" %}
{% set setting_config = config.get(setting, {}) %}
{% set setting_default = setting_data.get("default", "") %}
{% set setting_value = setting_config.get("value", setting_default) %}
{% set setting_method = setting_config.get("method", "default") %}
{% set setting_template = setting_config.get("template", "") %}
{% set disabled = setting_method not in ('ui', 'default') and (current_endpoint == "global-config" or not setting_config.get("global")) %}
{% if current_endpoint == "new" %}
{% set disabled = false %}
{% if setting == "SERVER_NAME" %}
{% set setting_value = "" %}
{% endif %}
{% endif %}
{% if service_method == "autoconf" %}
{% set setting_method = "autoconf" %}
{% set disabled = true %}
{% endif %}
{% if plugin_data["type"] == "pro" and not is_pro_version %}
{% set disabled = true %}
{% set setting_method = "Pro feature" %}
{% endif %}
{% if is_readonly %}
{% set disabled = true %}
{% set setting_method = "readonly" %}
{% endif %}
{% if current_endpoint == "global-config" and setting_data["context"] == "multisite" %}
{% endif %}
{% if setting_template %}
{% endif %}
{% if current_endpoint != "global-config" and setting_config.get("global") and setting_value != setting_default %}
{% endif %}
{% if setting_data["type"] == "select" %}
{% include "models/select_setting.html" %}
{% elif setting_data["type"] == "check" %}
{% include "models/checkbox_setting.html" %}
{% else %}
{% if setting == "SERVER_NAME" and current_endpoint != "global-config" %}
{% endif %}
{% include "models/input_setting.html" %}
{% endif %}
{% endfor %}
{% set plugin_multiples = get_multiples(filtered_settings, config) %}
{% if plugin_multiples %}
{% set setting_id_prefix = "multiple-setting-" + plugin +"-" %}
Multiple settings
This is where you can configure multiple settings for this plugin.
{% for multiple, multiples in plugin_multiples.items() %}
{% for setting_suffix, settings in multiples.items() %}
{% set setting_id_suffix = "-" + setting_suffix %}
{% for setting, setting_data in settings.items() if setting not in blacklisted_settings %}
{% set setting_config = config.get(setting, {}) %}
{% set setting_default = setting_data.get("default", "") %}
{% set setting_value = setting_config.get("value", setting_default) %}
{% set setting_method = setting_config.get("method", "default") %}
{% set setting_template = setting_config.get("template", "") %}
{% set disabled = setting_method not in ('ui', 'default') and (current_endpoint == "global-config" or not setting_config.get("global")) %}
{% if current_endpoint == "new" %}
{% set disabled = false %}
{% endif %}
{% if service_method == "autoconf" %}
{% set setting_method = "autoconf" %}
{% set disabled = true %}
{% endif %}
{% if plugin_data["type"] == "pro" and not is_pro_version %}
{% set disabled = true %}
{% set setting_method = "Pro feature" %}
{% endif %}
{% if is_readonly %}
{% set disabled = true %}
{% set setting_method = "readonly" %}
{% endif %}
{% if current_endpoint == "global-config" and setting_data["context"] == "multisite" %}
{% endif %}
{% if setting_template %}
{% endif %}
{% if current_endpoint != "global-config" and setting_config.get("global") and setting_value != setting_default %}
{% endif %}
{% if setting_data["type"] == "select" %}
{% include "models/select_setting.html" %}
{% elif setting_data["type"] == "check" %}
{% include "models/checkbox_setting.html" %}
{% else %}
{% include "models/input_setting.html" %}
{% endif %}