2021-09-01 15:31:18 +00:00
< ? 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 )) {
2021-09-06 07:15:56 +00:00
$templateUrlPrefix = htmlspecialchars ( $templateUrlPrefix . DIRECTORY_SEPARATOR );
2021-09-01 15:31:18 +00:00
}
2021-09-06 07:04:29 +00:00
if ( $templateParameters [ " render " ] === false ) {
return ;
}
2021-09-01 15:31:18 +00:00
?>
2021-08-30 15:17:53 +00:00
<! 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 " >
2021-09-01 15:31:18 +00:00
< title >< ? = htmlspecialchars ( $templateParameters [ " title " ]); ?> – Stafett for livet</title>
2021-08-30 15:17:53 +00:00
2021-09-01 15:31:18 +00:00
< link rel = " stylesheet " href = " <?= $templateUrlPrefix ;?>style/main.css " >
< link rel = " icon " href = " <?= $templateUrlPrefix ;?>img/cropped-kf-propell-ikon-32x32.png " sizes = " 32x32 " >
2021-08-30 15:17:53 +00:00
< body >
< div class = " navbar-top-head " >
< div class = " navbar-top-inner " >
<!-- Jalla løsning -->
2021-09-01 15:31:18 +00:00
< 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 = " " >
2021-08-31 07:11:27 +00:00
< div style = " margin-left: 44px; " >
2021-09-01 11:01:33 +00:00
< div style = " font-size: 24px; margin-top: -38px; " > Stafett for livet </ div >
2021-08-31 07:11:27 +00:00
< div style = " font-size: 10px; margin-top: -6px; " >< b > KREFT </ b > FORENINGEN </ div >
</ div >
</ a >
2021-08-30 15:17:53 +00:00
</ div >
</ div >
< div class = " grid-container " >
< div >
< nav >
< ul >
2021-09-01 15:31:18 +00:00
< li >< a href = " <?= $templateUrlPrefix ;?> " > Forside </ a ></ li >
2021-09-06 07:04:29 +00:00
< li >< a href = " <?= $templateUrlPrefix ;?>login.php " > Logg inn </ a ></ li >
2021-09-01 15:31:18 +00:00
< li >< a href = " <?= $templateUrlPrefix ;?>example.php " > Eksempel </ a ></ li >
2021-08-30 15:17:53 +00:00
</ ul >
</ nav >
</ div >
< div >
< main >