aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-04 21:05:54 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-04 21:05:54 +0000
commit7433b07dac28a87a8d22bd0dd5fa78effe333255 (patch)
tree76040c3b6de7f82688d9025cf2af88f19dbd804e /views/default/comments
parentb2c08a52541a12050ae12bac2dbc8e1f0563c2b0 (diff)
downloadelgg-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.php17
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