| 1 |
<div id="stateless-notice-<?php if( !empty($data['key']) ) echo $data['key'];?>" class="stateless-admin-notice ud-admin-notice <?php echo $data['class'];?> update-nag fade"> |
| 2 |
<div> |
| 3 |
<div class="title"><?php /* The $data is already escaped */ _e($data['title']);?></div> |
| 4 |
<div class="description"><?php /* The $data is already escaped */ _e($data['message']);?></div> |
| 5 |
</div> |
| 6 |
<?php |
| 7 |
if( !empty( $data['action_links'] ) && is_array( $data['action_links'] ) ): |
| 8 |
echo '<p>' . esc_html(implode( ' | ', $data['action_links'] )) . '</p>'; |
| 9 |
endif; |
| 10 |
?> |
| 11 |
<div class="buttons-container"> |
| 12 |
<?php if ( !empty($data['button']) && !empty($data['key']) ) : ?> |
| 13 |
<a class="button-action button button-primary" data-action="sm_enable_notice" data-key="<?php esc_html_e($data['key']);?>" href="<?php esc_html_e($data['button_link']);?>"><?php esc_html_e($data['button']);?></a> |
| 14 |
<?php endif; ?> |
| 15 |
<?php if ( !empty($data['key']) && (!isset($data['dismiss']) || $data['dismiss'] !== false) ) : ?> |
| 16 |
<a class="dismiss-warning dismiss notice-dismiss" data-key="dismissed_notice_<?php esc_html_e($data['key']);?>" href="#"></a> |
| 17 |
<?php endif; ?> |
| 18 |
</div> |
| 19 |
</div> |
| 20 |
|