diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-14 01:17:47 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-14 01:17:47 -0700 |
commit | 9b94ad2ffe9abd34d2fd756b2366121ef89f376a (patch) | |
tree | 7d791357e1ba29c4432aa8cde40ddb4c18363115 /include | |
parent | 70b39e829bfb972f4a247b1a28a00d9d6a96d60c (diff) | |
download | volse-hubzilla-9b94ad2ffe9abd34d2fd756b2366121ef89f376a.tar.gz volse-hubzilla-9b94ad2ffe9abd34d2fd756b2366121ef89f376a.tar.bz2 volse-hubzilla-9b94ad2ffe9abd34d2fd756b2366121ef89f376a.zip |
was unable to make the modal login dialog work on the channel page with a cover photo. So for mod_channel, send login to the login page instead of the modal popup.
Diffstat (limited to 'include')
-rw-r--r-- | include/nav.php | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/include/nav.php b/include/nav.php index 6fd7d527b..89947e270 100644 --- a/include/nav.php +++ b/include/nav.php @@ -148,15 +148,20 @@ EOT; } else { if(! get_account_id()) { - $nav['login'] = login(true,'main-login',false,false); - $nav['loginmenu'][] = ['login',t('Login'),'',t('Sign in'),'login_nav_btn']; - App::$page['content'] .= replace_macros(get_markup_template('nav_login.tpl'), - [ - '$nav' => $nav, - 'userinfo' => $userinfo - ] - ); - + if(App::$module === 'channel') { + $nav['login'] = login(true,'main-login',false,false); + $nav['loginmenu'][] = ['login',t('Login'),'',t('Sign in'),'']; + } + else { + $nav['login'] = login(true,'main-login',false,false); + $nav['loginmenu'][] = ['login',t('Login'),'',t('Sign in'),'login_nav_btn']; + App::$page['content'] .= replace_macros(get_markup_template('nav_login.tpl'), + [ + '$nav' => $nav, + 'userinfo' => $userinfo + ] + ); + } } else $nav['alogout'] = ['logout',t('Logout'), "", t('End this session'),'logout_nav_btn']; |