Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.

Commit

Permalink
changed page names to match a style
Browse files Browse the repository at this point in the history
added instruction.php for issue #5
  • Loading branch information
n-aspen committed May 27, 2019
1 parent 115b74b commit b4155e8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions Instructions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions about.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<head>
<?php include'./include/head.php';
$pageTitle = 'about mov51';
$pageTitle = 'About';
?>
<title><?= $pageTitle ?></title>
<title><?= $pageTitle . " - mov51"?></title>
</head>
<html>
<body>
Expand Down
9 changes: 6 additions & 3 deletions include/layout/navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link <?php if($pageTitle == 'home'){ echo"activePage";}?>" href="index.php">Home</a>
<a class="nav-link <?php if($pageTitle == 'Home'){ echo"activePage";}?>" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link <?php if($pageTitle == 'about mov51'){ echo"activePage";}?>" href="about.php">About</a>
<a class="nav-link <?php if($pageTitle == 'About'){ echo"activePage";}?>" href="about.php">About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle <?php if($pageTitle == 'sprout server'){ echo"activePage";}?>" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Expand All @@ -23,7 +23,7 @@
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle disabled <?php if($pageTitle == 'mandates'){ echo"activePage";}?>" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="nav-link dropdown-toggle disabled <?php if($pageTitle == 'The mandates'){ echo"activePage";}?>" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
The Mandates
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
Expand All @@ -32,6 +32,9 @@
<a class="dropdown-item" href="sprout.php#sproutStaff">Moderators</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled <?php if($pageTitle == 'Instructions'){ echo"activePage";}?>" href="./Instructions.php">About</a>
</li>
</ul>
</div>
</nav>
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<head>
<?php include'./include/head.php';
$pageTitle = 'home';
$pageTitle = 'Home';
?>
<title><?= $pageTitle ?></title>
<title><?= $pageTitle . " - mov51"?></title>
</head>
<html>
<body>
Expand Down
2 changes: 1 addition & 1 deletion sprout.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php include'./include/head.php';
$pageTitle = 'sprout server';
?>
<title><?= $pageTitle ?></title>
<title><?= $pageTitle . " - mov51"?></title>
</head>
<html>
<body>
Expand Down

0 comments on commit b4155e8

Please sign in to comment.