{if !$wa->get('details')}
{if $wa->get('reload_on_change')}{/if}
← [`Back`] {if strlen($route_id)} {if empty($route.redirect)}
{if $app}

{$app.name}

{elseif $route.app ===':text'} [`Custom text`] {else} {$route.app|escape} {/if}
{/if}
{$domain_decoded}/
{if empty($route.redirect) && !isset($route.static_content) && !$app} {/if} {else}
{$domain_decoded}/
{if empty($route.redirect)}
{/if} {/if}
{/if}
{* FIELDS FOR REDIRECT *}
[`Temporary redirecting`]
[`Enable for temporary redirecting only, which you are planning to cancel in the future.`]
[`Disable for permanent redirecting with server response code 301, which is used to inform search engines that the new URL should be indexed instead of the old one.`]
[`Comment`]
{$themes=siteHelper::getThemes($app_id, true)} {if $app}
[`Settlement name`]

[`The name is used in the $wa->apps navigation menu of this website.`]
{if $themes}
[`Design theme`]
[`Mobile design theme`]

[`Design theme for mobile multi-touch devices such as iPhone and Android`]
[`Language`]
{if !strlen($route_id)}{$_l=$wa->locale()}{else}{$_l=ifset($route.locale, '')}{/if}
[`Select a language to translate text strings in website frontend.`]
[`If “Auto” option is selected, website language will be determined by user browser settings.`]
{/if}
[`Privacy`]

[`When this option is enabled, the settlement is treated as hidden (not published), i.e. accessible by the direct URL but not included either in the $wa->apps array or in the main Sitemaps file. The private setting is useful for temporary settlements, such as “Under Construction” pages, and for other settlements which should not be included in the core website navigation menu or indexed by search engines.`]

[`Security`]

[`You cannot enable redirection because your web server does not allow to distinguish HTTP from HTTPS.`]

[`Redirect website visitors from ordinary HTTP to secure HTTPS connection within this section.`]
[`This option will work only if an SSL certificate is installed for your domain name.`]
{sprintf(_w('To enable redirect to HTTPS for all website settlements, change this option in common site settings.'), $site_url)}

{if !empty($params)} {foreach $params as $p} {if is_array($p)} {if $p.type == 'hidden'} {$p.value} {else}
{$p.name|escape}
{$p.value}
{/if} {else}

{$p}

{/if} {/foreach} {/if}
[`Custom parameters`]

[`Optional set of custom key=value parameters, which can be used in design templates and pages of this settlement as {$wa->param("key")}. Each key=value pair must be specified on a separate line.`] [`Help`]

{elseif $app_id === ':text'}
[`Custom text`]
[`Content type`]

[`If content type “file” is selected and the URL does not end with a name extension then requesting this URL will automatically start downloading of a file.`]
[`Privacy`]
{elseif $app === false}
{$app_id|escape|string_format:"[`The [%s] app deleted or disabled.`]"}
{/if} {if !empty($route.redirect) || isset($route.static_content) || $app}
{if strlen($route_id)} {/if}
{/if}
{if !$wa->get('details')}
{* DIALOGS *}

[`Delete route`]

{sprintf('[`You are about to delete the only routing rule set up for %s app.`]', ifempty($app.name))}

[`This will limit its functionality. Delete the rule?`]

[s`or`] [s`cancel`]
{/if}