# shopbuilder/2.2.2/page-templates/elementor-canvas.php

ShopBuilder – WooCommerce Builder For Elementor, version 2.2.2. 53 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/2.2.2/code/page-templates/elementor-canvas.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/2.2.2/raw/page-templates/elementor-canvas.php
- Modified: 2024-09-24T09:16:38+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.2/code/page-templates/elementor-canvas.php#L10-L20`.

```php
<?php

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

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

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

?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
		<title><?php echo wp_get_document_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></title>
	<?php endif; ?>
	<?php wp_head(); ?>
	<?php
	// Keep the following line after `wp_head()` call, to ensure it's not overridden by another templates.
	Utils::print_unescaped_internal_string( Utils::get_meta_viewport( 'canvas' ) );
	?>
</head>
<body <?php body_class(); ?>>
	<?php
	    Elementor\Modules\PageTemplates\Module::body_open();
        $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' );
	wp_footer();
	?>
	</body>
</html>

```
