xref: /webtrees/resources/views/modules/faq/show.phtml (revision 8fcd0d32e56ee262912bbdb593202cfd1cbc1615)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h2 class="wt-page-title"><?= $title ?></h2>
4
5<table class="faq">
6    <?php foreach ($faqs as $id => $faq) : ?>
7    <tr>
8        <td style="padding: 5px;">
9            <a href="#faq<?= e($id) ?>"><?= e($faq->header) ?></a>
10        </td>
11    </tr>
12    <?php endforeach ?>
13</table>
14
15<?php foreach ($faqs as $id => $faq) : ?>
16    <hr>
17    <div class="faq_title" id="faq<?= $id ?>">
18        <?= e($faq->header) ?>
19        <div class="faq_top faq_italic">
20            <a href="#content"><?= I18N::translate('back to top') ?></a>
21        </div>
22    </div>
23    <div class="faq_body">
24        <?= substr($faq->body, 0, 1) == '<' ? e($faq->body) : nl2br(e($faq->body), false) ?>
25    </div>
26<?php endforeach ?>
27