{if $plugin.commercial && !$plugin.purchased}
{* PAID PLUGIN, LICENSE IS NOT VALID *}
{if $plugin.license_expire}
{* EXPIRED LICENSE *}
[`Renew license`]
{sprintf("[`License for using %s on %s has expired on %s`]",$plugin.name|escape,installerHelper::getDomain()|escape,waDatetime::format('humandate',$plugin.license_expire))}
{else}
{* NEVER LICENSED *}
{/if}
{else}
{* LICENSED INSTALLATION: EITHER FREE OR PAID *}
{if $plugin.action == waInstallerApps::ACTION_UPDATE}
{* UPDATES ARE AVAILABLE *}
{elseif $plugin.commercial}
{* PAID PLUGIN *}
{if $plugin.license_expire}
{* COMMERCIAL LICENSE WITH AN EXPIRATION DATE *}
{sprintf("[`This is a licensed installation of %s on %s. License is valid through %s.`]",$plugin.name|escape, installerHelper::getDomain()|escape, $plugin.license_expire)}
{sprintf("[`Additional licenses are required if you are using %s on more than one domain name (one license per domain).`]",$plugin.name|escape, '[`http://www.webasyst.com/help/1200/paid-app-licensing/`]')}
{sprintf('[`%s will be automatically downloaded from Webasyst Store and installed immediately after you make payment.`]', $plugin.name|escape)} [`If you already have a license, click the button above to link it to this Webasyst installation.`]
{else}
{* FREE APP *}
{sprintf('[`%s will be downloaded from Webasyst Store and installed automatically.`]', $plugin.name|escape)}