| @@ -1,14 +1,21 @@ | ||
| 1 | -<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?> | |
| 1 | +<?php if (!defined('ABSPATH')) { exit;} // Exit if accessed directly ?> | |
| 2 | +<?php | |
| 3 | +/** @var array $settings @var array $defaults @var array $hiddenFields @var string $redirect */ | |
| 4 | +$fluentCommunitySettings = $settings ?? []; | |
| 5 | +$fluentCommunityDefaults = $defaults ?? []; | |
| 6 | +$fluentCommunityHiddenFields = $hiddenFields ?? []; | |
| 7 | +$fluentCommunityRedirect = $redirect ?? ''; | |
| 8 | +?> | |
| 2 | 9 | <div id="fcom_user_onboard_wrap" class="fcom_user_onboard"> |
| 3 | 10 | <?php do_action('fluent_community/before_auth_form_header', 'login'); ?> |
| 4 | 11 | <div class="fcom_onboard_header"> |
| 5 | 12 | <div class="fcom_onboard_header_title"> |
| 6 | 13 | <h2> |
| 7 | - <?php echo esc_html($settings['title']); ?> | |
| 14 | + <?php echo esc_html($fluentCommunitySettings['title']); ?> | |
| 8 | 15 | </h2> |
| 9 | 16 | <p> |
| 10 | - <?php echo wp_kses_post($settings['description']); ?> | |
| 17 | + <?php echo wp_kses_post($fluentCommunitySettings['description']); ?> | |
| 11 | 18 | </p> |
| 12 | 19 | </div> |
| 13 | 20 | </div> |
| 14 | 21 | <div class="fcom_onboard_body"> |
| @@ -19,11 +26,11 @@ | ||
| 19 | 26 | 'echo' => true, |
| 20 | 27 | 'form_id' => 'fcom_user_login_form', |
| 21 | 28 | 'value_remember' => true, |
| 22 | 29 | 'redirect' => !empty($redirect_to) ? $redirect_to : '', |
| 23 | - 'value_username' => $defaults ? \FluentCommunity\Framework\Support\Arr::get($defaults, 'email') : '', | |
| 24 | - 'label_log_in' => $settings['button_label'], | |
| 25 | - ], $hiddenFields); | |
| 30 | + 'value_username' => $fluentCommunityDefaults ? \FluentCommunity\Framework\Support\Arr::get($fluentCommunityDefaults, 'email') : '', | |
| 31 | + 'label_log_in' => $fluentCommunitySettings['button_label'], | |
| 32 | + ], $fluentCommunityHiddenFields); | |
| 26 | 33 | ?> |
| 27 | 34 | |
| 28 | 35 | <div class="fcom_spaced_divider"> |
| 29 | 36 | <?php if (!empty($signupUrl)): ?> |
| @@ -34,9 +41,9 @@ | ||
| 34 | 41 | </a> |
| 35 | 42 | </div> |
| 36 | 43 | <?php endif; ?> |
| 37 | 44 | <p class="fcom_reset_pass_text"> |
| 38 | - <a href="<?php echo esc_url(wp_lostpassword_url($redirect)); ?>"> | |
| 45 | + <a href="<?php echo esc_url(wp_lostpassword_url($fluentCommunityRedirect)); ?>"> | |
| 39 | 46 | <?php esc_html_e('Lost your password?', 'fluent-community'); ?> |
| 40 | 47 | </a> |
| 41 | 48 | </p> |
| 42 | 49 | </div> |