[pLog-svn] r4657 - templates/branches/lifetype-1.2/greenmarinee
reto at devel.lifetype.net
reto at devel.lifetype.net
Thu Feb 1 17:10:05 EST 2007
Author: reto
Date: 2007-02-01 17:10:05 -0500 (Thu, 01 Feb 2007)
New Revision: 4657
Added:
templates/branches/lifetype-1.2/greenmarinee/commentform.template
Modified:
templates/branches/lifetype-1.2/greenmarinee/main.template
templates/branches/lifetype-1.2/greenmarinee/post.template
templates/branches/lifetype-1.2/greenmarinee/postandcomments.template
Log:
ported to work with 1.2 paging and form authentication (no plugins)
Added: templates/branches/lifetype-1.2/greenmarinee/commentform.template
===================================================================
--- templates/branches/lifetype-1.2/greenmarinee/commentform.template (rev 0)
+++ templates/branches/lifetype-1.2/greenmarinee/commentform.template 2007-02-01 22:10:05 UTC (rev 4657)
@@ -0,0 +1,28 @@
+<div class="postinput">
+ <form action="{$url->getIndexUrl()}" method="post">
+ <div>
+{dynamic}
+ <input tabindex="1" id="subject" name="commentTopic" value="{$topic}" />
+ <label for="subject"><small>{$locale->tr("comment_topic")}</small></label><br /><br />
+ {if $authuser}
+ <input tabindex="2" id="author" name="userName" value="{$authuser->getUsername()}" readonly="readonly" />
+ <label for="author"><small>{$locale->tr("comment_username")} (<b>{$locale->tr("form_authenticated")}</b>)</small></label><br /><br />
+ {else}
+ <input tabindex="2" id="author" name="userName" value="{$authuser->getUsername()}" />
+ <label for="author"><small>{$locale->tr("comment_username")}</small></label><br /><br />
+ {/if}
+ <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 />
+{/dynamic}
+ <textarea tabindex="5" id="text" name="commentText" rows="10" cols="50"></textarea><br /><br />
+ <input style="font-weight: bold;" type="submit" name="post" value=" {$locale->tr("comment_send")} " /><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/greenmarinee/main.template
===================================================================
--- templates/branches/lifetype-1.2/greenmarinee/main.template 2007-02-01 21:31:41 UTC (rev 4656)
+++ templates/branches/lifetype-1.2/greenmarinee/main.template 2007-02-01 22:10:05 UTC (rev 4657)
@@ -1,4 +1,4 @@
-
+{assign var="OnMainPage" value=1}
{include file="$blogtemplate/header.template"}
{include file="$blogtemplate/panel.template"}
<div id="content">
Modified: templates/branches/lifetype-1.2/greenmarinee/post.template
===================================================================
--- templates/branches/lifetype-1.2/greenmarinee/post.template 2007-02-01 21:31:41 UTC (rev 4656)
+++ templates/branches/lifetype-1.2/greenmarinee/post.template 2007-02-01 22:10:05 UTC (rev 4657)
@@ -1,5 +1,7 @@
{assign var="postDate" value=$post->getDateObject()}
{assign var="postOwner" value=$post->getUserInfo()}
+{assign var=nextpost value=$post->getNextArticle()}
+{assign var=prevpost value=$post->getPrevArticle()}
<div>
<h2>{$post->getTopic()}</h2>
<div class="meta">{$locale->tr("posted_by")} {$postOwner->getUsername()} {$locale->tr("in")}
@@ -17,6 +19,13 @@
<a href="{$url->postPermalink($post)}">{$locale->tr("permalink")}</a> /
<a href="{$url->postPermalink($post)}">({$post->getTotalComments()}) {$locale->tr("comments")} </a> /
<a href="{$url->postTrackbackStatsLink($post)}">({$post->getTotalTrackbacks()}) {$locale->tr("trackbacks")} </a>
- <?php echo "$url" ?>
+ {if !$OnMainPage}
+ {if $nextpost == true}
+ / <a href="{$url->postPermalink($nextpost)}" title="{$locale->tr("next_post")}: {$nextpost->getTopic()}">{$locale->tr("next_post")}</a>
+ {/if}
+ {if $prevpost == true}
+ / <a href="{$url->postPermalink($prevpost)}" title="{$locale->tr("previous_post")}: {$prevpost->getTopic()}">{$locale->tr("previous_post")}</a>
+ {/if}
+ {/if}
</div>
-</div>
\ No newline at end of file
+</div>
Modified: templates/branches/lifetype-1.2/greenmarinee/postandcomments.template
===================================================================
--- templates/branches/lifetype-1.2/greenmarinee/postandcomments.template 2007-02-01 21:31:41 UTC (rev 4656)
+++ templates/branches/lifetype-1.2/greenmarinee/postandcomments.template 2007-02-01 22:10:05 UTC (rev 4657)
@@ -11,9 +11,10 @@
{include file="$blogtemplate/post.template"}
<div>
+
{if $post->getComments()}
<ol class="commentlist">
- {foreach from=$post->getComments() item=comment}
+ {foreach from=$comments item=comment}
<li class={$oddcomment}>
<div class="comment_author">
{if $comment->getUserUrl() != ""}
@@ -36,8 +37,10 @@
{/foreach}
</ol>
{/if}
+ {pager style="links"}
</div>
+
{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
<div>
<div>{$locale->tr("add_comment")}</div>
More information about the pLog-svn
mailing list