[pLog-svn] r1692 - templates/trunk/kubrick

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Mon Apr 4 15:22:39 GMT 2005


Author: jondaley
Date: 2005-04-04 15:22:37 +0000 (Mon, 04 Apr 2005)
New Revision: 1692

Added:
   templates/trunk/kubrick/README.txt
   templates/trunk/kubrick/postmetadata.inc
Modified:
   templates/trunk/kubrick/commentform.template
   templates/trunk/kubrick/panel.template
   templates/trunk/kubrick/post.template
   templates/trunk/kubrick/postandcomments.template
Log:
new changes from knight

Added: templates/trunk/kubrick/README.txt
===================================================================
--- templates/trunk/kubrick/README.txt	2005-04-03 23:06:44 UTC (rev 1691)
+++ templates/trunk/kubrick/README.txt	2005-04-04 15:22:37 UTC (rev 1692)
@@ -0,0 +1,16 @@
+This is the readme file and change log file for "kubrick" template for Plog
+Kubrick template is original by Michael Heilemann from http://binarybonsai.com/kubrick/
+Modified By Knight from http://www.ahknight.net
+
+
+# if you using this template for other language then english, you can edit the postmetadata.inc to suit your own language
+# to add your personal header image, you  can simply drop in an image called 'personalheader.jpg' into your /images/
+ directory. Dimensions should be at least 760px x 200px. Anything above that will
+ get cropped off of the image.
+ after that uncomment for #headerimg in style.css
+
+4 april 2005
+fixed some locale issue
+fixed the link category won't show issue
+postmetadata now include as a inc file
+empty link category will hide
\ No newline at end of file

Modified: templates/trunk/kubrick/commentform.template
===================================================================
--- templates/trunk/kubrick/commentform.template	2005-04-03 23:06:44 UTC (rev 1691)
+++ templates/trunk/kubrick/commentform.template	2005-04-04 15:22:37 UTC (rev 1692)
@@ -1,4 +1,4 @@
-<h3 id="respond">Leave a Reply</h3>
+<h3 id="respond">{$locale->tr("add_comment")}</h3>
 <div>
   <form name="comments_form" action="{$url->getIndexUrl()}" method="post">
    <div style="width:180px; padding-right:15px; margin-right:15px; float:left; text-align:left; border-right:1px dotted #bbb;">

Modified: templates/trunk/kubrick/panel.template
===================================================================
--- templates/trunk/kubrick/panel.template	2005-04-03 23:06:44 UTC (rev 1691)
+++ templates/trunk/kubrick/panel.template	2005-04-04 15:22:37 UTC (rev 1692)
@@ -39,11 +39,21 @@
   	    </ul>
 	</li>
 	<li><h2>{$locale->tr("links")|capitalize}</h2>
-            <ul>
-               {foreach from=$articlecategories item=articleCategory}
-	       <li><a href="{$url->categoryLink($articleCategory)}">{$articleCategory->getName()} [{$articleCategory->getNumArticles()}]</a></li>
-	       {/foreach}
-    	    </ul>
+                {foreach name=linkcategories from=$mylinkscategories item=linkcategory}
+                {if $linkcategory->getNumLinks()>0}
+		{if $smarty.foreach.linkcategories.first}<ul>{/if}
+		<li>
+	        <b>{$linkcategory->getName()}</b>
+	        {foreach name=linkcategorylinks from=$linkcategory->getLinks() item=link}
+	        {if $smarty.foreach.linkcategorylinks.first}<ul>{/if}
+	        <li><a href="{$link->getUrl()}" 
+	        title="{$link->getDescription()}">{$link->getName()}</a></li>
+	        {if $smarty.foreach.linkcategorylinks.last}</ul>{/if}
+	        {/foreach}
+	        </li>
+	        {if $smarty.foreach.linkcategories.last}</ul>{/if}
+	        {/if}
+   		{/foreach} 
 	</li>
 	<li><h2>{$locale->tr("menu")|capitalize}</h2>
 	    <ul>

Modified: templates/trunk/kubrick/post.template
===================================================================
--- templates/trunk/kubrick/post.template	2005-04-03 23:06:44 UTC (rev 1691)
+++ templates/trunk/kubrick/post.template	2005-04-04 15:22:37 UTC (rev 1692)
@@ -9,7 +9,7 @@
   <div class="entry">
   	{$post->getText()}
   </div>
-  <p class="postmetadata"> Posted In 
+  <p class="postmetadata"> {$locale->tr("post")} {$locale->tr("in")} 
    {foreach name=categories from=$post->getCategories() item=postcategory}
    <a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
    {/foreach} |

Modified: templates/trunk/kubrick/postandcomments.template
===================================================================
--- templates/trunk/kubrick/postandcomments.template	2005-04-03 23:06:44 UTC (rev 1691)
+++ templates/trunk/kubrick/postandcomments.template	2005-04-04 15:22:37 UTC (rev 1692)
@@ -36,14 +36,7 @@
    <br />
   <p class="postmetadata alt">
    <small>
-    This entry was posted on {$locale->formatDate($postDate,"%d %B, %Y %H:%M")}
-    and file under
-      {foreach name=categories from=$post->getCategories() item=postcategory}
-      <a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
-      {/foreach}. 
-      You can follow any responses to this entry through the
-      <a href="{$url->postRssLink($post)}">RSS2.0</a> feed.
-      You can leave a <a href="{$url->postPermalink($post)}">Response</a>, or <a href="{$url->postTrackbackStatsLink($post)}">{$locale->tr("trackbacks")}</a> from your own site.
+   {include file="kubrick/postmetadata.inc"}
   </small> 
   </p>
   
@@ -60,7 +53,7 @@
 </div>
 
  <div>
-   <h3 id="comments">{$post->getTotalComments()} {$locale->tr("comments")}  {$locale->tr("and")} {$post->getNumTrackbacks()} {$locale->tr("trackbacks")} to "{$post->getTopic()}" </h3>
+   <h3 id="comments">{$post->getTotalComments()} {$locale->tr("comments")}  &amp; {$post->getNumTrackbacks()} {$locale->tr("trackbacks")} {$locale->tr("of")} "{$post->getTopic()}" </h3>
  {foreach from=$post->getComments() item=comment}
   <ol class="commentlist">
    <a name="{$comment->getId()}"></a><p>{$comment->getText()}</p>
@@ -79,7 +72,6 @@
  </div>
  {if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
   <div>
-   <div>{$locale->tr("add_comment")}</div>
      {include file="$blogtemplate/commentform.template"}
   </div>
  {/if}

Added: templates/trunk/kubrick/postmetadata.inc
===================================================================
--- templates/trunk/kubrick/postmetadata.inc	2005-04-03 23:06:44 UTC (rev 1691)
+++ templates/trunk/kubrick/postmetadata.inc	2005-04-04 15:22:37 UTC (rev 1692)
@@ -0,0 +1,8 @@
+      This entry was posted on {$locale->formatDate($postDate,"%d %B, %Y %H:%M")}
+      and file under
+      {foreach name=categories from=$post->getCategories() item=postcategory}
+      <a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+      {/foreach}. 
+      You can follow any responses to this entry through the
+      <a href="{$url->postRssLink($post)}">RSS2.0</a> feed.
+      You can leave a <a href="{$url->postPermalink($post)}">Response</a>, or <a href="{$url->postTrackbackStatsLink($post)}">{$locale->tr("trackbacks")}</a> from your own site.




More information about the pLog-svn mailing list