| 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 |
?> |
| 9 |
<div id="fcom_user_onboard_wrap" class="fcom_user_onboard"> |
| 10 |
<?php do_action('fluent_community/before_auth_form_header', 'login'); ?> |
| 11 |
<div class="fcom_onboard_header"> |
| 12 |
<div class="fcom_onboard_header_title"> |
| 13 |
<h2> |
| 14 |
<?php echo esc_html($fluentCommunitySettings['title']); ?> |
| 15 |
</h2> |
| 16 |
<p> |
| 17 |
<?php echo wp_kses_post($fluentCommunitySettings['description']); ?> |
| 18 |
</p> |
| 19 |
</div> |
| 20 |
</div> |
| 21 |
<div class="fcom_onboard_body"> |
| 22 |
<div class="fcom_onboard_form"> |
| 23 |
|
| 24 |
<?php |
| 25 |
\FluentCommunity\Modules\Auth\AuthHelper::nativeLoginForm([ |
| 26 |
'echo' => true, |
| 27 |
'form_id' => 'fcom_user_login_form', |
| 28 |
'value_remember' => true, |
| 29 |
'redirect' => !empty($redirect_to) ? $redirect_to : '', |
| 30 |
'value_username' => $fluentCommunityDefaults ? \FluentCommunity\Framework\Support\Arr::get($fluentCommunityDefaults, 'email') : '', |
| 31 |
'label_log_in' => $fluentCommunitySettings['button_label'], |
| 32 |
], $fluentCommunityHiddenFields); |
| 33 |
?> |
| 34 |
|
| 35 |
<div class="fcom_spaced_divider"> |
| 36 |
<?php if (!empty($signupUrl)): ?> |
| 37 |
<div class="fcom_alt_auth_text"> |
| 38 |
<?php esc_html_e('Don\'t have an account?', 'fluent-community'); ?> |
| 39 |
<a href="<?php echo esc_url($signupUrl); ?>"> |
| 40 |
<?php esc_html_e('Signup', 'fluent-community'); ?> |
| 41 |
</a> |
| 42 |
</div> |
| 43 |
<?php endif; ?> |
| 44 |
<p class="fcom_reset_pass_text"> |
| 45 |
<a href="<?php echo esc_url(wp_lostpassword_url($fluentCommunityRedirect)); ?>"> |
| 46 |
<?php esc_html_e('Lost your password?', 'fluent-community'); ?> |
| 47 |
</a> |
| 48 |
</p> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|