| 1 |
<?php |
| 2 |
/** |
| 3 |
* Notice template |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @var string $args The arguments. Must contains: |
| 7 |
* - 'notice' with the message. |
| 8 |
* - 'type' key (use "error", "warning", "success", "info" ). |
| 9 |
* - 'dismissible' (use true or false). |
| 10 |
*/ |
| 11 |
|
| 12 |
defined( 'WPINC' ) || die; |
| 13 |
if ( ! isset( $args['notice'], $args['type'], $args['dismissible'] ) ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
?> |
| 17 |
<div class="notice notice-<?php echo esc_html( $args['type'] ) . ( ! empty( $args['dismissible'] ) ? ' is-dismissible' : '' ); ?>"><p><?php echo wp_kses_post( $args['notice'] ); ?></p></div> |