if ($email_error = has_edd_error('email_empty')) { $email_error_class = 'error'; edd_unset_error('email_empty'); } else { if ($email_error = has_edd_error('invalid_email')) { $email_error_class = 'error'; edd_unset_error('invalid_email'); } } $fn_error_class = ''; if ($fn_error = has_edd_error('invalid_first_name')) { $fn_error_class = 'error'; edd_unset_error('invalid_first_name'); } $ln_error_class = ''; if ($ln_error = has_edd_error('invalid_last_name')) { $ln_error_class = 'error'; edd_unset_error('invalid_last_name'); } $customer = get_customer(); ?> <fieldset id="edd_checkout_user_info"> <span><legend><?php echo apply_filters('edd_checkout_personal_info_text', __('Personal Info', 'yoast-theme')); ?> </legend></span> <p id="edd-first-name-wrap"> <label class="edd-label <?php echo $fn_error_class; ?>
<?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 />