| 1 |
<?php |
| 2 |
/** |
| 3 |
* Change password page template |
| 4 |
* |
| 5 |
* @package Welcart |
| 6 |
*/ |
| 7 |
|
| 8 |
$html = '<div id="memberpages">'; |
| 9 |
|
| 10 |
$html .= '<div class="header_explanation">'; |
| 11 |
$header = ''; |
| 12 |
$html .= apply_filters( 'usces_filter_changepass_page_header', $header ); |
| 13 |
$html .= '</div>'; |
| 14 |
|
| 15 |
if ( '' !== $this->error_message ) { |
| 16 |
$html .= '<div class="error_message">' . $this->error_message . '</div>'; |
| 17 |
} |
| 18 |
$html .= '<div class="loginbox"> |
| 19 |
<form name="loginform" id="loginform" action="' . esc_url( USCES_MEMBER_URL ) . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 20 |
<p> |
| 21 |
<label>' . esc_html__( 'password', 'usces' ) . '<br /> |
| 22 |
<input type="password" name="loginpass1" id="loginpass1" class="loginpass" value="" size="20" autocomplete="off" /></label> |
| 23 |
</p> |
| 24 |
<p> |
| 25 |
<label>' . esc_html__( 'Password (confirm)', 'usces' ) . '<br /> |
| 26 |
<input type="password" name="loginpass2" id="loginpass2" class="loginpass" value="" size="20" autocomplete="off" /></label> |
| 27 |
</p> |
| 28 |
<p class="submit"> |
| 29 |
<input type="submit" name="changepassword" id="member_login" value="' . esc_html__( 'Register', 'usces' ) . '" /> |
| 30 |
</p>'; |
| 31 |
$html = apply_filters( 'usces_filter_changepassword_inform', $html ); |
| 32 |
|
| 33 |
$noncekey = $this->member_nonce_key( 'post_member' ); |
| 34 |
$html .= wp_nonce_field( $noncekey, 'wc_nonce', true, false ); |
| 35 |
$html .= '</form> |
| 36 |
</div>'; |
| 37 |
|
| 38 |
$html .= '<div class="footer_explanation">'; |
| 39 |
$footer = ''; |
| 40 |
$html .= apply_filters( 'usces_filter_changepass_page_footer', $footer ); |
| 41 |
$html .= '</div>'; |
| 42 |
|
| 43 |
$html .= '</div> |
| 44 |
<script type="text/javascript"> |
| 45 |
try{document.getElementById(\'loginpass1\').focus();}catch(e){} |
| 46 |
</script>'; |
| 47 |
|