blob: 46dc53abffe20afc004727b6e8e07687f0140707 (
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
/**
* Featured groups
*
* @package ElggGroups
*/
$featured_groups = elgg_get_entities_from_metadata(array(
'metadata_name' => 'featured_group',
'metadata_value' => 'yes',
'types' => 'group',
'limit' => 10,
));
if ($featured_groups) {
elgg_push_context('widgets');
$body = '';
foreach ($featured_groups as $group) {
$body .= elgg_view_entity($group, false);
}
elgg_pop_context();
echo elgg_view('layout/objects/module', array(
'title' => elgg_echo("groups:featured"),
'body' => $body,
'class' => 'elgg-module-aside',
));
}
|