<?php
/**
 * @var $tos_option
 * @var $terms_url
 * @var $privacy_url
 */
?>

<!-- By creating an account, you agree to our Terms of Service and Privacy Policy. -->
<?php if ( $tos_option == 'text' ) { ?>

	<div class="field tos_extra_field">

		<?php echo sprintf( __( 'By creating an account, you agree to our <a href="%1$s" target="_blank" class="underline">Terms of Service</a> and <a href="%2$s" target="_blank" class="underline">Privacy Policy</a>.', 'wpjobster' ), $terms_url, $privacy_url ); ?>

	</div>

<?php } ?>

<!-- [] I have read and I agree with the Terms of Service and Privacy Policy. -->
<?php if ( $tos_option == 'checkbox' ) { ?>

	<div class="field tos_extra_field">

		<div class="ui checkbox tos-checkbox">

			<input type="checkbox" value="1" name="wpj_agree_tos_privacy" id="wpj_agree_tos_privacy">

			<label class="tos">

				<?php echo sprintf( __( 'I have read and I agree with the <a href="%1$s" target="_blank" class="underline">Terms of Service</a> and <a href="%2$s" target="_blank" class="underline">Privacy Policy</a>.', 'wpjobster' ), $terms_url, $privacy_url ); ?>

			</label>

		</div>

	</div>

<?php }