[pLog-svn] r1194 - in plog/trunk/templates: grey-sf standard-with-plugins

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu Feb 24 03:33:02 GMT 2005


Author: jondaley
Date: 2005-02-24 03:33:01 +0000 (Thu, 24 Feb 2005)
New Revision: 1194

Modified:
   plog/trunk/templates/grey-sf/postandcomments.template
   plog/trunk/templates/standard-with-plugins/postandcomments.template
Log:
prev/next post don't exist any more, need to set them

Modified: plog/trunk/templates/grey-sf/postandcomments.template
===================================================================
--- plog/trunk/templates/grey-sf/postandcomments.template	2005-02-24 03:18:36 UTC (rev 1193)
+++ plog/trunk/templates/grey-sf/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
@@ -1,9 +1,11 @@
 {include file="$blogtemplate/header.template"}
   <p style="text-align: center">
    {* I am not so keen on using if's in templates, but can't think of another way... *}
+   {assign var=nextpost value=$post->getNextArticle()}  
    {if $nextpost == true}
      <a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">&laquo;</a> |
    {/if}
+   {assign var=prevpost value=$post->getPrevArticle()}  
    {if $prevpost == true}
      <a href="{$url->postPermalink($prevpost)}" title="Previous post: {$prevpost->getTopic()}">&raquo;</a>
    {/if}

Modified: plog/trunk/templates/standard-with-plugins/postandcomments.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/postandcomments.template	2005-02-24 03:18:36 UTC (rev 1193)
+++ plog/trunk/templates/standard-with-plugins/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
@@ -1,11 +1,12 @@
 		{assign var="postPageTitle" value=$post->getTopic()}
 		{assign var="postPageTitle" value=" | $postPageTitle"}
 		{include file="$blogtemplate/header.template"} 
-  
 <p id="Nextpost">
+		{assign var=nextpost value=$post->getNextArticle()}  
 		{if $nextpost == true}
 <a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">&laquo;</a> |
    		{/if}
+		{assign var=prevpost value=$post->getPrevArticle()}  
    		{if $prevpost == true}
 <a href="{$url->postPermalink($prevpost)}" title="Previous post: {$prevpost->getTopic()}">&raquo;</a>
    		{/if}




More information about the pLog-svn mailing list