'html5,silverlight,flash,html4',
'browse_button' => 'icon-plupload-browse-button',
'container' => 'icon-plupload-upload-ui',
'drop_element' => 'icon-drag-drop-area',
'file_data_name' => 'icon-async-upload',
'multiple_queues' => true,
'url' => admin_url('admin-ajax.php'),
'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'),
'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'),
'filters' => array(array('title' => __( "Allowed Files" , "download-manager" ), 'extensions' => 'png, jpg, gif')),
'multipart' => true,
'urlstream_upload' => true,
// additional post data to send to our ajax hook
'multipart_params' => array(
'_ajax_nonce' => wp_create_nonce('icon-upload'),
'action' => 'icon_upload', // the ajax action name
),
);
// we should probably not apply this filter, plugins may expect wp's media uploader...
$plupload_init = apply_filters('plupload_init', $plupload_init);
?>
" value="ID,'__wpdm_icon', true)); ?>" type="text" name="file[icon]" class="form-control" >
; ?>)
$value): $tmpvar = explode(".",$value['file']); $ext = strtolower(end($tmpvar)); if(in_array($ext,$img)): ?>