challenge
5 months ago
components
2 years ago
dashboard
10 months ago
empty-states
2 years ago
form-embed-wizard
2 years ago
forms
3 years ago
pages
4 years ago
payments
1 year ago
settings
1 year ago
splash
10 months ago
notifications.php
2 years ago
promotion.php
1 year ago
notifications.php
51 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin Notifications template. |
| 4 | * |
| 5 | * @since 1.7.5 |
| 6 | * |
| 7 | * @var array $notifications |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | ?> |
| 15 | <div id="wpforms-notifications"> |
| 16 | <div class="wpforms-notifications-header"> |
| 17 | <div class="wpforms-notifications-bell"> |
| 18 | <svg width="15" height="17" aria-hidden="true"> |
| 19 | <path 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="wpforms-notifications-circle"></span> |
| 22 | </div> |
| 23 | <div class="wpforms-notifications-title"><?php esc_html_e( 'Notifications', 'wpforms-lite' ); ?></div> |
| 24 | </div> |
| 25 | |
| 26 | <div class="wpforms-notifications-body"> |
| 27 | <a class="dismiss" title="<?php esc_attr_e( 'Dismiss this message', 'wpforms-lite' ); ?>"> |
| 28 | <svg viewBox="0 0 512 512" aria-hidden="true"> |
| 29 | <path d="M256 8a248 248 0 1 0 0 496 248 248 0 0 0 0-496zm122 313c4 5 4 12 0 17l-40 40c-5 4-12 4-17 0l-65-66-65 66c-5 4-12 4-17 0l-40-40c-4-5-4-12 0-17l66-65-66-65c-4-5-4-12 0-17l40-40c5-4 12-4 17 0l65 66 65-66c5-4 12-4 17 0l40 40c4 5 4 12 0 17l-66 65 66 65z"/> |
| 30 | </svg> |
| 31 | </a> |
| 32 | |
| 33 | <?php if ( (int) $notifications['count'] > 1 ) : ?> |
| 34 | <div class="navigation"> |
| 35 | <a class="prev"> |
| 36 | <span class="screen-reader-text"><?php esc_attr_e( 'Previous message', 'wpforms-lite' ); ?></span> |
| 37 | <span aria-hidden="true">‹</span> |
| 38 | </a> |
| 39 | <a class="next"> |
| 40 | <span class="screen-reader-text"><?php esc_attr_e( 'Next message', 'wpforms-lite' ); ?></span> |
| 41 | <span aria-hidden="true">›</span> |
| 42 | </a> |
| 43 | </div> |
| 44 | <?php endif; ?> |
| 45 | |
| 46 | <div class="wpforms-notifications-messages"> |
| 47 | <?php echo $notifications['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 48 | </div> |
| 49 | </div> |
| 50 | </div> |
| 51 |