Support one more layer in the template.

This commit is contained in:
Will Rossiter 2014-09-28 16:58:01 +13:00
parent 6edaebab41
commit d452a047fa

View File

@ -15,7 +15,17 @@
<% if Children %> <% if Children %>
<ul class="$FirstLast"> <ul class="$FirstLast">
<% loop Children %> <% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li> <li><a href="$Link" class="$LinkingMode">$Title</a>
<% if 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 %> <% end_loop %>
</ul><% end_if %> </ul><% end_if %>
<% end_if %> <% end_if %>
@ -27,7 +37,17 @@
<% if Children %> <% if Children %>
<ul class="$FirstLast"> <ul class="$FirstLast">
<% loop Children %> <% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li> <li><a href="$Link" class="$LinkingMode">$Title</a>
<% if 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 %> <% end_loop %>
</ul><% end_if %> </ul><% end_if %>
<% end_if %> <% end_if %>