xref: /webtrees/resources/views/emails/message-user-text.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
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<?= I18N::translate('Hello %s…', $recipient->realName()) ?>
17
18<?= /* I18N: %s is a person's name */ I18N::translate('%s sent you the following message.', I18N::translate('%1$s (%2$s)', $sender->realName(), $sender->email())) ?>
19
20------------------------------------------------------------
21<?= $message ?>
22
23------------------------------------------------------------
24
25<?php if ($url !== '') : ?>
26    <?= I18N::translate('This message was sent while viewing the following URL: ') ?>
27    <?= $url ?>
28<?php endif ?>
29