aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.php b/index.php
index c559df5b3..9f256c07e 100644
--- a/index.php
+++ b/index.php
@@ -30,8 +30,14 @@ if (!trigger_plugin_hook('index', 'system', null, FALSE)) {
}
*/
+ //Load the front page
+ $title = elgg_view_title(elgg_echo('content:latest'));
+ set_context('search');
+ $offset = (int)get_input('offset', 0);
+ $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;
- $content = elgg_view_layout('one_column_with_sidebar', $title, elgg_view('account/forms/login'));
+ $content .= elgg_view_layout('one_column_with_sidebar', $title, elgg_view('account/forms/login'));
page_draw(null, $content);
}