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