adblock.php
2 years ago
error.php
1 year ago
info.php
1 year ago
inline.php
1 year ago
plugin_error.php
4 years ago
promo.php
1 year ago
starter-setup-success.php
1 year ago
subscribe.php
1 year ago
promo.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for a promotional banner |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * |
| 7 | * @var string $text content of the notice. |
| 8 | * @var string $_notice internal key of the notice. |
| 9 | */ |
| 10 | |
| 11 | use AdvancedAds\Framework\Utilities\Params; |
| 12 | |
| 13 | ?> |
| 14 | <div class="notice notice-promo advads-notice advads-admin-notice message is-dismissible" |
| 15 | data-notice="<?php echo esc_attr( $_notice ); ?>"> |
| 16 | <p> |
| 17 | <?php |
| 18 | echo wp_kses( |
| 19 | $text, |
| 20 | [ |
| 21 | 'a' => [ |
| 22 | 'href' => [], |
| 23 | 'class' => [], |
| 24 | 'target' => [], |
| 25 | ], |
| 26 | 'span' => [ |
| 27 | 'style' => [], |
| 28 | ], |
| 29 | ] |
| 30 | ); |
| 31 | ?> |
| 32 | </p> |
| 33 | <a href=" |
| 34 | <?php |
| 35 | add_query_arg( |
| 36 | [ |
| 37 | 'action' => 'advads-close-notice', |
| 38 | 'notice' => $_notice, |
| 39 | 'nonce' => wp_create_nonce( 'advanced-ads-admin-ajax-nonce' ), |
| 40 | 'redirect' => Params::server( 'REQUEST_URI' ), |
| 41 | ], |
| 42 | admin_url( 'admin-ajax.php' ) |
| 43 | ); |
| 44 | ?> |
| 45 | " class="notice-dismiss"><span class="screen-reader-text"><?php esc_html__( 'Dismiss this notice.', 'advanced-ads' ); ?></span></a> |
| 46 | </div> |
| 47 |