[pLog-svn] r1195 - in templates/trunk: 3-column-liquid minitemplate pastel-blocks reic standard_green standard_happy standard_red wordplog

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


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

Modified:
   templates/trunk/3-column-liquid/postandcomments.template
   templates/trunk/minitemplate/post.template
   templates/trunk/pastel-blocks/postandcomments.template
   templates/trunk/reic/postandcomments.template
   templates/trunk/standard_green/postandcomments.template
   templates/trunk/standard_happy/postandcomments.template
   templates/trunk/standard_red/postandcomments.template
   templates/trunk/wordplog/header.template
   templates/trunk/wordplog/module_postbrowse.inc
Log:
prev/next post don't exist any more, need to set them

Modified: templates/trunk/3-column-liquid/postandcomments.template
===================================================================
--- templates/trunk/3-column-liquid/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/3-column-liquid/postandcomments.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -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=prevpost value=$post->getPrevArticle()}
    {if $prevpost == true}
      <a href="{$url->postPermalink($prevpost)}" title="Previous post">&laquo; {$prevpost->getTopic()} </a>
    {/if}
+   {assign var=nextpost value=$post->getNextArticle()}
    {if $nextpost == true}
      | <a href="{$url->postPermalink($nextpost)}" title="Next post">{$nextpost->getTopic()} &raquo;</a>
    {/if}

Modified: templates/trunk/minitemplate/post.template
===================================================================
--- templates/trunk/minitemplate/post.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/minitemplate/post.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -1,6 +1,8 @@
 {* ------
 {$url->postTrackbackLink($post)}
 ------ *}	
+{assign var=nextpost value=$post->getNextArticle()}
+{assign var=prevpost value=$post->getPrevArticle()}
 
 {if $nextpost == true}
 <a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">&laquo;&laquo;&laquo;</a> |

Modified: templates/trunk/pastel-blocks/postandcomments.template
===================================================================
--- templates/trunk/pastel-blocks/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/pastel-blocks/postandcomments.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -9,9 +9,11 @@
         <span class="prevnext">
    
          <br/>
+         {assign var=prevpost value=$post->getPrevArticle()}
+         {assign var=nextpost value=$post->getNextArticle()}
          {if $prevpost == true}
           <a href="{$url->postPermalink($prevpost)}" title="Previous post: {$prevpost->getTopic()}">&larr; Previous Entry</a>
-            {if $nextpost == true}  <img alt="|" class="seperator" src="{$url->getTemplateFile("/sp.gif")}"/>  {/if}
+            {if $nextpost == true}  <img alt="|" class="seperator" src="{$url->getTemplateFile("sp.gif")}"/>  {/if}
          {/if}
          {if $nextpost == true}
           <a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">Next Entry &rarr;</a>

Modified: templates/trunk/reic/postandcomments.template
===================================================================
--- templates/trunk/reic/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/reic/postandcomments.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -4,9 +4,11 @@
 <div id="container">
 {* Prevpost and nextpost use *}
 <div id="article_index">
+  {assign var=nextpost value=$post->getNextArticle()}
   {if $nextpost == true}
      <a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">&laquo; Next_post</a> |
    {/if}
+   {assign var=prevpost value=$post->getPrevArticle()}
    {if $prevpost == true}
      <a href="{$url->postPermalink($prevpost)}" title="Previous post: {$prevpost->getTopic()}">Prev_post&raquo;</a>
    {/if}

Modified: templates/trunk/standard_green/postandcomments.template
===================================================================
--- templates/trunk/standard_green/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/standard_green/postandcomments.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -1,9 +1,11 @@
 		{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}

Modified: templates/trunk/standard_happy/postandcomments.template
===================================================================
--- templates/trunk/standard_happy/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/standard_happy/postandcomments.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -1,9 +1,11 @@
 		{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}

Modified: templates/trunk/standard_red/postandcomments.template
===================================================================
--- templates/trunk/standard_red/postandcomments.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/standard_red/postandcomments.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -1,9 +1,11 @@
 		{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}

Modified: templates/trunk/wordplog/header.template
===================================================================
--- templates/trunk/wordplog/header.template	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/wordplog/header.template	2005-02-24 03:33:32 UTC (rev 1195)
@@ -49,9 +49,11 @@
 		<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="{$url->rssLink("atom")}" />
 
 		<link rel="home" title="{$blog->getBlog()}" href="{$url->blogLink()}" />
+		{assign var=prevpost value=$post->getPrevArticle()}
 		{if $prevpost == true}
 			<link rel="prev" title="{$prevpost->getTopic()}" href="{$url->postPermalink($prevpost)}" />
 		{/if}
+		{assign var=nextpost value=$post->getNextArticle()}
 		{if $nextpost == true}
 			<link rel="next" title="{$nextpost->getTopic()}" href="{$url->postPermalink($nextpost)}" />
 		{/if}

Modified: templates/trunk/wordplog/module_postbrowse.inc
===================================================================
--- templates/trunk/wordplog/module_postbrowse.inc	2005-02-24 03:33:01 UTC (rev 1194)
+++ templates/trunk/wordplog/module_postbrowse.inc	2005-02-24 03:33:32 UTC (rev 1195)
@@ -1,3 +1,5 @@
+				{assign var=prevpost value=$post->getPrevArticle()}
+				{assign var=nextpost value=$post->getNextArticle()}
 				{if $prevpost == true || $nextpost == true}
 				<li id="browse">{#locale_posts_browse#}<br />
 					<ul><li>{if $prevpost == true}




More information about the pLog-svn mailing list