{% set current_endpoint = current_endpoint or url_for(request.endpoint)[1:].split("/")[-1].strip().replace('_', '-') %} {% for plugin in plugins %}
{% if plugin['type'] == "pro" and not is_pro_version %}

You need a valid pro license to use this plugin

{% endif %}
{{ plugin['name'] }} {{ plugin['version'] }}
{% if plugin['page'] %} {% endif %} {% if plugin['type'] == "pro" %} {% endif %} {% if plugin['type'] == "core" %}
{% endif %} {% if plugin['type'] == "external" %} {% endif %}

{{ plugin['description'] }}

{# get number of multiple groups for the plugin #} {% set multList = [] %}
{% for setting, value in plugin["settings"].items() %} {% set setting_input = { "is_pro_plugin" : True if plugin["type"] == "pro" else False, "name" : setting, "context" : value.get("context"), "method" : value.get("method", "default"), "help" : value.get("help"), "label" : value.get("label"), "id" : value.get("id"), "type" : value.get("type"), "default" : value.get("default", value.get("value")), "select" : value.get("select"), "regex" : value.get("regex"), "value" : value.get("value"), "is_multiple" : False, "levels" : value.get('levels', {})} %} {% if setting != "IS_DRAFT" and (current_endpoint == "global-config" and setting not in ["SERVER_NAME", "IS_LOADING"] or current_endpoint == "services" and value['context'] == "multisite") %} {% if value['multiple'] and value['multiple'] not in multList %} {% if multList.append(value['multiple']) %}{% endif %} {% endif %} {% if not value['multiple'] %}
{% include "setting_header.html" %} {% include "setting_input.html" %} {% include "setting_select.html" %} {% include "setting_checkbox.html" %} {% include "setting_invalid.html" %}
{% endif %} {% endif %} {% endfor %}
{% if multList|length > 0 %}
multiple settings
{% endif %} {% for multiple in multList %}
{{ multiple.replace('-', ' ').replace('_', ' ')|upper }}
{% endfor %}
{% endfor %}