| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin Notifications template. |
| 4 |
* |
| 5 |
* @since 1.7.0.3 |
| 6 |
* |
| 7 |
* @var array $notifications |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
?> |
| 15 |
<div id="charitable-notifications"> |
| 16 |
<div class="charitable-notifications-header"> |
| 17 |
<div class="charitable-notifications-bell"> |
| 18 |
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="17" fill="none"> |
| 19 |
<path fill="#777" d="M7.68 16.56c1.14 0 2.04-.95 2.04-2.17h-4.1c0 1.22.9 2.17 2.06 2.17Zm6.96-5.06c-.62-.71-1.81-1.76-1.81-5.26A5.32 5.32 0 0 0 8.69.97H6.65A5.32 5.32 0 0 0 2.5 6.24c0 3.5-1.2 4.55-1.81 5.26a.9.9 0 0 0-.26.72c0 .57.39 1.08 1.04 1.08h12.38c.65 0 1.04-.5 1.07-1.08 0-.24-.1-.51-.3-.72Z"/> |
| 20 |
</svg> |
| 21 |
<span class="wp-ui-notification charitable-notifications-circle"></span> |
| 22 |
</div> |
| 23 |
<div class="charitable-notifications-title"><?php esc_html_e( 'Notifications', 'charitable-lite' ); ?></div> |
| 24 |
</div> |
| 25 |
|
| 26 |
<div class="charitable-notifications-body"> |
| 27 |
|
| 28 |
<button type="button" class="notice-dismiss dismiss"> |
| 29 |
<span class="screen-reader-text"> |
| 30 |
Dismiss this notice |
| 31 |
</span> |
| 32 |
</button> |
| 33 |
|
| 34 |
<?php /* <a class="dismiss" title="<?php esc_attr_e( 'Dismiss this message', 'charitable-lite' ); ?>"><i class="fa fa-times-circle" aria-hidden="true"></i></a> */ ?> |
| 35 |
|
| 36 |
<?php if ( (int) $notifications['count'] > 1 ) : ?> |
| 37 |
<div class="navigation"> |
| 38 |
<a class="prev"> |
| 39 |
<span class="screen-reader-text"><?php esc_attr_e( 'Previous message', 'charitable-lite' ); ?></span> |
| 40 |
<span aria-hidden="true">‹</span> |
| 41 |
</a> |
| 42 |
<a class="next"> |
| 43 |
<span class="screen-reader-text"><?php esc_attr_e( 'Next message', 'charitable-lite' ); ?></span> |
| 44 |
<span aria-hidden="true">›</span> |
| 45 |
</a> |
| 46 |
</div> |
| 47 |
<?php endif; ?> |
| 48 |
|
| 49 |
<div class="charitable-notifications-messages"> |
| 50 |
<?php echo $notifications['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
|