xref: /webtrees/resources/views/emails/message-user-html.phtml (revision 76937c180deb84856ce02e1dd263df1d97c8c03a)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6<div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
7    <p>
8        <?= I18N::translate('Hello %s…', '<span dir="auto">' . e($recipient->realName()) . '</span>') ?>
9    </p>
10
11    <p>
12        <?= /* I18N: %s is a person's name */
13        I18N::translate('%s sent you the following message.', e($sender->realName())) ?>
14    </p>
15
16    <hr>
17
18    <p>
19        <?= nl2br(e($message), false) ?>
20    </p>
21
22    <hr>
23
24    <?php if ($url !== '') : ?>
25        <p>
26            <?= I18N::translate('This message was sent while viewing the following URL: ') ?>
27            <?= e($url) ?>
28        </p>
29    <?php endif ?>
30</div>
31