summaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-15 02:16:34 +0200
committerSem <sembrestels@riseup.net>2012-08-15 02:16:34 +0200
commit9e2436181c785c741fb4705ee7b3c3069bf5f1c7 (patch)
tree7620463d53f94c3d6e8ff444e2ad7651bd828992 /start.php
parent405f0f8db9f72afed4c357a22c4dd99bea39c419 (diff)
downloadsaravea_theme-9e2436181c785c741fb4705ee7b3c3069bf5f1c7.tar.gz
saravea_theme-9e2436181c785c741fb4705ee7b3c3069bf5f1c7.tar.bz2
Added landing page.
Diffstat (limited to 'start.php')
-rw-r--r--start.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/start.php b/start.php
index 7346702..1a49da4 100644
--- a/start.php
+++ b/start.php
@@ -7,8 +7,16 @@ function n1_theme_init() {
$item = new ElggMenuItem('site_logo', elgg_get_site_entity()->name, elgg_get_site_url());
elgg_register_menu_item('topbar', $item);
elgg_register_plugin_hook_handler('register', 'menu:topbar', 'n1_theme_topbar_menu');
+
+ elgg_register_plugin_hook_handler('index', 'system', 'n1_theme_front_page');
+ elgg_extend_view('css', 'n1_theme/css');
}
function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){
//var_dump($returnvalue);exit();
}
+
+function n1_theme_front_page($hook, $type, $returnvalue, $params) {
+ include(elgg_get_plugins_path() . 'n1_theme/index.php');
+ return true;
+}