[pLog-svn] r1480 - templates/trunk/reic
jondaley at devel.plogworld.net
jondaley at devel.plogworld.net
Tue Mar 15 02:50:58 GMT 2005
Author: jondaley
Date: 2005-03-15 02:50:57 +0000 (Tue, 15 Mar 2005)
New Revision: 1480
Modified:
templates/trunk/reic/searchresults.template
Log:
removed ^Ms and added multiple categories
Modified: templates/trunk/reic/searchresults.template
===================================================================
--- templates/trunk/reic/searchresults.template 2005-03-15 02:50:13 UTC (rev 1479)
+++ templates/trunk/reic/searchresults.template 2005-03-15 02:50:57 UTC (rev 1480)
@@ -1,29 +1,34 @@
{include file="$blogtemplate/header.template"}
-<div id="container">
- <div class="blog">
+<div id="container">
+ <div class="blog">
<div class="blogbody">
- <h2>{$locale->tr("search_results")}: {foreach from=$searchterms item=term}{$term} {/foreach}</h2>
- <div id="SearchResults">
- {foreach from=$searchresults item=result}
-
-
- {assign var=article value=$result->getArticle()}
- {if $urlmode == 2}
- <h3 class="title"><a href="{$url->postPermalink($article)}>{$article->getTopic()}</a></h3>
- {else}
- <h3 class="title"><a href="{$url->postPermalink($article)}">{$article->getTopic()}</a></h3>
- {/if}
- {assign var="articleCategory" value=$article->getCategory()}
- <div class="posted">{$locale->tr("categories")}: <a href="{$url->postCategoryLink($article)}">{$articleCategory->getName()}</a></div>
-
- {$article->getText()|strip_tags|truncate:300:"...":false}
-
-
- {/foreach}
- </div>
- </div>
+ <h2>{$locale->tr("search_results")}: {foreach from=$searchterms item=term}{$term} {/foreach}</h2>
+ <div id="SearchResults">
+ {foreach from=$searchresults item=result}
+
+
+ {assign var=article value=$result->getArticle()}
+ {if $urlmode == 2}
+ <h3 class="title"><a href="{$url->postPermalink($article)}>{$article->getTopic()}</a></h3>
+ {else}
+ <h3 class="title"><a href="{$url->postPermalink($article)}">{$article->getTopic()}</a></h3>
+ {/if}
+
+ <div class="posted">{$locale->tr("categories")}:
+ {foreach name=categories from=$article->getCategories() item=postCategory}
+ <a href="{$url->categoryLink($postCategory)}">{$postCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+ {/foreach}
+
+ </div>
+
+ {$article->getText()|strip_tags|truncate:300:"...":false}
+
+
+ {/foreach}
+ </div>
</div>
+ </div>
</div>
{include file="$blogtemplate/panel.template"}
{include file="$blogtemplate/footer.template"}
-
+
More information about the pLog-svn
mailing list