Custom_Image_Header::js_includes()

最后更新于:2021-11-25 19:46:56

Custom_Image_Header::js_includes()

Set up the enqueue for the JavaScript files.

源文件

文件: gc-admin/includes/class-custom-image-header.php

	public function js_includes() {
		$step = $this->step();

		if ( ( 1 === $step || 3 === $step ) ) {
			gc_enqueue_media();
			gc_enqueue_script( 'custom-header' );
			if ( current_theme_supports( 'custom-header', 'header-text' ) ) {
				gc_enqueue_script( 'gc-color-picker' );
			}
		} elseif ( 2 === $step ) {
			gc_enqueue_script( 'imgareaselect' );
		}
	}