- Public display
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user