1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php /** * @var string $message * @var string $strong (optional) * @var string $type (optional) * @var string $class (optional) * @var string $notice_identifier (optional) Used in async "remove notice" call. * @var string $button_text (optional) * @var string $button_link (optional) * @var string $button_class (optional) */ namespace AutomateWoo;
defined( 'ABSPATH' ) || exit;
if ( empty( $message ) ) { return; }
?> <div class="automatewoo-notice notice notice-<?php echo isset( $type ) ? esc_attr( $type ) : 'gray'; ?> <?php echo isset( $class ) ? esc_attr( $class ) : ''; ?>" <?php if ( isset( $notice_identifier ) ) : ?> data-automatewoo-dismissible-notice="<?php echo esc_attr( $notice_identifier ); ?>" <?php endif; ?> > <p> <?php if ( ! empty( $strong ) ) : ?> <strong><?php echo wp_kses_post( $strong ); ?></strong> <?php endif; ?>
<?php echo wp_kses_post( $message ); ?> </p> <?php if ( ! empty( $button_text ) && ! empty( $button_link ) ) : ?> <p><a href="<?php echo esc_url( $button_link ); ?>" class="button-primary <?php echo isset( $button_class ) ? esc_attr( $button_class ) : ''; ?>" ><?php echo esc_html( $button_text ); ?></a></p> <?php endif; ?> </div>
|