| 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" style="color: <?php echo esc_attr($settings['text_color']); ?>;"> |
| 5 |
<h2 style="color: <?php echo esc_attr($settings['title_color']); ?>;"> |
| 6 |
<?php echo esc_html($settings['title']); ?> |
| 7 |
</h2> |
| 8 |
<p> |
| 9 |
<?php echo wp_kses_post($settings['description']); ?> |
| 10 |
</p> |
| 11 |
</div> |
| 12 |
</div> |
| 13 |
<div class="fcom_onboard_body"> |
| 14 |
<div class="fcom_onboard_form"> |
| 15 |
<form method="post" id="fcom_user_login_form"> |
| 16 |
<div id="fcom_group_log" class="fcom_form-group"> |
| 17 |
<input type="hidden" name="action" value="fcom_user_login_form" /> |
| 18 |
<?php if(!empty($redirect_to)): ?> |
| 19 |
<input type="hidden" name="redirect_to" value="<?php echo esc_url_raw($redirect_to); ?>" /> |
| 20 |
<?php endif; ?> |
| 21 |
<?php foreach ($hiddenFields as $key => $value): ?> |
| 22 |
<input type="hidden" name="<?php echo esc_attr($key); ?>" value="<?php echo esc_attr($value); ?>" /> |
| 23 |
<?php endforeach; ?> |
| 24 |
<div class="fcom_form_label"> |
| 25 |
<label for="fcom_user_email"> |
| 26 |
<?php echo _e('Email Address', 'fluent-community'); ?> |
| 27 |
</label> |
| 28 |
</div> |
| 29 |
<div class="fcom_form_input"> |
| 30 |
<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'); ?>"/> |
| 31 |
</div> |
| 32 |
</div> |
| 33 |
<div id="fcom_group_pwd" class="fcom_form-group"> |
| 34 |
<div class="fcom_form_label"> |
| 35 |
<label for="fcom_user_pwd"> |
| 36 |
<?php echo _e('Password', 'fluent-community'); ?> |
| 37 |
</label> |
| 38 |
</div> |
| 39 |
<div class="fcom_form_input"> |
| 40 |
<input type="password" id="fcom_user_pwd" name="pwd" placeholder="<?php _e('Your account password', 'fluent-community'); ?>"/> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div class="fcom_form-group"> |
| 44 |
<div class="fcom_form_input"> |
| 45 |
<button type="submit" class="fcom_btn fcom_btn_primary" style="background-color: <?php echo esc_attr($settings['button_color']); ?>; color: <?php echo esc_attr($settings['button_label_color']); ?>;"> |
| 46 |
<?php echo esc_html($settings['button_label']); ?> |
| 47 |
</button> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</form> |
| 51 |
|
| 52 |
<div class="fcom_spaced_divider"> |
| 53 |
<?php if (!empty($signupUrl)): ?> |
| 54 |
<div class="fcom_alt_auth_text"> |
| 55 |
<?php _e('Don\'t have an account?', 'fluent-community'); ?> |
| 56 |
<a href="<?php echo esc_url($signupUrl); ?>"> |
| 57 |
<?php _e('Signup', 'fluent-community'); ?> |
| 58 |
</a> |
| 59 |
</div> |
| 60 |
<?php endif; ?> |
| 61 |
<p class="fcom_reset_pass_text"> |
| 62 |
<a href="<?php echo wp_lostpassword_url($redirect) ?>"> |
| 63 |
<?php _e('Lost your password?', 'fluent-community'); ?> |
| 64 |
</a> |
| 65 |
</p> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
|