Website/view/header.php

20 lines
487 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): ?>
2023-03-30 21:58:54 +00:00
<main>
2023-05-02 00:13:29 +00:00
<h1><a href="<?=url('/')?>">Willy's Website</a> | <?=$title?></h1>
2023-04-08 22:08:53 +00:00
<?php endif; ?>
<main>