<?php

defined( 'ABSPATH' ) || exit();

$title       = esc_html__( 'Email Required', 'integrate-google-drive-premium' );
$description = esc_html__( 'Please enter your email address below to proceed:', 'integrate-google-drive-premium' );
$placeholder = esc_attr__( 'Enter Email', 'integrate-google-drive-premium' );
$button_text = esc_html__( 'Continue', 'integrate-google-drive-premium' );
$spinner_url = includes_url( 'images/wpspin.gif' );
?>

<div class="igd-email-required">

	<h3><?php echo esc_html( $title ); ?></h3>
	<p><?php echo esc_html( $description ); ?></p>

	<form id="igd-require-email-form"
	      class="igd-require-email-form"
	      method="post">

		<input type="hidden" name="shortcode_id"
		       value="<?php echo esc_attr( $this->data['id'] ?? '' ); ?>">

		<input type="hidden" name="nonce"
		       value="<?php echo esc_attr( $this->data['nonce'] ?? '' ); ?>">

		<input type="email"
		       name="email"
		       placeholder="<?php echo esc_attr( $placeholder ); ?>"/>

		<button type="submit">
			<img src="<?php echo esc_url( $spinner_url ); ?>"
			     width="20"
			     height="20"
			     alt=""
			     aria-hidden="true"/>
			<?php echo esc_html( $button_text ); ?>
		</button>
	</form>

	<p class="igd-form-error"></p>
</div>
