{% macro statusBadge(edition, licensedEdition) %} {% if edition == CraftEdition %} {% if edition == licensedEdition %}
{{ "Installed"|t }}
{% else %}
{{ "Installed as a trial"|t }}
{% endif %} {% elseif edition == licensedEdition %}
{{ "Licensed"|t }}
{% 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 }}
{% 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 }}
{% 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 }}
{% 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 }}
{% endif %}
{% endspaceless -%} {% endmacro %} {% from _self import statusBadge, price, buybtn %} {% import "_includes/forms" as forms %}
{% if CraftEdition > CraftPersonal or licensedEdition > CraftPersonal %} {% endif %}

Client

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

Pro

{{ "For everything else."|t }}

{{ statusBadge(CraftClient, licensedEdition) }} {{ statusBadge(CraftPro, licensedEdition) }}
{{ "One-Time Price"|t }} {{ price(CraftClient, editions[CraftClient]) }} {{ price(CraftPro, editions[CraftPro]) }}
{{ buybtn(CraftClient, editions[CraftClient], licensedEdition, canTestEditions) }} {{ buybtn(CraftPro, editions[CraftPro], licensedEdition, canTestEditions) }}
{{ "User Accounts"|t }}
{{ "Additional user accounts"|t }} {{ "One “Client” account"|t }} {{ "Unlimited"|t }}
{{ "User groups"|t }}
{{ "User permissions"|t }}
{{ "Public user registration"|t }}
{{ "System Branding"|t }}
{{ "Custom login screen logo"|t }}
{{ "Custom HTML email template"|t }}
{{ "Custom email message wording"|t }}
{{ "Assets"|t }}
{{ "Amazon S3 support"|t }}
{{ "Rackspace Cloud Files support"|t }}
{{ "Google Cloud Storage support"|t }}
{{ "Localization and Translation"|t }}
{{ "Section and entry locale targeting"|t }}
{{ "Content translations"|t }}
{{ "Locale-specific user permissions"|t }}
{{ buybtn(CraftClient, editions[CraftClient], licensedEdition, canTestEditions) }} {{ buybtn(CraftPro, editions[CraftPro], licensedEdition, canTestEditions) }}