| @@ -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( | 
| @@ -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> | 
| @@ -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 ); | 
| @@ -245,7 +245,7 @@ | ||
| 245 | 245 | |
| 246 | 246 | // Continue if donor already included. | 
| 247 | 247 | if ( empty( $payment->customer_id ) || | 
| 248 | - in_array( $payment->customer_id, $cached_donor_ids ) | |
| 248 | + in_array( $payment->customer_id, $cached_donor_ids ) | |
| 249 | 249 |  					) { | 
| 250 | 250 | continue; | 
| 251 | 251 | } | 
| @@ -39,8 +39,8 @@ | ||
| 39 | 39 | } | 
| 40 | 40 | |
| 41 | 41 | if ( ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) | 
| 42 | - || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) | |
| 43 | - && class_exists( 'WPSEO_Sitemaps_Cache' ) | |
| 42 | + || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) ) | |
| 43 | + && class_exists( 'WPSEO_Sitemaps_Cache' ) | |
| 44 | 44 |  	) { | 
| 45 | 45 | |
| 46 | 46 | $forms_singular_option = give_get_option( 'forms_singular' ); | 
| @@ -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 | |
| @@ -202,8 +202,8 @@ | ||
| 202 | 202 | // 2. Processing percentage greater then 100% | 
| 203 | 203 | if( ( | 
| 204 | 204 | 101 < $resume_update['total_percentage'] ) || | 
| 205 | - ( $give_updates->get_total_db_update_count() < $resume_update['update'] ) || | |
| 206 | - ! in_array( $resume_update['update_info']['id'], $give_updates->get_update_ids() ) | |
| 205 | + ( $give_updates->get_total_db_update_count() < $resume_update['update'] ) || | |
| 206 | + ! in_array( $resume_update['update_info']['id'], $give_updates->get_update_ids() ) | |
| 207 | 207 |  		) { | 
| 208 | 208 |  			if( ! $this->is_paused_process() ){ | 
| 209 | 209 | $give_updates->__pause_db_update(true); | 
| @@ -22,15 +22,15 @@ | ||
| 22 | 22 | <div class="postbox"> | 
| 23 | 23 | <h1 class="give-importer-h1" align="center"> | 
| 24 | 24 | <?php | 
| 25 | - _e( 'Import Donations', 'give' ); | |
| 25 | + _e( 'Import Donations', 'give' ); | |
| 26 | 26 | |
| 27 | -	            if ( ! empty( $_POST['mapto'] ) && ! empty( $_GET['dry_run'] ) ) { | |
| 28 | - printf( | |
| 27 | +				if ( ! empty( $_POST['mapto'] ) && ! empty( $_GET['dry_run'] ) ) { | |
| 28 | + printf( | |
| 29 | 29 | '<strong> %s</strong>', | 
| 30 | - __( '(Dry Run)', 'give' ) | |
| 31 | - ); | |
| 32 | - } | |
| 33 | - ?> | |
| 30 | + __( '(Dry Run)', 'give' ) | |
| 31 | + ); | |
| 32 | + } | |
| 33 | + ?> | |
| 34 | 34 | </h1> | 
| 35 | 35 | <div class="inside give-tools-setting-page-import give-import-donations"> | 
| 36 | 36 | <?php |