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
info.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Info notice template |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * |
| 7 | * @var string $text notice text |
| 8 | * @var string $_notice notice id |
| 9 | */ |
| 10 | |
| 11 | use AdvancedAds\Framework\Utilities\Params; |
| 12 | |
| 13 | ?> |
| 14 | <div class="notice notice-info advads-notice advads-admin-notice message is-dismissible" data-notice="<?php echo esc_attr( $_notice ); ?>"> |
| 15 | <p><?php echo $text; // phpcs:ignore ?></p> |
| 16 | <a href=" |
| 17 | <?php |
| 18 | add_query_arg( |
| 19 | [ |
| 20 | 'action' => 'advads-close-notice', |
| 21 | 'notice' => $_notice, |
| 22 | 'nonce' => wp_create_nonce( 'advanced-ads-admin-ajax-nonce' ), |
| 23 | 'redirect' => Params::server( 'REQUEST_URI' ), |
| 24 | ], |
| 25 | admin_url( 'admin-ajax.php' ) |
| 26 | ); |
| 27 | ?> |
| 28 | " class="notice-dismiss"><span class="screen-reader-text"><?php esc_html__( 'Dismiss this notice.', 'advanced-ads' ); ?></span></a> |
| 29 | </div> |
| 30 |