PluginProbe
Easy Hotel – Powerful Hotel Booking / 2.0.2
Easy Hotel – Powerful Hotel Booking v2.0.2
2.0.8 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.9.9 1.9.8 1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 All 110 releases
easy-hotel / admin / includes / native-checkout / account / templates / account-settings.php

account-settings.php in Easy Hotel – Powerful Hotel Booking 2.0.2, at admin/includes/native-checkout/account/templates/account-settings.php

70 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Account tab: edit profile details and change password.
4 *
5 * @var ESHB_Native_Account $account
6 */
7 if ( ! defined( 'ABSPATH' ) ) exit;
8
9 $user = wp_get_current_user();
10 ?>
11 <div class="eshb-account-panel">
12 <div class="eshb-account-section-head">
13 <h2><?php esc_html_e( 'Account Details', 'easy-hotel' ); ?></h2>
14 </div>
15
16 <form class="eshb-account-form" id="eshbAccountProfileForm">
17 <div class="eshb-account-grid-2">
18 <div class="eshb-account-field">
19 <label for="eshbFirstName"><?php esc_html_e( 'First Name', 'easy-hotel' ); ?></label>
20 <input type="text" id="eshbFirstName" name="first_name" value="<?php echo esc_attr( $user->first_name ); ?>">
21 </div>
22 <div class="eshb-account-field">
23 <label for="eshbLastName"><?php esc_html_e( 'Last Name', 'easy-hotel' ); ?></label>
24 <input type="text" id="eshbLastName" name="last_name" value="<?php echo esc_attr( $user->last_name ); ?>">
25 </div>
26 </div>
27 <div class="eshb-account-field">
28 <label for="eshbDisplayName"><?php esc_html_e( 'Display Name', 'easy-hotel' ); ?></label>
29 <input type="text" id="eshbDisplayName" name="display_name" value="<?php echo esc_attr( $user->display_name ); ?>">
30 </div>
31 <div class="eshb-account-field">
32 <label for="eshbEmail"><?php esc_html_e( 'Email Address', 'easy-hotel' ); ?></label>
33 <input type="email" id="eshbEmail" name="email" value="<?php echo esc_attr( $user->user_email ); ?>" required>
34 </div>
35
36 <p class="eshb-account-form-msg" data-eshb-profile-msg></p>
37
38 <div class="eshb-account-form-actions">
39 <button type="submit" class="eshb-btn-submit"><?php esc_html_e( 'Save Changes', 'easy-hotel' ); ?></button>
40 </div>
41 </form>
42
43 <div class="eshb-account-section-head eshb-account-section-head--spaced">
44 <h2><?php esc_html_e( 'Change Password', 'easy-hotel' ); ?></h2>
45 </div>
46
47 <form class="eshb-account-form" id="eshbAccountPasswordForm">
48 <div class="eshb-account-field">
49 <label for="eshbCurrentPassword"><?php esc_html_e( 'Current Password', 'easy-hotel' ); ?></label>
50 <input type="password" id="eshbCurrentPassword" name="current_password" autocomplete="current-password">
51 </div>
52 <div class="eshb-account-grid-2">
53 <div class="eshb-account-field">
54 <label for="eshbNewPassword"><?php esc_html_e( 'New Password', 'easy-hotel' ); ?></label>
55 <input type="password" id="eshbNewPassword" name="new_password" autocomplete="new-password">
56 </div>
57 <div class="eshb-account-field">
58 <label for="eshbConfirmPassword"><?php esc_html_e( 'Confirm New Password', 'easy-hotel' ); ?></label>
59 <input type="password" id="eshbConfirmPassword" name="confirm_password" autocomplete="new-password">
60 </div>
61 </div>
62
63 <p class="eshb-account-form-msg" data-eshb-password-msg></p>
64
65 <div class="eshb-account-form-actions">
66 <button type="submit" class="eshb-btn-submit"><?php esc_html_e( 'Update Password', 'easy-hotel' ); ?></button>
67 </div>
68 </form>
69 </div>
70