{include file="$blogtemplate/header.template"}
<div id="content" class="narrowcolumn">
<h2>{$locale->tr("search_results")}:
{foreach from=$searchterms item=term}{$term} {/foreach}
</h2>
{foreach from=$searchresults item=result}
<div class="post">
{assign var=article value=$result->getArticle()}
{assign var="postDate" value=$article->getDateObject()}
{assign var="postOwner" value=$article->getUserInfo()}
<div class="entry">
<h2>
<a href="{$url->postPermalink($article)}">
{$article->getTopic()}</a>
</h2><br />
<small>{$locale->tr("posted_by")}
{$postOwner->getUsername()} {$locale->formatDate($postDate,"%H:%M")}

| {foreach name=categories
from=$article->getCategories() item=postcategory}
<a href="{$url->categoryLink($postcategory)}">
{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
{/foreach}
| {$locale->formatDate($postDate,"%j %b, %Y")}
</small>
</div>
{$article->getText()|strip_tags|truncate:300:"...":false}
</div>
{/foreach}
</div>

{include file="$blogtemplate/footer.template"}