mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
remove javascript to set selectect nav item. enanche img template prefetch ignoring
This commit is contained in:
parent
bdf42473a0
commit
07b6c868b3
16 changed files with 58 additions and 29 deletions
|
@ -157,8 +157,28 @@ function nav(&$a) {
|
|||
'$banner' => $banner,
|
||||
'$emptynotifications' => t('Nothing new here'),
|
||||
'$userinfo' => $userinfo,
|
||||
'$sel' => $a->nav_sel,
|
||||
));
|
||||
|
||||
call_hooks('page_header', $a->page['nav']);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Set a menu item in navbar as selected
|
||||
*
|
||||
*/
|
||||
function nav_set_selected($item){
|
||||
$a = get_app();
|
||||
$a->nav_sel = array(
|
||||
'community' => null,
|
||||
'network' => null,
|
||||
'home' => null,
|
||||
'profiles' => null,
|
||||
'notifications' => null,
|
||||
'messages' => null,
|
||||
'directyory' => null,
|
||||
'settings' => null,
|
||||
'contacts' => null,
|
||||
);
|
||||
$a->nav_sel[$item] = 'selected';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue