navasena/wp-content/themes/thinkai/templates/footer/footer.php

33 lines
804 B
PHP
Raw Normal View History

2024-07-31 13:12:38 +07:00
<?php
/**
* Footer Template File
*
* @package THINKAI
* @author Webiane
* @version 1.0
*/
$options = thinkai_WSH()->option();
$back = $options->get( 'footer_background' );
$back = thinkai_set( $back, 'url', THINKAI_URI . 'assets/images/parallax.png' );
$s_type = '';
$e_tpl = '';
if( is_singular() ) {
$s_type = get_post_meta( $page_id, 'footer_source_type', true );
$e_tpl = get_post_meta( $page_id, 'footer_elementor_template', true );
}
if( $s_type !== 'e' ) {
$s_type = $options->get('footer_source_type');
$e_tpl = $options->get('footer_elementor_template');
}
if ( class_exists( '\Elementor\Plugin' ) AND $s_type == 'e' AND $e_tpl ) {
echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $e_tpl );
} else {
do_action( 'thinkai_main_footer' );
}