summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-10-09 04:41:01 +0200
committerSem <sembrestels@riseup.net>2012-10-09 04:41:01 +0200
commit4ded39b120dc9f2829f87c6af132f1b2cc14ab7f (patch)
tree34a6f5a419da4628dfdf0c18a1acc64ae41f2787 /index.php
parent5727d85ced9ae87d010b47ac99aab8adcd686a2e (diff)
downloadsaravea_theme-4ded39b120dc9f2829f87c6af132f1b2cc14ab7f.tar.gz
saravea_theme-4ded39b120dc9f2829f87c6af132f1b2cc14ab7f.tar.bz2
Merged Call4Design.
Diffstat (limited to 'index.php')
-rw-r--r--index.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..0716540
--- /dev/null
+++ b/index.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Elgg index page for web-based applications
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+
+if (elgg_is_logged_in()) {
+ forward('activity');
+}
+
+elgg_load_css('n1:landing_page');
+
+$content = elgg_view('n1_theme/landing');
+$content .= elgg_view_title(elgg_echo('content:latest'));
+$content .= elgg_list_river();
+
+$login_box = elgg_view('core/account/login_box');
+
+$params = array(
+ 'content' => $content,
+ 'sidebar' => $login_box
+);
+$body = elgg_view_layout('one_sidebar', $params);
+echo elgg_view_page(null, $body);