123456789101112131415161718192021222324252627282930 |
- <nav class="navbar navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <a href="#" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
- aria-expanded="false" aria-controls="navbar">Menu</a>
- <a class="navbar-brand" href="/">Browser Game</a>
- </div>
- <div id="navbar" class="collapse navbar-collapse">
- <?php if($isLoggedIn) { ?>
- <ul class="nav navbar-nav">
- <li class="active"><a href="/dashboard">Dashboard</a></li>
- <li><a href="/profile">Profile</a></li>
- <li><a href="/logout">Logout</a></li>
- </ul>
- <?php } else { ?>
- <form class="navbar-form navbar-right" method="post" action="/login">
- <div class="form-group">
- <input type="email" name="email" placeholder="your@email.com" class="form-control">
- </div>
- <div class="form-group">
- <input type="password" name="password" placeholder="password" class="form-control">
- </div>
- <input type="hidden" name="current" value="<?php echo $url->toString(); ?>" />
- <button type="submit" name="submit" class="btn">Login</button>
- </form>
- <?php } ?>
- </div>
- </div>
- </nav>
|