| @@ -1,19 +1,49 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | - * Page Name: HTML Code | |
| 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 | + | |
| 9 | 14 | ?> |
| 10 | 15 | |
| 11 | 16 | <h4> |
| 12 | - <span class="wowp-icon wowp-icon-html5"></span> | |
| 13 | - <?php esc_html_e( 'HTML Code', 'wpcoder' ); ?> | |
| 17 | + <span class="codericon codericon-filetype-html"></span> | |
| 18 | + <?php | |
| 19 | + esc_html_e( 'HTML Code', 'wpcoder' ); ?> | |
| 14 | 20 | </h4> |
| 15 | 21 | |
| 22 | + <fieldset> | |
| 23 | + <legend><?php esc_html_e( 'Settings', 'wpcoder' ); ?></legend> | |
| 24 | + <?php Option::init( [ | |
| 25 | + $opt['minified'], | |
| 26 | + ] ); ?> | |
| 27 | + | |
| 28 | + </fieldset> | |
| 29 | + | |
| 30 | + <fieldset> | |
| 31 | + <div class="wowp-field"> | |
| 32 | + <ol id="htmlNavigationMenu" class="wowp-php-nav-menu"></ol> | |
| 33 | + <button class="button-editor button" id="htmlnav">Add NAV Comment</button> | |
| 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> | |
| 39 | + | |
| 40 | + | |
| 16 | 41 | <?php Field::textarea( 'html_code' ); ?> |
| 42 | + | |
| 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. | |
| 46 | + </div> | |
| 17 | 47 | |
| 18 | 48 | <?php |
| 19 | 49 | |