| @@ -2,16 +2,13 @@ | ||
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | -<p class="howto"> | |
| 7 | - <?php esc_html_e( 'Select a style for this form and set your button text.', 'formidable' ); ?> | |
| 8 | -</p> | |
| 9 | 6 | |
| 10 | -<input type="hidden" name="options[custom_style]" value="<?php echo esc_attr( $values['custom_style'] ); ?>" /> | |
| 11 | - | |
| 12 | 7 | <table class="form-table"> |
| 13 | - <?php do_action( 'frm_add_form_style_tab_options', $values ); ?> | |
| 8 | + <?php | |
| 9 | + do_action_deprecated( 'frm_add_form_style_tab_options', array( $values ), '6.16.3' ); | |
| 10 | + ?> | |
| 14 | 11 | <tr> |
| 15 | 12 | <td colspan="2"> |
| 16 | 13 | <h3><?php esc_html_e( 'Buttons', 'formidable' ); ?></h3> |
| 17 | 14 | </td> |
| @@ -16,11 +13,18 @@ | ||
| 16 | 13 | <h3><?php esc_html_e( 'Buttons', 'formidable' ); ?></h3> |
| 17 | 14 | </td> |
| 18 | 15 | </tr> |
| 19 | 16 | <tr> |
| 20 | - <td><label for="frm_submit_button_text"><?php esc_html_e( 'Submit Button Text', 'formidable' ); ?></label></td> | |
| 21 | - <td> | |
| 22 | - <input id="frm_submit_button_text" type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" /> | |
| 17 | + <td colspan="2"> | |
| 18 | + <div class="frm_note_style" style="margin-top: 0;"> | |
| 19 | + <?php esc_html_e( 'Submit button settings were moved to the Submit button in the form builder.', 'formidable' ); ?> | |
| 20 | + </div> | |
| 23 | 21 | </td> |
| 24 | 22 | </tr> |
| 25 | - <?php do_action( 'frm_add_form_button_options', $values ); ?> | |
| 23 | + <?php | |
| 24 | + if ( $should_deprecate_hook ) { | |
| 25 | + do_action_deprecated( 'frm_add_form_button_options', array( $values ), '6.16.3' ); | |
| 26 | + } else { | |
| 27 | + do_action( 'frm_add_form_button_options', $values ); | |
| 28 | + } | |
| 29 | + ?> | |
| 26 | 30 | </table> |