diff options
author | Malf Furious <m@lfurio.us> | 2018-02-11 16:41:55 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-02-11 16:41:55 -0500 |
commit | ddf56f3ccf8130d6c368fb50c9b58c19032eaeb7 (patch) | |
tree | 450a76a3e87780e9c3b3c9f51393ec61f487ca2e /app | |
parent | 918ca274b48ec4fd230d403f46e91a4f7bbd3020 (diff) | |
download | scrott-ddf56f3ccf8130d6c368fb50c9b58c19032eaeb7.tar.gz scrott-ddf56f3ccf8130d6c368fb50c9b58c19032eaeb7.zip |
Add start of navbar
Diffstat (limited to 'app')
-rw-r--r-- | app/view/stdpage.php | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php index 0af782a..7797ef5 100644 --- a/app/view/stdpage.php +++ b/app/view/stdpage.php @@ -15,6 +15,7 @@ namespace stdpage; require_once "class/globals.php"; +require_once "class/user.class.php"; ?> <?php function head(?string $title = NULL) : void { ?> @@ -79,3 +80,70 @@ require_once "class/globals.php"; <script type="text/javascript" src="<?=ar()?>/static/js/bootstrap.min.js"></script> <?php } ?> +<?php function nav() : void { ?> + + <nav class="navbar navbar-inverse navbar-fixed-top"> + <div class="container-fluid"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#scrottnav" aria-expanded="false"> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + + <a href="<?=ar()?>/" class="navbar-brand"> + <span class="glyphicon glyphicon-pencil"></span> Scrott + </a> + </div> + + <div class="collapse navbar-collapse" id="scrottnav"> + <?php if (!\user::getCurrent()) { ?> + <p class="navbar-text navbar-right"><i>Not Logged In </i></p> + <?php } else { ?> + <ul class="nav navbar-nav"> + <li><a href="<?=ap()?>"><span class="glyphicon glyphicon-refresh"></span></a></li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> + <i>Dashboard</i> <span class="caret"></span> + </a> + + <ul class="dropdown-menu"> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + </ul> + </li> + + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> + <span class="glyphicon glyphicon-plus"></span> <span class="caret"></span> + </a> + + <ul class="dropdown-menu"> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + </ul> + </li> + </ul> + + <ul class="nav navbar-nav navbar-right"> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> + User Button <span class="caret"></span> + </a> + + <ul class="dropdown-menu"> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + <li><a href="#">TODO</a></li> + </ul> + </li> + </ul> + <?php } ?> + </div> + </div> + </nav> + +<?php } ?> |