PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.4
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.4
1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk 1.2.0 All 47 releases
fluent-cart / app / Views / frontend / index.php

index.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.4, at app/Views/frontend/index.php

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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