{* ICON *} {if $item_type eq 'app' && !empty($item.icons.48)} {else}   {/if} {* PRODUCT NAME *} {if $item_type eq 'plugin' || $item_type eq 'theme' || $item_type eq 'widget' } {* theme or plugin *} {if !empty($item.icons) && false} {else} {/if} {if $item_type eq 'plugin'} {sprintf('[`Plugin "%s"`]',{$item.name|default:$item_id|escape})} {elseif $item_type eq 'theme' } {sprintf('[`Theme "%s"`]',{$item.name|default:$item_id|escape})} {elseif $item_type eq 'widget' } {sprintf('[`Widget "%s"`]',{$item.name|default:$item_id|escape})} {else} {$item.name|default:$item_id|escape} {/if} {else} {* apps and system plugins *} {if $item_type eq 'systemplugin'} {sprintf('[`Plugin "%s"`]',{$item.name|default:$item_id|escape})} {else} {$item.name|default:$item_id|escape} {/if} {/if} {if !empty($item.vendor_name)} {$item.vendor_name|escape} {/if} {* UPDATE INFO & CHANGELOG *} {if !empty($item.version)} {$item.version} {/if} {if !empty($item.installed.version)} {$item.installed.version|string_format:'[`Your current version is %s.`]'} {/if} {* changelog text *} {if !empty($item.changelog)}
{foreach $item.changelog as $record} {$record.content|nl2br} {if !$record@last}

{/if} {if $record@first && !$record@last} [`more`] {/if} {if !$record@first && $record@last} {/if} {/foreach}
{/if} {* UPDATE BUTTON *} {if !empty($item.applicable) && in_array($item.action, [ waInstallerApps::ACTION_UPDATE, waInstallerApps::ACTION_CRITICAL_UPDATE, waInstallerApps::ACTION_INSTALL ], true) } {if !empty($item.commercial) && empty($item.purchased)} {* not allowed to install the app, i.e. expired *} {if !empty($item.domains) && count($item.domains)>1}

{sprintf('[`To get the update, you need to have separate %s app license for every individual domain the app is used on: %s`]', $item.name,implode(', ',(array)$item.domains))}

{else} {if !empty($item.domains)}{$_domain=reset($item.domains)}{else}{$_domain=$domain}{/if}

{sprintf('[`License for this app is either expired or not valid for this domain (%s)`]',$_domain)}

{/if} {if $item_type eq 'app'} {$link="app/`$item.id`"} {elseif $item_type eq 'theme'} {$link="theme/`$item.id`"} {elseif $item_type eq 'widget'} {$link="widget/`$item.app`/`$item.id`"} {elseif $item_type eq 'plugin'} {if strpos($item.slug,'wa-plugins/') === 0} {$_plugins_slug = str_replace('wa-plugins/','',$item.slug|escape)} {$_plugins_slug = str_replace('plugins/','',$_plugins_slug)} {$link = "plugin/{$_plugins_slug}"} {else} {$link = "plugin/{$item.app|default:''}/{$item.id|escape}/"} {/if} {/if} [`Get license`] {elseif !empty($item.inbuilt)}

{sprintf("[`This widget will be updated automatically when you update %s app.`]",$app.name|default:$item.app|default:''|escape)}

{else} {/if} {/if} {include file="../../includes/requirements.html" inline}