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