mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
Display comments from the database.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<? 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 ? 'odd' : 'even' ?>">
|
||||
<p>
|
||||
<a href="#" class="gAuthor"><?= $comment->author ?></a>
|
||||
said <?= round((time() - $comment->datetime)/60) ?> minutes ago
|
||||
<span class="understate"><?= strftime('%c', $comment->datetime) ?></span>
|
||||
</p>
|
||||
<div>
|
||||
<?= $comment->text ?>
|
||||
</div>
|
||||
</li>
|
||||
<? endforeach; ?>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user