admin.php
1 year ago
clean.php
4 months ago
full_modal.php
1 year ago
mailer.php
1 year ago
print.php
1 year ago
pure.php
1 year ago
wizard.php
1 year ago
clean.php
44 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | add_filter( 'show_admin_bar', '__return_false' ); |
| 6 | remove_action( 'wp_head', '_admin_bar_bump_cb' ); |
| 7 | remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); |
| 8 | |
| 9 | // remove these to prevent deprecating warnings |
| 10 | remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); |
| 11 | remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); |
| 12 | remove_action( 'wp_print_styles', 'print_emoji_styles' ); |
| 13 | remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
| 14 | remove_action( 'wp_head', 'wp_admin_bar_header' ); |
| 15 | remove_action( 'wp_admin_head', 'wp_admin_bar_header' ); |
| 16 | |
| 17 | |
| 18 | do_action('wp_enqueue_scripts'); |
| 19 | // load custom css and js files to enque because we are not using wp_head and wp_footer |
| 20 | |
| 21 | $patterns = OsSettingsHelper::instant_page_background_patterns(); |
| 22 | $background_pattern_css = ''; |
| 23 | if(!empty($background_pattern) && !empty($patterns[$background_pattern])) { |
| 24 | $background_pattern_css = $patterns[$background_pattern]; |
| 25 | } |
| 26 | |
| 27 | |
| 28 | ?> |
| 29 | <!DOCTYPE html> |
| 30 | <html lang="en" class="latepoint-clean"> |
| 31 | <head> |
| 32 | <meta charset="UTF-8"> |
| 33 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 34 | <title><?php echo $page_title ?? get_bloginfo('name'); ?></title> |
| 35 | <?php echo OsUtilHelper::generate_css_for_clean_layout(); ?> |
| 36 | </head> |
| 37 | <body class="latepoint-clean-body with-pattern latepoint" style="<?php echo esc_attr($background_pattern_css); ?>"> |
| 38 | <div class="latepoint-w"> |
| 39 | <?php include( $view ); ?> |
| 40 | </div> |
| 41 | <?php echo OsUtilHelper::generate_js_for_clean_layout(); ?> |
| 42 | </body> |
| 43 | </html> |
| 44 | <?php exit(200); |