[pLog-svn] r5097 - plog/branches/lifetype-1.2/templates/standard
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Mar 15 15:48:56 EDT 2007
Author: oscar
Date: 2007-03-15 15:48:56 -0400 (Thu, 15 Mar 2007)
New Revision: 5097
Modified:
plog/branches/lifetype-1.2/templates/standard/postandcomments.template
Log:
Please be careful when checking stuff after a mass replace, this broke a template that was working perfectly and now I have to check every single one of the files to make sure nothing else was broken!!!
Modified: plog/branches/lifetype-1.2/templates/standard/postandcomments.template
===================================================================
--- plog/branches/lifetype-1.2/templates/standard/postandcomments.template 2007-03-15 19:29:43 UTC (rev 5096)
+++ plog/branches/lifetype-1.2/templates/standard/postandcomments.template 2007-03-15 19:48:56 UTC (rev 5097)
@@ -8,68 +8,33 @@
<!-- {$url->postTrackbackLink($post)} -->
{include file="$blogtemplate/post.template"}
-
-{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1 || $comments }
-<div id="loop_comments">
- <h2 id="comments">{$locale->tr("comments")|capitalize}</h2>
- <a name="comments"></a>
+{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1 || $comments }<h2 id="comments">{$locale->tr("comments")|capitalize}</h2>
{/if}
-
{pager style="links"}
-{assign var=counter value=0}
-{foreach from=$comments item=comment}
-{assign var="postDate" value=$comment->getTimestamp()}
-{assign var="counter" value="`$counter+1`"}
- <a name="comment-{$comment->getId()}"></a>
- <div id="comment_{$comment->getId()}" class="comment">
- <dl class="metadata reduced">
- {if $comment->IsPosterAuthenticated()}
- {assign var=poster value=$comment->getUser()}
- {if $poster->hasPicture()}
- {assign var=posterimg value=$poster->getPicture()}
- {assign var=commenter value=$comment->getUser()}
- <dt class="comment_number gravatar">{$commenter->getUserName()}</dt>
- <dd class="comment_number">
- <img class="gravatar" border="0" src="{$posterimg->getPreviewLink()}" alt="{$commenter->getUserName()}" />
- </dd>
- {/if}
- {/if}
- <dt class="comment_number">Comment Number:</dt>
- <dd class="comment_number">{$counter}</dd>
- <?php endif; ?>
-
- <dt class="writer">Title:</dt>
- <dd class="writer">
- {if $comment->getTopic() != null}
- {$comment->getTopic()|strip_tags}
- {else}
- Re: <em>{$post->getTopic()|strip_tags}</em>
- {/if}
- </dd>
-
- <dt class="writer">Written by:</dt>
- <dd class="writer">
- {if $comment->getUserUrl() != ""}
- <a href="{$comment->getUserUrl()}">{$comment->getUsername()}</a>
- {else}
- {$comment->getUsername()}
- {/if}<br />
- </dd>
+ {foreach from=$comments item=comment}
+<div class="comment">
+<h3 class="commentheader">{if $comment->getTopic() != null} {$comment->getTopic()|strip_tags}{else}Re: <em>{$post->getTopic()|strip_tags}</em>{/if}</h3>
- <dt class="timedate">Posted on:</dt>
- <dd class="timedate">{$locale->formatDate($postDate, "%d/%m/%Y, %H:%M")}</dd>
- </dl>
- <div class="content">
- {$comment->getText()}
- </div>
- </div>
-{/foreach}
-</div>
-<br class="clear" />
+<p class="commentposterinfo">
+ {assign var="postDate" value=$comment->getTimestamp()}
+ {if $comment->getUserUrl() != ""}<a href="{$comment->getUserUrl()}">{$comment->getUsername()}</a>
+ {else}
+ {$comment->getUsername()}
+ {/if} | {$locale->formatDate($postDate, "%d/%m/%Y, %H:%M")}
+</p>
-<script language="JavaScript" type="text/javascript" src="{$url->getTemplateFile("/assets/js/form_comments.js")}"></script>
-
-
-
+<div class="commenttext">
+{if $comment->IsPosterAuthenticated()}
+ {assign var=poster value=$comment->getUser()}
+ {if $poster->hasPicture()}
+ {assign var=posterimg value=$poster->getPicture()}
+ {assign var=commenter value=$comment->getUser()}
+ <img src="{$posterimg->getPreviewLink()}" alt="{$commenter->getUserName()}" />
+ {/if}
+{/if}
+{$comment->getText()}
+</div>
+</div>
+ {/foreach}
{include file="$misctemplatepath/commentform.template"}
-{include file="$blogtemplate/footer.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file
More information about the pLog-svn
mailing list