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
40
41
42
43
44
45
|
<?php
/** * @var string $notice_identifier REQUIRED * @var string $title * @var string $class * @var string $description * @var array $links array of arrays containing attributes href, class, text and data_link_type */
namespace AutomateWoo;
defined( 'ABSPATH' ) || exit;
?>
<div class="notice automatewoo-welcome-notice is-dismissible <?php echo isset( $class ) ? esc_attr( $class ) : ''; ?>" data-automatewoo-dismissible-notice="<?php echo esc_attr( $notice_identifier ); ?>"> <h3 class="automatewoo-welcome-notice__heading"> <?php if ( ! empty( $title ) ) : ?> <?php echo wp_kses_post( $title ); ?> <?php else : ?> <?php esc_html_e( 'Welcome to AutomateWoo', 'automatewoo' ); ?> <?php endif; ?> </h3> <div class="automatewoo-welcome-notice__text"> <?php if ( ! empty( $description ) ) : ?> <p> <?php echo wp_kses_post( $description ); ?> </p> <?php endif; ?> <?php if ( ! empty( $links ) ) : ?> <p class="automatewoo-welcome-notice__links"> <?php foreach ( $links as $link ) : ?> <a target="<?php echo isset( $link['target'] ) ? esc_attr( $link['target'] ) : '_blank'; ?>" href="<?php echo esc_url( $link['href'] ); ?>" class="<?php echo esc_attr( $link['class'] ); ?>" <?php echo isset( $link['data_link_type'] ) ? 'data-automatewoo-link-type="' . esc_attr( $link['data_link_type'] ) . '"' : ''; ?> > <?php echo esc_html( $link['text'] ); ?> </a> <?php endforeach; ?> </p> <?php endif; ?> </div> <div class="automatewoo-welcome-notice__image"></div> </div>
|