PHP 클래스 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();
파일 보기
프로젝트 열기: wpxtreme/wpdk
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
__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 |
|
비공개 메소드들
메소드 상세
Create an instance of WPDKUIControlsLayout class
Display the controls layout
Return the HTML markup pf controls layout array
Return an instance of WPDKUIControlsLayout class
Return the HTML markup for a single item array