<div class="header ngsty-header">
	<a href="index" class="header-left ngsty-left" >
		<img  src="{{kg['web']['logo']}}" alt=""/>
	</a>
	<div class="header-centre hidden-xs">
		<div class="page-header hidden-xs">
			<p class="inline-block top-Qsty">{{kg['lang']['frontend'][0]}}</p>
			<form class="inline-block form-Qsty" action="/search" method="get" id="ngjs-form">
				<div class="form-group has-feedback search ngsty-boxK" id="search-img">
					<div class="ngsty-searchL ngstyL">
						<span class="glyphicon ngsty-sear am-icon-search form-control-feedback"></span>
					</div>
						<input type="text" placeholder="{{kg['lang']['frontend'][1]}}" class="form-control ngsty-insearch search"  name="word" id="search" />
					<div class="nginbl-display ngsty-rQ"></div>   
				</div>
			</form>
		</div>    
		<ul class="list-inline header-ul-nav ul-Ifu">
			<li {% if not kg['category'] %}class="active" {% endif %}>
				<a class="a1" href="./">KGCMS</a>
			</li>
			{%- for row in None|category(1, 0, 1) %}
			<li {% if kg['category'] and (row['id'] in kg['category']['upper'] or row['id']==kg['category']['id'])%}class="active" {% endif %}>
				<a href="{{row['url']}}">{{row['title']}}</a>
			</li>
			{%- endfor %}
		</ul>
	</div>
	<div  class="header-right ngin-size12">
		<a href="/cart" class="ngsty-rightA">
			<!-- <b>{{kg['lang']['frontend'][2]}}</b> -->
			{{kg['lang']['frontend'][15]}}(<em id="cart-num">{{0|get_cart}}</em>)
		</a>
		<span class="hidden-xs">&nbsp;|&nbsp;</span>
		<span class="visible-xs-inline"><br/></span>
		{%- if kg['session'].get('KGCMS_USER_ID', '') %}
		<span>{{kg['session'].get('KGCMS_USER_LOGIN_ID')}}(
			<a href="/user/login?action=logout">{{kg['lang']['frontend'][5]}}</a>)
		</span>
		<span class="hidden-xs">&nbsp;|&nbsp;</span>
		<a class="user_center_url" http-agent="{{kg['server']['HTTP_USER_AGENT']}}" href="/user/center" target="_blank">{{kg['lang']['frontend'][6]}}</a>
		{%- else %}
		<a href="/user/login" target="_blank">{{kg['lang']['frontend'][3]}}</a>
		<span class="hidden-xs">&nbsp;|&nbsp;</span>
		<a href="/user/register" target="_blank">{{kg['lang']['frontend'][4]}}</a>
		{%- endif %}
	</div>
	<div class="clearfix"></div>
</div>
<nav class="navbar navbar-background">
	<div class="container-fluid ngsty-flu">
		<div class="navbar-header ngsty-Tnav">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<button type="button" class="navbar-toggle collapsed sty-btn" data-toggle="collapse" data-target="#navbar-collapse-search" aria-expanded="false">
				<span class="glyphicon glyphicon-search col-fff"></span>
			</button>
			<a class="navbar-brand visible-xs-block" href="/">KGCMS.COM</a>
		</div>
		<div class="collapse navbar-collapse ngsty-coll" id="navbar-collapse">
			<ul class="nav navbar-nav">
				{%- set index2 = 'TopNav2'|navigate_list %}
				{%- for row in index2['link'] %}
				<li>
					<a href="{{row['url']}}">{{row['name']}}</a>
				</li>
				{%- endfor %} 
				
			</ul>   
			<ul class="nav navbar-nav navbar-right right-hidden" id="hidden-nav">
				<li>
					<a href="/download" class="btn btn-info">{{kg['lang']['frontend'][7]}}</a>
				</li>
				<li>
					<a href="/article" class="btn btn-info">{{kg['lang']['frontend'][8]}}</a>
				</li>
				<li> 
					<a href="/photo" class="btn btn-info">{{kg['lang']['frontend'][9]}}</a>
				</li>
			</ul>
		</div>
		<div class="collapse navbar-collapse navbar-collapse-hidden" id="navbar-collapse-search">
			<form action="/search" method="get" id="ngjs-form2">
				<div class="form-group ">
					<input type="text" class="form-control search" placeholder="搜索" name='word' id="search2">
				</div>
			</form>
		</div>
	</div>
</nav>
<div id="top-orange">
	<span id="section-nav">Section Menu: &nbsp;</span>
</div>