@@ -996,10 +996,10 @@ discard block |
||
996 | 996 | <?php echo( give_field_is_required( 'billing_country', $form_id ) ? ' required aria-required="true" ' : '' ); ?> |
997 | 997 | > |
998 | 998 | <?php |
999 | - foreach ( $countries as $country_code => $country ) { |
|
1000 | - echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
1001 | - } |
|
1002 | - ?> |
|
999 | + foreach ( $countries as $country_code => $country ) { |
|
1000 | + echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
1001 | + } |
|
1002 | + ?> |
|
1003 | 1003 | </select> |
1004 | 1004 | </p> |
1005 | 1005 | |
@@ -1071,7 +1071,7 @@ discard block |
||
1071 | 1071 | <label for="card_state" class="give-label"> |
1072 | 1072 | <span class="state-label-text"><?php echo $label; ?></span> |
1073 | 1073 | <?php if ( give_field_is_required( 'card_state', $form_id ) ) : |
1074 | - ?> |
|
1074 | + ?> |
|
1075 | 1075 | <span class="give-required-indicator <?php echo( array_key_exists( $selected_country, $states_not_required_country_list ) ? 'give-hidden' : '' ) ?> ">*</span> |
1076 | 1076 | <?php endif; ?> |
1077 | 1077 | <span class="give-tooltip give-icon give-icon-question" |
@@ -1079,7 +1079,7 @@ discard block |
||
1079 | 1079 | </label> |
1080 | 1080 | <?php |
1081 | 1081 | |
1082 | - if ( ! empty( $states ) ) : ?> |
|
1082 | + if ( ! empty( $states ) ) : ?> |
|
1083 | 1083 | <select |
1084 | 1084 | name="card_state" |
1085 | 1085 | autocomplete="address-level4" |
@@ -1087,10 +1087,10 @@ discard block |
||
1087 | 1087 | class="card_state give-select<?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required' : '' ); ?>" |
1088 | 1088 | <?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required aria-required="true" ' : '' ); ?>> |
1089 | 1089 | <?php |
1090 | - foreach ( $states as $state_code => $state ) { |
|
1091 | - echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
1092 | - } |
|
1093 | - ?> |
|
1090 | + foreach ( $states as $state_code => $state ) { |
|
1091 | + echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
1092 | + } |
|
1093 | + ?> |
|
1094 | 1094 | </select> |
1095 | 1095 | <?php else : ?> |
1096 | 1096 | <input type="text" size="6" name="card_state" id="card_state" class="card_state give-input" |
@@ -1292,8 +1292,8 @@ discard block |
||
1292 | 1292 | <a href="<?php echo remove_query_arg( 'login' ); ?>" class="give-checkout-register-cancel" |
1293 | 1293 | data-action="give_checkout_register"> |
1294 | 1294 | <?php if ( give_logged_in_only( $form_id ) ) { |
1295 | - _e( 'Register as a part of your donation »', 'give' ); |
|
1296 | - } else { |
|
1295 | + _e( 'Register as a part of your donation »', 'give' ); |
|
1296 | + } else { |
|
1297 | 1297 | _e( 'Register or donate as a guest »', 'give' ); |
1298 | 1298 | } ?> |
1299 | 1299 | </a> |
@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | |
9 | 9 | // Sanity check - ensure form has pass all condition to show goal. |
10 | 10 | if ( ( isset( $args['show_goal'] ) && ! filter_var( $args['show_goal'], FILTER_VALIDATE_BOOLEAN ) ) |
11 | - || empty( $form->ID ) |
|
12 | - || ( is_singular( 'give_forms' ) && ! give_is_setting_enabled( $goal_option ) ) |
|
13 | - || ! give_is_setting_enabled( $goal_option ) || 0 === $form->goal ) { |
|
11 | + || empty( $form->ID ) |
|
12 | + || ( is_singular( 'give_forms' ) && ! give_is_setting_enabled( $goal_option ) ) |
|
13 | + || ! give_is_setting_enabled( $goal_option ) || 0 === $form->goal ) { |
|
14 | 14 | return false; |
15 | 15 | } |
16 | 16 | |
@@ -97,17 +97,17 @@ discard block |
||
97 | 97 | echo sprintf( /* translators: 1: amount of income raised 2: goal target amount. */ |
98 | 98 | __( '<span class="income">%1$s</span> of <span class="goal-text">%2$s</span> raised', 'give' ), give_currency_filter( $income, array( 'form_id' => $form_id ) ), give_currency_filter( $goal, array( 'form_id' => $form_id ) ) ); |
99 | 99 | |
100 | - elseif ( 'percentage' === $goal_format ) : |
|
100 | + elseif ( 'percentage' === $goal_format ) : |
|
101 | 101 | |
102 | 102 | echo sprintf( /* translators: %s: percentage of the amount raised compared to the goal target */ |
103 | 103 | __( '<span class="give-percentage">%s%%</span> funded', 'give' ), round( $progress ) ); |
104 | 104 | |
105 | - elseif ( 'donation' === $goal_format ) : |
|
105 | + elseif ( 'donation' === $goal_format ) : |
|
106 | 106 | |
107 | 107 | echo sprintf( /* translators: 1: total number of donations completed 2: total number of donations set as goal */ |
108 | 108 | _n( '<span class="income">%1$s</span> of <span class="goal-text">%2$s</span> donation', '<span class="income">%1$s</span> of <span class="goal-text">%2$s</span> donations', $goal, 'give' ), $income, $goal ); |
109 | 109 | |
110 | - elseif ( 'donors' === $goal_format ) : |
|
110 | + elseif ( 'donors' === $goal_format ) : |
|
111 | 111 | |
112 | 112 | echo sprintf( /* translators: 1: total number of donors completed 2: total number of donors set as goal */ |
113 | 113 | _n( '<span class="income">%1$s</span> of <span class="goal-text">%2$s</span> donation', '<span class="income">%1$s</span> of <span class="goal-text">%2$s</span> donors', $goal, 'give' ), $income, $goal ); |