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' ); }