{$wa->csrf()}
[`Allow comments`]
{if !$show_comments} [`Off`] {else} {/if}
[`Author`]
{if ($post.status eq blogPostModel::STATUS_DRAFT) || ($post.status eq blogPostModel::STATUS_DEADLINE)}
[`Publication deadline`]
{if ($post.datetime || $wa->get('date')) && $post.status eq blogPostModel::STATUS_DEADLINE} {if !$wa->get('date')}{$post.datetime|wa_date}{else}{date('d.m.Y', strtotime($wa->get('date')))}{/if} [`edit`] {else} [`Not set`] [`Deadline is for plan purposes only. It will not automatically published the post, but will highlight the post if publication date is overdue.`] {/if}
${date} [`edit`] [`Not set`] [`Deadline is for plan purposes only. It will not automatically published the post, but will highlight the post if publication date is overdue.`] {capture append="dialogs"} {include file='./../../dialogs-legacy/postDeadline.html' inline} {include file='./../../dialogs-legacy/postDelete.html' inline} {/capture} {elseif $post.status != blogPostModel::STATUS_SCHEDULED}
[`Published`]
{$post.datetime|wa_datetime:'humandatetime'} [`edit`] {capture append="dialogs"} {include file='./../../dialogs-legacy/postDelete.html' inline} {/capture} {/if}
[`Meta`]

[`Title`]: {$post.meta_title|escape}
[`Meta Keywords`]: {$post.meta_keywords|escape}
[`Meta Description`]: {$post.meta_description|escape}
{foreach $params as $k => $v}{$k}={$v|escape}
{/foreach}
[`No meta parameters are defined for this blog post.`] [`Edit meta`]

{capture append="dialogs"} {include file="./../../dialogs-legacy/postEditCustomParams.html" inline} {/capture}
{* @event backend_post_edit.%plugin_id%.sidebar *} {if isset($backend_post_edit)} {foreach $backend_post_edit as $plugin => $output} {if isset($output.sidebar)} {$output.sidebar} {/if} {/foreach} {/if} {if $post.id} {/if}
{* .sidebar.right200px *}

{* POST URL *} {assign var="is_adding" value = ($post.status == blogPostModel::STATUS_DRAFT && !$post.id)} {assign var="unsuccessful_save" value = (isset($validate_messages.url) && $validate_messages.url)} {if !$no_settlements}
{if $post.status == blogPostModel::STATUS_PUBLISHED} [`Published`]: {else} [`Preview`]: {/if} {$link = $post.link} {$full_link = "{if $link}{$link|escape}{if $post.url}{$post.url|escape}{/if}/{if isset($preview_hash)}?preview={$preview_hash}{/if}{/if}"} {$realtime_preview_url = $post.preview_link} {$post.link|escape}{if $post.url}{$post.url|escape}/{else}{/if} [`edit`] {strip} {$post.link|escape} / {/strip}
{if isset($post.other_links) && !empty($post.other_links)} {foreach $post.other_links as $i => $link} {$full_link = "{if $link}{$link|escape}{if $post.url}{$post.url|escape}{/if}/{if isset($preview_hash)}?preview={$preview_hash}{/if}{/if}"} {$realtime_preview_url = ifset($post, 'other_preview_links', $i, '')} {if $post.status == blogPostModel::STATUS_PUBLISHED} [`Published`]: {$link|escape}{if $post.url}{$post.url|escape}/{else}{/if} {else if $is_adding} [`Preview`]: {$link|escape}{if $post.url}{$post.url|escape}/{else}{/if} {else} [`Preview`]: {$link|escape}{if $post.url}{$post.url|escape}/{else}{/if} {/if}
{/foreach} {/if}
{if $unsuccessful_save}
{$validate_messages.url}
{else}
{/if}
{/if} {*/$no_settlements*} {* /POST URL *} {* @event backend_post_edit.%plugin_id%.toolbar *} {if isset($backend_post_edit)} {foreach $backend_post_edit as $plugin => $output} {if isset($output.toolbar)} {$output.toolbar} {/if} {/foreach} {/if}
{* .b-post *}
  • [`Visual`]
  • [`HTML`]
  • {* @event backend_post_edit.%plugin_id%.editor_tab *} {if isset($backend_post_edit)} {foreach $backend_post_edit as $plugin => $output} {if isset($output.editor_tab)}
  • {$output.editor_tab}
  • {/if} {/foreach} {/if} {if blogPhotosBridge::isAvailable()}
  • [`Photo Album`]
  • {/if}
{if blogPhotosBridge::isAvailable()} {/if}
{* #post-editor.b-post-editor *}
{if ($post.status eq blogPostModel::STATUS_DRAFT) || ($post.status eq blogPostModel::STATUS_DEADLINE)}
{if ($allow_change_blog > 1) && ($post.status neq blogPostModel::STATUS_PUBLISHED)} {capture append="dialogs"} {include file='./../../dialogs-legacy/postPublish.html' inline} {/capture} {else} {/if} Ctrl+S
{capture append="dialogs"} {include file='./../../dialogs-legacy/postSchedule.html' inline} {/capture} {else}
{if $post.status ne blogPostModel::STATUS_PUBLISHED}
[`Autopublication is scheduled for`] {$post.datetime|wa_datetime:'humandatetime'} ({$post.remaining_time})
{/if} Ctrl+S
{capture append="dialogs"} {include file='./../../dialogs-legacy/postDelete.html' inline} {/capture} {/if}
{* #buttons-bar.b-post *}
{* .b-single-post *}
{* .content *} {if isset($dialogs)} {foreach $dialogs as $dialog} {$dialog} {/foreach} {/if}
{assign var=lang value=substr($wa->locale(), 0, 2)} {if $lang!='en'} {/if} {* REDACTOR (WYSIWYG) *} {* CUT PLUGIN *} {if substr($wa->locale(), 0, 2)!='en'} {/if} {* ACE *} {if $lang!='en'} {/if} {wa_js file="js-legacy/blog-post-edit.min.js"} {$wa_app_static_url}js-legacy/postmessage.js {$wa_app_static_url}js-legacy/postEdit.js {/wa_js} {foreach $smarty.capture as $name => $template} {if strpos($name,'template-js')} {/if} {/foreach}