Completed
Push — master ( 3c99ea...a5a7ca )
by
unknown
18s
created
sample/sections/color-selection/color.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -10,40 +10,40 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Color', 'your-textdomain-here' ),
16
-		'id'         => 'opt-color',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/color.html" target="_blank">https://devs.redux.io/core-fields/color.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'          => 'opt-color-title',
22
-				'type'        => 'color',
23
-				'output'      => array(
24
-					'color'     => '.site-title, .wp-block-site-title a',
25
-					'important' => true,
26
-				),
27
-				'title'       => esc_html__( 'Site Title Color', 'your-textdomain-here' ),
28
-				'subtitle'    => esc_html__( 'Pick a title color for the theme (default: #000).', 'your-textdomain-here' ),
29
-				'default'     => '#000000',
30
-				// 'color_alpha' => true,
31
-				'transparent' => false,
32
-				'validate'    => 'color',
33
-			),
34
-			array(
35
-				'id'          => 'opt-color-footer',
36
-				'type'        => 'color',
37
-				'title'       => esc_html__( 'Footer Background Color', 'your-textdomain-here' ),
38
-				'subtitle'    => esc_html__( 'Pick a background color for the footer (default: #dd9933).', 'your-textdomain-here' ),
39
-				'default'     => '#dd9933',
40
-				'transparent' => false,
41
-				'validate'    => 'color',
42
-				'output'      => array(
43
-					'background-color' => '.footer, #site-footer, .site-footer, footer',
44
-				),
45
-			),
46
-		),
47
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Color', 'your-textdomain-here' ),
16
+        'id'         => 'opt-color',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/color.html" target="_blank">https://devs.redux.io/core-fields/color.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'          => 'opt-color-title',
22
+                'type'        => 'color',
23
+                'output'      => array(
24
+                    'color'     => '.site-title, .wp-block-site-title a',
25
+                    'important' => true,
26
+                ),
27
+                'title'       => esc_html__( 'Site Title Color', 'your-textdomain-here' ),
28
+                'subtitle'    => esc_html__( 'Pick a title color for the theme (default: #000).', 'your-textdomain-here' ),
29
+                'default'     => '#000000',
30
+                // 'color_alpha' => true,
31
+                'transparent' => false,
32
+                'validate'    => 'color',
33
+            ),
34
+            array(
35
+                'id'          => 'opt-color-footer',
36
+                'type'        => 'color',
37
+                'title'       => esc_html__( 'Footer Background Color', 'your-textdomain-here' ),
38
+                'subtitle'    => esc_html__( 'Pick a background color for the footer (default: #dd9933).', 'your-textdomain-here' ),
39
+                'default'     => '#dd9933',
40
+                'transparent' => false,
41
+                'validate'    => 'color',
42
+                'output'      => array(
43
+                    'background-color' => '.footer, #site-footer, .site-footer, footer',
44
+                ),
45
+            ),
46
+        ),
47
+    )
48 48
 );
49 49
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/color-selection/palette.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__( 'Palette', 'your-textdomain-here' ),
16
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/palette-color.html" target="_blank">https://devs.redux.io/core-fields/palette-color.html</a>',
17
-		'id'         => 'palette',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-palette-color',
22
-				'type'     => 'palette',
23
-				'title'    => esc_html__( 'Palette Color Option', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Only color 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
-				'default'  => 'red',
27
-				'palettes' => array(
28
-					'red'  => array(
29
-						'#ef9a9a',
30
-						'#f44336',
31
-						'#ff1744',
32
-					),
33
-					'pink' => array(
34
-						'#fce4ec',
35
-						'#f06292',
36
-						'#e91e63',
37
-						'#ad1457',
38
-						'#f50057',
39
-					),
40
-					'cyan' => array(
41
-						'#e0f7fa',
42
-						'#80deea',
43
-						'#26c6da',
44
-						'#0097a7',
45
-						'#00e5ff',
46
-					),
47
-				),
48
-			),
49
-		),
50
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Palette', 'your-textdomain-here' ),
16
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/palette-color.html" target="_blank">https://devs.redux.io/core-fields/palette-color.html</a>',
17
+        'id'         => 'palette',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-palette-color',
22
+                'type'     => 'palette',
23
+                'title'    => esc_html__( 'Palette Color Option', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Only color 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
+                'default'  => 'red',
27
+                'palettes' => array(
28
+                    'red'  => array(
29
+                        '#ef9a9a',
30
+                        '#f44336',
31
+                        '#ff1744',
32
+                    ),
33
+                    'pink' => array(
34
+                        '#fce4ec',
35
+                        '#f06292',
36
+                        '#e91e63',
37
+                        '#ad1457',
38
+                        '#f50057',
39
+                    ),
40
+                    'cyan' => array(
41
+                        '#e0f7fa',
42
+                        '#80deea',
43
+                        '#26c6da',
44
+                        '#0097a7',
45
+                        '#00e5ff',
46
+                    ),
47
+                ),
48
+            ),
49
+        ),
50
+    )
51 51
 );
52 52
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/users.php 2 patches
Indentation   +189 added lines, -189 removed lines patch added patch discarded remove patch
@@ -10,206 +10,206 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 if ( ! class_exists( 'Redux_Users' ) ) {
13
-	return;
13
+    return;
14 14
 }
15 15
 
16 16
 // Change the priority the Redux_Users boxes appear.
17 17
 Redux_Users::set_Args(
18
-	$opt_name,
19
-	array(
20
-		'user_priority' => 50,
21
-	)
18
+    $opt_name,
19
+    array(
20
+        'user_priority' => 50,
21
+    )
22 22
 );
23 23
 
24 24
 Redux_Users::set_profile(
25
-	$opt_name,
26
-	array(
27
-		'id'       => 'demo-users',
28
-		'title'    => esc_html__( 'Cool Options', 'your-textdomain-here' ),
29
-		'style'    => 'wp',
30
-		'sections' => array(
31
-			array(
32
-				'title'  => esc_html__( 'User Settings', 'your-textdomain-here' ),
33
-				'icon'   => 'el-icon-home',
34
-				'fields' => array(
35
-					array(
36
-						'id'    => 'user-text',
37
-						'type'  => 'text',
38
-						'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
39
-					),
40
-					array(
41
-						'id'    => 'user-text-2',
42
-						'type'  => 'text',
43
-						'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
44
-					),
45
-					array(
46
-						'id'    => 'user-text-3',
47
-						'type'  => 'text',
48
-						'title' => esc_html__( 'Input 3', 'your-textdomain-here' ),
49
-					),
50
-					array(
51
-						'id'       => 'user-web-fonts',
52
-						'type'     => 'media',
53
-						'title'    => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
54
-						'compiler' => 'true',
55
-						'mode'     => false,
56
-						// Can be set to false allowing for any media type, or can also be set to any mime type.
57
-						'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
58
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
59
-					),
60
-					array(
61
-						'id'       => 'user-section-media-start',
62
-						'type'     => 'section',
63
-						'title'    => esc_html__( 'Media Options', 'your-textdomain-here' ),
64
-						'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
65
-						'indent'   => true,
66
-					),
67
-					array(
68
-						'id'       => 'user-mediaurl',
69
-						'type'     => 'media',
70
-						'url'      => true,
71
-						'title'    => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
72
-						'compiler' => 'true',
73
-						'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
74
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
75
-						'default'  => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
76
-					),
77
-					array(
78
-						'id'     => 'user-section-media-end',
79
-						'type'   => 'section',
80
-						'indent' => false,
81
-					),
82
-					array(
83
-						'id'       => 'user-media-nourl',
84
-						'type'     => 'media',
85
-						'title'    => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
86
-						'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
87
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
88
-					),
89
-					array(
90
-						'id'       => 'user-media-nopreview',
91
-						'type'     => 'media',
92
-						'preview'  => false,
93
-						'title'    => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
94
-						'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
95
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
96
-					),
97
-					array(
98
-						'id'       => 'user-gallery',
99
-						'type'     => 'gallery',
100
-						'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
101
-						'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
102
-						'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
103
-					),
104
-					array(
105
-						'id'      => 'user-slider-one',
106
-						'type'    => 'slider',
107
-						'title'   => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
108
-						'desc'    => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
109
-						'default' => '46',
110
-						'min'     => '1',
111
-						'step'    => '3',
112
-						'max'     => '500',
113
-					),
114
-					array(
115
-						'id'      => 'user-slider-two',
116
-						'type'    => 'slider',
117
-						'title'   => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
118
-						'desc'    => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
119
-						'default' => '0',
120
-						'min'     => '0',
121
-						'step'    => '5',
122
-						'max'     => '300',
123
-					),
124
-					array(
125
-						'id'      => 'user-spinner',
126
-						'type'    => 'spinner',
127
-						'title'   => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
128
-						'desc'    => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
129
-						'default' => '40',
130
-						'min'     => '20',
131
-						'step'    => '20',
132
-						'max'     => '100',
133
-					),
134
-					array(
135
-						'id'       => 'user-switch-parent',
136
-						'type'     => 'switch',
137
-						'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
138
-						'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
139
-						'default'  => 0,
140
-						'on'       => 'Enabled',
141
-						'off'      => 'Disabled',
142
-					),
143
-					array(
144
-						'id'       => 'user-switch-child',
145
-						'type'     => 'switch',
146
-						'required' => array( 'user-switch-parent', '=', '1' ),
147
-						'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
148
-						'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
149
-						'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
150
-						'default'  => false,
151
-					),
152
-				),
153
-			),
154
-			array(
155
-				'title'  => esc_html__( 'Home Layout', 'your-textdomain-here' ),
156
-				'icon'   => 'el-icon-home',
157
-				'fields' => array(
158
-					array(
159
-						'id'       => 'user-homepage_blocks',
160
-						'type'     => 'sorter',
161
-						'title'    => 'Homepage Layout Manager',
162
-						'desc'     => 'Organize how you want the layout to appear on the homepage',
163
-						'compiler' => 'true',
164
-						'required' => array( 'layout', '=', '1' ),
165
-						'options'  => array(
166
-							'enabled'  => array(
167
-								'highlights' => 'Highlights',
168
-								'slider'     => 'Slider',
169
-								'staticpage' => 'Static Page',
170
-								'services'   => 'Services',
171
-							),
172
-							'disabled' => array(),
173
-						),
174
-					),
25
+    $opt_name,
26
+    array(
27
+        'id'       => 'demo-users',
28
+        'title'    => esc_html__( 'Cool Options', 'your-textdomain-here' ),
29
+        'style'    => 'wp',
30
+        'sections' => array(
31
+            array(
32
+                'title'  => esc_html__( 'User Settings', 'your-textdomain-here' ),
33
+                'icon'   => 'el-icon-home',
34
+                'fields' => array(
35
+                    array(
36
+                        'id'    => 'user-text',
37
+                        'type'  => 'text',
38
+                        'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
39
+                    ),
40
+                    array(
41
+                        'id'    => 'user-text-2',
42
+                        'type'  => 'text',
43
+                        'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
44
+                    ),
45
+                    array(
46
+                        'id'    => 'user-text-3',
47
+                        'type'  => 'text',
48
+                        'title' => esc_html__( 'Input 3', 'your-textdomain-here' ),
49
+                    ),
50
+                    array(
51
+                        'id'       => 'user-web-fonts',
52
+                        'type'     => 'media',
53
+                        'title'    => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
54
+                        'compiler' => 'true',
55
+                        'mode'     => false,
56
+                        // Can be set to false allowing for any media type, or can also be set to any mime type.
57
+                        'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
58
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
59
+                    ),
60
+                    array(
61
+                        'id'       => 'user-section-media-start',
62
+                        'type'     => 'section',
63
+                        'title'    => esc_html__( 'Media Options', 'your-textdomain-here' ),
64
+                        'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
65
+                        'indent'   => true,
66
+                    ),
67
+                    array(
68
+                        'id'       => 'user-mediaurl',
69
+                        'type'     => 'media',
70
+                        'url'      => true,
71
+                        'title'    => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
72
+                        'compiler' => 'true',
73
+                        'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
74
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
75
+                        'default'  => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
76
+                    ),
77
+                    array(
78
+                        'id'     => 'user-section-media-end',
79
+                        'type'   => 'section',
80
+                        'indent' => false,
81
+                    ),
82
+                    array(
83
+                        'id'       => 'user-media-nourl',
84
+                        'type'     => 'media',
85
+                        'title'    => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
86
+                        'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
87
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
88
+                    ),
89
+                    array(
90
+                        'id'       => 'user-media-nopreview',
91
+                        'type'     => 'media',
92
+                        'preview'  => false,
93
+                        'title'    => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
94
+                        'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
95
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
96
+                    ),
97
+                    array(
98
+                        'id'       => 'user-gallery',
99
+                        'type'     => 'gallery',
100
+                        'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
101
+                        'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
102
+                        'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
103
+                    ),
104
+                    array(
105
+                        'id'      => 'user-slider-one',
106
+                        'type'    => 'slider',
107
+                        'title'   => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
108
+                        'desc'    => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
109
+                        'default' => '46',
110
+                        'min'     => '1',
111
+                        'step'    => '3',
112
+                        'max'     => '500',
113
+                    ),
114
+                    array(
115
+                        'id'      => 'user-slider-two',
116
+                        'type'    => 'slider',
117
+                        'title'   => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
118
+                        'desc'    => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
119
+                        'default' => '0',
120
+                        'min'     => '0',
121
+                        'step'    => '5',
122
+                        'max'     => '300',
123
+                    ),
124
+                    array(
125
+                        'id'      => 'user-spinner',
126
+                        'type'    => 'spinner',
127
+                        'title'   => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
128
+                        'desc'    => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
129
+                        'default' => '40',
130
+                        'min'     => '20',
131
+                        'step'    => '20',
132
+                        'max'     => '100',
133
+                    ),
134
+                    array(
135
+                        'id'       => 'user-switch-parent',
136
+                        'type'     => 'switch',
137
+                        'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
138
+                        'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
139
+                        'default'  => 0,
140
+                        'on'       => 'Enabled',
141
+                        'off'      => 'Disabled',
142
+                    ),
143
+                    array(
144
+                        'id'       => 'user-switch-child',
145
+                        'type'     => 'switch',
146
+                        'required' => array( 'user-switch-parent', '=', '1' ),
147
+                        'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
148
+                        'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
149
+                        'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
150
+                        'default'  => false,
151
+                    ),
152
+                ),
153
+            ),
154
+            array(
155
+                'title'  => esc_html__( 'Home Layout', 'your-textdomain-here' ),
156
+                'icon'   => 'el-icon-home',
157
+                'fields' => array(
158
+                    array(
159
+                        'id'       => 'user-homepage_blocks',
160
+                        'type'     => 'sorter',
161
+                        'title'    => 'Homepage Layout Manager',
162
+                        'desc'     => 'Organize how you want the layout to appear on the homepage',
163
+                        'compiler' => 'true',
164
+                        'required' => array( 'layout', '=', '1' ),
165
+                        'options'  => array(
166
+                            'enabled'  => array(
167
+                                'highlights' => 'Highlights',
168
+                                'slider'     => 'Slider',
169
+                                'staticpage' => 'Static Page',
170
+                                'services'   => 'Services',
171
+                            ),
172
+                            'disabled' => array(),
173
+                        ),
174
+                    ),
175 175
 
176
-					array(
177
-						'id'       => 'user-presets',
178
-						'type'     => 'image_select',
179
-						'presets'  => true,
180
-						'title'    => esc_html__( 'Preset', 'your-textdomain-here' ),
181
-						'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
182
-						'default'  => 0,
183
-						'desc'     => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
184
-						'options'  => array(
185
-							'1' => array(
186
-								'alt'     => 'Preset 1',
187
-								'img'     => Redux_Core::$url . '../sample/presets/preset1.png',
188
-								'presets' => array(
189
-									'switch-on'     => 1,
190
-									'switch-off'    => 1,
191
-									'switch-custom' => 1,
192
-								),
193
-							),
194
-							'2' => array(
195
-								'alt'     => 'Preset 2',
196
-								'img'     => Redux_Core::$url . '../sample/presets/preset2.png',
197
-								'presets' => "{'slider1':'1', 'slider2':'0', 'switch-on':'0'}",
198
-							),
199
-						),
200
-					),
201
-				),
202
-			),
203
-		),
204
-	)
176
+                    array(
177
+                        'id'       => 'user-presets',
178
+                        'type'     => 'image_select',
179
+                        'presets'  => true,
180
+                        'title'    => esc_html__( 'Preset', 'your-textdomain-here' ),
181
+                        'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
182
+                        'default'  => 0,
183
+                        'desc'     => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
184
+                        'options'  => array(
185
+                            '1' => array(
186
+                                'alt'     => 'Preset 1',
187
+                                'img'     => Redux_Core::$url . '../sample/presets/preset1.png',
188
+                                'presets' => array(
189
+                                    'switch-on'     => 1,
190
+                                    'switch-off'    => 1,
191
+                                    'switch-custom' => 1,
192
+                                ),
193
+                            ),
194
+                            '2' => array(
195
+                                'alt'     => 'Preset 2',
196
+                                'img'     => Redux_Core::$url . '../sample/presets/preset2.png',
197
+                                'presets' => "{'slider1':'1', 'slider2':'0', 'switch-on':'0'}",
198
+                            ),
199
+                        ),
200
+                    ),
201
+                ),
202
+            ),
203
+        ),
204
+    )
205 205
 );
206 206
 
207 207
 // Recovering user data.
208 208
 $data = Redux_Users::get_user_meta(
209
-	array(
210
-		'key'      => 'user-text', /* If you're only looking for a key within the meta, otherwise all values will be returned. */
211
-		'opt_name' => $opt_name,   // Optional, but needed to recover default values for unset values.
212
-		'user'     => '',          // User id, else current user ID is returned.
213
-	)
209
+    array(
210
+        'key'      => 'user-text', /* If you're only looking for a key within the meta, otherwise all values will be returned. */
211
+        'opt_name' => $opt_name,   // Optional, but needed to recover default values for unset values.
212
+        'user'     => '',          // User id, else current user ID is returned.
213
+    )
214 214
 );
215 215
 // phpcs:enable
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@
 block discarded – undo
208 208
 $data = Redux_Users::get_user_meta(
209 209
 	array(
210 210
 		'key'      => 'user-text', /* If you're only looking for a key within the meta, otherwise all values will be returned. */
211
-		'opt_name' => $opt_name,   // Optional, but needed to recover default values for unset values.
212
-		'user'     => '',          // User id, else current user ID is returned.
211
+		'opt_name' => $opt_name, // Optional, but needed to recover default values for unset values.
212
+		'user'     => '', // User id, else current user ID is returned.
213 213
 	)
214 214
 );
215 215
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/taxonomy.php 1 patch
Indentation   +201 added lines, -201 removed lines patch added patch discarded remove patch
@@ -10,219 +10,219 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 if ( ! class_exists( 'Redux_Taxonomy' ) ) {
13
-	return;
13
+    return;
14 14
 }
15 15
 
16 16
 // Change the priority the Redux_Taxonomy boxes appear.
17 17
 Redux_Taxonomy::set_args(
18
-	$opt_name,
19
-	array(
20
-		'taxonomy_priority' => 55,
21
-	)
18
+    $opt_name,
19
+    array(
20
+        'taxonomy_priority' => 55,
21
+    )
22 22
 );
23 23
 
24 24
 Redux_Taxonomy::set_term(
25
-	$opt_name,
26
-	array(
27
-		'id'             => 'demo-taxonomy',
28
-		'title'          => esc_html__( 'Cool Options', 'your-textdomain-here' ),
25
+    $opt_name,
26
+    array(
27
+        'id'             => 'demo-taxonomy',
28
+        'title'          => esc_html__( 'Cool Options', 'your-textdomain-here' ),
29 29
 
30
-		// Slug for every taxonomy you want.
31
-		'taxonomy_types' => array( 'category', 'post_tag' ),
30
+        // Slug for every taxonomy you want.
31
+        'taxonomy_types' => array( 'category', 'post_tag' ),
32 32
 
33
-		'add_visibility' => true,
33
+        'add_visibility' => true,
34 34
 
35
-		// Can be set on term, section, or field level. Denote what fields to be displayed on the added {TERM} pages.
36
-		'sections'       => array(
37
-			array(
38
-				'title'  => esc_html__( 'Home Settings', 'your-textdomain-here' ),
39
-				'icon'   => 'el-icon-home',
40
-				'fields' => array(
41
-					array(
42
-						'id'             => 'tax-text',
43
-						'type'           => 'text',
44
-						'add_visibility' => true,
45
-						'title'          => esc_html__( 'Input 1', 'your-textdomain-here' ),
46
-					),
47
-					array(
48
-						'id'             => 'tax-button-set',
49
-						'type'           => 'button_set',
50
-						'title'          => esc_html__( 'Button Set Option', 'your-textdomain-here' ),
51
-						'subtitle'       => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
52
-						'desc'           => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
53
-						'add_visibility' => true,
54
-						'options'        => array(
55
-							'1' => 'Opt 1',
56
-							'2' => 'Opt 2',
57
-							'3' => 'Opt 3',
58
-						),
59
-						'default'        => '2',
60
-					),
61
-					array(
62
-						'id'             => 'tax-text-2',
63
-						'type'           => 'text',
64
-						'add_visibility' => true,
65
-						'title'          => esc_html__( 'Input 2', 'your-textdomain-here' ),
66
-					),
67
-					array(
68
-						'id'       => 'tax-web-fonts',
69
-						'type'     => 'media',
70
-						'title'    => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
71
-						'compiler' => 'true',
72
-						'mode'     => false,
73
-						// Can be set to false to allow any media type, or can also be set to any mime type.
74
-						'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
75
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
76
-					),
77
-					array(
78
-						'id'       => 'tax-section-media-start',
79
-						'type'     => 'section',
80
-						'title'    => esc_html__( 'Media Options', 'your-textdomain-here' ),
81
-						'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
82
-						'indent'   => true,
83
-					),
84
-					array(
85
-						'id'       => 'tax-media-url',
86
-						'type'     => 'media',
87
-						'url'      => true,
88
-						'title'    => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
89
-						'compiler' => 'true',
90
-						'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
91
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
92
-						'default'  => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
93
-					),
94
-					array(
95
-						'id'     => 'tax-section-media-end',
96
-						'type'   => 'section',
97
-						'indent' => false,
98
-					),
99
-					array(
100
-						'id'       => 'tax-media-no-url',
101
-						'type'     => 'media',
102
-						'title'    => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
103
-						'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
104
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
105
-					),
106
-					array(
107
-						'id'       => 'tax-media-no-preview',
108
-						'type'     => 'media',
109
-						'preview'  => false,
110
-						'title'    => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
111
-						'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
112
-						'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
113
-					),
114
-					array(
115
-						'id'       => 'tax-gallery',
116
-						'type'     => 'gallery',
117
-						'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
118
-						'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
119
-						'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
120
-					),
121
-					array(
122
-						'id'      => 'tax-slider',
123
-						'type'    => 'slider',
124
-						'title'   => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
125
-						'desc'    => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
126
-						'default' => '46',
127
-						'min'     => '1',
128
-						'step'    => '3',
129
-						'max'     => '500',
130
-					),
131
-					array(
132
-						'id'      => 'tax-slider-2',
133
-						'type'    => 'slider',
134
-						'title'   => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
135
-						'desc'    => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
136
-						'default' => '0',
137
-						'min'     => '0',
138
-						'step'    => '5',
139
-						'max'     => '300',
140
-					),
141
-					array(
142
-						'id'      => 'tax-spinner',
143
-						'type'    => 'spinner',
144
-						'title'   => esc_html__( 'Spinner Example 1', 'your-textdomain-here' ),
145
-						'desc'    => esc_html__( 'Spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
146
-						'default' => '40',
147
-						'min'     => '20',
148
-						'step'    => '20',
149
-						'max'     => '100',
150
-					),
151
-					array(
152
-						'id'       => 'tax-switch-parent',
153
-						'type'     => 'switch',
154
-						'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
155
-						'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
156
-						'default'  => 0,
157
-						'on'       => 'Enabled',
158
-						'off'      => 'Disabled',
159
-					),
160
-					array(
161
-						'id'       => 'tax-switch-child',
162
-						'type'     => 'switch',
163
-						'required' => array( 'tax-switch-parent', '=', '1' ),
164
-						'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
165
-						'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
166
-						'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
167
-						'default'  => false,
168
-					),
169
-				),
170
-			),
35
+        // Can be set on term, section, or field level. Denote what fields to be displayed on the added {TERM} pages.
36
+        'sections'       => array(
37
+            array(
38
+                'title'  => esc_html__( 'Home Settings', 'your-textdomain-here' ),
39
+                'icon'   => 'el-icon-home',
40
+                'fields' => array(
41
+                    array(
42
+                        'id'             => 'tax-text',
43
+                        'type'           => 'text',
44
+                        'add_visibility' => true,
45
+                        'title'          => esc_html__( 'Input 1', 'your-textdomain-here' ),
46
+                    ),
47
+                    array(
48
+                        'id'             => 'tax-button-set',
49
+                        'type'           => 'button_set',
50
+                        'title'          => esc_html__( 'Button Set Option', 'your-textdomain-here' ),
51
+                        'subtitle'       => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
52
+                        'desc'           => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
53
+                        'add_visibility' => true,
54
+                        'options'        => array(
55
+                            '1' => 'Opt 1',
56
+                            '2' => 'Opt 2',
57
+                            '3' => 'Opt 3',
58
+                        ),
59
+                        'default'        => '2',
60
+                    ),
61
+                    array(
62
+                        'id'             => 'tax-text-2',
63
+                        'type'           => 'text',
64
+                        'add_visibility' => true,
65
+                        'title'          => esc_html__( 'Input 2', 'your-textdomain-here' ),
66
+                    ),
67
+                    array(
68
+                        'id'       => 'tax-web-fonts',
69
+                        'type'     => 'media',
70
+                        'title'    => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
71
+                        'compiler' => 'true',
72
+                        'mode'     => false,
73
+                        // Can be set to false to allow any media type, or can also be set to any mime type.
74
+                        'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
75
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
76
+                    ),
77
+                    array(
78
+                        'id'       => 'tax-section-media-start',
79
+                        'type'     => 'section',
80
+                        'title'    => esc_html__( 'Media Options', 'your-textdomain-here' ),
81
+                        'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
82
+                        'indent'   => true,
83
+                    ),
84
+                    array(
85
+                        'id'       => 'tax-media-url',
86
+                        'type'     => 'media',
87
+                        'url'      => true,
88
+                        'title'    => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
89
+                        'compiler' => 'true',
90
+                        'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
91
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
92
+                        'default'  => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
93
+                    ),
94
+                    array(
95
+                        'id'     => 'tax-section-media-end',
96
+                        'type'   => 'section',
97
+                        'indent' => false,
98
+                    ),
99
+                    array(
100
+                        'id'       => 'tax-media-no-url',
101
+                        'type'     => 'media',
102
+                        'title'    => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
103
+                        'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
104
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
105
+                    ),
106
+                    array(
107
+                        'id'       => 'tax-media-no-preview',
108
+                        'type'     => 'media',
109
+                        'preview'  => false,
110
+                        'title'    => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
111
+                        'desc'     => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
112
+                        'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
113
+                    ),
114
+                    array(
115
+                        'id'       => 'tax-gallery',
116
+                        'type'     => 'gallery',
117
+                        'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
118
+                        'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
119
+                        'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
120
+                    ),
121
+                    array(
122
+                        'id'      => 'tax-slider',
123
+                        'type'    => 'slider',
124
+                        'title'   => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
125
+                        'desc'    => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
126
+                        'default' => '46',
127
+                        'min'     => '1',
128
+                        'step'    => '3',
129
+                        'max'     => '500',
130
+                    ),
131
+                    array(
132
+                        'id'      => 'tax-slider-2',
133
+                        'type'    => 'slider',
134
+                        'title'   => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
135
+                        'desc'    => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
136
+                        'default' => '0',
137
+                        'min'     => '0',
138
+                        'step'    => '5',
139
+                        'max'     => '300',
140
+                    ),
141
+                    array(
142
+                        'id'      => 'tax-spinner',
143
+                        'type'    => 'spinner',
144
+                        'title'   => esc_html__( 'Spinner Example 1', 'your-textdomain-here' ),
145
+                        'desc'    => esc_html__( 'Spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
146
+                        'default' => '40',
147
+                        'min'     => '20',
148
+                        'step'    => '20',
149
+                        'max'     => '100',
150
+                    ),
151
+                    array(
152
+                        'id'       => 'tax-switch-parent',
153
+                        'type'     => 'switch',
154
+                        'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
155
+                        'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
156
+                        'default'  => 0,
157
+                        'on'       => 'Enabled',
158
+                        'off'      => 'Disabled',
159
+                    ),
160
+                    array(
161
+                        'id'       => 'tax-switch-child',
162
+                        'type'     => 'switch',
163
+                        'required' => array( 'tax-switch-parent', '=', '1' ),
164
+                        'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
165
+                        'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
166
+                        'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
167
+                        'default'  => false,
168
+                    ),
169
+                ),
170
+            ),
171 171
 
172
-			array(
173
-				'title'  => esc_html__( 'Home Layout', 'your-textdomain-here' ),
174
-				// translators: %s = Redux GitHub URL.
175
-				'desc'   => sprintf( esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the GitHub repo at: %s', 'your-textdomain-here' ), '<a href="https://github.com/reduxframework/redux-framework">https://github.com/reduxframework/redux-framework</a>' ),
176
-				'icon'   => 'el-icon-home',
177
-				'fields' => array(
178
-					array(
179
-						'id'             => 'tax-homepage_blocks',
180
-						'type'           => 'sorter',
181
-						'title'          => 'Homepage Layout Manager',
182
-						'desc'           => 'Organize how you want the layout to appear on the homepage',
183
-						'compiler'       => 'true',
184
-						'add_visibility' => true,
172
+            array(
173
+                'title'  => esc_html__( 'Home Layout', 'your-textdomain-here' ),
174
+                // translators: %s = Redux GitHub URL.
175
+                'desc'   => sprintf( esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the GitHub repo at: %s', 'your-textdomain-here' ), '<a href="https://github.com/reduxframework/redux-framework">https://github.com/reduxframework/redux-framework</a>' ),
176
+                'icon'   => 'el-icon-home',
177
+                'fields' => array(
178
+                    array(
179
+                        'id'             => 'tax-homepage_blocks',
180
+                        'type'           => 'sorter',
181
+                        'title'          => 'Homepage Layout Manager',
182
+                        'desc'           => 'Organize how you want the layout to appear on the homepage',
183
+                        'compiler'       => 'true',
184
+                        'add_visibility' => true,
185 185
 
186
-						'options'        => array(
187
-							'enabled'  => array(
188
-								'highlights' => 'Highlights',
189
-								'slider'     => 'Slider',
190
-								'staticpage' => 'Static Page',
191
-							),
192
-							'disabled' => array(
193
-								'services' => 'Services',
194
-							),
195
-						),
196
-					),
186
+                        'options'        => array(
187
+                            'enabled'  => array(
188
+                                'highlights' => 'Highlights',
189
+                                'slider'     => 'Slider',
190
+                                'staticpage' => 'Static Page',
191
+                            ),
192
+                            'disabled' => array(
193
+                                'services' => 'Services',
194
+                            ),
195
+                        ),
196
+                    ),
197 197
 
198
-					array(
199
-						'id'       => 'tax-presets',
200
-						'type'     => 'image_select',
201
-						'presets'  => true,
202
-						'title'    => esc_html__( 'Preset', 'your-textdomain-here' ),
203
-						'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
204
-						'default'  => 0,
205
-						'desc'     => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
206
-						'options'  => array(
207
-							'1' => array(
208
-								'alt'     => 'Preset 1',
209
-								'img'     => ReduxFramework::$_url . '../sample/presets/preset1.png',
210
-								'presets' => array(
211
-									'switch-on'     => 1,
212
-									'switch-off'    => 1,
213
-									'switch-custom' => 1,
214
-								),
215
-							),
216
-							'2' => array(
217
-								'alt'     => 'Preset 2',
218
-								'img'     => ReduxFramework::$_url . '../sample/presets/preset2.png',
219
-								'presets' => '{"slider1":"1", "slider2":"0", "switch-on":"0"}',
220
-							),
221
-						),
222
-					),
223
-				),
224
-			),
225
-		),
226
-	)
198
+                    array(
199
+                        'id'       => 'tax-presets',
200
+                        'type'     => 'image_select',
201
+                        'presets'  => true,
202
+                        'title'    => esc_html__( 'Preset', 'your-textdomain-here' ),
203
+                        'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
204
+                        'default'  => 0,
205
+                        'desc'     => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
206
+                        'options'  => array(
207
+                            '1' => array(
208
+                                'alt'     => 'Preset 1',
209
+                                'img'     => ReduxFramework::$_url . '../sample/presets/preset1.png',
210
+                                'presets' => array(
211
+                                    'switch-on'     => 1,
212
+                                    'switch-off'    => 1,
213
+                                    'switch-custom' => 1,
214
+                                ),
215
+                            ),
216
+                            '2' => array(
217
+                                'alt'     => 'Preset 2',
218
+                                'img'     => ReduxFramework::$_url . '../sample/presets/preset2.png',
219
+                                'presets' => '{"slider1":"1", "slider2":"0", "switch-on":"0"}',
220
+                            ),
221
+                        ),
222
+                    ),
223
+                ),
224
+            ),
225
+        ),
226
+    )
227 227
 );
228 228
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/tabbed.php 1 patch
Indentation   +170 added lines, -170 removed lines patch added patch discarded remove patch
@@ -10,178 +10,178 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Tabbed', 'your-textdomain-here' ),
16
-		'id'         => 'additional-tabbed',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/tabbed.html" target="_blank">https://devs.redux.io/core-fields/tabbed.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'    => 'opt-tabbed-1',
22
-				'type'  => 'tabbed',
23
-				'title' => 'Tabbed Layout 1',
24
-				'tabs'  => array(
25
-					array(
26
-						'title'  => 'Basic Fields',
27
-						'icon'   => 'fas fa-gear',
28
-						'fields' => array(
29
-							array(
30
-								'id'       => 'opt-tab-checkbox-1',
31
-								'type'     => 'checkbox',
32
-								'title'    => esc_html__( 'Checkbox', 'your-textdomain-here' ),
33
-								'subtitle' => esc_html__( 'Basic Checkbox field.', 'your-textdomain-here' ),
34
-								'default'  => true,
35
-							),
36
-							array(
37
-								'id'       => 'opt-tab-radio',
38
-								'type'     => 'radio',
39
-								'title'    => esc_html__( 'Radio Button', 'your-textdomain-here' ),
40
-								'subtitle' => esc_html__( 'Basic Radio Button field.', 'your-textdomain-here' ),
41
-								'options'  => array(
42
-									'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
43
-									'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
44
-									'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
45
-								),
46
-								'default'  => '2',
47
-							),
48
-							array(
49
-								'id'       => 'opt-tab-media',
50
-								'type'     => 'media',
51
-								'url'      => true,
52
-								'title'    => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
53
-								'compiler' => 'true',
54
-								'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
55
-								'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
56
-								'default'  => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
57
-							),
58
-							array(
59
-								'id'       => 'opt-tab-gallery',
60
-								'type'     => 'gallery',
61
-								'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
62
-								'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
63
-								'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
64
-							),
65
-							array(
66
-								'id'      => 'opt-tab-slider',
67
-								'type'    => 'slider',
68
-								'title'   => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
69
-								'desc'    => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
70
-								'default' => '0',
71
-								'min'     => '0',
72
-								'step'    => '5',
73
-								'max'     => '300',
74
-							),
75
-							array(
76
-								'id'      => 'opt-tab-spinner',
77
-								'type'    => 'spinner',
78
-								'title'   => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
79
-								'desc'    => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
80
-								'default' => '40',
81
-								'min'     => '20',
82
-								'step'    => '20',
83
-								'max'     => '100',
84
-							),
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Tabbed', 'your-textdomain-here' ),
16
+        'id'         => 'additional-tabbed',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/tabbed.html" target="_blank">https://devs.redux.io/core-fields/tabbed.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'    => 'opt-tabbed-1',
22
+                'type'  => 'tabbed',
23
+                'title' => 'Tabbed Layout 1',
24
+                'tabs'  => array(
25
+                    array(
26
+                        'title'  => 'Basic Fields',
27
+                        'icon'   => 'fas fa-gear',
28
+                        'fields' => array(
29
+                            array(
30
+                                'id'       => 'opt-tab-checkbox-1',
31
+                                'type'     => 'checkbox',
32
+                                'title'    => esc_html__( 'Checkbox', 'your-textdomain-here' ),
33
+                                'subtitle' => esc_html__( 'Basic Checkbox field.', 'your-textdomain-here' ),
34
+                                'default'  => true,
35
+                            ),
36
+                            array(
37
+                                'id'       => 'opt-tab-radio',
38
+                                'type'     => 'radio',
39
+                                'title'    => esc_html__( 'Radio Button', 'your-textdomain-here' ),
40
+                                'subtitle' => esc_html__( 'Basic Radio Button field.', 'your-textdomain-here' ),
41
+                                'options'  => array(
42
+                                    '1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
43
+                                    '2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
44
+                                    '3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
45
+                                ),
46
+                                'default'  => '2',
47
+                            ),
48
+                            array(
49
+                                'id'       => 'opt-tab-media',
50
+                                'type'     => 'media',
51
+                                'url'      => true,
52
+                                'title'    => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
53
+                                'compiler' => 'true',
54
+                                'desc'     => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
55
+                                'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
56
+                                'default'  => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
57
+                            ),
58
+                            array(
59
+                                'id'       => 'opt-tab-gallery',
60
+                                'type'     => 'gallery',
61
+                                'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
62
+                                'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
63
+                                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
64
+                            ),
65
+                            array(
66
+                                'id'      => 'opt-tab-slider',
67
+                                'type'    => 'slider',
68
+                                'title'   => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
69
+                                'desc'    => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
70
+                                'default' => '0',
71
+                                'min'     => '0',
72
+                                'step'    => '5',
73
+                                'max'     => '300',
74
+                            ),
75
+                            array(
76
+                                'id'      => 'opt-tab-spinner',
77
+                                'type'    => 'spinner',
78
+                                'title'   => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
79
+                                'desc'    => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
80
+                                'default' => '40',
81
+                                'min'     => '20',
82
+                                'step'    => '20',
83
+                                'max'     => '100',
84
+                            ),
85 85
 
86
-							array(
87
-								'id'       => 'opt-tab-switch-on',
88
-								'type'     => 'switch',
89
-								'title'    => esc_html__( 'Switch On', 'your-textdomain-here' ),
90
-								'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
91
-								'default'  => 1,
92
-							),
93
-						),
94
-					),
86
+                            array(
87
+                                'id'       => 'opt-tab-switch-on',
88
+                                'type'     => 'switch',
89
+                                'title'    => esc_html__( 'Switch On', 'your-textdomain-here' ),
90
+                                'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
91
+                                'default'  => 1,
92
+                            ),
93
+                        ),
94
+                    ),
95 95
 
96
-					array(
97
-						'title'  => 'Text Fields',
98
-						'icon'   => 'fas fa-font',
99
-						'fields' => array(
100
-							array(
101
-								'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
102
-								'id'    => 'opt-tab-text',
103
-								'type'  => 'text',
104
-							),
105
-							array(
106
-								'title' => esc_html__( 'Textarea Field', 'your-textdomain-here' ),
107
-								'id'    => 'opt-tab-textarea',
108
-								'type'  => 'textarea',
109
-							),
110
-						),
111
-					),
112
-					array(
113
-						'title'  => esc_html__( 'Color Fields', 'your-textdomain-here' ),
114
-						'icon'   => 'fas fa-palette',
115
-						'fields' => array(
116
-							array(
117
-								'id'    => 'opt-tab-color-1',
118
-								'type'  => 'color',
119
-								'title' => esc_html__( 'Color 1', 'your-textdomain-here' ),
120
-							),
121
-							array(
122
-								'id'    => 'opt-tab-color-2',
123
-								'type'  => 'color',
124
-								'title' => esc_html__( 'Color 2', 'your-textdomain-here' ),
125
-							),
126
-						),
127
-					),
128
-				),
129
-			),
96
+                    array(
97
+                        'title'  => 'Text Fields',
98
+                        'icon'   => 'fas fa-font',
99
+                        'fields' => array(
100
+                            array(
101
+                                'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
102
+                                'id'    => 'opt-tab-text',
103
+                                'type'  => 'text',
104
+                            ),
105
+                            array(
106
+                                'title' => esc_html__( 'Textarea Field', 'your-textdomain-here' ),
107
+                                'id'    => 'opt-tab-textarea',
108
+                                'type'  => 'textarea',
109
+                            ),
110
+                        ),
111
+                    ),
112
+                    array(
113
+                        'title'  => esc_html__( 'Color Fields', 'your-textdomain-here' ),
114
+                        'icon'   => 'fas fa-palette',
115
+                        'fields' => array(
116
+                            array(
117
+                                'id'    => 'opt-tab-color-1',
118
+                                'type'  => 'color',
119
+                                'title' => esc_html__( 'Color 1', 'your-textdomain-here' ),
120
+                            ),
121
+                            array(
122
+                                'id'    => 'opt-tab-color-2',
123
+                                'type'  => 'color',
124
+                                'title' => esc_html__( 'Color 2', 'your-textdomain-here' ),
125
+                            ),
126
+                        ),
127
+                    ),
128
+                ),
129
+            ),
130 130
 
131
-			array(
132
-				'id'    => 'opt-tabbed-2',
133
-				'type'  => 'tabbed',
134
-				'title' => 'Tabbed Layout 2',
135
-				'tabs'  => array(
136
-					array(
137
-						'title'  => 'Layout',
138
-						'fields' => array(
139
-							array(
140
-								'id'       => 'opt-tab-homepage_blocks',
141
-								'type'     => 'sorter',
142
-								'title'    => 'Homepage Layout Manager',
143
-								'desc'     => 'Organize how you want the layout to appear on the homepage',
144
-								'compiler' => 'true',
145
-								'options'  => array(
146
-									'enabled'  => array(
147
-										'placebo'    => 'placebo',
148
-										'highlights' => 'Highlights',
149
-										'slider'     => 'Slider',
150
-										'staticpage' => 'Static Page',
151
-										'services'   => 'Services',
152
-									),
153
-									'disabled' => array(
154
-										'placebo' => 'placebo',
155
-									),
156
-								),
157
-							),
158
-							array(
159
-								'id'       => 'opt-tab-slides',
160
-								'type'     => 'slides',
161
-								'title'    => esc_html__( 'Slides Options', 'your-textdomain-here' ),
162
-								'subtitle' => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
163
-								'desc'     => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
164
-							),
165
-						),
166
-					),
167
-					array(
168
-						'title'  => 'Advanced Text',
169
-						'fields' => array(
170
-							array(
171
-								'title' => esc_html__( 'WP Editor', 'your-textdomain-here' ),
172
-								'id'    => 'opt-tab-editor',
173
-								'type'  => 'editor',
174
-							),
175
-							array(
176
-								'title' => esc_html__( 'ACE Editor', 'your-textdomain-here' ),
177
-								'id'    => 'opt-tab-ace',
178
-								'type'  => 'ace_editor',
179
-							),
180
-						),
181
-					),
182
-				),
183
-			),
184
-		),
185
-	)
131
+            array(
132
+                'id'    => 'opt-tabbed-2',
133
+                'type'  => 'tabbed',
134
+                'title' => 'Tabbed Layout 2',
135
+                'tabs'  => array(
136
+                    array(
137
+                        'title'  => 'Layout',
138
+                        'fields' => array(
139
+                            array(
140
+                                'id'       => 'opt-tab-homepage_blocks',
141
+                                'type'     => 'sorter',
142
+                                'title'    => 'Homepage Layout Manager',
143
+                                'desc'     => 'Organize how you want the layout to appear on the homepage',
144
+                                'compiler' => 'true',
145
+                                'options'  => array(
146
+                                    'enabled'  => array(
147
+                                        'placebo'    => 'placebo',
148
+                                        'highlights' => 'Highlights',
149
+                                        'slider'     => 'Slider',
150
+                                        'staticpage' => 'Static Page',
151
+                                        'services'   => 'Services',
152
+                                    ),
153
+                                    'disabled' => array(
154
+                                        'placebo' => 'placebo',
155
+                                    ),
156
+                                ),
157
+                            ),
158
+                            array(
159
+                                'id'       => 'opt-tab-slides',
160
+                                'type'     => 'slides',
161
+                                'title'    => esc_html__( 'Slides Options', 'your-textdomain-here' ),
162
+                                'subtitle' => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
163
+                                'desc'     => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
164
+                            ),
165
+                        ),
166
+                    ),
167
+                    array(
168
+                        'title'  => 'Advanced Text',
169
+                        'fields' => array(
170
+                            array(
171
+                                'title' => esc_html__( 'WP Editor', 'your-textdomain-here' ),
172
+                                'id'    => 'opt-tab-editor',
173
+                                'type'  => 'editor',
174
+                            ),
175
+                            array(
176
+                                'title' => esc_html__( 'ACE Editor', 'your-textdomain-here' ),
177
+                                'id'    => 'opt-tab-ace',
178
+                                'type'  => 'ace_editor',
179
+                            ),
180
+                        ),
181
+                    ),
182
+                ),
183
+            ),
184
+        ),
185
+    )
186 186
 );
187 187
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/widget-areas.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,24 +12,24 @@
 block discarded – undo
12 12
 
13 13
 // --> Below this line not needed. This is just for demonstration purposes.
14 14
 Redux::set_section(
15
-	$opt_name,
16
-	array(
17
-		'title'      => esc_html__( 'Widget Areas', 'your-textdomain-here' ),
18
-		// phpcs:ignore
19
-		// 'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/extensions/widget-areas.html" target="_blank">https://devs.redux.io/extensions/widget-areas.html</a>',
20
-		'subsection' => true,
21
-		'fields'     => array(
22
-			array(
23
-				'id'       => 'widget_areas',
24
-				'type'     => 'info',
25
-				'style'    => 'info',
26
-				'notice'   => true,
27
-				'title'    => esc_html__( 'Widget Areas is Already Running!', 'your-textdomain-here' ),
15
+    $opt_name,
16
+    array(
17
+        'title'      => esc_html__( 'Widget Areas', 'your-textdomain-here' ),
18
+        // phpcs:ignore
19
+        // 'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/extensions/widget-areas.html" target="_blank">https://devs.redux.io/extensions/widget-areas.html</a>',
20
+        'subsection' => true,
21
+        'fields'     => array(
22
+            array(
23
+                'id'       => 'widget_areas',
24
+                'type'     => 'info',
25
+                'style'    => 'info',
26
+                'notice'   => true,
27
+                'title'    => esc_html__( 'Widget Areas is Already Running!', 'your-textdomain-here' ),
28 28
 
29
-				// translators: %1$s: Widget Admin URL.
30
-				'subtitle' => sprintf( esc_html__( 'To see it in action, head over to your %1$s', 'your-textdomain-here' ), '<a href="' . admin_url( 'widgets.php' ) . '">' . esc_html__( 'Widgets page', 'your-textdomain-here' ) . '</a> (Applicable for Classic Widgets only).' ),
31
-			),
32
-		),
33
-	)
29
+                // translators: %1$s: Widget Admin URL.
30
+                'subtitle' => sprintf( esc_html__( 'To see it in action, head over to your %1$s', 'your-textdomain-here' ), '<a href="' . admin_url( 'widgets.php' ) . '">' . esc_html__( 'Widgets page', 'your-textdomain-here' ) . '</a> (Applicable for Classic Widgets only).' ),
31
+            ),
32
+        ),
33
+    )
34 34
 );
35 35
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/repeater.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -10,64 +10,64 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => __( 'Repeater', 'your-textdomain-here' ),
16
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/repeater.html" target="_blank">https://devs.redux.io/core-extensions/repeater.html</a>',
17
-		'subsection' => true,
18
-		'fields'     => array(
19
-			array(
20
-				'id'          => 'repeater-field-id',
21
-				'type'        => 'repeater',
22
-				'title'       => esc_html__( 'Repeater Demo', 'your-textdomain-here' ),
23
-				'full_width'  => true,
24
-				'subtitle'    => esc_html__( 'Repeater', 'your-textdomain-here' ),
25
-				'item_name'   => '',
26
-				'sortable'    => true,
27
-				'active'      => false,
28
-				'collapsible' => false,
29
-				'fields'      => array(
30
-					array(
31
-						'id'          => 'title_field',
32
-						'type'        => 'text',
33
-						'placeholder' => esc_html__( 'Title', 'your-textdomain-here' ),
34
-					),
35
-					array(
36
-						'id'          => 'textarea_field',
37
-						'type'        => 'textarea',
38
-						'placeholder' => esc_html__( 'Text Field', 'your-textdomain-here' ),
39
-						'default'     => 'Text Field here',
40
-						'title'       => esc_html__( 'Title', 'your-domain-here' ),
41
-					),
42
-					array(
43
-						'id'          => 'select_field',
44
-						'type'        => 'select',
45
-						'multi'       => true,
46
-						'title'       => esc_html__( 'Select Field', 'your-textdomain-here' ),
47
-						'options'     => array(
48
-							'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
49
-							'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
50
-							'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
51
-						),
52
-						'placeholder' => esc_html__( 'Listing Field', 'your-textdomain-here' ),
53
-					),
54
-					array(
55
-						'id'          => 'switch_field',
56
-						'type'        => 'switch',
57
-						'placeholder' => esc_html__( 'Switch Field', 'your-textdomain-here' ),
58
-						'default'     => true,
59
-					),
60
-					array(
61
-						'id'          => 'text_field',
62
-						'title'       => esc_html__( 'Text Field', 'your-textdomain-here' ),
63
-						'type'        => 'text',
64
-						'placeholder' => esc_html__( 'Text Field', 'your-textdomain-here' ),
65
-						'required'    => array( 'switch_field', '=', false ),
66
-						'default'     => 'Text Field here',
67
-					),
68
-				),
69
-			),
70
-		),
71
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => __( 'Repeater', 'your-textdomain-here' ),
16
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/repeater.html" target="_blank">https://devs.redux.io/core-extensions/repeater.html</a>',
17
+        'subsection' => true,
18
+        'fields'     => array(
19
+            array(
20
+                'id'          => 'repeater-field-id',
21
+                'type'        => 'repeater',
22
+                'title'       => esc_html__( 'Repeater Demo', 'your-textdomain-here' ),
23
+                'full_width'  => true,
24
+                'subtitle'    => esc_html__( 'Repeater', 'your-textdomain-here' ),
25
+                'item_name'   => '',
26
+                'sortable'    => true,
27
+                'active'      => false,
28
+                'collapsible' => false,
29
+                'fields'      => array(
30
+                    array(
31
+                        'id'          => 'title_field',
32
+                        'type'        => 'text',
33
+                        'placeholder' => esc_html__( 'Title', 'your-textdomain-here' ),
34
+                    ),
35
+                    array(
36
+                        'id'          => 'textarea_field',
37
+                        'type'        => 'textarea',
38
+                        'placeholder' => esc_html__( 'Text Field', 'your-textdomain-here' ),
39
+                        'default'     => 'Text Field here',
40
+                        'title'       => esc_html__( 'Title', 'your-domain-here' ),
41
+                    ),
42
+                    array(
43
+                        'id'          => 'select_field',
44
+                        'type'        => 'select',
45
+                        'multi'       => true,
46
+                        'title'       => esc_html__( 'Select Field', 'your-textdomain-here' ),
47
+                        'options'     => array(
48
+                            '1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
49
+                            '2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
50
+                            '3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
51
+                        ),
52
+                        'placeholder' => esc_html__( 'Listing Field', 'your-textdomain-here' ),
53
+                    ),
54
+                    array(
55
+                        'id'          => 'switch_field',
56
+                        'type'        => 'switch',
57
+                        'placeholder' => esc_html__( 'Switch Field', 'your-textdomain-here' ),
58
+                        'default'     => true,
59
+                    ),
60
+                    array(
61
+                        'id'          => 'text_field',
62
+                        'title'       => esc_html__( 'Text Field', 'your-textdomain-here' ),
63
+                        'type'        => 'text',
64
+                        'placeholder' => esc_html__( 'Text Field', 'your-textdomain-here' ),
65
+                        'required'    => array( 'switch_field', '=', false ),
66
+                        'default'     => 'Text Field here',
67
+                    ),
68
+                ),
69
+            ),
70
+        ),
71
+    )
72 72
 );
73 73
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/accordion.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -11,61 +11,61 @@
 block discarded – undo
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13 13
 Redux::set_section(
14
-	$opt_name,
15
-	array(
16
-		'title'      => esc_html__( 'Accordion', '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/accordion.html" target="_blank">https://devs.redux.io/core-extensions/accordion.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'accordion-section-1',
22
-				'type'     => 'accordion',
23
-				'title'    => esc_html__( 'Accordion Section One', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Section one with subtitle', 'your-textdomain-here' ),
25
-				'position' => 'start',
26
-			),
27
-			array(
28
-				'id'       => 'opt-blank-text-1',
29
-				'type'     => 'text',
30
-				'title'    => esc_html__( 'Text box for some noble purpose.', 'your-textdomain-here' ),
31
-				'subtitle' => esc_html__( 'Frailty, thy name is woman!', 'your-textdomain-here' ),
32
-			),
33
-			array(
34
-				'id'       => 'opt-switch-1',
35
-				'type'     => 'switch',
36
-				'title'    => esc_html__( 'Switch, for some other important task!', 'your-textdomain-here' ),
37
-				'subtitle' => esc_html__( 'Physician, heal thyself!', 'your-textdomain-here' ),
38
-			),
39
-			array(
40
-				'id'       => 'accordion-section-end-1',
41
-				'type'     => 'accordion',
42
-				'position' => 'end',
43
-			),
44
-			array(
45
-				'id'       => 'accordion-section-2',
46
-				'type'     => 'accordion',
47
-				'title'    => esc_html__( 'Accordion Section Two (no subtitle)', 'your-textdomain-here' ),
48
-				'position' => 'start',
49
-				'open'     => true,
50
-			),
51
-			array(
52
-				'id'       => 'opt-blank-text-3',
53
-				'type'     => 'text',
54
-				'title'    => esc_html__( 'Look, another sample text box.', 'your-textdomain-here' ),
55
-				'subtitle' => esc_html__( 'The tartness of his face sours ripe grapes.', 'your-textdomain-here' ),
56
-			),
57
-			array(
58
-				'id'       => 'opt-switch-2',
59
-				'type'     => 'switch',
60
-				'title'    => esc_html__( 'Yes, another switch, but you\'re free to use any field you like.', 'your-textdomain-here' ),
61
-				'subtitle' => esc_html__( 'I scorn you, scurvy companion!', 'your-textdomain-here' ),
62
-			),
63
-			array(
64
-				'id'       => 'accordion-section-end-2',
65
-				'type'     => 'accordion',
66
-				'position' => 'end',
67
-			),
68
-		),
69
-	)
14
+    $opt_name,
15
+    array(
16
+        'title'      => esc_html__( 'Accordion', '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/accordion.html" target="_blank">https://devs.redux.io/core-extensions/accordion.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'accordion-section-1',
22
+                'type'     => 'accordion',
23
+                'title'    => esc_html__( 'Accordion Section One', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Section one with subtitle', 'your-textdomain-here' ),
25
+                'position' => 'start',
26
+            ),
27
+            array(
28
+                'id'       => 'opt-blank-text-1',
29
+                'type'     => 'text',
30
+                'title'    => esc_html__( 'Text box for some noble purpose.', 'your-textdomain-here' ),
31
+                'subtitle' => esc_html__( 'Frailty, thy name is woman!', 'your-textdomain-here' ),
32
+            ),
33
+            array(
34
+                'id'       => 'opt-switch-1',
35
+                'type'     => 'switch',
36
+                'title'    => esc_html__( 'Switch, for some other important task!', 'your-textdomain-here' ),
37
+                'subtitle' => esc_html__( 'Physician, heal thyself!', 'your-textdomain-here' ),
38
+            ),
39
+            array(
40
+                'id'       => 'accordion-section-end-1',
41
+                'type'     => 'accordion',
42
+                'position' => 'end',
43
+            ),
44
+            array(
45
+                'id'       => 'accordion-section-2',
46
+                'type'     => 'accordion',
47
+                'title'    => esc_html__( 'Accordion Section Two (no subtitle)', 'your-textdomain-here' ),
48
+                'position' => 'start',
49
+                'open'     => true,
50
+            ),
51
+            array(
52
+                'id'       => 'opt-blank-text-3',
53
+                'type'     => 'text',
54
+                'title'    => esc_html__( 'Look, another sample text box.', 'your-textdomain-here' ),
55
+                'subtitle' => esc_html__( 'The tartness of his face sours ripe grapes.', 'your-textdomain-here' ),
56
+            ),
57
+            array(
58
+                'id'       => 'opt-switch-2',
59
+                'type'     => 'switch',
60
+                'title'    => esc_html__( 'Yes, another switch, but you\'re free to use any field you like.', 'your-textdomain-here' ),
61
+                'subtitle' => esc_html__( 'I scorn you, scurvy companion!', 'your-textdomain-here' ),
62
+            ),
63
+            array(
64
+                'id'       => 'accordion-section-end-2',
65
+                'type'     => 'accordion',
66
+                'position' => 'end',
67
+            ),
68
+        ),
69
+    )
70 70
 );
71 71
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/shortcodes.php 1 patch
Indentation   +355 added lines, -355 removed lines patch added patch discarded remove patch
@@ -14,360 +14,360 @@
 block discarded – undo
14 14
 $example  = '<strong>' . esc_html__( 'Output:', 'your-textdomain-here' ) . ' </strong>';
15 15
 
16 16
 Redux::set_section(
17
-	$opt_name,
18
-	array(
19
-		'customizer' => false,
20
-		'title'      => esc_html__( 'Shortcodes', 'your-textdomain-here' ),
21
-		'desc'       => $example . esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/shortcodes.html" target="_blank">https://devs.redux.io/extensions/shortcodes.html</a>',
22
-		'subsection' => true,
23
-		'fields'     => array(
24
-			array(
25
-				'id'         => 'sc-bloginfo',
26
-				'title'      => esc_html__( '[bloginfo data="name"]', 'your-textdomain-here' ),
27
-				'subtitle'   => $function . '<code>get_bloginfo("name")</code>',
28
-				'desc'       => $example . esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
29
-				'type'       => 'raw',
30
-				'full_width' => false,
31
-			),
32
-			array(
33
-				'id'         => 'sc-description',
34
-				'title'      => esc_html__( '[bloginfo data="description"]', 'your-textdomain-here' ),
35
-				'subtitle'   => $function . '<code>get_bloginfo("description")</code>',
36
-				'desc'       => $example . esc_html__( 'Displays the "Tagline" set in Settings > General. This data is retrieved from the "blogdescription" record in the wp_options table.', 'your-textdomain-here' ),
37
-				'type'       => 'raw',
38
-				'full_width' => false,
39
-			),
40
-			array(
41
-				'id'         => 'sc-wpurl',
42
-				'title'      => esc_html__( '[bloginfo data="wpurl"]', 'your-textdomain-here' ),
43
-				'subtitle'   => $function . '<code>get_bloginfo("wpurl")</code>',
44
-				'desc'       => $example . esc_html__( 'Displays the "WordPress address (URL)" set in Settings > General. This data is retrieved from the "siteurl" record in the wp_options table. Consider using *root_url* instead, especially for multi-site configurations using paths instead of subdomains (it will return the root site not the current sub-site).', 'your-textdomain-here' ),
45
-				'type'       => 'raw',
46
-				'markdown'   => true,
47
-				'full_width' => false,
48
-			),
49
-			array(
50
-				'id'         => 'sc-rooturl',
51
-				'title'      => esc_html__( '[bloginfo data="root_url"]', 'your-textdomain-here' ),
52
-				'subtitle'   => $function . '<code>site_url()</code>',
53
-				'desc'       => $example . esc_html__( 'Return the root site, not the current sub-site.', 'your-textdomain-here' ),
54
-				'type'       => 'raw',
55
-				'full_width' => false,
56
-			),
57
-			array(
58
-				'id'         => 'sc-url',
59
-				'title'      => esc_html__( '[bloginfo data="url"]', 'your-textdomain-here' ),
60
-				'subtitle'   => $function . '<code>home_url()</code>',
61
-				'desc'       => $example . esc_html__( 'Displays the "Site address (URL)" set in Settings > General. This data is retrieved from the "home" record in the wp_options table.', 'your-textdomain-here' ),
62
-				'type'       => 'raw',
63
-				'full_width' => false,
64
-			),
65
-			array(
66
-				'id'         => 'sc-adminemail',
67
-				'title'      => esc_html__( '[bloginfo data="admin_email"]', 'your-textdomain-here' ),
68
-				'subtitle'   => $function . '<code>get_bloginfo("admin_email")</code>',
69
-				'desc'       => $example . esc_html__( 'Displays the "E-mail address" set in Settings > General. This data is retrieved from the "admin_email" record in the wp_options table.', 'your-textdomain-here' ),
70
-				'type'       => 'raw',
71
-				'full_width' => false,
72
-			),
73
-			array(
74
-				'id'         => 'sc-charset',
75
-				'title'      => esc_html__( '[bloginfo data="charset"]', 'your-textdomain-here' ),
76
-				'subtitle'   => $function . '<code>get_bloginfo("charset")</code>',
77
-				'desc'       => $example . esc_html__( 'Displays the "Encoding for pages and feeds" set in Settings > Reading. This data is retrieved from the "blog_charset" record in the wp_options.', 'your-textdomain-here' ),
78
-				'type'       => 'raw',
79
-				'full_width' => false,
80
-			),
81
-			array(
82
-				'id'         => 'sc-version',
83
-				'title'      => esc_html__( '[bloginfo data="version"]', 'your-textdomain-here' ),
84
-				'subtitle'   => $function . '<code>get_bloginfo("version")</code>',
85
-				'desc'       => $example . esc_html__( 'Displays the WordPress Version you use. This data is retrieved from the $wp_version variable set in wp-includes/version.php.', 'your-textdomain-here' ),
86
-				'type'       => 'raw',
87
-				'full_width' => false,
88
-			),
89
-			array(
90
-				'id'         => 'sc-htmltype',
91
-				'title'      => esc_html__( '[bloginfo data="html_type"]', 'your-textdomain-here' ),
92
-				'subtitle'   => $function . '<code>get_bloginfo("html_type")</code>',
93
-				'desc'       => $example . esc_html__( 'Displays the Content-Type of WordPress HTML pages (default: "text/html"). This data is retrieved from the "html_type" record in the wp_options table. Themes and plugins can override the default value using the pre_option_html_type filter.', 'your-textdomain-here' ),
94
-				'type'       => 'raw',
95
-				'full_width' => false,
96
-			),
97
-			array(
98
-				'id'         => 'sc-multi',
99
-				'title'      => esc_html__( '[bloginfo data="is_multisite"]', 'your-textdomain-here' ),
100
-				'subtitle'   => $function . '<code>is_multisite()</code>',
101
-				'desc'       => $example . esc_html__( 'Displays true/false check if WordPress is running in multisite mode.', 'your-textdomain-here' ),
102
-				'type'       => 'raw',
103
-				'full_width' => false,
104
-			),
105
-			array(
106
-				'id'         => 'sc-rtl',
107
-				'title'      => esc_html__( '[bloginfo data="text_direction"]', 'your-textdomain-here' ),
108
-				'subtitle'   => $function . '<code>is_rtl()</code>',
109
-				'desc'       => $example . esc_html__( 'Displays true/false check if the Text Direction of WordPress HTML pages is left instead of right.', 'your-textdomain-here' ),
110
-				'type'       => 'raw',
111
-				'full_width' => false,
112
-			),
113
-			array(
114
-				'id'         => 'sc-lang',
115
-				'title'      => esc_html__( '[bloginfo data="language"]', 'your-textdomain-here' ),
116
-				'subtitle'   => $function . '<code>get_bloginfo("language")</code>',
117
-				'desc'       => $example . esc_html__( 'Displays the language of WordPress.', 'your-textdomain-here' ),
118
-				'type'       => 'raw',
119
-				'full_width' => false,
120
-			),
121
-			array(
122
-				'id'         => 'sc-stylesheet-url',
123
-				'title'      => esc_html__( '[bloginfo data="stylesheet_url"]', 'your-textdomain-here' ),
124
-				'subtitle'   => $function . '<code>get_stylesheet_uri()</code>',
125
-				'desc'       => $example . esc_html__( 'Displays the primary CSS (usually style.css) file URL of the active theme.', 'your-textdomain-here' ),
126
-				'type'       => 'raw',
127
-				'full_width' => false,
128
-			),
129
-			array(
130
-				'id'         => 'sc-stylesheet-dir',
131
-				'title'      => esc_html__( '[bloginfo data="stylesheet_directory"]', 'your-textdomain-here' ),
132
-				'subtitle'   => $function . '<code>get_stylesheet_directory()</code>',
133
-				'desc'       => $example . esc_html__( 'Displays the stylesheet directory of the active theme.', 'your-textdomain-here' ),
134
-				'type'       => 'raw',
135
-				'full_width' => false,
136
-			),
137
-			array(
138
-				'id'         => 'sc-template-url',
139
-				'title'      => esc_html__( '[bloginfo data="template_url"]', 'your-textdomain-here' ),
140
-				'subtitle'   => $function . '<code>get_template_directory_uri()</code>',
141
-				'desc'       => $example . esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
142
-				'type'       => 'raw',
143
-				'full_width' => false,
144
-			),
145
-			array(
146
-				'id'         => 'sc-child-template-url',
147
-				'title'      => esc_html__( '[bloginfo data="child_template_url"]', 'your-textdomain-here' ),
148
-				'subtitle'   => $function . '<code>get_stylesheet_directory_uri()</code>',
149
-				'desc'       => $example . esc_html__( 'Child template URI.', 'your-textdomain-here' ),
150
-				'type'       => 'raw',
151
-				'full_width' => false,
152
-			),
153
-			array(
154
-				'id'         => 'sc-template-dir',
155
-				'title'      => esc_html__( '[bloginfo data="template_directory"]', 'your-textdomain-here' ),
156
-				'subtitle'   => $function . '<code>get_template_directory()</code>',
157
-				'desc'       => $example . esc_html__( 'Template directory.', 'your-textdomain-here' ),
158
-				'type'       => 'raw',
159
-				'full_width' => false,
160
-			),
161
-			array(
162
-				'id'         => 'sc-child-template-dir',
163
-				'title'      => esc_html__( '[bloginfo data="child_template_directory"]', 'your-textdomain-here' ),
164
-				'subtitle'   => $function . '<code>get_stylesheet_directory()</code>',
165
-				'desc'       => $example . esc_html__( 'Child template Directory.', 'your-textdomain-here' ),
166
-				'type'       => 'raw',
167
-				'full_width' => false,
168
-			),
169
-			array(
170
-				'id'         => 'sc-pingback-url',
171
-				'title'      => esc_html__( '[bloginfo data="pingback_url"]', 'your-textdomain-here' ),
172
-				'subtitle'   => $function . '<code>get_bloginfo("pingback_url")</code>',
173
-				'desc'       => $example . esc_html__( 'Displays the Pingback XML-RPC file URL (xmlrpc.php).', 'your-textdomain-here' ),
174
-				'type'       => 'raw',
175
-				'full_width' => false,
176
-			),
177
-			array(
178
-				'id'         => 'sc-atom-url',
179
-				'title'      => esc_html__( '[bloginfo data="atom_url"]', 'your-textdomain-here' ),
180
-				'subtitle'   => $function . '<code>get_bloginfo("atom_url")</code>',
181
-				'desc'       => $example . esc_html__( 'Displays the Atom feed URL (/feed/atom).', 'your-textdomain-here' ),
182
-				'type'       => 'raw',
183
-				'full_width' => false,
184
-			),
185
-			array(
186
-				'id'         => 'sc-rdf-url',
187
-				'title'      => esc_html__( '[bloginfo data="rdf_url"]', 'your-textdomain-here' ),
188
-				'subtitle'   => $function . '<code>get_bloginfo("rdf_url")</code>',
189
-				'desc'       => $example . esc_html__( 'Displays the RDF/RSS 1.0 feed URL (/feed/rfd).', 'your-textdomain-here' ),
190
-				'type'       => 'raw',
191
-				'full_width' => false,
192
-			),
193
-			array(
194
-				'id'         => 'sc-rss-url',
195
-				'title'      => esc_html__( '[bloginfo data="rss_url"]', 'your-textdomain-here' ),
196
-				'subtitle'   => $function . '<code>get_bloginfo("rss_url")</code>',
197
-				'desc'       => $example . esc_html__( 'Displays the RSS 0.92 feed URL (/feed/rss).', 'your-textdomain-here' ),
198
-				'type'       => 'raw',
199
-				'full_width' => false,
200
-			),
201
-			array(
202
-				'id'         => 'sc-rss2-url',
203
-				'title'      => esc_html__( '[bloginfo data="rss2_url"]', 'your-textdomain-here' ),
204
-				'subtitle'   => $function . '<code>get_bloginfo("rss2_url")</code>',
205
-				'desc'       => $example . esc_html__( 'Displays the RSS 2.0 feed URL (/feed).', 'your-textdomain-here' ),
206
-				'type'       => 'raw',
207
-				'full_width' => false,
208
-			),
209
-			array(
210
-				'id'         => 'sc-comments-atom-url',
211
-				'title'      => esc_html__( '[bloginfo data="comments_atom_url"]', 'your-textdomain-here' ),
212
-				'subtitle'   => $function . '<code>get_bloginfo("comments_atom_url")</code>',
213
-				'desc'       => $example . esc_html__( 'Displays the comments Atom feed URL (/comments/feed).', 'your-textdomain-here' ),
214
-				'type'       => 'raw',
215
-				'full_width' => false,
216
-			),
217
-			array(
218
-				'id'         => 'sc-comments-rss2-url',
219
-				'title'      => esc_html__( '[bloginfo data="comments_rss2_url"]', 'your-textdomain-here' ),
220
-				'subtitle'   => $function . '<code>get_bloginfo("comments_rss2_url")</code>',
221
-				'desc'       => $example . esc_html__( 'Displays the comments RSS 2.0 feed URL (/comments/feed).', 'your-textdomain-here' ),
222
-				'type'       => 'raw',
223
-				'full_width' => false,
224
-			),
225
-			array(
226
-				'id'         => 'sc-login-url',
227
-				'title'      => esc_html__( '[bloginfo data="login_url"]', 'your-textdomain-here' ),
228
-				'subtitle'   => $function . '<code>wp_login_url()</code>',
229
-				'desc'       => $example . esc_html__( 'Returns the WordPress login URL.', 'your-textdomain-here' ),
230
-				'type'       => 'raw',
231
-				'full_width' => false,
232
-			),
233
-			array(
234
-				'id'         => 'sc-logout-url',
235
-				'title'      => esc_html__( '[bloginfo data="logout_url"]', 'your-textdomain-here' ),
236
-				'subtitle'   => $function . '<code>wp_logout_url()</code>',
237
-				'desc'       => $example . esc_html__( 'Returns the WordPress logout URL.', 'your-textdomain-here' ),
238
-				'type'       => 'raw',
239
-				'full_width' => false,
240
-			),
241
-			array(
242
-				'id'         => 'sc-register-url',
243
-				'title'      => esc_html__( '[bloginfo data="register_url"]', 'your-textdomain-here' ),
244
-				'subtitle'   => $function . '<code>wp_registration_url()</code>',
245
-				'desc'       => $example . esc_html__( 'Returns the WordPress register URL.', 'your-textdomain-here' ),
246
-				'type'       => 'raw',
247
-				'full_width' => false,
248
-			),
249
-			array(
250
-				'id'         => 'sc-lost-pw-url',
251
-				'title'      => esc_html__( '[bloginfo data="lost_password_url"]', 'your-textdomain-here' ),
252
-				'subtitle'   => $function . '<code>wp_lostpassword_url()</code>',
253
-				'desc'       => $example . esc_html__( 'Returns the WordPress lost password URL.', 'your-textdomain-here' ),
254
-				'type'       => 'raw',
255
-				'full_width' => false,
256
-			),
257
-			array(
258
-				'id'   => 'opt-divide-1',
259
-				'type' => 'divide',
260
-			),
261
-			array(
262
-				'id'         => 'sc-date',
263
-				'title'      => esc_html__( '[date data="Y"]', 'your-textdomain-here' ),
264
-				'subtitle'   => $function . '<code>date("Y")</code>',
265
-				// translators: %1$s: PHP Date Format URL.
266
-				'desc'       => $example . sprintf( esc_html__( 'Returns the current year.  Any date format characters as specified by the %1$s may be used.', 'your-textdomain-here' ), '<a href="https://php.net/manual/en/function.date.php" target="_blank">' . esc_html__( 'PHP Date Format Table', 'your-textdomain-here' ) . '</a>' ),
267
-				'type'       => 'raw',
268
-				'full_width' => false,
269
-			),
270
-			array(
271
-				'id'   => 'opt-divide-2',
272
-				'type' => 'divide',
273
-			),
274
-			array(
275
-				'id'         => 'sc-theme-name',
276
-				'title'      => esc_html__( '[themeinfo data="name"]', 'your-textdomain-here' ),
277
-				'subtitle'   => $function . '<code>$theme_info->get("Name")</code>',
278
-				'desc'       => $example . esc_html__( 'Theme name as given in theme\'s style.css.', 'your-textdomain-here' ),
279
-				'type'       => 'raw',
280
-				'full_width' => false,
281
-			),
282
-			array(
283
-				'id'         => 'sc-theme-uri',
284
-				'title'      => esc_html__( '[themeinfo data="theme_uri"]', 'your-textdomain-here' ),
285
-				'subtitle'   => $function . '<code>$theme_info->get("ThemeURI")</code>',
286
-				'desc'       => $example . esc_html__( 'The URL to the theme\'s directory.', 'your-textdomain-here' ),
287
-				'type'       => 'raw',
288
-				'full_width' => false,
289
-			),
290
-			array(
291
-				'id'         => 'sc-theme-desc',
292
-				'title'      => esc_html__( '[themeinfo data="description"]', 'your-textdomain-here' ),
293
-				'subtitle'   => $function . '<code>$theme_info->get("Description")</code>',
294
-				'desc'       => $example . esc_html__( 'The description of the theme.', 'your-textdomain-here' ),
295
-				'type'       => 'raw',
296
-				'full_width' => false,
297
-			),
298
-			array(
299
-				'id'         => 'sc-theme-author',
300
-				'title'      => esc_html__( '[themeinfo data="author"]', 'your-textdomain-here' ),
301
-				'subtitle'   => $function . '<code>$theme_info->get("Author")</code>',
302
-				'desc'       => $example . esc_html__( 'The theme\'s author.', 'your-textdomain-here' ),
303
-				'type'       => 'raw',
304
-				'full_width' => false,
305
-			),
306
-			array(
307
-				'id'         => 'sc-theme-author-uri',
308
-				'title'      => esc_html__( '[themeinfo data="author_uri"]', 'your-textdomain-here' ),
309
-				'subtitle'   => $function . '<code>$theme_info->get("AuthorURI")</code>',
310
-				'desc'       => $example . esc_html__( 'The website of the theme author.', 'your-textdomain-here' ),
311
-				'type'       => 'raw',
312
-				'full_width' => false,
313
-			),
314
-			array(
315
-				'id'         => 'sc-theme-version',
316
-				'title'      => esc_html__( '[themeinfo data="version"]', 'your-textdomain-here' ),
317
-				'subtitle'   => $function . '<code>$theme_info->get("Version")</code>',
318
-				'desc'       => $example . esc_html__( 'The version of the theme.', 'your-textdomain-here' ),
319
-				'type'       => 'raw',
320
-				'full_width' => false,
321
-			),
322
-			array(
323
-				'id'         => 'sc-theme-template',
324
-				'title'      => esc_html__( '[themeinfo data="template"]', 'your-textdomain-here' ),
325
-				'subtitle'   => $function . '<code>$theme_info->get("Template")</code>',
326
-				'desc'       => $example . esc_html__( 'The folder name of the current theme.', 'your-textdomain-here' ),
327
-				'type'       => 'raw',
328
-				'full_width' => false,
329
-			),
330
-			array(
331
-				'id'         => 'sc-theme-status',
332
-				'title'      => esc_html__( '[themeinfo data="status"]', 'your-textdomain-here' ),
333
-				'subtitle'   => $function . '<code>$theme_info->get("Status")</code>',
334
-				'desc'       => $example . esc_html__( 'If the theme is published.', 'your-textdomain-here' ),
335
-				'type'       => 'raw',
336
-				'full_width' => false,
337
-			),
338
-			array(
339
-				'id'         => 'sc-theme-tags',
340
-				'title'      => esc_html__( '[themeinfo data="tags"]', 'your-textdomain-here' ),
341
-				'subtitle'   => $function . '<code>$theme_info->get("Tags")</code>',
342
-				'desc'       => $example . esc_html__( 'Tags used to describe the theme.', 'your-textdomain-here' ),
343
-				'type'       => 'raw',
344
-				'full_width' => false,
345
-			),
346
-			array(
347
-				'id'         => 'sc-theme-text-domain',
348
-				'title'      => esc_html__( '[themeinfo data="text_domain"]', 'your-textdomain-here' ),
349
-				'subtitle'   => $function . '<code>$theme_info->get("TextDomain")</code>',
350
-				'desc'       => $example . esc_html__( 'The text domain used in the theme for translation purposes.', 'your-textdomain-here' ),
351
-				'type'       => 'raw',
352
-				'full_width' => false,
353
-			),
354
-			array(
355
-				'id'         => 'sc-theme-domain-path',
356
-				'title'      => esc_html__( '[themeinfo data="domain_path"]', 'your-textdomain-here' ),
357
-				'subtitle'   => $function . '<code>$theme_info->get("DomainPath")</code>',
358
-				'desc'       => $example . esc_html__( 'Path to the theme translation files.', 'your-textdomain-here' ),
359
-				'type'       => 'raw',
360
-				'full_width' => false,
361
-			),
362
-			array(
363
-				'id'         => 'sc-theme-is-child',
364
-				'title'      => esc_html__( '[themeinfo data="is_child"]', 'your-textdomain-here' ),
365
-				'subtitle'   => $function . '<code>is_child_theme()</code>',
366
-				'desc'       => $example . esc_html__( 'True/False return for child theme active check (Blank indicates False).', 'your-textdomain-here' ),
367
-				'type'       => 'raw',
368
-				'full_width' => false,
369
-			),
370
-		),
371
-	)
17
+    $opt_name,
18
+    array(
19
+        'customizer' => false,
20
+        'title'      => esc_html__( 'Shortcodes', 'your-textdomain-here' ),
21
+        'desc'       => $example . esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/shortcodes.html" target="_blank">https://devs.redux.io/extensions/shortcodes.html</a>',
22
+        'subsection' => true,
23
+        'fields'     => array(
24
+            array(
25
+                'id'         => 'sc-bloginfo',
26
+                'title'      => esc_html__( '[bloginfo data="name"]', 'your-textdomain-here' ),
27
+                'subtitle'   => $function . '<code>get_bloginfo("name")</code>',
28
+                'desc'       => $example . esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
29
+                'type'       => 'raw',
30
+                'full_width' => false,
31
+            ),
32
+            array(
33
+                'id'         => 'sc-description',
34
+                'title'      => esc_html__( '[bloginfo data="description"]', 'your-textdomain-here' ),
35
+                'subtitle'   => $function . '<code>get_bloginfo("description")</code>',
36
+                'desc'       => $example . esc_html__( 'Displays the "Tagline" set in Settings > General. This data is retrieved from the "blogdescription" record in the wp_options table.', 'your-textdomain-here' ),
37
+                'type'       => 'raw',
38
+                'full_width' => false,
39
+            ),
40
+            array(
41
+                'id'         => 'sc-wpurl',
42
+                'title'      => esc_html__( '[bloginfo data="wpurl"]', 'your-textdomain-here' ),
43
+                'subtitle'   => $function . '<code>get_bloginfo("wpurl")</code>',
44
+                'desc'       => $example . esc_html__( 'Displays the "WordPress address (URL)" set in Settings > General. This data is retrieved from the "siteurl" record in the wp_options table. Consider using *root_url* instead, especially for multi-site configurations using paths instead of subdomains (it will return the root site not the current sub-site).', 'your-textdomain-here' ),
45
+                'type'       => 'raw',
46
+                'markdown'   => true,
47
+                'full_width' => false,
48
+            ),
49
+            array(
50
+                'id'         => 'sc-rooturl',
51
+                'title'      => esc_html__( '[bloginfo data="root_url"]', 'your-textdomain-here' ),
52
+                'subtitle'   => $function . '<code>site_url()</code>',
53
+                'desc'       => $example . esc_html__( 'Return the root site, not the current sub-site.', 'your-textdomain-here' ),
54
+                'type'       => 'raw',
55
+                'full_width' => false,
56
+            ),
57
+            array(
58
+                'id'         => 'sc-url',
59
+                'title'      => esc_html__( '[bloginfo data="url"]', 'your-textdomain-here' ),
60
+                'subtitle'   => $function . '<code>home_url()</code>',
61
+                'desc'       => $example . esc_html__( 'Displays the "Site address (URL)" set in Settings > General. This data is retrieved from the "home" record in the wp_options table.', 'your-textdomain-here' ),
62
+                'type'       => 'raw',
63
+                'full_width' => false,
64
+            ),
65
+            array(
66
+                'id'         => 'sc-adminemail',
67
+                'title'      => esc_html__( '[bloginfo data="admin_email"]', 'your-textdomain-here' ),
68
+                'subtitle'   => $function . '<code>get_bloginfo("admin_email")</code>',
69
+                'desc'       => $example . esc_html__( 'Displays the "E-mail address" set in Settings > General. This data is retrieved from the "admin_email" record in the wp_options table.', 'your-textdomain-here' ),
70
+                'type'       => 'raw',
71
+                'full_width' => false,
72
+            ),
73
+            array(
74
+                'id'         => 'sc-charset',
75
+                'title'      => esc_html__( '[bloginfo data="charset"]', 'your-textdomain-here' ),
76
+                'subtitle'   => $function . '<code>get_bloginfo("charset")</code>',
77
+                'desc'       => $example . esc_html__( 'Displays the "Encoding for pages and feeds" set in Settings > Reading. This data is retrieved from the "blog_charset" record in the wp_options.', 'your-textdomain-here' ),
78
+                'type'       => 'raw',
79
+                'full_width' => false,
80
+            ),
81
+            array(
82
+                'id'         => 'sc-version',
83
+                'title'      => esc_html__( '[bloginfo data="version"]', 'your-textdomain-here' ),
84
+                'subtitle'   => $function . '<code>get_bloginfo("version")</code>',
85
+                'desc'       => $example . esc_html__( 'Displays the WordPress Version you use. This data is retrieved from the $wp_version variable set in wp-includes/version.php.', 'your-textdomain-here' ),
86
+                'type'       => 'raw',
87
+                'full_width' => false,
88
+            ),
89
+            array(
90
+                'id'         => 'sc-htmltype',
91
+                'title'      => esc_html__( '[bloginfo data="html_type"]', 'your-textdomain-here' ),
92
+                'subtitle'   => $function . '<code>get_bloginfo("html_type")</code>',
93
+                'desc'       => $example . esc_html__( 'Displays the Content-Type of WordPress HTML pages (default: "text/html"). This data is retrieved from the "html_type" record in the wp_options table. Themes and plugins can override the default value using the pre_option_html_type filter.', 'your-textdomain-here' ),
94
+                'type'       => 'raw',
95
+                'full_width' => false,
96
+            ),
97
+            array(
98
+                'id'         => 'sc-multi',
99
+                'title'      => esc_html__( '[bloginfo data="is_multisite"]', 'your-textdomain-here' ),
100
+                'subtitle'   => $function . '<code>is_multisite()</code>',
101
+                'desc'       => $example . esc_html__( 'Displays true/false check if WordPress is running in multisite mode.', 'your-textdomain-here' ),
102
+                'type'       => 'raw',
103
+                'full_width' => false,
104
+            ),
105
+            array(
106
+                'id'         => 'sc-rtl',
107
+                'title'      => esc_html__( '[bloginfo data="text_direction"]', 'your-textdomain-here' ),
108
+                'subtitle'   => $function . '<code>is_rtl()</code>',
109
+                'desc'       => $example . esc_html__( 'Displays true/false check if the Text Direction of WordPress HTML pages is left instead of right.', 'your-textdomain-here' ),
110
+                'type'       => 'raw',
111
+                'full_width' => false,
112
+            ),
113
+            array(
114
+                'id'         => 'sc-lang',
115
+                'title'      => esc_html__( '[bloginfo data="language"]', 'your-textdomain-here' ),
116
+                'subtitle'   => $function . '<code>get_bloginfo("language")</code>',
117
+                'desc'       => $example . esc_html__( 'Displays the language of WordPress.', 'your-textdomain-here' ),
118
+                'type'       => 'raw',
119
+                'full_width' => false,
120
+            ),
121
+            array(
122
+                'id'         => 'sc-stylesheet-url',
123
+                'title'      => esc_html__( '[bloginfo data="stylesheet_url"]', 'your-textdomain-here' ),
124
+                'subtitle'   => $function . '<code>get_stylesheet_uri()</code>',
125
+                'desc'       => $example . esc_html__( 'Displays the primary CSS (usually style.css) file URL of the active theme.', 'your-textdomain-here' ),
126
+                'type'       => 'raw',
127
+                'full_width' => false,
128
+            ),
129
+            array(
130
+                'id'         => 'sc-stylesheet-dir',
131
+                'title'      => esc_html__( '[bloginfo data="stylesheet_directory"]', 'your-textdomain-here' ),
132
+                'subtitle'   => $function . '<code>get_stylesheet_directory()</code>',
133
+                'desc'       => $example . esc_html__( 'Displays the stylesheet directory of the active theme.', 'your-textdomain-here' ),
134
+                'type'       => 'raw',
135
+                'full_width' => false,
136
+            ),
137
+            array(
138
+                'id'         => 'sc-template-url',
139
+                'title'      => esc_html__( '[bloginfo data="template_url"]', 'your-textdomain-here' ),
140
+                'subtitle'   => $function . '<code>get_template_directory_uri()</code>',
141
+                'desc'       => $example . esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
142
+                'type'       => 'raw',
143
+                'full_width' => false,
144
+            ),
145
+            array(
146
+                'id'         => 'sc-child-template-url',
147
+                'title'      => esc_html__( '[bloginfo data="child_template_url"]', 'your-textdomain-here' ),
148
+                'subtitle'   => $function . '<code>get_stylesheet_directory_uri()</code>',
149
+                'desc'       => $example . esc_html__( 'Child template URI.', 'your-textdomain-here' ),
150
+                'type'       => 'raw',
151
+                'full_width' => false,
152
+            ),
153
+            array(
154
+                'id'         => 'sc-template-dir',
155
+                'title'      => esc_html__( '[bloginfo data="template_directory"]', 'your-textdomain-here' ),
156
+                'subtitle'   => $function . '<code>get_template_directory()</code>',
157
+                'desc'       => $example . esc_html__( 'Template directory.', 'your-textdomain-here' ),
158
+                'type'       => 'raw',
159
+                'full_width' => false,
160
+            ),
161
+            array(
162
+                'id'         => 'sc-child-template-dir',
163
+                'title'      => esc_html__( '[bloginfo data="child_template_directory"]', 'your-textdomain-here' ),
164
+                'subtitle'   => $function . '<code>get_stylesheet_directory()</code>',
165
+                'desc'       => $example . esc_html__( 'Child template Directory.', 'your-textdomain-here' ),
166
+                'type'       => 'raw',
167
+                'full_width' => false,
168
+            ),
169
+            array(
170
+                'id'         => 'sc-pingback-url',
171
+                'title'      => esc_html__( '[bloginfo data="pingback_url"]', 'your-textdomain-here' ),
172
+                'subtitle'   => $function . '<code>get_bloginfo("pingback_url")</code>',
173
+                'desc'       => $example . esc_html__( 'Displays the Pingback XML-RPC file URL (xmlrpc.php).', 'your-textdomain-here' ),
174
+                'type'       => 'raw',
175
+                'full_width' => false,
176
+            ),
177
+            array(
178
+                'id'         => 'sc-atom-url',
179
+                'title'      => esc_html__( '[bloginfo data="atom_url"]', 'your-textdomain-here' ),
180
+                'subtitle'   => $function . '<code>get_bloginfo("atom_url")</code>',
181
+                'desc'       => $example . esc_html__( 'Displays the Atom feed URL (/feed/atom).', 'your-textdomain-here' ),
182
+                'type'       => 'raw',
183
+                'full_width' => false,
184
+            ),
185
+            array(
186
+                'id'         => 'sc-rdf-url',
187
+                'title'      => esc_html__( '[bloginfo data="rdf_url"]', 'your-textdomain-here' ),
188
+                'subtitle'   => $function . '<code>get_bloginfo("rdf_url")</code>',
189
+                'desc'       => $example . esc_html__( 'Displays the RDF/RSS 1.0 feed URL (/feed/rfd).', 'your-textdomain-here' ),
190
+                'type'       => 'raw',
191
+                'full_width' => false,
192
+            ),
193
+            array(
194
+                'id'         => 'sc-rss-url',
195
+                'title'      => esc_html__( '[bloginfo data="rss_url"]', 'your-textdomain-here' ),
196
+                'subtitle'   => $function . '<code>get_bloginfo("rss_url")</code>',
197
+                'desc'       => $example . esc_html__( 'Displays the RSS 0.92 feed URL (/feed/rss).', 'your-textdomain-here' ),
198
+                'type'       => 'raw',
199
+                'full_width' => false,
200
+            ),
201
+            array(
202
+                'id'         => 'sc-rss2-url',
203
+                'title'      => esc_html__( '[bloginfo data="rss2_url"]', 'your-textdomain-here' ),
204
+                'subtitle'   => $function . '<code>get_bloginfo("rss2_url")</code>',
205
+                'desc'       => $example . esc_html__( 'Displays the RSS 2.0 feed URL (/feed).', 'your-textdomain-here' ),
206
+                'type'       => 'raw',
207
+                'full_width' => false,
208
+            ),
209
+            array(
210
+                'id'         => 'sc-comments-atom-url',
211
+                'title'      => esc_html__( '[bloginfo data="comments_atom_url"]', 'your-textdomain-here' ),
212
+                'subtitle'   => $function . '<code>get_bloginfo("comments_atom_url")</code>',
213
+                'desc'       => $example . esc_html__( 'Displays the comments Atom feed URL (/comments/feed).', 'your-textdomain-here' ),
214
+                'type'       => 'raw',
215
+                'full_width' => false,
216
+            ),
217
+            array(
218
+                'id'         => 'sc-comments-rss2-url',
219
+                'title'      => esc_html__( '[bloginfo data="comments_rss2_url"]', 'your-textdomain-here' ),
220
+                'subtitle'   => $function . '<code>get_bloginfo("comments_rss2_url")</code>',
221
+                'desc'       => $example . esc_html__( 'Displays the comments RSS 2.0 feed URL (/comments/feed).', 'your-textdomain-here' ),
222
+                'type'       => 'raw',
223
+                'full_width' => false,
224
+            ),
225
+            array(
226
+                'id'         => 'sc-login-url',
227
+                'title'      => esc_html__( '[bloginfo data="login_url"]', 'your-textdomain-here' ),
228
+                'subtitle'   => $function . '<code>wp_login_url()</code>',
229
+                'desc'       => $example . esc_html__( 'Returns the WordPress login URL.', 'your-textdomain-here' ),
230
+                'type'       => 'raw',
231
+                'full_width' => false,
232
+            ),
233
+            array(
234
+                'id'         => 'sc-logout-url',
235
+                'title'      => esc_html__( '[bloginfo data="logout_url"]', 'your-textdomain-here' ),
236
+                'subtitle'   => $function . '<code>wp_logout_url()</code>',
237
+                'desc'       => $example . esc_html__( 'Returns the WordPress logout URL.', 'your-textdomain-here' ),
238
+                'type'       => 'raw',
239
+                'full_width' => false,
240
+            ),
241
+            array(
242
+                'id'         => 'sc-register-url',
243
+                'title'      => esc_html__( '[bloginfo data="register_url"]', 'your-textdomain-here' ),
244
+                'subtitle'   => $function . '<code>wp_registration_url()</code>',
245
+                'desc'       => $example . esc_html__( 'Returns the WordPress register URL.', 'your-textdomain-here' ),
246
+                'type'       => 'raw',
247
+                'full_width' => false,
248
+            ),
249
+            array(
250
+                'id'         => 'sc-lost-pw-url',
251
+                'title'      => esc_html__( '[bloginfo data="lost_password_url"]', 'your-textdomain-here' ),
252
+                'subtitle'   => $function . '<code>wp_lostpassword_url()</code>',
253
+                'desc'       => $example . esc_html__( 'Returns the WordPress lost password URL.', 'your-textdomain-here' ),
254
+                'type'       => 'raw',
255
+                'full_width' => false,
256
+            ),
257
+            array(
258
+                'id'   => 'opt-divide-1',
259
+                'type' => 'divide',
260
+            ),
261
+            array(
262
+                'id'         => 'sc-date',
263
+                'title'      => esc_html__( '[date data="Y"]', 'your-textdomain-here' ),
264
+                'subtitle'   => $function . '<code>date("Y")</code>',
265
+                // translators: %1$s: PHP Date Format URL.
266
+                'desc'       => $example . sprintf( esc_html__( 'Returns the current year.  Any date format characters as specified by the %1$s may be used.', 'your-textdomain-here' ), '<a href="https://php.net/manual/en/function.date.php" target="_blank">' . esc_html__( 'PHP Date Format Table', 'your-textdomain-here' ) . '</a>' ),
267
+                'type'       => 'raw',
268
+                'full_width' => false,
269
+            ),
270
+            array(
271
+                'id'   => 'opt-divide-2',
272
+                'type' => 'divide',
273
+            ),
274
+            array(
275
+                'id'         => 'sc-theme-name',
276
+                'title'      => esc_html__( '[themeinfo data="name"]', 'your-textdomain-here' ),
277
+                'subtitle'   => $function . '<code>$theme_info->get("Name")</code>',
278
+                'desc'       => $example . esc_html__( 'Theme name as given in theme\'s style.css.', 'your-textdomain-here' ),
279
+                'type'       => 'raw',
280
+                'full_width' => false,
281
+            ),
282
+            array(
283
+                'id'         => 'sc-theme-uri',
284
+                'title'      => esc_html__( '[themeinfo data="theme_uri"]', 'your-textdomain-here' ),
285
+                'subtitle'   => $function . '<code>$theme_info->get("ThemeURI")</code>',
286
+                'desc'       => $example . esc_html__( 'The URL to the theme\'s directory.', 'your-textdomain-here' ),
287
+                'type'       => 'raw',
288
+                'full_width' => false,
289
+            ),
290
+            array(
291
+                'id'         => 'sc-theme-desc',
292
+                'title'      => esc_html__( '[themeinfo data="description"]', 'your-textdomain-here' ),
293
+                'subtitle'   => $function . '<code>$theme_info->get("Description")</code>',
294
+                'desc'       => $example . esc_html__( 'The description of the theme.', 'your-textdomain-here' ),
295
+                'type'       => 'raw',
296
+                'full_width' => false,
297
+            ),
298
+            array(
299
+                'id'         => 'sc-theme-author',
300
+                'title'      => esc_html__( '[themeinfo data="author"]', 'your-textdomain-here' ),
301
+                'subtitle'   => $function . '<code>$theme_info->get("Author")</code>',
302
+                'desc'       => $example . esc_html__( 'The theme\'s author.', 'your-textdomain-here' ),
303
+                'type'       => 'raw',
304
+                'full_width' => false,
305
+            ),
306
+            array(
307
+                'id'         => 'sc-theme-author-uri',
308
+                'title'      => esc_html__( '[themeinfo data="author_uri"]', 'your-textdomain-here' ),
309
+                'subtitle'   => $function . '<code>$theme_info->get("AuthorURI")</code>',
310
+                'desc'       => $example . esc_html__( 'The website of the theme author.', 'your-textdomain-here' ),
311
+                'type'       => 'raw',
312
+                'full_width' => false,
313
+            ),
314
+            array(
315
+                'id'         => 'sc-theme-version',
316
+                'title'      => esc_html__( '[themeinfo data="version"]', 'your-textdomain-here' ),
317
+                'subtitle'   => $function . '<code>$theme_info->get("Version")</code>',
318
+                'desc'       => $example . esc_html__( 'The version of the theme.', 'your-textdomain-here' ),
319
+                'type'       => 'raw',
320
+                'full_width' => false,
321
+            ),
322
+            array(
323
+                'id'         => 'sc-theme-template',
324
+                'title'      => esc_html__( '[themeinfo data="template"]', 'your-textdomain-here' ),
325
+                'subtitle'   => $function . '<code>$theme_info->get("Template")</code>',
326
+                'desc'       => $example . esc_html__( 'The folder name of the current theme.', 'your-textdomain-here' ),
327
+                'type'       => 'raw',
328
+                'full_width' => false,
329
+            ),
330
+            array(
331
+                'id'         => 'sc-theme-status',
332
+                'title'      => esc_html__( '[themeinfo data="status"]', 'your-textdomain-here' ),
333
+                'subtitle'   => $function . '<code>$theme_info->get("Status")</code>',
334
+                'desc'       => $example . esc_html__( 'If the theme is published.', 'your-textdomain-here' ),
335
+                'type'       => 'raw',
336
+                'full_width' => false,
337
+            ),
338
+            array(
339
+                'id'         => 'sc-theme-tags',
340
+                'title'      => esc_html__( '[themeinfo data="tags"]', 'your-textdomain-here' ),
341
+                'subtitle'   => $function . '<code>$theme_info->get("Tags")</code>',
342
+                'desc'       => $example . esc_html__( 'Tags used to describe the theme.', 'your-textdomain-here' ),
343
+                'type'       => 'raw',
344
+                'full_width' => false,
345
+            ),
346
+            array(
347
+                'id'         => 'sc-theme-text-domain',
348
+                'title'      => esc_html__( '[themeinfo data="text_domain"]', 'your-textdomain-here' ),
349
+                'subtitle'   => $function . '<code>$theme_info->get("TextDomain")</code>',
350
+                'desc'       => $example . esc_html__( 'The text domain used in the theme for translation purposes.', 'your-textdomain-here' ),
351
+                'type'       => 'raw',
352
+                'full_width' => false,
353
+            ),
354
+            array(
355
+                'id'         => 'sc-theme-domain-path',
356
+                'title'      => esc_html__( '[themeinfo data="domain_path"]', 'your-textdomain-here' ),
357
+                'subtitle'   => $function . '<code>$theme_info->get("DomainPath")</code>',
358
+                'desc'       => $example . esc_html__( 'Path to the theme translation files.', 'your-textdomain-here' ),
359
+                'type'       => 'raw',
360
+                'full_width' => false,
361
+            ),
362
+            array(
363
+                'id'         => 'sc-theme-is-child',
364
+                'title'      => esc_html__( '[themeinfo data="is_child"]', 'your-textdomain-here' ),
365
+                'subtitle'   => $function . '<code>is_child_theme()</code>',
366
+                'desc'       => $example . esc_html__( 'True/False return for child theme active check (Blank indicates False).', 'your-textdomain-here' ),
367
+                'type'       => 'raw',
368
+                'full_width' => false,
369
+            ),
370
+        ),
371
+    )
372 372
 );
373 373
 // phpcs:enable
Please login to merge, or discard this patch.