{include file="$blogtemplate/header.template"}
{include file="$blogtemplate/panel.template"}

<div id="content">
<h2>{$locale->tr("search_results")}: {foreach from=$searchterms item=term}{$term} {/foreach}</h2>
<p>
{foreach from=$searchresults item=result}
<div class="searchresult">
{assign var=article value=$result->getArticle()}
<a href="{$url->postPermalink($article)}"><h3><b>{$article->getTopic()}</b></h3></a>
<div align="right">{foreach name=categories from=$article->getCategories() item=postcategory}
<a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
{/foreach}</div>
<p>
{$article->getText()|strip_tags|truncate:300:"...":false}
</p>
</div>
<br/>
{/foreach}
</p>
</div>

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