zncstrap/webskins/_default_/tmpl/Navbar.tmpl

106 lines
4.6 KiB
Cheetah
Raw Normal View History

2014-02-11 05:44:19 +01:00
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2014-05-21 09:41:26 +02:00
<a class="navbar-brand" href="<? VAR URIPrefix TOP ?>/">ZNC</a>
2014-02-11 05:44:19 +01:00
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
2014-05-21 09:41:26 +02:00
<li class="topitem<? IF !ModName && PageName == "index" ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?>/"><i class="fa fa-home"></i> Home</a></li>
2014-02-11 05:44:19 +01:00
<? IF GlobalModLoop ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> Global Modules <b class="caret"></b></a>
<ul class="dropdown-menu">
<? LOOP GlobalModLoop SORTASC=ModName ?>
2014-05-21 09:41:26 +02:00
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>"><? VAR Title ?></a></li>
2014-02-11 05:44:19 +01:00
<? ENDLOOP ?>
</ul>
</li>
<? ENDIF ?>
<? IF UserModLoop ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> User Modules <b class="caret"></b></a>
<ul class="dropdown-menu">
<? LOOP UserModLoop SORTASC=ModName ?>
2014-05-21 09:41:26 +02:00
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>"><? VAR Title ?></a></li>
2014-02-11 05:44:19 +01:00
<? ENDLOOP ?>
</ul>
</li>
<? ENDIF ?>
<? IF NetworkModLoop ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> Network Modules <b class="caret"></b></a>
<ul class="dropdown-menu">
<? LOOP NetworkModLoop SORTASC=NetworkName ?>
<? IF ModLoop ?>
<li class="dropdown-header"><? VAR NetworkName ?></li>
<? LOOP ModLoop SORTASC=ModName ?>
2014-05-21 09:41:26 +02:00
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>"><? VAR Title ?></a></li>
2014-02-11 05:44:19 +01:00
<? LOOP SubPageLoop ?>
2014-05-21 09:41:26 +02:00
<li class="subitem<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?><? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a></li>
2014-02-11 05:44:19 +01:00
<? ENDLOOP ?>
<? ENDLOOP ?>
<? ENDIF ?>
<? ENDLOOP ?>
</ul>
</li>
<? ENDIF ?>
<? IF GlobalModLoop || UserModLoop ?>
2014-02-11 05:44:19 +01:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Settings <b class="caret"></b></a>
<ul class="dropdown-menu">
<? LOOP UserModLoop SORTASC=ModName ?>
<? LOOP SubPageLoop ?>
2014-05-21 09:41:26 +02:00
<li class="subitem<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?><? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a></li>
2014-02-11 05:44:19 +01:00
<? ENDLOOP ?>
<? ENDLOOP ?>
</li>
<? IF GlobalModLoop ?>
<li class="dropdown-header">Global Module</li>
2014-02-11 05:44:19 +01:00
<? LOOP GlobalModLoop SORTASC=ModName ?>
<? LOOP SubPageLoop ?>
2014-05-21 09:41:26 +02:00
<li class="subitem<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?><? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a></li>
2014-02-11 05:44:19 +01:00
<? ENDLOOP ?>
<? ENDLOOP ?>
<? ELSE ?>
<? BREAK ?>
<? ENDIF ?>
</li>
</ul>
</li>
<? ENDIF ?>
</ul>
<ul class="nav navbar-nav navbar-right">
<? IF LoggedIn ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-info-circle"></i> Help <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://wiki.znc.in/FAQ" target="_blank">FAQ</a></li>
<li><a href="http://wiki.znc.in/Modules" target="_blank">Modules</a></li>
<li><a href="http://wiki.znc.in/Using_commands" target="_blank">Using Commands</a></li>
<li><a href="http://wiki.znc.in/Connecting_to_ZNC" target="_blank">Connecting to ZNC</a></li>
</ul>
</li>
<? ENDIF ?>
<? IF LoggedIn ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <? VAR SessionUser ?> <b class="caret"></b></a>
<ul class="dropdown-menu">
2014-05-21 09:41:26 +02:00
<li><a href="<? VAR URIPrefix TOP ?>/logout"><i class="fa fa-sign-out"></i> Sign Out</a></li>
2014-02-11 05:44:19 +01:00
</ul>
</li>
<? ENDIF ?>
</ul>
</div>
</div>
</div>