wordpress/wp-content/plugins/simple-image-sizes/classes/admin/Main.php
/**
	 * Register all the assets for the admin
	 */
Register all the assets for the admin
Register all the assets for the admin
public static function register_assets() {
		$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG === true ? '' : '.min';
		wp_register_script(
			'sis_js', SIS_URL . 'assets/js/dist/app' . $suffix . '.js', [
			'jquery',
			'jquery-ui-button',
			'jquery-ui-progressbar',
			'underscore',
		], SIS_VERSION
		);
		wp_localize_script( 'sis_js', 'sis', self::localize_vars() );
		wp_enqueue_style( 'sis_css', SIS_URL . 'assets/css/sis-style' . $suffix . '.css', [], SIS_VERSION );
	}
public static function register_assets ( ) { $ suffix = defined ( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG === true ? '' : '.min' ; wp_register_script ( 'sis_js' , SIS_URL . 'assets/js/dist/app' . $ suffix . '.js' , [ 'jquery' , 'jquery-ui-button' , 'jquery-ui-progressbar' , 'underscore' , ] , SIS_VERSION ) ; wp_localize_script ( 'sis_js' , 'sis' , self :: localize_vars ( ) ) ; wp_enqueue_style ( 'sis_css' , SIS_URL . 'assets/css/sis-style' . $ suffix . '.css' , [ ] , SIS_VERSION ) ; }
Register all the assets for the admin
Register all the assets for the admin
// Add javascript. // Add javascript translations. // Add CSS.