diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 11:03:13 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-24 11:03:13 +0000 |
commit | bb9475ef7ffc684697218886184fd97b23442d5d (patch) | |
tree | 1a3c1013124250f859709114cded3bbb87cd9dd5 /mod/sitepages | |
parent | e19cfa41887be92952358cf6ba6ee4a2a954a4c2 (diff) | |
download | elgg-bb9475ef7ffc684697218886184fd97b23442d5d.tar.gz elgg-bb9475ef7ffc684697218886184fd97b23442d5d.tar.bz2 |
sitepages river tweak
git-svn-id: http://code.elgg.org/elgg/trunk@6156 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages')
-rw-r--r-- | mod/sitepages/index.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/sitepages/index.php b/mod/sitepages/index.php index 2a714926a..ff21ec97f 100644 --- a/mod/sitepages/index.php +++ b/mod/sitepages/index.php @@ -15,10 +15,12 @@ $content = elgg_view('sitepages/welcome'); $content .= elgg_view_title(elgg_echo('content:latest'));
set_context('search');
$offset = (int)get_input('offset', 0);
-if(is_plugin_enabled('riverdashboard'))
- $content .= elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);
-else
+if(is_plugin_enabled('riverdashboard')){
+ $items = elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);
+ $content .= elgg_view('riverdashboard/container', array('body' => $items . elgg_view('riverdashboard/js')));
+}else{
$content .= elgg_list_registered_entities(array('limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'allowed_types' => array('object','group')));
+}
set_context('main');
global $autofeed;
$autofeed = FALSE;
|