xref: /webtrees/resources/views/emails/message-copy-html.phtml (revision afa67798854828b1edc33dd077960ec2b18e6140)
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($sender->realName()) . '</span>') ?>
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