$showForgotLogin = 0; } switch ($loginMethod) { case 2: $userNameText = CBTxt::T('Email'); break; case 1: $userNameText = CBTxt::T('Username or email'); break; case 0: default: $userNameText = CBTxt::T('Username'); break; } $loginReturnUrl = modCBLoginHelper::getReturnURL($params, $type); $logoutReturnUrl = modCBLoginHelper::getReturnURL($params, $type); if (in_array($showButton, array(2, 4))) { $buttonStyle = ' style="color: black; font-weight: normal; box-shadow: none; text-shadow: none; background: none; border: 0; padding: 0;"'; } else { $buttonStyle = null; } if ($showPrivateMessages && $_CB_PMS) { $newMessageCount = $_CB_PMS->getPMSunreadCount((int) $user->get('id')); $privateMessageURL = $_CB_PMS->getPMSlinks(null, (int) $user->get('id'), null, null, 2); if (isset($newMessageCount[0])) { $newMessageCount = (int) $newMessageCount[0]; } else { $newMessageCount = 0; } if (isset($privateMessageURL[0]['url'])) { $privateMessageURL = $privateMessageURL[0]['url'];