2026-03-20 13:59:34 +01:00
|
|
|
<?php use App\Infrastructure\View as V; ?>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title><?php echo V::getHeadTitle(); ?></title>
|
|
|
|
|
<meta charset="UTF-8" />
|
2026-03-20 15:54:29 +01:00
|
|
|
<link rel="stylesheet" href="<?php V::assetUrl( 'css/style.css' ); ?>" />
|
2026-04-09 18:14:09 +02:00
|
|
|
<link rel="icon" type="image/x-icon" href="<?php V::assetUrl( 'images/Logo.ico' ); ?>" />
|
2026-03-20 13:59:34 +01:00
|
|
|
</head>
|
|
|
|
|
<body>
|
2026-04-02 16:33:32 +02:00
|
|
|
<header id="header">
|
2026-03-20 15:54:29 +01:00
|
|
|
<div id="logo">
|
2026-04-07 11:49:07 +02:00
|
|
|
<a href="<?php V::routeUrl( 'home'); ?>">
|
2026-04-02 16:33:32 +02:00
|
|
|
<img src="<?php V::assetUrl( 'images/Logo.jpg'); ?>" class="logo">
|
2026-03-20 15:54:29 +01:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<nav>
|
|
|
|
|
<ul class="nav-list">
|
2026-04-02 19:07:08 +02:00
|
|
|
<li><a id="google" class="nav-element" href="<?php V::routeUrl( 'home'); ?>">Acceuil</a></li>
|
|
|
|
|
<li><a id="unTest" class="nav-element" href="<?php V::routeUrl( 'recettes->index'); ?>">Liste des recettes</a></li>
|
2026-04-02 16:33:32 +02:00
|
|
|
<?php if( \App\Helpers\Authentification::isLoggedIn() ): ?>
|
|
|
|
|
<li><a id="login" class= "nav-element" href="<?php V::routeUrl( 'logout'); ?>">Logout</a></li>
|
2026-04-02 19:07:08 +02:00
|
|
|
<li><a id="addBouton" class="nav-element" href="<?php V::routeUrl( 'recettes->create'); ?>">Ajouter une Recette</a></li>
|
2026-04-03 15:27:51 +02:00
|
|
|
<li><a id="ingrManage" class="nav-element" href="<?php V::routeUrl( 'manage->ingredients'); ?>">Gérer les ingrédients</a></li>
|
|
|
|
|
<li><a id="tagManage" class="nav-element" href="<?php V::routeUrl( 'manage->tags'); ?>">Gérer les tags</a></li>
|
|
|
|
|
|
2026-04-02 16:33:32 +02:00
|
|
|
<?php else: ?>
|
|
|
|
|
<li><a id="login" class= "nav-element" href="<?php V::routeUrl( 'login'); ?>">Login</a></li>
|
|
|
|
|
<?php endif; ?>
|
2026-03-20 15:54:29 +01:00
|
|
|
</ul>
|
2026-04-03 10:43:55 +02:00
|
|
|
<form id="searchForm" method="get" action="<?php V::routeUrl( 'recettes->index'); ?>">
|
2026-04-03 12:55:05 +02:00
|
|
|
<input name="s" id="searchFormField" type="text" class="search-form search-form-recette" placeholder="Rechercher une recette ..." value="<?php echo \App\Http\Request::get( 's' ); ?>">
|
2026-04-03 10:43:55 +02:00
|
|
|
</form>
|
2026-03-20 15:54:29 +01:00
|
|
|
</nav>
|
|
|
|
|
</header>
|