?AlkantarClanX12

Your IP : 216.73.217.134


Current Path : /home/r/a/n/rankinh/lynkandco/wp-content/plugins/nexteuv-plus/elementor/
Upload File :
Current File : /home/r/a/n/rankinh/lynkandco/wp-content/plugins/nexteuv-plus/elementor/index.php

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

if (! class_exists ( 'NextEuvPlusElementor' )) {
	/**
	 *
	 * @author iamdesigning11
	 *
	 */
	class NextEuvPlusElementor {

        private static $_instance = null;

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

            return self::$_instance;
        }

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

        function register_init() {
            if(!did_action( 'elementor/loaded' )) {
                return;
            }

            add_action( 'elementor/elements/categories_registered', array( $this, 'register_category' ) );
        }

        function register_category( $elements_manager ) {
            $elements_manager->add_category(
                'nexteuv-widgets', array(
                    'title' => esc_html__( 'NextEuv', 'nexteuv-plus' ),
                    'icon'  => 'font'
                )
            );
        }

        function register_widgets( $widgets_manager ) {
            require NEXTEUV_PLUS_DIR_PATH . 'elementor/class-common-widget-base.php';
        }

        function enqueue_assets() {
            wp_enqueue_style( 'nexteuv-plus-elementor', NEXTEUV_PLUS_DIR_URL . 'elementor/assets/css/elementor.css', false, NEXTEUV_PLUS_VERSION, 'all');
        }

	}
}

NextEuvPlusElementor::instance();