| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
$username = ''; |
| 6 |
if ( isset($_POST['username']) ) { |
| 7 |
$username = sanitize_text_field( wp_unslash( $_POST['username'] ) ); |
| 8 |
} |
| 9 |
?> |
| 10 |
<div class="col-sm-12" style="margin-bottom:20px;"> |
| 11 |
<?php |
| 12 |
do_action('wppm_before_signin_module'); |
| 13 |
?> |
| 14 |
<span class="wppm-form-signin-heading"><?php echo esc_html_e('Please sign in','taskbuilder')?></span> |
| 15 |
<form id="frm_wppm_sign_in" action="javascript:wppm_sign_in_frm();" method="post" style="margin-bottom:5px;"> |
| 16 |
<p id="wppm_message_login" class="bg-success" style="display:none;"></p> |
| 17 |
<label class="sr-only"><?php echo esc_html_e('Username or email','taskbuilder')?></label> |
| 18 |
<input id="wppm-inputEmail" name="username" class="form-control" placeholder="<?php echo esc_attr__('Username or email','taskbuilder')?>" required="" autofocus="" autocomplete="off" type="text" value="<?php echo esc_attr( $username ); ?>"> |
| 19 |
<label for="wppm-inputPassword" class="sr-only"><?php echo esc_html_e('Password','taskbuilder')?></label> |
| 20 |
<input id="wppm-inputPassword" name="password" class="form-control" placeholder="<?php echo esc_attr__('Password','taskbuilder')?>" required="" autocomplete="off" type="password"> |
| 21 |
<div class="checkbox"> |
| 22 |
<label> |
| 23 |
<input name="remember" value="remember-me" type="checkbox"><span id="wppm_remember"><?php echo esc_html_e('Remember me','taskbuilder')?></span> |
| 24 |
</label> |
| 25 |
</div> |
| 26 |
<input type="hidden" name="action" value="wppm_set_user_login" /> |
| 27 |
<input type="hidden" name="nonce" value="<?php echo esc_attr(wp_create_nonce())?>" /> |
| 28 |
<button id="wppm_sign_in_btn" class="btn btn-lg btn-block" type="submit"><?php echo esc_html_e('Sign In','taskbuilder')?></button> |
| 29 |
</form> |
| 30 |
</div> |