<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * HTML Template: Email Verification
 *
 * Sent to the user to verify their email address during registration.
 *
 * @var string   $email_heading
 * @var string   $user_name
 * @var string   $verify_link
 * @var string   $site_title
 * @var bool     $sent_to_admin
 * @var bool     $plain_text
 * @var WC_Email $email
 */
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'woocommerce_email_header', $email_heading, $email );
?>

<table role="presentation" cellspacing="0" cellpadding="0" style="width: 100%; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;">
	<tr>
		<td style="padding: 40px 20px;">

			<!-- Greeting -->
			<p style="margin: 0 0 20px 0;">
				<?php
				printf(
					// translators: %s is a user name
					esc_html__( 'Hello %s,', 'gigneo' ),
					esc_html( $user_name )
				);
				?>
			</p>

			<!-- Introduction -->
			<p style="margin: 0 0 30px 0;">
				<?php
				printf(
					// translators: %s: Site title
					esc_html__( 'Thank you for registering with %s. To complete your registration, please verify your email address by clicking the button below.', 'gigneo' ),
					'<strong>' . esc_html( $site_title ) . '</strong>'
				);
				?>
			</p>

			<!-- CTA Button -->
			<table role="presentation" cellspacing="0" cellpadding="0" style="width: 100%; margin: 0 0 30px 0;">
				<tr>
					<td style="text-align: center; padding: 10px 0;">
						<a href="<?php echo esc_url( $verify_link ); ?>" target="_blank" rel="noopener">
							<?php echo esc_html__( 'Verify email', 'gigneo' ); ?> &rarr;
						</a>
					</td>
				</tr>
			</table>

			<!-- Disclaimer -->
			<p style="margin: 0 0 10px 0;">
				<?php echo esc_html__( 'If you did not create an account, please disregard this email. No further action is required.', 'gigneo' ); ?>
			</p>

		</td>
	</tr>
</table>

<?php
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'woocommerce_email_footer', $email );