summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-12-15 21:44:19 +0100
committerSem <sembrestels@riseup.net>2011-12-15 21:44:19 +0100
commit19f08612ecf97e509da1428b912584c05a3326c8 (patch)
treee186f91e49106b7142c3edd6c3fd1e9dca93c7e6
parent7e514586d72eb0cc4503fcffa96d6d4a9ab8f956 (diff)
downloadsaravea_theme-19f08612ecf97e509da1428b912584c05a3326c8.tar.gz
saravea_theme-19f08612ecf97e509da1428b912584c05a3326c8.tar.bz2
Overrided elgg logo by site name.
-rw-r--r--start.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/start.php b/start.php
index f907d17..7346702 100644
--- a/start.php
+++ b/start.php
@@ -3,4 +3,12 @@
elgg_register_event_handler('init', 'system', 'n1_theme_init');
function n1_theme_init() {
+ elgg_unregister_menu_item('topbar','elgg_logo');
+ $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');
+}
+
+function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){
+ //var_dump($returnvalue);exit();
}