<link rel="stylesheet" href="${ctxStatic}/modules/cmsfront/themes/default/bootstrap.min.css?${_version}" media="screen">
<link rel="stylesheet" href="${ctxStatic}/modules/cmsfront/themes/css/custom.css?${_version}">
<link rel="stylesheet" href="${ctxStatic}/fonts/font-icons.min.css?${_version}">
<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <a href="${ctx}/index-${site.siteCode}" class="navbar-brand">${site.title}</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 mr-auto">
        <#html:foreach items="${categoryList(site.siteCode, '0', 4, '')}" var="c">
        	<#html:if test="${c.inMenu == @Global.YES}">
	          <li class="${c.categoryCode == category.categoryCode! ? 'active' : ''}"><a
	            href="${ctx}/list-${c.categoryCode}">${c.categoryName}</a></li>
            </#html:if>
        </#html:foreach>
        <li><a href="http://jeesite.com" target="_blank">官方网站</a></li>
        <li><a href="http://s.jeesite.com" target="_blank">技术服务</a></li>
        <li id="siteSwitch" class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#" title="站点">子站切换 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <#html:foreach items="${siteList()}" var="site,status">
              <li><a href="#" onclick="location='${ctx}/index-${site.id}'">${site.title}</a></li>
            </#html:foreach>
          </ul>
        </li>
        <!-- <li id="themeSwitch" class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#" title="主题切换"><i class="glyphicon glyphicon-th-large"></i></a>
          <ul class="dropdown-menu">
            <li><a href="#" onclick="location='?url='+location.href">字典</a></li>
          </ul>
        </li> -->
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <form class="navbar-form navbar-left nav-search" action="${ctx}/search">
            <div class="form-group">
              <input type="text" name="q" class="form-control" placeholder="全站搜索...">
            </div>
            <button type="submit" class="btn btn-primary hide">搜索</button>
        </form>
      </ul>
    </div>
  </div>
</div>
    
       