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