access.php
1 week ago
adblocker-notice.php
3 months ago
advanced_settings.php
1 week ago
exclusion_settings.php
1 week ago
geolocation_settings.php
1 week ago
get_started.php
1 week ago
import_wp_statistics.php
3 months ago
info.php
1 week ago
info_bug_report.php
2 years ago
info_help.php
1 week ago
info_high_traffic.php
1 week ago
info_matomo_desc.php
1 year ago
info_multisite.php
3 months ago
info_newsletter.php
3 months ago
info_shared.php
1 year ago
marketplace.php
1 week ago
marketplace_setup_wizard.php
4 months ago
marketplace_setup_wizard_body.php
2 months ago
marketplace_setup_wizard_body_redesign.php
1 month ago
measurable_settings.php
2 years ago
privacy_gdpr.php
4 years ago
scheduled_tasks_failures.php
3 months ago
settings.php
1 week ago
settings_errors.php
4 years ago
summary.php
3 months ago
systemreport.php
1 week ago
tracking.php
5 months ago
update_notice_clear_cache.php
3 months ago
whats-new-notifications.php
3 months ago
adblocker-notice.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Matomo - free/libre analytics platform |
| 4 | * |
| 5 | * @link https://matomo.org |
| 6 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 7 | * @package matomo |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | ?> |
| 15 | <style> |
| 16 | #matomo-adblocker-notice { |
| 17 | display: none; |
| 18 | } |
| 19 | |
| 20 | #matomo-adblocker-notice.adblocker-found { |
| 21 | display: block; |
| 22 | } |
| 23 | </style> |
| 24 | <script> |
| 25 | window.addEventListener( 'DOMContentLoaded', function () { |
| 26 | if ( window.matomoAdminJsLoaded ) { |
| 27 | return; |
| 28 | } |
| 29 | |
| 30 | var notice = document.querySelector( '#matomo-adblocker-notice' ); |
| 31 | if ( notice ) { |
| 32 | notice.classList.add( 'adblocker-found' ); |
| 33 | } |
| 34 | } ); |
| 35 | </script> |
| 36 | |
| 37 | <div id="matomo-adblocker-notice" class="matomo-notice notice notice-error"> |
| 38 | <p> |
| 39 | <strong><?php esc_html_e( 'Error', 'matomo' ); ?>:</strong> |
| 40 | <?php esc_html_e( 'In case you are using an ad blocker, please disable it for this site to make sure Matomo works without any issues.', 'matomo' ); ?> |
| 41 | </p> |
| 42 | </div> |
| 43 |