- 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
+10 -4
View File
@@ -3,10 +3,16 @@
<strong>Medical Tracker</strong>
<p>Medication logs, vitals, lab results, terminology, NIH/NLM study links, and admin-managed profiles.</p>
</div>
<div class="footer-links">
<a href="/tracker.php">Open medical tracker</a>
<a href="/admin.php">Admin dashboard</a>
</div>
<?php if (app_private_tools_enabled()): ?>
<div class="footer-links">
<?php if (app_tracker_area_enabled()): ?>
<a href="/tracker.php">Open medical tracker</a>
<?php endif; ?>
<?php if (app_admin_area_enabled()): ?>
<a href="/admin.php">Admin dashboard</a>
<?php endif; ?>
</div>
<?php endif; ?>
</footer>
</body>
</html>
+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>