{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$aPost}
{if $gBitUser->hasPermission( 'p_blogs_admin' )}
{booticon iname="icon-paperclip" ipackage="icons" iexplain="crosspost"}
{/if}
{if $gBitUser->hasPermission('p_blogs_send_post')}
{booticon iname="icon-envelope" ipackage="icons" iexplain="email this post"}
{/if}
{if ($aPost.ownsblog eq 'y') or ($gBitUser->mUserId and $aPost.user_id eq $gBitUser->mUserId) or $gBitUser->hasPermission( 'p_blogs_admin' )}
{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}
{booticon iname="icon-trash" ipackage="icons" iexplain="delete"}
{/if}
{/if}
{if $aPost.title} {$aPost.title|escape:html} {else} {$aPost.publish_date|default:$aPost.created|bit_long_date} {/if}
{if $gBitSystem->getConfig('blog_list_user_as') eq 'link'}
{tr}By{/tr} {displayname hash=$aPost}
{elseif $gBitSystem->getConfig('blog_list_user_as') eq 'avatar' && $aPost.avatar}
{else}
{tr}By{/tr} {displayname hash=$aPost nolink=true}
{/if}
{$aPost.publish_date|default:$aPost.created|bit_long_date}
{if count($aPost.blogs) > 0} {tr}Posted to{/tr} {foreach from=$aPost.blogs item=memberBlog key=blogContentId name=memberBlogLoop} {$memberBlog.title}{if $smarty.foreach.memberBlogLoop.total > 1 && !$smarty.foreach.memberBlogLoop.last }, {/if} {/foreach}
{/if}
{$aPost.publish_date|default:$aPost.created|bit_long_date}
{if count($aPost.blogs) > 0} {tr}Posted to{/tr} {foreach from=$aPost.blogs item=memberBlog key=blogContentId name=memberBlogLoop} {$memberBlog.title}{if $smarty.foreach.memberBlogLoop.total > 1 && !$smarty.foreach.memberBlogLoop.last }, {/if} {/foreach}
{/if}
{if $aPost.crosspost_note}
{if $aPost.pages > 1}
{tr}read more{/tr} ({$aPost.pages} {tr}pages{/tr})
{/if}
{$aPost.crosspost_note}
{/if}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$aPost}
{* deal with the blog post image if there is one *}
{if $gBitSystem->isFeatureActive( 'blog_show_image' ) && $aPost.thumbnail_url}
{jspopup notra=1 href=$aPost.thumbnail_url.original alt=$aPost.title|escape title=$aPost.title|escape" img=$aPost.thumbnail_url.medium}
{/if}
{if $showDescriptionsOnly}
{$aPost.summary|default:$aPost.parsed_description}
{if $ajax_more}{/if}
{else}
{$aPost.parsed_data}
{/if}
{* this is at the top of the post {tr}Posted on {$aPost.publish_date|default:$aPost.created|bit_long_datetime}{/tr}
*}