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/_check-box-radio-fields.php +108 -40 6.3 → trunk View file →
@@ -2,46 +2,114 @@
2 2 if ( ! defined( 'ABSPATH' ) ) {
3 3 die( 'You are not allowed to call this page directly.' );
4 4 }
5 5 ?>
6 -<p class="frm6 frm_first frm_form_field">
7 - <label><?php esc_html_e( 'Radio', 'formidable' ); ?></label>
8 - <select name="<?php echo esc_attr( $frm_style->get_field_name( 'radio_align' ) ); ?>" id="frm_radio_align">
9 - <option value="block" <?php selected( $style->post_content['radio_align'], 'block' ); ?>>
10 - <?php esc_html_e( 'Multiple Rows', 'formidable' ); ?>
11 - </option>
12 - <option value="inline" <?php selected( $style->post_content['radio_align'], 'inline' ); ?>>
13 - <?php esc_html_e( 'Single Row', 'formidable' ); ?>
14 - </option>
15 - </select>
16 -</p>
6 +<div class="frm5 frm_form_field">
7 + <label
8 + for="frm_check_label_color"
9 + class="frm-style-item-heading"><?php esc_html_e( 'Color', 'formidable' ); ?></label>
10 +</div>
11 +<div class="frm7 frm_form_field">
12 + <?php
13 + new FrmColorpickerStyleComponent(
14 + $frm_style->get_field_name( 'check_label_color' ),
15 + $style->post_content['check_label_color'],
16 + array(
17 + 'id' => 'frm_check_label_color',
18 + 'action_slug' => 'check_label_color',
19 + )
20 + );
21 + ?>
22 +</div>
17 23
18 -<p class="frm6 frm_form_field">
19 - <label><?php esc_html_e( 'Check Box', 'formidable' ); ?></label>
20 - <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_align' ) ); ?>" id="frm_check_align">
21 - <option value="block" <?php selected( $style->post_content['check_align'], 'block' ); ?>>
22 - <?php esc_html_e( 'Multiple Rows', 'formidable' ); ?>
23 - </option>
24 - <option value="inline" <?php selected( $style->post_content['check_align'], 'inline' ); ?>>
25 - <?php esc_html_e( 'Single Row', 'formidable' ); ?>
26 - </option>
27 - </select>
28 -</p>
24 +<div class="frm5 frm_form_field">
25 + <label
26 + for="frm_check_font_size"
27 + class="frm-style-item-heading"><?php esc_html_e( 'Font Size', 'formidable' ); ?></label>
28 +</div>
29 +<div class="frm7 frm_form_field">
30 + <?php
31 + new FrmSliderStyleComponent(
32 + $frm_style->get_field_name( 'check_font_size' ),
33 + $style->post_content['check_font_size'],
34 + array(
35 + 'id' => 'frm_check_font_size',
36 + 'max_value' => 100,
37 + )
38 + );
39 + ?>
40 +</div>
29 41
30 -<p class="frm4 frm_first frm_form_field">
31 - <label><?php esc_html_e( 'Color', 'formidable' ); ?></label>
32 - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_label_color' ) ); ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ); ?>" <?php do_action( 'frm_style_settings_input_atts', 'check_label_color' ); ?> />
33 -</p>
34 -<p class="frm4 frm_form_field">
35 - <label><?php esc_html_e( 'Weight', 'formidable' ); ?></label>
36 - <select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_weight' ) ); ?>" id="frm_check_weight">
37 - <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?>
38 - <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $style->post_content['check_weight'], $value ); ?>>
39 - <?php echo esc_html( $name ); ?>
40 - </option>
41 - <?php } ?>
42 - </select>
43 -</p>
44 -<p class="frm4 frm_form_field">
45 - <label><?php esc_html_e( 'Size', 'formidable' ); ?></label>
46 - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_font_size' ) ); ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ); ?>" size="3" />
47 -</p>
42 +<div class="frm5 frm_form_field">
43 + <label
44 + for="frm_check_weight"
45 + class="frm-style-item-heading"><?php esc_html_e( 'Weight', 'formidable' ); ?></label>
46 +</div>
47 +<div class="frm7 frm_form_field">
48 + <?php
49 + new FrmDropdownStyleComponent(
50 + $frm_style->get_field_name( 'check_weight' ),
51 + $style->post_content['check_weight'],
52 + array(
53 + 'id' => 'frm_check_weight',
54 + 'options' => FrmStyle::get_bold_options(),
55 + )
56 + );
57 + ?>
58 +</div>
59 +
60 +<div class="frm5 frm_form_field">
61 + <label
62 + for="frm_check_align"
63 + class="frm-style-item-heading"><?php esc_html_e( 'Check Box', 'formidable' ); ?></label>
64 +</div>
65 +<div class="frm7 frm_form_field">
66 + <?php
67 + $align_options = array(
68 + 'block' => __( 'One Column', 'formidable' ),
69 + 'inline' => __( 'Inline Options', 'formidable' ),
70 + );
71 +
72 + /**
73 + * @since 6.32
74 + *
75 + * @param array $align_options
76 + * @param array $atts
77 + */
78 + $checkbox_align_options = apply_filters( 'frm_checkbox_align_options', $align_options, $atts );
79 +
80 + new FrmDropdownStyleComponent(
81 + $frm_style->get_field_name( 'check_align' ),
82 + $style->post_content['check_align'],
83 + array(
84 + 'id' => 'frm_check_align',
85 + 'options' => $checkbox_align_options,
86 + )
87 + );
88 + ?>
89 +</div>
90 +
91 +<div class="frm5 frm_form_field">
92 + <label
93 + for="frm_radio_align"
94 + class="frm-style-item-heading"><?php esc_html_e( 'Radio', 'formidable' ); ?></label>
95 +</div>
96 +<div class="frm7 frm_form_field">
97 + <?php
98 + /**
99 + * @since 6.32
100 + *
101 + * @param array $align_options
102 + * @param array $atts
103 + */
104 + $radio_align_options = apply_filters( 'frm_radio_align_options', $align_options, $atts );
105 +
106 + new FrmDropdownStyleComponent(
107 + $frm_style->get_field_name( 'radio_align' ),
108 + $style->post_content['radio_align'],
109 + array(
110 + 'id' => 'frm_radio_align',
111 + 'options' => $radio_align_options,
112 + )
113 + );
114 + ?>
115 +</div>