{if !empty($app_themes)}
[`Installed themes`] {if $wa->user()->getRights('installer')} {/if}
{foreach $app_themes as $_theme} {$_theme_is_trial = ($_theme.type == waTheme::TRIAL)} {$_name = $_theme->getName()} {$_cover_image = $_theme->getCover()} {if empty($_cover_image)} {$_cover_image = "`$wa_url`wa-content/img/design/themes/no-image.png"} {/if} {$_theme_id = $_theme->id} {$_theme_url = "`$design_url`theme=`$_theme_id`"} {$_is_active = in_array($_theme_id, $used_app_themes)}
{$_name|escape}
{if !empty($_is_active)} [`In use`] {elseif isset($used_apps_themes[$_theme_id])} [`Used by other apps.`] {else} [`Not in use`] {/if}
{/foreach}
{if $wa->user()->getRights('installer')}

[s`Upload theme`]

[s`Theme must be uploaded as a valid Webasyst design theme archive (.tar.gz archive with theme files and theme.xml manifest file).`]

{$wa->csrf()}
{/if} {elseif isset($app_themes)}
[`No installed themes.`]
{/if}