Skip to content

Commit 11e0d68

Browse files
committed
Update submit button
1 parent c0f2fd9 commit 11e0d68

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

includes/class-frontend-form.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,14 @@ public function submit_button( $form_id, $form_settings ) {
173173

174174
<?php do_action( 'weforms_submit_btn', $form_id, $form_settings ); ?>
175175

176-
<input type="submit" class="weforms_submit_btn wpuf_submit_<?php echo esc_attr( $form_id ); ?>" name="submit" value="<?php echo
177-
esc_attr( $form_settings['submit_text'] ); ?>" />
178-
176+
<?php error_log( print_r( $form_settings['use_theme_css'], true ) ); ?>
177+
<?php if ( 'wpuf-style' == $form_settings['use_theme_css'] ) : ?>
178+
<input type="submit" class="weforms_submit_btn wpuf_submit_<?php echo esc_attr( $form_id ); ?>" name="submit" value="<?php echo
179+
esc_attr( $form_settings['submit_text'] ); ?>" />
180+
<?php else : ?>
181+
<input type="submit" class="button button-primary wpuf_submit_<?php echo esc_attr( $form_id ); ?>" name="submit" value="<?php echo
182+
esc_attr( $form_settings['submit_text'] ); ?>" />
183+
<?php endif; ?>
179184
</li>
180185
<?php
181186
}

includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ function weforms_get_default_form_settings() {
11001100
'page_id' => '',
11011101
'url' => '',
11021102

1103-
'submit_text' => __( 'Submit Query', 'weforms' ),
1103+
'submit_text' => __( 'Submit', 'weforms' ),
11041104
'submit_button_cond' => [
11051105
'condition_status' => 'no',
11061106
'cond_logic' => 'any',

0 commit comments

Comments
 (0)