| @@ -2,17 +2,19 @@ | ||
| 2 | 2 | <div class="uwp-content-wrap"> |
| 3 | 3 | <div class="uwp-login"> |
| 4 | 4 | <div class="uwp-lf-icon"><i class="fas fa-user fa-fw"></i></div> |
| 5 | 5 | <?php do_action('uwp_template_form_title_before', 'forgot'); ?> |
| 6 | - <h2><?php echo apply_filters('uwp_template_form_title', get_the_title(), 'forgot'); ?></h2> | |
| 6 | + <h2> | |
| 7 | + <?php $form_title = ! empty( $args['form_title'] ) ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Forgot Password?', 'userswp' ); | |
| 8 | + echo apply_filters('uwp_template_form_title', $form_title, 'forgot'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 9 | + </h2> | |
| 7 | 10 | <?php do_action('uwp_template_display_notices', 'forgot'); ?> |
| 8 | 11 | <form class="uwp-login-form uwp_form" method="post"> |
| 9 | 12 | <?php do_action('uwp_template_fields', 'forgot'); ?> |
| 10 | - <input type="hidden" name="uwp_forgot_nonce" value="<?php echo wp_create_nonce( 'uwp-forgot-nonce' ); ?>" /> | |
| 11 | - <input name="uwp_forgot_submit" value="<?php echo __( 'Submit', 'userswp' ); ?>" type="submit"><br> | |
| 13 | + <input name="uwp_forgot_submit" value="<?php esc_html_e( 'Submit', 'userswp' ); ?>" type="submit"><br> | |
| 12 | 14 | </form> |
| 13 | - <div class="uwp-forgotpsw"><a href="<?php echo uwp_get_page_link('login'); ?>"><?php echo __( 'Login?', 'userswp' ); ?></a></div> | |
| 15 | + <div class="uwp-footer-link uwp-forgotpsw"><?php esc_html_e( 'Already a member?', 'userswp' ); ?> <a rel="nofollow" href="<?php echo esc_url( uwp_get_login_page_url() ); ?>"><?php echo uwp_get_option("login_link_title") ? esc_html( uwp_get_option("login_link_title") ) : esc_html__( 'Login here', 'userswp' ); ?></a></div> | |
| 14 | 16 | <div class="clfx"></div> |
| 15 | - <div class="uwp-register-now"><?php echo __( 'Not a Member?', 'userswp' ); ?> <a rel="nofollow" href="<?php echo uwp_get_page_link('register'); ?>"><?php echo __( 'Create Account', 'userswp' ); ?></a></div> | |
| 17 | + <div class="uwp-footer-link uwp-register-now"><?php esc_html_e( 'Not a member?', 'userswp' ); ?> <a rel="nofollow" href="<?php echo esc_url( uwp_get_register_page_url() ); ?>"><?php echo uwp_get_option("register_link_title") ? esc_html( uwp_get_option("register_link_title") ) : esc_html__( 'Create account', 'userswp' ); ?></a></div> | |
| 16 | 18 | </div> |
| 17 | 19 | </div> |
| 18 | 20 | <?php do_action('uwp_template_after', 'forgot'); ?> |