[pLog-svn] r4662 - templates/branches/lifetype-1.2/unported/SimpleRules

reto at devel.lifetype.net reto at devel.lifetype.net
Thu Feb 1 18:15:49 EST 2007


Author: reto
Date: 2007-02-01 18:15:45 -0500 (Thu, 01 Feb 2007)
New Revision: 4662

Added:
   templates/branches/lifetype-1.2/unported/SimpleRules/commentform.template
Modified:
   templates/branches/lifetype-1.2/unported/SimpleRules/commentarticle.template
   templates/branches/lifetype-1.2/unported/SimpleRules/postandcomments.template
Log:
ported SimpleRules


Modified: templates/branches/lifetype-1.2/unported/SimpleRules/commentarticle.template
===================================================================
--- templates/branches/lifetype-1.2/unported/SimpleRules/commentarticle.template	2007-02-01 23:05:18 UTC (rev 4661)
+++ templates/branches/lifetype-1.2/unported/SimpleRules/commentarticle.template	2007-02-01 23:15:45 UTC (rev 4662)
@@ -4,4 +4,4 @@
   <div class="comments-head">Kommentar schreiben</div>
   {include file="$blogtemplate/commentform.template"}
  {/if}
-{include file="$blogtemplate/footer.template"}
+{include file="$blogtemplate/footer.template"}

Added: templates/branches/lifetype-1.2/unported/SimpleRules/commentform.template
===================================================================
--- templates/branches/lifetype-1.2/unported/SimpleRules/commentform.template	                        (rev 0)
+++ templates/branches/lifetype-1.2/unported/SimpleRules/commentform.template	2007-02-01 23:15:45 UTC (rev 4662)
@@ -0,0 +1,36 @@
+
+<h3 id="respond">{$locale->tr("add_comment")}</h3>
+<div class="commentBox">
+<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;">
+{dynamic}
+<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 />
+{if $authuser}
+	{$authuser->getUsername()} (<b>{$locale->tr("form_authenticated")}</b>)<br />
+	<input type="hidden" name="userName" id="userName" value="{if $authuser}{$authuser->getUsername()}{/if}" />
+	{else}
+    <input tabindex="2" id="author" name="userName" /><br /><br />
+{/if}
+<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 />
+{/dynamic}
+</div>
+<div>
+<div id="toolbar">
+Hey, why don't you leave a Comment?<br />
+<acronym title="Hypertext Markup Language" xml:lang="en" lang="en">HTML</acronym> is allowed.
+</div>
+<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"/>
+<input type="hidden" name="articleId" value="{$post->getId()}"/>
+<input type="hidden" name="blogId" value="{$blog->getId()}"/>
+<input type="hidden" name="parentId" value="{$parentId}"/>
+</div>
+</form>
+</div>
+

Modified: templates/branches/lifetype-1.2/unported/SimpleRules/postandcomments.template
===================================================================
--- templates/branches/lifetype-1.2/unported/SimpleRules/postandcomments.template	2007-02-01 23:05:18 UTC (rev 4661)
+++ templates/branches/lifetype-1.2/unported/SimpleRules/postandcomments.template	2007-02-01 23:15:45 UTC (rev 4662)
@@ -42,8 +42,10 @@
 
 <div>
 <h3 id="comments">{$post->getTotalComments()} {$locale->tr("comments")}  and {$post->getTotalTrackbacks()} {$locale->tr("trackbacks")} - "{$post->getTopic()}" </h3>
+ {pager style="links"}
 {foreach from=$post->getComments() item=comment}
-<br />
+<br />
+
 <ol class="commentlist">
 {if $gravatar}
 {if $gravatar->isEnabled()}
@@ -63,7 +65,8 @@
 am {$locale->formatDate($commentDate, "%d %b %Y, %H:%M")}
 </span>
 </ol>
-{/foreach}
+{/foreach}
+ {pager style="links"}
 </div>
 {if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
 <div>
@@ -72,4 +75,4 @@
 </div>
 {/if}
 </div>
-{include file="$blogtemplate/footer.template"}
\ No newline at end of file
+{include file="$blogtemplate/footer.template"}



More information about the pLog-svn mailing list