blob: 59d819436572e101b463eef24786cf0ad61a808f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Menu</span>
<span class="glyphicon glyphicon-menu-hamburger"></span>
</button>
<a class="navbar-brand" href=""> emkael.github.io </a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{foreach from=$items key=label item=link}
{if is_array($link)}
<li class="dropdown{if $content|in_array:$link} active{/if}">
{$items['_']}
<a href="{$link['_']|default:'#'|ltrim:'/'}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
{$label} <span class="caret"></span>
</a>
<ul class="dropdown-menu">
{foreach from=$link key=label item=sublink}
{if substr($label, 0, 10) == "_separator"}
<li role="separator" class="divider"></li>
{if $sublink}
<li class="dropdown-header">{$sublink}</li>
{/if}
{elseif $label != "_"}
<li><a href="{$sublink|ltrim:'/'}">{$label}</a></li>
{/if}
{/foreach}
</ul>
</li>
{else}
<li{if $content == $link} class="active"{/if}>
<a href="{$link|ltrim:'/'}">{$label}</a>
</li>
{/if}
{/foreach}
</ul>
</div>
</div>
</nav>
|