xref: /webtrees/resources/views/modules/block-template.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var string $block
9 * @var string $content
10 * @var string $config_url
11 * @var int $id
12 * @var string $title
13 */
14
15?>
16
17<div class="card mb-4 wt-block wt-block-<?= e($block) ?>" id="block-<?= e($id) ?>">
18    <div class="card-header wt-block-header wt-block-header-<?= e($block) ?>">
19        <?php if ($config_url !== '') : ?>
20            <a class="btn btn-link" href="<?= e($config_url) ?>" title="<?= I18N::translate('Preferences') ?>">
21                <?= view('icons/preferences') ?>
22                <span class="visually-hidden"><?= I18N::translate('Preferences') ?></span>
23            </a>
24        <?php endif ?>
25        <?= $title ?>
26    </div>
27    <div class="card-body wt-block-content wt-block-content-<?= e($block) ?>">
28        <?= $content ?>
29    </div>
30</div>
31