Свойство | Type | Description | |
---|---|---|---|
$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. |
Свойство | Type | Description | |
---|---|---|---|
$dismissed | array | Internal use only. |
Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
_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 |
Résultat | WPDKUIAlert |
public bool $dismissButton | ||
Résultat | boolean |
public string $dismissButtonGlyph | ||
Résultat | string |
public bool $dismissPermanent | ||
Résultat | boolean |
public string $dismissToolTip | ||
Résultat | string |
public string $dismiss_button_glyph | ||
Résultat | string |
public bool $dismissable | ||
Résultat | boolean |
public bool $permanent_dismiss | ||
Résultat | boolean |
public string $type | ||
Résultat | string |
public bool $wpautop | ||
Résultat | boolean |