mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Removed LeftAndMain::set_loading_image() and LoadingImage(), use CSS
This commit is contained in:
parent
11a3b86fef
commit
e3928a0517
@ -1158,25 +1158,7 @@ class LeftAndMain extends Controller {
|
||||
self::$application_logo_style = $logoStyle;
|
||||
self::$application_logo_text = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* The height of the image should be around 164px to avoid the overlaping between the image and loading animation graphic.
|
||||
* If the given image's height is significantly larger or smaller, adjust the loading animation's top offset in
|
||||
* positionLoadingSpinner() in LeftAndMain.js
|
||||
*/
|
||||
protected static $loading_image = 'sapphire/admin/images/logo.gif';
|
||||
|
||||
/**
|
||||
* Set the image shown when the CMS is loading.
|
||||
*/
|
||||
static function set_loading_image($loadingImage) {
|
||||
self::$loading_image = $loadingImage;
|
||||
}
|
||||
|
||||
function LoadingImage() {
|
||||
return self::$loading_image;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Combines an optional background image and additional CSS styles,
|
||||
* set through {@link setLogo()}.
|
||||
|
@ -19,6 +19,7 @@
|
||||
}
|
||||
|
||||
.ss-loading-screen .loading-logo {
|
||||
background-url: url(../images/logo.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-color: transparent;
|
||||
background-position: 50% 50%;
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<body class="stillLoading $CSSClasses">
|
||||
<div class="ss-loading-screen">
|
||||
<div class="loading-logo" style="background-image: url($LoadingImage);">
|
||||
<div class="loading-logo">
|
||||
<img class="loading-animation" src="sapphire/admin/images/spinner.gif" alt="<% _t('LOADING','Loading...',PR_HIGH) %>" />
|
||||
<noscript><p class="nojs-warning"><span class="message notice"><% _t('REQUIREJS','The CMS requires that you have JavaScript enabled.',PR_HIGH) %></span></p></noscript>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user