Website/view/header.php
2023-05-02 02:13:29 +02:00

20 lines
487 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): ?>
<main>
<h1><a href="<?=url('/')?>">Willy's Website</a> | <?=$title?></h1>
<?php endif; ?>
<main>