<?php $pseudo = $_SESSION['pseudo'];
$role = getUserRole($pseudo);?>

<link rel="stylesheet" href="../css/profil.css">
<nav class="menu">
   <a href="../views/index.php"><img src="../img/logov2.png" alt="Logo 'Vendeur de rêve'" width="175" height="auto"></a>
    <ul>
        <li class="but1">
            <a href="../views/index.php">ACCUEIL</a> 
        </li>
        <li class="but1">
            <a href="../views/my_event.php">MES ÉVÉNEMENTS</a> 
        </li>
        <li class="but1">
            <a href="../views/profil.php">MON PROFIL</a>     
        </li>

        <?php if ($role === 'admin'): ?>
    <li class="but1">
        <a href="../views/creator.php">CRÉER ÉVÈNEMENT</a>
    </li>
<?php endif; ?>
    </ul>
</nav>