<nav id="menu-principal" class="navbar navbar-expand-xl navbar-dark fixed-top ">
	<div class="container">
		<a class="navbar-brand" href="[(#URL_PAGE{sommaire})]">[(#LOGO_SITE_SPIP|inserer_attribut{alt, #NOM_SITE_SPIP})]</a>
		<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#liste-deroulante" aria-controls="liste-deroulante" aria-expanded="false" aria-label="Toggle navigation">
			<i class="fa fa-bars" aria-hidden="true"></i>
		</button>
		<div class="collapse navbar-collapse" id="liste-deroulante">
			<ul class="navbar-nav ml-auto">
				<li class="nav-item [(#SI_PAGE{groupes}|oui) active]">
					<a class="nav-link" href="[(#URL_PAGE{groupes})]">Groupes</a>
				</li>
				<li class="nav-item dropdown [(#SI_PAGE{agora}|oui) active]">
					<a class="nav-link dropdown-toggle" href="[(#URL_PAGE{agora})]" id="mediasDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Agora</a>
					<div class="dropdown-menu" aria-labelledby="mediasDropdown">
					<BOUCLE_menu_forums(ARTICLES){titre_mot=agora}{tout}>
						<a class="dropdown-item" href="[(#URL_PAGE{agora}|parametre_url{id_article,#ID_ARTICLE})]">#TITRE</a>
					</BOUCLE_menu_forums>
					</div>
				</li>
		<?php if (isset($GLOBALS['visiteur_session']['statut']) AND in_array($GLOBALS['visiteur_session']['statut'],array("0minirezo","1comite"))) { ?>
				<li class="nav-item [(#SI_PAGE{forum_discussion}|oui) active]">
					<a class="nav-link" href="[(#URL_PAGE{espace_membre}|parametre_url{rub_forum,#CONFIG{balint/id_rub_forum_prive}})]">Espace membres</a>
				</li>
		<?php } ?>
		
				<li class="nav-item [(#SI_PAGE{charte}|oui) active]">
					<a class="nav-link" href="[(#URL_PAGE{charte})]">Charte</a>
				</li>
				<li class="nav-item [(#SI_PAGE{presse}|oui) active]">
					<a class="nav-link" href="[(#URL_PAGE{presse})]">Presse</a>
				</li>
				<li class="nav-item [(#SI_PAGE{nous-contacter}|oui) active]">
					<a class="nav-link" href="[(#URL_PAGE{nous-contacter})]">Contact</a>
				</li>
		<?php if (!isset($GLOBALS['visiteur_session']['id_auteur'])) {	?>
				<li class="nav-item">
					<a class="nav-link" href="[(#URL_PAGE{espace_membre})]"><span class="btn bouton-login">Connexion</span></a>
				</li>
		<?php } ?>
		<?php if (isset($GLOBALS['visiteur_session']['id_auteur'])) {	?>
				<li class="nav-item dropdown">
					<a class="nav-link dropdown-toggle" href="[(#URL_PAGE{agora})]" id="mediasDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
						<i class="fas fa-user"></i>&nbsp;<?php echo $GLOBALS['visiteur_session']['nom'] ?>
					</a>
					<div class="dropdown-menu dropdown-menu-right" aria-labelledby="mediasDropdown">
						<a class="dropdown-item" href="[(#URL_PAGE{modifier_auteur}|parametre_url{retour,#SELF})]">
							<i class="fas fa-user-circle-o"></i> Mon profil
						</a>
					<?php if (isset($GLOBALS['visiteur_session']['statut']) AND in_array($GLOBALS['visiteur_session']['statut'],array("0minirezo","1comite"))) { ?>
						<a class="dropdown-item" href="[(#URL_PAGE{editer_article})]">
							<i class="fas fa-pencil"></i> Rédiger un article
						</a>
						<a class="dropdown-item" href="[(#URL_PAGE{brouillons})]">
							<i class="fas fa-file"></i> Brouillons
						</a>
					<?php } ?>
					<?php if (isset($GLOBALS['visiteur_session']['statut']) AND in_array($GLOBALS['visiteur_session']['statut'],array("0minirezo"))) { ?>
						<a class="dropdown-item" href="[(#URL_PAGE{editer_groupe})]">
							<i class="fas fa-globe"></i> Créer un groupe
						</a>
						<a class="dropdown-item" href="[(#URL_PAGE{gerer_auteurs})]">
							<i class="fas fa-users"></i> Gérer les membres
						</a>
					<?php } ?>
						<a class="dropdown-item" href="[(#URL_LOGOUT{#URL_PAGE{sommaire}})]" rel="nofollow">
							<i class="fas fa-sign-out"></i> Déconnexion
						</a>
					</div>
				</li>
		<?php } ?>
			</ul>
		</div>
	</div>
</nav>