/**
 * Renders the Checkout Submit section
 *
 * @since 1.3.3
 * @return void
 */
function edd_checkout_submit()
{
    ?>
	<fieldset id="edd_purchase_submit">
		<?php 
    do_action('edd_purchase_form_before_submit');
    ?>

		<?php 
    edd_checkout_hidden_fields();
    ?>

		<?php 
    echo edd_checkout_button_purchase();
    ?>

		<?php 
    do_action('edd_purchase_form_after_submit');
    ?>

		<?php 
    if (edd_is_ajax_disabled()) {
        ?>
			<p class="edd-cancel"><a href="<?php 
        echo edd_get_checkout_uri();
        ?>
"><?php 
        _e('Go back', 'easy-digital-downloads');
        ?>
</a></p>
		<?php 
    }
    ?>
	</fieldset>
<?php 
}
/**
 * Renders the Checkout Submit section
 *
 * @since 1.3.3
 * @return void
 */
function edd_checkout_submit()
{
    ?>
	<fieldset id="edd_purchase_submit">
		<?php 
    do_action('edd_purchase_form_before_submit');
    ?>

		<?php 
    edd_checkout_hidden_fields();
    ?>

		<?php 
    echo edd_checkout_button_purchase();
    ?>

		<?php 
    do_action('edd_purchase_form_after_submit');
    ?>

		<?php 
    if (edd_is_ajax_disabled()) {
        ?>
			<p class="edd-cancel"><a href="javascript:history.go(-1)"><?php 
        _e('Go back', 'edd');
        ?>
</a></p>
		<?php 
    }
    ?>
	</fieldset>
<?php 
}
<?php

/**
 * @package Yoast\YoastCom
 */
namespace Yoast\YoastCom\Theme;

edd_checkout_hidden_fields();
global $edd_options;
if (isset($edd_options['show_agree_to_terms'])) {
    $class = '';
    if (has_edd_error('agree_to_terms')) {
        $class = 'error';
        edd_unset_error('agree_to_terms');
    }
    ?>
<fieldset id="edd_terms_agreement" class="<?php 
    echo $class;
    ?>
">
	<legend><?php 
    _e('Terms of Service', 'yoast-theme');
    ?>
</legend>
	<input name="edd_agree_to_terms" type="checkbox" id="edd_agree_to_terms" value="1" />
	<label for="edd_agree_to_terms"><?php 
    echo isset($edd_options['agree_label']) ? $edd_options['agree_label'] : __('Agree to Terms?', 'yoast-theme');
    ?>
		<sup> *</sup></label>
</fieldset>
<br />