Files
LesRecettesDePapis/views/partials/header.php

31 lines
1.4 KiB
PHP
Raw Normal View History

<?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' ); ?>" />
</head>
<body>
2026-04-02 16:33:32 +02:00
<header id="header">
2026-03-20 15:54:29 +01:00
<div id="logo">
<a href="index.php">
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">
<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>
<li><a id="addBouton" class="nav-element" href="<?php V::routeUrl( 'recettes->create'); ?>">Ajouter une Recette</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-02 16:33:32 +02:00
<input type="text" class="search-form search-form-recette" placeholder="Rechercher une recette ...">
2026-03-20 15:54:29 +01:00
</nav>
</header>