| @@ -1,35 +1,20 @@ | ||
| 1 | 1 | <h2><?php echo __( 'Form Settings', 'html-forms' ); ?></h2> |
| 2 | 2 | |
| 3 | -<?php if ( ! defined( 'HF_PREMIUM_VERSION' ) ) : ?> | |
| 4 | - <p class="hf-premium"> | |
| 5 | - <?php echo sprintf( __('Enable submission notifications, set a form submission limit, require users to login, and more with <a href="%s">HTML Forms Premium</a>', 'html-forms' ), 'https://htmlformsplugin.com/premium/#utm_source=wp-plugin&utm_medium=html-forms&utm_campaign=actions-tab' ); ?>. | |
| 6 | - </p> | |
| 7 | -<?php endif; ?> | |
| 3 | +<table class="form-table"> | |
| 8 | 4 | |
| 9 | -<table class="form-table"> | |
| 10 | 5 | <tr valign="top"> |
| 11 | - <th scope="row" colspan="2" class="hf-settings-header"><?php echo __( 'Submissions', 'html-forms' ); ?></th> | |
| 12 | - </tr> | |
| 13 | - | |
| 14 | - <tr valign="top"> | |
| 15 | - <th scope="row"> | |
| 16 | - <?php _e( 'Save Form Submissions', 'html-forms' ); ?> | |
| 17 | - <a target="_blank" tabindex="-1" class="html-forms-help" href="https://htmlformsplugin.com/kb/save-form-submissions/"><span class="dashicons dashicons-editor-help"></span></a> | |
| 18 | - </th> | |
| 6 | + <th scope="row"><?php _e( 'Save form submissions?', 'html-forms' ); ?></th> | |
| 19 | 7 | <td> |
| 20 | 8 | <label><input type="radio" name="form[settings][save_submissions]" value="1" <?php checked( $form->settings['save_submissions'], 1 ); ?>> <?php _e( 'Yes' ); ?></label> |
| 21 | 9 | <label><input type="radio" name="form[settings][save_submissions]" value="0" <?php checked( $form->settings['save_submissions'], 0 ); ?>> <?php _e( 'No' ); ?></label> |
| 22 | 10 | |
| 23 | - <p class="description"><?php _e( 'Select "Yes" to store successful form submissions.', 'html-forms' ); ?></p> | |
| 11 | + <p class="description"><?php _e( 'Select "yes" to store successful form submissions.', 'html-forms' ); ?></p> | |
| 24 | 12 | </td> |
| 25 | 13 | </tr> |
| 26 | 14 | |
| 27 | 15 | <tr valign="top"> |
| 28 | - <th scope="row"> | |
| 29 | - <?php _e( 'Hide Form After Successful Submission', 'html-forms' ); ?> | |
| 30 | - <a target="_blank" tabindex="-1" class="html-forms-help" href="https://htmlformsplugin.com/kb/hide-form-fields-after-submission/"><span class="dashicons dashicons-editor-help"></span></a> | |
| 31 | - </th> | |
| 16 | + <th scope="row"><?php _e( 'Hide form after a successful sign-up?', 'html-forms' ); ?></th> | |
| 32 | 17 | <td class="nowrap"> |
| 33 | 18 | <label> |
| 34 | 19 | <input type="radio" name="form[settings][hide_after_success]" value="1" <?php checked( $form->settings['hide_after_success'], 1 ); ?> />‏ |
| 35 | 20 | <?php _e( 'Yes' ); ?> |
| @@ -38,18 +23,15 @@ | ||
| 38 | 23 | <input type="radio" name="form[settings][hide_after_success]" value="0" <?php checked( $form->settings['hide_after_success'], 0 ); ?> />‏ |
| 39 | 24 | <?php _e( 'No' ); ?> |
| 40 | 25 | </label> |
| 41 | 26 | <p class="description"> |
| 42 | - <?php _e(' Select "Yes" to hide the form fields after a successful submission.', 'html-forms' ); ?> | |
| 27 | + <?php _e( 'Select "yes" to hide the form fields after a successful sign-up.', 'html-forms' ); ?> | |
| 43 | 28 | </p> |
| 44 | 29 | </td> |
| 45 | 30 | </tr> |
| 46 | 31 | |
| 47 | 32 | <tr valign="top"> |
| 48 | - <th scope="row"> | |
| 49 | - <label for="hf_form_redirect"><?php _e( 'Redirect to URL After Successful Submission', 'html-forms' ); ?></label> | |
| 50 | - <a target="_blank" tabindex="-1" class="html-forms-help" href="https://htmlformsplugin.com/kb/redirect-url-form-submission/"><span class="dashicons dashicons-editor-help"></span></a> | |
| 51 | - </th> | |
| 33 | + <th scope="row"><label for="hf_form_redirect"><?php _e( 'Redirect to URL after successful sign-ups', 'html-forms' ); ?></label></th> | |
| 52 | 34 | <td> |
| 53 | 35 | <input type="text" class="widefat" name="form[settings][redirect_url]" id="hf_form_redirect" placeholder="<?php printf( __( 'Example: %s', 'html-forms' ), esc_attr( site_url( '/thank-you/' ) ) ); ?>" value="<?php echo esc_attr( $form->settings['redirect_url'] ); ?>" /> |
| 54 | 36 | <p class="description"> |
| 55 | 37 | <?php _e( 'Leave empty or enter <code>0</code> for no redirect. Otherwise, use complete (absolute) URLs, including <code>http://</code>.', 'html-forms' ); ?> |
| @@ -54,9 +36,9 @@ | ||
| 54 | 36 | <p class="description"> |
| 55 | 37 | <?php _e( 'Leave empty or enter <code>0</code> for no redirect. Otherwise, use complete (absolute) URLs, including <code>http://</code>.', 'html-forms' ); ?> |
| 56 | 38 | </p> |
| 57 | 39 | <p class="description"> |
| 58 | - <?php _e( 'You can use the following variables in the redirect URL: ', 'html-forms' ); ?><br /><span class="hf-field-names"></span> | |
| 40 | + <?php _e( 'You can use the following variables in the redirect URL: ', 'html-forms' ); ?><span class="hf-field-names"></span> | |
| 59 | 41 | </p> |
| 60 | 42 | </td> |
| 61 | 43 | </tr> |
| 62 | 44 | |
| @@ -65,10 +47,9 @@ | ||
| 65 | 47 | * Runs after the form settings are printed. |
| 66 | 48 | * |
| 67 | 49 | * @param $form |
| 68 | 50 | */ |
| 69 | - do_action( 'hf_output_form_settings_submissions', $form ); | |
| 70 | - do_action( 'hf_output_form_settings', $form ); | |
| 71 | -?> | |
| 51 | + do_action( 'hf_output_form_settings', $form ); ?> | |
| 52 | + | |
| 72 | 53 | </table> |
| 73 | 54 | |
| 74 | 55 | <?php submit_button(); ?> |