silverstripe-docsviewer/templates/Includes/DocumentationSidebar.ss

70 lines
2.1 KiB
Scheme
Raw Normal View History

2014-09-07 10:35:08 +02:00
<div id="sidebar">
<a class="menu-close" href="#">×</a>
2014-09-07 10:35:08 +02:00
<div class="box">
$DocumentationSearchForm
2014-09-07 10:35:08 +02:00
<ul class="nav">
<% if not HasDefaultEntity %>
<li><a href="$Link" class="top">Home</a></li>
<% end_if %>
<% loop Menu %>
<% if DefaultEntity %>
<li><a href="$Link" class="top">Home</a></li>
<% loop Children %>
<li class="$LinkingMode <% if Last %>last<% end_if %>">
<a href="$Link" class="top">$Title</a>
2014-09-07 12:14:10 +02:00
<% if LinkingMode == section || LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a>
<% if LinkingMode == section || LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
<% end_loop %>
</ul>
<% end_if %>
<% end_if %>
</li>
<% end_loop %>
</ul><% end_if %>
<% end_if %>
</li>
<% end_loop %>
<% else %>
<li class="$LinkingMode <% if Last %>last<% end_if %>"><a href="$Link" class="top">$Title <% if IsFolder %><span class="is-folder">&#9658;</span><% end_if %></a>
<% if LinkingMode == section || LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a>
<% if LinkingMode == section || LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
<% end_loop %>
</ul>
<% end_if %>
<% end_if %>
</li>
<% end_loop %>
</ul><% end_if %>
2014-09-07 12:14:10 +02:00
<% end_if %>
</li>
<% end_if %>
<% end_loop %>
2014-09-07 10:35:08 +02:00
</ul>
</div>
<div class="no-box">
<ul class="minor-nav">
<li><a href="$DocumentationIndexLink">Documentation Index</a></li>
2014-09-07 10:35:08 +02:00
</ul>
</div>
</div>