PluginProbe
WP Coder – Insert & Manage Code Snippets / trunk
WP Coder – Insert & Manage Code Snippets vtrunk
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/1.html-code.php +36 -13 3.2trunk View file →
@@ -3,28 +3,51 @@
3 3 * Page Name: HTML
4 4 */
5 5
6 6 use WPCoder\Dashboard\Field;
7 +use WPCoder\Dashboard\Option;
7 8
8 9 defined( 'ABSPATH' ) || exit;
10 +
11 +$default = Field::getDefault();
12 +$opt = include( 'options/html-code.php' );
13 +$options = get_option( '_wp_coder_tools', [] );
14 +
9 15 ?>
10 16
11 - <h4>
12 - <span class="codericon codericon-filetype-html"></span>
13 - <?php
14 - esc_html_e( 'HTML Code', 'wpcoder' ); ?>
15 - </h4>
17 + <div class="wowp-settings__page">
16 18
17 - <div class="wowp-field is-full wowp-code-nav">
18 - <ol id="htmlNavigationMenu" class="wowp-php-nav-menu"></ol>
19 - <span class="button-editor" id="htmlnav">Add NAV Comment</span>
20 - </div>
19 + <div class="wowp-settings__page-sidebar">
21 20
22 -<?php Field::textarea( 'html_code' ); ?>
21 + <?php Option::init( [
22 + $opt['preview'],
23 + ] ); ?>
23 24
24 - <div class="wowp-notification -info">
25 - Please provide only the inner HTML content, excluding the <code>html</code> and <code>body</code> tags. The page
26 - already contains these tags, and your code will be inserted within the <code>body</code> tag directly.
25 + <button class="button button-add-img"><?php esc_html_e( 'Add Image', 'wp-coder' ); ?></button>
26 +
27 + <?php Option::init( [
28 + $opt['minified'],
29 + ] ); ?>
30 +
31 + <button class="button-editor button"
32 + id="htmlnav"><?php esc_html_e( 'Add NAV Comment', 'wp-coder' ); ?></button>
33 +
34 + <ol id="htmlNavigationMenu" class="wowp-php-nav-menu"></ol>
35 +
36 +
37 + </div>
38 +
39 + <div class="wowp-settings__page-content">
40 +
41 + <?php Field::textarea( 'html_code' ); ?>
42 +
43 + <div class="wowp-notification notification-info">
44 + Just enter the HTML content. You don’t need to include <code>&lt;html&gt;</code> or
45 + <code>&lt;body&gt;</code> — it's already on the page.
46 + </div>
47 + </div>
48 +
27 49 </div>
50 +
28 51
29 52 <?php
30 53