mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 13:10:48 -04:00
Initial add comment implementation.
This commit is contained in:
@@ -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; ?>
|
||||
|
||||
Reference in New Issue
Block a user