# master-addons/3.1.9/inc/admin/theme-builder/templates/views/ma-canvas.php

Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder &amp; Template Kits, version 3.1.9. 45 lines.

- Page: https://pluginprobe.com/plugins/master-addons/3.1.9/code/inc/admin/theme-builder/templates/views/ma-canvas.php
- Raw: https://pluginprobe.com/plugins/master-addons/3.1.9/raw/inc/admin/theme-builder/templates/views/ma-canvas.php
- Modified: 2026-05-19T13:15:32+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/master-addons/3.1.9/code/inc/admin/theme-builder/templates/views/ma-canvas.php#L10-L20`.

```php
<?php
/**
 * Master Addons Canvas Template
 */

use MasterAddons\Inc\Admin\Theme_Builder\Theme_Builder;

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

// Get the template ID that was stored in wp_query
global $wp_query;
$template_id = $wp_query->get( 'master_template_id' );

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
	<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
		<title>
			<?php echo esc_html(wp_get_document_title()); ?>
		</title>
	<?php endif; ?>
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<?php
do_action( 'wp_body_open' );

// Render Master Addons template content
if ( $template_id && class_exists( 'MasterAddons\Inc\Admin\Theme_Builder\Theme_Builder' ) ) {
	echo Theme_Builder::render_elementor_content( $template_id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- render_elementor_content() returns sanitized Elementor/wp_kses_post markup
} else {
	echo '<p>Master Addons template system not available.</p>';
}

wp_footer();
?>

</body>
</html>
```
