mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
d3f9781866
- Use $Name in if/loop - Replace instances of control with loop
17 lines
249 B
Scheme
17 lines
249 B
Scheme
<aside>
|
|
<% if $Menu(2) %>
|
|
<nav class="secondary">
|
|
<h3>
|
|
<% loop $Level(1) %>
|
|
$Title
|
|
<% end_loop %>
|
|
</h3>
|
|
<ul>
|
|
<% loop $Menu(1) %>
|
|
<% include SidebarMenu %>
|
|
<% end_loop %>
|
|
</ul>
|
|
</nav>
|
|
<% end_if %>
|
|
</aside>
|