| 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 _e( '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 _e( 'Login', 'propertyhive' ); ?>"> |
| 44 |
|
| 45 |
<?php do_action( 'propertyhive_login_form_end' ); ?> |
| 46 |
|
| 47 |
</form> |