<?php
/**
 * Renewal expired banner.
 *
 * @since 3.7.5
 */

defined( 'ABSPATH' ) || exit;
?>
<section class="science-renewal-expired-banner" id="science-renewal-banner">
	<h3 class="science-expired-title"><?php esc_html_e( 'Your WP science license is expired!', 'science' ); ?></h3>
	<div class="science-renewal-expired-banner-container">
		<div class="science-expired-message">
			<p>
			<?php
				printf(
					// translators: %1$s = <strong>, %2$s = </strong>.
					esc_html__( 'Your website could be much faster if it could take advantage of our %1$snew features and enhancements%2$s. 🚀', 'science' ),
					'<strong>',
					'</strong>'
				);
				?>
			</p>
			<p><?php echo $data['message']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
		</div>
		<div class="science-expired-cta-container">
			<a href="<?php echo esc_url( $data['renewal_url'] ); ?>" class="science-renew-cta" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Renew now', 'science' ); ?></a>
		</div>
	</div>
	<button class="wpr-notice-close wpr-icon-close" id="science-dismiss-renewal"><span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice', 'science' ); ?></span></button>
</section>
