| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the login form allowing users access to their account |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/propertyhive/account/login-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_login_form" class="propertyhive-form login-form" action="" method="post"> |
| 16 |
|
| 17 |
<div id="loginError" style="display:none;" class="alert alert-danger alert-box"> |
| 18 |
<?php echo esc_html(__( 'Invalid details provided. Please try again', 'propertyhive' )); ?> |
| 19 |
</div> |
| 20 |
|
| 21 |
<?php |
| 22 |
do_action( 'propertyhive_login_form_start' ); |
| 23 |
|
| 24 |
ph_form_field( 'email_address', |
| 25 |
array( |
| 26 |
'type' => 'email', |
| 27 |
'label' => __( 'Email Address', 'propertyhive' ), |
| 28 |
'required' => true |
| 29 |
) |
| 30 |
); |
| 31 |
|
| 32 |
ph_form_field( 'password', |
| 33 |
array( |
| 34 |
'type' => 'password', |
| 35 |
'label' => __( 'Password', 'propertyhive' ), |
| 36 |
'required' => true |
| 37 |
) |
| 38 |
); |
| 39 |
|
| 40 |
do_action( 'propertyhive_login_form' ); |
| 41 |
?> |
| 42 |
|
| 43 |
<input type="submit" value="<?php echo esc_attr(__( 'Login', 'propertyhive' )); ?>"> |
| 44 |
|
| 45 |
<?php if ( !empty( get_option( 'propertyhive_applicant_reset_password_page_id', '' ) ) ) { ?> |
| 46 |
<div class="ph-forgot-password-link"><a href="" class="ph-forgot-password"><?php echo esc_html(__( 'Forgot your password?', 'propertyhive' )); ?></a></div> |
| 47 |
<?php } ?> |
| 48 |
|
| 49 |
<?php do_action( 'propertyhive_login_form_end' ); ?> |
| 50 |
|
| 51 |
</form> |
| 52 |
|
| 53 |
<?php ph_get_template( 'account/lost-password-form.php' ); ?> |