<?php
/**
 * @var $secret
 */
?>

<div class="field 2fa_extra_field center">

	<p>
		<?php _e( 'Please install Google Authenticator App on your phone, open it and then scan the above bar code to add this application. After adding this application, enter the code you see in the Google Authenticator App into the below input box to complete the login process.', 'wpjobster' ); ?>
	</p>

	<img src="<?php echo \Sonata\GoogleAuthenticator\GoogleQrUrl::generate( str_replace( array( 'http://', 'https://' ), '', get_site_url() ), $secret, get_bloginfo( 'name' ) ); ?>" class="mb10"  alt=""/>

	<p>
		<?php echo sprintf( __( 'If the code scan doesn\'t work, go to your Google Authenticator app, click the "+" icon in the bottom-right corner, select "Enter a setup key," enter any name in the "Account name" field and fill in the "Your key" field with the following code: %s', 'wpjobster' ), $secret ); ?>
	</p>

	<label for="2fa_code">
		<input type="text" name="2fa_code" placeholder="<?php _e( '2-Step Verification Code', 'wpjobster' ); ?>" />
	</label>

</div>