| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) { exit;} // Exit if accessed directly ?> |
| 2 |
<?php |
| 3 |
/** |
| 4 |
* @var string $invitee_name |
| 5 |
* @var string $by_name |
| 6 |
* @var string $by_email |
| 7 |
* @var string $site_title |
| 8 |
* @var string $access_url |
| 9 |
*/ |
| 10 |
$fluentCommunityInviteeName = $invitee_name ?? ''; |
| 11 |
$fluentCommunityByName = $by_name ?? ''; |
| 12 |
$fluentCommunitySiteTitle = $site_title ?? ''; |
| 13 |
$fluentCommunityAccessUrl = $access_url ?? ''; |
| 14 |
?> |
| 15 |
<div style="background-color: #ffffff; padding: 20px; border-radius: 8px;"> |
| 16 |
<?php /* translators: %s is replaced by the name of the user who is invited */ ?> |
| 17 |
<p><?php echo esc_html(sprintf(__('Hey %s,', 'fluent-community'), $fluentCommunityInviteeName)); ?></p> |
| 18 |
<p> |
| 19 |
<?php |
| 20 |
/* translators: %1$s is replaced by the name of the user who invited the user, %2$s is replaced by the title of the site */ |
| 21 |
echo wp_kses_post(sprintf(__('%1$s has invited you to join in %2$s.', 'fluent-community'), |
| 22 |
'<strong>'.$fluentCommunityByName.'</strong>', |
| 23 |
'<strong>'.$fluentCommunitySiteTitle.'</strong>' |
| 24 |
)); |
| 25 |
?> |
| 26 |
</p> |
| 27 |
|
| 28 |
<p><?php esc_html_e('Click the link below to accept the invitation:', 'fluent-community'); ?></p> |
| 29 |
|
| 30 |
<a href="<?php echo esc_url($fluentCommunityAccessUrl); ?>" style="background-color: #000000; color: #ffffff; padding: 10px 20px; text-align: center; border-radius: 5px; display: inline-block; text-decoration: none;"> |
| 31 |
<?php esc_html_e('Accept invitation', 'fluent-community'); ?> |
| 32 |
</a> |
| 33 |
</div> |
| 34 |
|