aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/tabs/activity.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 00:59:12 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 00:59:12 +0000
commitfea009129f49f4f8d51654ceb569aae04387077b (patch)
treeb64246b0c56c43a02b39fc5f62d53d01043e4d0a /mod/profile/views/default/profile/tabs/activity.php
parent1bd7be96c93688cccfb994c4ff3f5bdc5a320a37 (diff)
downloadelgg-fea009129f49f4f8d51654ceb569aae04387077b.tar.gz
elgg-fea009129f49f4f8d51654ceb569aae04387077b.tar.bz2
more profile clean up
git-svn-id: http://code.elgg.org/elgg/trunk@7675 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default/profile/tabs/activity.php')
-rwxr-xr-xmod/profile/views/default/profile/tabs/activity.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/tabs/activity.php b/mod/profile/views/default/profile/tabs/activity.php
new file mode 100755
index 000000000..ccd2a3915
--- /dev/null
+++ b/mod/profile/views/default/profile/tabs/activity.php
@@ -0,0 +1,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";
+} \ No newline at end of file