hello-theme/footer.php
Rami Yushuvaev c919b3ad60
Tweak: Add the option to disable header & footer [ED-12744] (#347)
* Tweak: Add the option to disable header & footer

* Move header & footer filter hook to a separate function
2023-11-30 16:20:37 +02:00

28 lines
616 B
PHP

<?php
/**
* The template for displaying the footer.
*
* Contains the body & html closing tags.
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) {
if ( hello_elementor_display_header_footer() ) {
if ( did_action( 'elementor/loaded' ) && hello_header_footer_experiment_active() ) {
get_template_part( 'template-parts/dynamic-footer' );
} else {
get_template_part( 'template-parts/footer' );
}
}
}
?>
<?php wp_footer(); ?>
</body>
</html>