Completed
Push — master ( 7388a0...c197b7 )
by
unknown
45s
created
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.
sample/sections/extensions/social-profiles.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,22 +10,22 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'            => esc_html__( 'Social Profiles', '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/social-profiles.html" target="_blank">https://devs.redux.io/core-extensions/social-profiles.html</a>',
17
-		'subtitle'         => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
18
-		'subsection'       => true,
19
-		'customizer_width' => '350px',
20
-		'fields'           => array(
21
-			array(
22
-				'id'              => 'opt-social-profiles',
23
-				'type'            => 'social_profiles',
24
-				'title'           => esc_html__( 'Social Profiles', 'your-textdomain-here' ),
25
-				'subtitle'        => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
26
-				'hide_widget_msg' => true,
27
-			),
28
-		),
29
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'            => esc_html__( 'Social Profiles', '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/social-profiles.html" target="_blank">https://devs.redux.io/core-extensions/social-profiles.html</a>',
17
+        'subtitle'         => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
18
+        'subsection'       => true,
19
+        'customizer_width' => '350px',
20
+        'fields'           => array(
21
+            array(
22
+                'id'              => 'opt-social-profiles',
23
+                'type'            => 'social_profiles',
24
+                'title'           => esc_html__( 'Social Profiles', 'your-textdomain-here' ),
25
+                'subtitle'        => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
26
+                'hide_widget_msg' => true,
27
+            ),
28
+        ),
29
+    )
30 30
 );
31 31
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/js-button.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -10,46 +10,46 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'JS Button', '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/js-button.html" target="_blank">https://devs.redux.io/core-extensions/js-button.html</a>',
17
-		'subsection' => true,
18
-		'fields'     => array(
19
-			array(
20
-				'id'       => 'opt-js-button',
21
-				'type'     => 'js_button',
22
-				'title'    => esc_html__( 'JS Button', 'your-textdomain-here' ),
23
-				'subtitle' => esc_html__( 'Run javascript in the options panel from button clicks.', 'your-textdomain-here' ),
24
-				'desc'     => esc_html__( 'Click the Add Date button to add the current date into the text field below.', 'your-textdomain-here' ),
25
-				'script'   => array(
26
-					'url'       => plugins_url( '/extensions/js-button.js', __DIR__ ),
27
-					'dir'       => __DIR__ . '/js-button.js',
28
-					'dep'       => array( 'jquery' ),
29
-					'ver'       => time(),
30
-					'in_footer' => true,
31
-				),
32
-				'buttons'  => array(
33
-					array(
34
-						'text'     => esc_html__( 'Add Date', 'your-textdomain-here' ),
35
-						'class'    => 'button-primary',
36
-						'function' => 'redux_add_date',
37
-					),
38
-					array(
39
-						'text'     => esc_html__( 'Alert', 'your-textdomain-here' ),
40
-						'class'    => 'button-secondary',
41
-						'function' => 'redux_show_alert',
42
-					),
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'JS Button', '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/js-button.html" target="_blank">https://devs.redux.io/core-extensions/js-button.html</a>',
17
+        'subsection' => true,
18
+        'fields'     => array(
19
+            array(
20
+                'id'       => 'opt-js-button',
21
+                'type'     => 'js_button',
22
+                'title'    => esc_html__( 'JS Button', 'your-textdomain-here' ),
23
+                'subtitle' => esc_html__( 'Run javascript in the options panel from button clicks.', 'your-textdomain-here' ),
24
+                'desc'     => esc_html__( 'Click the Add Date button to add the current date into the text field below.', 'your-textdomain-here' ),
25
+                'script'   => array(
26
+                    'url'       => plugins_url( '/extensions/js-button.js', __DIR__ ),
27
+                    'dir'       => __DIR__ . '/js-button.js',
28
+                    'dep'       => array( 'jquery' ),
29
+                    'ver'       => time(),
30
+                    'in_footer' => true,
31
+                ),
32
+                'buttons'  => array(
33
+                    array(
34
+                        'text'     => esc_html__( 'Add Date', 'your-textdomain-here' ),
35
+                        'class'    => 'button-primary',
36
+                        'function' => 'redux_add_date',
37
+                    ),
38
+                    array(
39
+                        'text'     => esc_html__( 'Alert', 'your-textdomain-here' ),
40
+                        'class'    => 'button-secondary',
41
+                        'function' => 'redux_show_alert',
42
+                    ),
43 43
 
44
-				),
45
-			),
46
-			array(
47
-				'id'       => 'opt-blank-text',
48
-				'type'     => 'text',
49
-				'title'    => esc_html__( 'Date', 'your-textdomain-here' ),
50
-				'subtitle' => esc_html__( 'Click the Add Date button above to fill out this field.', 'your-textdomain-here' ),
51
-			),
52
-		),
53
-	)
44
+                ),
45
+            ),
46
+            array(
47
+                'id'       => 'opt-blank-text',
48
+                'type'     => 'text',
49
+                'title'    => esc_html__( 'Date', 'your-textdomain-here' ),
50
+                'subtitle' => esc_html__( 'Click the Add Date button above to fill out this field.', 'your-textdomain-here' ),
51
+            ),
52
+        ),
53
+    )
54 54
 );
55 55
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/extensions/custom-fonts.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -11,27 +11,27 @@
 block discarded – undo
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13 13
 Redux::set_section(
14
-	$opt_name,
15
-	array(
16
-		'title'      => esc_html__( 'Custom Fonts', '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/custom-fonts.html" target="_blank">https://devs.redux.io/core-extensions/custom-fonts.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'   => 'custom_fonts',
22
-				'type' => 'custom_fonts',
23
-			),
24
-			array(
25
-				'id'          => 'custom_fonts_typography',
26
-				'type'        => 'typography',
27
-				'title'       => esc_html__( 'Custom Fonts Typography', 'your-textdomain-here' ),
28
-				'subtitle'    => 'This will modify the font family of the .entry-title classes.',
29
-				'output'      => '.site-title, .widget-title, .entry-title, .wp-block-site-title',
30
-				'font-size'   => false,
31
-				'line-height' => false,
32
-				'text-align'  => false,
33
-			),
34
-		),
35
-	)
14
+    $opt_name,
15
+    array(
16
+        'title'      => esc_html__( 'Custom Fonts', '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/custom-fonts.html" target="_blank">https://devs.redux.io/core-extensions/custom-fonts.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'   => 'custom_fonts',
22
+                'type' => 'custom_fonts',
23
+            ),
24
+            array(
25
+                'id'          => 'custom_fonts_typography',
26
+                'type'        => 'typography',
27
+                'title'       => esc_html__( 'Custom Fonts Typography', 'your-textdomain-here' ),
28
+                'subtitle'    => 'This will modify the font family of the .entry-title classes.',
29
+                'output'      => '.site-title, .widget-title, .entry-title, .wp-block-site-title',
30
+                'font-size'   => false,
31
+                'line-height' => false,
32
+                'text-align'  => false,
33
+            ),
34
+        ),
35
+    )
36 36
 );
37 37
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/advanced-features/field-required-linking.php 1 patch
Indentation   +106 added lines, -106 removed lines patch added patch discarded remove patch
@@ -10,111 +10,111 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Field Required / Linking', 'your-textdomain-here' ),
16
-		'id'         => 'required',
17
-		'desc'       => esc_html__( 'For full documentation on validation, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/required.html" target="_blank">https://devs.redux.io/configuration/fields/required.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-required-basic',
22
-				'type'     => 'switch',
23
-				'title'    => esc_html__( 'Basic Required Example', 'your-textdomain-here' ),
24
-				'subtitle' => wp_kses_post( __( 'Click <code>On</code> to see the text field appear.', 'your-textdomain-here' ) ),
25
-				'default'  => false,
26
-			),
27
-			array(
28
-				'id'       => 'opt-required-basic-text',
29
-				'type'     => 'text',
30
-				'title'    => esc_html__( 'Basic Text Field', 'your-textdomain-here' ),
31
-				'subtitle' => wp_kses_post( __( 'This text field is only show when the above switch is set to <code>On</code>, using the <code>required</code> argument.', 'your-textdomain-here' ) ),
32
-				'required' => array( 'opt-required-basic', '=', true ),
33
-			),
34
-			array(
35
-				'id'   => 'opt-required-divide-1',
36
-				'type' => 'divide',
37
-			),
38
-			array(
39
-				'id'       => 'opt-required-nested',
40
-				'type'     => 'switch',
41
-				'title'    => esc_html__( 'Nested Required Example', 'your-textdomain-here' ),
42
-				'subtitle' => wp_kses_post( __( 'Click <code>On</code> to see another set of options appear.', 'your-textdomain-here' ) ),
43
-				'default'  => false,
44
-			),
45
-			array(
46
-				'id'       => 'opt-required-nested-buttonset',
47
-				'type'     => 'button_set',
48
-				'title'    => esc_html__( 'Multiple Nested Required Examples', 'your-textdomain-here' ),
49
-				'subtitle' => wp_kses_post( __( 'Click any button to show different fields based on their <code>required</code> statements.', 'your-textdomain-here' ) ),
50
-				'options'  => array(
51
-					'button-text'     => esc_html__( 'Show Text Field', 'your-textdomain-here' ),
52
-					'button-textarea' => esc_html__( 'Show Textarea Field', 'your-textdomain-here' ),
53
-					'button-editor'   => esc_html__( 'Show WP Editor', 'your-textdomain-here' ),
54
-					'button-ace'      => esc_html__( 'Show ACE Editor', 'your-textdomain-here' ),
55
-				),
56
-				'required' => array( 'opt-required-nested', '=', true ),
57
-				'default'  => 'button-text',
58
-			),
59
-			array(
60
-				'id'       => 'opt-required-nested-text',
61
-				'type'     => 'text',
62
-				'title'    => esc_html__( 'Nested Text Field', 'your-textdomain-here' ),
63
-				'required' => array( 'opt-required-nested-buttonset', '=', 'button-text' ),
64
-			),
65
-			array(
66
-				'id'       => 'opt-required-nested-textarea',
67
-				'type'     => 'textarea',
68
-				'title'    => esc_html__( 'Nested Textarea Field', 'your-textdomain-here' ),
69
-				'required' => array( 'opt-required-nested-buttonset', '=', 'button-textarea' ),
70
-			),
71
-			array(
72
-				'id'       => 'opt-required-nested-editor',
73
-				'type'     => 'editor',
74
-				'title'    => esc_html__( 'Nested Editor Field', 'your-textdomain-here' ),
75
-				'required' => array( 'opt-required-nested-buttonset', '=', 'button-editor' ),
76
-			),
77
-			array(
78
-				'id'       => 'opt-required-nested-ace',
79
-				'type'     => 'ace_editor',
80
-				'title'    => esc_html__( 'Nested ACE Editor Field', 'your-textdomain-here' ),
81
-				'required' => array( 'opt-required-nested-buttonset', '=', 'button-ace' ),
82
-			),
83
-			array(
84
-				'id'   => 'opt-required-divide-2',
85
-				'type' => 'divide',
86
-			),
87
-			array(
88
-				'id'       => 'opt-required-select',
89
-				'type'     => 'select',
90
-				'title'    => esc_html__( 'Select Required Example', 'your-textdomain-here' ),
91
-				'subtitle' => esc_html__( 'Select a different option to display its value.  Required may be used to display multiple & reusable fields', 'your-textdomain-here' ),
92
-				'options'  => array(
93
-					'no-sidebar'    => esc_html__( 'No Sidebars', 'your-textdomain-here' ),
94
-					'left-sidebar'  => esc_html__( 'Left Sidebar', 'your-textdomain-here' ),
95
-					'right-sidebar' => esc_html__( 'Right Sidebar', 'your-textdomain-here' ),
96
-					'both-sidebars' => esc_html__( 'Both Sidebars', 'your-textdomain-here' ),
97
-				),
98
-				'default'  => 'no-sidebar',
99
-				'select2'  => array( 'allowClear' => false ),
100
-			),
101
-			array(
102
-				'id'       => 'opt-required-select-left-sidebar',
103
-				'type'     => 'select',
104
-				'title'    => esc_html__( 'Select Left Sidebar', 'your-textdomain-here' ),
105
-				'data'     => 'sidebars',
106
-				'default'  => '',
107
-				'required' => array( 'opt-required-select', '=', array( 'left-sidebar', 'both-sidebars' ) ),
108
-			),
109
-			array(
110
-				'id'       => 'opt-required-select-right-sidebar',
111
-				'type'     => 'select',
112
-				'title'    => esc_html__( 'Select Right Sidebar', 'your-textdomain-here' ),
113
-				'data'     => 'sidebars',
114
-				'default'  => '',
115
-				'required' => array( 'opt-required-select', '=', array( 'right-sidebar', 'both-sidebars' ) ),
116
-			),
117
-		),
118
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Field Required / Linking', 'your-textdomain-here' ),
16
+        'id'         => 'required',
17
+        'desc'       => esc_html__( 'For full documentation on validation, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/required.html" target="_blank">https://devs.redux.io/configuration/fields/required.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-required-basic',
22
+                'type'     => 'switch',
23
+                'title'    => esc_html__( 'Basic Required Example', 'your-textdomain-here' ),
24
+                'subtitle' => wp_kses_post( __( 'Click <code>On</code> to see the text field appear.', 'your-textdomain-here' ) ),
25
+                'default'  => false,
26
+            ),
27
+            array(
28
+                'id'       => 'opt-required-basic-text',
29
+                'type'     => 'text',
30
+                'title'    => esc_html__( 'Basic Text Field', 'your-textdomain-here' ),
31
+                'subtitle' => wp_kses_post( __( 'This text field is only show when the above switch is set to <code>On</code>, using the <code>required</code> argument.', 'your-textdomain-here' ) ),
32
+                'required' => array( 'opt-required-basic', '=', true ),
33
+            ),
34
+            array(
35
+                'id'   => 'opt-required-divide-1',
36
+                'type' => 'divide',
37
+            ),
38
+            array(
39
+                'id'       => 'opt-required-nested',
40
+                'type'     => 'switch',
41
+                'title'    => esc_html__( 'Nested Required Example', 'your-textdomain-here' ),
42
+                'subtitle' => wp_kses_post( __( 'Click <code>On</code> to see another set of options appear.', 'your-textdomain-here' ) ),
43
+                'default'  => false,
44
+            ),
45
+            array(
46
+                'id'       => 'opt-required-nested-buttonset',
47
+                'type'     => 'button_set',
48
+                'title'    => esc_html__( 'Multiple Nested Required Examples', 'your-textdomain-here' ),
49
+                'subtitle' => wp_kses_post( __( 'Click any button to show different fields based on their <code>required</code> statements.', 'your-textdomain-here' ) ),
50
+                'options'  => array(
51
+                    'button-text'     => esc_html__( 'Show Text Field', 'your-textdomain-here' ),
52
+                    'button-textarea' => esc_html__( 'Show Textarea Field', 'your-textdomain-here' ),
53
+                    'button-editor'   => esc_html__( 'Show WP Editor', 'your-textdomain-here' ),
54
+                    'button-ace'      => esc_html__( 'Show ACE Editor', 'your-textdomain-here' ),
55
+                ),
56
+                'required' => array( 'opt-required-nested', '=', true ),
57
+                'default'  => 'button-text',
58
+            ),
59
+            array(
60
+                'id'       => 'opt-required-nested-text',
61
+                'type'     => 'text',
62
+                'title'    => esc_html__( 'Nested Text Field', 'your-textdomain-here' ),
63
+                'required' => array( 'opt-required-nested-buttonset', '=', 'button-text' ),
64
+            ),
65
+            array(
66
+                'id'       => 'opt-required-nested-textarea',
67
+                'type'     => 'textarea',
68
+                'title'    => esc_html__( 'Nested Textarea Field', 'your-textdomain-here' ),
69
+                'required' => array( 'opt-required-nested-buttonset', '=', 'button-textarea' ),
70
+            ),
71
+            array(
72
+                'id'       => 'opt-required-nested-editor',
73
+                'type'     => 'editor',
74
+                'title'    => esc_html__( 'Nested Editor Field', 'your-textdomain-here' ),
75
+                'required' => array( 'opt-required-nested-buttonset', '=', 'button-editor' ),
76
+            ),
77
+            array(
78
+                'id'       => 'opt-required-nested-ace',
79
+                'type'     => 'ace_editor',
80
+                'title'    => esc_html__( 'Nested ACE Editor Field', 'your-textdomain-here' ),
81
+                'required' => array( 'opt-required-nested-buttonset', '=', 'button-ace' ),
82
+            ),
83
+            array(
84
+                'id'   => 'opt-required-divide-2',
85
+                'type' => 'divide',
86
+            ),
87
+            array(
88
+                'id'       => 'opt-required-select',
89
+                'type'     => 'select',
90
+                'title'    => esc_html__( 'Select Required Example', 'your-textdomain-here' ),
91
+                'subtitle' => esc_html__( 'Select a different option to display its value.  Required may be used to display multiple & reusable fields', 'your-textdomain-here' ),
92
+                'options'  => array(
93
+                    'no-sidebar'    => esc_html__( 'No Sidebars', 'your-textdomain-here' ),
94
+                    'left-sidebar'  => esc_html__( 'Left Sidebar', 'your-textdomain-here' ),
95
+                    'right-sidebar' => esc_html__( 'Right Sidebar', 'your-textdomain-here' ),
96
+                    'both-sidebars' => esc_html__( 'Both Sidebars', 'your-textdomain-here' ),
97
+                ),
98
+                'default'  => 'no-sidebar',
99
+                'select2'  => array( 'allowClear' => false ),
100
+            ),
101
+            array(
102
+                'id'       => 'opt-required-select-left-sidebar',
103
+                'type'     => 'select',
104
+                'title'    => esc_html__( 'Select Left Sidebar', 'your-textdomain-here' ),
105
+                'data'     => 'sidebars',
106
+                'default'  => '',
107
+                'required' => array( 'opt-required-select', '=', array( 'left-sidebar', 'both-sidebars' ) ),
108
+            ),
109
+            array(
110
+                'id'       => 'opt-required-select-right-sidebar',
111
+                'type'     => 'select',
112
+                'title'    => esc_html__( 'Select Right Sidebar', 'your-textdomain-here' ),
113
+                'data'     => 'sidebars',
114
+                'default'  => '',
115
+                'required' => array( 'opt-required-select', '=', array( 'right-sidebar', 'both-sidebars' ) ),
116
+            ),
117
+        ),
118
+    )
119 119
 );
120 120
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/advanced-features/wpml-integration.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,30 +10,30 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'WPML Integration', 'your-textdomain-here' ),
16
-		'desc'       => esc_html__( 'These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement. For extra details look at our WPML Implementation documentation: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/guides/advanced/wpml-integration.html" target="_blank" >https://devs.redux.io/guides/advanced/wpml-integration.html</a>',
17
-		'subsection' => true,
18
-		'fields'     => array(
19
-			array(
20
-				'id'    => 'wpml-text',
21
-				'type'  => 'textarea',
22
-				'title' => esc_html__( 'WPML Text', 'your-textdomain-here' ),
23
-				'desc'  => esc_html__( 'This string can be translated via WPML.', 'your-textdomain-here' ),
24
-			),
25
-			array(
26
-				'id'      => 'wpml-multicheck',
27
-				'type'    => 'checkbox',
28
-				'title'   => esc_html__( 'WPML Multi Checkbox', 'your-textdomain-here' ),
29
-				'desc'    => esc_html__( 'You can literally translate the values via key.', 'your-textdomain-here' ),
30
-				'options' => array(
31
-					'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
32
-					'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
33
-					'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
34
-				),
35
-			),
36
-		),
37
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'WPML Integration', 'your-textdomain-here' ),
16
+        'desc'       => esc_html__( 'These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement. For extra details look at our WPML Implementation documentation: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/guides/advanced/wpml-integration.html" target="_blank" >https://devs.redux.io/guides/advanced/wpml-integration.html</a>',
17
+        'subsection' => true,
18
+        'fields'     => array(
19
+            array(
20
+                'id'    => 'wpml-text',
21
+                'type'  => 'textarea',
22
+                'title' => esc_html__( 'WPML Text', 'your-textdomain-here' ),
23
+                'desc'  => esc_html__( 'This string can be translated via WPML.', 'your-textdomain-here' ),
24
+            ),
25
+            array(
26
+                'id'      => 'wpml-multicheck',
27
+                'type'    => 'checkbox',
28
+                'title'   => esc_html__( 'WPML Multi Checkbox', 'your-textdomain-here' ),
29
+                'desc'    => esc_html__( 'You can literally translate the values via key.', 'your-textdomain-here' ),
30
+                'options' => array(
31
+                    '1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
32
+                    '2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
33
+                    '3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
34
+                ),
35
+            ),
36
+        ),
37
+    )
38 38
 );
39 39
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/advanced-features/field-sanitizing.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -10,42 +10,42 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Field Sanitizing', 'your-textdomain-here' ),
16
-		'id'         => 'sanitizing',
17
-		// phpcs:ignore
18
-		// 'desc'       => esc_html__( 'For full documentation on sanitizing, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/sanitizing/" target="_blank">https://devs.redux.io/configuration/fields/sanitizing/</a>',
19
-		'subsection' => true,
20
-		'fields'     => array(
21
-			array(
22
-				'id'       => 'opt-text-uppercase',
23
-				'type'     => 'text',
24
-				'title'    => esc_html__( 'Text Option - Force Uppercase', 'your-textdomain-here' ),
25
-				'subtitle' => esc_html__( 'Uses the strtoupper function to force all uppercase characters.', 'your-textdomain-here' ),
26
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27
-				'sanitize' => array( 'strtoupper' ),
28
-				'default'  => 'Force Uppercase',
29
-			),
30
-			array(
31
-				'id'       => 'opt-text-sanitize-title',
32
-				'type'     => 'text',
33
-				'title'    => esc_html__( 'Text Option - Sanitize Title', 'your-textdomain-here' ),
34
-				'subtitle' => esc_html__( 'Uses the WordPress sanitize_title function to format text.', 'your-textdomain-here' ),
35
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
36
-				'sanitize' => array( 'sanitize_title' ),
37
-				'default'  => 'Sanitize This Title',
38
-			),
39
-			array(
40
-				'id'       => 'opt-text-custom-sanitize',
41
-				'type'     => 'text',
42
-				'title'    => esc_html__( 'Text Option - Custom Sanitize', 'your-textdomain-here' ),
43
-				'subtitle' => esc_html__( 'Uses the custom function redux_custom_sanitize to capitalize every other letter.', 'your-textdomain-here' ),
44
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
45
-				'sanitize' => array( 'redux_custom_sanitize' ),
46
-				'default'  => 'Sanitize This Text',
47
-			),
48
-		),
49
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Field Sanitizing', 'your-textdomain-here' ),
16
+        'id'         => 'sanitizing',
17
+        // phpcs:ignore
18
+        // 'desc'       => esc_html__( 'For full documentation on sanitizing, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/sanitizing/" target="_blank">https://devs.redux.io/configuration/fields/sanitizing/</a>',
19
+        'subsection' => true,
20
+        'fields'     => array(
21
+            array(
22
+                'id'       => 'opt-text-uppercase',
23
+                'type'     => 'text',
24
+                'title'    => esc_html__( 'Text Option - Force Uppercase', 'your-textdomain-here' ),
25
+                'subtitle' => esc_html__( 'Uses the strtoupper function to force all uppercase characters.', 'your-textdomain-here' ),
26
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
27
+                'sanitize' => array( 'strtoupper' ),
28
+                'default'  => 'Force Uppercase',
29
+            ),
30
+            array(
31
+                'id'       => 'opt-text-sanitize-title',
32
+                'type'     => 'text',
33
+                'title'    => esc_html__( 'Text Option - Sanitize Title', 'your-textdomain-here' ),
34
+                'subtitle' => esc_html__( 'Uses the WordPress sanitize_title function to format text.', 'your-textdomain-here' ),
35
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
36
+                'sanitize' => array( 'sanitize_title' ),
37
+                'default'  => 'Sanitize This Title',
38
+            ),
39
+            array(
40
+                'id'       => 'opt-text-custom-sanitize',
41
+                'type'     => 'text',
42
+                'title'    => esc_html__( 'Text Option - Custom Sanitize', 'your-textdomain-here' ),
43
+                'subtitle' => esc_html__( 'Uses the custom function redux_custom_sanitize to capitalize every other letter.', 'your-textdomain-here' ),
44
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
45
+                'sanitize' => array( 'redux_custom_sanitize' ),
46
+                'default'  => 'Sanitize This Text',
47
+            ),
48
+        ),
49
+    )
50 50
 );
51 51
 // phpcs:enable
Please login to merge, or discard this patch.