Server IP : 10.106.20.8  /  Your IP : 216.73.216.148
Web Server : Apache
System : Linux webm008.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : sixiemesrc ( 611999)
PHP Version : 8.0.30
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/sixiemesrc/new/wp-content/cache/../plugins/gaaga-pro/modules/advance-field/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/sixiemesrc/new/wp-content/cache/../plugins/gaaga-pro/modules/advance-field/index.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

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

        private static $_instance = null;

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

            return self::$_instance;
        }

        function __construct() {
            $this->load_widgets();
            add_action( 'gaaga_after_main_css', array( $this, 'enqueue_css_assets' ), 20 );
            add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_js_assets' ) );
        }

        function load_widgets() {
            add_action( 'widgets_init', array( $this, 'register_widgets_init' ) );
        }

        function register_widgets_init() {
            include_once GAAGA_PRO_DIR_PATH.'modules/advance-field/widget/widget-advance-field.php';
            register_widget('GaaGa_Widget_Advance_Field');
        }
        function enqueue_css_assets() {
            wp_enqueue_style( 'gaaga-pro-advance-field', GAAGA_PRO_DIR_URL . 'modules/advance-field/assets/css/style.css', false, GAAGA_PRO_VERSION, 'all');

        }

        function enqueue_js_assets() {
            
                wp_enqueue_script( 'gaaga-advance-field', GAAGA_PRO_DIR_URL . 'modules/advance-field/assets/js/script.js', array('jquery'), GAAGA_PRO_VERSION, true );
           
        }

    }
}

GaaGaProAdvanceField::instance();