Brak opisu

html-notice-maxmind-license-key.php 1.2KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Admin View: Notice - Missing MaxMind license key
  4. *
  5. * @package WooCommerce\Admin
  6. */
  7. defined( 'ABSPATH' ) || exit;
  8. ?>
  9. <div id="message" class="updated woocommerce-message">
  10. <a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'maxmind_license_key' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a>
  11. <p>
  12. <strong><?php esc_html_e( 'Geolocation has not been configured.', 'woocommerce' ); ?></strong>
  13. </p>
  14. <p>
  15. <?php
  16. echo wp_kses_post(
  17. sprintf(
  18. /* translators: %1%s: integration page %2$s: general settings page */
  19. __( 'You must enter a valid license key on the <a href="%1$s">MaxMind integration settings page</a> in order to use the geolocation service. If you do not need geolocation for shipping or taxes, you should change the default customer location on the <a href="%2$s">general settings page</a>.', 'woocommerce' ),
  20. admin_url( 'admin.php?page=wc-settings&tab=integration&section=maxmind_geolocation' ),
  21. admin_url( 'admin.php?page=wc-settings&tab=general' )
  22. )
  23. );
  24. ?>
  25. </p>
  26. </div>