-
- $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 (!Config::get('communityhome','hidelogin')){
+ $aside = array(
+ '$tab_1' => t('Login'),
+ '$tab_2' => t('OpenID'),
+ '$noOid' => Config::get('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' => Config::get('system','no_openid'),
+ );
+