Commit cc496447 authored by Liang Wu's avatar Liang Wu

déconnecter

parent c24a29fd
......@@ -8,4 +8,5 @@
<link href="bootstrap/css/freelancer.css" rel="stylesheet">
</head>
<body id="page-top">
\ No newline at end of file
......@@ -6,7 +6,8 @@ $mymenu = array(
'accueil' => array( 'Accueil' ),
'profil_affichage' => array( 'Profil' ),
'aliments' => array('Aliments'),
'journal' => array('Journal')
'journal' => array('Journal'),
'disconnected' => array('Déconnexion')
);
function renderMenuToHTML($currentPageId) {
......@@ -14,6 +15,8 @@ global $mymenu;
// ...
$id='';
echo '<nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav" > <div class="container"> <a class="navbar-brand js-scroll-trigger" href="#page-top">Manger mieux </a> <div class="collapse navbar-collapse" id="navbarResponsive"> <ul class="navbar-nav ml-auto">';
foreach($mymenu as $pageId => $pageParameters) {
if ($pageId == $currentPageId){
$id=" id='active'";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment