{if $blog_id} {/if}

{if !empty($blog.name)}{$blog.name|escape}{else}[`New blog`]{/if}

{$wa->csrf()}
[`Blog name`]
{if isset($messages.blog_name) && $messages.blog_name} {$messages.blog_name|escape} {else} {/if}
[`Blog type`]

[`Blog posts are published and available in the frontend and RSS feed`]

[`Public blog URL`]
{if empty($blog.settlement.url)}

{sprintf('[`This blog is not visible on your sites now, because there were no routing rules added for Blog app with this particular blog. To make this blog visible on your site, create a route using the form below or using Site app routing settings.`]', "../site/#/routing/")}

[`Specify the public URL for this new blog on your site:`]

{strip} {if count($domains) > 1}   {else} {/if} / {/strip} {if !empty($messages.blog_url)} {$messages.blog_url|escape} {else} {/if}

{else}
{if $blog.id} {if $blog.settlement.single} {$blog.settlement.url|escape} {else} {if !isset($messages.blog_url) || !$messages.blog_url} {$blog.settlement.url|escape}{if $blog.url}{$blog.url}/{else}{/if} [`edit`] {$blog.settlement.url|escape}/ {else} {$blog.settlement.url|escape}/ {/if} {/if} {else} {$blog.settlement.url|escape}/ {/if} {if isset($blog.other_settlements) && !empty($blog.other_settlements)}
{foreach $blog.other_settlements as $settlement} {$settlement.url|escape}{if $blog.url && !$settlement.single}{$blog.url}/{else}{/if}
{/foreach}
{/if} {if isset($messages.blog_url) && $messages.blog_url} {$messages.blog_url|escape} {else} {/if}


[`A URL to view all posts of this blog on your public website.`]

{/if}
[`Color`]
[`Color coding is used only within Webasyst backend`]
[`Icon`]

[`Or enter image URL (image will be scaled to 16x16px)`]:
{* @event backend_blog_edit.%plugin_id%.settings *} {foreach $backend_blog_edit as $plugin => $output} {if is_array($output) && isset($output.settings)} {$output.settings} {/if} {/foreach}
{if $saved} [`Saved`] {/if}
{if $blog_id}
{$wa->csrf()}

{include file='./../../dialogs-legacy/blogDelete.html' inline}
{/if}
{* .content *}
{* .b-stream *}