From 909b3487fe0f9949593b07a470452e36797cd941 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 22 Apr 2008 03:19:53 +0000 Subject: [PATCH] FEATURE: Ticket #2321 - Merged patch allowing CMS to be fully rebrandable git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@53193 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 7 ++++++- templates/LeftAndMain.ss | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 59f1f2ef..e9c35115 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -799,9 +799,11 @@ JS; * LeftAndMain::setApplicationName("Something New") */ static $application_name = "SilverStripe CMS", $application_logo_text = "SilverStripe"; - static function setApplicationName($name, $logoText = null) { + static $application_link = "http://www.silverstripe.com/"; + static function setApplicationName($name, $logoText = null, $link = null) { self::$application_name = $name; self::$application_logo_text = $logoText ? $logoText : $name; + if($link) self::$application_link = $link; } function ApplicationName() { return self::$application_name; @@ -809,6 +811,9 @@ JS; function ApplicationLogoText() { return self::$application_logo_text; } + function ApplicationLink() { + return self::$application_link; + } static $application_logo = "cms/images/mainmenu/logo.gif", $application_logo_style = ""; diff --git a/templates/LeftAndMain.ss b/templates/LeftAndMain.ss index 483aab20..32e663f2 100644 --- a/templates/LeftAndMain.ss +++ b/templates/LeftAndMain.ss @@ -44,7 +44,7 @@
- SilverStripe CMS -  + $ApplicationName -  $ApplicationName <% _t('APPVERSIONTEXT2',"version that you are currently running, technically it's the CVS branch") %>">$CMSVersion       <% control CurrentMember %> <% _t('LOGGEDINAS','Logged in as') %> <% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %> | <% _t('EDITPROFILE','Profile') %> | <% _t('LOGOUT','log out') %>