PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.3
WP Coder – Insert & Manage Code Snippets v4.3
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
← All changes | includes/settings/3.js-code.php +27 -31 3.34.3 View file →
@@ -17,46 +17,42 @@
17 17 $js_link = FolderManager::path_upload_url() . 'script-' . $default['id'] . '.js';
18 18 }
19 19
20 20 ?>
21 - <h4>
22 - <span class="codericon codericon-filetype-js"></span>
23 - <?php esc_html_e( 'JavaScript Code', 'wpcoder' ); ?>
24 - </h4>
25 21
26 - <fieldset>
27 - <legend><?php esc_html_e( 'Settings', 'wpcoder' ); ?></legend>
22 + <div class="wowp-settings__page">
23 + <div class="wowp-settings__page-sidebar">
28 24
29 - <?php Option::init( [
30 - $opt['jquery'],
31 - $opt['inline'],
32 - $opt['minified'],
33 - $opt['attributes'],
34 - ] ); ?>
25 + <?php Option::init( [
26 + $opt['jquery'],
27 + $opt['inline'],
28 + $opt['minified'],
29 + $opt['attributes'],
30 + ] ); ?>
35 31
36 - </fieldset>
32 + <button class="button-editor button" id="jsnav"><?php esc_html_e( 'Add NAV Comment', 'wp-coder' ); ?></button>
33 + <ol id="jsNavigationMenu" class="wowp-php-nav-menu"></ol>
37 34
38 - <fieldset>
39 - <div class="wowp-field is-full">
40 - <ol id="jsNavigationMenu" class="wowp-php-nav-menu"></ol>
41 - <button class="button-editor button" id="jsnav">Add NAV Comment</button>
42 35 </div>
43 - </fieldset>
36 + <div class="wowp-settings__page-content">
37 + <?php Field::textarea( 'js_code' ); ?>
44 38
45 -<?php Option::init( [ $opt['js_code'] ] ); ?>
39 + <div class="wowp-notification notification-info">
40 + Just enter the JavaScript content. You don’t need to include <code>&lt;script&gt;</code> — it's already on the page.
41 + </div>
46 42
47 - <div class="wowp-notification -warning">
48 - Please input only the JavaScript content, omitting the <code>script</code> tag
49 - </div>
43 + <?php if ( ! empty( $js_link ) ): ?>
44 + <div class="wowp-field has-addon">
45 + <span class="label"><?php esc_html_e( 'JS File URL', 'wp-coder' ); ?></span>
46 + <label for="tag" class="label is-addon"><span
47 + class="dashicons dashicons-admin-links"></span></label>
48 + <input type="url" id="url-js-file" readonly="readonly" value="<?php echo esc_url( $js_link ); ?>">
49 + </div>
50 + <?php endif; ?>
50 51
51 -<?php if ( ! empty( $js_link ) ): ?>
52 - <div class="wowp-fields-group has-mt">
53 - <div class="wowp-field is-full has-addon border-default">
54 - <label for="url-css-file" class="is-addon">
55 - <span class="dashicons dashicons-admin-links"></span>
56 - </label>
57 - <input type="url" id="url-css-file" readonly="readonly" value="<?php echo esc_url( $js_link ); ?>">
58 - <span class="label"><?php esc_html_e( 'URL to the JS file', 'wpcoder' ); ?></span>
52 +
59 53 </div>
60 54 </div>
61 -<?php endif;
55 +
56 +<?php
57 +
62 58