# e2pdf/trunk/classes/view/blocks/notifications.php

E2Pdf – Export Pdf Tool for WordPress, version trunk. 20 lines.

- Page: https://pluginprobe.com/plugins/e2pdf/trunk/code/classes/view/blocks/notifications.php
- Raw: https://pluginprobe.com/plugins/e2pdf/trunk/raw/classes/view/blocks/notifications.php
- Modified: 2026-05-27T06:04:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/e2pdf/trunk/code/classes/view/blocks/notifications.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) {
    die('Access denied.');
}
?>
<?php foreach ($this->get_notifications($this->get->get('notification')) as $key => $notify) { ?>
    <?php if ($notify['type'] === 'update') { ?>
        <div id="message" class="e2pdf-notice notice notice-success is-dismissible">
            <p><?php echo wp_kses_post($notify['text']); ?></p>
        </div>
    <?php } elseif ($notify['type'] === 'error') { ?>
        <div id="message" class="e2pdf-notice notice notice-error is-dismissible">
            <p><b><?php echo __('[ERROR]', 'e2pdf'); ?></b> <?php echo wp_kses_post($notify['text']); ?></p>
        </div>
    <?php } elseif ($notify['type'] === 'notice') { ?>
        <div id="message" class="e2pdf-notice notice notice-warning is-dismissible">
            <p><?php echo wp_kses_post($notify['text']); ?></p>
        </div>
    <?php } ?>
<?php } ?>
```
