diff --git a/themes/grav/templates/partials/themes-list.html.twig b/themes/grav/templates/partials/themes-list.html.twig index 407e393e..82b03c14 100644 --- a/themes/grav/templates/partials/themes-list.html.twig +++ b/themes/grav/templates/partials/themes-list.html.twig @@ -44,7 +44,16 @@ {% if (state == 'installing') %}
- {{ "PLUGIN_ADMIN.INSTALL"|tu }} + {% 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"|tu }} + {% endif %} +
{% elseif state == 'active' %}