- Public display
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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