isRTL()) { foreach ($languages as &$language) { $language['text'] = $language['text'] . '‎'; } } array_unshift($languages, JHtml::_('select.option', '', JText::_('JDEFAULTLANGUAGE'))); return JHtml::_('select.genericlist', $languages, 'lang', ' class="advancedSelect"', 'value', 'text', null); } /** * Get the redirect URI after login. * * @return string */ public static function getReturnURI() { $uri = JUri::getInstance(); $return = 'index.php' . $uri->toString(array('query')); if ($return != 'index.php?option=com_login') { return base64_encode($return); } else { return base64_encode('index.php'); } } /** * Creates a list of two factor authentication methods used in com_users * on user view * * @return array */ public static function getTwoFactorMethods() { require_once JPATH_ADMINISTRATOR . '/components/com_users/helpers/users.php'; return UsersHelper::getTwoFactorMethods(); } }