PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.01
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.01
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | app/Views/email/Default/_invitation.php +17 -12 2.7.0 → 2.10.01 View file →
@@ -1,28 +1,33 @@
1 -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
1 +<?php if ( ! defined( 'ABSPATH' ) ) { exit;} // Exit if accessed directly ?>
2 2 <?php
3 3 /**
4 - * @var $invitee_name string
5 - * @var $by_name string
6 - * @var $by_email string
7 - * @var $site_title string
8 - * @var $access_url string
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 9 */
10 +$fluentCommunityInviteeName = $invitee_name ?? '';
11 +$fluentCommunityByName = $by_name ?? '';
12 +$fluentCommunitySiteTitle = $site_title ?? '';
13 +$fluentCommunityAccessUrl = $access_url ?? '';
10 14 ?>
11 15 <div style="background-color: #ffffff; padding: 20px; border-radius: 8px;">
12 16 <?php /* translators: %s is replaced by the name of the user who is invited */ ?>
13 - <p><?php echo esc_html(sprintf(__('Hey %s,', 'fluent-community'), $invitee_name)); ?></p>
14 - <p><?php
17 + <p><?php echo esc_html(sprintf(__('Hey %s,', 'fluent-community'), $fluentCommunityInviteeName)); ?></p>
18 + <p>
19 + <?php
15 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 */
16 21 echo wp_kses_post(sprintf(__('%1$s has invited you to join in %2$s.', 'fluent-community'),
17 - '<strong>'.$by_name.'</strong>',
18 - '<strong>'.$site_title.'</strong>'
22 + '<strong>'.$fluentCommunityByName.'</strong>',
23 + '<strong>'.$fluentCommunitySiteTitle.'</strong>'
19 24 ));
20 25 ?>
21 26 </p>
22 27
23 - <p><?php esc_html_e('Click the link below to accept the invitation:', 'fluent-community') ?></p>
28 + <p><?php esc_html_e('Click the link below to accept the invitation:', 'fluent-community'); ?></p>
24 29
25 - <a href="<?php echo esc_url($access_url); ?>" style="background-color: #000000; color: #ffffff; padding: 10px 20px; text-align: center; border-radius: 5px; display: inline-block; text-decoration: none;">
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;">
26 31 <?php esc_html_e('Accept invitation', 'fluent-community'); ?>
27 32 </a>
28 33 </div>