Метод | Описание | |
---|---|---|
badge ( integer $count, string $classes = '', string $tooltip = '', string $placement = '' ) : string | Return the HTML markup for a simple badge. | |
badged ( $count, $classes = '', $tooltip = '', $placement = '' ) | ||
button ( string $label = '', array $args = [] ) : string | Return HTML markup for a input type | |
buttonsUpdateReset ( ) | Return the HTML markup for standard [Update] and [Reset to default] button | |
inputNonce ( string $id ) : string | Return the HTML markup for an input type hidden with a nonce value. | |
labelTruncate ( string $value, string $size = 'small' ) : string | Return a new truncate well string. The result string is wrap into a special HTML markup. | |
submit ( array $args = [] ) : string | Utility that return the HTML markup for a submit button | |
view ( string $id, string $title, string $icon_class, string $content ) : string | Return a standard HTML markup view for WordPress backend, with wrap, icon, title and main container |
public static badge ( integer $count, string $classes = '', string $tooltip = '', string $placement = '' ) : string | ||
$count | integer | Optional. Number to display in the badge |
$classes | string | Optional. Additional class for this badge |
$tooltip | string | Optional. Tooltip to display when mouse over |
$placement | string | Optional. Tooltip placement, default `bottom` |
Результат | string |
public static badged ( $count, $classes = '', $tooltip = '', $placement = '' ) |
public static button ( string $label = '', array $args = [] ) : string | ||
$label | string | Optional. Button label. If empty default is 'Update' |
$args | array | Optional. A keys value array for additional settings 'type' => 'submit', 'name' => 'button-update', 'classes' => ' button-primary', 'additional_classes' => '', 'data' => '' |
Результат | string | HTML input type submit |
public static buttonsUpdateReset ( ) |
public static inputNonce ( string $id ) : string | ||
$id | string | ID used for nonce code |
Результат | string |