109 lines
4.6 KiB
Cheetah
109 lines
4.6 KiB
Cheetah
<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>
|
|
<a class="navbar-brand" href="/">ZNC</a>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li class="topitem<? IF !ModName && PageName == "index" ?> active<? ENDIF ?>"><a href="/"><i class="fa fa-home"></i> Home</a></li>
|
|
<? 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 ?>
|
|
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR ModPath ?>"><? VAR Title ?></a></li>
|
|
<? 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 ?>
|
|
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR ModPath ?>"><? VAR Title ?></a></li>
|
|
<? 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 ?>
|
|
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR ModPath ?>"><? VAR Title ?></a></li>
|
|
<? LOOP SubPageLoop ?>
|
|
<li class="subitem<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR ModPath ?><? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a></li>
|
|
<? ENDLOOP ?>
|
|
<? ENDLOOP ?>
|
|
<? ENDIF ?>
|
|
<? ENDLOOP ?>
|
|
</ul>
|
|
</li>
|
|
<? ENDIF ?>
|
|
|
|
<? IF UserModLoop ?>
|
|
<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">
|
|
<li class="dropdown-header">User Settings</li>
|
|
<? LOOP UserModLoop SORTASC=ModName ?>
|
|
<? LOOP SubPageLoop ?>
|
|
<li class="subitem<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR ModPath ?><? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a></li>
|
|
<? ENDLOOP ?>
|
|
<? ENDLOOP ?>
|
|
</li>
|
|
<? IF GlobalModLoop ?>
|
|
<li class="dropdown-header">Global Settings</li>
|
|
<? LOOP GlobalModLoop SORTASC=ModName ?>
|
|
<? LOOP SubPageLoop ?>
|
|
<li class="subitem<? IF Active ?> active<? ENDIF ?>"><a href="<? VAR ModPath ?><? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a></li>
|
|
<? 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">
|
|
<li><a href="/mods/user/webadmin/edituser"><i class="fa fa-cogs"></i> Your Settings</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="/logout"><i class="fa fa-sign-out"></i> Sign Out</a></li>
|
|
</ul>
|
|
</li>
|
|
<? ENDIF ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div> |