PHP Class WPDKUIControlsLayout
## Getting started
In order to display a controls layout you need to define a simple Controls Layout Array (CLA) and to instance the
WPDKUIControlsLayout class:
$cla = array(
'Fieldset Legend Group' => array(
'Subtitle', // Optional subtitle
array( array(...), array(...) ), // Row of items
array(...), // New row
array(...) // Items
);
);
$layout = new WPDKUIControlsLayout( $cla );
$layout->display();
Afficher le fichier
Open project: wpxtreme/wpdk
Class Usage Examples
Méthodes publiques
Méthode |
Description |
|
__construct ( array $cla ) |
Create an instance of WPDKUIControlsLayout class |
|
display ( ) |
Display the controls layout |
|
html ( ) : string |
Return the HTML markup pf controls layout array |
|
init ( array $cla ) |
Return an instance of WPDKUIControlsLayout class |
|
item ( array $item ) : string |
Return the HTML markup for a single item array |
|
Private Methods
Method Details
__construct()
public méthode
Create an instance of WPDKUIControlsLayout class
Display the controls layout
Return the HTML markup pf controls layout array
init()
public static méthode
Return an instance of WPDKUIControlsLayout class
item()
public static méthode
Return the HTML markup for a single item array