mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
722458f32c
commit
909b3487fe
@ -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 = "";
|
||||
|
||||
|
@ -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> -
|
||||
<a href="$ApplicationLink" title="<% _t('SSWEB','Silverstripe Website') %>">$ApplicationName</a> -
|
||||
<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>
|
||||
<% 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>
|
||||
|
Loading…
Reference in New Issue
Block a user