{if $page eq 1} {wa_js file="js/blog-stream.min.js"} {$wa_app_static_url}js/blogStream.js {/wa_js}

{$stream.title|escape} {if $stream.blog} {/if}

    {* @event backend_stream.%plugin_id%.menu *} {foreach $backend_stream as $plugin => $output} {if is_array($output) && isset($output.menu)}
  • {$output.menu}
  • {/if} {/foreach}
  • {if (empty($blog_id) && ($wa->blog->rights(false) ge blogRightConfig::RIGHT_READ_WRITE)) || (!empty($blog_id) && ($wa->blog->rights($blog_id) ge blogRightConfig::RIGHT_READ_WRITE))}
  • {/if}
{/if} {$contact_id=$wa->user()->get('id')} {foreach $posts as $post_id => $post}

{if $post.blog_status eq blogBlogModel::STATUS_PUBLIC} {if ($post.rights ge blogRightConfig::RIGHT_FULL) or ($contact_id eq $post.contact_id && $post.rights ge blogRightConfig::RIGHT_READ_WRITE)} {$post_link = "?module=post&id=`$post.id`&action=edit"} {else} {$post_link = false} {/if} {else} {$post_link = "?module=post&id=`$post.id`"} {/if} {if $post_link} {$post.title|escape} {else} {$post.title|escape} {/if} {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 $post.color == 'b-white' && strpos($post.icon, 'background-image') !== false} {$post.icon} {/if} {if $post.color != 'b-white'} {$_color = $post.color|replace:'b-':'icon16 text-'} {$post.icon|replace:'icon16':$_color} {/if} {$post.blog_name|escape} {if $post.blog_status ne blogBlogModel::STATUS_PUBLIC} {/if}
{if $contact_rights && $post.contact_id} {else} {/if}
{if $contact_rights && $post.contact_id} {$post.user.name|escape} {else} {$post.user.name|escape} {/if} {$post.datetime|wa_datetime:"humandatetime"} {if $post.blog_status eq blogBlogModel::STATUS_PUBLIC} {foreach $post.link item=link} {waIdna::dec($link)} {/foreach} {else} {if $post.comment_new_count > 0} {_w('%d comment','%d comments',$post.comment_count,true)} +{$post.comment_new_count} {elseif $post.comment_count} {_w('%d comment','%d comments',$post.comment_count,true)} {else} [`No comments`] {/if} {/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 !empty($post.cutted)} {assign var=cut_link_label value=$post.cut_link_label|default:'[`Continue reading →`]'} {if $post.blog_status eq blogBlogModel::STATUS_PUBLIC && count($post.link)} {$cut_link_label} {else} {$cut_link_label} {/if} {/if} {if $post.album_id && $post.album.id}
{$photos_loaded = 1} {if $post.album.photos}
    {foreach $post.album.photos as $p}
  • {$p.name|escape}
  • {/foreach}
{/if}

[`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}
{/foreach} {if !empty($photos_loaded) && blogPhotosBridge::is2xEnabled()} {/if} {if $posts_count > 0}
{sprintf(_w("%d post of %d", "%d posts of %d", $posts_count,false),$posts_count,$posts_total_count)} {if $posts_count < $posts_total_count}

[`Show older posts`] {/if}
{else} {if $stream.all_posts && empty($posts) && empty($text)}

{if empty($import_link)} {sprintf('[`Start by writing your first post.`]','?module=post&action=edit&id=')} {else} {sprintf('[`Start by writing a post or importing posts
from your existing blog.`]', '?module=post&action=edit&id=', $import_link)} {/if}

{else}

[`There are no posts in this view.`]

{/if} {/if} {if $page ge $pages}
{/if} {if $page eq 1}
{if isset($dialogs) && $dialogs} {foreach $dialogs as $dialog} {$dialog} {/foreach} {/if} {/if} {if waRequest::get('is_created') && $wa->installer && method_exists($wa->installer, 'reviewWidget')} {$wa->installer->reviewWidget('app/blog')} {/if}