| @@ -9,45 +9,41 @@ | ||
| 9 | 9 | defined( 'ABSPATH' ) || exit; |
| 10 | 10 | |
| 11 | 11 | $default = Field::getDefault(); |
| 12 | 12 | $opt = include( 'options/html-code.php' ); |
| 13 | -$options = get_option( '_wp_coder_tools', [] ); | |
| 14 | 13 | |
| 15 | 14 | ?> |
| 16 | 15 | |
| 17 | - <div class="wowp-settings__page"> | |
| 16 | + <h4> | |
| 17 | + <span class="codericon codericon-filetype-html"></span> | |
| 18 | + <?php | |
| 19 | + esc_html_e( 'HTML Code', 'wpcoder' ); ?> | |
| 20 | + </h4> | |
| 18 | 21 | |
| 19 | - <div class="wowp-settings__page-sidebar"> | |
| 22 | + <fieldset> | |
| 23 | + <legend><?php esc_html_e( 'Settings', 'wpcoder' ); ?></legend> | |
| 24 | + <?php Option::init( [ | |
| 25 | + $opt['minified'], | |
| 26 | + ] ); ?> | |
| 20 | 27 | |
| 21 | - <?php Option::init( [ | |
| 22 | - $opt['preview'], | |
| 23 | - ] ); ?> | |
| 28 | + </fieldset> | |
| 24 | 29 | |
| 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 | - | |
| 30 | + <fieldset> | |
| 31 | + <div class="wowp-field"> | |
| 34 | 32 | <ol id="htmlNavigationMenu" class="wowp-php-nav-menu"></ol> |
| 35 | - | |
| 36 | - | |
| 33 | + <button class="button-editor button" id="htmlnav">Add NAV Comment</button> | |
| 37 | 34 | </div> |
| 35 | + <div class="wowp-field add-img-btn _m-is-auto"> | |
| 36 | + <button class="button button-primary button-add-img">Add Image</button> | |
| 37 | + </div> | |
| 38 | + </fieldset> | |
| 38 | 39 | |
| 39 | - <div class="wowp-settings__page-content"> | |
| 40 | 40 | |
| 41 | - <?php Field::textarea( 'html_code' ); ?> | |
| 41 | +<?php Field::textarea( 'html_code' ); ?> | |
| 42 | 42 | |
| 43 | - <div class="wowp-notification notification-info"> | |
| 44 | - Just enter the HTML content. You don’t need to include <code><html></code> or | |
| 45 | - <code><body></code> — it's already on the page. | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - | |
| 43 | + <div class="wowp-notification -info"> | |
| 44 | + Please provide only the inner HTML content, excluding the <code>html</code> and <code>body</code> tags. The page | |
| 45 | + already contains these tags, and your code will be inserted within the <code>body</code> tag directly. | |
| 49 | 46 | </div> |
| 50 | - | |
| 51 | 47 | |
| 52 | 48 | <?php |
| 53 | 49 | |