Completed
Push — master ( c4cd1f...963c86 )
by
unknown
36s
created
sample/sections/typography/typography.php 1 patch
Indentation   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -10,106 +10,106 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'  => esc_html__( 'Typography', 'your-textdomain-here' ),
16
-		'id'     => 'typography',
17
-		'desc'   => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/typography.html" target="_blank">https://devs.redux.io/core-fields/typography.html</a>',
18
-		'icon'   => 'el el-font',
19
-		'fields' => array(
20
-			array(
21
-				'id'                => 'opt-typography-body',
22
-				'type'              => 'typography',
23
-				'title'             => esc_html__( 'Body Font', 'your-textdomain-here' ),
24
-				'subtitle'          => esc_html__( 'Specify the body font properties.', 'your-textdomain-here' ),
25
-				'google'            => true,
26
-				'font_family_clear' => false,
27
-				'default'           => array(
28
-					'color'       => '#dd9933',
29
-					'font-size'   => '30px',
30
-					'font-family' => 'Arial, Helvetica, sans-serif',
31
-					'font-weight' => 'Normal',
32
-				),
33
-				'output'            => array( 'p' ),
34
-			),
35
-			array(
36
-				'id'          => 'opt-typography',
37
-				'type'        => 'typography',
38
-				'title'       => esc_html__( 'Typography Site Description', 'your-textdomain-here' ),
13
+    $opt_name,
14
+    array(
15
+        'title'  => esc_html__( 'Typography', 'your-textdomain-here' ),
16
+        'id'     => 'typography',
17
+        'desc'   => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/typography.html" target="_blank">https://devs.redux.io/core-fields/typography.html</a>',
18
+        'icon'   => 'el el-font',
19
+        'fields' => array(
20
+            array(
21
+                'id'                => 'opt-typography-body',
22
+                'type'              => 'typography',
23
+                'title'             => esc_html__( 'Body Font', 'your-textdomain-here' ),
24
+                'subtitle'          => esc_html__( 'Specify the body font properties.', 'your-textdomain-here' ),
25
+                'google'            => true,
26
+                'font_family_clear' => false,
27
+                'default'           => array(
28
+                    'color'       => '#dd9933',
29
+                    'font-size'   => '30px',
30
+                    'font-family' => 'Arial, Helvetica, sans-serif',
31
+                    'font-weight' => 'Normal',
32
+                ),
33
+                'output'            => array( 'p' ),
34
+            ),
35
+            array(
36
+                'id'          => 'opt-typography',
37
+                'type'        => 'typography',
38
+                'title'       => esc_html__( 'Typography Site Description', 'your-textdomain-here' ),
39 39
 
40
-				// Use if you want to hook in your own CSS compiler.
41
-				'compiler'    => true,
40
+                // Use if you want to hook in your own CSS compiler.
41
+                'compiler'    => true,
42 42
 
43
-				// Select a backup non-google font in addition to a Google font.
44
-				'font-backup' => true,
43
+                // Select a backup non-google font in addition to a Google font.
44
+                'font-backup' => true,
45 45
 
46
-				// Enable all Google Font style/weight variations to be added to the page.
47
-				'all-styles'  => true,
48
-				'all-subsets' => true,
49
-				'units'       => 'px',
50
-				'subtitle'    => esc_html__( 'Typography option with each property can be called individually.', 'your-textdomain-here' ),
51
-				'default'     => array(
52
-					'color'       => '#333',
53
-					'font-style'  => '700',
54
-					'font-family' => 'Abel',
55
-					'google'      => true,
56
-					'font-size'   => '33px',
57
-					'line-height' => '40px',
58
-				),
59
-				'output'      => array( 'h2.site-description, h2.entry-title, .site-description, h2.wp-block-post-title' ),
60
-				// Disable google fonts.
61
-				// 'google'      => false,.
46
+                // Enable all Google Font style/weight variations to be added to the page.
47
+                'all-styles'  => true,
48
+                'all-subsets' => true,
49
+                'units'       => 'px',
50
+                'subtitle'    => esc_html__( 'Typography option with each property can be called individually.', 'your-textdomain-here' ),
51
+                'default'     => array(
52
+                    'color'       => '#333',
53
+                    'font-style'  => '700',
54
+                    'font-family' => 'Abel',
55
+                    'google'      => true,
56
+                    'font-size'   => '33px',
57
+                    'line-height' => '40px',
58
+                ),
59
+                'output'      => array( 'h2.site-description, h2.entry-title, .site-description, h2.wp-block-post-title' ),
60
+                // Disable google fonts.
61
+                // 'google'      => false,.
62 62
 
63
-				// Includes font-style and weight. Can use font-style or font-weight to declare.
64
-				// 'font-style'    => false,.
63
+                // Includes font-style and weight. Can use font-style or font-weight to declare.
64
+                // 'font-style'    => false,.
65 65
 
66
-				// Only appears if Google is true and subsets not set to false.
67
-				// 'subsets'       => false,.
66
+                // Only appears if Google is true and subsets not set to false.
67
+                // 'subsets'       => false,.
68 68
 
69
-				// Hide or show the font size input.
70
-				// 'font-size'     => false,.
69
+                // Hide or show the font size input.
70
+                // 'font-size'     => false,.
71 71
 
72
-				// Hide or show the line height input.
73
-				// 'line-height'   => false,.
72
+                // Hide or show the line height input.
73
+                // 'line-height'   => false,.
74 74
 
75
-				// Hide or show the word spacing input. Defaults to false.
76
-				// 'word-spacing'  => true,.
75
+                // Hide or show the word spacing input. Defaults to false.
76
+                // 'word-spacing'  => true,.
77 77
 
78
-				// Hide or show the word spacing input. Defaults to false.
79
-				// 'letter-spacing'=> true,.
78
+                // Hide or show the word spacing input. Defaults to false.
79
+                // 'letter-spacing'=> true,.
80 80
 
81
-				// Hide or show the font color picker.
82
-				// 'color'         => false,.
81
+                // Hide or show the font color picker.
82
+                // 'color'         => false,.
83 83
 
84
-				// Disable the font previewer
85
-				// 'preview'       => false,.
84
+                // Disable the font previewer
85
+                // 'preview'       => false,.
86 86
 
87
-				// An array of CSS selectors in which to apply dynamically to this font style.
88
-				// 'compiler'    => array( 'h2.site-description-compiler' ),.
87
+                // An array of CSS selectors in which to apply dynamically to this font style.
88
+                // 'compiler'    => array( 'h2.site-description-compiler' ),.
89 89
 
90
-			),
91
-			array(
92
-				'id'                => 'opt-typography-body-shadow',
93
-				'type'              => 'typography',
94
-				'title'             => esc_html__( 'Title Font', 'your-textdomain-here' ),
95
-				'subtitle'          => esc_html__( 'Specify the body font properties.', 'your-textdomain-here' ),
96
-				'google'            => true,
97
-				'font_family_clear' => false,
98
-				'text-shadow'       => true,
99
-				'color_alpha'       => true,
100
-				'margin-top'        => true,
101
-				'margin-bottom'     => true,
102
-				'default'           => array(
103
-					'color'         => '',
104
-					'font-size'     => '30px',
105
-					'font-family'   => 'Arial, Helvetica, sans-serif',
106
-					'font-weight'   => 'Normal',
107
-					'margin-top'    => '20px',
108
-					'margin-bottom' => '20px',
109
-				),
110
-				'output'            => array( '.site-title, .wp-block-site-title' ),
111
-			),
112
-		),
113
-	)
90
+            ),
91
+            array(
92
+                'id'                => 'opt-typography-body-shadow',
93
+                'type'              => 'typography',
94
+                'title'             => esc_html__( 'Title Font', 'your-textdomain-here' ),
95
+                'subtitle'          => esc_html__( 'Specify the body font properties.', 'your-textdomain-here' ),
96
+                'google'            => true,
97
+                'font_family_clear' => false,
98
+                'text-shadow'       => true,
99
+                'color_alpha'       => true,
100
+                'margin-top'        => true,
101
+                'margin-bottom'     => true,
102
+                'default'           => array(
103
+                    'color'         => '',
104
+                    'font-size'     => '30px',
105
+                    'font-family'   => 'Arial, Helvetica, sans-serif',
106
+                    'font-weight'   => 'Normal',
107
+                    'margin-top'    => '20px',
108
+                    'margin-bottom' => '20px',
109
+                ),
110
+                'output'            => array( '.site-title, .wp-block-site-title' ),
111
+            ),
112
+        ),
113
+    )
114 114
 );
115 115
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/switch-button/switch.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -10,55 +10,55 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Switch', 'your-textdomain-here' ),
16
-		'id'         => 'switch_buttonset-switch',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/switch.html" target="_blank">https://devs.redux.io/core-fields/switch.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'switch-on',
22
-				'type'     => 'switch',
23
-				'title'    => esc_html__( 'Switch On', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
25
-				'default'  => true,
26
-			),
27
-			array(
28
-				'id'       => 'switch-off',
29
-				'type'     => 'switch',
30
-				'title'    => esc_html__( 'Switch Off', 'your-textdomain-here' ),
31
-				'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
32
-				'default'  => false,
33
-			),
34
-			array(
35
-				'id'       => 'switch-parent',
36
-				'type'     => 'switch',
37
-				'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
38
-				'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
39
-				'default'  => false,
40
-				'on'       => 'Enabled',
41
-				'off'      => 'Disabled',
42
-			),
43
-			array(
44
-				'id'       => 'switch-child1',
45
-				'type'     => 'switch',
46
-				'required' => array( 'switch-parent', '=', true ),
47
-				'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
48
-				'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
49
-				'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
50
-				'default'  => false,
51
-			),
52
-			array(
53
-				'id'       => 'switch-child2',
54
-				'type'     => 'switch',
55
-				'required' => array( 'switch-parent', '=', true ),
56
-				'title'    => esc_html__( 'Switch2 - Enable the above switch and this one for patterns to show', 'your-textdomain-here' ),
57
-				'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
58
-				'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
59
-				'default'  => false,
60
-			),
61
-		),
62
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Switch', 'your-textdomain-here' ),
16
+        'id'         => 'switch_buttonset-switch',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/switch.html" target="_blank">https://devs.redux.io/core-fields/switch.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'switch-on',
22
+                'type'     => 'switch',
23
+                'title'    => esc_html__( 'Switch On', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
25
+                'default'  => true,
26
+            ),
27
+            array(
28
+                'id'       => 'switch-off',
29
+                'type'     => 'switch',
30
+                'title'    => esc_html__( 'Switch Off', 'your-textdomain-here' ),
31
+                'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
32
+                'default'  => false,
33
+            ),
34
+            array(
35
+                'id'       => 'switch-parent',
36
+                'type'     => 'switch',
37
+                'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
38
+                'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
39
+                'default'  => false,
40
+                'on'       => 'Enabled',
41
+                'off'      => 'Disabled',
42
+            ),
43
+            array(
44
+                'id'       => 'switch-child1',
45
+                'type'     => 'switch',
46
+                'required' => array( 'switch-parent', '=', true ),
47
+                'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
48
+                'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
49
+                'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
50
+                'default'  => false,
51
+            ),
52
+            array(
53
+                'id'       => 'switch-child2',
54
+                'type'     => 'switch',
55
+                'required' => array( 'switch-parent', '=', true ),
56
+                'title'    => esc_html__( 'Switch2 - Enable the above switch and this one for patterns to show', 'your-textdomain-here' ),
57
+                'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
58
+                'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
59
+                'default'  => false,
60
+            ),
61
+        ),
62
+    )
63 63
 );
64 64
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/switch-button/button-set.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -10,45 +10,45 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Button Set', 'your-textdomain-here' ),
16
-		'id'         => 'switch_buttonset-set',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/button-set.html" target="_blank">https://devs.redux.io/core-fields/button-set.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-button-set',
22
-				'type'     => 'button_set',
23
-				'title'    => esc_html__( 'Button Set Option', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
25
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Button Set', 'your-textdomain-here' ),
16
+        'id'         => 'switch_buttonset-set',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/button-set.html" target="_blank">https://devs.redux.io/core-fields/button-set.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-button-set',
22
+                'type'     => 'button_set',
23
+                'title'    => esc_html__( 'Button Set Option', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
25
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26 26
 
27
-				// Must provide key => value pairs for radio options.
28
-				'options'  => array(
29
-					'1' => 'Opt 1',
30
-					'2' => 'Opt 2',
31
-					'3' => 'Opt 3',
32
-				),
33
-				'default'  => '2',
34
-			),
35
-			array(
36
-				'id'       => 'opt-button-set-multi',
37
-				'type'     => 'button_set',
38
-				'title'    => esc_html__( 'Button Set, Multi Select', 'your-textdomain-here' ),
39
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
40
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
41
-				'multi'    => true,
27
+                // Must provide key => value pairs for radio options.
28
+                'options'  => array(
29
+                    '1' => 'Opt 1',
30
+                    '2' => 'Opt 2',
31
+                    '3' => 'Opt 3',
32
+                ),
33
+                'default'  => '2',
34
+            ),
35
+            array(
36
+                'id'       => 'opt-button-set-multi',
37
+                'type'     => 'button_set',
38
+                'title'    => esc_html__( 'Button Set, Multi Select', 'your-textdomain-here' ),
39
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
40
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
41
+                'multi'    => true,
42 42
 
43
-				// Must provide key => value pairs for radio options.
44
-				'options'  => array(
45
-					'1' => 'Opt 1',
46
-					'2' => 'Opt 2',
47
-					'3' => 'Opt 3',
48
-				),
49
-				'default'  => array( '2', '3' ),
50
-			),
51
-		),
52
-	)
43
+                // Must provide key => value pairs for radio options.
44
+                'options'  => array(
45
+                    '1' => 'Opt 1',
46
+                    '2' => 'Opt 2',
47
+                    '3' => 'Opt 3',
48
+                ),
49
+                'default'  => array( '2', '3' ),
50
+            ),
51
+        ),
52
+    )
53 53
 );
54 54
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/basic-fields/sortable.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -10,45 +10,45 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Sortable', 'your-textdomain-here' ),
16
-		'id'         => 'basic-sortable',
17
-		'subsection' => true,
18
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sortable.html" target="_blank">https://devs.redux.io/core-fields/sortable.html</a>',
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-sortable',
22
-				'type'     => 'sortable',
23
-				'title'    => esc_html__( 'Sortable Text Option', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Define and reorder these however you want.', 'your-textdomain-here' ),
25
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26
-				'label'    => true,
27
-				'options'  => array(
28
-					'Text One'   => 'Item 1',
29
-					'Text Two'   => 'Item 2',
30
-					'Text Three' => 'Item 3',
31
-				),
32
-			),
33
-			array(
34
-				'id'       => 'opt-check-sortable',
35
-				'type'     => 'sortable',
36
-				'mode'     => 'toggle', // toggle or text.
37
-				'title'    => esc_html__( 'Sortable Toggle Option', 'your-textdomain-here' ),
38
-				'subtitle' => esc_html__( 'Define and reorder these however you want.', 'your-textdomain-here' ),
39
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
40
-				'options'  => array(
41
-					'cb1' => 'Option One',
42
-					'cb2' => 'Option Two',
43
-					'cb3' => 'Option Three',
44
-				),
45
-				'default'  => array(
46
-					'cb1' => false,
47
-					'cb2' => true,
48
-					'cb3' => false,
49
-				),
50
-			),
51
-		),
52
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Sortable', 'your-textdomain-here' ),
16
+        'id'         => 'basic-sortable',
17
+        'subsection' => true,
18
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sortable.html" target="_blank">https://devs.redux.io/core-fields/sortable.html</a>',
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-sortable',
22
+                'type'     => 'sortable',
23
+                'title'    => esc_html__( 'Sortable Text Option', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Define and reorder these however you want.', 'your-textdomain-here' ),
25
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26
+                'label'    => true,
27
+                'options'  => array(
28
+                    'Text One'   => 'Item 1',
29
+                    'Text Two'   => 'Item 2',
30
+                    'Text Three' => 'Item 3',
31
+                ),
32
+            ),
33
+            array(
34
+                'id'       => 'opt-check-sortable',
35
+                'type'     => 'sortable',
36
+                'mode'     => 'toggle', // toggle or text.
37
+                'title'    => esc_html__( 'Sortable Toggle Option', 'your-textdomain-here' ),
38
+                'subtitle' => esc_html__( 'Define and reorder these however you want.', 'your-textdomain-here' ),
39
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
40
+                'options'  => array(
41
+                    'cb1' => 'Option One',
42
+                    'cb2' => 'Option Two',
43
+                    'cb3' => 'Option Three',
44
+                ),
45
+                'default'  => array(
46
+                    'cb1' => false,
47
+                    'cb2' => true,
48
+                    'cb3' => false,
49
+                ),
50
+            ),
51
+        ),
52
+    )
53 53
 );
54 54
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/basic-fields/checkbox.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -10,58 +10,58 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'            => esc_html__( 'Checkbox', 'your-textdomain-here' ),
16
-		'id'               => 'basic-checkbox',
17
-		'subsection'       => true,
18
-		'customizer_width' => '450px',
19
-		'desc'             => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>',
20
-		'fields'           => array(
21
-			array(
22
-				'id'       => 'opt-checkbox',
23
-				'type'     => 'checkbox',
24
-				'title'    => esc_html__( 'Checkbox Option', 'your-textdomain-here' ),
25
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
26
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27
-				'default'  => '1', // 1 = on | 0 = off.
28
-			),
29
-			array(
30
-				'id'       => 'opt-multi-check',
31
-				'type'     => 'checkbox',
32
-				'title'    => esc_html__( 'Multi Checkbox Option', 'your-textdomain-here' ),
33
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
34
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
13
+    $opt_name,
14
+    array(
15
+        'title'            => esc_html__( 'Checkbox', 'your-textdomain-here' ),
16
+        'id'               => 'basic-checkbox',
17
+        'subsection'       => true,
18
+        'customizer_width' => '450px',
19
+        'desc'             => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>',
20
+        'fields'           => array(
21
+            array(
22
+                'id'       => 'opt-checkbox',
23
+                'type'     => 'checkbox',
24
+                'title'    => esc_html__( 'Checkbox Option', 'your-textdomain-here' ),
25
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
26
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27
+                'default'  => '1', // 1 = on | 0 = off.
28
+            ),
29
+            array(
30
+                'id'       => 'opt-multi-check',
31
+                'type'     => 'checkbox',
32
+                'title'    => esc_html__( 'Multi Checkbox Option', 'your-textdomain-here' ),
33
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
34
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
35 35
 
36
-				// Must provide key => value pairs for multi checkbox options.
37
-				'options'  => array(
38
-					'1' => 'Opt 1',
39
-					'2' => 'Opt 2',
40
-					'3' => 'Opt 3',
41
-				),
42
-				'default'  => array(
43
-					'1' => '1',
44
-					'2' => '0',
45
-					'3' => '0',
46
-				),
47
-			),
48
-			array(
49
-				'id'       => 'opt-checkbox-data',
50
-				'type'     => 'checkbox',
51
-				'title'    => esc_html__( 'Multi Checkbox Option (with menu data)', 'your-textdomain-here' ),
52
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
53
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
54
-				'data'     => 'menu',
55
-			),
56
-			array(
57
-				'id'       => 'opt-checkbox-sidebar',
58
-				'type'     => 'checkbox',
59
-				'title'    => esc_html__( 'Multi Checkbox Option (with sidebar data)', 'your-textdomain-here' ),
60
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
61
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
62
-				'data'     => 'sidebars',
63
-			),
64
-		),
65
-	)
36
+                // Must provide key => value pairs for multi checkbox options.
37
+                'options'  => array(
38
+                    '1' => 'Opt 1',
39
+                    '2' => 'Opt 2',
40
+                    '3' => 'Opt 3',
41
+                ),
42
+                'default'  => array(
43
+                    '1' => '1',
44
+                    '2' => '0',
45
+                    '3' => '0',
46
+                ),
47
+            ),
48
+            array(
49
+                'id'       => 'opt-checkbox-data',
50
+                'type'     => 'checkbox',
51
+                'title'    => esc_html__( 'Multi Checkbox Option (with menu data)', 'your-textdomain-here' ),
52
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
53
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
54
+                'data'     => 'menu',
55
+            ),
56
+            array(
57
+                'id'       => 'opt-checkbox-sidebar',
58
+                'type'     => 'checkbox',
59
+                'title'    => esc_html__( 'Multi Checkbox Option (with sidebar data)', 'your-textdomain-here' ),
60
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
61
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
62
+                'data'     => 'sidebars',
63
+            ),
64
+        ),
65
+    )
66 66
 );
67 67
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/basic-fields/textarea.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,22 +10,22 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Textarea', 'your-textdomain-here' ),
16
-		'id'         => 'basic-textarea',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/textarea.html" target="_blank">https://devs.redux.io/core-fields/textarea.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-textarea',
22
-				'type'     => 'textarea',
23
-				'title'    => esc_html__( 'Textarea Option - HTML Validated Custom', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
25
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26
-				'default'  => 'Default Text',
27
-			),
28
-		),
29
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Textarea', 'your-textdomain-here' ),
16
+        'id'         => 'basic-textarea',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/textarea.html" target="_blank">https://devs.redux.io/core-fields/textarea.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-textarea',
22
+                'type'     => 'textarea',
23
+                'title'    => esc_html__( 'Textarea Option - HTML Validated Custom', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
25
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26
+                'default'  => 'Default Text',
27
+            ),
28
+        ),
29
+    )
30 30
 );
31 31
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/basic-fields/radio.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -10,38 +10,38 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'            => esc_html__( 'Radio', 'your-textdomain-here' ),
16
-		'id'               => 'basic-radio',
17
-		'subsection'       => true,
18
-		'customizer_width' => '500px',
19
-		'desc'             => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/radio.html" target="_blank">https://devs.redux.io/core-fields/radio.html</a>',
20
-		'fields'           => array(
21
-			array(
22
-				'id'       => 'opt-radio',
23
-				'type'     => 'radio',
24
-				'title'    => esc_html__( 'Radio Option', 'your-textdomain-here' ),
25
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
26
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
13
+    $opt_name,
14
+    array(
15
+        'title'            => esc_html__( 'Radio', 'your-textdomain-here' ),
16
+        'id'               => 'basic-radio',
17
+        'subsection'       => true,
18
+        'customizer_width' => '500px',
19
+        'desc'             => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/radio.html" target="_blank">https://devs.redux.io/core-fields/radio.html</a>',
20
+        'fields'           => array(
21
+            array(
22
+                'id'       => 'opt-radio',
23
+                'type'     => 'radio',
24
+                'title'    => esc_html__( 'Radio Option', 'your-textdomain-here' ),
25
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
26
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27 27
 
28
-				// Must provide key => value pairs for radio options.
29
-				'options'  => array(
30
-					'1' => 'Opt 1',
31
-					'2' => 'Opt 2',
32
-					'3' => 'Opt 3',
33
-				),
34
-				'default'  => '2',
35
-			),
36
-			array(
37
-				'id'       => 'opt-radio-data',
38
-				'type'     => 'radio',
39
-				'title'    => esc_html__( 'Radio Option w/ Menu Data', 'your-textdomain-here' ),
40
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
41
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
42
-				'data'     => 'menu',
43
-			),
44
-		),
45
-	)
28
+                // Must provide key => value pairs for radio options.
29
+                'options'  => array(
30
+                    '1' => 'Opt 1',
31
+                    '2' => 'Opt 2',
32
+                    '3' => 'Opt 3',
33
+                ),
34
+                'default'  => '2',
35
+            ),
36
+            array(
37
+                'id'       => 'opt-radio-data',
38
+                'type'     => 'radio',
39
+                'title'    => esc_html__( 'Radio Option w/ Menu Data', 'your-textdomain-here' ),
40
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
41
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
42
+                'data'     => 'menu',
43
+            ),
44
+        ),
45
+    )
46 46
 );
47 47
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/basic-fields/multi-text.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Multi Text', 'your-textdomain-here' ),
16
-		'id'         => 'basic-multi-text',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/multi-text.html" target="_blank">https://devs.redux.io/core-fields/multi-text.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-multitext',
22
-				'type'     => 'multi_text',
23
-				'title'    => esc_html__( 'Multi Text Option', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Field subtitle', 'your-textdomain-here' ),
25
-				'desc'     => esc_html__( 'Field Description', 'your-textdomain-here' ),
26
-			),
27
-		),
28
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Multi Text', 'your-textdomain-here' ),
16
+        'id'         => 'basic-multi-text',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/multi-text.html" target="_blank">https://devs.redux.io/core-fields/multi-text.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-multitext',
22
+                'type'     => 'multi_text',
23
+                'title'    => esc_html__( 'Multi Text Option', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Field subtitle', 'your-textdomain-here' ),
25
+                'desc'     => esc_html__( 'Field Description', 'your-textdomain-here' ),
26
+            ),
27
+        ),
28
+    )
29 29
 );
30 30
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/basic-fields/password.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Password', 'your-textdomain-here' ),
16
-		'id'         => 'basic-password',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/password.html" target="_blank">https://devs.redux.io/core-fields/password.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'password',
22
-				'type'     => 'password',
23
-				'username' => true,
24
-				'title'    => 'Password Field',
25
-			),
26
-		),
27
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Password', 'your-textdomain-here' ),
16
+        'id'         => 'basic-password',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/password.html" target="_blank">https://devs.redux.io/core-fields/password.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'password',
22
+                'type'     => 'password',
23
+                'username' => true,
24
+                'title'    => 'Password Field',
25
+            ),
26
+        ),
27
+    )
28 28
 );
29 29
 // phpcs:enable
Please login to merge, or discard this patch.