| 1 |
<?php |
| 2 |
/** |
| 3 |
* Member page template |
| 4 |
* |
| 5 |
* @package Welcart |
| 6 |
*/ |
| 7 |
|
| 8 |
global $usces; |
| 9 |
$usces_members = $this->get_member(); |
| 10 |
|
| 11 |
$html = '<div id="memberpages"> |
| 12 |
|
| 13 |
<div id="newmember">'; |
| 14 |
|
| 15 |
$html .= '<div class="header_explanation">'; |
| 16 |
$header = '<ul> |
| 17 |
<li>' . esc_html__( 'All your personal information will be protected and handled with carefull attention.', 'usces' ) . '</li> |
| 18 |
<li>' . esc_html__( 'Your information is entrusted to us for the purpose of providing information and respond to your requests, but to be used for any other purpose. More information, please visit our Privacy Notice.', 'usces' ) . '</li> |
| 19 |
<li>' . esc_html__( 'The items marked with *, are mandatory. Please complete.', 'usces' ) . '</li> |
| 20 |
<li>' . esc_html__( 'Please use Alphanumeric characters for numbers.', 'usces' ) . '</li> |
| 21 |
</ul>'; |
| 22 |
$html .= apply_filters( 'usces_filter_newmember_page_header', $header ); |
| 23 |
$html .= '</div>'; |
| 24 |
|
| 25 |
$html .= '<div class="error_message">' . $this->error_message . '</div> |
| 26 |
<form action="' . apply_filters( 'usces_filter_newmember_form_action', esc_url( USCES_MEMBER_URL ) ) . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 27 |
<table border="0" cellpadding="0" cellspacing="0" class="customer_form">'; |
| 28 |
$html .= '<tr> |
| 29 |
<th scope="row"><em>' . esc_html__( '*', 'usces' ) . '</em>' . esc_html__( 'e-mail adress', 'usces' ) . '</th> |
| 30 |
<td colspan="2"><input name="member[mailaddress1]" id="mailaddress1" type="text" value="' . esc_attr( $usces_members['mailaddress1'] ) . '" /></td> |
| 31 |
</tr> |
| 32 |
<tr> |
| 33 |
<th scope="row"><em>' . esc_html__( '*', 'usces' ) . '</em>' . esc_html__( 'E-mail address (for verification)', 'usces' ) . '</th> |
| 34 |
<td colspan="2"><input name="member[mailaddress2]" id="mailaddress2" type="text" value="' . esc_attr( $usces_members['mailaddress2'] ) . '" /></td> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<th scope="row"><em>' . esc_html__( '*', 'usces' ) . '</em>' . esc_html__( 'password', 'usces' ) . '</th> |
| 38 |
<td colspan="2"><input class="hidden" value=" " /><input name="member[password1]" id="password1" type="password" value="' . esc_attr( $usces_members['password1'] ) . '" autocomplete="off" /></td> |
| 39 |
</tr> |
| 40 |
<tr> |
| 41 |
<th scope="row"><em>' . esc_html__( '*', 'usces' ) . '</em>' . esc_html__( 'Password (confirm)', 'usces' ) . '</th> |
| 42 |
<td colspan="2"><input name="member[password2]" id="password2" type="password" value="' . esc_attr( $usces_members['password2'] ) . '" /></td> |
| 43 |
</tr>'; |
| 44 |
$html .= uesces_addressform( 'member', $usces_members ); |
| 45 |
$html .= '</table>'; |
| 46 |
$html .= usces_agree_member_field( 'return' ); |
| 47 |
$html .= '<div class="send">'; |
| 48 |
$newmemberbutton = '<input name="member_regmode" type="hidden" value="' . esc_attr( $member_regmode ) . '" /> |
| 49 |
<input name="regmember" type="submit" value="' . esc_html__( 'transmit a message', 'usces' ) . '" />'; |
| 50 |
$html .= apply_filters( 'usces_filter_newmember_button', $newmemberbutton ); |
| 51 |
$html .= '</div>'; |
| 52 |
$html = apply_filters( 'usces_filter_newmember_inform', $html ); |
| 53 |
|
| 54 |
$noncekey = $this->member_nonce_key( 'post_member' ); |
| 55 |
$html .= wp_nonce_field( $noncekey, 'wc_nonce', true, false ); |
| 56 |
|
| 57 |
$html .= '</form>'; |
| 58 |
|
| 59 |
$html .= '<div class="footer_explanation">'; |
| 60 |
$footer = ''; |
| 61 |
$html .= apply_filters( 'usces_filter_newmember_page_footer', $footer ); |
| 62 |
$html .= '</div>'; |
| 63 |
|
| 64 |
$html .= '</div> |
| 65 |
|
| 66 |
</div>'; |
| 67 |
|