[pLog-svn] r1207 - plog/trunk/templates/standard-with-plugins

mark at devel.plogworld.net mark at devel.plogworld.net
Fri Feb 25 06:46:47 GMT 2005


Author: mark
Date: 2005-02-25 06:46:46 +0000 (Fri, 25 Feb 2005)
New Revision: 1207

Modified:
   plog/trunk/templates/standard-with-plugins/post.template
Log:
Update karma block in post.template.

Modified: plog/trunk/templates/standard-with-plugins/post.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/post.template	2005-02-25 06:45:26 UTC (rev 1206)
+++ plog/trunk/templates/standard-with-plugins/post.template	2005-02-25 06:46:46 UTC (rev 1207)
@@ -14,7 +14,11 @@
   {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)}">{$locale->tr("trackbacks")} ({$post->getNumTrackbacks()})</a>
+{if !empty($karma)}
+{if $karma->isEnabled()}
 {assign var="positiveKarma" value=$post->getField("positiveKarma")}{if $positiveKarma == ""}{assign var="positiveKarma" value=0}{/if}
 {assign var="negativeKarma" value=$post->getField("negativeKarma")}{if $negativeKarma == ""}{assign var="negativeKarma" value=0}{/if}
-{if !empty($karma)}{if $karma->isEnabled()} :: {$locale->tr("karma")} (<a href="{$karma->getPositiveUrl($post)}">+{$positiveKarma}</a>/<a href="{$karma->getNegativeUrl($post)}">-{$negativeKarma}</a>){/if}{/if}
+ :: {$locale->tr("karma")} (<a href="{$karma->getPositiveUrl($post)}">+{$positiveKarma}</a>/<a href="{$karma->getNegativeUrl($post)}">-{$negativeKarma}</a>)
+{/if}
+{/if}
 </p>




More information about the pLog-svn mailing list