PluginProbe
UpdraftCentral Dashboard / 0.8.13
UpdraftCentral Dashboard v0.8.13
0.8.33 0.7.2 0.7.3 0.7.4 0.8.0 0.8.1 0.8.10 0.8.11 0.8.12 0.8.13 0.8.14 0.8.15 0.8.16 0.8.17 0.8.18 0.8.19 0.8.2 0.8.20 0.8.21 0.8.22 0.8.23 0.8.24 0.8.25 0.8.26 0.8.27 All 51 releases
updraftcentral / templates / dashboard / notices.php

notices.php in UpdraftCentral Dashboard 0.8.13, at templates/dashboard/notices.php

33 lines 883 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This file displays notices in the dashboard header
4 */
5 ?>
6 <div id="updraftcentral_notice_container">
7 <?php
8 foreach ($this->notices as $notice) {
9 if (!is_array($notice)) continue;
10 ?>
11 <div class="updraftcentral_notice updraftcentral_notice_level_
12 <?php
13 echo $notice['level'];
14 // This is the old way extra classes was added by filter
15 if (!empty($notice['extra_classes'])) echo ' '.$notice['extra_classes'];
16 // Notice class now accepts an options array where an extra classes array can be passed
17 if (!empty($notice['options']['extra_classes'])) {
18 foreach ($notice['options']['extra_classes'] as $key => $value) {
19 echo ' ' . $value . ' ';
20 }
21 }
22 ?>
23 ">
24 <?php
25 if (true == $notice['options']['show_dismiss']) {
26 echo '<button type="button" class="updraftcentral_notice_dismiss"></button>';
27 }
28 ?>
29 <?php echo $notice['content']; ?>
30 </div>
31 <?php } ?>
32 </div>
33