@@ -586,9 +586,9 @@ |
||
| 586 | 586 | } |
| 587 | 587 | |
| 588 | 588 | echo ' – ' |
| 589 | - . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) |
|
| 590 | - . ' – ' |
|
| 591 | - . esc_html( $plugin_data['Version'] ); |
|
| 589 | + . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) |
|
| 590 | + . ' – ' |
|
| 591 | + . esc_html( $plugin_data['Version'] ); |
|
| 592 | 592 | ?> |
| 593 | 593 | </td> |
| 594 | 594 | </tr> |
@@ -97,13 +97,13 @@ discard block |
||
| 97 | 97 | 'disabled' => __( 'Disabled', 'give' ), |
| 98 | 98 | ) |
| 99 | 99 | ), |
| 100 | - array( |
|
| 101 | - 'name' => __( 'PayPal Standard Gateway Settings Docs Link', 'give' ), |
|
| 102 | - 'id' => 'paypal_standard_gateway_settings_docs_link', |
|
| 103 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-paypal-standard' ), |
|
| 104 | - 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), |
|
| 105 | - 'type' => 'give_docs_link', |
|
| 106 | - ), |
|
| 100 | + array( |
|
| 101 | + 'name' => __( 'PayPal Standard Gateway Settings Docs Link', 'give' ), |
|
| 102 | + 'id' => 'paypal_standard_gateway_settings_docs_link', |
|
| 103 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-paypal-standard' ), |
|
| 104 | + 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), |
|
| 105 | + 'type' => 'give_docs_link', |
|
| 106 | + ), |
|
| 107 | 107 | array( |
| 108 | 108 | 'type' => 'sectionend', |
| 109 | 109 | 'id' => 'give_title_gateway_settings_2', |
@@ -183,13 +183,13 @@ discard block |
||
| 183 | 183 | 'id' => 'default_gateway', |
| 184 | 184 | 'type' => 'default_gateway' |
| 185 | 185 | ), |
| 186 | - array( |
|
| 187 | - 'name' => __( 'Gateways Docs Link', 'give' ), |
|
| 188 | - 'id' => 'gateway_settings_docs_link', |
|
| 189 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateways' ), |
|
| 190 | - 'title' => __( 'Gateway Settings', 'give' ), |
|
| 191 | - 'type' => 'give_docs_link', |
|
| 192 | - ), |
|
| 186 | + array( |
|
| 187 | + 'name' => __( 'Gateways Docs Link', 'give' ), |
|
| 188 | + 'id' => 'gateway_settings_docs_link', |
|
| 189 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateways' ), |
|
| 190 | + 'title' => __( 'Gateway Settings', 'give' ), |
|
| 191 | + 'type' => 'give_docs_link', |
|
| 192 | + ), |
|
| 193 | 193 | array( |
| 194 | 194 | 'id' => 'give_title_gateway_settings_1', |
| 195 | 195 | 'type' => 'sectionend' |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | type="radio" |
| 558 | 558 | style="' . esc_attr( $field['style'] ) . '" |
| 559 | 559 | ' . checked( esc_attr( $field['value'] ), esc_attr( $key ), false ) . ' ' |
| 560 | - . give_get_custom_attributes( $field ) . ' |
|
| 560 | + . give_get_custom_attributes( $field ) . ' |
|
| 561 | 561 | /> ' . esc_html( $value ) . '</label> |
| 562 | 562 | </li>'; |
| 563 | 563 | } |
@@ -725,9 +725,9 @@ discard block |
||
| 725 | 725 | $field['title'] = isset( $field['title'] ) ? $field['title'] : 'Documentation'; |
| 726 | 726 | |
| 727 | 727 | echo '<p class="give-docs-link"><a href="' . esc_url( $field['url'] ) |
| 728 | - . '" target="_blank">' |
|
| 729 | - . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] ) |
|
| 730 | - . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
| 728 | + . '" target="_blank">' |
|
| 729 | + . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] ) |
|
| 730 | + . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
| 731 | 731 | } |
| 732 | 732 | |
| 733 | 733 | |
@@ -175,10 +175,10 @@ |
||
| 175 | 175 | */ |
| 176 | 176 | public function get_default_email_message() { |
| 177 | 177 | $message = sprintf( |
| 178 | - __( 'Please click the link to access your donation history on <a target="_blank" href="%1$s">%1$s</a>. If you did not request this email, please contact <a href="mailto:%2$s">%2$s</a>.', 'give' ), |
|
| 179 | - get_bloginfo( 'url' ), |
|
| 180 | - get_bloginfo( 'admin_email' ) |
|
| 181 | - ) . "\n\n"; |
|
| 178 | + __( 'Please click the link to access your donation history on <a target="_blank" href="%1$s">%1$s</a>. If you did not request this email, please contact <a href="mailto:%2$s">%2$s</a>.', 'give' ), |
|
| 179 | + get_bloginfo( 'url' ), |
|
| 180 | + get_bloginfo( 'admin_email' ) |
|
| 181 | + ) . "\n\n"; |
|
| 182 | 182 | $message .= '{email_access_link}' . "\n\n"; |
| 183 | 183 | $message .= "\n\n"; |
| 184 | 184 | $message .= __( 'Sincerely,', 'give' ) . "\n"; |
@@ -928,10 +928,10 @@ discard block |
||
| 928 | 928 | <?php echo( give_field_is_required( 'billing_country', $form_id ) ? ' required aria-required="true" ' : '' ); ?> |
| 929 | 929 | > |
| 930 | 930 | <?php |
| 931 | - foreach ( $countries as $country_code => $country ) { |
|
| 932 | - echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
| 933 | - } |
|
| 934 | - ?> |
|
| 931 | + foreach ( $countries as $country_code => $country ) { |
|
| 932 | + echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
| 933 | + } |
|
| 934 | + ?> |
|
| 935 | 935 | </select> |
| 936 | 936 | </p> |
| 937 | 937 | |
@@ -1000,7 +1000,7 @@ discard block |
||
| 1000 | 1000 | <label for="card_state" class="give-label"> |
| 1001 | 1001 | <span class="state-label-text"><?php echo $label; ?></span> |
| 1002 | 1002 | <?php if ( give_field_is_required( 'card_state', $form_id ) ) : |
| 1003 | - ?> |
|
| 1003 | + ?> |
|
| 1004 | 1004 | <span class="give-required-indicator <?php echo( array_key_exists( $selected_country, $states_not_required_country_list ) ? 'give-hidden' : '' ) ?> ">*</span> |
| 1005 | 1005 | <?php endif; ?> |
| 1006 | 1006 | <span class="give-tooltip give-icon give-icon-question" |
@@ -1008,17 +1008,17 @@ discard block |
||
| 1008 | 1008 | </label> |
| 1009 | 1009 | <?php |
| 1010 | 1010 | |
| 1011 | - if ( ! empty( $states ) ) : ?> |
|
| 1011 | + if ( ! empty( $states ) ) : ?> |
|
| 1012 | 1012 | <select |
| 1013 | 1013 | name="card_state" |
| 1014 | 1014 | id="card_state" |
| 1015 | 1015 | class="card_state give-select<?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required' : '' ); ?>" |
| 1016 | 1016 | <?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required aria-required="true" ' : '' ); ?>> |
| 1017 | 1017 | <?php |
| 1018 | - foreach ( $states as $state_code => $state ) { |
|
| 1019 | - echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
| 1020 | - } |
|
| 1021 | - ?> |
|
| 1018 | + foreach ( $states as $state_code => $state ) { |
|
| 1019 | + echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
| 1020 | + } |
|
| 1021 | + ?> |
|
| 1022 | 1022 | </select> |
| 1023 | 1023 | <?php else : ?> |
| 1024 | 1024 | <input type="text" size="6" name="card_state" id="card_state" class="card_state give-input" |