<?php

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

use Elementor\TemplateLibrary\Source_Local;

/**
 * Modèle pour afficher le footer des thèmes compatibles
 */

// Theme authors may render something before.
do_action( 'eac_before_render_site_footer', $footer_template_id );

// Filtre wpml
$footer_template_id = apply_filters( 'wpml_object_id', $footer_template_id, Source_Local::CPT, true );

echo \Elementor\Plugin::$instance->frontend->get_builder_content_for_display( $footer_template_id ); // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped

// Theme author may render something after.
do_action( 'eac_after_render_site_footer', $footer_template_id );

wp_footer();
