# wp-stateless/3.1.0/static/views/error-notice.php

WP-Stateless – Google Cloud Storage, version 3.1.0. 20 lines.

- Page: https://pluginprobe.com/plugins/wp-stateless/3.1.0/code/static/views/error-notice.php
- Raw: https://pluginprobe.com/plugins/wp-stateless/3.1.0/raw/static/views/error-notice.php
- Modified: 2020-10-14T09:32:26+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/wp-stateless/3.1.0/code/static/views/error-notice.php#L10-L20`.

```php
<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">
    <div>
        <div class="title"><?php echo $data['title'];?></div>
        <div class="description"><?php echo $data['message'];?></div>
    </div>
    <?php
    if( !empty( $data['action_links'] ) && is_array( $data['action_links'] ) ):
        echo '<p>' . implode( ' | ', $data['action_links'] ) . '</p>';
    endif;
    ?>
    <div class="buttons-container">
    <?php if(!empty($data['button']) && !empty($data['key'])):?>
        <a class="button-action button button-primary" data-action="sm_enable_notice" data-key="<?php echo $data['key'];?>" href="<?php echo $data['button_link'];?>"><?php echo $data['button'];?></a>
    <?php endif;?>
    <?php if(!empty($data['key'])):?>
        <a class="dismiss-warning dismiss notice-dismiss" data-key="dismissed_notice_<?php echo $data['key'];?>" href="#"></a>
    <?php endif;?>
    </div>
</div>

```
