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