<?php
/**
 * Sifency Documentation Single Canvas
 * Used to render Elementor-based single Documentation templates.
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
if ( Sifency_Addons_Theme_Builder_Master::sync_environment_state() ) {
	get_header();
	$sifency_addons_template_id = get_query_var( 'sifency_documentation_single_template_id' );
	if ( $sifency_addons_template_id && class_exists( '\Elementor\Plugin' ) ) {
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor already escapes content internally.
		echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $sifency_addons_template_id );
	}
	get_footer();
}
