| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?php if ( ! defined( 'ABSPATH' ) ) {
- exit;
- } ?>
-
- <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
- <div class="um-form">
- <form method="post" action="">
- <?php if ( isset( $_GET['updated'] ) && 'checkemail' === sanitize_key( $_GET['updated'] ) ) { ?>
- <div class="um-field um-field-block um-field-type_block">
- <div class="um-field-block">
- <div style="text-align:center;">
- <?php esc_html_e( 'We have sent you a password reset link to your e-mail. Please check your inbox.', 'ultimate-member' ); ?>
- </div>
- </div>
- </div>
- <?php } else { ?>
-
- <input type="hidden" name="_um_password_reset" id="_um_password_reset" value="1" />
-
- <?php
- /**
- * UM hook
- *
- * @type action
- * @title um_reset_password_page_hidden_fields
- * @description Password reset hidden fields
- * @input_vars
- * [{"var":"$args","type":"array","desc":"Password reset shortcode arguments"}]
- * @change_log
- * ["Since: 2.0"]
- * @usage add_action( 'um_reset_password_page_hidden_fields', 'function_name', 10, 1 );
- * @example
- * <?php
- * add_action( 'um_reset_password_page_hidden_fields', 'my_reset_password_page_hidden_fields', 10, 1 );
- * function my_reset_password_page_hidden_fields( $args ) {
- * // your code here
- * }
- * ?>
- */
- do_action( 'um_reset_password_page_hidden_fields', $args );
-
- if ( ! empty( $_GET['updated'] ) ) { ?>
- <div class="um-field um-field-block um-field-type_block">
- <div class="um-field-block">
- <div style="text-align:center;">
- <?php if ( 'expiredkey' === sanitize_key( $_GET['updated'] ) ) {
- _e( 'Your password reset link has expired. Please request a new link below.', 'ultimate-member' );
- } elseif ( 'invalidkey' === sanitize_key( $_GET['updated'] ) ) {
- _e( 'Your password reset link appears to be invalid. Please request a new link below.', 'ultimate-member' );
- } ?>
- </div>
- </div>
- </div>
- <?php } else { ?>
- <div class="um-field um-field-block um-field-type_block">
- <div class="um-field-block">
- <div style="text-align:center;">
- <?php _e( 'To reset your password, please enter your email address or username below', 'ultimate-member' ); ?>
- </div>
- </div>
- </div>
- <?php }
-
- $fields = UM()->builtin()->get_specific_fields( 'username_b' );
-
- $output = null;
- foreach ( $fields as $key => $data ) {
- $output .= UM()->fields()->edit_field( $key, $data );
- }
- echo $output;
-
- /**
- * UM hook
- *
- * @type action
- * @title um_after_password_reset_fields
- * @description Hook that runs after user reset their password
- * @input_vars
- * [{"var":"$args","type":"array","desc":"Form data"}]
- * @change_log
- * ["Since: 2.0"]
- * @usage add_action( 'um_after_password_reset_fields', 'function_name', 10, 1 );
- * @example
- * <?php
- * add_action( 'um_after_password_reset_fields', 'my_after_password_reset_fields', 10, 1 );
- * function my_after_password_reset_fields( $args ) {
- * // your code here
- * }
- * ?>
- */
- do_action( 'um_after_password_reset_fields', $args ); ?>
-
- <div class="um-col-alt um-col-alt-b">
-
- <div class="um-center">
- <input type="submit" value="<?php esc_attr_e( 'Reset my password', 'ultimate-member' ); ?>" class="um-button" id="um-submit-btn" />
- </div>
-
- <div class="um-clear"></div>
-
- </div>
-
- <?php
- /**
- * UM hook
- *
- * @type action
- * @title um_reset_password_form
- * @description Password reset display form
- * @input_vars
- * [{"var":"$args","type":"array","desc":"Password reset shortcode arguments"}]
- * @change_log
- * ["Since: 2.0"]
- * @usage add_action( 'um_reset_password_form', 'function_name', 10, 1 );
- * @example
- * <?php
- * add_action( 'um_reset_password_form', 'my_reset_password_form', 10, 1 );
- * function my_reset_password_form( $args ) {
- * // your code here
- * }
- * ?>
- */
- do_action( 'um_reset_password_form', $args );
-
- /**
- * UM hook
- *
- * @type action
- * @title um_after_form_fields
- * @description Password reset after display form
- * @input_vars
- * [{"var":"$args","type":"array","desc":"Password reset shortcode arguments"}]
- * @change_log
- * ["Since: 2.0"]
- * @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
- * @example
- * <?php
- * add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
- * function my_after_form_fields( $args ) {
- * // your code here
- * }
- * ?>
- */
- do_action( 'um_after_form_fields', $args );
- } ?>
- </form>
- </div>
- </div>
|