✏️ 正在编辑: form-edit-account.php
路径:
/home/h359620/public_html/wp-content/themes/datis/woocommerce/myaccount/form-edit-account.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php defined('ABSPATH') || exit; $user = wp_get_current_user(); $demo = get_option('datis_active_demo', ''); do_action('woocommerce_before_edit_account_form'); ?> <div class="account-settings"> <div class="account-wrapper d-flex flex-column gap-4"> <form class="account-form d-flex flex-column gap-4 woocommerce-EditAccountForm edit-account" action="" method="post" <?php do_action('woocommerce_edit_account_form_tag'); ?>> <?php do_action('woocommerce_edit_account_form_start'); ?> <!-- Account Info --> <section class="account-card account-card-account"> <div class="account-card-head d-flex flex-row align-items-center justify-content-between"> <h3 class="account-card-title"><?php echo esc_html_x('Account details', 'Edit account section title', 'datis'); ?></h3> </div> <div class="account-card-body mt-4"> <div class="account-form-grid"> <div class="account-field"> <span class="dash-field-icon dash-ico-user" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="12" cy="6" r="4" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" /> <path d="M15 20.6151C14.0907 20.8619 13.0736 21 12 21C8.13401 21 5 19.2091 5 17C5 14.7909 8.13401 13 12 13C15.866 13 19 14.7909 19 17C19 17.3453 18.9234 17.6804 18.7795 18" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="text" name="account_first_name" id="account_first_name" autocomplete="given-name" value="<?php echo esc_attr($user->first_name); ?>" placeholder="<?php echo esc_attr_x('First name', 'Edit account placeholder', 'datis'); ?>" /> </div> <div class="account-field"> <span class="dash-field-icon dash-ico-user" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="12" cy="6" r="4" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" /> <path d="M15 20.6151C14.0907 20.8619 13.0736 21 12 21C8.13401 21 5 19.2091 5 17C5 14.7909 8.13401 13 12 13C15.866 13 19 14.7909 19 17C19 17.3453 18.9234 17.6804 18.7795 18" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="text" name="account_last_name" id="account_last_name" autocomplete="family-name" value="<?php echo esc_attr($user->last_name); ?>" placeholder="<?php echo esc_attr_x('Last name', 'Edit account placeholder', 'datis'); ?>" /> </div> <div class="account-field"> <span class="dash-field-icon dash-ico-user" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="12" cy="6" r="4" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" /> <path d="M15 20.6151C14.0907 20.8619 13.0736 21 12 21C8.13401 21 5 19.2091 5 17C5 14.7909 8.13401 13 12 13C15.866 13 19 14.7909 19 17C19 17.3453 18.9234 17.6804 18.7795 18" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="text" name="account_display_name" id="account_display_name" value="<?php echo esc_attr($user->display_name); ?>" placeholder="<?php echo esc_attr_x('Display name', 'Edit account placeholder', 'datis'); ?>" /> </div> <div class="account-field"> <span class="dash-field-icon dash-ico-mail" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M22 12C22 15.7712 22 17.6569 20.8284 18.8284C19.6569 20 17.7712 20 14 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C21.4816 5.82475 21.7706 6.69989 21.8985 8" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> <path d="M18 8L15.8411 9.79908C14.0045 11.3296 13.0861 12.0949 12 12.0949C11.3507 12.0949 10.7614 11.8214 10 11.2744M6 8L6.9 8.75L7.8 9.5" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="email" name="account_email" id="account_email" autocomplete="email" value="<?php echo esc_attr($user->user_email); ?>" placeholder="<?php echo esc_attr_x('Email address', 'Edit account placeholder', 'datis'); ?>" /> </div> <?php do_action('woocommerce_edit_account_form'); ?> </div> </div> </section> <!-- Password --> <section class="account-card account-card-password"> <div class="account-card-head d-flex flex-row align-items-center justify-content-between"> <h3 class="account-card-title"><?php echo esc_html_x('Password change', 'Edit account section title', 'datis'); ?></h3> </div> <div class="account-card-body mt-4"> <div class="account-form-grid account-form-grid-3"> <div class="account-field"> <span class="dash-field-icon dash-ico-lock" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="12" cy="16" r="2" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" /> <path d="M6 10V8C6 7.65929 6.0284 7.32521 6.08296 7M18 10V8C18 4.68629 15.3137 2 12 2C10.208 2 8.59942 2.78563 7.5 4.03126" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> <path d="M11 22H8C5.17157 22 3.75736 22 2.87868 21.1213C2 20.2426 2 18.8284 2 16C2 13.1716 2 11.7574 2.87868 10.8787C3.75736 10 5.17157 10 8 10H16C18.8284 10 20.2426 10 21.1213 10.8787C22 11.7574 22 13.1716 22 16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="password" name="password_current" id="password_current" autocomplete="current-password" placeholder="<?php echo esc_attr_x('Current password (leave blank to leave unchanged)', 'Edit account placeholder', 'datis'); ?>" /> </div> <div class="account-field"> <span class="dash-field-icon dash-ico-lock" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="12" cy="16" r="2" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" /> <path d="M6 10V8C6 7.65929 6.0284 7.32521 6.08296 7M18 10V8C18 4.68629 15.3137 2 12 2C10.208 2 8.59942 2.78563 7.5 4.03126" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> <path d="M11 22H8C5.17157 22 3.75736 22 2.87868 21.1213C2 20.2426 2 18.8284 2 16C2 13.1716 2 11.7574 2.87868 10.8787C3.75736 10 5.17157 10 8 10H16C18.8284 10 20.2426 10 21.1213 10.8787C22 11.7574 22 13.1716 22 16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="password" name="password_1" id="password_1" autocomplete="new-password" placeholder="<?php echo esc_attr_x('New password (leave blank to leave unchanged)', 'Edit account placeholder', 'datis'); ?>" /> </div> <div class="account-field"> <span class="dash-field-icon dash-ico-lock" aria-hidden="true"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="12" cy="16" r="2" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" /> <path d="M6 10V8C6 7.65929 6.0284 7.32521 6.08296 7M18 10V8C18 4.68629 15.3137 2 12 2C10.208 2 8.59942 2.78563 7.5 4.03126" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> <path d="M11 22H8C5.17157 22 3.75736 22 2.87868 21.1213C2 20.2426 2 18.8284 2 16C2 13.1716 2 11.7574 2.87868 10.8787C3.75736 10 5.17157 10 8 10H16C18.8284 10 20.2426 10 21.1213 10.8787C22 11.7574 22 13.1716 22 16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15" stroke="currentColor" stroke-opacity="0.6" stroke-width="1.5" stroke-linecap="round" /> </svg> </span> <input class="account-input" type="password" name="password_2" id="password_2" autocomplete="new-password" placeholder="<?php echo esc_attr_x('Confirm new password', 'Edit account placeholder', 'datis'); ?>" /> </div> </div> </div> <ul class="account-hints"> <li class="account-hint-item"><?php echo esc_html_x('At least 8 characters', 'Password hint', 'datis'); ?></li> <li class="account-hint-item"><?php echo esc_html_x('Use numbers and Latin letters', 'Password hint', 'datis'); ?></li> <li class="account-hint-item"><?php echo esc_html_x('Do not use personal information', 'Password hint', 'datis'); ?></li> </ul> </section> <!-- Actions --> <div class="account-actions d-flex align-items-center justify-content-start justify-content-lg-end w-100"> <button type="submit" class="account-btn account-btn-primary" name="save_account_details" value="1"> <?php if ($demo == 'industry') : ?> <svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.7701 11.8579L10.8921 10.2077M0.750669 1.29699L9.2183 0.750029M0.750669 1.29699L1.29763 9.76463M0.750669 1.29699L8.63844 8.22758" stroke="#F5F5F5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> <?php elseif ($demo == 'business'): ?> <svg width="44" height="40" viewBox="0 0 44 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10 40C4.47715 40 -1.95703e-07 35.5228 -4.37114e-07 30L-1.31134e-06 10C-1.55275e-06 4.47715 4.47715 -1.95703e-07 10 -4.37114e-07L33.1922 -1.45088e-06C39.6979 -1.73525e-06 44.4715 6.11389 42.8937 12.4254L37.8937 32.4254C36.7807 36.877 32.7809 40 28.1922 40L10 40Z" fill="#F9E65C" /> <path d="M15.3433 15.3139H22.3286M15.3433 15.3139V22.2992M15.3433 15.3139L21.4554 21.4261M24.657 24.6276L23.2017 23.1724" stroke="#0A2647" stroke-width="1.23483" stroke-linecap="round" stroke-linejoin="round" /> </svg> <?php else : ?> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M6 6H15M6 6V15M6 6L12.5 12.5M18 18L15.5 15.5" stroke="#F7F6FE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> </svg> <?php endif; ?> <?php if ($demo == 'industry' || $demo == 'business') : echo esc_html_x('Save changes', 'Edit account button', 'datis'); else : ?> <span><?php echo esc_html_x('Save changes', 'Edit account button', 'datis'); ?></span> <?php endif; ?> </button> </div> <?php wp_nonce_field('save_account_details', 'save-account-details-nonce'); ?> <input type="hidden" name="action" value="save_account_details" /> <?php do_action('woocommerce_edit_account_form_end'); ?> </form> </div> </div> <?php do_action('woocommerce_after_edit_account_form'); ?>
💾 保存文件
← 返回文件管理器