| @@ -3,13 +3,32 @@ | ||
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | 6 | <div> |
| 7 | + <p class="frm_grid_container"> | |
| 8 | + <label class="frm4 frm_form_field" for="frm_load_style"> | |
| 9 | + <?php esc_html_e( 'Load form styling', 'formidable' ); ?> | |
| 10 | + </label> | |
| 11 | + <select id="frm_load_style" name="frm_load_style" class="frm8 frm_form_field"> | |
| 12 | + <option value="all" <?php selected( $frm_settings->load_style, 'all' ); ?>> | |
| 13 | + <?php esc_html_e( 'on every page of my site', 'formidable' ); ?> | |
| 14 | + </option> | |
| 15 | + <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ); ?>> | |
| 16 | + <?php esc_html_e( 'only on applicable pages', 'formidable' ); ?> | |
| 17 | + </option> | |
| 18 | + <option value="none" <?php selected( $frm_settings->load_style, 'none' ); ?>> | |
| 19 | + <?php esc_html_e( 'Don\'t use form styling on any page', 'formidable' ); ?> | |
| 20 | + </option> | |
| 21 | + </select> | |
| 22 | + </p> | |
| 23 | + | |
| 24 | + <?php do_action( 'frm_style_general_settings', $frm_settings ); ?> | |
| 25 | + | |
| 7 | 26 | <p class="howto"> |
| 8 | 27 | <?php esc_html_e( 'Easily change which style your forms are using by making changes below.', 'formidable' ); ?> |
| 9 | 28 | </p> |
| 10 | 29 | |
| 11 | - <?php include FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; ?> | |
| 30 | + <?php require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; ?> | |
| 12 | 31 | |
| 13 | 32 | <table class="widefat fixed striped"> |
| 14 | 33 | <thead> |
| 15 | 34 | <tr> |
| @@ -33,9 +52,9 @@ | ||
| 33 | 52 | * @param WP_Post $default_style |
| 34 | 53 | * @param string $row_view_file_path |
| 35 | 54 | * @return void |
| 36 | 55 | */ |
| 37 | - function( $form ) use ( $styles, $default_style, $row_view_file_path ) { | |
| 56 | + function ( $form ) use ( $styles, $default_style, $row_view_file_path ) { | |
| 38 | 57 | $active_style_id = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1; |
| 39 | 58 | if ( 1 === $active_style_id ) { |
| 40 | 59 | // use the default style |
| 41 | 60 | $active_style_id = $default_style->ID; |
| @@ -49,9 +68,9 @@ | ||
| 49 | 68 | <tr> |
| 50 | 69 | <td><?php esc_html_e( 'No Forms Found', 'formidable' ); ?></td> |
| 51 | 70 | </tr> |
| 52 | 71 | <?php |
| 53 | - } | |
| 72 | + }//end if | |
| 54 | 73 | ?> |
| 55 | 74 | </tbody> |
| 56 | 75 | </table> |
| 57 | 76 | </div> |