First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
40
app/Views/inc/header.php
Normal file
40
app/Views/inc/header.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php namespace App\Views\inc;
|
||||
/******************************************************************************************************************
|
||||
* RPSLS - Rock, Paper, Scissors, Lizard, Spock Game
|
||||
*
|
||||
* @file app/views/inc/header.php
|
||||
* @package App\Views\inc
|
||||
* @description
|
||||
* View - Header portion of the Main View Pages. Includes Page Header with Nav Bar.
|
||||
* @author Rick Hays
|
||||
* @date 11/15/2019
|
||||
* @license MIT
|
||||
* @copyright Copyright © 2019 - Rick Hays, All Rights Reserved.
|
||||
*
|
||||
* Revisions:
|
||||
* YYYY-MM-DD XX Description
|
||||
******************************************************************************************************************/
|
||||
?>
|
||||
<header>
|
||||
<!-- Fixed navbar -->
|
||||
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
||||
<a class="navbar-brand" href="/">R.P.S.L.S Game</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<?php echo ($page === '') ? '<li class="nav-item active">' : '<li class="nav-item">'; ?>
|
||||
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<?php echo ($page === 'play') ? '<li class="nav-item active">' : '<li class="nav-item">'; ?>
|
||||
<a class="nav-link" href="play">Play Game</a>
|
||||
</li>
|
||||
<?php echo ($page === 'top10') ? '<li class="nav-item active">' : '<li class="nav-item">'; ?>
|
||||
<a class="nav-link" href="top10">Top 10 Scores</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user