<?php
/**
 * Packlink PRO Shipping WooCommerce Integration.
 *
 * @package Packlink
 */

$url = wp_nonce_url( add_query_arg( 'packlink-hide-notice', '1' ), 'packlink_hide_notices_nonce', '_packlink_notice_nonce' )

?>
<div class="notice notice-info" style="position: relative;">
	<p><strong><?php esc_html_e( 'Packlink PRO Shipping', 'packlink-pro-shipping' ); ?>:</strong>
		<?php echo get_transient( 'packlink-pro-messages' ); // phpcs:ignore ?>
	</p>
	<a style="text-decoration: none;display:flex;" class="notice-dismiss" href="<?php echo esc_url( $url ); ?>">
		<?php esc_html_e( 'Dismiss' ); ?>
	</a>
</div>
