inc/post-meta-box/post-meta-box.php
/**
 * Meta box generator for WordPress
 *
 * Support input types: text, textarea, checkbox, select, radio
 *
 */
Meta box generator for WordPress
Support input types: text, textarea, checkbox, select, radio
Meta box generator for WordPress Support input types : text textarea checkbox select radio
function materia_enqueue_scripts() {
	$mtb_url = get_bloginfo('template_directory').'/inc/post-meta-box/';
	wp_register_style ( 'select2', $mtb_url.'js/select2/select2.css', '', '3.2' );
	wp_register_script ( 'select2', $mtb_url.'js/select2/select2.min.js', array( 'jquery' ), '3.2', true );
	wp_register_script ( 'select2-conf', $mtb_url.'js/select2/select2.conf.js', array( 'jquery' ), '1.0', true );
	wp_enqueue_script( 'select2' );
	wp_enqueue_script( 'select2-conf' );
	wp_enqueue_style( 'select2' );
	wp_enqueue_script( 'media-upload' );
	wp_enqueue_script( 'thickbox' );
	wp_enqueue_style( 'thickbox' ); 
	wp_register_script( 'meta-image', $mtb_url.'js/meta-image.js', array( 'jquery', 'media-upload', 'thickbox' ) ); 
	wp_enqueue_script( 'meta-image' ); 
}
function materia_enqueue_scripts ( ) { $ mtb_url = get_bloginfo ( 'template_directory' ) . '/inc/post-meta-box/' ; wp_register_style ( 'select2' , $ mtb_url . 'js/select2/select2.css' , '' , '3.2' ) ; wp_register_script ( 'select2' , $ mtb_url . 'js/select2/select2.min.js' , array ( 'jquery' ) , '3.2' , true ) ; wp_register_script ( 'select2-conf' , $ mtb_url . 'js/select2/select2.conf.js' , array ( 'jquery' ) , '1.0' , true ) ; wp_enqueue_script ( 'select2' ) ; wp_enqueue_script ( 'select2-conf' ) ; wp_enqueue_style ( 'select2' ) ; wp_enqueue_script ( 'media-upload' ) ; wp_enqueue_script ( 'thickbox' ) ; wp_enqueue_style ( 'thickbox' ) ; wp_register_script ( 'meta-image' , $ mtb_url . 'js/meta-image.js' , array ( 'jquery' , 'media-upload' , 'thickbox' ) ) ; wp_enqueue_script ( 'meta-image' ) ; }
Meta box generator for WordPress
 Support input types: text, textarea, checkbox, select, radio
Meta box generator for WordPress Support input types : text textarea checkbox select radio
// Select2 // Upload