PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.5
WP Coder – Insert & Manage Code Snippets v3.5
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 +28 -25 4.5.13.5 View file →
@@ -17,41 +17,44 @@
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">
23 21
24 - <?php Option::init( [
25 - $opt['inline'],
26 - $opt['minified'],
27 - ] ); ?>
22 + <h4>
23 + <span class="codericon codericon-filetype-css"></span>
24 + <?php esc_html_e( 'CSS Code', 'wpcoder' ); ?>
25 + </h4>
28 26
29 - <button class="button-editor button"
30 - id="cssnav"><?php esc_html_e( 'Add NAV Comment', 'wp-coder' ); ?></button>
27 + <fieldset>
28 + <legend><?php esc_html_e( 'Settings', 'wpcoder' ); ?></legend>
29 + <?php Option::init( [
30 + $opt['inline'],
31 + $opt['minified'],
32 + ] ); ?>
33 + </fieldset>
31 34
35 + <fieldset>
36 + <div class="wowp-field is-full">
32 37 <ol id="cssNavigationMenu" class="wowp-php-nav-menu"></ol>
33 -
38 + <button class="button-editor button" id="cssnav">Add NAV Comment</button>
34 39 </div>
40 + </fieldset>
35 41
36 - <div class="wowp-settings__page-content">
42 +<?php Option::init( [ $opt['css_code'] ] ); ?>
37 43
38 - <?php Field::textarea( 'css_code' ); ?>
44 + <div class="wowp-notification -warning">
45 + Please input just the CSS content, leaving out the <code>style</code> tag.
46 + </div>
39 47
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 -
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>
53 56 </div>
54 57 </div>
55 58
56 -<?php
59 +<?php endif;
57 60