blob: 82adf2a4acdcba7ca84e3dcc9b6920696a858865 (
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
/**
* Members index
*
*/
$num_members = get_number_users();
$title = elgg_echo('members');
$options = array('type' => 'user', 'full_view' => false);
switch ($vars['page']) {
case 'popular':
$options['relationship'] = 'friend';
$options['inverse_relationship'] = false;
$content = elgg_list_entities_from_relationship_count($options);
break;
case 'online':
$content = get_online_users();
break;
case 'newest':
default:
$content = elgg_list_entities($options);
break;
}
$params = array(
'content' => $content,
'sidebar' => elgg_view('core/members/sidebar'),
'title' => $title . " ($num_members)",
'buttons' => '',
'filter_override' => elgg_view('core/members/nav', array('selected' => $vars['page'])),
);
$body = elgg_view_layout('content', $params);
echo elgg_view_page($title, $body);
|