aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-28 20:17:07 -0800
committerfriendica <info@friendica.com>2013-11-28 20:17:07 -0800
commit7536ed6e449e0d405394155b50f5e1ce96fd7776 (patch)
tree31ca9f31003d049df3be83c367fe3f4f257bf5bb /boot.php
parent8cd9a2c3a944e804c72ef461df801116c6b44ac7 (diff)
downloadvolse-hubzilla-7536ed6e449e0d405394155b50f5e1ce96fd7776.tar.gz
volse-hubzilla-7536ed6e449e0d405394155b50f5e1ce96fd7776.tar.bz2
volse-hubzilla-7536ed6e449e0d405394155b50f5e1ce96fd7776.zip
allow themes to mess with the navbar contents without a custom template. It's done as a callback using a transient plugin hook.
For instance to get rid of the notifications link: insert_hook('nav','strip_notify'); function strip_notify($a,&$b) { unset($b['nav']['notifications']); }
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 53d756e93..dc9021745 100755
--- a/boot.php
+++ b/boot.php
@@ -2459,6 +2459,8 @@ function construct_page(&$a) {
* Build the page - now that we have all the components
*/
+ require_once(theme_include('theme_init.php'));
+
$installing = false;
if($a->module == 'setup')
@@ -2473,7 +2475,6 @@ function construct_page(&$a) {
}
}
- require_once(theme_include('theme_init.php'));
if(($p = theme_include(current_theme() . '.js')) != '')
head_add_js($p);