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