2014-09-19 20:19:24 +02:00
<? IF LoggedIn ?>
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-09-19 20:19:24 +02:00
<li class="modtitle<? IF Active ?> active<? ENDIF ?>"><a href="/mods/global/<? VAR ModName ?>"><? 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-09-19 20:19:24 +02:00
<li class="modtitle<? 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 ?>
</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 ?>
2014-03-19 08:15:52 +01:00
<? 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 ?>
2014-03-19 08:15:52 +01:00
<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>
2014-09-19 20:19:24 +02:00
<li><a href="http://docs.znc.in" target="_blank">Documentation</a></li>
2014-02-11 05:44:19 +01:00
<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-09-19 20:19:24 +02:00
<li>
<div class="navbar-login">
<div class="row">
<div class="col-lg-4">
<p class="text-center">
<span class="fa fa-user icon-size"></span>
</p>
</div>
<div class="col-lg-8">
<p class="text-left"><strong>User: <? VAR SessionUser ?></strong></p>
<p class="text-left small">IP Address: <? VAR SessionIP ?></p>
<p class="text-left">
2016-01-30 22:44:52 +01:00
<a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>/mods/global/webadmin/edituser" class="btn btn-primary btn-block btn-sm"><i class="fa fa-wrench"></i> Edit Settings</a>
2014-09-19 20:19:24 +02:00
</p>
</div>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="navbar-login navbar-login-session">
<div class="row">
<div class="col-lg-12">
<p>
<a href="/logout" class="btn btn-danger btn-block"><i class="fa fa-sign-out"></i> Sign Out</a>
</p>
</div>
</div>
</div>
</li>
</ul>
2014-02-11 05:44:19 +01:00
</li>
<? ENDIF ?>
</ul>
</div>
</div>
2014-09-19 20:19:24 +02:00
</div>
2016-01-30 22:44:52 +01:00
<? ENDIF ?>