xref: /webtrees/resources/views/emails/message-copy-html.phtml (revision 315eb31683006273e24c08b447e6e1095d6f2147)
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…', '<bdi">' . e($sender->realName()) . '</bdi>') ?>
17    </p>
18
19    <p>
20        <?= I18N::translate('You sent the following message to a webtrees user:') ?><?= e($recipient->realName()) ?>
21    </p>
22
23    <hr>
24
25    <p>
26        <?= nl2br(e($message), false) ?>
27    </p>
28
29    <hr>
30
31    <?php if ($url !== '') : ?>
32        <p>
33            <?= I18N::translate('This message was sent while viewing the following URL: ') ?>
34            <?= e($url) ?>
35        </p>
36    <?php endif ?>
37</div>
38