2012-01-06 16:39:32 +01:00
|
|
|
<div class="cms-menu cms-panel cms-panel-layout west" id="cms-menu" data-layout="{type: 'border'}">
|
2011-10-29 02:01:06 +02:00
|
|
|
<div class="cms-panel-header cms-logo-header north">
|
|
|
|
<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" title="<% _t('LOGOUT','Log out') %>"><% _t('LOGOUT','Log out') %></a>
|
|
|
|
<% control CurrentMember %>
|
|
|
|
<span>
|
|
|
|
<% _t('Hello','Hi') %>
|
|
|
|
<a href="{$AbsoluteBaseURL}admin/myprofile" class="profile-link">
|
|
|
|
<% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<% end_control %>
|
2011-04-15 04:12:57 +02:00
|
|
|
</div>
|
2011-10-29 02:01:06 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cms-panel-content center">
|
2011-05-13 03:30:49 +02:00
|
|
|
<ul class="cms-menu-list">
|
|
|
|
<% control MainMenu %>
|
2011-08-16 05:36:39 +02:00
|
|
|
<li class="$LinkingMode $FirstLast <% if LinkingMode == 'link' %><% else %>opened<% end_if %>" id="Menu-$Code">
|
2011-05-13 03:30:49 +02:00
|
|
|
<a href="$Link">
|
2011-08-09 01:39:12 +02:00
|
|
|
<span class="icon icon-16 icon-{$Code.LowerCase}"> </span>
|
2011-05-13 03:30:49 +02:00
|
|
|
<span class="text">$Title</span>
|
|
|
|
</a>
|
2011-10-29 02:01:06 +02:00
|
|
|
|
2011-05-26 12:02:44 +02:00
|
|
|
<% if Code == 'CMSMain' %>
|
2011-07-28 06:57:41 +02:00
|
|
|
<ul>
|
2011-12-17 03:48:47 +01:00
|
|
|
<li class="first <% if Top.class == 'CMSPageEditController' || Top.class == 'CMSMain' %>current<% end_if %>" id="Menu-CMSPageEditController">
|
|
|
|
<a href="admin/page/edit/show/$Top.CurrentPageID">
|
|
|
|
<span class="text">Content</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li <% if Top.class == 'CMSPageSettingsController' %>class="current"<% end_if %> id="Menu-CMSPageSettingsController">
|
|
|
|
<a href="admin/page/settings/show/$Top.CurrentPageID">
|
|
|
|
<span class="text">Settings</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li <% if Top.class == 'CMSPageHistoryController' %>class="current"<% end_if %> id="Menu-CMSPageHistoryController">
|
|
|
|
<a href="admin/page/history/show/$Top.CurrentPageID">
|
|
|
|
<span class="text">History</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2011-07-28 06:57:41 +02:00
|
|
|
</ul>
|
2011-05-13 03:30:49 +02:00
|
|
|
<% end_if %>
|
2011-12-20 14:10:08 +01:00
|
|
|
|
|
|
|
<% if Code == 'CMSPagesController' %>
|
|
|
|
<ul>
|
|
|
|
<li class="last <% if Top.class == 'CMSPagesController' %>current<% end_if %>" id="Menu-CMSPagesController">
|
|
|
|
<a href="admin/pages/">
|
|
|
|
<span class="text">Edit & organize</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="first <% if Top.class == 'CMSPageAddController' %>current<% end_if %>" id="Menu-CMSPageAddController">
|
2012-01-05 17:03:38 +01:00
|
|
|
<a href="admin/page/add/?ParentID=$Top.CurrentPageID">
|
2011-12-20 14:10:08 +01:00
|
|
|
<span class="text">Add pages</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<% end_if %>
|
2012-01-09 17:32:08 +01:00
|
|
|
|
|
|
|
<% if Code == 'AssetAdmin' %>
|
|
|
|
<ul>
|
|
|
|
<li class="last <% if Top.class == 'AssetAdmin' %>current<% end_if %>" id="Menu-AssetAdmin">
|
|
|
|
<a href="admin/assets/">
|
|
|
|
<span class="text">Edit & organize</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="first <% if Top.class == 'CMSFileAddController' %>current<% end_if %>" id="Menu-CMSFileAddController">
|
|
|
|
<a href="admin/assets/add">
|
|
|
|
<span class="text">Add files</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<% end_if %>
|
2011-05-13 03:30:49 +02:00
|
|
|
</li>
|
|
|
|
<% end_control %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2011-10-29 02:01:06 +02:00
|
|
|
|
|
|
|
<div class="cms-panel-toggle south">
|
|
|
|
<a class="toggle-expand" href="#"><span>»</span></a>
|
|
|
|
<a class="toggle-collapse" href="#"><span>«</span></a>
|
|
|
|
</div>
|
2011-04-15 04:12:57 +02:00
|
|
|
</div>
|