34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
<?php
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
$assetPathPrefix = $assetPathPrefix ?? '';
|
|
$pageTitle = $pageTitle ?? 'Admin';
|
|
$loggedEmail = $_SESSION['admin_email'] ?? null;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo htmlspecialchars($pageTitle); ?></title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="<?php echo $assetPathPrefix; ?>assets/css/admin.css">
|
|
<?php if (!empty($extraStyles)) { echo $extraStyles; } ?>
|
|
</head>
|
|
<body class="admin-body">
|
|
<header class="site-header shadow-sm">
|
|
<div class="container d-flex justify-content-between align-items-center py-3">
|
|
<div class="d-flex align-items-center gap-2">
|
|
<div class="brand-mark text-white fw-bold d-flex align-items-center justify-content-center">C</div>
|
|
<div>
|
|
<div class="brand-name text-success fw-bold">CREST</div>
|
|
<div class="brand-tagline text-muted">Admin Panel</div>
|
|
</div>
|
|
</div>
|
|
<div class="fw-semibold text-muted">
|
|
<?php echo $loggedEmail ? htmlspecialchars($loggedEmail) : ''; ?>
|
|
</div>
|
|
</div>
|
|
</header>
|