| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | |
| 7 | 7 | 'include' => [ |
| 8 | 8 | 'type' => 'select', |
| 9 | 9 | 'name' => '[include]', |
| 10 | - 'title' => __( 'Type', 'wpcoder' ), | |
| 10 | + 'title' => __( 'Type', 'wp-coder' ), | |
| 11 | 11 | 'options' => [ 'css' => 'css', 'js' => 'js' ], |
| 12 | 12 | 'class' => 'display-option', |
| 13 | 13 | ], |
| 14 | 14 | |
| @@ -14,15 +14,24 @@ | ||
| 14 | 14 | |
| 15 | 15 | 'include_file' => [ |
| 16 | 16 | 'type' => 'url', |
| 17 | 17 | 'name' => '[include_file]', |
| 18 | - 'title' => __( 'URL', 'wpcoder' ), | |
| 18 | + 'title' => __( 'URL', 'wp-coder' ), | |
| 19 | 19 | ], |
| 20 | 20 | |
| 21 | + 'css_only_preview' => [ | |
| 22 | + 'type' => 'checkbox', | |
| 23 | + 'name' => '[css_only_preview]', | |
| 24 | + 'title' => __( 'Preview Only', 'wp-coder' ), | |
| 25 | + 'text' => __( 'Enable', 'wp-coder' ), | |
| 26 | + 'class' => 'is-reverse css-only-preview', | |
| 27 | + 'tooltip' => __( 'This CSS file will be used only in the Live Preview. It won’t be included on the actual website.', 'wp-coder' ), | |
| 28 | + ], | |
| 29 | + | |
| 21 | 30 | 'js_attr' => [ |
| 22 | 31 | 'type' => 'select', |
| 23 | 32 | 'name' => '[file_js_att]', |
| 24 | - 'title' => __( 'Attribute', 'wpcoder' ), | |
| 33 | + 'title' => __( 'Attribute', 'wp-coder' ), | |
| 25 | 34 | 'options' => [ |
| 26 | 35 | 0 => 'none', |
| 27 | 36 | 'defer' => 'defer', |
| 28 | 37 | 'async' => 'async' |
| @@ -32,9 +41,9 @@ | ||
| 32 | 41 | |
| 33 | 42 | 'dequeue' => [ |
| 34 | 43 | 'type' => 'select', |
| 35 | 44 | 'name' => '[dequeue]', |
| 36 | - 'title' => __( 'Type', 'wpcoder' ), | |
| 45 | + 'title' => __( 'Type', 'wp-coder' ), | |
| 37 | 46 | 'options' => [ 'css' => 'css', 'js' => 'js' ], |
| 38 | 47 | 'class' => 'display-option', |
| 39 | 48 | ], |
| 40 | 49 | |
| @@ -40,9 +49,9 @@ | ||
| 40 | 49 | |
| 41 | 50 | 'handle' => [ |
| 42 | 51 | 'type' => 'text', |
| 43 | 52 | 'name' => '[handle]', |
| 44 | - 'title' => __( 'ID', 'wpcoder' ), | |
| 53 | + 'title' => __( 'ID', 'wp-coder' ), | |
| 45 | 54 | ], |
| 46 | 55 | |
| 47 | 56 | |
| 48 | 57 | ]; |