- Public display

This commit is contained in:
Ty Clifford
2026-07-03 18:00:34 -04:00
parent c5ec4f4c7e
commit 90b1194b65
16 changed files with 237 additions and 49 deletions
+8 -2
View File
@@ -1,6 +1,8 @@
<?php
$pageTitle = $pageTitle ?? 'Medical Tracker';
$activePage = $activePage ?? '';
$trackerAreaEnabled = app_tracker_area_enabled();
$adminAreaEnabled = app_admin_area_enabled();
function site_active(string $page, string $activePage): string
{
return $page === $activePage ? ' class="active"' : '';
@@ -27,7 +29,11 @@ function site_active(string $page, string $activePage): string
<a<?= site_active('symptoms', $activePage) ?> href="/symptoms.php">Symptoms</a>
<a<?= site_active('research', $activePage) ?> href="/recovery.php">Research</a>
<a<?= site_active('terminology', $activePage) ?> href="/medical.php">Terminology</a>
<a href="/tracker.php">Tracker</a>
<a href="/admin.php">Admin</a>
<?php if ($trackerAreaEnabled): ?>
<a href="/tracker.php">Tracker</a>
<?php endif; ?>
<?php if ($adminAreaEnabled): ?>
<a href="/admin.php">Admin</a>
<?php endif; ?>
</nav>
</header>