aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments/latest.php
blob: c38b1f5c4b983a96dc9c43731285b26ca15fae07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Latest comments on an entity
 *
 * @uses $vars['comments']  Array of comment objects
 */

if (isset($vars['comments'])) {
	echo '<ul class="elgg-latest-comments elgg-list">';
	foreach ($vars['comments'] as $comment) {
		$html = elgg_view_annotation($comment, false);
		if ($html) {
			echo "<li>$html</li>";
		}
	}
	echo '</ul>';
}