PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.1.3
ShopBuilder – WooCommerce Builder For Elementor v3.1.3
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 3.1.3, at page-templates/builder-template.php

65 lines 1.9 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 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', '' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
36
37 do_action( 'rtsb/builder/after/header' );
38 if ( Fns::content_invisible() ) {
39 $parent_class[] = 'content-invisible';
40 }
41 ?>
42 <div id="rtsb-builder-content" class="rtsb-builder-content <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>">
43 <?php
44 do_action( 'rtsb/builder/template/before/content' );
45 if ( is_singular( BuilderFns::$post_type_tb ) && 'elementor' === Fns::page_edit_with( get_the_ID() ) ) {
46 the_content();
47 } else {
48 do_action( 'rtsb/builder/template/main/content' );
49 }
50 do_action( 'rtsb/builder/template/after/content' );
51 ?>
52 </div>
53 <?php
54 do_action( 'rtsb/builder/before/footer' );
55
56 if ( Fns::check_is_block_theme() ) {
57 Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"footer","className":"site-footer"} /-->' ), true );
58 echo '</div>';
59 wp_footer();
60 echo '</body>';
61 echo '</html>';
62 } else {
63 get_footer( 'shop' );
64 }
65