PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.1.4
ShopBuilder – WooCommerce Builder For Elementor v1.1.4
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | page-templates/builder-template.php +59 -63 2.1.111.1.4 View file →
@@ -1,63 +1,59 @@
1 -<?php
2 -/**
3 - * The template to display the Builder content
4 - *
5 - * @author RadiousTheme
6 - * @package RadiusTheme\SB
7 - */
8 -
9 -use RadiusTheme\SB\Helpers\BuilderFns;
10 -use RadiusTheme\SB\Helpers\Fns;
11 -
12 -if ( ! defined( 'ABSPATH' ) ) {
13 - exit; // Exit if accessed directly.
14 -}
15 -
16 -do_action( 'rtsb/builder/before/header' );
17 -
18 -if ( Fns::check_is_block_theme() ) { ?>
19 - <!doctype html>
20 - <html <?php language_attributes(); ?>>
21 - <head>
22 - <meta charset="<?php bloginfo( 'charset' ); ?>">
23 - <?php wp_head(); ?>
24 - </head>
25 - <body <?php body_class(); ?>>
26 - <?php wp_body_open(); ?>
27 - <div class="wp-site-blocks">
28 - <?php
29 - Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"header","className":"site-header"} /-->' ), true );
30 -} else {
31 - get_header( 'shop' );
32 -}
33 -
34 -$parent_class = apply_filters( 'rtsb/builder/wrapper/parent_class', [] );
35 -$type = apply_filters( 'rtsb/builder/set/current/page/type', '' );
36 -
37 -do_action( 'rtsb/builder/after/header' );
38 -
39 -?>
40 -<div id="rtsb-builder-content" class="rtsb-builder-content content-invisible <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>">
41 - <?php
42 - do_action( 'rtsb/builder/template/before/content' );
43 - if ( is_singular( BuilderFns::$post_type_tb ) && 'elementor' === Fns::page_edit_with( get_the_ID() ) ) {
44 - // \Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content();
45 - the_content();
46 - } else {
47 - do_action( 'rtsb/builder/template/main/content' );
48 - }
49 - do_action( 'rtsb/builder/template/after/content' );
50 - ?>
51 -</div>
52 -<?php
53 -do_action( 'rtsb/builder/before/footer' );
54 -
55 -if ( Fns::check_is_block_theme() ) {
56 - Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"footer","className":"site-footer"} /-->' ), true );
57 - echo '</div>';
58 - wp_footer();
59 - echo '</body>';
60 - echo '</html>';
61 -} else {
62 - get_footer( 'shop' );
63 -}
1 +<?php
2 +/**
3 + * The template to display the Builder content
4 + *
5 + * @author RadiousTheme
6 + * @package RadiusTheme\SB
7 + */
8 +
9 +use RadiusTheme\SB\Helpers\BuilderFns;
10 +use RadiusTheme\SB\Helpers\Fns;
11 +
12 +if ( ! defined( 'ABSPATH' ) ) {
13 + exit; // Exit if accessed directly.
14 +}
15 +
16 +do_action( 'rtsb/builder/before/header' );
17 +
18 +if ( Fns::check_is_block_theme() ) { ?>
19 + <!doctype html>
20 + <html <?php language_attributes(); ?>>
21 + <head>
22 + <meta charset="<?php bloginfo( 'charset' ); ?>">
23 + <?php wp_head(); ?>
24 + </head>
25 + <body <?php body_class(); ?>>
26 + <?php wp_body_open(); ?>
27 + <div class="wp-site-blocks">
28 + <?php
29 + echo do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"header","className":"site-header"} /-->' );
30 +} else {
31 + get_header( 'shop' );
32 +}
33 +
34 +
35 +$parent_class = apply_filters( 'rtsb/builder/wrapper/parent_class', [] );
36 +?>
37 +<div id="rtsb-builder-content" class="rtsb-builder-content content-invisible <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>">
38 + <?php
39 + do_action( 'rtsb/builder/template/before/content' );
40 + if ( is_singular( BuilderFns::$post_type_tb ) && 'elementor' === Fns::page_edit_with( get_the_ID() ) ) {
41 + \Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content();
42 + } else {
43 + do_action( 'rtsb/builder/template/main/content' );
44 + }
45 + do_action( 'rtsb/builder/template/after/content' );
46 + ?>
47 +</div>
48 +<?php
49 +do_action( 'rtsb/builder/before/footer' );
50 +
51 +if ( Fns::check_is_block_theme() ) {
52 + echo do_blocks( '<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"footer","className":"site-footer"} /-->' );
53 + echo '</div>';
54 + wp_footer();
55 + echo '</body>';
56 + echo '</html>';
57 +} else {
58 + get_footer( 'shop' );
59 +}