Свойство | Тип | Описание | |
---|---|---|---|
$block | boolean | Set TRUE for alert-block class style | |
$content | string | The HTML content of alert. | |
$dismissButton | boolean | Set TRUE to display dismiss [x] button. Default TRUE. | |
$dismissButtonGlyph | string | Used to get/set the glyph icon used like dismiss button. | |
$dismissPermanent | boolean | If TRUE this alert is permanent dismiss by a logged in user | |
$dismissToolTip | string | This is the tooltip (for more detail) display on dismiss button. | |
$dismiss_button_glyph | string | Glyph used like dismiss button | |
$dismissable | boolean | Add alert-dismissable class in HTML markup. | |
$permanent_dismiss | boolean | If TRUE this alert is permanet dismiss by a logged in user | |
$title | string | Title of the alter. | |
$type | string | The alert type change the left border color. Use the constants in WPDKUIAlertType class. | |
$wpautop | boolean | If TRUE the WordPress wpautop() on content. |
Свойство | Тип | Описание | |
---|---|---|---|
$dismissed | array | Internal use only. |
Метод | Описание | |
---|---|---|
__construct ( string $id = false, string $content = '', string $type = WPDKUIAlertType::INFORMATION, string $title = '' ) : WPDKUIAlert | Create an instance of WPDKUIAlert class. | |
alert ( $echo = true ) | ||
content ( ) : string | Content | |
html ( ) : string | Return the HTML markup for alert | |
title ( ) : string | Title | |
toControl ( ) : array | Return an array item description in Control Layout Array format |
Метод | Описание | |
---|---|---|
_content ( ) : string | Return a formatted content | |
_dismissButton ( ) : string | Return the HTML markup button for dismiss | |
_title ( ) : string | Return the title | |
alert_block ( ) : string | Return alert-block class style |
public __construct ( string $id = false, string $content = '', string $type = WPDKUIAlertType::INFORMATION, string $title = '' ) : WPDKUIAlert | ||
$id | string | Optional. This alert id. If FALSE a unique id is create in order to avoid potential alert display missing. |
$content | string | Optional. An HTML content for this alert |
$type | string | Optional. See WPDKUIAlertType. Default WPDKUIAlertType::INFORMATION |
$title | string | Optional. Title of alert |
Результат | WPDKUIAlert |
public bool $dismissButton | ||
Результат | boolean |
public string $dismissButtonGlyph | ||
Результат | string |
public bool $dismissPermanent | ||
Результат | boolean |
public string $dismissToolTip | ||
Результат | string |
public string $dismiss_button_glyph | ||
Результат | string |
public bool $dismissable | ||
Результат | boolean |
public bool $permanent_dismiss | ||
Результат | boolean |
public string $type | ||
Результат | string |
public bool $wpautop | ||
Результат | boolean |