<?php

if (!defined('WPINC')) {
    die();
}

if (!class_exists('SparkConstructionLiteElements')) {

    class SparkConstructionLiteElements {

        private static $instance = null;

        public static function get_instance() {
            
            // If the single instance hasn't been set, set it now.
            if (self::$instance == null) {
                self::$instance = new self;
            }
            return self::$instance;
        }

        public function __construct() {
            // Check if Elementor installed and activated
            if (!did_action('elementor/loaded')) {
                return;
            }
            //get_template_part( 'inc/elements/inc/widget-loader' );
            require get_template_directory() . '/inc/elements/inc/widget-loader.php';

        }

    }

}

/**
 * Returns instanse of the plugin class.
 *
 * @since  1.0.0
 * @return object
 */
if (!function_exists('sparkconstructionlite_themes_elements')) {

    function sparkconstructionlite_themes_elements() {
        
        return SparkConstructionLiteElements::get_instance();
    }

}
sparkconstructionlite_themes_elements();
