PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.1
WP Coder – Insert & Manage Code Snippets v3.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 3.1, at includes/settings/options/js-code.php

51 lines 964 B
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' => __( 'JQuery Dependency', 'wpcoder' ),
11 'text' => __( 'Disable', 'wpcoder' ),
12 ],
13
14 'inline' => [
15 'type' => 'checkbox',
16 'name' => '[inline_js]',
17 'title' => __( 'Inline', 'wpcoder' ),
18 'text' => __( 'Enable', 'wpcoder' ),
19 ],
20
21 'minified' => [
22 'type' => 'select',
23 'name' => '[minified_js]',
24 'title' => __( 'Minified', 'floating-button' ),
25 'default' => 'obfuscate',
26 'options' => [
27 'none' => 'none',
28 'minify' => 'Minify',
29 'obfuscate' => 'Obfuscate'
30 ],
31 ],
32
33 'attributes' => [
34 'type' => 'select',
35 'name' => '[js_attributes]',
36 'title' => __( 'Attribute', 'floating-button' ),
37 'options' => [
38 0 => 'none',
39 'defer' => 'defer',
40 'async' => 'async'
41 ],
42 ],
43
44 'js_code' => [
45 'type' => 'textarea',
46 'name' => 'js_code',
47 'class' => 'is-full'
48 ],
49
50
51 ];