PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.1
WP Coder – Insert & Manage Code Snippets v4.1
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / includes / settings / options / js-code.php

js-code.php in WP Coder – Insert & Manage Code Snippets 4.1, at includes/settings/options/js-code.php

58 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 return [
6
7 'jquery' => [
8 'type' => 'checkbox',
9 'name' => '[jquery_dependency]',
10 'title' => __( 'Disable jQuery', 'wp-coder' ),
11 'text' => __( 'Disable', 'wp-coder' ),
12 'class' => 'is-reverse',
13 'tooltip' => __( 'Don’t include jQuery as a dependency for this script.', 'wp-coder' ),
14 ],
15
16 'inline' => [
17 'type' => 'checkbox',
18 'name' => '[inline_js]',
19 'title' => __( 'Inline', 'wp-coder' ),
20 'text' => __( 'Enable', 'wp-coder' ),
21 'class' => 'is-reverse',
22 'tooltip' => __( 'Insert JavaScript directly into the page.', 'wp-coder' ),
23
24 ],
25
26 'minified' => [
27 'type' => 'select',
28 'name' => '[minified_js]',
29 'title' => __( 'Minified', 'wp-coder' ),
30 'default' => 'obfuscate',
31 'options' => [
32 'none' => 'none',
33 'minify' => 'Minify',
34 'obfuscate' => 'Obfuscate'
35 ],
36 'tooltip' => __( 'Choose how to minimize or obfuscate the JavaScript code.', 'wp-coder' ),
37 ],
38
39 'attributes' => [
40 'type' => 'select',
41 'name' => '[js_attributes]',
42 'title' => __( 'Attribute', 'wp-coder' ),
43 'options' => [
44 0 => 'none',
45 'defer' => 'defer',
46 'async' => 'async'
47 ],
48 'tooltip' => __( 'Specify how the script should be loaded.', 'wp-coder' ),
49 ],
50
51 'js_code' => [
52 'type' => 'textarea',
53 'name' => 'js_code',
54 'class' => 'is-full'
55 ],
56
57
58 ];