| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the applicant registration form |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/propertyhive/account/applicant-registration-form.php. |
| 6 |
* |
| 7 |
* @author PropertyHive |
| 8 |
* @package PropertyHive/Templates |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
?> |
| 14 |
|
| 15 |
<form name="ph_applicant_registration_form" class="propertyhive-form applicant-registration-form" action="" method="post"> |
| 16 |
|
| 17 |
<div id="registrationSuccess" style="display:none;" class="alert alert-success alert-box success"> |
| 18 |
<?php echo esc_html(__( 'Thank you. You have registered successfully.', 'propertyhive' )); ?> |
| 19 |
</div> |
| 20 |
<div id="registrationError" style="display:none;" class="alert alert-danger alert-box"> |
| 21 |
<?php echo esc_html(__( 'An error occurred whilst trying to register. Please try again.', 'propertyhive' )); ?> |
| 22 |
</div> |
| 23 |
<div id="registrationValidation" style="display:none;" class="alert alert-danger alert-box"> |
| 24 |
<?php echo esc_html(__( 'Please ensure all required fields have been completed', 'propertyhive' )); ?> |
| 25 |
</div> |
| 26 |
|
| 27 |
<?php do_action( 'propertyhive_registration_form_start' ); ?> |
| 28 |
|
| 29 |
<?php foreach ( $form_controls as $key => $field ) : ?> |
| 30 |
|
| 31 |
<?php ph_form_field( $key, $field ); ?> |
| 32 |
|
| 33 |
<?php endforeach; ?> |
| 34 |
|
| 35 |
<?php do_action( 'propertyhive_registration_form' ); ?> |
| 36 |
|
| 37 |
<input type="submit" value="<?php echo esc_attr(__( 'Register', 'propertyhive' )); ?>"> |
| 38 |
|
| 39 |
<?php do_action( 'propertyhive_registration_form_end' ); ?> |
| 40 |
|
| 41 |
</form> |