<?php
/*----------------------------------------------------------------------------*\
	MPC_COLORPICKER Param
\*----------------------------------------------------------------------------*/

vc_add_shortcode_param( 'mpc_colorpicker', 'mpc_colorpicker_settings', MPC_MASSIVE_URL . '/assets/js/mpc-params.js' );
function mpc_colorpicker_settings( $settings, $value ) {

	return sprintf('<input id="%1$s" name="%1$s" class="wpb_vc_param_value %1$s %2$s_field" type="text" value="%3$s">',
			esc_attr( $settings['param_name'] ),
			esc_attr( $settings['type'] ),
			esc_attr( $value )
	);
}
