web/wp-content/plugins/caldera-forms/classes/admin.php
/**
	 * Register and enqueue admin-specific style sheet.
	 *
	 * @return    null
	 */
Register and enqueue admin-specific style sheet.
@return    null
Register and enqueue admin - specific style sheet . @return null
public function enqueue_admin_stylescripts() {
		$screen = get_current_screen();
		Caldera_Forms_Render_Assets::register();
		Caldera_Forms_Admin_Assets::register_scripts();
		Caldera_Forms_Admin_Assets::register_styles();
		wp_enqueue_style( $this->plugin_slug . '-admin-icon-styles', CFCORE_URL . 'assets/css/dashicon.css', array(), self::VERSION );
		if ( $screen->base === 'post' ) {
			Caldera_Forms_Admin_Assets::post_editor();
		}
		if ( ! in_array( $screen->base, $this->screen_prefix ) ) {
			return;
		}
		add_action( 'admin_head', array( __CLASS__, 'remove_notice_actions' ) );
		if( self::is_page( 'caldera-forms-extend' ) ){
			add_action( 'admin_enqueue_scripts', array( 'Caldera_Forms_Admin_Extend', 'scripts' ), 55 );
			return;
		}
		Caldera_Forms_Admin_Assets::admin_common();
		if ( Caldera_Forms_Admin::is_edit() ) {
			Caldera_Forms_Admin_Assets::form_editor();
		} else {
			Caldera_Forms_Render_Assets::enqueue_all_fields();
			if ( ! empty( $_GET[ 'edit-entry' ] ) ) {
				Caldera_Forms_Render_Assets::enqueue_style( 'grid' );
			}else{
                $clippy = new Caldera_Forms_Admin_Clippy( $this->plugin_slug, site_url() );
                $clippy->assets();
            }
		}
		Caldera_Forms_Admin_Assets::panels();
	}
public function enqueue_admin_stylescripts ( ) { $ screen = get_current_screen ( ) ; Caldera_Forms_Render_Assets :: register ( ) ; Caldera_Forms_Admin_Assets :: register_scripts ( ) ; Caldera_Forms_Admin_Assets :: register_styles ( ) ; wp_enqueue_style ( $ this -> plugin_slug . '-admin-icon-styles' , CFCORE_URL . 'assets/css/dashicon.css' , array ( ) , self :: VERSION ) ; if ( $ screen -> base === 'post' ) { Caldera_Forms_Admin_Assets :: post_editor ( ) ; } if ( ! in_array ( $ screen -> base , $ this -> screen_prefix ) ) { return ; } add_action ( 'admin_head' , array ( __CLASS__ , 'remove_notice_actions' ) ) ; if ( self :: is_page ( 'caldera-forms-extend' ) ) { add_action ( 'admin_enqueue_scripts' , array ( 'Caldera_Forms_Admin_Extend' , 'scripts' ) , 55 ) ; return ; } Caldera_Forms_Admin_Assets :: admin_common ( ) ; if ( Caldera_Forms_Admin :: is_edit ( ) ) { Caldera_Forms_Admin_Assets :: form_editor ( ) ; } else { Caldera_Forms_Render_Assets :: enqueue_all_fields ( ) ; if ( ! empty ( $ _GET [ 'edit-entry' ] ) ) { Caldera_Forms_Render_Assets :: enqueue_style ( 'grid' ) ; } else { $ clippy = new Caldera_Forms_Admin_Clippy ( $ this -> plugin_slug , site_url ( ) ) ; $ clippy -> assets ( ) ; } } Caldera_Forms_Admin_Assets :: panels ( ) ; }
Register and enqueue admin-specific style sheet.
Register and enqueue admin - specific style sheet .