page,'nav'))) $a->page['nav'] = ''; /** * Placeholder div for popup panel */ $a->page['nav'] .= '' ; $a->page['nav'] .= lang_selector(); /** * * Our network is distributed, and as you visit friends some of the * sites look exactly the same - it isn't always easy to know where you are. * Display the current site location as a navigation aid. * */ $myident = ((is_array($a->user) && isset($a->user['nickname'])) ? $a->user['nickname'] . '@' : ''); $a->page['nav'] .= '
' . $myident . substr($a->get_baseurl(),strpos($a->get_baseurl(),'//') + 2 ) . '
'; /** * Display login or logout */ if(local_user()) { $a->page['nav'] .= '' . t('Logout') . "\r\n"; } else { $a->page['nav'] .= '' . t('Login') . "\r\n"; } $a->page['nav'] .= "\r\n"; /** * "Home" should also take you home from an authenticated 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"; $help_url = get_config('system','help_url'); if(! $help_url) $help_url = 'http://github.com/friendika/friendika/wiki'; $a->page['nav'] .= '' . t('Help') . "\r\n"; if(strlen($a->apps)) { $a->page['nav'] .= '' . t('Apps') . "\r\n"; } $a->page['nav'] .= '' . t('Search') . "\r\n"; $gdirpath = 'directory'; if(strlen(get_config('system','singleuser'))) { $gdir = dirname(get_config('system','directory_submit_url')); if(strlen($gdir)) $gdirpath = $gdir; } $a->page['nav'] .= '' . t('Directory') . "\r\n"; /** * * The following nav links are only show to logged in users * */ if(local_user()) { $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"; if(is_array($a->identities) && count($a->identities) > 1) { $a->page['nav'] .= '' . t('Manage') . '' . "\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"; /** * * Provide a banner/logo/whatever * */ $banner = get_config('system','banner'); if($banner === false) $banner .= 'logoFriendika'; $a->page['nav'] .= ''; call_hooks('page_header', $a->page['nav']); }