Commit cc496447 authored by Liang Wu's avatar Liang Wu

déconnecter

parent c24a29fd
...@@ -8,4 +8,5 @@ ...@@ -8,4 +8,5 @@
<link href="bootstrap/css/freelancer.css" rel="stylesheet"> <link href="bootstrap/css/freelancer.css" rel="stylesheet">
</head> </head>
<body id="page-top"> <body id="page-top">
\ No newline at end of file
...@@ -6,7 +6,8 @@ $mymenu = array( ...@@ -6,7 +6,8 @@ $mymenu = array(
'accueil' => array( 'Accueil' ), 'accueil' => array( 'Accueil' ),
'profil_affichage' => array( 'Profil' ), 'profil_affichage' => array( 'Profil' ),
'aliments' => array('Aliments'), 'aliments' => array('Aliments'),
'journal' => array('Journal') 'journal' => array('Journal'),
'disconnected' => array('Déconnexion')
); );
function renderMenuToHTML($currentPageId) { function renderMenuToHTML($currentPageId) {
...@@ -14,6 +15,8 @@ global $mymenu; ...@@ -14,6 +15,8 @@ global $mymenu;
// ... // ...
$id=''; $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">'; 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) { foreach($mymenu as $pageId => $pageParameters) {
if ($pageId == $currentPageId){ if ($pageId == $currentPageId){
$id=" id='active'"; $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