| 1 |
<?php |
| 2 |
/** |
| 3 |
* Lost password page template |
| 4 |
* |
| 5 |
* @package Welcart |
| 6 |
*/ |
| 7 |
|
| 8 |
$html = '<div id="memberpages"> |
| 9 |
|
| 10 |
<div class="whitebox">'; |
| 11 |
|
| 12 |
$html .= '<div class="header_explanation">'; |
| 13 |
$header = ''; |
| 14 |
$html .= apply_filters( 'usces_filter_newpass_page_header', $header ); |
| 15 |
$html .= '</div>'; |
| 16 |
|
| 17 |
if ( usces_is_error_message() ) { |
| 18 |
$html .= '<div class="error_message">' . $this->error_message . '</div>'; |
| 19 |
} |
| 20 |
$html .= '<div class="loginbox"> |
| 21 |
<form name="loginform" id="loginform" action="' . esc_url( USCES_MEMBER_URL ) . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 22 |
<p> |
| 23 |
<label>' . esc_html__( 'e-mail adress', 'usces' ) . '<br /> |
| 24 |
<input type="text" name="loginmail" id="loginmail" class="loginmail" value="" size="20" /></label> |
| 25 |
</p> |
| 26 |
<p class="submit"> |
| 27 |
<input type="submit" name="lostpassword" id="member_login" value="' . esc_html__( 'Obtain new password', 'usces' ) . '" /> |
| 28 |
</p>'; |
| 29 |
|
| 30 |
$noncekey = $this->member_nonce_key( 'post_member' ); |
| 31 |
$html .= wp_nonce_field( $noncekey, 'wc_nonce', true, false ); |
| 32 |
$html .= '</form> |
| 33 |
<div>' . esc_html__( 'Change your password by following the instruction in this mail.', 'usces' ) . '</div> |
| 34 |
<p id="nav">'; |
| 35 |
|
| 36 |
if ( ! usces_is_login() ) { |
| 37 |
$html .= '<a href="' . esc_url( USCES_LOGIN_URL ) . '" title="' . esc_html__( 'Log-in', 'usces' ) . '">' . esc_html__( 'Log-in', 'usces' ) . '</a>'; |
| 38 |
} |
| 39 |
$html .= '</p> |
| 40 |
|
| 41 |
</div>'; |
| 42 |
|
| 43 |
$html .= '<div class="footer_explanation">'; |
| 44 |
$footer = ''; |
| 45 |
$html .= apply_filters( 'usces_filter_newpass_page_footer', $footer ); |
| 46 |
$html .= '</div>'; |
| 47 |
|
| 48 |
$html .= '</div> |
| 49 |
|
| 50 |
</div> |
| 51 |
|
| 52 |
<script type="text/javascript"> |
| 53 |
try{document.getElementById(\'loginmail\').focus();}catch(e){} |
| 54 |
</script>'; |
| 55 |
|