diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-11-20 15:38:36 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-11-20 15:38:36 +0100 |
commit | 9d1443bbfe2750dd9baa1f7031441ccf834dcd5b (patch) | |
tree | e4acec5da13362d2681a75e7c49b2832c19db636 /include/nav.php | |
parent | f4f37692250d1a2dc64b8f53a23476307fd19e5b (diff) | |
download | volse-hubzilla-9d1443bbfe2750dd9baa1f7031441ccf834dcd5b.tar.gz volse-hubzilla-9d1443bbfe2750dd9baa1f7031441ccf834dcd5b.tar.bz2 volse-hubzilla-9d1443bbfe2750dd9baa1f7031441ccf834dcd5b.zip |
move the remote user homebutton to the user menu. this way everything remote user related is in one place.
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/nav.php b/include/nav.php index c2a058457..21da033a7 100644 --- a/include/nav.php +++ b/include/nav.php @@ -127,26 +127,24 @@ EOT; ); } - if($observer) { - $nav['lock'] = array('logout','','lock', - sprintf( t('%s - click to logout'), $observer['xchan_addr'])); - } elseif(! $_SESSION['authenticated']) { $nav['loginmenu'][] = Array('rmagic',t('Remote authentication'),'',t('Click to authenticate to your home hub'),'rmagic_nav_btn'); } - /** - * "Home" should also take you home from an authenticated remote profile connection - */ - $homelink = get_my_url(); if(! $homelink) { $observer = App::get_observer(); $homelink = (($observer) ? $observer['xchan_url'] : ''); } - if(! local_channel()) - $nav['home'] = array($homelink, t('Home'), "", t('Home Page'),'home_nav_btn'); + if(! local_channel()) { + $nav['rusermenu'] = array( + $homelink, + t('Get me home'), + 'logout', + t('Log me out of this site') + ); + } if(((get_config('system','register_policy') == REGISTER_OPEN) || (get_config('system','register_policy') == REGISTER_APPROVE)) && (! $_SESSION['authenticated'])) $nav['register'] = array('register',t('Register'), "", t('Create an account'),'register_nav_btn'); |