'cx-ui-media-id', 'name' => 'cx-ui-media-name', 'value' => '', 'multi_upload' => true, 'library_type' => '', // image, video, sound 'upload_button_text' => 'Choose Media', 'label' => '', 'class' => '', ); /** * Register control dependencies * * @return [type] [description] */ public function register_depends() { wp_enqueue_media(); } /** * Retrun scripts dependencies list for current control. * * @return array */ public function get_script_depends() { return array( 'jquery-ui-sortable' ); } /** * Render html CX_Control_Media. * * @since 1.0.0 */ public function render() { $html = ''; if ( ! current_user_can( 'upload_files' ) ) { return $html; } $class = implode( ' ', array( $this->settings['class'], ) ); $html .= '