From 4ab91642b3be6e4a7766ddde4e5773e8621e03a5 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 26 Apr 2008 06:39:00 +0000 Subject: [PATCH] Merged revisions 52298 via svnmerge from http://svn.silverstripe.com/open/modules/cms/branches/2.2.2 ........ r52298 | sminnee | 2008-04-08 12:35:20 +1200 (Tue, 08 Apr 2008) | 1 line Added LeftAndMain::set_loading_image() for replacing the image shown when the CMS is loading ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@53497 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 14 ++++++++++++++ templates/LeftAndMain.ss | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 652355fd..5ba45625 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -822,6 +822,20 @@ JS; self::$application_logo_style = $logoStyle; self::$application_logo_text = ""; } + + protected static $loading_image = 'cms/images/loading.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; + } + function LogoStyle() { return "background: url(" . self::$application_logo . ") no-repeat; " . self::$application_logo_style; } diff --git a/templates/LeftAndMain.ss b/templates/LeftAndMain.ss index 32e663f2..4e4422c3 100644 --- a/templates/LeftAndMain.ss +++ b/templates/LeftAndMain.ss @@ -12,7 +12,7 @@ -
<% _t('LOADING','Loading...',PR_HIGH) %>
+
<% _t('LOADING','Loading...',PR_HIGH) %>
<% include CMSTopMenu %>