| @@ -2,19 +2,19 @@ | ||
| 2 | 2 | if (!defined('ABSPATH')) { |
| 3 | 3 | die('Access denied.'); |
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | -<?php foreach ($this->get_notifications() as $key => $notify) { ?> | |
| 6 | +<?php foreach ($this->get_notifications($this->get->get('notification')) as $key => $notify) { ?> | |
| 7 | 7 | <?php if ($notify['type'] === 'update') { ?> |
| 8 | - <div id="message" class="updated e2pdf-notice"> | |
| 9 | - <?php echo $notify['text']; ?> | |
| 8 | + <div id="message" class="e2pdf-notice notice notice-success is-dismissible"> | |
| 9 | + <p><?php echo wp_kses_post($notify['text']); ?></p> | |
| 10 | 10 | </div> |
| 11 | 11 | <?php } elseif ($notify['type'] === 'error') { ?> |
| 12 | - <div id="message" class="error e2pdf-notice"> | |
| 13 | - <?php echo $notify['text']; ?> | |
| 12 | + <div id="message" class="e2pdf-notice notice notice-error is-dismissible"> | |
| 13 | + <p><b><?php echo __('[ERROR]', 'e2pdf'); ?></b> <?php echo wp_kses_post($notify['text']); ?></p> | |
| 14 | 14 | </div> |
| 15 | 15 | <?php } elseif ($notify['type'] === 'notice') { ?> |
| 16 | - <div id="message" class="notice e2pdf-notice"> | |
| 17 | - <?php echo $notify['text']; ?> | |
| 16 | + <div id="message" class="e2pdf-notice notice notice-warning is-dismissible"> | |
| 17 | + <p><?php echo wp_kses_post($notify['text']); ?></p> | |
| 18 | 18 | </div> |
| 19 | 19 | <?php } ?> |
| 20 | 20 | <?php } ?> |