From bb9475ef7ffc684697218886184fd97b23442d5d Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 24 May 2010 11:03:13 +0000 Subject: sitepages river tweak git-svn-id: http://code.elgg.org/elgg/trunk@6156 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/sitepages/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mod/sitepages/index.php') 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; -- cgit v1.2.3