PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
wp-stateless / static / views / error-notice.php

error-notice.php in WP-Stateless – Google Cloud Storage trunk, at static/views/error-notice.php

20 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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