| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Register template (default) |
| 4 | 4 | * |
| 5 | - * @ver 1.2.41 | |
| 5 | + * @ver 1.0.1 | |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | global $aui_bs5; |
| 9 | 9 | |
| @@ -9,15 +9,8 @@ | ||
| 9 | 9 | |
| 10 | 10 | $css_class = ! empty( $args['css_class'] ) ? esc_attr( $args['css_class'] ) : 'border-0'; |
| 11 | 11 | $form_title = ! empty( $args['form_title'] ) || $args['form_title']=='0' ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Register', 'userswp' ); |
| 12 | 12 | $form_title = apply_filters( 'uwp_template_form_title', $form_title, 'register' ); |
| 13 | -$button_title = uwp_get_option( 'register_form_button_title' ); | |
| 14 | -if ( $button_title ) { | |
| 15 | - $button_title = __( wp_unslash( $button_title ), 'userswp' ); | |
| 16 | -} else { | |
| 17 | - $button_title = __( 'Create account', 'userswp' ); | |
| 18 | -} | |
| 19 | -$button_title = apply_filters( 'uwp_register_form_button_title', $button_title ); | |
| 20 | 13 | do_action( 'uwp_template_before', 'register', $args ); ?> |
| 21 | 14 | <div class="row"> |
| 22 | 15 | <div class="card mx-auto container-fluid p-0 <?php echo esc_attr( $css_class ); ?>" > |
| 23 | 16 | <?php |
| @@ -52,17 +45,14 @@ | ||
| 52 | 45 | |
| 53 | 46 | <form class="uwp-registration-form uwp_form" method="post" enctype="multipart/form-data"> |
| 54 | 47 | <?php |
| 55 | 48 | do_action( 'uwp_template_fields', 'register', $args ); |
| 56 | - | |
| 57 | - $button_args = apply_filters( 'uwp_register_button_args', array( | |
| 58 | - 'type' => 'submit', | |
| 59 | - 'class' => 'btn btn-primary btn-block text-uppercase uwp_register_submit', | |
| 60 | - 'content' => esc_html( $button_title ), | |
| 61 | - 'name' => 'uwp_register_submit', | |
| 62 | - ), $args ); | |
| 63 | - | |
| 64 | - echo aui()->button( $button_args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 49 | + echo aui()->input(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 50 | + 'type' => 'submit', | |
| 51 | + 'class' => 'btn btn-primary btn-block text-uppercase uwp_register_submit', | |
| 52 | + 'value' => esc_html__( 'Create Account', 'userswp' ), | |
| 53 | + 'name' => 'uwp_register_submit', | |
| 54 | + )); | |
| 65 | 55 | ?> |
| 66 | 56 | </form> |
| 67 | 57 | |
| 68 | 58 | <div class="uwp-footer-links"> |