Vulcan/client/views/nav/nav.html

40 lines
1.5 KiB
HTML
Raw Normal View History

2014-06-23 11:40:21 +09:00
<template name="nav">
2014-07-09 09:46:24 +09:00
<header class="header">
2014-06-23 11:40:21 +09:00
2014-08-20 17:03:54 +09:00
<a href="#menu" class="mobile-only mobile-menu-button button">
<svg height="24px" id="Layer_1" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path class="hamburger" d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"/></svg>
</a>
2014-06-23 11:40:21 +09:00
2014-08-12 17:34:56 +09:00
{{#if logo_url}}
2014-08-20 15:59:11 +09:00
<h1 class="logo logo-image header-module">
<a href="/">
<img src="{{logo_url}}" alt="{{site_title}}"/>
</a>
</h1>
{{else}}
2014-08-20 15:59:11 +09:00
<h1 class="logo header-module"><a href="/">{{site_title}}</a></h1>
{{/if}}
{{#if hasPrimaryNav}}
2014-08-20 15:59:11 +09:00
<ul class="nav primary-nav desktop-nav {{dropdownClass}} header-module desktop-only">
{{#each primaryNav}}
2014-08-20 15:59:11 +09:00
<li class="header-submodule">
{{> UI.dynamic template=getTemplate}}
</li>
{{/each}}
</ul>
{{/if}}
2014-06-23 11:40:21 +09:00
{{#if hasSecondaryNav}}
2014-08-20 15:59:11 +09:00
<ul class="nav secondary-nav desktop-nav {{dropdownClass}} header-module desktop-only">
{{#each secondaryNav}}
2014-08-20 15:59:11 +09:00
<li class="header-submodule">
{{> UI.dynamic template=getTemplate}}
</li>
{{/each}}
</ul>
{{/if}}
2014-06-23 11:40:21 +09:00
</header>
</template>