aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views/default/messageboard/messageboard.php
blob: bb563d7fb7677ef0c2ea606d6fd09e6f4c6d8e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

    /**
	 * Elgg Message board display page
	 * 
	 * @package ElggMessageBoard
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd <info@elgg.com>
	 * @copyright Curverider Ltd 2008-2010
	 * @link http://elgg.com/
	 */
	 

	 // 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("messageboard/messageboard_content", array('annotation' => $content));
				
			}
			
			//close the wrapper div
			echo "</div>";
			
		} else {
    		
    		echo "<div class='contentWrapper'>" . elgg_echo("messageboard:none") . "</div>";
    		
		}
			
	 
?>