<?php

/**
 * Sidebar Template
 *
 * @package    WordPress
 * @subpackage INVENTIVE
 * @author     Themekalia
 * @version    1.0
 */

if ( class_exists( '\Elementor\Plugin' ) AND $data->get( 'sidebar_type' ) == 'e' AND $data->get( 'sidebar_elementor' ) ) {
	?>
	
	<?php echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $data->get( 'sidebar_elementor' ) ); ?>
		
        <div class="col-lg-4 col-md-12 col-sm-12 sidebar-side">
        	<div class="blog-sidebar default-sidebar pt_100 pb_50">
                <?php echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $data->get( 'sidebar_elementor' ) ); ?>
            </div>
        </div> 
        
	<?php
	return false;
} else {
	$options = $data->get( 'sidebar' );
}
?>

<?php if ( is_active_sidebar( $options ) ) : ?>
	<div class="col-lg-4 col-md-12 col-sm-12 sidebar-side">
    	<div class="blog-sidebar default-sidebar pt_100 pb_50">
			<?php dynamic_sidebar( $options ); ?>
		</div>
	</div>
<?php endif; ?>
