Deploy: Complete TekDek documentation website with all content pages, CSS, and infrastructure

This commit is contained in:
ParzivalTD
2026-04-12 11:20:19 -04:00
parent 1be079d7a7
commit d8da25107e
29 changed files with 2627 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
/**
* TekDek - Navigation Renderer
*
* Renders nav from $MENU config. $current_page must be set before including.
*/
if (!defined('TEKDEK')) die('Direct access not permitted.');
?>
<nav class="main-nav" role="navigation" aria-label="Main navigation">
<ul>
<?php foreach ($MENU as $slug => $item): ?>
<?php if ($item['nav']): ?>
<?php
$url = ($slug === 'team') ? SITE_BASE_URL . 'team.html' : page_url($slug);
$active = is_active($slug, $current_page);
?>
<li<?= $active ?>>
<a href="<?= e($url) ?>">
<span class="nav-icon"><?= $item['icon'] ?></span>
<span class="nav-label"><?= e($item['title']) ?></span>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</nav>