<?php
/* Smarty version 5.7.0, created on 2026-02-11 20:36:30
  from 'file:views/_partial/header.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.7.0',
  'unifunc' => 'content_698ce84e8f9ec8_97257315',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8056b95e7f6b28be5e36947735d13c8d176ec944' => 
    array (
      0 => 'views/_partial/header.tpl',
      1 => 1770842181,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_698ce84e8f9ec8_97257315 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'D:\\projetphp\\views\\_partial';
?><!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="assests/css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
    <?php echo '<script'; ?>
 src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"><?php echo '</script'; ?>
>
    <title>Folliow</title>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container-fluid">
                        <a class="navbar-brand d-flex align-items-center" href="index.php">
                <img src="assests/img/logo.png" alt="Logo" class="logo-image">
            </a>
            
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            
                        <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                   
                    <li class="nav-item">
                        <a class="nav-link" href="?ctrl=&action=">À propos</a>
                    </li>

                    <li class="nav-item">
                        <a class="nav-link" href="?ctrl=project&action=search">Rechercher</a>
                    </li>
                    <?php if ((true && (true && null !== ($_SESSION['user'] ?? null)))) {?>
                        <li class="nav-item">
                            <a class="nav-link" href="?ctrl=project&action=project">Ajouter un projet</a>
                        </li>
                        <?php if ($_SESSION['user']['authorisation_name'] == "Administrateur") {?>
                            <li class="nav-item">
                                <a class="nav-link" href="?ctrl=admin&action=admin">Admin</a>
                            </li>
                        <?php }?>
                    <?php }?>
                </ul>
                
                                <nav class="col-4 d-flex justify-content-end align-items-center" aria-label="Connexion utilisateur">
                    <?php if (!(true && (true && null !== ($_SESSION['user'] ?? null)))) {?>
                                                <ul class="navbar-nav">    
                            <li class="nav-item">
                                <a class="nav-link" href="index.php?ctrl=user&action=signin" title="Créer un compte" aria-label="Créer un compte">
                                    S'inscrire
                                </a>
                            </li>
                            <li class="nav-item">    
                                <a class="nav-link" href="index.php?ctrl=user&action=login" title="Se connecter" aria-label="Se connecter">
                                    Se connecter 
                                </a>
                            </li>
                        </ul> 
                    <?php } else { ?>
                                                <ul class="navbar-nav">   
                            <li class="nav-item"> 
                                <a class="nav-link" href="edit_account.php" title="Modifier mon compte" aria-label="Modifier mon compte">
                                    <img src="<?php echo $_SESSION['user']['user_image'];?>
"
                                        class="rounded-circle flex-shrink-0 mt-2 ml-5"
                                        style="width: 36px; height: 36px; object-fit: cover;"
                                        alt="Photo de profil">
                                </a>
                            </li>

                            <li class="nav-item"> 
                                <a class="nav-link" href="index.php?ctrl=user&action=logout" title="Se déconnecter" aria-label="Se déconnecter">
                                    Logout
                                </a>
                            </li>
                        </ul>
                    <?php }?>
                </nav>
            </div>
        </div>
    </nav>
</body>
</html>
<?php }
}
