<?php
/**
 * Promo banner.
 *
 * @since 3.7.4
 */

defined( 'ABSPATH' ) || exit;
?>
<div class="science-promo-banner" id="science-promo-banner">
	<div>
		<h3 class="science-promo-title">
			<span class="science-promo-discount">
				<?php
				// translators: %s = promotion discount percentage.
				printf( esc_html__( '%s off', 'science' ), esc_html( $data['discount_percent'] . '%' ) );
				?>
			</span>
			<?php
			// translators: %s = promotion name.
			printf( esc_html__( '%s promotion is live!', 'science' ), esc_html( $data['name'] ) );
			?>
		</h3>
		<p class="science-promo-message"><?php echo wp_kses_post( $data['message'] ); ?></p>
	</div>
	<div class="science-promo-cta-block">
		<p class="science-promo-deal"><?php esc_html_e( 'Hurry Up! Deal ends in:', 'science' ); ?></p>
		<ul class="science-promo-countdown" id="science-promo-countdown">
			<li class="science-countdown-item"><span class="science-countdown-value science-countdown-days"><?php echo esc_html( $data['countdown']['days'] ); ?></span> <?php esc_html_e( 'Days', 'science' ); ?></li>
			<li class="science-countdown-item"><span class="science-countdown-value science-countdown-hours"><?php echo esc_html( $data['countdown']['hours'] ); ?></span> <?php esc_html_e( 'Hours', 'science' ); ?></li>
			<li class="science-countdown-item"><span class="science-countdown-value science-countdown-minutes"><?php echo esc_html( $data['countdown']['minutes'] ); ?></span> <?php esc_html_e( 'Minutes', 'science' ); ?></li>
			<li class="science-countdown-item"><span class="science-countdown-value science-countdown-seconds"><?php echo esc_html( $data['countdown']['seconds'] ); ?></span> <?php esc_html_e( 'Seconds', 'science' ); ?></li>
		</ul>
		<button class="science-promo-cta wpr-popin-upgrade-toggle"><?php esc_html_e( 'Upgrade now', 'science' ); ?></button>
	</div>
	<button class="wpr-notice-close wpr-icon-close" id="science-dismiss-promotion"><span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice', 'science' ); ?></span></button>
</div>
