diff options
author | friendica <info@friendica.com> | 2013-11-28 20:17:07 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-28 20:17:07 -0800 |
commit | 7536ed6e449e0d405394155b50f5e1ce96fd7776 (patch) | |
tree | 31ca9f31003d049df3be83c367fe3f4f257bf5bb /boot.php | |
parent | 8cd9a2c3a944e804c72ef461df801116c6b44ac7 (diff) | |
download | volse-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-x | boot.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |