| 1 |
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?> |
| 2 |
<div id="fcom_user_onboard_wrap" class="fcom_user_onboard"> |
| 3 |
<?php do_action('fluent_community/before_auth_form_header', 'login'); ?> |
| 4 |
<div class="fcom_onboard_header"> |
| 5 |
<div class="fcom_onboard_header_title"> |
| 6 |
<h2> |
| 7 |
<?php echo esc_html($settings['title']); ?> |
| 8 |
</h2> |
| 9 |
<p> |
| 10 |
<?php echo wp_kses_post($settings['description']); ?> |
| 11 |
</p> |
| 12 |
</div> |
| 13 |
</div> |
| 14 |
<div class="fcom_onboard_body"> |
| 15 |
<div class="fcom_onboard_form"> |
| 16 |
|
| 17 |
<?php |
| 18 |
\FluentCommunity\Modules\Auth\AuthHelper::nativeLoginForm([ |
| 19 |
'echo' => true, |
| 20 |
'form_id' => 'fcom_user_login_form', |
| 21 |
'value_remember' => true, |
| 22 |
'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); |
| 26 |
?> |
| 27 |
|
| 28 |
<div class="fcom_spaced_divider"> |
| 29 |
<?php if (!empty($signupUrl)): ?> |
| 30 |
<div class="fcom_alt_auth_text"> |
| 31 |
<?php esc_html_e('Don\'t have an account?', 'fluent-community'); ?> |
| 32 |
<a href="<?php echo esc_url($signupUrl); ?>"> |
| 33 |
<?php esc_html_e('Signup', 'fluent-community'); ?> |
| 34 |
</a> |
| 35 |
</div> |
| 36 |
<?php endif; ?> |
| 37 |
<p class="fcom_reset_pass_text"> |
| 38 |
<a href="<?php echo esc_url(wp_lostpassword_url($redirect)); ?>"> |
| 39 |
<?php esc_html_e('Lost your password?', 'fluent-community'); ?> |
| 40 |
</a> |
| 41 |
</p> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
|