0 ): $elementor = get_post_meta( $footer_template_part, '_elementor_edit_mode', true ); if(class_exists('Elementor\Plugin') && $elementor){ $footer_template_part = Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $footer_template_part ); }else{ // Get Polylang Translation of template if ( function_exists( 'pll_get_post' ) ) { $footer_template_part = pll_get_post( $footer_template_part, pll_current_language() ); } // Get template content if ( ! empty( $footer_template_part ) ) { $template = get_post( $footer_template_part ); if ( $template && ! is_wp_error( $template ) ) { $footer_template_part = do_shortcode($template->post_content); } } } ?>