Optimisation du header/menu

This commit is contained in:
Divlo 2019-08-23 11:36:13 +02:00
parent aac12a6e54
commit a2aa86161d
12 changed files with 24 additions and 80 deletions

View File

@ -56,3 +56,21 @@
<!-- Navigation -->
<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>

View File

@ -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>

View File

@ -4,26 +4,6 @@
<!-- Header -->
<?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 -->
<div class="container">
<h1>Bienvenue sur <span class="important">FunctionProject</span>! 🎉</h1>

View File

@ -2,16 +2,21 @@
$currentpage = $_SERVER['PHP_SELF'];
$indexActive = '';
$functionlistActive = '';
switch ($currentpage) {
case '/index.php':
$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.';
$image = 'https://function.divlo.fr/img/FunctionProject_icon.png';
$indexActive = 'active';
break;
case '/views/function-list.php':
$title = 'Liste des fonctions';
$description = 'La liste des mini-programmes (fonctions JavaScript).';
$image = 'https://function.divlo.fr/img/FunctionProject_icon.png';
$functionlistActive = 'active';
break;
case '/views/function-views/calculateAge.php':
$title = 'Quelle âge avez-vous ?';

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("./incl/header.php");?>
<!-- Menu -->
<?php include("./incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1>Erreur <span class="important">404</span></h1>

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("../incl/header.php");?>
<!-- Menu -->
<?php include("../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important">La météo</span> :</h1>

View File

@ -4,26 +4,6 @@
<!-- Header -->
<?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 -->
<div class="container">
<div class="row">

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Menu -->
<?php include("../../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span></h1>

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Menu -->
<?php include("../../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span> :</h1>

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Menu -->
<?php include("../../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span> :</h1>

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Menu -->
<?php include("../../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span> :</h1>

View File

@ -4,9 +4,6 @@
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Menu -->
<?php include("../../incl/menu.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span> :</h1>