| @@ -1,10 +1,16 @@ | ||
| 1 | -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> | |
| 1 | +<?php if ( ! defined( 'ABSPATH' ) ) { exit;} // Exit if accessed directly ?> | |
| 2 | +<?php | |
| 3 | +/** @var string $title @var string $description @var string $invitation_token */ | |
| 4 | +$fluentCommunityTitle = $title ?? ''; | |
| 5 | +$fluentCommunityDescription = $description ?? ''; | |
| 6 | +$fluentCommunityInvitationToken = $invitation_token ?? ''; | |
| 7 | +?> | |
| 2 | 8 | <div id="fcom_user_onboard_wrap" class="fcom_user_onboard"> |
| 3 | 9 | <div class="fcom_onboard_header"> |
| 4 | 10 | <div class="fcom_onboard_header_title"> |
| 5 | - <h2><?php echo esc_html($title); ?></h2> | |
| 6 | - <p><?php echo wp_kses_post($description); ?></p> | |
| 11 | + <h2><?php echo esc_html($fluentCommunityTitle); ?></h2> | |
| 12 | + <p><?php echo wp_kses_post($fluentCommunityDescription); ?></p> | |
| 7 | 13 | </div> |
| 8 | 14 | </div> |
| 9 | 15 | <div class="fcom_onboard_body"> |
| 10 | 16 | <div class="fcom_onboard_form"> |
| @@ -9,9 +15,9 @@ | ||
| 9 | 15 | <div class="fcom_onboard_body"> |
| 10 | 16 | <div class="fcom_onboard_form"> |
| 11 | 17 | <form method="post" id="fcom_user_accept_form"> |
| 12 | 18 | <input type="hidden" name="action" value="fcom_user_accept_invitation" /> |
| 13 | - <input type="hidden" name="invitation_token" value="<?php echo esc_attr($invitation_token); ?>" /> | |
| 19 | + <input type="hidden" name="invitation_token" value="<?php echo esc_attr($fluentCommunityInvitationToken); ?>" /> | |
| 14 | 20 | <input type="hidden" name="_fcom_accept_invitation_nonce" value="<?php echo esc_attr(wp_create_nonce('fcom_accept_invitation')); ?>" /> |
| 15 | 21 | <div style="text-align: center;" class="fcom_form-group"> |
| 16 | 22 | <div class="fcom_form_input"> |
| 17 | 23 | <button type="submit" class="fcom_btn fcom_btn_submit fcom_btn_success"><?php esc_html_e('Accept invitation & continue', 'fluent-community'); ?></button> |