59 lines
2.8 KiB
PHP
59 lines
2.8 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* En-tête commun pour toutes les pages du site
|
||
|
*/
|
||
|
|
||
|
// Empêcher l'accès direct à ce fichier
|
||
|
if (!defined('SECURE_ACCESS')) {
|
||
|
header('HTTP/1.0 403 Forbidden');
|
||
|
exit;
|
||
|
}
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="fr">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title><?php echo isset($page_title) ? secure_output($page_title) : 'MH Wilds - Partage de Quêtes à Couronnes'; ?></title>
|
||
|
|
||
|
<!-- Métadonnées pour le partage -->
|
||
|
<meta property="og:title" content="<?php echo isset($page_title) ? secure_output($page_title) : 'MH Wilds - Partage de Quêtes à Couronnes'; ?>">
|
||
|
<meta property="og:description" content="<?php echo isset($page_description) ? secure_output($page_description) : 'Partagez vos quêtes d\'investigation avec couronnes pour Monster Hunter Wilds et complétez votre collection !'; ?>">
|
||
|
<meta property="og:image" content="<?php echo BASE_URL; ?>/assets/img/logo.png">
|
||
|
<meta property="og:url" content="<?php echo BASE_URL . $_SERVER['REQUEST_URI']; ?>">
|
||
|
<meta name="twitter:card" content="summary_large_image">
|
||
|
|
||
|
<!-- Favicon -->
|
||
|
<link rel="icon" href="<?php echo BASE_URL; ?>/assets/img/logo.png" type="image/png">
|
||
|
|
||
|
<!-- Bootstrap CSS with dark theme -->
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||
|
|
||
|
<!-- Notre CSS personnalisé -->
|
||
|
<link rel="stylesheet" href="<?php echo BASE_URL; ?>/assets/css/styles.css">
|
||
|
|
||
|
<?php if (isset($extra_css)) echo $extra_css; ?>
|
||
|
</head>
|
||
|
<body>
|
||
|
<header class="bg-dark text-white py-3">
|
||
|
<div class="container">
|
||
|
<div class="d-flex justify-content-between align-items-center">
|
||
|
<div class="d-flex align-items-center">
|
||
|
<img src="<?php echo BASE_URL; ?>/assets/img/logo.png" alt="Logo" height="40" class="me-2">
|
||
|
<h1 class="h2 mb-0"><?php echo isset($header_title) ? secure_output($header_title) : 'MH Wilds - Quêtes à Couronnes'; ?></h1>
|
||
|
</div>
|
||
|
<div>
|
||
|
<?php if (isset($is_admin_page) && $is_admin_page): ?>
|
||
|
<a href="<?php echo BASE_URL; ?>/index.php" class="btn btn-outline-light me-2">Retour au site</a>
|
||
|
<a href="<?php echo BASE_URL; ?>/admin/logout.php" class="btn btn-danger">Déconnexion</a>
|
||
|
<?php else: ?>
|
||
|
<a href="<?php echo BASE_URL; ?>/tutorial.php" class="btn btn-outline-light me-2">Tutoriel</a>
|
||
|
<a href="<?php echo BASE_URL; ?>/login.php" class="btn btn-outline-light">Admin</a>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
<main class="container my-4">
|
||
|
<?php display_flash_message(); ?>
|