| @@ -42,16 +42,16 @@ | ||
| 42 | 42 | 'minWidth' => 320, | 
| 43 | 43 | 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ), | 
| 44 | 44 | ), | 
| 45 | - array( | |
| 46 | - 'type' => 'container', | |
| 47 | - 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ), | |
| 48 | - ), | |
| 49 | - array( | |
| 50 | - 'type' => 'textbox', | |
| 51 | - 'name' => 'logout-redirect', | |
| 52 | - 'minWidth' => 320, | |
| 53 | - 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ), | |
| 54 | - ), | |
| 45 | + array( | |
| 46 | + 'type' => 'container', | |
| 47 | + 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ), | |
| 48 | + ), | |
| 49 | + array( | |
| 50 | + 'type' => 'textbox', | |
| 51 | + 'name' => 'logout-redirect', | |
| 52 | + 'minWidth' => 320, | |
| 53 | + 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ), | |
| 54 | + ), | |
| 55 | 55 | ); | 
| 56 | 56 | } | 
| 57 | 57 | } | 
| @@ -248,8 +248,8 @@ | ||
| 248 | 248 | |
| 249 | 249 | // do not reindex array! | 
| 250 | 250 | $field['options'] = array( | 
| 251 | - '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ), | |
| 252 | - ) + $field['options']; | |
| 251 | + '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ), | |
| 252 | + ) + $field['options']; | |
| 253 | 253 | |
| 254 | 254 |  			foreach ( $field['options'] as $value => $text ) { | 
| 255 | 255 | $new_listbox['values'][] = array( | 
| @@ -79,13 +79,13 @@ discard block | ||
| 79 | 79 | 'default' => get_bloginfo( 'admin_email' ), | 
| 80 | 80 | 'type' => 'text' | 
| 81 | 81 | ), | 
| 82 | - array( | |
| 83 | - 'name' => esc_html__( 'Email Settings Docs Link', 'give' ), | |
| 84 | - 'id' => 'email_settings_docs_link', | |
| 85 | - 'url' => esc_url( 'http://docs.givewp.com/settings-emails' ), | |
| 86 | - 'title' => __( 'Email Settings', 'give' ), | |
| 87 | - 'type' => 'give_docs_link', | |
| 88 | - ), | |
| 82 | + array( | |
| 83 | + 'name' => esc_html__( 'Email Settings Docs Link', 'give' ), | |
| 84 | + 'id' => 'email_settings_docs_link', | |
| 85 | + 'url' => esc_url( 'http://docs.givewp.com/settings-emails' ), | |
| 86 | + 'title' => __( 'Email Settings', 'give' ), | |
| 87 | + 'type' => 'give_docs_link', | |
| 88 | + ), | |
| 89 | 89 | array( | 
| 90 | 90 | 'id' => 'give_title_email_settings_1', | 
| 91 | 91 | 'type' => 'sectionend' | 
| @@ -118,13 +118,13 @@ discard block | ||
| 118 | 118 | 'type' => 'wysiwyg', | 
| 119 | 119 | 'default' => give_get_default_donation_receipt_email() | 
| 120 | 120 | ), | 
| 121 | - array( | |
| 122 | - 'name' => esc_html__( 'Donation Receipt Settings Docs Link', 'give' ), | |
| 123 | - 'id' => 'donation_receipt_settings_docs_link', | |
| 124 | - 'url' => esc_url( 'http://docs.givewp.com/settings-donation-receipt' ), | |
| 125 | - 'title' => __( 'Donation Receipt Settings', 'give' ), | |
| 126 | - 'type' => 'give_docs_link', | |
| 127 | - ), | |
| 121 | + array( | |
| 122 | + 'name' => esc_html__( 'Donation Receipt Settings Docs Link', 'give' ), | |
| 123 | + 'id' => 'donation_receipt_settings_docs_link', | |
| 124 | + 'url' => esc_url( 'http://docs.givewp.com/settings-donation-receipt' ), | |
| 125 | + 'title' => __( 'Donation Receipt Settings', 'give' ), | |
| 126 | + 'type' => 'give_docs_link', | |
| 127 | + ), | |
| 128 | 128 | array( | 
| 129 | 129 | 'id' => 'give_title_email_settings_2', | 
| 130 | 130 | 'type' => 'sectionend' | 
| @@ -175,13 +175,13 @@ discard block | ||
| 175 | 175 | 'type' => 'textarea', | 
| 176 | 176 | 'default' => get_bloginfo( 'admin_email' ) | 
| 177 | 177 | ), | 
| 178 | - array( | |
| 179 | - 'name' => esc_html__( 'Donation Notification Settings Docs Link', 'give' ), | |
| 180 | - 'id' => 'donation_notification_settings_docs_link', | |
| 181 | - 'url' => esc_url( 'http://docs.givewp.com/settings-donation-notification' ), | |
| 182 | - 'title' => __( 'Donation Notification Settings', 'give' ), | |
| 183 | - 'type' => 'give_docs_link', | |
| 184 | - ), | |
| 178 | + array( | |
| 179 | + 'name' => esc_html__( 'Donation Notification Settings Docs Link', 'give' ), | |
| 180 | + 'id' => 'donation_notification_settings_docs_link', | |
| 181 | + 'url' => esc_url( 'http://docs.givewp.com/settings-donation-notification' ), | |
| 182 | + 'title' => __( 'Donation Notification Settings', 'give' ), | |
| 183 | + 'type' => 'give_docs_link', | |
| 184 | + ), | |
| 185 | 185 | array( | 
| 186 | 186 | 'id' => 'give_title_email_settings_3', | 
| 187 | 187 | 'type' => 'sectionend' | 
| @@ -138,8 +138,8 @@ | ||
| 138 | 138 | |
| 139 | 139 | // Only run in admin post/page creation and edit screens | 
| 140 | 140 | if ( in_array( $screen->parent_file, $shortcode_button_pages ) | 
| 141 | - && apply_filters( 'give_shortcode_button_condition', true ) | |
| 142 | - && ! empty( self::$shortcodes ) | |
| 141 | + && apply_filters( 'give_shortcode_button_condition', true ) | |
| 142 | + && ! empty( self::$shortcodes ) | |
| 143 | 143 |  		) { | 
| 144 | 144 | |
| 145 | 145 | $shortcodes = array(); | 
| @@ -812,10 +812,10 @@ discard block | ||
| 812 | 812 | } | 
| 813 | 813 | |
| 814 | 814 | if ( ! is_int( $params[1] ) | 
| 815 | - && ! is_float( $params[1] ) | |
| 816 | - && ! is_string( $params[1] ) | |
| 817 | - && $params[1] !== null | |
| 818 | - && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) | |
| 815 | + && ! is_float( $params[1] ) | |
| 816 | + && ! is_string( $params[1] ) | |
| 817 | + && $params[1] !== null | |
| 818 | + && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) ) | |
| 819 | 819 |  		) { | 
| 820 | 820 | trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING ); | 
| 821 | 821 | |
| @@ -823,10 +823,10 @@ discard block | ||
| 823 | 823 | } | 
| 824 | 824 | |
| 825 | 825 | if ( isset( $params[2] ) | 
| 826 | - && ! is_int( $params[2] ) | |
| 827 | - && ! is_float( $params[2] ) | |
| 828 | - && ! is_string( $params[2] ) | |
| 829 | - && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) | |
| 826 | + && ! is_int( $params[2] ) | |
| 827 | + && ! is_float( $params[2] ) | |
| 828 | + && ! is_string( $params[2] ) | |
| 829 | + && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) ) | |
| 830 | 830 |  		) { | 
| 831 | 831 | trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING ); | 
| 832 | 832 | |
| @@ -86,13 +86,13 @@ discard block | ||
| 86 | 86 | 'disabled' => __( 'Disabled', 'give' ), | 
| 87 | 87 | ) | 
| 88 | 88 | ), | 
| 89 | - array( | |
| 90 | - 'name' => __( 'PayPal Standard Gateway Settings Docs Link', 'give' ), | |
| 91 | - 'id' => 'paypal_standard_gateway_settings_docs_link', | |
| 92 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-paypal-standard' ), | |
| 93 | - 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), | |
| 94 | - 'type' => 'give_docs_link', | |
| 95 | - ), | |
| 89 | + array( | |
| 90 | + 'name' => __( 'PayPal Standard Gateway Settings Docs Link', 'give' ), | |
| 91 | + 'id' => 'paypal_standard_gateway_settings_docs_link', | |
| 92 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-paypal-standard' ), | |
| 93 | + 'title' => __( 'PayPal Standard Gateway Settings', 'give' ), | |
| 94 | + 'type' => 'give_docs_link', | |
| 95 | + ), | |
| 96 | 96 | array( | 
| 97 | 97 | 'type' => 'sectionend', | 
| 98 | 98 | 'id' => 'give_title_gateway_settings_2', | 
| @@ -145,13 +145,13 @@ discard block | ||
| 145 | 145 | 'textarea_rows' => 6, | 
| 146 | 146 | ) | 
| 147 | 147 | ), | 
| 148 | - array( | |
| 149 | - 'name' => __( 'Offline Donations Settings Docs Link', 'give' ), | |
| 150 | - 'id' => 'offline_gateway_settings_docs_link', | |
| 151 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-offline-donations' ), | |
| 152 | - 'title' => __( 'Offline Gateway Settings', 'give' ), | |
| 153 | - 'type' => 'give_docs_link', | |
| 154 | - ), | |
| 148 | + array( | |
| 149 | + 'name' => __( 'Offline Donations Settings Docs Link', 'give' ), | |
| 150 | + 'id' => 'offline_gateway_settings_docs_link', | |
| 151 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateway-offline-donations' ), | |
| 152 | + 'title' => __( 'Offline Gateway Settings', 'give' ), | |
| 153 | + 'type' => 'give_docs_link', | |
| 154 | + ), | |
| 155 | 155 | array( | 
| 156 | 156 | 'type' => 'sectionend', | 
| 157 | 157 | 'id' => 'give_title_gateway_settings_3', | 
| @@ -189,13 +189,13 @@ discard block | ||
| 189 | 189 | 'id' => 'default_gateway', | 
| 190 | 190 | 'type' => 'default_gateway' | 
| 191 | 191 | ), | 
| 192 | - array( | |
| 193 | - 'name' => __( 'Gateways Docs Link', 'give' ), | |
| 194 | - 'id' => 'gateway_settings_docs_link', | |
| 195 | - 'url' => esc_url( 'http://docs.givewp.com/settings-gateways' ), | |
| 196 | - 'title' => __( 'Gateway Settings', 'give' ), | |
| 197 | - 'type' => 'give_docs_link', | |
| 198 | - ), | |
| 192 | + array( | |
| 193 | + 'name' => __( 'Gateways Docs Link', 'give' ), | |
| 194 | + 'id' => 'gateway_settings_docs_link', | |
| 195 | + 'url' => esc_url( 'http://docs.givewp.com/settings-gateways' ), | |
| 196 | + 'title' => __( 'Gateway Settings', 'give' ), | |
| 197 | + 'type' => 'give_docs_link', | |
| 198 | + ), | |
| 199 | 199 | array( | 
| 200 | 200 | 'id' => 'give_title_gateway_settings_1', | 
| 201 | 201 | 'type' => 'sectionend' | 
| @@ -555,7 +555,7 @@ discard block | ||
| 555 | 555 | type="radio" | 
| 556 | 556 | style="' . esc_attr( $field['style'] ) . '" | 
| 557 | 557 | ' . checked( esc_attr( $field['value'] ), esc_attr( $key ), false ) . ' ' | 
| 558 | - . give_get_custom_attributes( $field ) . ' | |
| 558 | + . give_get_custom_attributes( $field ) . ' | |
| 559 | 559 | /> ' . esc_html( $value ) . '</label> | 
| 560 | 560 | </li>'; | 
| 561 | 561 | } | 
| @@ -704,9 +704,9 @@ discard block | ||
| 704 | 704 | $field['title'] = isset( $field['title'] ) ? $field['title'] : 'Documentation'; | 
| 705 | 705 | |
| 706 | 706 | echo '<p class="give-docs-link"><a href="' . esc_url( $field['url'] ) | 
| 707 | - . '" target="_blank">' | |
| 708 | - . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] ) | |
| 709 | - . '<span class="dashicons dashicons-editor-help"></span></a></p>'; | |
| 707 | + . '" target="_blank">' | |
| 708 | + . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] ) | |
| 709 | + . '<span class="dashicons dashicons-editor-help"></span></a></p>'; | |
| 710 | 710 | } | 
| 711 | 711 | |
| 712 | 712 | /** | 
| @@ -254,8 +254,8 @@ | ||
| 254 | 254 | $args = array( | 
| 255 | 255 | 'id' => 'give-api-user-search', | 
| 256 | 256 | 'name' => 'user_id', | 
| 257 | - ); | |
| 258 | - echo Give()->html->ajax_user_search($args); ?> | |
| 257 | + ); | |
| 258 | + echo Give()->html->ajax_user_search($args); ?> | |
| 259 | 259 | <?php submit_button( esc_html__( 'Generate New API Keys', 'give' ), 'secondary', 'submit', false ); ?> | 
| 260 | 260 | <?php | 
| 261 | 261 | $give_api_is_bottom = true; | 
| @@ -249,10 +249,10 @@ | ||
| 249 | 249 |  	$admin_message .= '<strong>' . __( 'Amount:', 'give' ) . '</strong> {amount}' . "\n\n"; | 
| 250 | 250 | |
| 251 | 251 | $admin_message .= sprintf( | 
| 252 | - '<a href="%1$s">%2$s</a>', | |
| 253 | - admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $payment_id ), | |
| 254 | - __( 'View Donation Details »', 'give' ) | |
| 255 | - ) . "\n\n"; | |
| 252 | + '<a href="%1$s">%2$s</a>', | |
| 253 | + admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=' . $payment_id ), | |
| 254 | + __( 'View Donation Details »', 'give' ) | |
| 255 | + ) . "\n\n"; | |
| 256 | 256 | |
| 257 | 257 | $admin_message = apply_filters( 'give_offline_admin_donation_notification', $admin_message, $payment_id ); | 
| 258 | 258 | $admin_message = give_do_email_tags( $admin_message, $payment_id ); |