File: /home/confeduphaar/public_html/wp-content/plugins/ova-framework/inc/class-shortcode.php
<?php if (!defined( 'ABSPATH' )) exit;
if( !class_exists('Egovt_Shortcode') ){
class Egovt_Shortcode {
public function __construct() {
add_shortcode( 'egovt-elementor-template', array( $this, 'egovt_elementor_template' ) );
}
public function egovt_elementor_template( $atts ){
$atts = extract( shortcode_atts(
array(
'id' => '',
), $atts) );
$args = array(
'id' => $id
);
if( did_action( 'elementor/loaded' ) ){
return Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $id );
}
return;
}
}
}
return new Egovt_Shortcode();