<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if( !class_exists( 'VougeProPostImageWidget' ) ) {
    class VougeProPostImageWidget {

        private static $_instance = null;

        public static function instance() {
            if ( is_null( self::$_instance ) ) {
                self::$_instance = new self();
            }

            return self::$_instance;
        }

        function __construct() {
            add_action( 'elementor/widgets/register', array( $this, 'register_widgets' ) );
        }

        function register_widgets( $widgets_manager ) {
            require VOUGE_PRO_DIR_PATH. 'modules/post/elementor/widgets/post-feature-image/class-widget-post-feature-image.php';
            $widgets_manager->register( new \Elementor_Post_Feature_Image() );
        }
    }
}

VougeProPostImageWidget::instance();