47 lines
2.1 KiB
PHP
47 lines
2.1 KiB
PHP
<?php
|
|
$assetPathPrefix = $assetPathPrefix ?? '';
|
|
$pageTitle = $pageTitle ?? 'Crest Lung Health';
|
|
$currentPage = $currentPage ?? '';
|
|
|
|
$navItems = [
|
|
['key' => 'home', 'label' => 'Home', 'href' => $assetPathPrefix . 'index.php'],
|
|
['key' => 'experts', 'label' => 'Our Experts', 'href' => $assetPathPrefix . 'experts.php'],
|
|
['key' => 'services', 'label' => 'Our Services', 'href' => $assetPathPrefix . 'services.php'],
|
|
['key' => 'training', 'label' => 'Training', 'href' => $assetPathPrefix . 'training.php'],
|
|
['key' => 'achievements', 'label' => 'Achievements', 'href' => $assetPathPrefix . 'achievements.php'],
|
|
['key' => 'resources', 'label' => 'Resources', 'href' => $assetPathPrefix . 'resources.php'],
|
|
['key' => 'news', 'label' => 'News & Events', 'href' => $assetPathPrefix . 'news-events.php'],
|
|
['key' => 'contact', 'label' => 'Contact', 'href' => $assetPathPrefix . 'contact.php'],
|
|
];
|
|
?>
|
|
<!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.2/dist/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="<?php echo $assetPathPrefix; ?>assets/css/style.css">
|
|
<?php if (!empty($extraStyles)) { echo $extraStyles; } ?>
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="container nav-bar">
|
|
<div class="brand">
|
|
<div class="brand-mark">C</div>
|
|
<div>
|
|
<div class="brand-name">CREST</div>
|
|
<div class="brand-tagline">Cancer Research Training & Consultancy</div>
|
|
</div>
|
|
</div>
|
|
<nav class="nav">
|
|
<?php foreach ($navItems as $item): ?>
|
|
<a href="<?php echo htmlspecialchars($item['href']); ?>"
|
|
class="<?php echo $currentPage === $item['key'] ? 'active' : ''; ?>">
|
|
<?php echo htmlspecialchars($item['label']); ?>
|
|
</a>
|
|
<?php endforeach; ?>
|
|
</nav>
|
|
</div>
|
|
</header>
|