| Server IP : 64.223.137.62 / Your IP : 104.23.197.97 Web Server : Apache/2.4.52 (Ubuntu) System : Linux webserver9 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/cwalakestreet.com/wp-content/plugins/diviflash/customizer/ |
Upload File : |
<?php
namespace DIFL\Customizer;
class Assets {
public function __construct() {
add_action( 'customize_controls_enqueue_scripts', [ $this, 'enqueue_customizer_style' ] );
add_action('wp_enqueue_scripts', [$this,'enqueue_customizer_style'], 999);
add_action( 'customize_controls_enqueue_scripts', [ $this, 'enqueue_customizer_components' ] );
add_action( 'customize_controls_enqueue_scripts', [ $this, 'enqueue_customizer_controls' ] );
}
public function enqueue_customizer_style() {
$plugin_path = plugin_dir_path( __DIR__ );
$plugin_url = plugin_dir_url( __DIR__ );
$path = 'admin/customizer/css/';
$handle = 'difl-customizer';
wp_enqueue_style(
$handle.'-loaders',
$plugin_url . $path . 'loaders.min.css'
);
wp_enqueue_style(
$handle,
$plugin_url . $path . 'customizer-style.css',
['difl-customizer-components']
);
}
public function enqueue_customizer_controls() {
$plugin_path = plugin_dir_path( __DIR__ );
$plugin_url = plugin_dir_url( __DIR__ );
$path = 'admin/customizer/';
$handle = 'difl-customizer-controls';
$dependencies = include_once $plugin_path . $path . 'controls.asset.php';
wp_enqueue_script(
$handle,
$plugin_url . $path . 'controls.js',
$dependencies['dependencies'],
$dependencies['version'], true );
}
public function enqueue_customizer_components() {
$plugin_path = plugin_dir_path( __DIR__ );
$plugin_url = plugin_dir_url( __DIR__ );
$path = 'admin/customizer/';
$handle = 'difl-customizer-components';
$dependencies = include_once $plugin_path . $path . 'components.asset.php';
wp_enqueue_style(
$handle,
$plugin_url . $path . 'style-components.css',
[ 'wp-components' ],
$dependencies['version'] );
}
}
new Assets();