| @@ -1,53 +1,19 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | - * Page Name: HTML | |
| 3 | + * Page Name: HTML Code | |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | use WPCoder\Dashboard\Field; |
| 7 | -use WPCoder\Dashboard\Option; | |
| 8 | 7 | |
| 9 | 8 | defined( 'ABSPATH' ) || exit; |
| 10 | - | |
| 11 | -$default = Field::getDefault(); | |
| 12 | -$opt = include( 'options/html-code.php' ); | |
| 13 | -$options = get_option( '_wp_coder_tools', [] ); | |
| 14 | - | |
| 15 | 9 | ?> |
| 16 | 10 | |
| 17 | - <div class="wowp-settings__page"> | |
| 11 | + <h4> | |
| 12 | + <span class="wowp-icon wowp-icon-html5"></span> | |
| 13 | + <?php esc_html_e( 'HTML Code', 'wpcoder' ); ?> | |
| 14 | + </h4> | |
| 18 | 15 | |
| 19 | - <div class="wowp-settings__page-sidebar"> | |
| 20 | - | |
| 21 | - <?php Option::init( [ | |
| 22 | - $opt['preview'], | |
| 23 | - ] ); ?> | |
| 24 | - | |
| 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><html></code> or | |
| 45 | - <code><body></code> — it's already on the page. | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - | |
| 49 | - </div> | |
| 50 | - | |
| 16 | +<?php Field::textarea( 'html_code' ); ?> | |
| 51 | 17 | |
| 52 | 18 | <?php |
| 53 | 19 | |