{assign var="postDate" value=$post->getDateObject()}
{assign var="postOwner" value=$post->getUserInfo()}
{assign var=nextpost value=$post->getNextArticle()}
{assign var=prevpost value=$post->getPrevArticle()}
<div>
 <h2>{$post->getTopic()}</h2>
<div class="meta">{$locale->tr("posted_by")} {$postOwner->getUsername()}  {$locale->tr("in")} 
  {foreach name=categories from=$post->getCategories() item=postcategory}
    <a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
  {/foreach} - 
  {$locale->formatDate($postDate,"%j %b, %Y")}
</div>
<br />
<div class="main">
  {$post->getText()}
</div>
<br />
<div class="comments">
   <a href="{$url->postPermalink($post)}">{$locale->tr("permalink")}</a> /
   <a href="{$url->postPermalink($post)}">({$post->getNumComments()}) {$locale->tr("comments")} </a> /
   <a href="{$url->postTrackbackStatsLink($post)}">({$post->getNumTrackbacks()}) {$locale->tr("trackbacks")} </a>
   {if !$OnMainPage}
   {if $nextpost == true}
   / <a href="{$url->postPermalink($nextpost)}" title="{$locale->tr("next_post")}: {$nextpost->getTopic()}">{$locale->tr("next_post")}</a>
   {/if}
    {if $prevpost == true}
    / <a href="{$url->postPermalink($prevpost)}" title="{$locale->tr("previous_post")}: {$prevpost->getTopic()}">{$locale->tr("previous_post")}</a>
    {/if}
    {/if} 
</div>   
</div>
