X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=communityhome%2Fcommunityhome.php;h=cbcf86a018fc99ac04330b7d5d685050351c43af;hb=0568a5d8bbbc81baa237ae262f9025b232279396;hp=ba2af6de62bf36340a92ec9b8dd49bae2fdfd2cb;hpb=84d5d96dc8a2b3d37669504cf520c19af46bc280;p=friendica-addons.git diff --git a/communityhome/communityhome.php b/communityhome/communityhome.php index ba2af6de..cbcf86a0 100755 --- a/communityhome/communityhome.php +++ b/communityhome/communityhome.php @@ -23,17 +23,24 @@ function communityhome_uninstall() { function communityhome_home(&$a, &$o){ // custom css $a->page['htmlhead'] .= ''; - - $aside = array( - '$tab_1' => t('Login'), - '$tab_2' => t('OpenID'), - '$noOid' => get_config('system','no_openid'), - ); - - // login form - $aside['$login_title'] = t('Login'); - $aside['$login_form'] = login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true); - + + if (!get_config('communityhome','hidelogin')){ + $aside = array( + '$tab_1' => t('Login'), + '$tab_2' => t('OpenID'), + '$noOid' => get_config('system','no_openid'), + ); + + // login form + $aside['$login_title'] = t('Login'); + $aside['$login_form'] = login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true); + } else + $aside = array( + //'$tab_1' => t('Login'), + //'$tab_2' => t('OpenID'), + //'$noOid' => get_config('system','no_openid'), + ); + // last 12 users if (get_config('communityhome','showlastusers')===true){ $aside['$lastusers_title'] = t('Latest users');