Version 32 (modified by djay, 9 years ago) |
---|
#encoding utf-8 #import zoo <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
</button> <a class="navbar-brand" href="/new/"><img src="/img/zoo-sun-logo.png" class="img-responsive sun" /> ZOO-Project</a>
</div> <div class="collapse navbar-collapse navbar-right navbar-ex1-collapse">
<ul class="nav navbar-nav">
#for i in $menuItems #set tcnt=0 #try #set pages=$server.wiki.getPage("ZooWebSite/2015/Menu/"+$i).encode('utf-8').split(',') #except #set pages=[] #end try
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">$i<b class="caret"></b></a>
<ul class="dropdown-menu">
#try #set icons=$server.wiki.getPage("ZooWebSite/2015/Menu/"+$i+"Icns").encode('utf-8').split(',') #except #set icons=[] #end try
#try #set links=$server.wiki.getPage("ZooWebSite/2015/Menu/"+$i+"Links").encode('utf-8').split(',') #except #set links=[] #end try
#set cnt=0
#for j in $pages #try #set ipages=$server.wiki.getPage("ZooWebSite/2015/Menu/"+$i+"/"+$j).encode('utf-8').split(',') #except #set ipages=[] #end try
#if len(ipages)==0
<li><a href="#if len($links)>0#$links[$cnt]#else#/new/$i/$j#end if#">#if len($icons)>0#<i class="fa fa-fw fa-$icons[$cnt]"></i>#end if# $j</a></li>
#set $cnt=$cnt+1 #else
#try #set icons=$server.wiki.getPage("ZooWebSite/2015/Menu/"+$i+"/"+$j+"Icns").encode('utf-8').split(',') #except #set icons=[] #end try
#try #set links=$server.wiki.getPage("ZooWebSite/2015/Menu/"+$i+"/"+$j+"Links").encode('utf-8').split(',') #except #set links=[] #end try
<li class="dropdown-header">$j</li>
#set cnt=0 #for k in $ipages
<li><a href="#if len($links)>0#$links[$cnt]#else#/new/$i/$k#end if#">#if len($icons)>0#<i class="fa fa-fw fa-$icons[$cnt]"></i>#end if# $k</a></li>
#set $cnt=$cnt+1 #end for #set $tcnt=$tcnt+1 #if $tcnt<len($pages)
<li class="divider"></li>
#end if
#end if
#end for
</ul>
</li>
#end for
</ul>
</div>
</div>
<div class="subn"> <nav class="navbar navbar-lower" role="navigation"> <div class="container">
<ol class="breadcrumb zbr">
<li class="active">#if $inputstmpl?value?!="Welcome"#<a href="/new/">#end if#<i class="fa fa-home"></i>#if $inputstmpl?value?!="Welcome"#</a>#else# Home#end if#</li>
#if $inputstmpl?value?!="Welcome" #for kk in $inputstmpl?value?.split('/')
<li class="active">$kk</li>
#end for #end if
</ol> <ul class="list-inline pull-right topr">
<li><a href="https://github.com/kalxas/zoo-project/" class="btn btn-sm btn-hover btn-zoos hello" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Github"><span class="fa fa-github"></span></a></li> <li><a href="https://www.openhub.net/p/zoo-project" class="btn btn-sm btn-hover btn-zoos hello" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Openhub"><span class="fa fa-circle-o"></span></a></li> <li><a href="https://twitter.com/ZOO_Project" class="btn btn-sm btn-hover btn-zoos hello" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Twitter"><span class="fa fa-twitter"></span></a></li>
</ul>
</div> </nav> </div> </nav>