| 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 |
|