{% set gpm = admin.gpm() %} {% set installed = gpm.isThemeInstalled(admin.route) %} {% set isTestingRelease = gpm.isTestingRelease(theme.slug) %} {% set gumroad_loaded = false %} {% set state = 'inactive' %} {% if (config.get('system.pages.theme') == theme.slug) %}{% set state = 'active' %}{% endif %}

{{ theme.name }} {% if admin.isTeamGrav(theme) %} {% endif %} {% if admin.isPremiumProduct(theme) %} {{ "PLUGIN_ADMIN.PREMIUM_PRODUCT"|t }} {% endif %} {% if theme.symlink %} {% endif %} {{ theme.version ? 'v' ~ theme.version }} {% if isTestingRelease %}test release{% endif %}

{% if theme.version %} {% endif %} {% if theme.author %} {% endif %} {% if theme.homepage %} {% endif %} {% if theme.demo %} {% endif %} {% if theme.bugs %} {% endif %} {% if theme.keywords %} {% endif %} {% if theme.license %} {% if theme.license|starts_with('http') %} {% else %} {% endif %} {% endif %} {% if theme.description %} {% endif %} {% if theme.readme or theme.homepage %} {% set readme_link = theme.readme ?: theme.docs|default(theme.homepage ~ '/blob/master/README.md') %} {% endif %} {% if admin.gpm.findPackage(theme.slug, true).changelog %} {% endif %}
{{ "PLUGIN_ADMIN.VERSION"|t }}: {{ theme.version }}
{{ "PLUGIN_ADMIN.AUTHOR"|t }}: {% if theme.author.url %} {{ theme.author.name }} {% else %} {{ theme.author.name }} {% endif %} {% if theme.author.email %} - {{ theme.author.email }} {% endif %}
{{ "PLUGIN_ADMIN.HOMEPAGE"|t }}: {{ theme.homepage }}
{{ "PLUGIN_ADMIN.DEMO"|t }}: {{ theme.demo }}
{{ "PLUGIN_ADMIN.BUG_TRACKER"|t }}: {{ theme.bugs }}
{{ "PLUGIN_ADMIN.KEYWORDS"|t }}: {{ theme.keywords|join(', ') }}
{{ "PLUGIN_ADMIN.LICENSE"|t }}:{{ theme.license }}{{ theme.license }}
{{ "PLUGIN_ADMIN.DESCRIPTION"|t }}: {{ theme.description_html|raw }}
{{ theme.readme ? "PLUGIN_ADMIN.README"|t : "PLUGIN_ADMIN.DOCS"|t }}: {{ readme_link }}
{{ "PLUGIN_ADMIN.CHANGELOG"|t }}: View Changelog
{% if installed %} {% if state == 'active' %} {% set data = admin.data('themes/' ~ admin.route) %} {% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %} {% else %}
{% if not theme.symlink %} {% endif %} {{ "PLUGIN_ADMIN.REMOVE_THEME"|t }}
{% endif %} {% else %}
{% if (theme.premium and not admin.license(theme.slug)) %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ theme.premium.button|default('Purchase') }} {% else %} {{ "PLUGIN_ADMIN.INSTALL_THEME"|t }} {% endif %}
{% endif %} {% include 'partials/modal-switch-theme.html.twig' with {theme_name: theme.name} %} {% include 'partials/modal-changes-detected.html.twig' %} {% include 'partials/modal-add-package.html.twig' with { type: 'theme' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'theme' } %} {% include 'partials/modal-remove-package.html.twig' with { type: 'theme', package: theme } %} {% include 'partials/modal-reinstall-package.html.twig' with { type: 'theme', package: theme } %} {% include 'partials/modal-changelog.html.twig' with { package: theme} %}