diff options
| author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-11 20:54:12 +0000 |
|---|---|---|
| committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-11 20:54:12 +0000 |
| commit | 752459c64cafec0f003c4b8531201c58a5fecad7 (patch) | |
| tree | 5d608658a9102d1c5f15d47e8e8fd422ac9b427d /modules/comment/views/comment_list.html.php | |
| parent | dd9058ada40b3afd47d3cbf800b78862bc44bdb6 (diff) | |
Display comments from the database.
Diffstat (limited to 'modules/comment/views/comment_list.html.php')
| -rw-r--r-- | modules/comment/views/comment_list.html.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/comment/views/comment_list.html.php b/modules/comment/views/comment_list.html.php new file mode 100644 index 00000000..2196af1c --- /dev/null +++ b/modules/comment/views/comment_list.html.php @@ -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> |
