plugin updates

This commit is contained in:
Tony Volpe
2024-11-20 22:40:39 -05:00
parent 0238f0c4ca
commit 3362947c6e
434 changed files with 13405 additions and 9202 deletions

View File

@@ -154,13 +154,15 @@ class GF_Field_Submit extends GF_Field {
$form_id = absint( $form['id'] );
$is_form_editor = $this->is_form_editor();
$class = esc_attr( 'gform-button gform-button--white ' );
$class_theme = $is_form_editor ? esc_attr( 'gform-theme-button gform-theme-button--secondary ' ) : '';
$class = sprintf( '%s%s', esc_attr( 'gform-button gform-button--white ' ), $class_theme );
$default_text = __( 'Submit', 'gravityforms' );
$button = rgar( $form, 'button', array( 'type' => 'link' ) );
$inline = rgar( $form['button'], 'location', 'bottom' );
// If we're in the editor or the button is inline, display the button. Otherwise, the button will be added to the footer in form_display.php.
// If we're in the editor or the button is inline, display the button.
// Otherwise, the button will be added to the footer in form_display.php.
if ( $is_form_editor || 'inline' == $inline ) {
$submit = GFFormDisplay::get_form_button( $form_id, "gform_submit_button_{$form_id}", $button, $default_text, $class, $default_text, 0 );
return gf_apply_filters( array( 'gform_submit_button', $form_id ), $submit, $form );