| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> |
| 2 |
<div id="fcom_user_onboard_wrap" class="fcom_user_onboard"> |
| 3 |
<div class="fcom_onboard_header"> |
| 4 |
<div class="fcom_onboard_header_title"> |
| 5 |
<h2><?php echo esc_html($title); ?></h2> |
| 6 |
<p><?php echo esc_html($description); ?></p> |
| 7 |
</div> |
| 8 |
</div> |
| 9 |
<div class="fcom_onboard_body"> |
| 10 |
<div class="fcom_onboard_form"> |
| 11 |
<form method="post" id="fcom_user_login_form"> |
| 12 |
<div id="fcom_group_log" class="fcom_form-group"> |
| 13 |
<input type="hidden" name="action" value="fcom_user_login_form" /> |
| 14 |
<?php if(!empty($redirect_to)): ?> |
| 15 |
<input type="hidden" name="redirect_to" value="<?php echo esc_url_raw($redirect_to); ?>" /> |
| 16 |
<?php endif; ?> |
| 17 |
<?php foreach ($hiddenFields as $key => $value): ?> |
| 18 |
<input type="hidden" name="<?php echo esc_attr($key); ?>" value="<?php echo esc_attr($value); ?>" /> |
| 19 |
<?php endforeach; ?> |
| 20 |
<div class="fcom_form_label"> |
| 21 |
<label for="fcom_user_email"> |
| 22 |
<?php echo _e('Email Address', 'fluent-community'); ?> |
| 23 |
</label> |
| 24 |
</div> |
| 25 |
<div class="fcom_form_input"> |
| 26 |
<input value="<?php echo esc_attr(\FluentCommunity\Framework\Support\Arr::get($defaults, 'email')); ?>" type="text" id="fcom_user_email" name="log" placeholder="<?php _e('Your account email address', 'fluent-community'); ?>"/> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
<div id="fcom_group_pwd" class="fcom_form-group"> |
| 30 |
<div class="fcom_form_label"> |
| 31 |
<label for="fcom_user_pwd"> |
| 32 |
<?php echo _e('Password', 'fluent-community'); ?> |
| 33 |
</label> |
| 34 |
</div> |
| 35 |
<div class="fcom_form_input"> |
| 36 |
<input type="password" id="fcom_user_pwd" name="pwd" placeholder="<?php _e('Your account password', 'fluent-community'); ?>"/> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<div class="fcom_form-group"> |
| 40 |
<div class="fcom_form_input"> |
| 41 |
<button type="submit" class="fcom_btn fcom_btn_primary"> |
| 42 |
<?php _e('Login', 'fluent-community'); ?> |
| 43 |
</button> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
</form> |
| 47 |
|
| 48 |
<div class="fcom_spaced_divider"> |
| 49 |
<?php if (!empty($signupUrl)): ?> |
| 50 |
<div class="fcom_alt_auth_text"> |
| 51 |
<?php _e('Don\'t have an account?', 'fluent-community'); ?> |
| 52 |
<a href="<?php echo esc_url($signupUrl); ?>"> |
| 53 |
<?php _e('Signup', 'fluent-community'); ?> |
| 54 |
</a> |
| 55 |
</div> |
| 56 |
<?php endif; ?> |
| 57 |
<p class="fcom_reset_pass_text"> |
| 58 |
<a href="<?php echo wp_lostpassword_url($redirect) ?>"> |
| 59 |
<?php _e('Lost your password?', 'fluent-community'); ?> |
| 60 |
</a> |
| 61 |
</p> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
|