forked from kevinowino869/mitrobill
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user