aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/groups/featured.php
blob: 50e473d1c7b064fffd642c0f5528884f50fa8ebf (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
<?php
/**
 * Featured groups
 *
 * @uses $vars['featured']
 *
 * @package ElggGroups
 */
	 
if ($vars['featured']) {
	
	$body = '';
	foreach ($vars['featured'] as $group) {
		$icon = elgg_view("groups/icon", array(
				'entity' => $group,
				'size' => 'tiny',
			));
		$body .= "<div class='featured_group'>".$icon."<p class='entity-title clearfix'><a href=\"" . $group->getUrl() . "\">" . $group->name . "</a></p>";
		$body .= "<p class='entity-subtext'>" . $group->briefdescription . "</p></div>";
	}

	echo elgg_view('layout/objects/module', array(
		'title' => elgg_echo("groups:featured"),
		'body' => $body,
		'class' => 'elgg-aside-module',
	));
}