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();
Mostra file
Open project: wpxtreme/wpdk
Class Usage Examples
Public Methods
Method |
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 method
Create an instance of WPDKUIControlsLayout class
Display the controls layout
Return the HTML markup pf controls layout array
init()
public static method
Return an instance of WPDKUIControlsLayout class
item()
public static method
Return the HTML markup for a single item array