Vulcan/client/views/nav/nav.html
2015-03-12 18:07:23 +09:00

31 lines
1.2 KiB
HTML

<template name="nav">
<header class="header {{headerClass}}">
<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>
{{> UI.dynamic template=logoTemplate}}
{{#if hasPrimaryNav}}
<ul class="nav primary-nav desktop-nav {{dropdownClass}} header-module desktop-only">
{{#each primaryNav}}
<li>
{{> UI.dynamic template=getTemplate}}
</li>
{{/each}}
</ul>
{{/if}}
{{#if hasSecondaryNav}}
<ul class="nav secondary-nav desktop-nav {{dropdownClass}} header-module desktop-only">
{{#each secondaryNav}}
<li>
{{> UI.dynamic template=getTemplate}}
</li>
{{/each}}
</ul>
{{/if}}
</header>
</template>