{$_is_trial = $theme.type === waTheme::TRIAL} {function name="_renderThemeSetting" _setting_var=_setting_var _setting=[]} {$_h_level = $_setting.level} {strip} {* GROUP DIVIDER *} {if $_setting.control_type == 'group_divider'} {$_global_divider = $_setting.level == 1} {$_not_empty_global_divider = $_global_divider && !empty($_setting.items)}
1} style="margin-left: {$_setting.level * 10}px"{/if}>
{* Group divider expand/collapse *} {if $_setting.level == 1} {/if} {* Group divider name *} {* Group divider tooltip *} {if !empty($_setting.tooltip)} {/if} {* A link that allows you to open all group settings in search mode *} {if $_not_empty_global_divider} {/if} {* Group divider settings *} {if !empty($_setting.items)} {/if}
{* PARAGRAPH *} {elseif $_setting.control_type == 'paragraph'}
{$_setting.name}
{* SETTING *} {else}
{if $_setting.control_type == 'checkbox'} {$_field_name = "{if !empty($_setting.parent)}parent_{/if}settings[{$_setting_var}]"} {else} {$_setting.name} {/if} {if !empty($_setting.tooltip)} {/if}
{* SELECT *} {if $_setting.control_type == 'select'} {if !empty($_setting.description)}
{$_setting.description}
{/if} {* RADIO *} {elseif $_setting.control_type == 'radio'} {foreach $_setting.options as $v => $o} {/foreach} {* COLOR *} {elseif $_setting.control_type == 'color'} {if !empty($_setting.description)}
{$_setting.description}
{/if} {* CHECKBOX *} {elseif $_setting.control_type == 'checkbox'} {$_field_name = "{if !empty($_setting.parent)}parent_{/if}settings[{$_setting_var}]"} {if !empty($_setting.description)}
{$_setting.description}
{/if} {* IMAGE SELECT *} {elseif $_setting.control_type == 'image_select'} {if !empty($_setting.description)}
{$_setting.description}
{/if} {* IMAGE *} {elseif $_setting.control_type == 'image'} {if !empty($_setting.value)} {if !empty($_setting.parent)} {$_url = $theme.parent_theme->getUrl()} {else} {$_url = $theme->getUrl()} {/if} {/if} {if !empty($_setting.description)}
{$_setting.description}
{/if} {* OTHER *} {else}
{if !$_setting.value || strlen($_setting.value) <= 50} {else} {/if}
{if !empty($_setting.description)}
{$_setting.description}
{/if} {/if}
{/if} {/strip} {/function} {$id = uniqid("wa-theme-id`$theme.id`")}
{* Theme name *}

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

{* THEME ACTIONS *} {* THEME CONTENT *}
{* Theme navigation *} {if ($theme_routes || $_is_trial) && !empty($settings.items)} {/if} {if !$theme_routes && !$_is_trial} {* THEME IS NOT IN USE *} {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} {if !empty($theme_warning_requirements)} {elseif !empty($theme_original_warning_requirements)} {elseif !empty($theme_parent_warning_requirements)} {else}

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

{/if} {else} {* THEME SETTINGS FORM *} {if !empty($settings.items)}
{$wa->csrf()}
{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}
{* Include dialogs *} {include file='./ThemeDialogs.inc.html' inline}
{$_locale = [ 'will_be_lost' => _ws('All customizations you’ve made to this file will be lost!'), 'update_notice' => mb_strtoupper(_ws('All selected files will be overwritten with their newest versions from the original theme. In case of incompatibility between your customizations and newer theme templates, CSS, and images, your site looks may change unexpectedly. There will be no way to automatically rollback this update. Update?')), 'expand_all' => _ws('Expand all'), 'collapse_all' => _ws('Collapse all'), 'expand' => _ws('Expand'), 'collapse' => _ws('Collapse') ]}
[s`Scroll up`]