| 1 |
<?php |
| 2 |
defined('ABSPATH') || exit; |
| 3 |
|
| 4 |
use FluentCart\App\Vite; |
| 5 |
|
| 6 |
$wp_head = !((isset($wp_head) && $wp_head === false)); |
| 7 |
$wp_footer = !((isset($wp_footer) && $wp_footer == false)); |
| 8 |
?> |
| 9 |
<!DOCTYPE html> |
| 10 |
<html> |
| 11 |
|
| 12 |
<?php if (!empty($title)): ?> |
| 13 |
|
| 14 |
<title><?php echo esc_html($title) ?></title> |
| 15 |
<?php endif; ?> |
| 16 |
<?php |
| 17 |
|
| 18 |
|
| 19 |
if (!is_page() && \FluentCart\App\App::request()->get('action') !== 'elementor' && $wp_head) { |
| 20 |
remove_action('wp_head', 'print_emoji_detection_script', 7); |
| 21 |
remove_action('wp_print_styles', 'print_emoji_styles'); |
| 22 |
wp_head(); |
| 23 |
} |
| 24 |
|
| 25 |
if (isset($styles) && is_array($styles) && !empty($enqueue_prefix)) { |
| 26 |
Vite::printAllStyles($styles, $enqueue_prefix.'_styles'); |
| 27 |
} |
| 28 |
?> |
| 29 |
<body> |
| 30 |
|
| 31 |
<div style="width: 100%; box-sizing: border-box"> |
| 32 |
<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 33 |
</div> |
| 34 |
</body> |
| 35 |
|
| 36 |
<?php |
| 37 |
|
| 38 |
if (function_exists('wp_enqueue_block_template_skip_link')) { |
| 39 |
wp_enqueue_block_template_skip_link(); |
| 40 |
} |
| 41 |
|
| 42 |
if (!is_page() && \FluentCart\App\App::request()->get('action') !== 'elementor' && $wp_footer) { |
| 43 |
wp_footer(); |
| 44 |
} |
| 45 |
|
| 46 |
if (isset($scripts) && is_array($scripts) && !empty($enqueue_prefix)) { |
| 47 |
Vite::printAllScripts($scripts, $enqueue_prefix.'_scripts'); |
| 48 |
} |
| 49 |
?> |
| 50 |
</html> |
| 51 |
|