{% set gumroad_loaded = false %}
{% if installing %} {% include 'partials/release-toggle.html.twig' %} {% endif %} {% include 'partials/list-sort.html.twig' with { list_view: 'plugins' } %}

{{ installing ? "PLUGIN_ADMIN.AVAILABLE_PLUGINS"|t : "PLUGIN_ADMIN.INSTALLED_PLUGINS"|t }}

{% for slug, plugin in admin.plugins(not installing).toArray|ksort %} {% set data = admin.data('plugins/' ~ slug) %} {% set isTestingRelease = admin.gpm.isTestingRelease(slug) %} {% set isPremium = admin.isPremiumProduct(plugin) %} {% set releaseDate = plugin.date ?: admin.gpm.findPackage(slug, true).date %} {% else %} {% endfor %}
{{ plugin.name }} {% if admin.isTeamGrav(plugin) %} {% endif %} {% if isPremium %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ "PLUGIN_ADMIN.PREMIUM_PRODUCT"|t }} {% endif %} {% if plugin.symlink %} {% endif %} v{{ plugin.version }} {% if isTestingRelease %}test release{% endif %} {% set compat = plugin.compatibility.grav ?? ['1.7'] %} {% if '1.7' in compat %}1.7{% endif %} {% if '1.8' in compat %}1.8{% endif %} {% if (not installing and (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.options.fields.enabled.type != 'hidden')) %} {% elseif (installing) %} {% if (plugin.premium and not admin.license(plugin.slug)) %} {% set permalink = plugin.premium.permalink|default(null) %} {% if permalink %} {% set checkout_url = 'https://licensing.getgrav.org/buy/' ~ permalink %} {% set success_url = 'https://licensing.getgrav.org/portal?checkout=success&checkout_id={CHECKOUT_ID}' %} {% set final_checkout_url = checkout_url ~ '?success_url=' ~ success_url|url_encode %} {{ plugin.premium.button|default('Purchase') }} {% endif %} {% else %} {{ "PLUGIN_ADMIN.INSTALL"|t }} {% endif %} {% endif %}
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
{{ "PLUGIN_ADMIN.OFFLINE_WARNING"|t }}
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-changelog.html.twig' with { package: plugin} %}