mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
9da43d139a
API CHANGE Renamed LeftAndMain->CMSTopMenu() to CMSMenu() API CHANGE Renamed LeftAndMain->Left() to Menu(), used through LeftAndMain_Menu.ss templates (instead of LeftAndMain_left.ss) - in order to avoid presentational naming API CHANGE Renamed LeftAndMain->Right() to Content(), used through LeftAndMain_Content.ss templates (instead of LeftAndMain_right.ss) - in order to avoid presentational naming
50 lines
1.7 KiB
Scheme
50 lines
1.7 KiB
Scheme
<div class="cms-menu west">
|
|
|
|
<div class="cms-header">
|
|
<div class="cms-logo">
|
|
<a href="http://www.silverstripe.org/" target="_blank">
|
|
SilverStripe <% if CMSVersion %><abbr class="version">$CMSVersion</abbr><% end_if %>
|
|
</a>
|
|
<span>$SiteConfig.Title</span>
|
|
</div>
|
|
<div class="cms-login-status">
|
|
<a href="Security/logout" class="logout-link"><% _t('LOGOUT','Log out') %></a>
|
|
<% control CurrentMember %>
|
|
<% _t('Hello','Hi') %>
|
|
<strong>
|
|
<a href="{$AbsoluteBaseURL}admin/myprofile" class="profile-link">
|
|
<% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %>
|
|
</a>
|
|
</strong>
|
|
<% end_control %>
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="cms-menu-list">
|
|
<% control MainMenu %>
|
|
<li class="$LinkingMode" id="Menu-$Code">
|
|
<a href="$Link">
|
|
<span class="icon"> </span>
|
|
<span class="text">$Title</span>
|
|
</a>
|
|
<% if Code == 'CMSMain' && LinkingMode == 'current' %>
|
|
<ul>
|
|
<li <% if Top.class == 'CMSPageEditController' %>class="current"<% end_if %>><a href="admin/page/edit/show/$Top.CurrentPageID">
|
|
<span class="text">Content</span>
|
|
</a></li>
|
|
<li <% if Top.class == 'CMSPageSettingsController' %>class="current"<% end_if %>><a href="admin/page/settings/show/$Top.CurrentPageID">
|
|
<span class="text">Settings</span>
|
|
</a></li>
|
|
<li <% if Top.class == 'CMSPageReportsController' %>class="current"<% end_if %>><a href="#">
|
|
<span class="text">Reports</span>
|
|
</a></li>
|
|
<li <% if Top.class == 'CMSPageHistoryController' %>class="current"<% end_if %>><a href="#">
|
|
<span class="text">History</span>
|
|
</a></li>
|
|
</ul>
|
|
<% end_if %>
|
|
</li>
|
|
<% end_control %>
|
|
</ul>
|
|
|
|
</div> |