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