page,'nav')))
$a->page['nav'] = '';
$a->page['nav'] .= '
' ;
$a->page['nav'] .= '' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'//') + 2 ) . '
';
if(local_user()) {
$a->page['nav'] .= '' . t('Logout') . "\r\n";
}
else {
$a->page['nav'] .= '' . t('Login') . "\r\n";
}
$a->page['nav'] .= "\r\n";
// This should take you home from a remote profile connection
$homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : '');
if(($a->module != 'home') && (! (local_user())))
$a->page['nav'] .= '' . t('Home') . "\r\n";
if(($a->config['register_policy'] == REGISTER_OPEN) && (! local_user()) && (! remote_user()))
$a->page['nav'] .= ''
. t('Register') . "\r\n";
$a->page['nav'] .= '' . t('Search') . "\r\n";
$a->page['nav'] .= '' . t('Directory') . "\r\n";
if(x($_SESSION,'uid')) {
$a->page['nav'] .= '' . t('Network')
. '' . "\r\n";
$a->page['nav'] .= ''
. t('Home') . '' . "\r\n";
// only show friend requests for normal pages. Other page types have automatic friendship.
if($_SESSION['page_flags'] == PAGE_NORMAL) {
$a->page['nav'] .= '' . t('Notifications')
. '' . "\r\n";
}
$a->page['nav'] .= '' . t('Messages')
. '' . "\r\n";
$a->page['nav'] .= '' . t('Settings') . "\r\n";
$a->page['nav'] .= '' . t('Profiles') . "\r\n";
$a->page['nav'] .= '' . t('Contacts') . "\r\n";
}
$a->page['nav'] .= "\r\n\r\n";
$banner = get_config('system','banner');
if($banner === false)
$banner .= 'Friendika';
$a->page['nav'] .= '' . $banner . '';
call_hooks('page_header', $a->page['nav']);