| 1 |
<?php |
| 2 |
if (!defined( 'ABSPATH' ) )exit('No Such File'); |
| 3 |
wpsp_header(); |
| 4 |
if( is_user_logged_in() ) { |
| 5 |
global $current_user, $wpdb; |
| 6 |
$current_user_role=$current_user->roles[0]; |
| 7 |
wpsp_topbar(); |
| 8 |
wpsp_sidebar(); |
| 9 |
wpsp_body_start(); |
| 10 |
?> |
| 11 |
<div id="message_response"></div> |
| 12 |
<form class="form-horizontal group-border-dashed" action="" id="changepassword"> |
| 13 |
<?php wp_nonce_field( 'WPSChangePass', 'wps_chnagepass_nonce', '', true ); ?> |
| 14 |
<div class="wpsp-card"> |
| 15 |
<div class="wpsp-card-head"> |
| 16 |
<h3 class="wpsp-card-title"><?php esc_html_e( 'Change Password', 'wpschoolpress' )?></h3> |
| 17 |
</div> |
| 18 |
<div class="wpsp-card-body"> |
| 19 |
<div class="wpsp-row"> |
| 20 |
<div class="wpsp-col-md-3"> |
| 21 |
<div class="wpsp-form-group"> |
| 22 |
<label class="wpsp-label"><?php esc_html_e( 'Current Password', 'wpschoolpress' ); ?></label> |
| 23 |
<input class="wpsp-form-control" name="oldpw" id="oldpw" type="password" required> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
</div> |
| 27 |
<div class="wpsp-row"> |
| 28 |
<div class="wpsp-col-md-3"> |
| 29 |
<div class="wpsp-form-group"> |
| 30 |
<label class="wpsp-label"><?php esc_html_e( 'New Password', 'wpschoolpress' ); ?></label> |
| 31 |
<input class="wpsp-form-control" name="newpw" id="newpw" type="password" required> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
<div class="wpsp-row"> |
| 36 |
<div class="wpsp-col-md-3"> |
| 37 |
<div class="wpsp-form-group"> |
| 38 |
<label class="wpsp-label"><?php esc_html_e( 'Confirm New Password', 'wpschoolpress' ); ?></label> |
| 39 |
<input class="wpsp-form-control" name="newrpw" id="newrpw" type="password" required> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div class="wpsp-row"> |
| 44 |
<div class="wpsp-col-md-12"> |
| 45 |
<div class="wpsp-form-group"> |
| 46 |
<input class="wpsp-btn wpsp-btn-primary" name="Change" id="Change" value="Change" type="submit"> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
</form> |
| 53 |
<?php |
| 54 |
wpsp_body_end(); |
| 55 |
wpsp_footer(); |
| 56 |
} else { |
| 57 |
//Include Login Section |
| 58 |
include_once( WPSP_PLUGIN_PATH .'/includes/wpsp-login.php'); |
| 59 |
} |
| 60 |
?> |