@@ -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> |
@@ -60,7 +60,12 @@ discard block |
||
| 60 | 60 | <tr> |
| 61 | 61 | <td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td> |
| 62 | 62 | <td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?></td> |
| 63 | - <td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '–'; ?></td> |
|
| 63 | + <td><?php if ( is_multisite() ) { |
|
| 64 | + echo '<span class="dashicons dashicons-yes"></span>'; |
|
| 65 | +} else { |
|
| 66 | + echo '–'; |
|
| 67 | +} |
|
| 68 | +?></td> |
|
| 64 | 69 | |
| 65 | 70 | </tr> |
| 66 | 71 | <tr> |
@@ -89,9 +94,12 @@ discard block |
||
| 89 | 94 | <td> |
| 90 | 95 | <?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?> |
| 91 | 96 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> |
| 92 | - <?php else : ?> |
|
| 97 | + <?php else { |
|
| 98 | + : ?> |
|
| 93 | 99 | <mark class="no">–</mark> |
| 94 | - <?php endif; ?> |
|
| 100 | + <?php endif; |
|
| 101 | +} |
|
| 102 | +?> |
|
| 95 | 103 | </td> |
| 96 | 104 | </tr> |
| 97 | 105 | <tr> |
@@ -100,9 +108,12 @@ discard block |
||
| 100 | 108 | <td> |
| 101 | 109 | <?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?> |
| 102 | 110 | <mark class="no">–</mark> |
| 103 | - <?php else : ?> |
|
| 111 | + <?php else { |
|
| 112 | + : ?> |
|
| 104 | 113 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> |
| 105 | - <?php endif; ?> |
|
| 114 | + <?php endif; |
|
| 115 | +} |
|
| 116 | +?> |
|
| 106 | 117 | </td> |
| 107 | 118 | </tr> |
| 108 | 119 | <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. |
@@ -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 | } |
@@ -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 | |