26 lines
507 B
PHP
26 lines
507 B
PHP
<?php
|
|
if (!isset($is_index)) {
|
|
$is_index = false;
|
|
}
|
|
?>
|
|
<!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">
|
|
<title><?=$title?><?php if ($is_index) {echo '';} else {echo ' | Willy\'s Website';}?></title>
|
|
</head>
|
|
<body>
|
|
<?php if (!$is_index): ?>
|
|
<nav>
|
|
<a href="<?=url('/')?>">< Go back</a>
|
|
</nav>
|
|
|
|
<hr>
|
|
|
|
<main>
|
|
<h1><?=$title?></h1>
|
|
<?php endif; ?>
|
|
|
|
<main>
|