Class MobileLoginThemeHelper
Class to assist the login theme cookies and Javascript. The login page has both the ability to change the background color and ability to change overall theme of the page. The cookie saved will be the background color and the theme name.
If the user is on default theme and changes the theme to dark theme, The app will change this users theme to the dark theme. If the user is on a custom theme and logs in with the default theme, the theme of the app will not change, to respect the option to have a default login page but a themed app.
The right most background color option will be the color of the theme background.
- LoginThemeHelperBase
- MobileLoginThemeHelper
Package: application\components
Author: Alex Rowe <alex@x2engine.com>
Located at x2engine/protected/modules/mobile/components/ThemeGenerator/MobileLoginThemeHelper.php
Author: Alex Rowe <alex@x2engine.com>
Located at x2engine/protected/modules/mobile/components/ThemeGenerator/MobileLoginThemeHelper.php
__construct(),
formHtml(),
init(),
login(),
registerJS(),
render(),
saveProfileTheme(),
singleton()
|
LOGIN_BACKGROUND_COOKIE,
LOGIN_THEME_COOKIE,
PROFILE_COOKIE
|
$cookieLength,
$currentBackground,
$currentTheme,
$nextTheme,
$usingDarkTheme
|