<?php
session_start();
$config=array();
foreach(Spyc::YAMLLoad(CHEMIN.DOSSIER_CONTENUS."/config_site.yaml") as $cle=> $valeur){
   $GLOBALS[$cle]=$valeur["contenu"];
}
?><!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Zine builder</title>
        <link rel="stylesheet" href="<?= URL; ?>assets/rubik-webfontkit/stylesheet.css">
        <link rel="stylesheet" href="<?= URL; ?>assets/bootstrap.css">
        <link rel="stylesheet" href="<?= URL; ?>assets/style.css">
        <link rel="stylesheet" href="<?= URL.DOSSIER_CONTENUS; ?>/custom.css">
        <link rel="stylesheet" href="<?= URL; ?>assets/bootstrap-icons/bootstrap-icons.css">
        
        <script src="<?= URL; ?>assets/bootstrap-js/bootstrap.bundle.min.js"></script>
        <script src="<?= URL; ?>assets/jquery-3.5.1.min.js"></script>
    </head>
    <body>
        <header class="container-fluid px-4 pt-4 pb-3">
            <div class="row align-items-end justify-content-between mb-1">
            <h1 class="titre-huge decoration-hover col-auto"><a class="" href="<?= URL; ?>"><?= $GLOBALS["titre_site"]; ?></a></h1>
                <?php
            if(isset($_SESSION['UserData']['Username'])){
             echo "<div class='col-auto'><a href='".URL."admin' class='decoration-hover'>Accès admin</a></div>";
            }
            ?>
            </div>
            
            <div class="texte"><?= $GLOBALS["baseline_site"]; ?></div>
        </header>
