Completed
Push — master ( d69721...8d1412 )
by
unknown
53s
created
sample/sections/design-fields/box-shadow.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -10,36 +10,36 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Box Shadow', 'your-textdomain-here' ),
16
-		'id'         => 'design-box-shadow',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/box-shadow.html" target="_blank">https://devs.redux.io/core-fields/box_shadow.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'          => 'opt-box_shadow',
22
-				'type'        => 'box_shadow',
23
-				'output'      => array( '.site-header, header' ),
24
-				'media_query' => array(
25
-					'output'   => true,
26
-					'compiler' => true,
27
-					'queries'  => array(
28
-						array(
29
-							'rule'      => 'screen and (max-width: 360px)',
30
-							'selectors' => array( '.box-shadow' ),
31
-						),
32
-						array(
33
-							'rule'      => 'screen and (max-width: 1120px)',
34
-							'selectors' => array( '.box-shadow-wide' ),
35
-						),
36
-					),
37
-				),
38
-				'title'       => esc_html__( 'Box Shadow', 'your-textdomain-here' ),
39
-				'subtitle'    => esc_html__( 'Site Header Box Shadow with inset and drop shadows.', 'your-textdomain-here' ),
40
-				'desc'        => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
41
-			),
42
-		),
43
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Box Shadow', 'your-textdomain-here' ),
16
+        'id'         => 'design-box-shadow',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/box-shadow.html" target="_blank">https://devs.redux.io/core-fields/box_shadow.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'          => 'opt-box_shadow',
22
+                'type'        => 'box_shadow',
23
+                'output'      => array( '.site-header, header' ),
24
+                'media_query' => array(
25
+                    'output'   => true,
26
+                    'compiler' => true,
27
+                    'queries'  => array(
28
+                        array(
29
+                            'rule'      => 'screen and (max-width: 360px)',
30
+                            'selectors' => array( '.box-shadow' ),
31
+                        ),
32
+                        array(
33
+                            'rule'      => 'screen and (max-width: 1120px)',
34
+                            'selectors' => array( '.box-shadow-wide' ),
35
+                        ),
36
+                    ),
37
+                ),
38
+                'title'       => esc_html__( 'Box Shadow', 'your-textdomain-here' ),
39
+                'subtitle'    => esc_html__( 'Site Header Box Shadow with inset and drop shadows.', 'your-textdomain-here' ),
40
+                'desc'        => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
41
+            ),
42
+        ),
43
+    )
44 44
 );
45 45
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/design-fields/background.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -10,27 +10,27 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Background', 'your-textdomain-here' ),
16
-		'id'         => 'design-background',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/background.html" target="_blank">https://devs.redux.io/core-fields/background.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-background',
22
-				'type'     => 'background',
23
-				'output'   => array(
24
-					'background-color' => 'body',
25
-					'important'        => true,
26
-				),
27
-				'default'  => array(
28
-					'background-color' => '#d1b7e2',
29
-				),
30
-				'title'    => __( 'Body Background', 'your-textdomain-here' ),
31
-				'subtitle' => __( 'Body background with image, color, etc.', 'your-textdomain-here' ),
32
-			),
33
-		),
34
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Background', 'your-textdomain-here' ),
16
+        'id'         => 'design-background',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/background.html" target="_blank">https://devs.redux.io/core-fields/background.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-background',
22
+                'type'     => 'background',
23
+                'output'   => array(
24
+                    'background-color' => 'body',
25
+                    'important'        => true,
26
+                ),
27
+                'default'  => array(
28
+                    'background-color' => '#d1b7e2',
29
+                ),
30
+                'title'    => __( 'Body Background', 'your-textdomain-here' ),
31
+                'subtitle' => __( 'Body background with image, color, etc.', 'your-textdomain-here' ),
32
+            ),
33
+        ),
34
+    )
35 35
 );
36 36
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/design-fields/dimensions.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -10,41 +10,41 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Dimensions', 'your-textdomain-here' ),
16
-		'id'         => 'design-dimensions',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/dimensions.html" target="_blank">https://devs.redux.io/core-fields/dimensions.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'             => 'opt-dimensions',
22
-				'type'           => 'dimensions',
23
-				'units'          => array( 'em', 'px', '%' ), // You can specify a unit value. Possible: px, em, %.
24
-				'units_extended' => 'true', // Allow users to select any type of unit.
25
-				'title'          => esc_html__( 'Dimensions (Width/Height) Option', 'your-textdomain-here' ),
26
-				'subtitle'       => esc_html__( 'Allow your users to choose width, height, and/or unit.', 'your-textdomain-here' ),
27
-				'desc'           => esc_html__( 'You can enable or disable any piece of this field. Width, Height, or Units.', 'your-textdomain-here' ),
28
-				'default'        => array(
29
-					'width'  => 200,
30
-					'height' => 100,
31
-				),
32
-			),
33
-			array(
34
-				'id'             => 'opt-dimensions-width',
35
-				'type'           => 'dimensions',
36
-				'units'          => array( 'em', 'px', '%' ), // You can specify a unit value. Possible: px, em, %.
37
-				'units_extended' => 'true', // Allow users to select any type of unit.
38
-				'title'          => esc_html__( 'Dimensions (Width) Option', 'your-textdomain-here' ),
39
-				'subtitle'       => esc_html__( 'Allow your users to choose width, height, and/or unit.', 'your-textdomain-here' ),
40
-				'desc'           => esc_html__( 'You can enable or disable any piece of this field. Width, Height, or Units.', 'your-textdomain-here' ),
41
-				'height'         => false,
42
-				'default'        => array(
43
-					'width'  => 200,
44
-					'height' => 100,
45
-				),
46
-			),
47
-		),
48
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Dimensions', 'your-textdomain-here' ),
16
+        'id'         => 'design-dimensions',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/dimensions.html" target="_blank">https://devs.redux.io/core-fields/dimensions.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'             => 'opt-dimensions',
22
+                'type'           => 'dimensions',
23
+                'units'          => array( 'em', 'px', '%' ), // You can specify a unit value. Possible: px, em, %.
24
+                'units_extended' => 'true', // Allow users to select any type of unit.
25
+                'title'          => esc_html__( 'Dimensions (Width/Height) Option', 'your-textdomain-here' ),
26
+                'subtitle'       => esc_html__( 'Allow your users to choose width, height, and/or unit.', 'your-textdomain-here' ),
27
+                'desc'           => esc_html__( 'You can enable or disable any piece of this field. Width, Height, or Units.', 'your-textdomain-here' ),
28
+                'default'        => array(
29
+                    'width'  => 200,
30
+                    'height' => 100,
31
+                ),
32
+            ),
33
+            array(
34
+                'id'             => 'opt-dimensions-width',
35
+                'type'           => 'dimensions',
36
+                'units'          => array( 'em', 'px', '%' ), // You can specify a unit value. Possible: px, em, %.
37
+                'units_extended' => 'true', // Allow users to select any type of unit.
38
+                'title'          => esc_html__( 'Dimensions (Width) Option', 'your-textdomain-here' ),
39
+                'subtitle'       => esc_html__( 'Allow your users to choose width, height, and/or unit.', 'your-textdomain-here' ),
40
+                'desc'           => esc_html__( 'You can enable or disable any piece of this field. Width, Height, or Units.', 'your-textdomain-here' ),
41
+                'height'         => false,
42
+                'default'        => array(
43
+                    'width'  => 200,
44
+                    'height' => 100,
45
+                ),
46
+            ),
47
+        ),
48
+    )
49 49
 );
50 50
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/design-fields/spacing.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -10,67 +10,67 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Spacing', 'your-textdomain-here' ),
16
-		'id'         => 'design-spacing',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/spacing.html" target="_blank">https://devs.redux.io/core-fields/spacing.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'            => 'opt-spacing',
22
-				'type'          => 'spacing',
23
-				'output'        => array( '.site-header, header' ),
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Spacing', 'your-textdomain-here' ),
16
+        'id'         => 'design-spacing',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/spacing.html" target="_blank">https://devs.redux.io/core-fields/spacing.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'            => 'opt-spacing',
22
+                'type'          => 'spacing',
23
+                'output'        => array( '.site-header, header' ),
24 24
 
25
-				// absolute, padding, margin, defaults to padding.
26
-				'mode'          => 'margin',
25
+                // absolute, padding, margin, defaults to padding.
26
+                'mode'          => 'margin',
27 27
 
28
-				// Have one field that applies to all.
29
-				'all'           => true,
28
+                // Have one field that applies to all.
29
+                'all'           => true,
30 30
 
31
-				// You can specify a unit value. Possible: px, em, %.
32
-				'units'         => 'em',
31
+                // You can specify a unit value. Possible: px, em, %.
32
+                'units'         => 'em',
33 33
 
34
-				// Set to false to hide the units if the units are specified.
35
-				'display_units' => false,
36
-				'title'         => esc_html__( 'Padding/Margin Option', 'your-textdomain-here' ),
37
-				'subtitle'      => esc_html__( 'Allow your users to choose the spacing or margin they want.', 'your-textdomain-here' ),
38
-				'desc'          => esc_html__( 'You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'your-textdomain-here' ),
39
-				'default'       => array(
40
-					'margin-top'    => '1',
41
-					'margin-right'  => '2',
42
-					'margin-bottom' => '3',
43
-					'margin-left'   => '4',
44
-					'units'         => 'em',
45
-				),
34
+                // Set to false to hide the units if the units are specified.
35
+                'display_units' => false,
36
+                'title'         => esc_html__( 'Padding/Margin Option', 'your-textdomain-here' ),
37
+                'subtitle'      => esc_html__( 'Allow your users to choose the spacing or margin they want.', 'your-textdomain-here' ),
38
+                'desc'          => esc_html__( 'You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'your-textdomain-here' ),
39
+                'default'       => array(
40
+                    'margin-top'    => '1',
41
+                    'margin-right'  => '2',
42
+                    'margin-bottom' => '3',
43
+                    'margin-left'   => '4',
44
+                    'units'         => 'em',
45
+                ),
46 46
 
47
-				// phpcs:ignore Squiz.PHP.CommentedOutCode
48
-				// Allow users to select any type of unit.
49
-				// 'units_extended'=> 'true',    // Enable extended units.
50
-				// 'top'           => false,     // Disable the top.
51
-				// 'right'         => false,     // Disable the right.
52
-				// 'bottom'        => false,     // Disable the bottom.
53
-				// 'left'          => false,     // Disable the left.
54
-			),
55
-			array(
56
-				'id'             => 'opt-spacing-expanded',
57
-				'type'           => 'spacing',
58
-				'mode'           => 'margin',
59
-				'all'            => false,
60
-				'units'          => array( 'em', 'px', '%' ),
61
-				'units_extended' => true,
62
-				'title'          => __( 'Padding/Margin Option', 'your-textdomain-here' ),
63
-				'subtitle'       => __( 'Allow your users to choose the spacing or margin they want.', 'your-textdomain-here' ),
64
-				'desc'           => __( 'You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'your-textdomain-here' ),
65
-				'default'        => array(
66
-					'margin-top'    => '1',
67
-					'margin-right'  => '2',
68
-					'margin-bottom' => '3',
69
-					'margin-left'   => '5',
70
-					'units'         => 'em',
71
-				),
72
-			),
73
-		),
74
-	)
47
+                // phpcs:ignore Squiz.PHP.CommentedOutCode
48
+                // Allow users to select any type of unit.
49
+                // 'units_extended'=> 'true',    // Enable extended units.
50
+                // 'top'           => false,     // Disable the top.
51
+                // 'right'         => false,     // Disable the right.
52
+                // 'bottom'        => false,     // Disable the bottom.
53
+                // 'left'          => false,     // Disable the left.
54
+            ),
55
+            array(
56
+                'id'             => 'opt-spacing-expanded',
57
+                'type'           => 'spacing',
58
+                'mode'           => 'margin',
59
+                'all'            => false,
60
+                'units'          => array( 'em', 'px', '%' ),
61
+                'units_extended' => true,
62
+                'title'          => __( 'Padding/Margin Option', 'your-textdomain-here' ),
63
+                'subtitle'       => __( 'Allow your users to choose the spacing or margin they want.', 'your-textdomain-here' ),
64
+                'desc'           => __( 'You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'your-textdomain-here' ),
65
+                'default'        => array(
66
+                    'margin-top'    => '1',
67
+                    'margin-right'  => '2',
68
+                    'margin-bottom' => '3',
69
+                    'margin-left'   => '5',
70
+                    'units'         => 'em',
71
+                ),
72
+            ),
73
+        ),
74
+    )
75 75
 );
76 76
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/design-fields/border.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -10,47 +10,47 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Border', 'your-textdomain-here' ),
16
-		'id'         => 'design-border',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/border.html" target="_blank">https://devs.redux.io/core-fields/border.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-header-border',
22
-				'type'     => 'border',
23
-				'title'    => esc_html__( 'Header Border Option', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Only color validation can be done on this field type', 'your-textdomain-here' ),
25
-				'output'   => array( '.site-header, header' ),
26
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27
-				'default'  => array(
28
-					'border-color'  => '#1e73be',
29
-					'border-style'  => 'solid',
30
-					'border-top'    => '3px',
31
-					'border-right'  => '3px',
32
-					'border-bottom' => '3px',
33
-					'border-left'   => '3px',
34
-				),
35
-			),
36
-			array(
37
-				'id'       => 'opt-header-border-expanded',
38
-				'type'     => 'border',
39
-				'title'    => esc_html__( 'Body Border Option', 'your-textdomain-here' ),
40
-				'subtitle' => esc_html__( 'Only color validation can be done on this field type', 'your-textdomain-here' ),
41
-				'output'   => array( 'body' ),
42
-				'all'      => false,
43
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
44
-				'default'  => array(
45
-					'border-color'  => '#1e73be',
46
-					'border-style'  => 'solid',
47
-					'border-top'    => '3px',
48
-					'border-right'  => '3px',
49
-					'border-bottom' => '3px',
50
-					'border-left'   => '3px',
51
-				),
52
-			),
53
-		),
54
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Border', 'your-textdomain-here' ),
16
+        'id'         => 'design-border',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/border.html" target="_blank">https://devs.redux.io/core-fields/border.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-header-border',
22
+                'type'     => 'border',
23
+                'title'    => esc_html__( 'Header Border Option', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Only color validation can be done on this field type', 'your-textdomain-here' ),
25
+                'output'   => array( '.site-header, header' ),
26
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27
+                'default'  => array(
28
+                    'border-color'  => '#1e73be',
29
+                    'border-style'  => 'solid',
30
+                    'border-top'    => '3px',
31
+                    'border-right'  => '3px',
32
+                    'border-bottom' => '3px',
33
+                    'border-left'   => '3px',
34
+                ),
35
+            ),
36
+            array(
37
+                'id'       => 'opt-header-border-expanded',
38
+                'type'     => 'border',
39
+                'title'    => esc_html__( 'Body Border Option', 'your-textdomain-here' ),
40
+                'subtitle' => esc_html__( 'Only color validation can be done on this field type', 'your-textdomain-here' ),
41
+                'output'   => array( 'body' ),
42
+                'all'      => false,
43
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
44
+                'default'  => array(
45
+                    'border-color'  => '#1e73be',
46
+                    'border-style'  => 'solid',
47
+                    'border-top'    => '3px',
48
+                    'border-right'  => '3px',
49
+                    'border-bottom' => '3px',
50
+                    'border-left'   => '3px',
51
+                ),
52
+            ),
53
+        ),
54
+    )
55 55
 );
56 56
 // phpcs:enable
Please login to merge, or discard this patch.
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.