Completed
Push — master ( d80a25...6415e4 )
by
unknown
41s
created
sample/sections/media-uploads/media.php 1 patch
Indentation   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -10,102 +10,102 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Media', 'your-textdomain-here' ),
16
-		'id'         => 'media-media',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/media.html" target="_blank">https://devs.redux.io/core-fields/media.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'           => 'opt-media',
22
-				'type'         => 'media',
23
-				'url'          => true,
24
-				'title'        => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
25
-				'compiler'     => 'true',
26
-				'desc'         => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
27
-				'subtitle'     => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
28
-				'preview_size' => 'full',
29
-			),
30
-			array(
31
-				'id'       => 'media-no-url',
32
-				'type'     => 'media',
33
-				'title'    => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
34
-				'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' ),
35
-				'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
36
-				'url'      => false,
37
-				'preview'  => true,
38
-			),
39
-			array(
40
-				'id'       => 'media-no-preview',
41
-				'type'     => 'media',
42
-				'preview'  => false,
43
-				'title'    => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
44
-				'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' ),
45
-				'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
46
-				'hint'     => array(
47
-					'title'   => esc_html__( 'Test Hint', 'your-textdomain-here' ),
48
-					'content' => wp_kses_post( 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML-based text you like here.' ),
49
-				),
50
-			),
51
-			array(
52
-				'id'         => 'opt-random-upload',
53
-				'type'       => 'media',
54
-				'title'      => esc_html__( 'Upload Anything - Disabled Mode', 'your-textdomain-here' ),
55
-				'full_width' => true,
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Media', 'your-textdomain-here' ),
16
+        'id'         => 'media-media',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/media.html" target="_blank">https://devs.redux.io/core-fields/media.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'           => 'opt-media',
22
+                'type'         => 'media',
23
+                'url'          => true,
24
+                'title'        => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
25
+                'compiler'     => 'true',
26
+                'desc'         => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
27
+                'subtitle'     => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
28
+                'preview_size' => 'full',
29
+            ),
30
+            array(
31
+                'id'       => 'media-no-url',
32
+                'type'     => 'media',
33
+                'title'    => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
34
+                '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' ),
35
+                'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
36
+                'url'      => false,
37
+                'preview'  => true,
38
+            ),
39
+            array(
40
+                'id'       => 'media-no-preview',
41
+                'type'     => 'media',
42
+                'preview'  => false,
43
+                'title'    => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
44
+                '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' ),
45
+                'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
46
+                'hint'     => array(
47
+                    'title'   => esc_html__( 'Test Hint', 'your-textdomain-here' ),
48
+                    'content' => wp_kses_post( 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML-based text you like here.' ),
49
+                ),
50
+            ),
51
+            array(
52
+                'id'         => 'opt-random-upload',
53
+                'type'       => 'media',
54
+                'title'      => esc_html__( 'Upload Anything - Disabled Mode', 'your-textdomain-here' ),
55
+                'full_width' => true,
56 56
 
57
-				// Can be set to false to allow any media type, or can also be set to any mime type.
58
-				'mode'       => false,
57
+                // Can be set to false to allow any media type, or can also be set to any mime type.
58
+                'mode'       => false,
59 59
 
60
-				'desc'       => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
61
-				'subtitle'   => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
62
-			),
63
-			array(
64
-				'id'           => 'opt-media-filter',
65
-				'type'         => 'media',
66
-				'url'          => true,
67
-				'title'        => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
68
-				'compiler'     => true,
69
-				'desc'         => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
70
-				'subtitle'     => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
71
-				'preview_size' => 'full',
72
-				'default'      => array(
73
-					'url'    => 'https://s.wordpress.org/style/images/codeispoetry.png',
74
-					'filter' => array(
75
-						'grayscale' => array(
76
-							'checked' => true,
77
-							'value'   => 50,
78
-						),
79
-					),
80
-				),
81
-				'filter'       => array(
82
-					'grayscale'  => true,
83
-					'blur'       => true,
84
-					'sepia'      => true,
85
-					'saturate'   => true,
86
-					'opacity'    => true,
87
-					'brightness' => true,
88
-					'contrast'   => true,
89
-					'hue-rotate' => true,
90
-					'invert'     => true,
91
-				),
92
-				'output'       => array( '.header-image img, .site-logo, .wp-block-site-logo' ),
93
-			),
94
-			array(
95
-				'id'           => 'media-no-url-filter',
96
-				'type'         => 'media',
97
-				'title'        => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
98
-				'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' ),
99
-				'subtitle'     => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
100
-				'url'          => false,
101
-				'filter'       => array(
102
-					'grayscale' => true,
103
-					'blur'      => true,
104
-				),
105
-				'preview'      => true,
106
-				'preview_size' => 'full',
107
-			),
108
-		),
109
-	)
60
+                'desc'       => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
61
+                'subtitle'   => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
62
+            ),
63
+            array(
64
+                'id'           => 'opt-media-filter',
65
+                'type'         => 'media',
66
+                'url'          => true,
67
+                'title'        => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
68
+                'compiler'     => true,
69
+                'desc'         => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
70
+                'subtitle'     => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
71
+                'preview_size' => 'full',
72
+                'default'      => array(
73
+                    'url'    => 'https://s.wordpress.org/style/images/codeispoetry.png',
74
+                    'filter' => array(
75
+                        'grayscale' => array(
76
+                            'checked' => true,
77
+                            'value'   => 50,
78
+                        ),
79
+                    ),
80
+                ),
81
+                'filter'       => array(
82
+                    'grayscale'  => true,
83
+                    'blur'       => true,
84
+                    'sepia'      => true,
85
+                    'saturate'   => true,
86
+                    'opacity'    => true,
87
+                    'brightness' => true,
88
+                    'contrast'   => true,
89
+                    'hue-rotate' => true,
90
+                    'invert'     => true,
91
+                ),
92
+                'output'       => array( '.header-image img, .site-logo, .wp-block-site-logo' ),
93
+            ),
94
+            array(
95
+                'id'           => 'media-no-url-filter',
96
+                'type'         => 'media',
97
+                'title'        => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
98
+                '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' ),
99
+                'subtitle'     => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
100
+                'url'          => false,
101
+                'filter'       => array(
102
+                    'grayscale' => true,
103
+                    'blur'      => true,
104
+                ),
105
+                'preview'      => true,
106
+                'preview_size' => 'full',
107
+            ),
108
+        ),
109
+    )
110 110
 );
111 111
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/media-uploads/slides.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -10,26 +10,26 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Slides', 'your-textdomain-here' ),
16
-		'id'         => 'additional-slides',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/slides.html" target="_blank">https://devs.redux.io/core-fields/slides.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'          => 'opt-slides',
22
-				'type'        => 'slides',
23
-				'title'       => esc_html__( 'Slides Options', 'your-textdomain-here' ),
24
-				'subtitle'    => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
25
-				'desc'        => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
26
-				'placeholder' => array(
27
-					'title'       => esc_html__( 'This is a title', 'your-textdomain-here' ),
28
-					'description' => esc_html__( 'Description Here', 'your-textdomain-here' ),
29
-					'url'         => esc_html__( 'Give us a link!', 'your-textdomain-here' ),
30
-				),
31
-			),
32
-		),
33
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Slides', 'your-textdomain-here' ),
16
+        'id'         => 'additional-slides',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/slides.html" target="_blank">https://devs.redux.io/core-fields/slides.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'          => 'opt-slides',
22
+                'type'        => 'slides',
23
+                'title'       => esc_html__( 'Slides Options', 'your-textdomain-here' ),
24
+                'subtitle'    => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
25
+                'desc'        => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
26
+                'placeholder' => array(
27
+                    'title'       => esc_html__( 'This is a title', 'your-textdomain-here' ),
28
+                    'description' => esc_html__( 'Description Here', 'your-textdomain-here' ),
29
+                    'url'         => esc_html__( 'Give us a link!', 'your-textdomain-here' ),
30
+                ),
31
+            ),
32
+        ),
33
+    )
34 34
 );
35 35
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/media-uploads/gallery.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Gallery', 'your-textdomain-here' ),
16
-		'id'         => 'media-gallery',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/gallery.html" target="_blank">https://devs.redux.io/core-fields/gallery.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-gallery',
22
-				'type'     => 'gallery',
23
-				'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
25
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26
-			),
27
-		),
28
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Gallery', 'your-textdomain-here' ),
16
+        'id'         => 'media-gallery',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/gallery.html" target="_blank">https://devs.redux.io/core-fields/gallery.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-gallery',
22
+                'type'     => 'gallery',
23
+                'title'    => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
25
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
26
+            ),
27
+        ),
28
+    )
29 29
 );
30 30
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/media-uploads/multi-media.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -11,21 +11,21 @@
 block discarded – undo
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13 13
 Redux::set_section(
14
-	$opt_name,
15
-	array(
16
-		'title'      => esc_html__( 'Multi Media', '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/multi-media.html" target="_blank">https://devs.redux.io/core-extensions/multi-media.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'              => 'opt-multi-media',
22
-				'type'            => 'multi_media',
23
-				'title'           => esc_html__( 'Multi Media Selector', 'your-textdomain-here' ),
24
-				'subtitle'        => esc_html__( 'Alternative media field which allows for multi selections', 'your-textdomain-here' ),
25
-				'desc'            => esc_html__( 'max_file_limit has been set to 5.', 'your-textdomain-here' ),
26
-				'max_file_upload' => 5,
27
-			),
28
-		),
29
-	)
14
+    $opt_name,
15
+    array(
16
+        'title'      => esc_html__( 'Multi Media', '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/multi-media.html" target="_blank">https://devs.redux.io/core-extensions/multi-media.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'              => 'opt-multi-media',
22
+                'type'            => 'multi_media',
23
+                'title'           => esc_html__( 'Multi Media Selector', 'your-textdomain-here' ),
24
+                'subtitle'        => esc_html__( 'Alternative media field which allows for multi selections', 'your-textdomain-here' ),
25
+                'desc'            => esc_html__( 'max_file_limit has been set to 5.', 'your-textdomain-here' ),
26
+                'max_file_upload' => 5,
27
+            ),
28
+        ),
29
+    )
30 30
 );
31 31
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/editors/wordpress-editor.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__( 'WordPress Editor', 'your-textdomain-here' ),
16
-		'id'         => 'editor-wordpress',
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/editor.html" target="_blank">https://devs.redux.io/core-fields/editor.html</a>',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-editor',
22
-				'type'     => 'editor',
23
-				'title'    => esc_html__( 'Editor', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Use any of the features of WordPress editor inside your panel!', 'your-textdomain-here' ),
25
-				'default'  => 'Powered by Redux Framework.',
26
-			),
27
-			array(
28
-				'id'      => 'opt-editor-tiny',
29
-				'type'    => 'editor',
30
-				'title'   => esc_html__( 'Editor w/o Media Button', 'your-textdomain-here' ),
31
-				'default' => 'Powered by Redux Framework.',
32
-				'args'    => array(
33
-					'wpautop'       => false,
34
-					'media_buttons' => false,
35
-					'textarea_rows' => 5,
36
-					'teeny'         => false,
37
-					'quicktags'     => false,
38
-				),
39
-			),
40
-			array(
41
-				'id'         => 'opt-editor-full',
42
-				'type'       => 'editor',
43
-				'title'      => esc_html__( 'Editor - Full Width', 'your-textdomain-here' ),
44
-				'full_width' => true,
45
-			),
46
-		),
47
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'WordPress Editor', 'your-textdomain-here' ),
16
+        'id'         => 'editor-wordpress',
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/editor.html" target="_blank">https://devs.redux.io/core-fields/editor.html</a>',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-editor',
22
+                'type'     => 'editor',
23
+                'title'    => esc_html__( 'Editor', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Use any of the features of WordPress editor inside your panel!', 'your-textdomain-here' ),
25
+                'default'  => 'Powered by Redux Framework.',
26
+            ),
27
+            array(
28
+                'id'      => 'opt-editor-tiny',
29
+                'type'    => 'editor',
30
+                'title'   => esc_html__( 'Editor w/o Media Button', 'your-textdomain-here' ),
31
+                'default' => 'Powered by Redux Framework.',
32
+                'args'    => array(
33
+                    'wpautop'       => false,
34
+                    'media_buttons' => false,
35
+                    'textarea_rows' => 5,
36
+                    'teeny'         => false,
37
+                    'quicktags'     => false,
38
+                ),
39
+            ),
40
+            array(
41
+                'id'         => 'opt-editor-full',
42
+                'type'       => 'editor',
43
+                'title'      => esc_html__( 'Editor - Full Width', 'your-textdomain-here' ),
44
+                'full_width' => true,
45
+            ),
46
+        ),
47
+    )
48 48
 );
49 49
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/editors/ace-editor.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -10,48 +10,48 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'ACE Editor', 'your-textdomain-here' ),
16
-		'id'         => 'editor-ace',
17
-		'subsection' => true,
18
-		'desc'       => esc_html__( 'For full documentation on the this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/ace-editor.html" target="_blank">https://devs.redux.io/core-fields/ace-editor.html</a>',
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-ace-editor-css',
22
-				'type'     => 'ace_editor',
23
-				'title'    => esc_html__( 'CSS Code', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Paste your CSS code here.', 'your-textdomain-here' ),
25
-				'mode'     => 'css',
26
-				'theme'    => 'monokai',
27
-				'desc'     => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
28
-				'default'  => '#header{
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'ACE Editor', 'your-textdomain-here' ),
16
+        'id'         => 'editor-ace',
17
+        'subsection' => true,
18
+        'desc'       => esc_html__( 'For full documentation on the this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/ace-editor.html" target="_blank">https://devs.redux.io/core-fields/ace-editor.html</a>',
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-ace-editor-css',
22
+                'type'     => 'ace_editor',
23
+                'title'    => esc_html__( 'CSS Code', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Paste your CSS code here.', 'your-textdomain-here' ),
25
+                'mode'     => 'css',
26
+                'theme'    => 'monokai',
27
+                'desc'     => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
28
+                'default'  => '#header{
29 29
 	margin: 0 auto;
30 30
 }',
31
-			),
32
-			array(
33
-				'id'       => 'opt-ace-editor-js',
34
-				'type'     => 'ace_editor',
35
-				'title'    => esc_html__( 'JS Code', 'your-textdomain-here' ),
36
-				'subtitle' => esc_html__( 'Paste your JS code here.', 'your-textdomain-here' ),
37
-				'mode'     => 'javascript',
38
-				'theme'    => 'chrome',
39
-				'desc'     => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
40
-				'default'  => 'jQuery(document).ready(function(){\n\n});',
41
-			),
42
-			array(
43
-				'id'         => 'opt-ace-editor-php',
44
-				'type'       => 'ace_editor',
45
-				'full_width' => true,
46
-				'title'      => esc_html__( 'PHP Code', 'your-textdomain-here' ),
47
-				'subtitle'   => esc_html__( 'Paste your PHP code here.', 'your-textdomain-here' ),
48
-				'mode'       => 'php',
49
-				'theme'      => 'chrome',
50
-				'desc'       => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
51
-				'default'    => '<?php
31
+            ),
32
+            array(
33
+                'id'       => 'opt-ace-editor-js',
34
+                'type'     => 'ace_editor',
35
+                'title'    => esc_html__( 'JS Code', 'your-textdomain-here' ),
36
+                'subtitle' => esc_html__( 'Paste your JS code here.', 'your-textdomain-here' ),
37
+                'mode'     => 'javascript',
38
+                'theme'    => 'chrome',
39
+                'desc'     => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
40
+                'default'  => 'jQuery(document).ready(function(){\n\n});',
41
+            ),
42
+            array(
43
+                'id'         => 'opt-ace-editor-php',
44
+                'type'       => 'ace_editor',
45
+                'full_width' => true,
46
+                'title'      => esc_html__( 'PHP Code', 'your-textdomain-here' ),
47
+                'subtitle'   => esc_html__( 'Paste your PHP code here.', 'your-textdomain-here' ),
48
+                'mode'       => 'php',
49
+                'theme'      => 'chrome',
50
+                'desc'       => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
51
+                'default'    => '<?php
52 52
     echo "PHP String";',
53
-			),
54
-		),
55
-	)
53
+            ),
54
+        ),
55
+    )
56 56
 );
57 57
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/color-selection/color-palette.php 1 patch
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -11,91 +11,91 @@
 block discarded – undo
11 11
 defined( 'ABSPATH' ) || exit;
12 12
 
13 13
 Redux::set_section(
14
-	$opt_name,
15
-	array(
16
-		'title'      => esc_html__( 'Color Palette', 'your-textdomain-here' ),
17
-		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/color-palette.html" target="_blank">https://devs.redux.io/core-fields/palette-color.html</a>',
18
-		'id'         => 'color-palette',
19
-		'subsection' => true,
20
-		'fields'     => array(
21
-			array(
22
-				'id'       => 'opt-color-palette-grey',
23
-				'type'     => 'color_palette',
24
-				'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
25
-				'subtitle' => esc_html__( 'User defined colors with round selectors.', 'your-textdomain-here' ),
26
-				'desc'     => esc_html__( 'Set the Widget Title color here.', 'your-textdomain-here' ),
27
-				'default'  => '#888888',
28
-				'options'  => array(
29
-					'colors' => array(
30
-						'#000000',
31
-						'#222222',
32
-						'#444444',
33
-						'#666666',
34
-						'#888888',
35
-						'#aaaaaa',
36
-						'#cccccc',
37
-						'#eeeeee',
38
-						'#ffffff',
39
-					),
40
-					'style'  => 'round',
41
-				),
42
-				'output'   => array(
43
-					'color'     => '.widget-title',
44
-					'important' => true,
45
-				),
46
-			),
47
-			array(
48
-				'id'       => 'opt-color-palette-mui-all',
49
-				'type'     => 'color_palette',
50
-				'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
51
-				'subtitle' => esc_html__( 'All Material Design Colors.', 'your-textdomain-here' ),
52
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
53
-				'default'  => '#F44336',
54
-				'options'  => array(
55
-					'colors' => Redux_Helpers::get_material_design_colors( 'all' ),
56
-					'size'   => 17,
57
-				),
58
-			),
59
-			array(
60
-				'id'       => 'opt-color-palette-mui-primary',
61
-				'type'     => 'color_palette',
62
-				'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
63
-				'subtitle' => esc_html__( 'Primary Material Design Colors.', 'your-textdomain-here' ),
64
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
65
-				'default'  => '#000000',
66
-				'options'  => array(
67
-					'colors'     => Redux_Helpers::get_material_design_colors(),
68
-					'size'       => 25,
69
-					'box-shadow' => true,
70
-					'margin'     => true,
71
-				),
72
-			),
73
-			array(
74
-				'id'       => 'opt-color-palette-mui-red',
75
-				'type'     => 'color_palette',
76
-				'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
77
-				'subtitle' => esc_html__( 'Red Material Design Colors.', 'your-textdomain-here' ),
78
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
79
-				'default'  => '#FF1744',
80
-				'options'  => array(
81
-					'colors' => Redux_Helpers::get_material_design_colors( 'red' ),
82
-					'size'   => 25,
83
-				),
84
-			),
85
-			array(
86
-				'id'       => 'opt-color-palette-mui-a100',
87
-				'type'     => 'color_palette',
88
-				'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
89
-				'subtitle' => esc_html__( 'A100 Material Design Colors.', 'your-textdomain-here' ),
90
-				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
91
-				'default'  => '#FF80AB',
92
-				'options'  => array(
93
-					'colors' => Redux_Helpers::get_material_design_colors( 'A100' ),
94
-					'size'   => 60,
95
-					'style'  => 'round',
96
-				),
97
-			),
98
-		),
99
-	)
14
+    $opt_name,
15
+    array(
16
+        'title'      => esc_html__( 'Color Palette', 'your-textdomain-here' ),
17
+        'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/color-palette.html" target="_blank">https://devs.redux.io/core-fields/palette-color.html</a>',
18
+        'id'         => 'color-palette',
19
+        'subsection' => true,
20
+        'fields'     => array(
21
+            array(
22
+                'id'       => 'opt-color-palette-grey',
23
+                'type'     => 'color_palette',
24
+                'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
25
+                'subtitle' => esc_html__( 'User defined colors with round selectors.', 'your-textdomain-here' ),
26
+                'desc'     => esc_html__( 'Set the Widget Title color here.', 'your-textdomain-here' ),
27
+                'default'  => '#888888',
28
+                'options'  => array(
29
+                    'colors' => array(
30
+                        '#000000',
31
+                        '#222222',
32
+                        '#444444',
33
+                        '#666666',
34
+                        '#888888',
35
+                        '#aaaaaa',
36
+                        '#cccccc',
37
+                        '#eeeeee',
38
+                        '#ffffff',
39
+                    ),
40
+                    'style'  => 'round',
41
+                ),
42
+                'output'   => array(
43
+                    'color'     => '.widget-title',
44
+                    'important' => true,
45
+                ),
46
+            ),
47
+            array(
48
+                'id'       => 'opt-color-palette-mui-all',
49
+                'type'     => 'color_palette',
50
+                'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
51
+                'subtitle' => esc_html__( 'All Material Design Colors.', 'your-textdomain-here' ),
52
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
53
+                'default'  => '#F44336',
54
+                'options'  => array(
55
+                    'colors' => Redux_Helpers::get_material_design_colors( 'all' ),
56
+                    'size'   => 17,
57
+                ),
58
+            ),
59
+            array(
60
+                'id'       => 'opt-color-palette-mui-primary',
61
+                'type'     => 'color_palette',
62
+                'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
63
+                'subtitle' => esc_html__( 'Primary Material Design Colors.', 'your-textdomain-here' ),
64
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
65
+                'default'  => '#000000',
66
+                'options'  => array(
67
+                    'colors'     => Redux_Helpers::get_material_design_colors(),
68
+                    'size'       => 25,
69
+                    'box-shadow' => true,
70
+                    'margin'     => true,
71
+                ),
72
+            ),
73
+            array(
74
+                'id'       => 'opt-color-palette-mui-red',
75
+                'type'     => 'color_palette',
76
+                'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
77
+                'subtitle' => esc_html__( 'Red Material Design Colors.', 'your-textdomain-here' ),
78
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
79
+                'default'  => '#FF1744',
80
+                'options'  => array(
81
+                    'colors' => Redux_Helpers::get_material_design_colors( 'red' ),
82
+                    'size'   => 25,
83
+                ),
84
+            ),
85
+            array(
86
+                'id'       => 'opt-color-palette-mui-a100',
87
+                'type'     => 'color_palette',
88
+                'title'    => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
89
+                'subtitle' => esc_html__( 'A100 Material Design Colors.', 'your-textdomain-here' ),
90
+                'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
91
+                'default'  => '#FF80AB',
92
+                'options'  => array(
93
+                    'colors' => Redux_Helpers::get_material_design_colors( 'A100' ),
94
+                    'size'   => 60,
95
+                    'style'  => 'round',
96
+                ),
97
+            ),
98
+        ),
99
+    )
100 100
 );
101 101
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/color-selection/link-color.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -10,36 +10,36 @@
 block discarded – undo
10 10
 defined( 'ABSPATH' ) || exit;
11 11
 
12 12
 Redux::set_section(
13
-	$opt_name,
14
-	array(
15
-		'title'      => esc_html__( 'Link Color', '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/link-color.html" target="_blank">https://devs.redux.io/core-fields/link-color.html</a>',
17
-		'id'         => 'color-link',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-link-color',
22
-				'type'     => 'link_color',
23
-				'title'    => esc_html__( 'Links 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'  => array(
27
-					'regular' => '#aaa',
28
-					'hover'   => '#bbb',
29
-					'active'  => '#ccc',
30
-				),
31
-				'output'   => array(
32
-					'a',
33
-					'important' => true,
34
-				),
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Link Color', '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/link-color.html" target="_blank">https://devs.redux.io/core-fields/link-color.html</a>',
17
+        'id'         => 'color-link',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-link-color',
22
+                'type'     => 'link_color',
23
+                'title'    => esc_html__( 'Links 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'  => array(
27
+                    'regular' => '#aaa',
28
+                    'hover'   => '#bbb',
29
+                    'active'  => '#ccc',
30
+                ),
31
+                'output'   => array(
32
+                    'a',
33
+                    'important' => true,
34
+                ),
35 35
 
36
-				// phpcs:ignore Squiz.PHP.CommentedOutCode
37
-				// 'regular'   => false, // Disable Regular Color.
38
-				// 'hover'     => false, // Disable Hover Color.
39
-				// 'active'    => false, // Disable Active Color.
40
-				// 'visited'   => true,  // Enable Visited Color.
41
-			),
42
-		),
43
-	)
36
+                // phpcs:ignore Squiz.PHP.CommentedOutCode
37
+                // 'regular'   => false, // Disable Regular Color.
38
+                // 'hover'     => false, // Disable Hover Color.
39
+                // 'active'    => false, // Disable Active Color.
40
+                // 'visited'   => true,  // Enable Visited Color.
41
+            ),
42
+        ),
43
+    )
44 44
 );
45 45
 // phpcs:enable
Please login to merge, or discard this patch.
sample/sections/color-selection/color-rgba.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -10,28 +10,28 @@
 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 RGBA', '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/color-rgba.html" target="_blank">https://devs.redux.io/core-fields/color-rgba.html</a>',
17
-		'id'         => 'color-rgba',
18
-		'subsection' => true,
19
-		'fields'     => array(
20
-			array(
21
-				'id'       => 'opt-color-rgba',
22
-				'type'     => 'color_rgba',
23
-				'title'    => esc_html__( 'Color RGBA', 'your-textdomain-here' ),
24
-				'subtitle' => esc_html__( 'Gives you the RGBA color.', 'your-textdomain-here' ),
25
-				'default'  => array(
26
-					'color' => '#7e33dd',
27
-					'alpha' => .8,
28
-				),
29
-				'output'   => array(
30
-					'color'     => '.posted-on, .wp-block-post-date a',
31
-					'important' => true,
32
-				),
33
-			),
34
-		),
35
-	)
13
+    $opt_name,
14
+    array(
15
+        'title'      => esc_html__( 'Color RGBA', '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/color-rgba.html" target="_blank">https://devs.redux.io/core-fields/color-rgba.html</a>',
17
+        'id'         => 'color-rgba',
18
+        'subsection' => true,
19
+        'fields'     => array(
20
+            array(
21
+                'id'       => 'opt-color-rgba',
22
+                'type'     => 'color_rgba',
23
+                'title'    => esc_html__( 'Color RGBA', 'your-textdomain-here' ),
24
+                'subtitle' => esc_html__( 'Gives you the RGBA color.', 'your-textdomain-here' ),
25
+                'default'  => array(
26
+                    'color' => '#7e33dd',
27
+                    'alpha' => .8,
28
+                ),
29
+                'output'   => array(
30
+                    'color'     => '.posted-on, .wp-block-post-date a',
31
+                    'important' => true,
32
+                ),
33
+            ),
34
+        ),
35
+    )
36 36
 );
37 37
 // phpcs:enable
Please login to merge, or discard this patch.