| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the lost password form allowing users to reset their password |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/propertyhive/account/lost-password-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 |
if ( !empty( get_option( 'propertyhive_applicant_reset_password_page_id', '' ) ) ) { |
| 15 |
?> |
| 16 |
|
| 17 |
<form name="ph_lost_password_form" class="propertyhive-form lost-password-form" action="" method="post" style="display:none"> |
| 18 |
|
| 19 |
<p><?php echo esc_html(__( 'Lost your password? Please enter your email address and we\'ll send you a link to create a new password via email.', 'propertyhive' )); ?></p> |
| 20 |
|
| 21 |
<div id="lostPasswordError" style="display:none;" class="alert alert-danger alert-box"> |
| 22 |
<?php echo esc_html(__( 'Email address not found. Please try again', 'propertyhive' )); ?> |
| 23 |
</div> |
| 24 |
|
| 25 |
<div id="lostPasswordSuccess" style="display:none;" class="alert alert-success"> |
| 26 |
<?php echo esc_html(__( 'Success. A link to reset your password has been emailed to you', 'propertyhive' )); ?> |
| 27 |
</div> |
| 28 |
|
| 29 |
<?php |
| 30 |
do_action( 'propertyhive_lost_password_form_start' ); |
| 31 |
|
| 32 |
ph_form_field( 'email_address', |
| 33 |
array( |
| 34 |
'type' => 'email', |
| 35 |
'label' => __( 'Email Address', 'propertyhive' ), |
| 36 |
'required' => true |
| 37 |
) |
| 38 |
); |
| 39 |
|
| 40 |
do_action( 'propertyhive_lost_password_form' ); |
| 41 |
?> |
| 42 |
|
| 43 |
<input type="submit" value="<?php echo esc_attr(__( 'Reset Password', 'propertyhive' )); ?>"> |
| 44 |
|
| 45 |
<?php do_action( 'propertyhive_lost_password_form_end' ); ?> |
| 46 |
|
| 47 |
</form> |
| 48 |
<?php } ?> |