| @@ -1,13 +1,5 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -$button_title = uwp_get_option( 'login_form_button_title' ); | |
| 4 | -$button_title = $button_title | |
| 5 | - ? __( wp_unslash( $button_title ), 'userswp' ) | |
| 6 | - : __( 'Login', 'userswp' ); | |
| 7 | -$button_title = apply_filters( 'uwp_login_form_button_title', $button_title ); | |
| 8 | - | |
| 9 | -do_action('uwp_template_before', 'login'); ?> | |
| 1 | +<?php do_action('uwp_template_before', 'login'); ?> | |
| 10 | 2 | <div class="uwp-content-wrap"> |
| 11 | 3 | <div class="uwp-login" <?php if(!empty($uwp_login_widget_args['form_padding'])){echo "style='padding:".absint($uwp_login_widget_args['form_padding'])."px'";}?>> |
| 12 | 4 | <div class="uwp-lf-icon"><i class="fas fa-user fa-fw"></i></div> |
| 13 | 5 | <?php do_action('uwp_template_form_title_before', 'login'); ?> |
| @@ -23,9 +15,9 @@ | ||
| 23 | 15 | <input name="remember_me" id="remember_me<?php if(wp_doing_ajax()){echo "_ajax";}?>" value="forever" type="checkbox"> |
| 24 | 16 | <?php _e( 'Remember Me', 'userswp' ); ?> |
| 25 | 17 | </label> |
| 26 | 18 | </div> |
| 27 | - <input type="submit" name="uwp_login_submit" value="<?php echo esc_html( $button_title ); ?>"> | |
| 19 | + <input type="submit" name="uwp_login_submit" value="<?php esc_attr_e( 'Login', 'userswp' ); ?>"> | |
| 28 | 20 | </form> |
| 29 | 21 | <div class="uwp-login-links"> |
| 30 | 22 | <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> |
| 31 | 23 | <div class="uwp-footer-link uwp-forgotpsw"><a rel="nofollow" href="<?php echo esc_url( uwp_get_forgot_page_url() ); ?>"><?php echo uwp_get_option("forgot_link_title") ? esc_html( uwp_get_option("forgot_link_title") ) : esc_html__( 'Forgot password?', 'userswp' ); ?></a></div> |