ad-list
5 months ago
conditions
5 months ago
notices
1 year ago
upgrades
1 year ago
ad-conditions-string-operators.php
3 months ago
checks.php
3 months ago
index.php
7 years ago
modal.php
3 months ago
overview-addons-line.php
5 months ago
overview-notice-row.php
1 year ago
overview-widget.php
1 year ago
placement-form.php
1 year ago
placement-injection-top.php
1 year ago
placement-types.php
3 years ago
placements-ad-label.php
1 year ago
placements-inline-css.php
1 year ago
placements-item.php
1 year ago
post-list-filter-dropdown.php
5 months ago
support-callout.php
1 year ago
overview-notice-row.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Render a line in the notice meta box on the Advanced Ads overview page |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * |
| 8 | * @var string $type type of the notice. |
| 9 | * @var string $_notice_key index of the notice. |
| 10 | * @var bool $is_hidden true if the notice is currently hidden. |
| 11 | * @var bool $can_hide true if the notice can be hidden. |
| 12 | * @var bool $hide true if the notice is hidden. |
| 13 | * @var string $date date string. |
| 14 | * @var string $dashicon the dashicons class to use. |
| 15 | * @var string $text the notice text. |
| 16 | */ |
| 17 | |
| 18 | ?> |
| 19 | <ul class="advads-ad-health-notices advads-ad-health-notices-<?php echo esc_attr( $type ); ?>"> |
| 20 | <li class="advads-notice-inline" data-notice="<?php echo esc_attr( $_notice_key ); ?>" <?php echo $is_hidden ? 'style="display: none;"' : ''; ?>> |
| 21 | <span class="dashicons <?php echo esc_attr( $dashicon ); ?>"></span> |
| 22 | <div class="text"> |
| 23 | <?php echo $text; // phpcs:ignore ?> |
| 24 | <?php if ( $date ) : ?> |
| 25 | <br> |
| 26 | <small class="date">(<?php echo esc_attr( $date ); ?>)</small> |
| 27 | <?php endif; ?> |
| 28 | </div> |
| 29 | <?php if ( $can_hide ) : ?> |
| 30 | <button type="button" class="advads-ad-health-notice-hide <?php echo ! $hide ? 'remove' : ''; ?>"> |
| 31 | <span class="dashicons dashicons-dismiss"></span> |
| 32 | </button> |
| 33 | <?php endif; ?> |
| 34 | </li> |
| 35 | </ul> |
| 36 |