| Server IP : 162.214.67.83 / Your IP : 216.73.217.9 Web Server : Apache System : Linux dedi-13542965.clustter.com.br 5.14.0-687.20.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 30 06:22:49 EDT 2026 x86_64 User : pjacortinas ( 1096) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/pjacortinas/www/wp-content/plugins/wp-whatsapp-chat/lib/controllers/ |
Upload File : |
<?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;
}
}