diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-04 21:05:54 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-04 21:05:54 +0000 |
commit | 7433b07dac28a87a8d22bd0dd5fa78effe333255 (patch) | |
tree | 76040c3b6de7f82688d9025cf2af88f19dbd804e /views/default/comments | |
parent | b2c08a52541a12050ae12bac2dbc8e1f0563c2b0 (diff) | |
download | elgg-7433b07dac28a87a8d22bd0dd5fa78effe333255.tar.gz elgg-7433b07dac28a87a8d22bd0dd5fa78effe333255.tar.bz2 |
welcome to the new media view - it is being used in the new latest comments module
git-svn-id: http://code.elgg.org/elgg/trunk@7530 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/comments')
-rw-r--r-- | views/default/comments/latest.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/comments/latest.php b/views/default/comments/latest.php new file mode 100644 index 000000000..f8e1af10f --- /dev/null +++ b/views/default/comments/latest.php @@ -0,0 +1,17 @@ +<?php +/** + * Latest comments on an entity + * + * @uses $vars['comments'] Array of comment objects + */ + +if (isset($vars['comments'])) { + echo '<ul class="elgg-latest-comments">'; + foreach ($vars['comments'] as $comment) { + $html = elgg_view_annotation($comment, false); + if ($html) { + echo "<li>$html</li>"; + } + } + echo '</ul>'; +}
\ No newline at end of file |