PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
← All changes | includes/templates/canvas.php +31 -0 1.2.32.7.0 View file →
@@ -8,8 +8,20 @@
8 8 // Exit if accessed directly.
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 exit;
11 11 }
12 +
13 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- Sellkit canvas template scope.
14 +
15 +use Elementor\Plugin as Elementor;
16 +
17 +$is_global_checkout = apply_filters( 'sellkit_global_checkout_activated', false );
18 +$header_template = apply_filters( 'sellkit_global_checkout_header_applied_id', 0 );
19 +$footer_template = apply_filters( 'sellkit_global_checkout_footer_applied_id', 0 );
20 +
21 +if ( $is_global_checkout ) {
22 + remove_action( 'jupiterx_main_content_before_markup', 'jupiterx_wc_add_steps' );
23 +}
12 24 ?>
13 25
14 26 <html <?php language_attributes(); ?> class="no-js">
15 27 <head>
@@ -21,9 +33,18 @@
21 33
22 34 <body <?php body_class( 'sellkit' ); ?>>
23 35
24 36 <?php wp_body_open(); ?>
37 + <?php
38 + if ( $is_global_checkout && 'default' === $header_template ) {
39 + get_header();
40 + }
25 41
42 + if ( $is_global_checkout && intval( $header_template ) > 0 ) {
43 + $content = Elementor::instance()->frontend->get_builder_content_for_display( intval( $header_template ), true );
44 + echo do_shortcode( $content );
45 + }
46 + ?>
26 47 <div class="sellkit-container" >
27 48
28 49 <?php
29 50 while ( have_posts() ) :
@@ -33,7 +54,17 @@
33 54
34 55 endwhile;
35 56 ?>
36 57 </div>
58 + <?php
59 + if ( $is_global_checkout && 'default' === $footer_template ) {
60 + get_footer();
61 + }
62 +
63 + if ( $is_global_checkout && intval( $footer_template ) > 0 ) {
64 + $content = Elementor::instance()->frontend->get_builder_content_for_display( intval( $footer_template ), true );
65 + echo do_shortcode( $content );
66 + }
67 + ?>
37 68 <?php wp_footer(); ?>
38 69 </body>
39 70 </html>