49 lines
1.9 KiB
PHP
49 lines
1.9 KiB
PHP
<?php
|
||
|
||
// When including this template from other directories, using relative url paths is not sufficient. Therefore we use a prefix to ensure that the correct url path is given.
|
||
// Typically we put this before any local urls, such as navigation, icons etc to ensure that they use the correct path.
|
||
$templateUrlPrefix = dirname(str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', realpath(__DIR__)));
|
||
if ((strlen($templateUrlPrefix) > 1)) {
|
||
$templateUrlPrefix = $templateUrlPrefix . DIRECTORY_SEPARATOR;
|
||
}
|
||
|
||
?>
|
||
<!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.0">
|
||
<title><?=htmlspecialchars($templateParameters["title"]);?> – Stafett for livet</title>
|
||
|
||
<link rel="stylesheet" href="<?=$templateUrlPrefix;?>style/main.css">
|
||
<link rel="icon" href="<?=$templateUrlPrefix;?>img/cropped-kf-propell-ikon-32x32.png" sizes="32x32">
|
||
<body>
|
||
|
||
<div class="navbar-top-head">
|
||
<div class="navbar-top-inner">
|
||
<!-- Jalla løsning -->
|
||
<a href="<?=$templateUrlPrefix;?>" style="display: block; max-width: max-content;">
|
||
<img style="display: block; height: 32px;" src="<?=$templateUrlPrefix;?>img/cropped-kf-propell-ikon-32x32.png" alt="">
|
||
<div style="margin-left: 44px;">
|
||
<div style="font-size: 24px; margin-top: -38px;">Stafett for livet</div>
|
||
<div style="font-size: 10px; margin-top: -6px;"><b>KREFT</b>FORENINGEN</div>
|
||
</div>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="grid-container">
|
||
|
||
<div>
|
||
<nav>
|
||
<ul>
|
||
<li><a href="<?=$templateUrlPrefix;?>">Forside</a></li>
|
||
<li><a href="<?=$templateUrlPrefix;?>example.php">Eksempel</a></li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
|
||
<div>
|
||
<main>
|