<?php
/**
 * Sifency Event Archive Canvas
 * Used for rendering Elementor-based event archive layouts.
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
if ( Sifency_Addons_Theme_Builder_Master::sync_environment_state() ) {
	get_header();
	$sifency_addons_template_id = get_query_var( 'sifency_event_archive_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();
}
