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

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Apr 11 07:05:17 GMT 2005


Author: oscar
Date: 2005-04-11 07:05:16 +0000 (Mon, 11 Apr 2005)
New Revision: 1806

Modified:
   templates/trunk/kubrick/README.txt
   templates/trunk/kubrick/commentform.template
   templates/trunk/kubrick/panel.template
   templates/trunk/kubrick/postandcomments.template
Log:
updated version of the kubrick template


Modified: templates/trunk/kubrick/README.txt
===================================================================
--- templates/trunk/kubrick/README.txt	2005-04-11 03:01:54 UTC (rev 1805)
+++ templates/trunk/kubrick/README.txt	2005-04-11 07:05:16 UTC (rev 1806)
@@ -1,13 +1,30 @@
 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
+Email me at me at ahknight.net if you found any error doe this template
 
+====================================================================
 
+
 # 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
+# remove the <!-- and --> in panel.template if you wan to add a small box for self intro
+  <!--
+	<li><h2>{$locale->tr("about")}</h2>
+		Here is a section you can use to briefly talk about yourself or your site. Uncomment and delete this line to use.
+		<p>Your description here.</p>
+	</li>
+  --> 
+ 
+9 april 2005
+added "about me" section
+fix a bug where using theme editor copy this template
+fix the comment page for valid xhtml
+fix the total comment display even the post is close for comment
 
 4 april 2005
 fixed some locale issue

Modified: templates/trunk/kubrick/commentform.template
===================================================================
--- templates/trunk/kubrick/commentform.template	2005-04-11 03:01:54 UTC (rev 1805)
+++ templates/trunk/kubrick/commentform.template	2005-04-11 07:05:16 UTC (rev 1806)
@@ -1,29 +1,14 @@
-<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;">
-	<label for="subject">{$locale->tr("comment_topic")}:</label><br />
-	<input tabindex="1" id="subject" name="commentTopic" /><br /><br />
-	<label for="author">{$locale->tr("comment_username")}:</label><br />
-	<input tabindex="2" id="author" name="userName" /><br /><br />
-	<label for="email">{$locale->tr("comment_email")}:</label><br />
-	<input tabindex="3" id="email" name="userEmail" /><br /><br />
-	<label for="url">{$locale->tr("comment_url")}:</label><br />
-	<input tabindex="4" id="url" name="userUrl" /><br /><br />
-  </div>
-  <div>
-  <label for="text">{$locale->tr("add_comment")}:</label><br />
-  <div id="toolbar">
-   <img class="button" onMouseOver="mouseover(this);"  onMouseOut="mouseout(this);" 
-        onMouseDown="mousedown(this);" onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'b');" 
-        src="{$url->getTemplateFile("bold.gif")}" width="16" height="16" align="middle" alt="Bold" />
-   <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onMouseDown="mousedown(this);" 
-        onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'i');" src="{$url->getTemplateFile("italic.gif")}" 
-        width="16" height="16" align="middle" alt="Italic" />
-   <img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onmousedown="mousedown(this);" 
-        onmouseup="mouseup(this);" onclick="insertLink(document.comments_form.commentText);" src="{$url->getTemplateFile("link.gif")}"
-        width="16" height="16" align="middle"  alt="Link" />
-  </div>  
+<div class="postinput">
+<form action="{$url->getIndexUrl()}" method="post">   
+        <div>
+	<input tabindex="1" id="subject" name="commentTopic" />
+	<label for="subject"><small>{$locale->tr("comment_topic")}</small></label><br /><br />
+	<input tabindex="2" id="author" name="userName" />
+	<label for="author"><small>{$locale->tr("comment_username")}</small></label><br /><br />
+	<input tabindex="3" id="email" name="userEmail" />
+	<label for="email"><small>{$locale->tr("comment_email")}</small></label><br /><br />
+	<input tabindex="4" id="url" name="userUrl" />
+	<label for="url"><small>{$locale->tr("comment_url")}</small></label><br /><br />
   <textarea tabindex="5" id="text" name="commentText" rows="10" cols="50"></textarea><br /><br />
   <input style="font-weight: bold;" type="submit" name="post" value="&nbsp;{$locale->tr("comment_send")}&nbsp;" /><br /><br />
   <input type="hidden" name="op" value="AddComment"/>
@@ -33,3 +18,7 @@
   </div>
   </form>
 </div>
+
+
+
+

Modified: templates/trunk/kubrick/panel.template
===================================================================
--- templates/trunk/kubrick/panel.template	2005-04-11 03:01:54 UTC (rev 1805)
+++ templates/trunk/kubrick/panel.template	2005-04-11 07:05:16 UTC (rev 1806)
@@ -1,5 +1,12 @@
 <div id="sidebar">
 <ul>
+	
+	<!--
+	<li><h2>{$locale->tr("about")}</h2>
+		Here is a section you can use to briefly talk about yourself or your site. Uncomment and delete this line to use.
+		<p>Your description here.</p>
+	</li>
+        --> 
 	<li>
 		<form method="post" action="{$url->getIndexUrl()}">
 		<div>

Modified: templates/trunk/kubrick/postandcomments.template
===================================================================
--- templates/trunk/kubrick/postandcomments.template	2005-04-11 03:01:54 UTC (rev 1805)
+++ templates/trunk/kubrick/postandcomments.template	2005-04-11 07:05:16 UTC (rev 1806)
@@ -36,7 +36,7 @@
    <br />
   <p class="postmetadata alt">
    <small>
-   {include file="kubrick/postmetadata.inc"}
+   {include file="$blogtemplate/postmetadata.inc"}
   </small> 
   </p>
   
@@ -53,7 +53,8 @@
 </div>
 
  <div>
-   <h3 id="comments">{$post->getTotalComments()} {$locale->tr("comments")}  &amp; {$post->getNumTrackbacks()} {$locale->tr("trackbacks")} {$locale->tr("of")} "{$post->getTopic()}" </h3>
+ {if $post->getComments()}
+ <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>
@@ -69,6 +70,8 @@
    </span>
   </ol>
  {/foreach}
+ {/if}
+ 
  </div>
  {if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
   <div>




More information about the pLog-svn mailing list