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