HEX
Server: Apache/2
System: Linux s01 6.1.0-34-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.135-1 (2025-04-25) x86_64
User: beestg (1003)
PHP: 8.3.27
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/beestg/public_html/wp-content/plugins/wp-whatsapp-chat/lib/controllers/class-components.php
<?php

namespace QuadLayers\QLWAPP\Controllers;

class Components {

	protected static $instance;

	private function __construct() {
		add_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ) );
	}

	public function register_scripts() {
		$components = include QLWAPP_PLUGIN_DIR . 'build/components/js/index.asset.php';

		/**
		 * Register components assets
		 */
		wp_register_script(
			'qlwapp-components',
			plugins_url( '/build/components/js/index.js', QLWAPP_PLUGIN_FILE ),
			$components['dependencies'],
			$components['version'],
			true
		);

		wp_register_style(
			'qlwapp-components',
			plugins_url( '/build/components/css/style.css', QLWAPP_PLUGIN_FILE ),
			array(
				'wp-components',
				'media-views',
			),
			QLWAPP_PLUGIN_VERSION
		);
	}

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