{% macro statusBadge(edition, licensedEdition) %} {% if edition == CraftEdition %} {% if edition == licensedEdition %}
{{ "Installed"|t('app') }}
{% else %}
{{ "Installed as a trial"|t('app') }}
{% endif %} {% elseif edition == licensedEdition %}
{{ "Licensed"|t('app') }}
{% endif %} {% endmacro %} {% macro price(edition, info) %} {% if info.salePrice %} {{ info.formattedPrice }} {{ info.formattedSalePrice }} {% else %} {{ info.formattedPrice }} {% endif %} {% endmacro %} {% macro buybtn(edition, info, licensedEdition, canTestEditions) %} {%- spaceless %}
{# Show the "Buy" button if this edition is greater than the licensed edition #} {% if edition > licensedEdition %}
{{ "Buy now"|t('app') }}
{% endif %} {# Show the "Try" button if they're on a testable domain, this is not the current edition, and is greater than the licensed edition #} {% if canTestEditions and edition != CraftEdition and edition > licensedEdition %}
{{ "Try for free"|t('app') }}
{% endif %} {# Show the "Reinstall" button if they’re licensed to use this edition but not currently on it #} {% if edition == licensedEdition and edition != CraftEdition %}
{{ "Reinstall"|t('app') }}
{% endif %} {# Show the "Uninstall" button if this is the currently-installed edition, but they are only licensed to use Craft Personal #} {# (Not necessary to show if the licensed edition is Client/Pro as they will have their own "Install" button) #} {% if edition == CraftEdition and licensedEdition == CraftPersonal %}
{{ "Uninstall"|t('app') }}
{% endif %}
{% endspaceless -%} {% endmacro %} {% from _self import statusBadge, price, buybtn %} {% import "_includes/forms" as forms %}

Personal

{{ "For sites built by and for the developer."|t('app') }}

Client

{{ "For sites built for clients with only one content manager."|t('app') }}

Pro

{{ "For everything else."|t('app') }}

{{ statusBadge(CraftPersonal, licensedEdition) }} {{ statusBadge(CraftClient, licensedEdition) }} {{ statusBadge(CraftPro, licensedEdition) }}
{{ "One-Time Price"|t('app') }} {{ "Free"|t('app') }} {{ price(CraftClient, editions[CraftClient]) }} {{ price(CraftPro, editions[CraftPro]) }}
{{ buybtn(CraftClient, editions[CraftClient], licensedEdition, canTestEditions) }} {{ buybtn(CraftPro, editions[CraftPro], licensedEdition, canTestEditions) }}
{{ "User Accounts"|t('app') }}
{{ "Additional user accounts"|t('app') }} {{ "One Admin account"|t('app') }} {{ "One “Client” account"|t('app') }} {{ "Unlimited"|t('app') }}
{{ "User groups"|t('app') }}
{{ "User permissions"|t('app') }}
{{ "Public user registration"|t('app') }}
{{ "System Branding"|t('app') }}
{{ "Custom login screen logo"|t('app') }}
{{ "Custom HTML email template"|t('app') }}
{{ "Custom email message wording"|t('app') }}