Initial add comment implementation.

This commit is contained in:
Jozef Selesi
2008-11-15 16:52:23 +00:00
parent 66bd9d85b3
commit f9eaa8c220
7 changed files with 162 additions and 39 deletions
+12 -14
View File
@@ -1,15 +1,13 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<ul id="gCommentThread">
<? foreach (array_reverse($comments) as $index => $comment): ?>
<li id="gComment-<?= $index; ?>" class="gComment <?= $index % 2 ? 'gOdd' : 'gEven' ?>">
<p>
<a href="#" class="gAuthor"><?= $comment->author ?></a>
<?= comment::format_elapsed_time($comment->datetime) ?>,
<span class="gUnderstate"><?= strftime('%c', $comment->datetime) ?></span>
</p>
<div>
<?= $comment->text ?>
</div>
</li>
<? endforeach; ?>
</ul>
<? foreach (array_reverse($comments) as $index => $comment): ?>
<li id="gComment-<?= $index; ?>" class="gComment <?= $index % 2 ? 'gOdd' : 'gEven' ?>">
<p>
<a href="#" class="gAuthor"><?= $comment->author ?></a>
<?= comment::format_elapsed_time($comment->datetime) ?>,
<span class="gUnderstate"><?= strftime('%c', $comment->datetime) ?></span>
</p>
<div>
<?= $comment->text ?>
</div>
</li>
<? endforeach; ?>