components/Templates/class-pods_templates.php
public function enqueue_admin_stylescripts() {

		$screen = get_current_screen();

		if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
			return;
		}

		if ( in_array( $screen->id, $this->plugin_screen_hook_suffix, true ) ) {
			$slug = array_search( $screen->id, $this->plugin_screen_hook_suffix );
			// $configfiles = glob( $this->get_path( __FILE__ ) .'configs/'.$slug.'-*.php' );
			if ( file_exists( $this->get_path( __FILE__ ) . 'configs/fieldgroups-' . $slug . '.php' ) ) {
				include $this->get_path( __FILE__ ) . 'configs/fieldgroups-' . $slug . '.php';
			}

			if ( ! empty( $configfiles ) ) {

				foreach ( $configfiles as $key => $fieldfile ) {
					include $fieldfile;
					if ( ! empty( $group['scripts'] ) ) {
						foreach ( $group['scripts'] as $script ) {
							wp_enqueue_script( $this->plugin_slug . '-' . strtok( $script, '.' ), $this->get_url( 'assets/js/' . $script, __FILE__ ), array( 'jquery' ) );
						}
					}
					if ( ! empty( $group['styles'] ) ) {
						foreach ( $group['styles'] as $style ) {
							wp_enqueue_style( $this->plugin_slug . '-' . strtok( $style, '.' ), $this->get_url( 'assets/css/' . $style, __FILE__ ) );
						}
					}
				}
			}
			wp_enqueue_style( $this->plugin_slug . '-admin-styles', $this->get_url( 'assets/css/panel.css', __FILE__ ), array(), self::VERSION );
			wp_enqueue_style( 'pods-codemirror' );
			wp_enqueue_script( $this->plugin_slug . '-admin-scripts', $this->get_url( 'assets/js/panel.js', __FILE__ ), array(), self::VERSION );
			wp_enqueue_script( 'pods_codemirror' );
			wp_enqueue_script( 'pods-codemirror-overlay' );
			wp_enqueue_script( 'pods-codemirror-hints' );
			wp_enqueue_script( $this->plugin_slug . '-cm-editor', $this->get_url( 'assets/js/editor1.js', __FILE__ ), array( 'jquery' ), self::VERSION, true );
			wp_enqueue_script( 'pods-codemirror-mode-xml' );
			wp_enqueue_script( 'pods-codemirror-mode-html' );
			wp_enqueue_script( 'pods-codemirror-mode-css' );
		}//end if

	}
public function enqueue_admin_stylescripts() {

		$screen = get_current_screen();

		if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
			return;
		}

		if ( in_array( $screen->id, $this->plugin_screen_hook_suffix, true ) ) {
			$slug = array_search( $screen->id, $this->plugin_screen_hook_suffix );
			// $configfiles = glob( $this->get_path( __FILE__ ) .'configs/'.$slug.'-*.php' );
			if ( file_exists( $this->get_path( __FILE__ ) . 'configs/fieldgroups-' . $slug . '.php' ) ) {
				include $this->get_path( __FILE__ ) . 'configs/fieldgroups-' . $slug . '.php';
			}

			if ( ! empty( $configfiles ) ) {

				foreach ( $configfiles as $key => $fieldfile ) {
					include $fieldfile;
					if ( ! empty( $group['scripts'] ) ) {
						foreach ( $group['scripts'] as $script ) {
							wp_enqueue_script( $this->plugin_slug . '-' . strtok( $script, '.' ), $this->get_url( 'assets/js/' . $script, __FILE__ ), array( 'jquery' ) );
						}
					}
					if ( ! empty( $group['styles'] ) ) {
						foreach ( $group['styles'] as $style ) {
							wp_enqueue_style( $this->plugin_slug . '-' . strtok( $style, '.' ), $this->get_url( 'assets/css/' . $style, __FILE__ ) );
						}
					}
				}
			}
			wp_enqueue_style( $this->plugin_slug . '-admin-styles', $this->get_url( 'assets/css/panel.css', __FILE__ ), array(), self::VERSION );
			wp_enqueue_style( 'pods-codemirror' );
			wp_enqueue_script( $this->plugin_slug . '-admin-scripts', $this->get_url( 'assets/js/panel.js', __FILE__ ), array(), self::VERSION );
			wp_enqueue_script( 'pods_codemirror' );
			wp_enqueue_script( 'pods-codemirror-overlay' );
			wp_enqueue_script( 'pods-codemirror-hints' );
			wp_enqueue_script( $this->plugin_slug . '-cm-editor', $this->get_url( 'assets/js/editor1.js', __FILE__ ), array( 'jquery' ), self::VERSION, true );
			wp_enqueue_script( 'pods-codemirror-mode-xml' );
			wp_enqueue_script( 'pods-codemirror-mode-html' );
			wp_enqueue_script( 'pods-codemirror-mode-css' );
		}//end if

	}
public function enqueue_admin_stylescripts ( ) { $ screen = get_current_screen ( ) ; if ( ! isset ( $ this -> plugin_screen_hook_suffix ) ) { return ; } if ( in_array ( $ screen -> id , $ this -> plugin_screen_hook_suffix , true ) ) { $ slug = array_search ( $ screen -> id , $ this -> plugin_screen_hook_suffix ) ; // $configfiles = glob( $this->get_path( __FILE__ ) .'configs/'.$slug.'-*.php' ); if ( file_exists ( $ this -> get_path ( __FILE__ ) . 'configs/fieldgroups-' . $ slug . '.php' ) ) { include $ this -> get_path ( __FILE__ ) . 'configs/fieldgroups-' . $ slug . '.php' ; } if ( ! empty ( $ configfiles ) ) { foreach ( $ configfiles as $ key => $ fieldfile ) { include $ fieldfile ; if ( ! empty ( $ group [ 'scripts' ] ) ) { foreach ( $ group [ 'scripts' ] as $ script ) { wp_enqueue_script ( $ this -> plugin_slug . '-' . strtok ( $ script , '.' ) , $ this -> get_url ( 'assets/js/' . $ script , __FILE__ ) , array ( 'jquery' ) ) ; } } if ( ! empty ( $ group [ 'styles' ] ) ) { foreach ( $ group [ 'styles' ] as $ style ) { wp_enqueue_style ( $ this -> plugin_slug . '-' . strtok ( $ style , '.' ) , $ this -> get_url ( 'assets/css/' . $ style , __FILE__ ) ) ; } } } } wp_enqueue_style ( $ this -> plugin_slug . '-admin-styles' , $ this -> get_url ( 'assets/css/panel.css' , __FILE__ ) , array ( ) , self :: VERSION ) ; wp_enqueue_style ( 'pods-codemirror' ) ; wp_enqueue_script ( $ this -> plugin_slug . '-admin-scripts' , $ this -> get_url ( 'assets/js/panel.js' , __FILE__ ) , array ( ) , self :: VERSION ) ; wp_enqueue_script ( 'pods_codemirror' ) ; wp_enqueue_script ( 'pods-codemirror-overlay' ) ; wp_enqueue_script ( 'pods-codemirror-hints' ) ; wp_enqueue_script ( $ this -> plugin_slug . '-cm-editor' , $ this -> get_url ( 'assets/js/editor1.js' , __FILE__ ) , array ( 'jquery' ) , self :: VERSION , true ) ; wp_enqueue_script ( 'pods-codemirror-mode-xml' ) ; wp_enqueue_script ( 'pods-codemirror-mode-html' ) ; wp_enqueue_script ( 'pods-codemirror-mode-css' ) ; } //end if }
Register and enqueue admin-specific style sheet.

@return    null
Register and enqueue admin - specific style sheet .