PluginProbe
Property Hive / 2.2.3
Property Hive v2.2.3
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / templates / account / reset-password-form.php

reset-password-form.php in Property Hive 2.2.3, at templates/account/reset-password-form.php

57 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Outputs the reset password form allowing users to reset their password
4 *
5 * This template can be overridden by copying it to yourtheme/propertyhive/account/reset-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
15 <form name="ph_reset_password_form" class="propertyhive-form reset-password-form" action="" method="post">
16
17 <p><?php echo __( 'Enter a new password below.', 'propertyhive' ); ?></p>
18
19 <div id="resetPasswordError" style="display:none;" class="alert alert-danger alert-box">
20 <?php echo esc_html(__( 'The passwords entered must match', 'propertyhive' )); ?>
21 </div>
22
23 <div id="resetPasswordSuccess" style="display:none;" class="alert alert-success">
24 <?php echo esc_html(__( 'Success. Your password has been changed successfully. You can now login with your new password.', 'propertyhive' )); ?><br>
25 <a href="<?php echo esc_url(get_permalink( get_option( 'propertyhive_applicant_login_page_id', '' ) )); ?>">Login</a>
26 </div>
27
28 <?php
29 do_action( 'propertyhive_reset_password_form_start' );
30
31 ph_form_field( 'password_1',
32 array(
33 'type' => 'password',
34 'label' => __( 'New Password', 'propertyhive' ),
35 'required' => true
36 )
37 );
38
39 ph_form_field( 'password_2',
40 array(
41 'type' => 'password',
42 'label' => __( 'Re-enter Password', 'propertyhive' ),
43 'required' => true
44 )
45 );
46
47 do_action( 'propertyhive_reset_password_form' );
48 ?>
49
50 <input type="hidden" name="reset_key" value="<?php echo esc_attr( $args['reset_key'] ); ?>" />
51 <input type="hidden" name="reset_login" value="<?php echo esc_attr( $args['reset_login'] ); ?>" />
52
53 <input type="submit" value="<?php echo esc_attr(__( 'Reset Password', 'propertyhive' )); ?>">
54
55 <?php do_action( 'propertyhive_reset_password_form_end' ); ?>
56
57 </form>