PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/styles/manage.php +25 -4 6.5 → trunk View file →
@@ -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>
@@ -31,14 +50,16 @@
31 50 * @param stdClass $form
32 51 * @param array<WP_Post> $styles
33 52 * @param WP_Post $default_style
34 53 * @param string $row_view_file_path
54 + *
35 55 * @return void
36 56 */
37 - function( $form ) use ( $styles, $default_style, $row_view_file_path ) {
57 + function ( $form ) use ( $styles, $default_style, $row_view_file_path ) {
38 58 $active_style_id = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1;
59 +
39 60 if ( 1 === $active_style_id ) {
40 - // use the default style
61 + // Use the default style
41 62 $active_style_id = $default_style->ID;
42 63 }
43 64
44 65 include $row_view_file_path;
@@ -49,9 +70,9 @@
49 70 <tr>
50 71 <td><?php esc_html_e( 'No Forms Found', 'formidable' ); ?></td>
51 72 </tr>
52 73 <?php
53 - }
74 + }//end if
54 75 ?>
55 76 </tbody>
56 77 </table>
57 78 </div>