mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
ENHANCEMENT Using new template syntax
This commit is contained in:
parent
bf2d9cb1e5
commit
44cec3d0ac
@ -1,7 +1,7 @@
|
||||
<nav class="primary">
|
||||
<ul>
|
||||
<% control Menu(1) %>
|
||||
<% loop Menu(1) %>
|
||||
<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
|
||||
<% end_control %>
|
||||
<% end_loop %>
|
||||
</ul>
|
||||
</nav>
|
@ -2,14 +2,14 @@
|
||||
<% if Menu(2) %>
|
||||
<nav class="secondary">
|
||||
<h3>
|
||||
<% control Level(1) %>
|
||||
<% loop Level(1) %>
|
||||
$Title
|
||||
<% end_control %>
|
||||
<% end_loop %>
|
||||
</h3>
|
||||
<ul>
|
||||
<% control Menu(2) %>
|
||||
<% loop Menu(2) %>
|
||||
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page"><span class="arrow">→</span><span class="text">$MenuTitle.XML</span></a></li>
|
||||
<% end_control %>
|
||||
<% end_loop %>
|
||||
</ul>
|
||||
</nav>
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user