PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.4
WP Coder – Insert & Manage Code Snippets v3.4
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 +31 -27 4.5.13.4 View file →
@@ -17,42 +17,46 @@
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>
21 25
22 - <div class="wowp-settings__page">
23 - <div class="wowp-settings__page-sidebar">
26 + <fieldset>
27 + <legend><?php esc_html_e( 'Settings', 'wpcoder' ); ?></legend>
24 28
25 - <?php Option::init( [
26 - $opt['jquery'],
27 - $opt['inline'],
28 - $opt['minified'],
29 - $opt['attributes'],
30 - ] ); ?>
29 + <?php Option::init( [
30 + $opt['jquery'],
31 + $opt['inline'],
32 + $opt['minified'],
33 + $opt['attributes'],
34 + ] ); ?>
31 35
32 - <button class="button-editor button" id="jsnav"><?php esc_html_e( 'Add NAV Comment', 'wp-coder' ); ?></button>
36 + </fieldset>
37 +
38 + <fieldset>
39 + <div class="wowp-field is-full">
33 40 <ol id="jsNavigationMenu" class="wowp-php-nav-menu"></ol>
34 -
41 + <button class="button-editor button" id="jsnav">Add NAV Comment</button>
35 42 </div>
36 - <div class="wowp-settings__page-content">
37 - <?php Field::textarea( 'js_code' ); ?>
43 + </fieldset>
38 44
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>
45 +<?php Option::init( [ $opt['js_code'] ] ); ?>
42 46
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; ?>
47 + <div class="wowp-notification -warning">
48 + Please input only the JavaScript content, omitting the <code>script</code> tag
49 + </div>
51 50
52 -
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>
53 59 </div>
54 60 </div>
55 -
56 -<?php
57 -
61 +<?php endif;
58 62