aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/commentwall/commentwall.php
blob: 9c1ff3fdb109494cff5d8dcfdeada7a48dba2103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Elgg Commentwall display page
 */
	 
// If there is any content to view, view it
if (is_array($vars['annotation']) && sizeof($vars['annotation']) > 0) {
    		
	//start the div which will wrap all the message board contents
	echo "<div id=\"messageboard_wrapper\">";
			
	//loop through all annotations and display
	foreach($vars['annotation'] as $content) {
		echo elgg_view("profile/commentwall/commentwall_content", array('annotation' => $content));
	}
			
	//close the wrapper div
	echo "</div>";
			
} else {
	echo "<div class='ContentWrapper'>" . elgg_echo("profile:commentwall:none") . "</div>";
}