aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments/latest.php
blob: f8e1af10f8f0be009d9f253af4905df4f207f48e (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">';
	foreach ($vars['comments'] as $comment) {
		$html = elgg_view_annotation($comment, false);
		if ($html) {
			echo "<li>$html</li>";
		}
	}
	echo '</ul>';
}