silverstripe-simple/templates/Includes/SideBar.ss
Simon Welsh d3f9781866 Updates templates to more SS3-ready syntax
- Use $Name in if/loop
- Replace instances of control with loop
2012-10-27 16:15:51 +13:00

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>