silverstripe-cms/templates/LeftAndMain.ss
Sean Harvey b6bff63b10 Styling, and tweak to show logged in user even if first name doesn't exist
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44572 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-11 02:43:23 +00:00

71 lines
2.9 KiB
Scheme

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<% base_tag %>
<title>$ApplicationName</title>
<link rel="stylesheet" type="text/css" href="cms/css/typography.css" />
<link rel="stylesheet" type="text/css" href="cms/css/layout.css" />
<link rel="stylesheet" type="text/css" href="cms/css/cms_left.css" />
<link rel="stylesheet" type="text/css" href="cms/css/cms_right.css" />
</head>
<body class="stillLoading">
<div id="Loading" style="background: #FFF url(cms/images/loading.gif) 50% 50% no-repeat; position: absolute;z-index: 100000;height: 100%;width: 100%;margin: 0;padding: 0;z-index: 100000;position: absolute;"><% _t('LOADING','Loading...',PR_HIGH) %></div>
<div id="top">
<% include CMSTopMenu %>
</div><div id="left" style="float:left">
$Left
</div>
<div id="separator" style="float:left">
&nbsp;
</div>
<div class="right" id="right">
$Right
</div>
<% if RightBottom %>
<div class="right" id="rightbottom">
$RightBottom
</div>
<% end_if %>
<div id="contentPanel" style="display:none;">
<% control EditorToolbar %>
$ImageForm
$LinkForm
$FlashForm
<% end_control %>
</div>
<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;
<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>
<% end_control %>
</div>
<div id="switchView" class="bottomTabs">
<% if class = CMSMain %>
<div class="blank"> <% _t('VIEWPAGEIN','Page view:') %> </div>
<% else %>
<div class="blank"> <% _t('SWITCHTO','Switch to:') %> </div>
<% end_if %>
<span class="current" title="Edit this page in the CMS"><% _t('EDIT','Edit') %></span>
| <a id="viewStageSite" title="View the Page in the Draft Site" href="home/?stage=Stage"><% _t('DRAFTS','Draft Site') %></a>
| <a id="viewLiveSite" title="View the Page in the Published Site" href="home/?stage=Live"><% _t('PUBLIS','Published Site') %></a>
<a style="display: none; margin-left: 20px;" id="viewArchivedSite" href="home/"><% _t('ARCHS','Archived Site') %></a>
</div>
</div>
</div>
<script type="text/javascript">Behaviour.addLoader(hideLoading)</script>
</body>
</html>