changeset 86:ad6136b094b8

Updated.
author Steve Kemp <steve@steve.org.uk>
date Wed, 12 Dec 2007 14:55:51 +0000
parents f3b73f970dd2
children e8bd57e2e40b
files themes/blocky/comment-form.inc themes/blocky/comment-loop.inc themes/blocky/entry.template
diffstat 3 files changed, 31 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/blocky/comment-form.inc	Wed Dec 12 14:55:51 2007 +0000
@@ -0,0 +1,17 @@
+<!-- tmpl_if name='comments_enabled' -->
+<h3>Add A Comment</h3>
+<blockquote>
+<form action="/cgi-bin/comments.cgi" method="post">
+<table>
+<tr><td>Your Name</td>
+    <td><input type="text" size="55" name="name"></td></tr>
+<tr><td>Your Name</td>
+    <td><input type="text" size="55" name="name"></td></tr>
+<tr><td colspan="2">Your Comment<br />
+<textarea name="body" rows="10" cols="60">
+</textarea>
+<tr><td></td><td><input type="submit"></td></tr>
+</table>
+</form>
+</blockquote>
+<!-- /tmpl_if -->
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/blocky/comment-loop.inc	Wed Dec 12 14:55:51 2007 +0000
@@ -0,0 +1,12 @@
+<!-- tmpl_if name='comments' -->
+ <h3>Comments On This Entry</h3>
+ <blockquote>
+ <!-- tmpl_loop name='comments' -->
+  <div class="entry">
+  <div class="title"><!-- tmpl_var name='name' --></div>
+  <div class="date"><!-- tmpl_var name='date' --></div>
+  <div class="body"><!-- tmpl_var name='body' --></div>
+  </div>
+ <!-- /tmpl_loop -->
+ </blockquote>
+<!-- /tmpl_if -->
--- a/themes/blocky/entry.template	Wed Dec 12 14:55:19 2007 +0000
+++ b/themes/blocky/entry.template	Wed Dec 12 14:55:51 2007 +0000
@@ -35,18 +35,8 @@
   </td><td align="right"><!-- tmpl_var name='date' --></td></tr></table>
  </fieldset>
 
-<!-- tmpl_if name='comments' -->
- <h3>Comments On This Entry</h3>
- <blockquote>
- <!-- tmpl_loop name='comments' -->
-  <div class="entry">
-  <div class="title"><!-- tmpl_var name='name' --></div>
-  <div class="date"><!-- tmpl_var name='date' --></div>
-  <div class="body"><!-- tmpl_var name='body' --></div>
-  </div>
- <!-- /tmpl_loop -->
- </blockquote>
-<!-- /tmpl_if -->
+<!-- tmpl_include name="comment-loop.inc" -->
+<!-- tmpl_include name="comment-form.inc" -->
 
 </td>
 <td width="20%" valign="top">