MDL-88225 admin: New login screen image

- Improved image and add an AI watermark
This commit is contained in:
Muhammad Arnaldo
2026-03-18 17:55:11 +07:00
parent 395e4c50a9
commit 5fe77dc65e
4 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -57,15 +57,18 @@ function theme_boost_get_extra_scss($theme) {
// Sets the login background image.
$loginbackgroundimageurl = $theme->setting_file_url('loginbackgroundimage', 'loginbackgroundimage');
$backgroundposition = '';
if (empty($loginbackgroundimageurl)) {
// Use the default login background image.
$loginbackgroundimageurl = $theme->image_url(
'login_background',
'theme',
);
// Set the default background position to ensure the watermark is visible.
$backgroundposition = 'background-position: bottom right;';
}
$content .= 'body.pagelayout-login #page .login-layout-left { ';
$content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover;";
$content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover; {$backgroundposition}";
$content .= ' }';
// Always return the background image with the scss when we have it.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 KiB

After

Width:  |  Height:  |  Size: 156 KiB

+4 -1
View File
@@ -108,15 +108,18 @@ function theme_classic_get_extra_scss($theme) {
// Sets the login background image.
$loginbackgroundimageurl = $theme->setting_file_url('loginbackgroundimage', 'loginbackgroundimage');
$backgroundposition = '';
if (empty($loginbackgroundimageurl)) {
// Use the default login background image.
$loginbackgroundimageurl = $theme->image_url(
'login_background',
'theme',
);
// Set the default background position to ensure the watermark is visible.
$backgroundposition = 'background-position: bottom right;';
}
$content .= 'body.pagelayout-login #page .login-layout-left { ';
$content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover;";
$content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover; {$backgroundposition}";
$content .= ' }';
if (!empty($theme->settings->navbardark)) {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 KiB

After

Width:  |  Height:  |  Size: 156 KiB