suffix * $activeNav string Which nav key is active — must match a $navLinks entry * $config array From config/config.php * $navLinks array Navigation items: * [['href' => '/path', 'key' => 'mykey', 'label' => 'My Page'], ...] * Nested (dropdown): * ['label' => 'Admin', 'key' => 'admin', 'adminOnly' => true, 'children' => [ * ['href' => '/admin/users', 'label' => 'Users'], * ]] */ // Defensive defaults $nonce = $nonce ?? ''; $currentUser = $currentUser ?? []; $pageTitle = $pageTitle ?? 'Dashboard'; $activeNav = $activeNav ?? ''; $config = $config ?? []; $navLinks = $navLinks ?? []; $isAdmin = $currentUser['is_admin'] ?? false; ?> <?php echo htmlspecialchars($pageTitle); ?> — <?php echo htmlspecialchars($config['APP_NAME'] ?? 'LotusGuild'); ?>
admin