PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.0.2
ShopBuilder – WooCommerce Builder For Elementor v2.0.2
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
shopbuilder / page-templates / builder-template.php

builder-template.php in ShopBuilder – WooCommerce Builder For Elementor 2.0.2, at page-templates/builder-template.php

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