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']);
}
This commit is contained in:
friendica
2013-11-28 20:17:07 -08:00
parent 8cd9a2c3a9
commit 7536ed6e44
3 changed files with 42 additions and 5 deletions

View File

@@ -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);