Website/view/header.php

26 lines
507 B
PHP
Raw Normal View History

2023-04-08 22:08:53 +00:00
<?php
if (!isset($is_index)) {
$is_index = false;
}
?>
2023-03-21 17:23:14 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?=url('/')?>style.css">
2023-04-08 22:08:53 +00:00
<title><?=$title?><?php if ($is_index) {echo '';} else {echo ' | Willy\'s Website';}?></title>
2023-03-21 17:23:14 +00:00
</head>
<body>
2023-04-08 22:08:53 +00:00
<?php if (!$is_index): ?>
<nav>
<a href="<?=url('/')?>">&lt; Go back</a>
</nav>
<hr>
2023-03-30 21:58:54 +00:00
<main>
2023-04-08 22:08:53 +00:00
<h1><?=$title?></h1>
<?php endif; ?>
<main>