{strip} {* This template is used by the blogs plugin to liberty. *}
getPreference( 'users_double_click' ) and (($aPost.ownsblog eq 'y') or ($gBitUser->mUserId and $aPost.user_id eq $gBitUser->mUserId) or $gBitUser->hasPermission( 'p_blogs_admin' ))} ondblclick="location.href='{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$aPost.blog_id}{$blog_id}&post_id={$aPost.post_id}{$post_id}';" {/if} > {if $gBitUser->hasPermission( 'p_users_view_icons_and_tools' )}
{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} {booticon iname="icon-print" ipackage="icons" iexplain="print"} {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}
{if $aPost.crosspost_note}
{$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}

*}
{if $aPost.pages > 1} {tr}read more{/tr} ({$aPost.pages} {tr}pages{/tr}) {/if}
{/strip}