|
- <?php
-
- declare(strict_types=1);
-
- $navigationItems = [
- ['label' => 'Boards', 'href' => '/boards'],
- ];
-
- $currentPath = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH);
- $currentPath = is_string($currentPath) && $currentPath !== '' ? $currentPath : '/';
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title><?= e($pageTitle ?? 'KCI Kanban') ?></title>
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
- <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet" />
- <link rel="stylesheet" href="<?= e(asset('css/site.css')) ?>">
- </head>
- <body>
- <div class="page-shell">
- <header class="site-header">
- <div class="container header-inner">
- <a class="brand" href="/boards">
- <span class="brand-mark">KC</span>
- <span class="brand-copy">
- <strong>KCI Kanban</strong>
- <small>PHP</small>
- </span>
- </a>
-
- <nav class="site-nav" aria-label="Primary navigation">
- <?php foreach ($navigationItems as $item): ?>
- <?php $isActive = str_starts_with($currentPath, $item['href']); ?>
- <a class="nav-link<?= $isActive ? ' is-active' : '' ?>" href="<?= e($item['href']) ?>">
- <?= e($item['label']) ?>
- </a>
- <?php endforeach; ?>
- </nav>
- </div>
- </header>
|