Initial commit: Bocken theme for webtrees

Nord-themed dark/light mode family tree theme with:
- Floating glass-morphism header bar
- Auto/light/dark theme toggle with Lucide icons
- Smart SVG logo with theme-aware fill colors
- Active page highlighting with per-menu Nord icon colors
- Language button showing 2-letter abbreviation
- Start page search form
- Mobile responsive icon-only nav
- Custom views inherited from ArgonLight
This commit is contained in:
2026-03-14 09:53:43 +01:00
commit ce11b25da4
54 changed files with 5426 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
declare(strict_types=1);
use Fisharebest\Webtrees\I18N;
/**
* @var array<int,object{
* block_id: int,
* block_order: int,
* gedcom_id: int,
* header: string,
* faqbody: string,
* languages: string
* }> $faqs
* @var string $title
*/
?>
<h2 class="wt-page-title"><?= $title ?></h2>
<ul class="faq">
<?php foreach ($faqs as $id => $faq) : ?>
<li>
<a href="#faq<?= e($id) ?>"><?= e($faq->header) ?></a>
</li>
<?php endforeach ?>
</ul>
<?php foreach ($faqs as $id => $faq) : ?>
<article class="faq_article">
<header class="faq_title" id="faq<?= $id ?>">
<h3><?= e($faq->header) ?></h3>
<span class="faq_top faq_italic">
<a href="#content"><?= I18N::translate('back to top') ?></a>
</span>
</header>
<main class="faq_body">
<?= str_starts_with($faq->faqbody, '<') ? $faq->faqbody : nl2br(e($faq->faqbody), false) ?>
</main>
</article>
<?php endforeach ?>