aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/groups/featured.php
blob: 17d3894959dfd25aecdc1d4b6a1129c3c16ce109 (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
<?php

	/**
	 * This view will display featured groups - these are set by admin
	 **/
	 
	
?>
<div id="featured_groups">
<h3><?php echo elgg_echo("groups:featured"); ?></h3>

<?php
	if($vars['featured']){
		
		foreach($vars['featured'] as $group){
			$icon = elgg_view(
				"groups/icon", array(
									'entity' => $group,
									'size' => 'small',
								  )
				);
				
			echo "<div class=\"featured_group\">" . $icon . " " . $group->name . "<br />";
			echo $group->briefdescription . "</div>";
			
		}
	}
?>
</div>