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
This commit is contained in:
Sean Harvey 2008-04-22 03:19:53 +00:00
parent 722458f32c
commit 909b3487fe
2 changed files with 7 additions and 2 deletions

View File

@ -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 = "";

View File

@ -44,7 +44,7 @@
<div id="bottom">
<div class="holder">
<div id="logInStatus">
<a href="http://www.silverstripe.com" title="<% _t('SSWEB','Silverstripe Website') %>">SilverStripe CMS</a>&nbsp;-&nbsp;
<a href="$ApplicationLink" title="<% _t('SSWEB','Silverstripe Website') %>">$ApplicationName</a>&nbsp;-&nbsp;
<abbr style="border-style: none" title="<% _t('APPVERSIONTEXT1',"This is the") %> $ApplicationName <% _t('APPVERSIONTEXT2',"version that you are currently running, technically it's the CVS branch") %>">$CMSVersion</abbr> &nbsp; &nbsp; &nbsp;
<% control CurrentMember %>
<% _t('LOGGEDINAS','Logged in as') %> <strong><% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %></strong> | <a href="{$BaseHref}admin/myprofile" id="EditMemberProfile"><% _t('EDITPROFILE','Profile') %></a> | <a href="Security/logout" id="LogoutLink"><% _t('LOGOUT','log out') %></a>