Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Includes for InlineList and Vertical NavBar

  • Loading branch information...
commit c4242f85d568f4261d40093311b5b0423b5931af 1 parent 22e74ea
@ryanwachtl authored
View
11 templates/Includes/InlineList.ss
@@ -0,0 +1,11 @@
+<ul class="inline-list <% if Float %>$Float<% end_if %>">
+ <% loop Me %>
+ <% if Links %>
+ <li class="<% if LinkingMode == current %>active<% end_if %>">
+ <a href="$Link" title="Go to the $Title.XML page">$MenuTitle.XML</a>
+ </li>
+ <% else %>
+ <li>$MenuTitle.XML</li>
+ <% end_if %>
+ <% end_loop %>
+</ul>
View
4 templates/Includes/NavBar.ss
@@ -1,5 +1,4 @@
-<% if Me %>
-<ul class="nav-bar">
+<ul class="nav-bar <% if $Vertical %>vertical<% end_if %>">
<% loop Me %>
<li class="<% if LinkingMode == current %>active<% end_if %><% if Children %> has-flyout<% end_if %>">
<a href="$Link" title="Go to the $Title.XML page">$MenuTitle.XML</a>
@@ -14,4 +13,3 @@
</li>
<% end_loop %>
</ul>
-<% end_if %>
View
14 templates/Includes/SideBar.ss
@@ -1,9 +1,5 @@
-<% if Menu(2) %>
- <% if Children %>
- <ul class="side-nav">
- <li>$Title</li>
- <li class="divider"></li>
- <% include SidebarMenu %>
- </ul>
- <% end_if %>
-<% end_if %>
+<div class="panel">
+ <% with ChildrenOf(Level(1).ID) %>
+ <% include SideNav %>
+ <% end_with %>
+</div>
View
16 templates/Includes/SideNav.ss
@@ -0,0 +1,16 @@
+<ul class="side-nav">
+ <% loop Me %>
+ <li class="<% if LinkingMode == current %>active<% end_if %>">
+ <a href="$Link">$MenuTitle.XML</a>
+ <% if LinkingMode == current || LinkingMode == section %>
+ <ul>
+ <% loop Children %>
+ <li class="<% if LinkingMode == current %>active<% end_if %>">
+ <a href="$Link">$MenuTitle.XML</a>
+ </li>
+ <% end_loop %>
+ </ul>
+ <% end_if %>
+ </li>
+ <% end_loop %>
+</ul>
View
12 templates/Includes/SidebarMenu.ss
@@ -1,12 +0,0 @@
-<% if Children %>
- <% loop Children %>
- <li class="<% if LinkingMode == current %>active<% end_if %>">
- <a href="$Link">$MenuTitle.XML</a>
- <% if Children %>
- <ul>
- <% include SidebarMenu %>
- </ul>
- <% end_if %>
- </li>
- <% end_loop %>
-<% end_if %>
View
11 templates/Layout/Page.ss
@@ -1,14 +1,19 @@
<div class="row">
+ <div class="twelve columns">
+ <h2>$Title</h2>
+ </div>
+</div>
+
+<div class="row">
- <div class="<% if Menu(2) %>nine<% else %>twelve<% end_if %> columns">
- <h3>$Title</h3>
+ <div class="<% if Menu(2) %>nine push-three<% else %>twelve<% end_if %> columns">
$Content
$Form
$PageComments
</div>
<% if Menu(2) %>
- <div class="three columns">
+ <div class="three pull-nine columns">
<% include SideBar %>
</div>
<% end_if %>
View
12 templates/Page.ss
@@ -20,7 +20,7 @@ $MetaTags(false)
<div class="twelve columns">
<% with Menu(1) %>
<% include TopBar SiteTitle=$Top.SiteConfig.Title, ContainToGrid=true %>
- <%-- <% include NavBar %> --%>
+ <%-- <% include NavBar Vertical=false %> --%>
<% end_with %>
</div>
</div>
@@ -121,13 +121,9 @@ $MetaTags(false)
<p>&copy; $Now.Year $SiteConfig.Title</p>
</div>
<div class="six columns">
- <ul class="link-list right">
- <% loop Menu(1) %>
- <li class="<% if LinkingMode == current %>active<% end_if %>">
- <a href="$Link" title="Go to the $Title.XML page">$MenuTitle.XML</a>
- </li>
- <% end_loop %>
- </ul>
+ <% with Menu(1) %>
+ <% include InlineList Links=true, Float=right %>
+ <% end_with %>
</div>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.