{* count votes *} {*{assign var='thisPostVotesUp' value=0} {assign var='thisPostVotesDown' value=0} {foreach from=$postVotesUp item=cPVU} {if $cPVU.vote_post eq $cPost->data.post_id} {assign var='thisPostVotesUp' value=$cPVU.vote_total} {/if} {/foreach} {foreach from=$postVotesDown item=cPVD} {if $cPVD.vote_post eq $cPost->data.post_id} {assign var='thisPostVotesDown' value=$cPVD.vote_total} {/if} {/foreach}*} {if isset($targetHubbub)} {assign var='postHubbub' value=$targetHubbub} {elseif $cPost->data.post_hubbub ne $hubbub->data.hubbub_id} {assign var='postHubbubId' value=$cPost->data.post_hubbub} {assign var='postHubbub' value=$hubbubList.$postHubbubId} {else} {assign var='postHubbub' value=$hubbub} {/if} {* count replies *} {counter assign="replies" start=0} {foreach from=$postResponses item=cComment} {if $cComment->data.post_topparent eq $cPost->data.post_id} {counter} {/if} {/foreach} {assign var='post_id' value=$cPost->data.post_id} {assign var='postCategory_id' value=$cPost->data.post_category} {assign var='postCategory' value=Category::$list.$postCategory_id} {assign var='categoryaccess' value=$postCategory->getAccess()} {* find tags *} {* {assign var='tagList' value=$tags.$post_id} *}
{"Posted in"|gettext} {*{if $cPost->joined.obj_post_category->data.category_parent ne 0} {assign var='parentCatId' value=$cPost->joined.obj_post_category->data.category_parent} {assign var='parentCat' value=Category::$list.$parentCatId} {$parentCat->data.category_name} | {/if}*} {assign var='cat' value=Category::$list[$cPost->data.post_category]} {Translation::t($cat, 'category_name')}