blob: 427fd92bf2e4ee362dd5f6b7f30a37d9780fd4f3 (
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
/**
 * Activity widget content view
 */
$num = (int) $vars['entity']->num_display;
$options = array(
	'limit' => $num,
	'pagination' => false,
);
if (elgg_in_context('profile')) {
	$options['subject_guid'] = elgg_get_page_owner_guid();
} else {
	if ($vars['entity']->content_type == 'friends') {
		$options['relationship_guid'] = elgg_get_logged_in_user_guid();
		$options['relationship'] = 'friend';
	}
}
$content = elgg_list_river($options);
if (!$content) {
	$content = elgg_echo('river:none');
}
echo $content;
 |