Нема описа

form-reset-password.php 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Lost password reset form.
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-reset-password.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @package WooCommerce\Templates
  15. * @version 3.5.5
  16. */
  17. defined( 'ABSPATH' ) || exit;
  18. do_action( 'woocommerce_before_reset_password_form' );
  19. ?>
  20. <form method="post" class="woocommerce-ResetPassword lost_reset_password">
  21. <p><?php echo apply_filters( 'woocommerce_reset_password_message', esc_html__( 'Enter a new password below.', 'woocommerce' ) ); ?></p><?php // @codingStandardsIgnoreLine ?>
  22. <p class="woocommerce-form-row woocommerce-form-row--first form-row form-row-first">
  23. <label for="password_1"><?php esc_html_e( 'New password', 'woocommerce' ); ?>&nbsp;<span class="required">*</span></label>
  24. <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_1" id="password_1" autocomplete="new-password" />
  25. </p>
  26. <p class="woocommerce-form-row woocommerce-form-row--last form-row form-row-last">
  27. <label for="password_2"><?php esc_html_e( 'Re-enter new password', 'woocommerce' ); ?>&nbsp;<span class="required">*</span></label>
  28. <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password_2" id="password_2" autocomplete="new-password" />
  29. </p>
  30. <input type="hidden" name="reset_key" value="<?php echo esc_attr( $args['key'] ); ?>" />
  31. <input type="hidden" name="reset_login" value="<?php echo esc_attr( $args['login'] ); ?>" />
  32. <div class="clear"></div>
  33. <?php do_action( 'woocommerce_resetpassword_form' ); ?>
  34. <p class="woocommerce-form-row form-row">
  35. <input type="hidden" name="wc_reset_password" value="true" />
  36. <button type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Save', 'woocommerce' ); ?>"><?php esc_html_e( 'Save', 'woocommerce' ); ?></button>
  37. </p>
  38. <?php wp_nonce_field( 'reset_password', 'woocommerce-reset-password-nonce' ); ?>
  39. </form>
  40. <?php
  41. do_action( 'woocommerce_after_reset_password_form' );