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

mark at devel.plogworld.net mark at devel.plogworld.net
Sat Feb 19 09:41:41 GMT 2005


Author: mark
Date: 2005-02-19 09:41:40 +0000 (Sat, 19 Feb 2005)
New Revision: 1135

Removed:
   plog/trunk/templates/standard-with-plugins/authimage.template
Modified:
   plog/trunk/templates/standard-with-plugins/footer.template
   plog/trunk/templates/standard-with-plugins/post.template
   plog/trunk/templates/standard-with-plugins/readme.txt
Log:
Update standard-with-plugins template.
1. Remove authimage.templte. There is no need to put auhtimage to /templates, becasue I use pluginTemplatedView instead of blogView.
2. Add preconfigure karma template

Deleted: plog/trunk/templates/standard-with-plugins/authimage.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/authimage.template	2005-02-19 09:40:00 UTC (rev 1134)
+++ plog/trunk/templates/standard-with-plugins/authimage.template	2005-02-19 09:41:40 UTC (rev 1135)
@@ -1 +0,0 @@
-{$authimage->showImage()}
\ No newline at end of file

Modified: plog/trunk/templates/standard-with-plugins/footer.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/footer.template	2005-02-19 09:40:00 UTC (rev 1134)
+++ plog/trunk/templates/standard-with-plugins/footer.template	2005-02-19 09:41:40 UTC (rev 1135)
@@ -18,6 +18,11 @@
     	 {if $delicious->isEnabled()}
     	  <li><a title="{$locale->tr("delicious")}" href="{$delicious->pluginTemplatePage()}">{$locale->tr("delicious")}</a></li>
     	 {/if}
+    	{/if}
+    	{if !empty($karma)}
+    	 {if $karma->isEnabled()}
+    	  <li><a title="{$locale->tr("karma_moderated_down_articles")}" href="{$karma->pluginTemplatePage()}">{$locale->tr("karma_moderated_down_articles")}</a></li>
+    	 {/if}
     	{/if}    	
     	</ul>
     	</div>

Modified: plog/trunk/templates/standard-with-plugins/post.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/post.template	2005-02-19 09:40:00 UTC (rev 1134)
+++ plog/trunk/templates/standard-with-plugins/post.template	2005-02-19 09:41:40 UTC (rev 1135)
@@ -14,4 +14,7 @@
   {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>
+{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}
 </p>

Modified: plog/trunk/templates/standard-with-plugins/readme.txt
===================================================================
--- plog/trunk/templates/standard-with-plugins/readme.txt	2005-02-19 09:40:00 UTC (rev 1134)
+++ plog/trunk/templates/standard-with-plugins/readme.txt	2005-02-19 09:41:40 UTC (rev 1135)
@@ -19,6 +19,7 @@
 10. Drop Case
 11. Flickr
 12. Del.icio.us
+13. Karma
 
 Notice:
 All plugin sections rounded with two {if} statements




More information about the pLog-svn mailing list