summaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-21 04:53:27 +0000
committerroot <root@migration.vz.lan>2012-10-21 04:53:45 +0000
commitddc8e975c3bbbd535fcaa1d2914e4f64ec270dde (patch)
tree3313dfee939342cb5024025c6f013e2357f46c0c /start.php
parent783e0fe18980e3a428b3eef17817ec64e22b6c2c (diff)
downloadsaravea_theme-ddc8e975c3bbbd535fcaa1d2914e4f64ec270dde.tar.gz
saravea_theme-ddc8e975c3bbbd535fcaa1d2914e4f64ec270dde.tar.bz2
change theme to extend front page instead of redeclaring it.
Diffstat (limited to 'start.php')
-rw-r--r--start.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/start.php b/start.php
index 7766f5f..6260075 100644
--- a/start.php
+++ b/start.php
@@ -8,13 +8,12 @@ function n1_theme_init() {
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_register_simplecache_view('n1_theme/landing');
elgg_register_css('n1:landing_page', elgg_get_simplecache_url('css', 'n1_theme/landing'));
elgg_extend_view('css/elgg', 'n1_theme/css');
elgg_extend_view('js/elgg', 'n1_theme/js');
+ elgg_extend_view('page/elements/title', 'n1_theme/header', 0);
if (elgg_is_active_plugin('pages')) {
// pages icon url override
@@ -26,11 +25,6 @@ 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;
-}
-
/**
* Override the default entity icon for pages and pads
*