classes/PodsAdmin.php
public function admin_head() {

		wp_register_script( 'pods-floatmenu', PODS_URL . 'ui/js/floatmenu.js', array(), PODS_VERSION );

		wp_register_script( 'pods-admin-importer', PODS_URL . 'ui/js/admin-importer.js', array(), PODS_VERSION );

		wp_register_script( 'pods-upgrade', PODS_URL . 'ui/js/jquery.pods.upgrade.js', array(), PODS_VERSION );

		wp_register_script( 'pods-migrate', PODS_URL . 'ui/js/jquery.pods.migrate.js', array(), PODS_VERSION );

		// @codingStandardsIgnoreLine
		if ( isset( $_GET['page'] ) ) {
			// @codingStandardsIgnoreLine
			$page = $_GET['page'];
			if ( 'pods' === $page || ( false !== strpos( $page, 'pods-' ) && 0 === strpos( $page, 'pods-' ) ) ) {
				?>
				<script type="text/javascript">
					var PODS_URL = "<?php echo esc_js( PODS_URL ); ?>";
				</script>
				<?php
				wp_enqueue_script( 'jquery' );
				wp_enqueue_script( 'jquery-ui-core' );
				wp_enqueue_script( 'jquery-ui-sortable' );

				wp_enqueue_script( 'pods-floatmenu' );

				wp_enqueue_script( 'jquery-qtip2' );
				wp_enqueue_script( 'pods-qtip-init' );

				wp_enqueue_script( 'pods' );

				if ( 0 === strpos( $page, 'pods-manage-' ) || 0 === strpos( $page, 'pods-add-new-' ) ) {
					wp_enqueue_script( 'post' );
				} elseif ( 0 === strpos( $page, 'pods-settings-' ) ) {
					wp_enqueue_script( 'post' );
				}

				if ( 'pods-advanced' === $page ) {
					wp_register_script( 'pods-advanced', PODS_URL . 'ui/js/advanced.js', array(), PODS_VERSION );
					wp_enqueue_script( 'jquery-ui-effects-core', PODS_URL . 'ui/js/jquery-ui/jquery.effects.core.js', array( 'jquery' ), '1.8.8' );
					wp_enqueue_script( 'jquery-ui-effects-fade', PODS_URL . 'ui/js/jquery-ui/jquery.effects.fade.js', array( 'jquery' ), '1.8.8' );
					wp_enqueue_script( 'jquery-ui-dialog' );
					wp_enqueue_script( 'pods-advanced' );
				} elseif ( 'pods-packages' === $page ) {
					wp_enqueue_style( 'pods-wizard' );
				} elseif ( 'pods-wizard' === $page || 'pods-upgrade' === $page || ( in_array(
					$page, array(
						'pods',
						'pods-add-new',
					), true
				) && in_array(
					pods_v( 'action', 'get', 'manage' ), array(
						'add',
						'manage',
					), true
				) ) ) {
					wp_enqueue_style( 'pods-wizard' );

					if ( 'pods-upgrade' === $page ) {
						wp_enqueue_script( 'pods-upgrade' );
					}
				}//end if
			}//end if
		}//end if

		/**
		 * Filter to disable default loading of the DFV script. By default, Pods
		 * will always enqueue the DFV script if is_admin()
		 *
		 * Example: add_filter( 'pods_default_enqueue_dfv', '__return_false');
		 *
		 * @param bool Whether or not to enqueue by default
		 *
		 * @since 2.7.10
		 */
		if ( apply_filters( 'pods_default_enqueue_dfv', true ) ) {
			wp_enqueue_script( 'pods-dfv' );
		}

		// New Styles Enqueue
		wp_enqueue_style( 'pods-styles' );
	}
public function admin_head() {

		wp_register_script( 'pods-floatmenu', PODS_URL . 'ui/js/floatmenu.js', array(), PODS_VERSION );

		wp_register_script( 'pods-admin-importer', PODS_URL . 'ui/js/admin-importer.js', array(), PODS_VERSION );

		wp_register_script( 'pods-upgrade', PODS_URL . 'ui/js/jquery.pods.upgrade.js', array(), PODS_VERSION );

		wp_register_script( 'pods-migrate', PODS_URL . 'ui/js/jquery.pods.migrate.js', array(), PODS_VERSION );

		// @codingStandardsIgnoreLine
		if ( isset( $_GET['page'] ) ) {
			// @codingStandardsIgnoreLine
			$page = $_GET['page'];
			if ( 'pods' === $page || ( false !== strpos( $page, 'pods-' ) && 0 === strpos( $page, 'pods-' ) ) ) {
				?>
				<script type="text/javascript">
					var PODS_URL = "<?php echo esc_js( PODS_URL ); ?>";
				</script>
				<?php
				wp_enqueue_script( 'jquery' );
				wp_enqueue_script( 'jquery-ui-core' );
				wp_enqueue_script( 'jquery-ui-sortable' );

				wp_enqueue_script( 'pods-floatmenu' );

				wp_enqueue_script( 'jquery-qtip2' );
				wp_enqueue_script( 'pods-qtip-init' );

				wp_enqueue_script( 'pods' );

				if ( 0 === strpos( $page, 'pods-manage-' ) || 0 === strpos( $page, 'pods-add-new-' ) ) {
					wp_enqueue_script( 'post' );
				} elseif ( 0 === strpos( $page, 'pods-settings-' ) ) {
					wp_enqueue_script( 'post' );
				}

				if ( 'pods-advanced' === $page ) {
					wp_register_script( 'pods-advanced', PODS_URL . 'ui/js/advanced.js', array(), PODS_VERSION );
					wp_enqueue_script( 'jquery-ui-effects-core', PODS_URL . 'ui/js/jquery-ui/jquery.effects.core.js', array( 'jquery' ), '1.8.8' );
					wp_enqueue_script( 'jquery-ui-effects-fade', PODS_URL . 'ui/js/jquery-ui/jquery.effects.fade.js', array( 'jquery' ), '1.8.8' );
					wp_enqueue_script( 'jquery-ui-dialog' );
					wp_enqueue_script( 'pods-advanced' );
				} elseif ( 'pods-packages' === $page ) {
					wp_enqueue_style( 'pods-wizard' );
				} elseif ( 'pods-wizard' === $page || 'pods-upgrade' === $page || ( in_array(
					$page, array(
						'pods',
						'pods-add-new',
					), true
				) && in_array(
					pods_v( 'action', 'get', 'manage' ), array(
						'add',
						'manage',
					), true
				) ) ) {
					wp_enqueue_style( 'pods-wizard' );

					if ( 'pods-upgrade' === $page ) {
						wp_enqueue_script( 'pods-upgrade' );
					}
				}//end if
			}//end if
		}//end if

		/**
		 * Filter to disable default loading of the DFV script. By default, Pods
		 * will always enqueue the DFV script if is_admin()
		 *
		 * Example: add_filter( 'pods_default_enqueue_dfv', '__return_false');
		 *
		 * @param bool Whether or not to enqueue by default
		 *
		 * @since 2.7.10
		 */
		if ( apply_filters( 'pods_default_enqueue_dfv', true ) ) {
			wp_enqueue_script( 'pods-dfv' );
		}

		// New Styles Enqueue
		wp_enqueue_style( 'pods-styles' );
	}
public function admin_head ( ) { wp_register_script ( 'pods-floatmenu' , PODS_URL . 'ui/js/floatmenu.js' , array ( ) , PODS_VERSION ) ; wp_register_script ( 'pods-admin-importer' , PODS_URL . 'ui/js/admin-importer.js' , array ( ) , PODS_VERSION ) ; wp_register_script ( 'pods-upgrade' , PODS_URL . 'ui/js/jquery.pods.upgrade.js' , array ( ) , PODS_VERSION ) ; wp_register_script ( 'pods-migrate' , PODS_URL . 'ui/js/jquery.pods.migrate.js' , array ( ) , PODS_VERSION ) ; // @codingStandardsIgnoreLine if ( isset ( $ _GET [ 'page' ] ) ) { // @codingStandardsIgnoreLine $ page = $ _GET [ 'page' ] ; if ( 'pods' === $ page || ( false !== strpos ( $ page , 'pods-' ) && 0 === strpos ( $ page , 'pods-' ) ) ) { ?>
				<script type="text/javascript">
					var PODS_URL = "<?php echo esc_js ( PODS_URL ) ; ?>";
				</script>
				<?php wp_enqueue_script ( 'jquery' ) ; wp_enqueue_script ( 'jquery-ui-core' ) ; wp_enqueue_script ( 'jquery-ui-sortable' ) ; wp_enqueue_script ( 'pods-floatmenu' ) ; wp_enqueue_script ( 'jquery-qtip2' ) ; wp_enqueue_script ( 'pods-qtip-init' ) ; wp_enqueue_script ( 'pods' ) ; if ( 0 === strpos ( $ page , 'pods-manage-' ) || 0 === strpos ( $ page , 'pods-add-new-' ) ) { wp_enqueue_script ( 'post' ) ; } elseif ( 0 === strpos ( $ page , 'pods-settings-' ) ) { wp_enqueue_script ( 'post' ) ; } if ( 'pods-advanced' === $ page ) { wp_register_script ( 'pods-advanced' , PODS_URL . 'ui/js/advanced.js' , array ( ) , PODS_VERSION ) ; wp_enqueue_script ( 'jquery-ui-effects-core' , PODS_URL . 'ui/js/jquery-ui/jquery.effects.core.js' , array ( 'jquery' ) , '1.8.8' ) ; wp_enqueue_script ( 'jquery-ui-effects-fade' , PODS_URL . 'ui/js/jquery-ui/jquery.effects.fade.js' , array ( 'jquery' ) , '1.8.8' ) ; wp_enqueue_script ( 'jquery-ui-dialog' ) ; wp_enqueue_script ( 'pods-advanced' ) ; } elseif ( 'pods-packages' === $ page ) { wp_enqueue_style ( 'pods-wizard' ) ; } elseif ( 'pods-wizard' === $ page || 'pods-upgrade' === $ page || ( in_array ( $ page , array ( 'pods' , 'pods-add-new' , ) , true ) && in_array ( pods_v ( 'action' , 'get' , 'manage' ) , array ( 'add' , 'manage' , ) , true ) ) ) { wp_enqueue_style ( 'pods-wizard' ) ; if ( 'pods-upgrade' === $ page ) { wp_enqueue_script ( 'pods-upgrade' ) ; } } //end if } //end if } //end if /**
		 * Filter to disable default loading of the DFV script. By default, Pods
		 * will always enqueue the DFV script if is_admin()
		 *
		 * Example: add_filter( 'pods_default_enqueue_dfv', '__return_false');
		 *
		 * @param bool Whether or not to enqueue by default
		 *
		 * @since 2.7.10
		 */ if ( apply_filters ( 'pods_default_enqueue_dfv' , true ) ) { wp_enqueue_script ( 'pods-dfv' ) ; } // New Styles Enqueue wp_enqueue_style ( 'pods-styles' ) ; }
Attach requirements to admin header

@since 2.0.0
Attach requirements to admin header