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') %>