web/wp-content/plugins/caldera-forms/classes/admin/assets.php
/**
	 * Register all scripts for Caldera Forms admin
	 *
	 * @since 1.5.0
	 */
Register all scripts for Caldera Forms admin
@since 1.5.0
Register all scripts for Caldera Forms admin @since 1 . 5 . 0
public static function register_scripts(){
		$version = Caldera_Forms::VERSION;
		Caldera_Forms_Render_Assets::maybe_validator_i18n( true );
		wp_register_script( self::slug( 'shortcode-insert' ), Caldera_Forms_Render_Assets::make_url( 'shortcode-insert' ), array( 'jquery', 'wp-color-picker' ), $version );
		wp_register_script( self::slug( 'baldrick' ), Caldera_Forms_Render_Assets::make_url( 'wp-baldrick-full' ), array( 'jquery' ), $version );
		wp_register_script( self::slug( 'admin' ), Caldera_Forms_Render_Assets::make_url( 'admin' ), array(
			self::slug( 'baldrick' ),
			Caldera_Forms_Render_Assets::make_slug( 'conditionals' ),
			'wp-pointer',
			'password-strength-meter'
		), $version );
		if( Caldera_Forms_Render_Assets::should_minify() ){
			wp_register_script( Caldera_Forms_Render_Assets::make_slug( 'inputmask' ), Caldera_Forms_Render_Assets::make_url( 'inputmask' ), array( 'jquery' ), $version );
		}
		wp_register_script( self::slug( 'edit-fields' ), Caldera_Forms_Render_Assets::make_url( 'fields' ), array(
			'jquery',
			'wp-color-picker',
			Caldera_Forms_Render_Assets::make_slug( 'inputmask' )
		), $version );
		wp_register_script( self::slug( 'edit-editor' ), CFCORE_URL . 'assets/js/edit.js', array( 'jquery', 'wp-color-picker' ), $version );
		wp_register_script( self::slug(  'support-page' ), Caldera_Forms_Render_Assets::make_url( 'support-page' ), array( 'jquery' ), $version );
		wp_localize_script( self::slug( 'edit-fields' ), 'CF_ADMIN_TOOLTIPS', self::get_tooltips() );
		do_action( 'caldera_forms_admin_assets_scripts_registered' );
	}
public static function register_scripts ( ) { $ version = Caldera_Forms :: VERSION ; Caldera_Forms_Render_Assets :: maybe_validator_i18n ( true ) ; wp_register_script ( self :: slug ( 'shortcode-insert' ) , Caldera_Forms_Render_Assets :: make_url ( 'shortcode-insert' ) , array ( 'jquery' , 'wp-color-picker' ) , $ version ) ; wp_register_script ( self :: slug ( 'baldrick' ) , Caldera_Forms_Render_Assets :: make_url ( 'wp-baldrick-full' ) , array ( 'jquery' ) , $ version ) ; wp_register_script ( self :: slug ( 'admin' ) , Caldera_Forms_Render_Assets :: make_url ( 'admin' ) , array ( self :: slug ( 'baldrick' ) , Caldera_Forms_Render_Assets :: make_slug ( 'conditionals' ) , 'wp-pointer' , 'password-strength-meter' ) , $ version ) ; if ( Caldera_Forms_Render_Assets :: should_minify ( ) ) { wp_register_script ( Caldera_Forms_Render_Assets :: make_slug ( 'inputmask' ) , Caldera_Forms_Render_Assets :: make_url ( 'inputmask' ) , array ( 'jquery' ) , $ version ) ; } wp_register_script ( self :: slug ( 'edit-fields' ) , Caldera_Forms_Render_Assets :: make_url ( 'fields' ) , array ( 'jquery' , 'wp-color-picker' , Caldera_Forms_Render_Assets :: make_slug ( 'inputmask' ) ) , $ version ) ; wp_register_script ( self :: slug ( 'edit-editor' ) , CFCORE_URL . 'assets/js/edit.js' , array ( 'jquery' , 'wp-color-picker' ) , $ version ) ; wp_register_script ( self :: slug ( 'support-page' ) , Caldera_Forms_Render_Assets :: make_url ( 'support-page' ) , array ( 'jquery' ) , $ version ) ; wp_localize_script ( self :: slug ( 'edit-fields' ) , 'CF_ADMIN_TOOLTIPS' , self :: get_tooltips ( ) ) ; do_action ( 'caldera_forms_admin_assets_scripts_registered' ) ; }
Register all scripts for Caldera Forms admin
 @since 1.5.0
Register all scripts for Caldera Forms admin @since 1 . 5 . 0
//this is bad, but fixes -> https://github.com/CalderaWP/Caldera-Forms/issues/1141 /**
		 * Runs after scripts are registered for Caldera Forms admin
		 *
		 * @since 1.5.0
		 */