New Feature: Customer login settings

you can change or add multiple custom login-page template

you can also add your own login page

just add a login page with name
"login-custom-[template-name].tpl"

e.g.

login-custom-star.tpl
login-custom-moon.tpl
login-custom-sun.tpl
login-custom-venus.tpl
This commit is contained in:
Focuslinkstech
2024-11-11 17:42:57 +01:00
parent 5bb724b9b3
commit c3355ad8f7
4 changed files with 859 additions and 29 deletions

View File

@ -313,9 +313,23 @@ switch ($do) {
$ui->assign('code', alphanumeric(_get('code'), "-"));
$ui->display('customer/login-noreg.tpl');
} else {
$UPLOAD_URL_PATH = str_replace($root_path, '', $UPLOAD_PATH);
$login_logo = $UPLOAD_URL_PATH . DIRECTORY_SEPARATOR . 'login-logo.png';
$ui->assign('login_logo', $login_logo);
$wallpaper = $UPLOAD_URL_PATH . DIRECTORY_SEPARATOR . 'wallpaper.png';
$ui->assign('wallpaper', $wallpaper);
$favicon = (file_exists($UPLOAD_PATH . DIRECTORY_SEPARATOR . 'favicon.png')) ? $UPLOAD_URL_PATH . DIRECTORY_SEPARATOR . 'favicon.png' : $root . DIRECTORY_SEPARATOR . 'ui/ui/images/logo.png';
$ui->assign('favicon', $favicon);
$ui->assign('csrf_token', $csrf_token);
$ui->assign('_title', Lang::T('Login'));
$ui->display('customer/login.tpl');
switch ($config['login_page_type']) {
case 'custom':
$ui->display('customer/login-custom-' . $config['login_Page_template'] . '.tpl');
break;
default:
$ui->display('customer/login.tpl');
break;
}
}
break;
}