Completed
Push — master ( 7388a0...c197b7 )
by
unknown
45s
created
sample/sections/presentation-fields/content.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -10,72 +10,72 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Content', 'your-textdomain-here' ),
16
-		'id'         => 'presentation-content',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/content.html" target="_blank">https://devs.redux.io/core-fields/content.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'      => 'opt-heading-1',
22
-				'type'    => 'content',
23
-				'mode'    => 'heading',
24
-				'content' => 'This is a content field using the mode <strong>heading</strong>',
25
-			),
26
-			array(
27
-				'id'      => 'opt-subheading-1',
28
-				'type'    => 'content',
29
-				'mode'    => 'subheading',
30
-				'content' => 'This is a content field using the mode <strong>subheading</strong>',
31
-			),
32
-			array(
33
-				'id'      => 'opt-content-1',
34
-				'type'    => 'content',
35
-				'mode'    => 'content',
36
-				'content' => 'This is a content field using the mode <strong>content</strong>',
37
-			),
38
-			array(
39
-				'id'      => 'opt-submessage-1',
40
-				'type'    => 'content',
41
-				'mode'    => 'submessage',
42
-				'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>normal</strong> style.',
43
-			),
44
-			array(
45
-				'id'      => 'opt-content-2',
46
-				'type'    => 'content',
47
-				'mode'    => 'content',
48
-				'content' => 'This is a content field using the mode <strong>content</strong>',
49
-			),
50
-			array(
51
-				'id'      => 'opt-submessage-2',
52
-				'type'    => 'content',
53
-				'mode'    => 'submessage',
54
-				'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>success</strong> style.',
55
-				'style'   => 'success',
56
-			),
57
-			array(
58
-				'id'      => 'opt-submessage-3',
59
-				'type'    => 'content',
60
-				'mode'    => 'submessage',
61
-				'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>info</strong> style.',
62
-				'style'   => 'info',
63
-			),
64
-			array(
65
-				'id'      => 'opt-submessage-4',
66
-				'type'    => 'content',
67
-				'mode'    => 'submessage',
68
-				'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>warning</strong> style.',
69
-				'style'   => 'warning',
70
-			),
71
-			array(
72
-				'id'      => 'opt-submessage-5',
73
-				'type'    => 'content',
74
-				'mode'    => 'submessage',
75
-				'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>critical</strong> style.',
76
-				'style'   => 'critical',
77
-			),
78
-		),
79
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Content', 'your-textdomain-here' ),
16
+        'id'         => 'presentation-content',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/content.html" target="_blank">https://devs.redux.io/core-fields/content.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'      => 'opt-heading-1',
22
+                'type'    => 'content',
23
+                'mode'    => 'heading',
24
+                'content' => 'This is a content field using the mode <strong>heading</strong>',
25
+            ),
26
+            array(
27
+                'id'      => 'opt-subheading-1',
28
+                'type'    => 'content',
29
+                'mode'    => 'subheading',
30
+                'content' => 'This is a content field using the mode <strong>subheading</strong>',
31
+            ),
32
+            array(
33
+                'id'      => 'opt-content-1',
34
+                'type'    => 'content',
35
+                'mode'    => 'content',
36
+                'content' => 'This is a content field using the mode <strong>content</strong>',
37
+            ),
38
+            array(
39
+                'id'      => 'opt-submessage-1',
40
+                'type'    => 'content',
41
+                'mode'    => 'submessage',
42
+                'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>normal</strong> style.',
43
+            ),
44
+            array(
45
+                'id'      => 'opt-content-2',
46
+                'type'    => 'content',
47
+                'mode'    => 'content',
48
+                'content' => 'This is a content field using the mode <strong>content</strong>',
49
+            ),
50
+            array(
51
+                'id'      => 'opt-submessage-2',
52
+                'type'    => 'content',
53
+                'mode'    => 'submessage',
54
+                'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>success</strong> style.',
55
+                'style'   => 'success',
56
+            ),
57
+            array(
58
+                'id'      => 'opt-submessage-3',
59
+                'type'    => 'content',
60
+                'mode'    => 'submessage',
61
+                'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>info</strong> style.',
62
+                'style'   => 'info',
63
+            ),
64
+            array(
65
+                'id'      => 'opt-submessage-4',
66
+                'type'    => 'content',
67
+                'mode'    => 'submessage',
68
+                'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>warning</strong> style.',
69
+                'style'   => 'warning',
70
+            ),
71
+            array(
72
+                'id'      => 'opt-submessage-5',
73
+                'type'    => 'content',
74
+                'mode'    => 'submessage',
75
+                'content' => 'This is a content field using the mode <strong>submessage</strong> with <strong>critical</strong> style.',
76
+                'style'   => 'critical',
77
+            ),
78
+        ),
79
+    )
80 80
 );
81 81
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/presentation-fields/divide.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Divide', 'your-textdomain-here' ),
16
-		'id'         => 'presentation-divide',
17
-		'desc'       => esc_html__( 'The spacer to the section menu as seen to the left (after this section block) is the divide "section". Also the divider below is the divide "field".', 'your-textdomain-here' ) . '<br />' . __( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/divide.html" target="_blank">https://devs.redux.io/core-fields/divide.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'   => 'opt-divide',
22
-				'type' => 'divide',
23
-			),
24
-		),
25
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Divide', 'your-textdomain-here' ),
16
+        'id'         => 'presentation-divide',
17
+        'desc'       => esc_html__( 'The spacer to the section menu as seen to the left (after this section block) is the divide "section". Also the divider below is the divide "field".', 'your-textdomain-here' ) . '<br />' . __( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/divide.html" target="_blank">https://devs.redux.io/core-fields/divide.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'   => 'opt-divide',
22
+                'type' => 'divide',
23
+            ),
24
+        ),
25
+    )
26 26
 );
27 27
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/presentation-fields/section.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -10,43 +10,43 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Section', 'your-textdomain-here' ),
16
-		'id'         => 'presentation-section',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/section.html" target="_blank">https://devs.redux.io/core-fields/section.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'section-start',
22
-				'type'     => 'section',
23
-				'title'    => esc_html__( 'Section Example', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'With the "section" field you can create indented option sections.', 'your-textdomain-here' ),
25
-				'indent'   => true, // Indent all options below until the next 'section' option is set.
26
-			),
27
-			array(
28
-				'id'       => 'section-test',
29
-				'type'     => 'text',
30
-				'title'    => esc_html__( 'Field Title', 'your-textdomain-here' ),
31
-				'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
32
-			),
33
-			array(
34
-				'id'       => 'section-test-media',
35
-				'type'     => 'media',
36
-				'title'    => esc_html__( 'Field Title', 'your-textdomain-here' ),
37
-				'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
38
-			),
39
-			array(
40
-				'id'     => 'section-end',
41
-				'type'   => 'section',
42
-				'indent' => false, // Indent all options below until the next 'section' option is set.
43
-			),
44
-			array(
45
-				'id'   => 'section-info',
46
-				'type' => 'info',
47
-				'desc' => esc_html__( 'And now you can add more fields below and outside of the indent.', 'your-textdomain-here' ),
48
-			),
49
-		),
50
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Section', 'your-textdomain-here' ),
16
+        'id'         => 'presentation-section',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/section.html" target="_blank">https://devs.redux.io/core-fields/section.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'section-start',
22
+                'type'     => 'section',
23
+                'title'    => esc_html__( 'Section Example', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'With the "section" field you can create indented option sections.', 'your-textdomain-here' ),
25
+                'indent'   => true, // Indent all options below until the next 'section' option is set.
26
+            ),
27
+            array(
28
+                'id'       => 'section-test',
29
+                'type'     => 'text',
30
+                'title'    => esc_html__( 'Field Title', 'your-textdomain-here' ),
31
+                'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
32
+            ),
33
+            array(
34
+                'id'       => 'section-test-media',
35
+                'type'     => 'media',
36
+                'title'    => esc_html__( 'Field Title', 'your-textdomain-here' ),
37
+                'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
38
+            ),
39
+            array(
40
+                'id'     => 'section-end',
41
+                'type'   => 'section',
42
+                'indent' => false, // Indent all options below until the next 'section' option is set.
43
+            ),
44
+            array(
45
+                'id'   => 'section-info',
46
+                'type' => 'info',
47
+                'desc' => esc_html__( 'And now you can add more fields below and outside of the indent.', 'your-textdomain-here' ),
48
+            ),
49
+        ),
50
+    )
51 51
 );
52 52
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/disabling/disable-section.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'            => esc_html__( 'Disable Section', 'your-textdomain-here' ),
16
-		'id'               => 'basic-checkbox-section-disable',
17
-		'subsection'       => true,
18
-		'customizer_width' => '450px',
19
-		'disabled'         => true,
20
-		'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>',
21
-		'fields'           => array(
22
-			array(
23
-				'id'       => 'opt-checkbox-section-disable',
24
-				'type'     => 'checkbox',
25
-				'title'    => esc_html__( 'Checkbox Option', 'your-textdomain-here' ),
26
-				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
27
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
28
-				'default'  => '1', // 1 = on | 0 = off.
29
-			),
30
-		),
31
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'            => esc_html__( 'Disable Section', 'your-textdomain-here' ),
16
+        'id'               => 'basic-checkbox-section-disable',
17
+        'subsection'       => true,
18
+        'customizer_width' => '450px',
19
+        'disabled'         => true,
20
+        '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>',
21
+        'fields'           => array(
22
+            array(
23
+                'id'       => 'opt-checkbox-section-disable',
24
+                'type'     => 'checkbox',
25
+                'title'    => esc_html__( 'Checkbox Option', 'your-textdomain-here' ),
26
+                'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
27
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
28
+                'default'  => '1', // 1 = on | 0 = off.
29
+            ),
30
+        ),
31
+    )
32 32
 );
33 33
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/disabling/disable-field.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'            => esc_html__( 'Disable Field', 'your-textdomain-here' ),
16
-		'id'               => 'basic-checkbox-disable',
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-disable',
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
-				'disabled' => true,
28
-				'default'  => '1', // 1 = on | 0 = off.
29
-			),
30
-		),
31
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'            => esc_html__( 'Disable Field', 'your-textdomain-here' ),
16
+        'id'               => 'basic-checkbox-disable',
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-disable',
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
+                'disabled' => true,
28
+                'default'  => '1', // 1 = on | 0 = off.
29
+            ),
30
+        ),
31
+    )
32 32
 );
33 33
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/additional-types/sorter.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -10,52 +10,52 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Sorter', 'your-textdomain-here' ),
16
-		'id'         => 'additional-sorter',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sorter.html" target="_blank">https://devs.redux.io/core-fields/sorter.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-homepage-layout',
22
-				'type'     => 'sorter',
23
-				'title'    => 'Layout Manager Advanced',
24
-				'subtitle' => 'You can add multiple drop areas or columns.',
25
-				'compiler' => 'true',
26
-				'options'  => array(
27
-					'enabled'  => array(
28
-						'highlights' => 'Highlights',
29
-						'slider'     => 'Slider',
30
-						'staticpage' => 'Static Page',
31
-						'services'   => 'Services',
32
-					),
33
-					'disabled' => array(),
34
-					'backup'   => array(),
35
-				),
36
-				'limits'   => array(
37
-					'disabled' => 1,
38
-					'backup'   => 2,
39
-				),
40
-			),
41
-			array(
42
-				'id'       => 'opt-homepage-layout-2',
43
-				'type'     => 'sorter',
44
-				'title'    => 'Homepage Layout Manager',
45
-				'desc'     => 'Organize how you want the layout to appear on the homepage',
46
-				'compiler' => 'true',
47
-				'options'  => array(
48
-					'disabled' => array(
49
-						'highlights' => 'Highlights',
50
-						'slider'     => 'Slider',
51
-					),
52
-					'enabled'  => array(
53
-						'staticpage' => 'Static Page',
54
-						'services'   => 'Services',
55
-					),
56
-				),
57
-			),
58
-		),
59
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Sorter', 'your-textdomain-here' ),
16
+        'id'         => 'additional-sorter',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sorter.html" target="_blank">https://devs.redux.io/core-fields/sorter.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-homepage-layout',
22
+                'type'     => 'sorter',
23
+                'title'    => 'Layout Manager Advanced',
24
+                'subtitle' => 'You can add multiple drop areas or columns.',
25
+                'compiler' => 'true',
26
+                'options'  => array(
27
+                    'enabled'  => array(
28
+                        'highlights' => 'Highlights',
29
+                        'slider'     => 'Slider',
30
+                        'staticpage' => 'Static Page',
31
+                        'services'   => 'Services',
32
+                    ),
33
+                    'disabled' => array(),
34
+                    'backup'   => array(),
35
+                ),
36
+                'limits'   => array(
37
+                    'disabled' => 1,
38
+                    'backup'   => 2,
39
+                ),
40
+            ),
41
+            array(
42
+                'id'       => 'opt-homepage-layout-2',
43
+                'type'     => 'sorter',
44
+                'title'    => 'Homepage Layout Manager',
45
+                'desc'     => 'Organize how you want the layout to appear on the homepage',
46
+                'compiler' => 'true',
47
+                'options'  => array(
48
+                    'disabled' => array(
49
+                        'highlights' => 'Highlights',
50
+                        'slider'     => 'Slider',
51
+                    ),
52
+                    'enabled'  => array(
53
+                        'staticpage' => 'Static Page',
54
+                        'services'   => 'Services',
55
+                    ),
56
+                ),
57
+            ),
58
+        ),
59
+    )
60 60
 );
61 61
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/additional-types/date.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__( 'Date', 'your-textdomain-here' ),
16
-		'id'         => 'additional-date',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/date.html" target="_blank">https://devs.redux.io/core-fields/date.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-datepicker',
22
-				'type'     => 'date',
23
-				'title'    => esc_html__( 'Date 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
-			),
27
-		),
28
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Date', 'your-textdomain-here' ),
16
+        'id'         => 'additional-date',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/date.html" target="_blank">https://devs.redux.io/core-fields/date.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-datepicker',
22
+                'type'     => 'date',
23
+                'title'    => esc_html__( 'Date 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
+            ),
27
+        ),
28
+    )
29 29
 );
30 30
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/additional-types/raw.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -11,37 +11,37 @@
 block discarded – undo
11 11
 
12 12
 $sample_html = '';
13 13
 if ( file_exists( $dir . 'info-html.html' ) ) {
14
-	$fs = Redux_Filesystem::get_instance();
14
+    $fs = Redux_Filesystem::get_instance();
15 15
 
16
-	$sample_html = $fs->get_contents( $dir . 'info-html.html' );
16
+    $sample_html = $fs->get_contents( $dir . 'info-html.html' );
17 17
 }
18 18
 
19 19
 Redux::set_section(
20
-	$opt_name,
21
-	array(
22
-		'title'      => esc_html__( 'Raw', 'your-textdomain-here' ),
23
-		'id'         => 'additional-raw',
24
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/raw.html" target="_blank">https://devs.redux.io/core-fields/raw.html</a>',
25
-		'subsection' => true,
26
-		'fields'     => array(
27
-			array(
28
-				'id'       => 'opt-raw_info_4',
29
-				'type'     => 'raw',
30
-				'title'    => esc_html__( 'Standard Raw Field', 'your-textdomain-here' ),
31
-				'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
32
-				'desc'     => esc_html__( 'Description', 'your-textdomain-here' ),
33
-				'content'  => $sample_html,
34
-			),
35
-			array(
36
-				'id'         => 'opt-raw_info_5',
37
-				'type'       => 'raw',
38
-				'full_width' => false,
39
-				'title'      => wp_kses_post( __( 'Raw Field <code>full_width</code> set to <code>false</code>', 'your-textdomain-here' ) ),
40
-				'subtitle'   => esc_html__( 'Subtitle', 'your-textdomain-here' ),
41
-				'desc'       => esc_html__( 'Description', 'your-textdomain-here' ),
42
-				'content'    => $sample_html,
43
-			),
44
-		),
45
-	)
20
+    $opt_name,
21
+    array(
22
+        'title'      => esc_html__( 'Raw', 'your-textdomain-here' ),
23
+        'id'         => 'additional-raw',
24
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/raw.html" target="_blank">https://devs.redux.io/core-fields/raw.html</a>',
25
+        'subsection' => true,
26
+        'fields'     => array(
27
+            array(
28
+                'id'       => 'opt-raw_info_4',
29
+                'type'     => 'raw',
30
+                'title'    => esc_html__( 'Standard Raw Field', 'your-textdomain-here' ),
31
+                'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
32
+                'desc'     => esc_html__( 'Description', 'your-textdomain-here' ),
33
+                'content'  => $sample_html,
34
+            ),
35
+            array(
36
+                'id'         => 'opt-raw_info_5',
37
+                'type'       => 'raw',
38
+                'full_width' => false,
39
+                'title'      => wp_kses_post( __( 'Raw Field <code>full_width</code> set to <code>false</code>', 'your-textdomain-here' ) ),
40
+                'subtitle'   => esc_html__( 'Subtitle', 'your-textdomain-here' ),
41
+                'desc'       => esc_html__( 'Description', 'your-textdomain-here' ),
42
+                'content'    => $sample_html,
43
+            ),
44
+        ),
45
+    )
46 46
 );
47 47
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/additional-types/date-time-picker.php 1 patch
Indentation   +79 added lines, -79 removed lines patch added patch discarded remove patch
@@ -11,84 +11,84 @@
 block discarded – undo
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13 13
 Redux::set_section(
14
-	$opt_name,
15
-	array(
16
-		'title'      => esc_html__( 'Date / Time Picker', 'your-textdomain-here' ),
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/date-time-picker.html" target="_blank">https://devs.redux.io/core-extensions/date-time-picker.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'           => 'opt-date-time-single',
22
-				'type'         => 'datetime',
23
-				'title'        => esc_html__( 'Single Date / Time input', 'your-textdomain-here' ),
24
-				'subtitle'     => esc_html__( 'Display when the split argument is set to false', 'your-textdomain-here' ),
25
-				'desc'         => 'The separator argument is set to the @ symbol.  Control-type is set to \'slider\'',
26
-				'split'        => false,
27
-				'control-type' => 'slider',
28
-				'separator'    => ' @ ',
29
-			),
30
-			array(
31
-				'id'            => 'opt-date-time-split',
32
-				'type'          => 'datetime',
33
-				'title'         => esc_html__( 'Split Date / Time input', 'your-textdomain-here' ),
34
-				'subtitle'      => esc_html__( 'Display when the split argument is set to true.', 'your-textdomain-here' ),
35
-				'desc'          => 'The \'timezone-list\' argument is set to display labels instead of time offsets.',
36
-				'split'         => true,
37
-				'control-type'  => 'slider',
38
-				'timezone-list' => array(
39
-					array(
40
-						'value' => '-300',
41
-						'label' => 'Eastern',
42
-					),
43
-					array(
44
-						'value' => '-360',
45
-						'label' => 'Central',
46
-					),
47
-					array(
48
-						'value' => '-420',
49
-						'label' => 'Mountain',
50
-					),
51
-					array(
52
-						'value' => '-480',
53
-						'label' => 'Pacific',
54
-					),
55
-				),
56
-			),
57
-			array(
58
-				'id'          => 'opt-date-time-date-only',
59
-				'type'        => 'datetime',
60
-				'title'       => esc_html__( 'Date only input', 'your-textdomain-here' ),
61
-				'subtitle'    => esc_html__( 'Popup shows only the date picker.', 'your-textdomain-here' ),
62
-				'desc'        => 'The \'time-picker\' argument is set to false.',
63
-				'time-picker' => false,
64
-				'placeholder' => 'Date only',
65
-			),
66
-			array(
67
-				'id'          => 'opt-date-time-time-only',
68
-				'type'        => 'datetime',
69
-				'title'       => esc_html__( 'Time only input', 'your-textdomain-here' ),
70
-				'subtitle'    => esc_html__( 'Popup shows only the time picker.', 'your-textdomain-here' ),
71
-				'desc'        => 'The \'date-picker\' argument is set to false.',
72
-				'date-picker' => false,
73
-				'placeholder' => 'Time only',
74
-			),
75
-			array(
76
-				'id'            => 'opt-date-time-minmax',
77
-				'type'          => 'datetime',
78
-				'title'         => esc_html__( 'Min Max demo', 'your-textdomain-here' ),
79
-				'subtitle'      => esc_html__( 'Both time and date have min and max values.', 'your-textdomain-here' ),
80
-				'desc'          => 'The selectable date range is 30 days from the current day.  The selectable time range is between 8:20 AM and 4:40 PM',
81
-				'split'         => true,
82
-				'time-format'   => 'hh:mm TT',
83
-				'hour-min'      => 8,
84
-				'hour-max'      => 16,
85
-				'minute-min'    => 20,
86
-				'minute-max'    => 40,
87
-				'num-of-months' => 2,
88
-				'date-min'      => 0,
89
-				'date-max'      => 30,
90
-			),
91
-		),
92
-	)
14
+    $opt_name,
15
+    array(
16
+        'title'      => esc_html__( 'Date / Time Picker', 'your-textdomain-here' ),
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/date-time-picker.html" target="_blank">https://devs.redux.io/core-extensions/date-time-picker.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'           => 'opt-date-time-single',
22
+                'type'         => 'datetime',
23
+                'title'        => esc_html__( 'Single Date / Time input', 'your-textdomain-here' ),
24
+                'subtitle'     => esc_html__( 'Display when the split argument is set to false', 'your-textdomain-here' ),
25
+                'desc'         => 'The separator argument is set to the @ symbol.  Control-type is set to \'slider\'',
26
+                'split'        => false,
27
+                'control-type' => 'slider',
28
+                'separator'    => ' @ ',
29
+            ),
30
+            array(
31
+                'id'            => 'opt-date-time-split',
32
+                'type'          => 'datetime',
33
+                'title'         => esc_html__( 'Split Date / Time input', 'your-textdomain-here' ),
34
+                'subtitle'      => esc_html__( 'Display when the split argument is set to true.', 'your-textdomain-here' ),
35
+                'desc'          => 'The \'timezone-list\' argument is set to display labels instead of time offsets.',
36
+                'split'         => true,
37
+                'control-type'  => 'slider',
38
+                'timezone-list' => array(
39
+                    array(
40
+                        'value' => '-300',
41
+                        'label' => 'Eastern',
42
+                    ),
43
+                    array(
44
+                        'value' => '-360',
45
+                        'label' => 'Central',
46
+                    ),
47
+                    array(
48
+                        'value' => '-420',
49
+                        'label' => 'Mountain',
50
+                    ),
51
+                    array(
52
+                        'value' => '-480',
53
+                        'label' => 'Pacific',
54
+                    ),
55
+                ),
56
+            ),
57
+            array(
58
+                'id'          => 'opt-date-time-date-only',
59
+                'type'        => 'datetime',
60
+                'title'       => esc_html__( 'Date only input', 'your-textdomain-here' ),
61
+                'subtitle'    => esc_html__( 'Popup shows only the date picker.', 'your-textdomain-here' ),
62
+                'desc'        => 'The \'time-picker\' argument is set to false.',
63
+                'time-picker' => false,
64
+                'placeholder' => 'Date only',
65
+            ),
66
+            array(
67
+                'id'          => 'opt-date-time-time-only',
68
+                'type'        => 'datetime',
69
+                'title'       => esc_html__( 'Time only input', 'your-textdomain-here' ),
70
+                'subtitle'    => esc_html__( 'Popup shows only the time picker.', 'your-textdomain-here' ),
71
+                'desc'        => 'The \'date-picker\' argument is set to false.',
72
+                'date-picker' => false,
73
+                'placeholder' => 'Time only',
74
+            ),
75
+            array(
76
+                'id'            => 'opt-date-time-minmax',
77
+                'type'          => 'datetime',
78
+                'title'         => esc_html__( 'Min Max demo', 'your-textdomain-here' ),
79
+                'subtitle'      => esc_html__( 'Both time and date have min and max values.', 'your-textdomain-here' ),
80
+                'desc'          => 'The selectable date range is 30 days from the current day.  The selectable time range is between 8:20 AM and 4:40 PM',
81
+                'split'         => true,
82
+                'time-format'   => 'hh:mm TT',
83
+                'hour-min'      => 8,
84
+                'hour-max'      => 16,
85
+                'minute-min'    => 20,
86
+                'minute-max'    => 40,
87
+                'num-of-months' => 2,
88
+                'date-min'      => 0,
89
+                'date-max'      => 30,
90
+            ),
91
+        ),
92
+    )
93 93
 );
94 94
 // phpcs:enable
Please login to merge, or discard this patch.