diff options
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> |
