web/wp-content/plugins/caldera-forms/classes/admin/assets.php
/**
	 * Load scripts for form editor panels
	 *
	 * @since 1.5.0
	 */
Load scripts for form editor panels
@since 1.5.0
Load scripts for form editor panels @since 1 . 5 . 0
public static function panels(){
		$panels = Caldera_Forms_Admin_Panel::get_panels();
		if( ! empty( $panels ) ){
			foreach ( $panels as $panel ){
				if( ! empty( $panel[ 'setup' ][ 'scripts' ] ) ){
					foreach( $panel[ 'setup' ][ 'scripts' ] as $script ){
						if( filter_var( $script, FILTER_VALIDATE_URL ) ){
							self::enqueue_script( $script );
						}else{
							wp_enqueue_script( $script );
						}
					}
					foreach( $panel[ 'setup' ][ 'styles' ] as $style ){
						if( filter_var( $style, FILTER_VALIDATE_URL ) ){
							self::enqueue_style( $style );
						}else{
							wp_enqueue_style( $style );
						}
					}
				}
			}
		}
	}
public static function panels ( ) { $ panels = Caldera_Forms_Admin_Panel :: get_panels ( ) ; if ( ! empty ( $ panels ) ) { foreach ( $ panels as $ panel ) { if ( ! empty ( $ panel [ 'setup' ] [ 'scripts' ] ) ) { foreach ( $ panel [ 'setup' ] [ 'scripts' ] as $ script ) { if ( filter_var ( $ script , FILTER_VALIDATE_URL ) ) { self :: enqueue_script ( $ script ) ; } else { wp_enqueue_script ( $ script ) ; } } foreach ( $ panel [ 'setup' ] [ 'styles' ] as $ style ) { if ( filter_var ( $ style , FILTER_VALIDATE_URL ) ) { self :: enqueue_style ( $ style ) ; } else { wp_enqueue_style ( $ style ) ; } } } } } }
Load scripts for form editor panels
 @since 1.5.0
Load scripts for form editor panels @since 1 . 5 . 0