[pLog-svn] r1197 - plog/trunk/templates/grey-sf
jondaley at devel.plogworld.net
jondaley at devel.plogworld.net
Thu Feb 24 04:00:40 GMT 2005
Author: jondaley
Date: 2005-02-24 04:00:39 +0000 (Thu, 24 Feb 2005)
New Revision: 1197
Modified:
plog/trunk/templates/grey-sf/post.template
Log:
multiple categories, haven't tested yet
Modified: plog/trunk/templates/grey-sf/post.template
===================================================================
--- plog/trunk/templates/grey-sf/post.template 2005-02-24 03:55:17 UTC (rev 1196)
+++ plog/trunk/templates/grey-sf/post.template 2005-02-24 04:00:39 UTC (rev 1197)
@@ -7,6 +7,9 @@
{$post->getText()}
</p>
<div class="footer">
-{assign var="postCategory" value=$post->getCategory()}
-<a href="{$url->postCategoryLink($post)}">{$postCategory->getName()}</a> :: <a href="{$url->postPermalink($post)}">{$locale->tr("comment on this")} ({$post->getTotalComments()})</a> :: <a title="{$locale->tr("permalink_title")}" href="{$url->postPermalink($post)}">{$locale->tr("permalink")}</a> :: <a href="{$url->postTrackbackStatsLink($post)}">Trackback ({$post->getNumTrackbacks()})</a>
+ {foreach name=categories from=$post->getCategories() item=postCategory}
+ <a href="{$url->postCategoryLink($post)}">{$postCategory->getName()}</a>
+ {if !$smarty.foreach.categories.last}, {/if}
+ {/foreach}
+:: <a href="{$url->postPermalink($post)}">{$locale->tr("comment on this")} ({$post->getTotalComments()})</a> :: <a title="{$locale->tr("permalink_title")}" href="{$url->postPermalink($post)}">{$locale->tr("permalink")}</a> :: <a href="{$url->postTrackbackStatsLink($post)}">Trackback ({$post->getNumTrackbacks()})</a>
</div>
More information about the pLog-svn
mailing list