MDL-88225 admin: New login screen image
- Improved image and add an AI watermark
This commit is contained in:
@@ -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 |
@@ -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 |
Reference in New Issue
Block a user