@@ -654,8 +654,8 @@ discard block |
||
654 | 654 | |
655 | 655 | <input type="text" id="card_address" name="card_address" |
656 | 656 | class="card-address give-input<?php if ( give_field_is_required( 'card_address', $form_id ) ) { |
657 | - echo ' required'; |
|
658 | - } ?>" placeholder="<?php _e( 'Address line 1', 'give' ); ?>" |
|
657 | + echo ' required'; |
|
658 | + } ?>" placeholder="<?php _e( 'Address line 1', 'give' ); ?>" |
|
659 | 659 | value="<?php echo $line1; ?>"<?php if ( give_field_is_required( 'card_address', $form_id ) ) { |
660 | 660 | echo ' required '; |
661 | 661 | } ?>/> |
@@ -673,8 +673,8 @@ discard block |
||
673 | 673 | |
674 | 674 | <input type="text" id="card_address_2" name="card_address_2" |
675 | 675 | class="card-address-2 give-input<?php if ( give_field_is_required( 'card_address_2', $form_id ) ) { |
676 | - echo ' required'; |
|
677 | - } ?>" placeholder="<?php _e( 'Address line 2', 'give' ); ?>" |
|
676 | + echo ' required'; |
|
677 | + } ?>" placeholder="<?php _e( 'Address line 2', 'give' ); ?>" |
|
678 | 678 | value="<?php echo $line2; ?>"<?php if ( give_field_is_required( 'card_address_2', $form_id ) ) { |
679 | 679 | echo ' required '; |
680 | 680 | } ?>/> |
@@ -691,8 +691,8 @@ discard block |
||
691 | 691 | </label> |
692 | 692 | <input type="text" id="card_city" name="card_city" |
693 | 693 | class="card-city give-input<?php if ( give_field_is_required( 'card_city', $form_id ) ) { |
694 | - echo ' required'; |
|
695 | - } ?>" placeholder="<?php _e( 'City', 'give' ); ?>" |
|
694 | + echo ' required'; |
|
695 | + } ?>" placeholder="<?php _e( 'City', 'give' ); ?>" |
|
696 | 696 | value="<?php echo $city; ?>"<?php if ( give_field_is_required( 'card_city', $form_id ) ) { |
697 | 697 | echo ' required '; |
698 | 698 | } ?>/> |
@@ -710,8 +710,8 @@ discard block |
||
710 | 710 | |
711 | 711 | <input type="text" size="4" id="card_zip" name="card_zip" |
712 | 712 | class="card-zip give-input<?php if ( give_field_is_required( 'card_zip', $form_id ) ) { |
713 | - echo ' required'; |
|
714 | - } ?>" placeholder="<?php _e( 'Zip / Postal code', 'give' ); ?>" |
|
713 | + echo ' required'; |
|
714 | + } ?>" placeholder="<?php _e( 'Zip / Postal code', 'give' ); ?>" |
|
715 | 715 | value="<?php echo $zip; ?>" <?php if ( give_field_is_required( 'card_zip', $form_id ) ) { |
716 | 716 | echo ' required '; |
717 | 717 | } ?>/> |
@@ -729,8 +729,8 @@ discard block |
||
729 | 729 | |
730 | 730 | <select name="billing_country" id="billing_country" |
731 | 731 | class="billing-country billing_country give-select<?php if ( give_field_is_required( 'billing_country', $form_id ) ) { |
732 | - echo ' required'; |
|
733 | - } ?>"<?php if ( give_field_is_required( 'billing_country', $form_id ) ) { |
|
732 | + echo ' required'; |
|
733 | + } ?>"<?php if ( give_field_is_required( 'billing_country', $form_id ) ) { |
|
734 | 734 | echo ' required '; |
735 | 735 | } ?>> |
736 | 736 | <?php |
@@ -770,8 +770,8 @@ discard block |
||
770 | 770 | if ( ! empty( $states ) ) : ?> |
771 | 771 | <select name="card_state" id="card_state" |
772 | 772 | class="card_state give-select<?php if ( give_field_is_required( 'card_state', $form_id ) ) { |
773 | - echo ' required'; |
|
774 | - } ?>"<?php if ( give_field_is_required( 'card_state', $form_id ) ) { |
|
773 | + echo ' required'; |
|
774 | + } ?>"<?php if ( give_field_is_required( 'card_state', $form_id ) ) { |
|
775 | 775 | echo ' required '; |
776 | 776 | } ?>> |
777 | 777 | <?php |
@@ -848,8 +848,8 @@ discard block |
||
848 | 848 | |
849 | 849 | <input name="give_user_login" id="give-user-login-<?php echo $form_id; ?>" |
850 | 850 | class="<?php if ( give_no_guest_checkout( $form_id ) ) { |
851 | - echo 'required '; |
|
852 | - } ?>give-input" type="text" placeholder="<?php _e( 'Username', 'give' ); ?>" |
|
851 | + echo 'required '; |
|
852 | + } ?>give-input" type="text" placeholder="<?php _e( 'Username', 'give' ); ?>" |
|
853 | 853 | title="<?php _e( 'Username', 'give' ); ?>"/> |
854 | 854 | </p> |
855 | 855 | |
@@ -865,8 +865,8 @@ discard block |
||
865 | 865 | |
866 | 866 | <input name="give_user_pass" id="give-user-pass-<?php echo $form_id; ?>" |
867 | 867 | class="<?php if ( give_no_guest_checkout( $form_id ) ) { |
868 | - echo 'required '; |
|
869 | - } ?>give-input" placeholder="<?php _e( 'Password', 'give' ); ?>" type="password"/> |
|
868 | + echo 'required '; |
|
869 | + } ?>give-input" placeholder="<?php _e( 'Password', 'give' ); ?>" type="password"/> |
|
870 | 870 | </p> |
871 | 871 | |
872 | 872 | <p id="give-user-pass-confirm-wrap-<?php echo $form_id; ?>" |
@@ -882,8 +882,8 @@ discard block |
||
882 | 882 | |
883 | 883 | <input name="give_user_pass_confirm" id="give-user-pass-confirm-<?php echo $form_id; ?>" |
884 | 884 | class="<?php if ( give_no_guest_checkout( $form_id ) ) { |
885 | - echo 'required '; |
|
886 | - } ?>give-input" placeholder="<?php _e( 'Confirm password', 'give' ); ?>" type="password"/> |
|
885 | + echo 'required '; |
|
886 | + } ?>give-input" placeholder="<?php _e( 'Confirm password', 'give' ); ?>" type="password"/> |
|
887 | 887 | </p> |
888 | 888 | <?php do_action( 'give_register_account_fields_after', $form_id ); ?> |
889 | 889 | </fieldset> |
@@ -1264,9 +1264,9 @@ discard block |
||
1264 | 1264 | |
1265 | 1265 | //Sanity check - ensure form has goal set to output |
1266 | 1266 | if ( empty( $form->ID ) |
1267 | - || ( is_singular( 'give_forms' ) && $goal_option !== 'yes' ) |
|
1268 | - || $goal_option !== 'yes' |
|
1269 | - || $goal == 0 |
|
1267 | + || ( is_singular( 'give_forms' ) && $goal_option !== 'yes' ) |
|
1268 | + || $goal_option !== 'yes' |
|
1269 | + || $goal == 0 |
|
1270 | 1270 | ) { |
1271 | 1271 | //not this form, bail |
1272 | 1272 | return false; |