access.php
2 years ago
advanced_settings.php
2 years ago
exclusion_settings.php
4 years ago
geolocation_settings.php
2 years ago
get_started.php
4 years ago
import_wp_statistics.php
4 years ago
info.php
4 years ago
info_bug_report.php
2 years ago
info_help.php
4 years ago
info_high_traffic.php
2 years ago
info_multisite.php
2 years ago
info_newsletter.php
4 years ago
info_shared.php
4 years ago
marketplace.php
2 years ago
marketplace_setup_wizard.php
2 years ago
measurable_settings.php
2 years ago
privacy_gdpr.php
4 years ago
scheduled_tasks_failures.php
2 years ago
settings.php
4 years ago
settings_errors.php
4 years ago
summary.php
4 years ago
systemreport.php
2 years ago
tracking.php
3 years ago
update_notice_clear_cache.php
5 years ago
info_newsletter.php
47 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 | use WpMatomo\Admin\Info; |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit; |
| 14 | } |
| 15 | /** @var bool $signedup_newsletter */ |
| 16 | /** @var bool $show_newsletter */ |
| 17 | |
| 18 | if ( $signedup_newsletter ) { |
| 19 | ?> |
| 20 | <div class="notice notice-success is-dismissible"> |
| 21 | <p><?php esc_html_e( 'Thank you for signing up to our newsletter.', 'matomo' ); ?></p> |
| 22 | </div> |
| 23 | <?php |
| 24 | return; |
| 25 | } |
| 26 | if ( ! $show_newsletter ) { |
| 27 | return; |
| 28 | } |
| 29 | ?> |
| 30 | |
| 31 | <div class="notice notice-success"> |
| 32 | <h2><?php esc_html_e( 'Newsletter', 'matomo' ); ?></h2> |
| 33 | <form method="post"> |
| 34 | <p> |
| 35 | <?php wp_nonce_field( Info::NONCE_NAME ); ?> |
| 36 | <input type="checkbox" id="<?php echo esc_attr( Info::FORM_NAME ); ?>" name="<?php echo esc_attr( Info::FORM_NAME ); ?>" value="1"> |
| 37 | <label for="<?php echo esc_attr( Info::FORM_NAME ); ?>"> |
| 38 | <?php esc_html_e( 'Subscribe to our newsletter to receive regular information about Matomo, web analytics, and privacy. You can unsubscribe from it any time.', 'matomo' ); ?> |
| 39 | <?php esc_html_e( 'This service uses MadMimi.', 'matomo' ); ?> |
| 40 | <?php echo sprintf( esc_html__( 'Learn more about it on our %1$sPrivacy Policy page%2$s.', 'matomo' ), '<a href="https://matomo.org/privacy-policy/" target="_blank" rel="noreferrer noopener">', '</a>' ); ?> |
| 41 | </label> |
| 42 | <br><br> |
| 43 | <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Subscribe', 'matomo' ); ?>"> |
| 44 | </p> |
| 45 | </form> |
| 46 | </div> |
| 47 |