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',
);
Afficher le fichier
Open project: wpxtreme/wpdk
Méthodes publiques
Méthode |
Description |
|
__construct ( array $item ) : WPDKUIControlFile |
Create an instance of WPDKUIControlFileMedia class |
|
draw ( ) |
Drawing control |
|
Method Details
__construct()
public méthode
Create an instance of WPDKUIControlFileMedia class
public __construct ( array $item ) : WPDKUIControlFile |
$item |
array |
Key value pairs with control info |
Résultat |
WPDKUIControlFile |
|