PHP Class WPDKUIControlFileMedia
$item = array(
'type' => WPDKUIControlType::FILE_MEDIA,
'label' => 'Select Media',
'id' => 'id',
'name' => 'name',
'beforelabel' => '',
'afterlabel' => ':',
'value' => 'http://domain.com/sample.jpg',
'attrs' => array(),
'data' => array(),
'class' => array(),
'style' => '',
'title' => 'This title is a tooltip',
'prepend' => '',
'append' => '',
'media_title' => 'Select Media',
'media_button' => 'Select',
'button_select' => 'Select',
'button_change' => 'Change',
'button_remove' => 'Remove',
);
Show file
Open project: wpxtreme/wpdk
Public Methods
Method |
Description |
|
__construct ( array $item ) : WPDKUIControlFile |
Create an instance of WPDKUIControlFileMedia class |
|
draw ( ) |
Drawing control |
|
Method Details
__construct()
public method
Create an instance of WPDKUIControlFileMedia class
public __construct ( array $item ) : WPDKUIControlFile |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlFile |
|