# shopbuilder/2.2.1/page-templates/builder-template.php

ShopBuilder – WooCommerce Builder For Elementor, version 2.2.1. 64 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/2.2.1/code/page-templates/builder-template.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/2.2.1/raw/page-templates/builder-template.php
- Modified: 2024-08-21T06:58:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shopbuilder/2.2.1/code/page-templates/builder-template.php#L10-L20`.

```php
<?php
/**
 * The template to display the Builder content
 *
 * @author  RadiousTheme
 * @package RadiusTheme\SB
 */

use RadiusTheme\SB\Helpers\BuilderFns;
use RadiusTheme\SB\Helpers\Fns;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

do_action( 'rtsb/builder/before/header' );

if ( Fns::check_is_block_theme() ) { ?>
	<!doctype html>
	<html <?php language_attributes(); ?>>
	<head>
		<meta charset="<?php bloginfo( 'charset' ); ?>">
		<?php wp_head(); ?>
	</head>
	<body <?php body_class(); ?>>
	<?php wp_body_open(); ?>
	<div class="wp-site-blocks">
	<?php
	Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"header","className":"site-header"} /-->' ), true );
} else {
	get_header( 'shop' );
}

$parent_class = apply_filters( 'rtsb/builder/wrapper/parent_class', [] );
$type         = apply_filters( 'rtsb/builder/set/current/page/type', '' );

do_action( 'rtsb/builder/after/header' );

?>
<div id="rtsb-builder-content" class="rtsb-builder-content content-invisible <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>">
	<?php
	do_action( 'rtsb/builder/template/before/content' );
	if ( is_singular( BuilderFns::$post_type_tb ) && 'elementor' === Fns::page_edit_with( get_the_ID() ) ) {
		// \Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content();
		the_content();
	} else {
		do_action( 'rtsb/builder/template/main/content' );
	}
	do_action( 'rtsb/builder/template/after/content' );
	?>
</div>
<?php
do_action( 'rtsb/builder/before/footer' );

if ( Fns::check_is_block_theme() ) {
	Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"footer","className":"site-footer"} /-->' ), true );
	echo '</div>';
	wp_footer();
	echo '</body>';
	echo '</html>';
} else {
	get_footer( 'shop' );
}

```
