commit existing workshops
This commit is contained in:
15
workshop4/Views/template/footer.phtml
Executable file
15
workshop4/Views/template/footer.phtml
Executable file
@@ -0,0 +1,15 @@
|
||||
</main>
|
||||
|
||||
|
||||
<footer class="row">
|
||||
<div id="footer"> <!--class="col-xs-12"-->
|
||||
<p>Web-site development using the MVC design pattern and the Bootstrap CSS framework</p>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
52
workshop4/Views/template/header.phtml
Executable file
52
workshop4/Views/template/header.phtml
Executable file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
|
||||
|
||||
<link href="./css/my-style.css" rel="stylesheet">
|
||||
|
||||
<title>Server-Side Programming - <?php echo $view->pageTitle; ?></title>
|
||||
</head>
|
||||
|
||||
<body role="document">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark p-3 border rounded">
|
||||
<a class="navbar-brand" href="#"><img src="images/new_uos_logo.jpg" alt="Salford University" /></a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target='#navbarToggle' aria-controls="navbarToggle" aria-expanded="false" aria-label="Toggle Navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarToggle">
|
||||
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
|
||||
<li class="nav-item <?php if(str_contains($view->pageTitle, 'Home')) echo "active" ?>">
|
||||
<a class="nav-link" href='index.php'>Home <?php if(str_contains($view->pageTitle, "Home")) echo "<span class='sr-only'>(Current)</span>" ?></a>
|
||||
</li>
|
||||
<li class="nav-item <?php if(str_contains($view->pageTitle, "Page1")) echo "active" ?>">
|
||||
<a class="nav-link" href='page1.php'>Page 1 <?php if(str_contains($view->pageTitle, "Page1")) echo "<span class='sr-only'>(Current)</span>" ?></a>
|
||||
</li>
|
||||
<li class="nav-item <?php if(str_contains($view->pageTitle, 'Converter')) echo "active" ?>">
|
||||
<a class="nav-link" href='converter.php'>Converter <?php if(str_contains($view->pageTitle, "Converter")) echo "<span class='sr-only'>(Current)</span>" ?></a>
|
||||
</li>
|
||||
<li class="nav-item <?php if(str_contains($view->pageTitle, 'Abouttemplate')) echo "active" ?>">
|
||||
<a class="nav-link" href='abouttemplate.php'>About MVC <?php if(str_contains($view->pageTitle, "Abouttemplate")) echo "<span class='sr-only'>(Current)</span>" ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main id="content"> <!--class="col-xs-6 col-sm-9 col-md-10"-->
|
||||
|
||||
|
||||
|
45
workshop4/Views/template/oldheader.phtml
Executable file
45
workshop4/Views/template/oldheader.phtml
Executable file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
|
||||
|
||||
<link href="./css/my-style.css" rel="stylesheet">
|
||||
|
||||
<title>Server-Side Programming - <?php echo $view->pageTitle; ?></title>
|
||||
</head>
|
||||
|
||||
<body role="document">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div id="title" class="col-xs-12">
|
||||
<img src="../../images/new_uos_logo.jpg" alt="Salford University" />
|
||||
<div class="pull-right"> <h1><?php echo $view->pageTitle ?> </h1></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<nav id="menu" class="col-xs-6 col-sm-3 col-md-2">
|
||||
<h2 class="pb-2">Menu</h2>
|
||||
<ul class="nav flex-column">
|
||||
<li><a href="./index.php">Home</a></li>
|
||||
<li><a href="./page1.php">Page 1</a></li>
|
||||
<li><a href="./converter.php">Converter</a></li>
|
||||
<li><a href="./abouttemplate.php">About MVC</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<main id="content" class="col-xs-6 col-sm-9 col-md-10">
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user