2020-12-11 19:52:55 +01:00
|
|
|
<?php
|
|
|
|
if (!isset($title)) {
|
|
|
|
$title = DEFAULT_TITLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
$bodyClass = isset($bodyClass) ? ' class="'. $bodyClass .'"' : '';
|
|
|
|
|
|
|
|
function changeEveryNSec ($n, $a) {
|
|
|
|
|
|
|
|
$nbElts = count($a);
|
|
|
|
|
|
|
|
$refresh = $n * $nbElts;
|
|
|
|
|
|
|
|
return $a[floor((time() % $refresh) / ($refresh / $nbElts))];
|
|
|
|
}
|
|
|
|
|
|
|
|
$taglines = [
|
2021-08-21 15:08:27 +02:00
|
|
|
|
|
|
|
// '<span>terrains numériques constructibles</span> <span>pour junistes</span>',
|
|
|
|
// '<span>mondes 3D</span> <span>pour rencontrer d\'autres junistes</span>',
|
|
|
|
// '<span>pour empiler des cubes</span> <span>entre junistes</span>',
|
|
|
|
// '<span>parc d\'attractions numériques</span> <span>pour la monnaie libre Ğ1 !</span>',
|
|
|
|
// '<span>des lieux pour créer, jouer, gagner ou dépenser des Ğ1</span>',
|
|
|
|
// '<span>espaces de convivialité numériques</span> <span>pour junistes</span>',
|
|
|
|
'<span>Mieux que</span> <span>"la vraie vie”</span> !'
|
2020-12-11 19:52:55 +01:00
|
|
|
];
|
|
|
|
|
2021-08-21 15:08:27 +02:00
|
|
|
$siteDesc = changeEveryNSec(86400, $taglines);
|
2020-12-11 19:52:55 +01:00
|
|
|
|
|
|
|
?>
|
|
|
|
<!doctype html>
|
|
|
|
<html lang="fr">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
|
|
|
|
<title><?php echo $title; ?></title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="<?php echo ROOT_URL;?>css/layout.css"/>
|
|
|
|
<link rel="stylesheet" href="<?php echo ROOT_URL;?>css/layout-home.css"/>
|
|
|
|
<link rel="stylesheet" href="<?php echo ROOT_URL;?>css/layout-donors.css"/>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="<?php echo ROOT_URL;?>css/decoration.css"/>
|
|
|
|
<link rel="stylesheet" href="<?php echo ROOT_URL;?>css/decoration-home.css"/>
|
|
|
|
<link rel="stylesheet" href="<?php echo ROOT_URL;?>css/decoration-donors.css"/>
|
|
|
|
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo ROOT_URL; ?>Minetest_logo-240px.png"/>
|
|
|
|
|
2021-08-21 15:08:27 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo ROOT_URL . 'css/hourly-theme.php'; ?>"/>
|
2020-12-11 19:52:55 +01:00
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body<?php echo $bodyClass; ?>>
|
|
|
|
|
|
|
|
<header>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$elt = isset($isHome) ? 'h1' : 'p';
|
|
|
|
?>
|
|
|
|
|
|
|
|
<<?php echo $elt; ?>>
|
|
|
|
<a href="<?php echo ROOT_URL; ?>">
|
|
|
|
<span class="sitename">Juneland</span>
|
|
|
|
|
|
|
|
<span class="sr-only"> : </span>
|
|
|
|
|
|
|
|
<span class="sitedesc"><?php echo $siteDesc; ?></span>
|
|
|
|
</a>
|
|
|
|
</<?php echo $elt; ?> >
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<button>
|
|
|
|
<span>Afficher le menu</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<?php include('menu.php'); ?>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main id="content">
|