Update theme information defining a navigation strategy

Updated code to use a new navigation strategy.
This commit is contained in:
jvelilla
2014-11-07 09:15:30 -03:00
parent 223a5fafdb
commit 2c130cf882
12 changed files with 78 additions and 58 deletions

View File

@@ -33,7 +33,7 @@
<!-- Page Header -->
<div id="header">
{include file="tpl/page_header.tpl"/}
{include file="tpl/page_header2.tpl"/}
</div>
<!-- General Page Content -->

View File

@@ -10,4 +10,5 @@ regions[help] = Help
regions[footer] = Footer
regions[first_sidebar] = first sidebar
regions[second_sidebar] = second sidebar
regions[page_bottom] = Bottom
regions[page_bottom] = Bottom
navigation=default_nav

View File

@@ -1,3 +0,0 @@
{foreach item="item" from="$menu.items"}
<li class="active"><a href="{$item.location/}">{$item.title/}</a></li>
{/foreach}

View File

@@ -1,8 +1,28 @@
{if isset="$primary_nav"}
{if isset="$default_nav"}
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
</button>
<a class="navbar-brand" href="${site_url/}" itemprop="home" rel="home">{$page_title/}</a>
</div>
<div class="navbar-collapse collapse">
{/if}
{if isset="$primary_nav"}
{$primary_nav/}
{/if}
{/if}
{if isset="$secondary_nav"}
{$secondary_nav/}
{/if}
{if isset="$default_nav"}
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,6 @@
<ul class="nav navbar-nav navbar-left">
{foreach item="item" from="$menu.items"}
<!-- TODO check if a menu item is active or not -->
<li class="active"><a href="{$item.location/}">{$item.title/}</a></li>
{/foreach}
</ul>

View File

@@ -0,0 +1,7 @@
<ul class="nav navbar-nav navbar-right">
{foreach item="item" from="$menu.items"}
<!-- TODO check if a menu item is active or not -->
<li class="active"><a href="{$item.location/}">{$item.title/}</a></li>
{/foreach}
</ul>