aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/tabs/activity.php
blob: ccd2a39159be8a201903058f7441e436b90e99a0 (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
<?php
/**
 * Elgg user display (details)
 * @uses $vars['entity'] The user entity
 *
 * @todo this needs to recieve a list of activity or HTML in $vars that's generated by a plugin hook.
 * None of this logic should be here.
 */
$limit = 20;

if (is_plugin_enabled('thewire')) {
	// users last status msg, if they posted one
	echo elgg_view("profile/status", array("entity" => $vars['entity']));
}

if (is_plugin_enabled('conversations')) {
	// users last status msg, if they posted one
	echo elgg_view("profile/status", array("entity" => $vars['entity']));
}

if (is_plugin_enabled('riverdashboard')) {
	//select the correct river
	if (get_plugin_setting('activitytype', 'riverdashboard') == 'classic') {
		echo elgg_view_river_items($vars['entity']->getGuid(), 0, '', '', '', '', $limit,0,0,false,true);
	} else {
		echo elgg_view_river_items($vars['entity']->getGuid(), 0, '', '', '', '', $limit,0,0,false,false);
		echo elgg_view('riverdashboard/js');
	}
} else {
	// @todo this should not be here.
	echo "Riverdashboard not loaded";
}