{if isset($blog) && $blog} {if $blog.status eq blogBlogModel::STATUS_PUBLIC} {$blog.name|escape} {foreach $blog.link as $l} {/foreach} {else} {$blog.name|escape} {/if} {else} {$blog.name|escape} {/if}

{if $contact_rights && $post.contact_id} {$post.user.name|escape} {else} {$post.user.name|escape} {/if}

{$post.title|escape} {if isset($post.plugins) && isset($post.plugins.post_title) && $post.plugins.post_title} {* @event prepare_posts_backend.%plugin_id%.post_title *} {foreach $post.plugins.post_title as $plugin => $output} {$output} {/foreach} {/if} {if isset($post.plugins) && isset($post.plugins.post_title_right) && $post.plugins.post_title_right} {* @event prepare_posts_backend.%plugin_id%.post_title_right *} {foreach $post.plugins.post_title_right as $plugin => $output} {$output} {/foreach} {/if}

{if $contact_rights && $post.contact_id} {$post.user.name|escape} {else} {$post.user.name|escape} {/if} {$post.datetime|wa_datetime:"humandatetime"} {if $blog.status eq blogBlogModel::STATUS_PUBLIC}

{foreach $post.link item=link} {$link} {/foreach}

{/if}
{$post_edit=false} {if ($post.rights ge blogRightConfig::RIGHT_FULL) or (($post.contact_id eq $current_contact.id) and ($post.rights ge blogRightConfig::RIGHT_READ_WRITE))} {$post_edit=true} {capture append="dialogs"} {include file='./../../dialogs/postDelete.html' inline} {/capture} {/if}
{if isset($post.plugins) && isset($post.plugins.before) && $post.plugins.before} {* @event prepare_posts_backend.%plugin_id%.before *} {foreach $post.plugins.before as $plugin => $output} {$output} {/foreach} {/if} {$post.text} {if $post.album_id && $post.album.id}
{foreach $post.album.photos as $p}
{if $p.description} {if $p.description|strstr:'

'} {$p.description} {else}

{$p.description}

{/if} {/if} {$p.name|escape}
{/foreach}

[`Photo album`]: {$post.album.name|escape} ({count($post.album.photos)})

{/if} {if isset($post.plugins) && isset($post.plugins.after) && $post.plugins.after} {* @event prepare_posts_backend.%plugin_id%.after *} {foreach $post.plugins.after as $plugin => $output} {$output} {/foreach} {/if}

{$post.comment_count} {_w('comment', 'comments', $post.comment_count)} {if count($post.comments) == 0} [`No comments`] {/if}

{if count($post.comments) > 0} {include 'templates/actions/post/include.comments.html' inline} {else} {/if} {if $post.comments_allowed}

[`Add comment`]

{/if}
{if isset($dialogs)}
{$wa->csrf()} {foreach $dialogs as $dialog} {$dialog} {/foreach}
{/if} {if $post.album_id && $post.album.id && blogPhotosBridge::is2xEnabled()} {/if} {wa_js file="js/blog-post.min.js"} {$wa_app_static_url}js/blogPost.js {/wa_js} {if waRequest::get('is_created') && $wa->installer && method_exists($wa->installer, 'reviewWidget')} {$wa->installer->reviewWidget('app/blog')} {/if}