| @@ -1,15 +1,8 @@ | ||
| 1 | 1 | <?php do_action( 'uwp_template_before', 'register' ); |
| 2 | 2 | $css_class = ! empty( $args['css_class'] ) ? esc_attr( $args['css_class'] ) : ''; |
| 3 | 3 | $form_title = ! empty( $args['form_title'] ) ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Register', 'userswp' ); |
| 4 | -$form_title = apply_filters( 'uwp_template_form_button_title', $form_title, 'register' ); | |
| 5 | -$button_title = uwp_get_option( 'register_form_button_title' ); | |
| 6 | -if ( $button_title ) { | |
| 7 | - $button_title = __( wp_unslash( $button_title ), 'userswp' ); | |
| 8 | -} else { | |
| 9 | - $button_title = __( 'Create account', 'userswp' ); | |
| 10 | -} | |
| 11 | -$button_title = apply_filters( 'uwp_register_form_title', $button_title ); | |
| 4 | +$form_title = apply_filters( 'uwp_template_form_title', $form_title, 'register' ); | |
| 12 | 5 | ?> |
| 13 | 6 | <div class="uwp-content-wrap <?php echo esc_attr( $css_class ); ?>"> |
| 14 | 7 | <div class="uwp-registration"> |
| 15 | 8 | <div class="uwp-rf-icon"><i class="fas fa-pencil-alt fa-fw"></i></div> |
| @@ -20,25 +13,9 @@ | ||
| 20 | 13 | </h2> |
| 21 | 14 | <?php do_action( 'uwp_template_display_notices', 'register' ); ?> |
| 22 | 15 | <form class="uwp-registration-form uwp_form" method="post" enctype="multipart/form-data"> |
| 23 | 16 | <?php do_action( 'uwp_template_fields', 'register', $args ); ?> |
| 24 | - | |
| 25 | - <?php | |
| 26 | - $button_args = apply_filters( 'uwp_register_button_args', array( | |
| 27 | - 'type' => 'submit', | |
| 28 | - 'class' => 'uwp_register_submit', | |
| 29 | - 'content' => esc_html( $button_title ), | |
| 30 | - 'name' => 'uwp_register_submit', | |
| 31 | - ), $args ); | |
| 32 | - | |
| 33 | - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 34 | - printf( '<input type="%s" class="%s" name="%s" value="%s">', | |
| 35 | - esc_attr( $button_args['type'] ), | |
| 36 | - esc_attr( $button_args['class'] ), | |
| 37 | - esc_attr( $button_args['name'] ), | |
| 38 | - esc_attr( $button_args['content'] ) | |
| 39 | - ); | |
| 40 | - ?> | |
| 17 | + <input name="uwp_register_submit" value="<?php esc_attr_e( 'Create Account', 'userswp' ); ?>" type="submit"> | |
| 41 | 18 | </form> |
| 42 | 19 | <div class="uwp-footer-link uwp-login-now"><?php esc_html_e( 'Already a member?', 'userswp' ); ?> <a |
| 43 | 20 | rel="nofollow" |
| 44 | 21 | 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> |