{sprintf('[s`%s design theme`]', $theme.name|escape)}

{if !$theme_routes} {if $wa->get('just_installed')}

{sprintf(_ws('%s design theme has been successfully installed. Start using this theme by clicking the button below.'), $theme.name|escape)}

{else}

{sprintf(_ws('%s design theme is currently not in use on your websites.'), $theme.name|escape)}

{/if} {if $cover}

{/if}

{sprintf('[s`Start using %s theme`]', $theme.name|escape)} {if !empty($preview_url)} [s`or`] {/if}

{else} {if $settings}
{$wa->csrf()}
{foreach $settings as $s_var => $s}
{$s.name}
{if $s.control_type == 'select'} {elseif $s.control_type == 'radio'} {foreach $s.options as $v => $o} {/foreach} {elseif $s.control_type == 'color'} {elseif $s.control_type == 'checkbox'} {elseif $s.control_type == 'image_select'} {elseif $s.control_type == 'image'} {if !empty($s.value)} {if !empty($s.parent)} {$_url = $theme.parent_theme->getUrl()} {else} {$_url = $theme->getUrl()} {/if} {/if} {else} {if !$s.value || strlen($s.value) <= 50} {else} {/if} {/if}
{/foreach}
{else}


{sprintf('[s`%s design theme does not offer customizable display settings. Please use template editor for customizing the theme.`]', $theme.name|escape)}

{/if} {/if}

[s`Theme usage`]

[s`Theme path`]
{if $theme.type eq waTheme::ORIGINAL}{$theme.original|escape}{else}{$theme.custom|escape}{/if}
{if $theme.type ne waTheme::ORIGINAL}
[s`Last modified`]: {$theme.mtime|wa_datetime:"humandatetime"}
{/if}
[s`Theme usage`]

{$_theme_usages = []} {foreach $theme_routes as $_r} {if $_r['_domain'] != $wa->get('domain') && $_r['_id'] != $wa->get('route')} {$_theme_usages[] = htmlspecialchars("{$_r._domain}/{$_r.url}")} {/if} {$_r._domain}/{$_r.url}
{/foreach}

{if count($theme_routes) > 1}

{sprintf('[s`Customizing %s theme settings below will affect all listed routes. If you want to keep individual designs, use separate theme copies (clones) for each route.`]', $theme.name|escape)}

{/if}
{if $theme.about}

[s`About this theme`]

{$theme.about} {/if} {if !empty($theme.thumbs)}

[s`Thumbnails`]

[s`This design theme links image thumbnails of sizes listed below. If custom-sized on-fly thumbnail generation is not allowed by the app settings, please make sure that at least listed thumbnail sizes are allowed. If on-fly thumbnail generation is allowed, thumbnails will be generated automatically.`]

{/if}

[s`Revert to original`]

[s`This will reset all customizations you applied to this design theme. Are you sure?`]

{if $theme.parent_theme && $theme.parent_theme.type == waTheme::OVERRIDDEN} {/if}
[s`or`] [s`cancel`]

{$theme.name}

{sprintf("[s`Start using this theme on one of your existing %s app routes, or create a new route:`]", $app.name)}

[s`Existing route`]
{foreach $routes as $r}
{foreachelse}
{sprintf('[s`There are no routes for %s app on this site yet.`]', $app.name)}
{/foreach}
[s`New route`]
{if count($domains) == 1} {current($domains)}/{else} / {/if}
[s`or`] [s`cancel`]

[s`Rename theme`]

[s`Theme name`]
[s`Theme ID`]
{$path}/

[s`IMPORTANT: Change Theme ID only if you are sure what you are doing. If this theme is in use by any of your websites, you will have to manually update these websites’ app settings to use this or another theme after altering the Theme ID parameter. Otherwise websites may stop working with the “Unable to load template file” error.`]

[s`or`] [s`cancel`]

[s`Parent theme`]

[s`Change parent theme`]

[s`IMPORTANT: Theme parenting allows linking HTML templates, CSS files and images from other design themes. If you are about to change parent for a design theme which already has a parent, be aware that existing file links and connections may become corrupted. A design theme can have not more than one parent theme.`]

[s`or`] [s`cancel`]