Fix for menu showing all sub-pages instead of children only

Replaces (git c8e1253)
This commit is contained in:
Paul Clarke 2013-01-23 10:37:49 +13:00
parent 5efbb7586b
commit e68e63cf4b
2 changed files with 12 additions and 14 deletions

View File

@ -294,7 +294,7 @@ body {
/* Secondary navigation */
.main .secondary h3 {
font-size: 20px;
color: #b8b7b7;
color: #AAA;
margin: 0 0 8px 0;
font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif;
font-weight: normal;
@ -345,19 +345,17 @@ body {
}
.main .secondary li.current a.current {
color: #b80000;
background-color: #e1e1e1;
background-color: #EDEDED;
}
.main .secondary li.section,
.main .secondary li.current {
background-color: #f1f1f1;
background-color: #F3F3F3;
}
.main .secondary li.section a,
.main .secondary li.current a {
color: #000;
}
.main .secondary h3 {
color: #aaa;
}
/* Secondary navigation 2-5 levels deep */
.main .secondary ul ul {

View File

@ -1,14 +1,14 @@
<aside class="sidebar unit size1of4">
<% if $Menu(2) %>
<nav class="secondary">
<h3>
<% loop $Level(1) %>
$Title
<% end_loop %>
</h3>
<ul>
<% include SidebarMenu %>
</ul>
<% with $Level(1) %>
<h3>
$MenuTitle
</h3>
<ul>
<% include SidebarMenu %>
</ul>
<% end_with %>
</nav>
<% end_if %>
</aside>