PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 2.2.0
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v2.2.0
2.2.0 2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 All 43 releases
← All changes | app/Views/emails/invite-external.php +22 -22 1.32 → 2.2.0 View file →
@@ -1,24 +1,24 @@
1 -<?php
2 -ob_start(); // Start output buffering
3 -?>
1 +<?php if (!defined('ABSPATH')) exit; // if accessed directly exit
2 +/**
3 + * Board invitation email (sent by Fluent Boards Pro).
4 + *
5 + * @var array $userData Inviter ['display_name', 'photo']
6 + * @var string $body "has invited you to join board: <title>"
7 + * @var string $btn_title Button label
8 + * @var string $boardLink Invitation URL
9 + */
10 +$badge = [
11 + 'label' => __('Board invitation', 'fluent-boards'),
12 + 'tone' => 'accent',
13 +];
14 +$cta = [
15 + 'label' => $btn_title,
16 + 'url' => $boardLink,
17 +];
18 +$fallback_url = $boardLink;
4 19
5 - <!--Start you code here -->
6 - <div class="fbs_email_content_left">
7 - <img src="<?php echo esc_url($userData['photo']);?>" alt="<?php echo esc_attr($userData['display_name']); ?>" class="fbs-avatar">
8 - </div>
9 - <div class="fbs_email_content_right">
10 - <p class="fbs_user_name"><?php echo esc_html($userData['display_name']); ?></p>
11 - <p class="fbs_email_details"><?php echo wp_kses_post($body); ?></p>
12 - <div class="fbs_invitation_button">
13 - <a style="background: none; text-decoration: none; color: #FFF" target="_blank" href=" <?php echo $boardLink ?> "> <?php echo $btn_title ?> </a>
14 - </div>
15 - <p class="fbs_email_details fbs_invite_error">If you’re having trouble clicking the "<?php echo $btn_title ?>" button, copy and paste the URL below into your web browser:</p>
16 - <p class="fbs_email_details"><?php echo $boardLink ?></p>
17 - </div>
20 +if (empty($email_reason)) {
21 + $email_reason = __('If you weren’t expecting this invitation, you can ignore this email.', 'fluent-boards');
22 +}
18 23
19 -
20 - <!--end your code here -->
21 -<?php
22 -$content = ob_get_clean(); // Get the content and clean the buffer
23 -// Include the template and pass the content
24 -include 'template.php';
24 +include __DIR__ . '/notification.php';