Files
WebtreesBockenTheme/resources/views/modules/block-template.phtml
Alexander Bocken ce11b25da4 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
2026-03-14 09:53:43 +01:00

30 lines
811 B
PHTML

<?php
declare(strict_types=1);
use Fisharebest\Webtrees\I18N;
/**
* @var string $block
* @var string $content
* @var string $config_url
* @var int $id
* @var string $title
*/
?>
<div class="mb-4 wt-block wt-block-<?= e($block) ?>" id="block-<?= e($id) ?>">
<h3 class="wt-block-header wt-block-header-<?= e($block) ?>">
<?php if ($config_url !== '') : ?>
<a class="btn btn-link" href="<?= e($config_url) ?>" title="<?= I18N::translate('Preferences') ?>">
<?= view('icons/preferences') ?>
<span class="visually-hidden"><?= I18N::translate('Preferences') ?></span>
</a>
<?php endif ?>
<?= $title ?>
</h3>
<div class="wt-block-content wt-block-content-<?= e($block) ?>">
<?= $content ?>
</div>
</div>