| @@ -57,7 +57,12 @@ discard block | ||
| 57 | 57 | <tr> | 
| 58 | 58 | <td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td> | 
| 59 | 59 | <td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?>"></span></td> | 
| 60 | - <td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '–'; ?></td> | |
| 60 | +			<td><?php if ( is_multisite() ) { | |
| 61 | + echo '<span class="dashicons dashicons-yes"></span>'; | |
| 62 | +} else { | |
| 63 | + echo '–'; | |
| 64 | +} | |
| 65 | +?></td> | |
| 61 | 66 | </tr> | 
| 62 | 67 | <tr> | 
| 63 | 68 | <td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'give' ); ?>:</td> | 
| @@ -85,9 +90,12 @@ discard block | ||
| 85 | 90 | <td> | 
| 86 | 91 | <?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?> | 
| 87 | 92 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> | 
| 88 | - <?php else : ?> | |
| 93 | +				<?php else { | |
| 94 | + : ?> | |
| 89 | 95 | <mark class="no">–</mark> | 
| 90 | - <?php endif; ?> | |
| 96 | + <?php endif; | |
| 97 | +} | |
| 98 | +?> | |
| 91 | 99 | </td> | 
| 92 | 100 | </tr> | 
| 93 | 101 | <tr> | 
| @@ -96,9 +104,12 @@ discard block | ||
| 96 | 104 | <td> | 
| 97 | 105 | <?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?> | 
| 98 | 106 | <mark class="no">–</mark> | 
| 99 | - <?php else : ?> | |
| 107 | +				<?php else { | |
| 108 | + : ?> | |
| 100 | 109 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> | 
| 101 | - <?php endif; ?> | |
| 110 | + <?php endif; | |
| 111 | +} | |
| 112 | +?> | |
| 102 | 113 | </td> | 
| 103 | 114 | </tr> | 
| 104 | 115 | <tr> | 
| @@ -1,7 +1,9 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | 3 | // Exit if accessed directly | 
| 4 | -if ( ! defined( 'ABSPATH' ) ) exit; | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 5 | 7 | |
| 6 | 8 | /** | 
| 7 | 9 | * Allows plugins to use their own update API. | 
| @@ -1328,7 +1328,7 @@ | ||
| 1328 | 1328 | ); | 
| 1329 | 1329 | $license_status = 'license-' . $class; | 
| 1330 | 1330 | |
| 1331 | -		}else { | |
| 1331 | +		} else { | |
| 1332 | 1332 |  			switch ( $license->license ) { | 
| 1333 | 1333 | case 'valid' : | 
| 1334 | 1334 | default: | 
| @@ -520,7 +520,7 @@ | ||
| 520 | 520 | // Check whether the donor name and WP_User name is same or not. | 
| 521 | 521 |                                                  if( sanitize_title( $donor_billing_name ) != sanitize_title( $donor_name ) ){ | 
| 522 | 522 | echo $donor_billing_name . ' (<a href="' . esc_url( admin_url( "edit.php?post_type=give_forms&page=give-donors&view=overview&id=$donor_id" ) ) . '">' . $donor_name . '</a>)'; | 
| 523 | -                                                }else{ | |
| 523 | +                                                } else{ | |
| 524 | 524 | echo $donor_name; | 
| 525 | 525 | } | 
| 526 | 526 | ?> | 
| @@ -96,7 +96,7 @@ | ||
| 96 | 96 | // Bailout. | 
| 97 | 97 |  	if( empty( $number ) || ( ! is_numeric( $number ) && ! is_string( $number ) ) ) { | 
| 98 | 98 | return $number; | 
| 99 | - }elseif ( | |
| 99 | + } elseif ( | |
| 100 | 100 | ( false == strpos( $number, $thousand_separator ) ) && | 
| 101 | 101 | ( false === strpos( $number, $decimal_separator ) ) | 
| 102 | 102 |  	) { | 
| @@ -75,8 +75,11 @@ discard block | ||
| 75 | 75 | ) : ?> | 
| 76 | 76 | <a href="<?php echo esc_url( add_query_arg( 'payment_key', give_get_payment_key( $post->ID ), give_get_history_page_uri() ) ); ?>"><span | 
| 77 | 77 | class="give-donation-status <?php echo $post->post_status; ?>"><?php echo esc_html__( 'View', 'give' ) . ' ' . give_get_payment_status( $post, true ) . ' »'; ?></span></a> | 
| 78 | - <?php else : ?> | |
| 79 | - <a href="<?php echo esc_url( add_query_arg( 'payment_key', give_get_payment_key( $post->ID ), give_get_history_page_uri() ) ); ?>"><?php esc_html_e( 'View Receipt »', 'give' ); ?></a> | |
| 78 | +					<?php else { | |
| 79 | + : ?> | |
| 80 | + <a href="<?php echo esc_url( add_query_arg( 'payment_key', give_get_payment_key( $post->ID ), give_get_history_page_uri() ) ); | |
| 81 | +} | |
| 82 | +?>"><?php esc_html_e( 'View Receipt »', 'give' ); ?></a> | |
| 80 | 83 | <?php endif; ?> | 
| 81 | 84 | </td> | 
| 82 | 85 | <?php | 
| @@ -107,6 +110,9 @@ discard block | ||
| 107 | 110 | ?> | 
| 108 | 111 | </div> | 
| 109 | 112 | <?php wp_reset_postdata(); ?> | 
| 110 | -<?php else : ?> | |
| 111 | - <?php Give()->notices->print_frontend_notice( esc_html__( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); ?> | |
| 113 | +<?php else { | |
| 114 | + : ?> | |
| 115 | + <?php Give()->notices->print_frontend_notice( esc_html__( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); | |
| 116 | +} | |
| 117 | +?> | |
| 112 | 118 | <?php endif; | 
| @@ -6,7 +6,10 @@ | ||
| 6 | 6 | * @version 1.0 | 
| 7 | 7 | */ | 
| 8 | 8 | |
| 9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit; | |
| 11 | +} | |
| 12 | +// Exit if accessed directly. | |
| 10 | 13 | // This is the footer used if no others are available | 
| 11 | 14 | ?> | 
| 12 | 15 | <!DOCTYPE html> | 
| @@ -6,7 +6,10 @@ | ||
| 6 | 6 | * @version 1.0 | 
| 7 | 7 | */ | 
| 8 | 8 | |
| 9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit; | |
| 11 | +} | |
| 12 | +// Exit if accessed directly. | |
| 10 | 13 | |
| 11 | 14 | |
| 12 | 15 | // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. | 
| @@ -6,7 +6,10 @@ | ||
| 6 | 6 | * @version 1.0 | 
| 7 | 7 | */ | 
| 8 | 8 | |
| 9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit; | |
| 11 | +} | |
| 12 | +// Exit if accessed directly. | |
| 10 | 13 | |
| 11 | 14 |  // {email} is replaced by the content entered in Donations > Settings > Emails | 
| 12 | 15 | |