
<!--  header.html -->
<div class="navbar navbar-{$appearance.navbar_name} ">
<div class="container">

<div class="navbar-header">
<a href="{$config.memo_uri}" class="navbar-brand mr30">{$config.page_title|escape}</a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>

<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" id="themes"><i class="fa fa-lg fa-folder"></i> Category <span class="caret"></span></a>
<ul class="dropdown-menu" aria-labelledby="themes">
{if $category_id}<li><a href="{$config.memo_uri}/category/{$category_id}">{$category_name|escape}</a></li>{/if}
<li class="divider"></li>
{ foreach from=$header_category_loop key="k" item="v" }
<li><a href="{$config.memo_uri}/category/{$v.category_id}">{if $category_id == $v.category_id}<i class="fa fa-arrow-right"></i>
{/if}{$v.category_name|escape}</a></li>
{ /foreach }
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" id="download"><i class="fa fa-lg fa-file-text"></i> 最近のメモ <span class="caret"></span></a>
<ul class="dropdown-menu" aria-labelledby="download">
{ foreach from=$recent_loop key="k" item="v" }
<li><a href="{$config.memo_uri}/archive/{$v.data_id}">{$v.title_name|escape}</a></li>
{ /foreach }
</ul>
</li>
</ul>

<form class="navbar-form navbar-left" action="{$config.memo_uri}">
{*OFF {if $category_id}<input type="hidden" name="category_id" value="{$category_id}">{/if}OFF*}
<input type="hidden" name="cmd" value="search" />
<input type="search" name="q" id="q" class="form-control" placeholder="Search" value="{$q|escape}">
<button type="submit" class="btn btn-default">検索</button>
</form>

</div><!-- /#navbar-main -->


</div> <!-- /.container -->
</div> <!-- /.navbar .navbar-default -->
<!--  /header.html -->
