<?php
if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( ! class_exists('TLPTeamElementor') ):

	class TLPTeamElementor {
		function __construct() {
			if ( did_action( 'elementor/loaded' ) ) {
				add_action( 'elementor/widgets/widgets_registered', array( $this, 'init' ) );
			}
		}

		function init() {
		    global $TLPteam;
			require_once( $TLPteam->incPath . '/vendor/TlpTeamElementorWidget.php' );

			// Register widget
			\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new TlpTeamElementorWidget() );
		}
	}

endif;