Optimisation du header/menu
This commit is contained in:
parent
aac12a6e54
commit
a2aa86161d
@ -55,4 +55,22 @@
|
|||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
|
||||||
|
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
<ul class="navbar-nav ml-auto">
|
||||||
|
<li class="nav-item <?php echo $indexActive?>">
|
||||||
|
<a class="nav-link" href="/index.php">Accueil</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item <?php echo $functionlistActive?>">
|
||||||
|
<a class="nav-link" href="/views/function-list.php">Liste des fonctions</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" target="_blank" href="https://docs.google.com/forms/d/1NliUWi3lntHDM42Td0C47J0cZKgnYilxT_0UcdmVaog/">Feedback Formulaire</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" target="_blank" href="https://github.com/Divlo/FunctionProject">Code Source</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
@ -1,18 +0,0 @@
|
|||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/index.php">Accueil</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/views/function-list.php">Liste des fonctions</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" target="_blank" href="https://docs.google.com/forms/d/1NliUWi3lntHDM42Td0C47J0cZKgnYilxT_0UcdmVaog/">Feedback Formulaire</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" target="_blank" href="https://github.com/Divlo/FunctionProject">Code Source</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
20
index.php
20
index.php
@ -4,26 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("./incl/header.php");?>
|
<?php include("./incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
<li class="nav-item active">
|
|
||||||
<a class="nav-link" href="/index.php">Accueil<span class="sr-only">(current)</span></a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/views/function-list.php">Liste des fonctions</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" target="_blank" href="https://docs.google.com/forms/d/1NliUWi3lntHDM42Td0C47J0cZKgnYilxT_0UcdmVaog/">Feedback Formulaire</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" target="_blank" href="https://github.com/Divlo/FunctionProject">Code Source</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Bienvenue sur <span class="important">FunctionProject</span>! 🎉</h1>
|
<h1>Bienvenue sur <span class="important">FunctionProject</span>! 🎉</h1>
|
||||||
|
@ -2,16 +2,21 @@
|
|||||||
|
|
||||||
$currentpage = $_SERVER['PHP_SELF'];
|
$currentpage = $_SERVER['PHP_SELF'];
|
||||||
|
|
||||||
|
$indexActive = '';
|
||||||
|
$functionlistActive = '';
|
||||||
|
|
||||||
switch ($currentpage) {
|
switch ($currentpage) {
|
||||||
case '/index.php':
|
case '/index.php':
|
||||||
$title = 'FunctionProject';
|
$title = 'FunctionProject';
|
||||||
$description = 'FunctionProject est un projet créé par Divlo qui a pour but de rassembler plein de mini-programme (fonctions JavaScript) permettant de faire plusieurs choses comme savoir la météo, générer un nombre aléatoire, etc.';
|
$description = 'FunctionProject est un projet créé par Divlo qui a pour but de rassembler plein de mini-programme (fonctions JavaScript) permettant de faire plusieurs choses comme savoir la météo, générer un nombre aléatoire, etc.';
|
||||||
$image = 'https://function.divlo.fr/img/FunctionProject_icon.png';
|
$image = 'https://function.divlo.fr/img/FunctionProject_icon.png';
|
||||||
|
$indexActive = 'active';
|
||||||
break;
|
break;
|
||||||
case '/views/function-list.php':
|
case '/views/function-list.php':
|
||||||
$title = 'Liste des fonctions';
|
$title = 'Liste des fonctions';
|
||||||
$description = 'La liste des mini-programmes (fonctions JavaScript).';
|
$description = 'La liste des mini-programmes (fonctions JavaScript).';
|
||||||
$image = 'https://function.divlo.fr/img/FunctionProject_icon.png';
|
$image = 'https://function.divlo.fr/img/FunctionProject_icon.png';
|
||||||
|
$functionlistActive = 'active';
|
||||||
break;
|
break;
|
||||||
case '/views/function-views/calculateAge.php':
|
case '/views/function-views/calculateAge.php':
|
||||||
$title = 'Quelle âge avez-vous ?';
|
$title = 'Quelle âge avez-vous ?';
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("./incl/header.php");?>
|
<?php include("./incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("./incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Erreur <span class="important">404</span></h1>
|
<h1>Erreur <span class="important">404</span></h1>
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../incl/header.php");?>
|
<?php include("../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("../incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><span class="important">La météo</span> :</h1>
|
<h1><span class="important">La météo</span> :</h1>
|
||||||
|
@ -4,26 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../incl/header.php");?>
|
<?php include("../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<ul class="navbar-nav ml-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/index.php">Accueil</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item active">
|
|
||||||
<a class="nav-link" href="/views/function-list.php">Liste des fonctions<span class="sr-only">(current)</span></a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" target="_blank" href="https://docs.google.com/forms/d/1NliUWi3lntHDM42Td0C47J0cZKgnYilxT_0UcdmVaog/">Feedback Formulaire</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" target="_blank" href="https://github.com/Divlo/FunctionProject">Code Source</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../../incl/header.php");?>
|
<?php include("../../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("../../incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><span class="important"><?php echo $title?></span></h1>
|
<h1><span class="important"><?php echo $title?></span></h1>
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../../incl/header.php");?>
|
<?php include("../../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("../../incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><span class="important"><?php echo $title?></span> :</h1>
|
<h1><span class="important"><?php echo $title?></span> :</h1>
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../../incl/header.php");?>
|
<?php include("../../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("../../incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><span class="important"><?php echo $title?></span> :</h1>
|
<h1><span class="important"><?php echo $title?></span> :</h1>
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../../incl/header.php");?>
|
<?php include("../../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("../../incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><span class="important"><?php echo $title?></span> :</h1>
|
<h1><span class="important"><?php echo $title?></span> :</h1>
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<?php include("../../incl/header.php");?>
|
<?php include("../../incl/header.php");?>
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<?php include("../../incl/menu.php");?>
|
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><span class="important"><?php echo $title?></span> :</h1>
|
<h1><span class="important"><?php echo $title?></span> :</h1>
|
||||||
|
Reference in New Issue
Block a user