@@ -188,8 +188,8 @@ |
||
| 188 | 188 | |
| 189 | 189 | $payment_ids = implode( ',', $payment_ids ); |
| 190 | 190 | $customer->update( array( 'payment_ids' => $payment_ids, |
| 191 | - 'purchase_count' => $purchase_count, |
|
| 192 | - 'purchase_value' => $pending_total |
|
| 191 | + 'purchase_count' => $purchase_count, |
|
| 192 | + 'purchase_value' => $pending_total |
|
| 193 | 193 | ) ); |
| 194 | 194 | |
| 195 | 195 | $this->done = true; |
@@ -64,11 +64,14 @@ |
||
| 64 | 64 | }, 250 ); |
| 65 | 65 | </script> |
| 66 | 66 | |
| 67 | - <?php else : ?> |
|
| 67 | + <?php else { |
|
| 68 | + : ?> |
|
| 68 | 69 | |
| 69 | 70 | <div id="give-upgrade-status"> |
| 70 | 71 | <p style="font-size: 20px;max-width: 900px;"> |
| 71 | - <?php esc_html_e( 'The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give' ); ?> |
|
| 72 | + <?php esc_html_e( 'The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give' ); |
|
| 73 | +} |
|
| 74 | +?> |
|
| 72 | 75 | <img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/spinner.gif'; ?>" id="give-upgrade-loader" style=" position: relative; top: 3px; left: 6px;" /> |
| 73 | 76 | </p> |
| 74 | 77 | </div> |
@@ -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( |
@@ -427,13 +427,13 @@ discard block |
||
| 427 | 427 | * |
| 428 | 428 | * @since 1.0 |
| 429 | 429 | * @access public |
| 430 | - * |
|
| 431 | - * @param array $args |
|
| 432 | - * |
|
| 433 | - * @return array|object|null Customers array or object. Null if not found. |
|
| 430 | + * |
|
| 431 | + * @param array $args |
|
| 432 | + * |
|
| 433 | + * @return array|object|null Customers array or object. Null if not found. |
|
| 434 | 434 | */ |
| 435 | 435 | public function get_customers( $args = array() ) { |
| 436 | - /* @var WPDB $wpdb */ |
|
| 436 | + /* @var WPDB $wpdb */ |
|
| 437 | 437 | global $wpdb; |
| 438 | 438 | |
| 439 | 439 | $defaults = array( |
@@ -558,13 +558,13 @@ discard block |
||
| 558 | 558 | * |
| 559 | 559 | * @since 1.0 |
| 560 | 560 | * @access public |
| 561 | - * |
|
| 562 | - * @param array $args |
|
| 563 | - * |
|
| 564 | - * @return int Total number of customers. |
|
| 561 | + * |
|
| 562 | + * @param array $args |
|
| 563 | + * |
|
| 564 | + * @return int Total number of customers. |
|
| 565 | 565 | */ |
| 566 | 566 | public function count( $args = array() ) { |
| 567 | - /* @var WPDB $wpdb */ |
|
| 567 | + /* @var WPDB $wpdb */ |
|
| 568 | 568 | global $wpdb; |
| 569 | 569 | |
| 570 | 570 | $where = ' WHERE 1=1 '; |
@@ -45,22 +45,22 @@ discard block |
||
| 45 | 45 | * @param string $default_path Default path. Default is empty. |
| 46 | 46 | */ |
| 47 | 47 | function give_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) { |
| 48 | - if ( ! empty( $args ) && is_array( $args ) ) { |
|
| 49 | - extract( $args ); |
|
| 50 | - } |
|
| 48 | + if ( ! empty( $args ) && is_array( $args ) ) { |
|
| 49 | + extract( $args ); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - $template_names = array( $template_name . '.php' ); |
|
| 52 | + $template_names = array( $template_name . '.php' ); |
|
| 53 | 53 | |
| 54 | - $located = give_locate_template( $template_names, $template_path, $default_path ); |
|
| 54 | + $located = give_locate_template( $template_names, $template_path, $default_path ); |
|
| 55 | 55 | |
| 56 | - if ( ! file_exists( $located ) ) { |
|
| 56 | + if ( ! file_exists( $located ) ) { |
|
| 57 | 57 | /* translators: %s: the template */ |
| 58 | - give_output_error( sprintf( __( 'The %s template was not found.', 'give' ), $located ), true ); |
|
| 59 | - return; |
|
| 60 | - } |
|
| 58 | + give_output_error( sprintf( __( 'The %s template was not found.', 'give' ), $located ), true ); |
|
| 59 | + return; |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - // Allow 3rd party plugin filter template file from their plugin. |
|
| 63 | - $located = apply_filters( 'give_get_template', $located, $template_name, $args, $template_path, $default_path ); |
|
| 62 | + // Allow 3rd party plugin filter template file from their plugin. |
|
| 63 | + $located = apply_filters( 'give_get_template', $located, $template_name, $args, $template_path, $default_path ); |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Fires in give template, before the file is included. |
@@ -74,9 +74,9 @@ discard block |
||
| 74 | 74 | * @param string $located Template file filter by 3rd party plugin. |
| 75 | 75 | * @param array $args Passed arguments. |
| 76 | 76 | */ |
| 77 | - do_action( 'give_before_template_part', $template_name, $template_path, $located, $args ); |
|
| 77 | + do_action( 'give_before_template_part', $template_name, $template_path, $located, $args ); |
|
| 78 | 78 | |
| 79 | - include( $located ); |
|
| 79 | + include( $located ); |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Fires in give template, after the file is included. |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param string $located Template file filter by 3rd party plugin. |
| 91 | 91 | * @param array $args Passed arguments. |
| 92 | 92 | */ |
| 93 | - do_action( 'give_after_template_part', $template_name, $template_path, $located, $args ); |
|
| 93 | + do_action( 'give_after_template_part', $template_name, $template_path, $located, $args ); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -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> |
@@ -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> |
@@ -814,12 +814,12 @@ |
||
| 814 | 814 | ) ), 'give-refresh-reports' ); |
| 815 | 815 | |
| 816 | 816 | echo '<a href="' |
| 817 | - . esc_url_raw( $url ) |
|
| 818 | - . '" data-tooltip="'. esc_attr__( 'Clicking this will clear the reports cache.', 'give' ) |
|
| 819 | - . '" data-tooltip-my-position="right center" data-tooltip-target-position="left center" class="button alignright give-admin-button give-tooltip">' |
|
| 820 | - . '<span class="give-admin-button-icon give-admin-button-icon-update"></span>' |
|
| 821 | - . esc_html__( 'Refresh Report Data', 'give' ) |
|
| 822 | - . '</a>'; |
|
| 817 | + . esc_url_raw( $url ) |
|
| 818 | + . '" data-tooltip="'. esc_attr__( 'Clicking this will clear the reports cache.', 'give' ) |
|
| 819 | + . '" data-tooltip-my-position="right center" data-tooltip-target-position="left center" class="button alignright give-admin-button give-tooltip">' |
|
| 820 | + . '<span class="give-admin-button-icon give-admin-button-icon-update"></span>' |
|
| 821 | + . esc_html__( 'Refresh Report Data', 'give' ) |
|
| 822 | + . '</a>'; |
|
| 823 | 823 | |
| 824 | 824 | } |
| 825 | 825 | |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | 'disabled' => __( 'Disabled', 'give' ), |
| 88 | 88 | ) |
| 89 | 89 | ), |
| 90 | - array( |
|
| 91 | - 'name' => esc_html__( 'Display Settings Docs Link', 'give' ), |
|
| 92 | - 'id' => 'display_settings_docs_link', |
|
| 93 | - 'url' => esc_url( 'http://docs.givewp.com/form-display-options' ), |
|
| 94 | - 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | - 'type' => 'give_docs_link', |
|
| 96 | - ), |
|
| 90 | + array( |
|
| 91 | + 'name' => esc_html__( 'Display Settings Docs Link', 'give' ), |
|
| 92 | + 'id' => 'display_settings_docs_link', |
|
| 93 | + 'url' => esc_url( 'http://docs.givewp.com/form-display-options' ), |
|
| 94 | + 'title' => __( 'Display Options Settings', 'give' ), |
|
| 95 | + 'type' => 'give_docs_link', |
|
| 96 | + ), |
|
| 97 | 97 | array( |
| 98 | 98 | 'id' => 'give_title_display_settings_1', |
| 99 | 99 | 'type' => 'sectionend' |
@@ -170,13 +170,13 @@ discard block |
||
| 170 | 170 | 'disabled' => __( 'Disabled', 'give' ), |
| 171 | 171 | ) |
| 172 | 172 | ), |
| 173 | - array( |
|
| 174 | - 'name' => esc_html__( 'Post Types Docs Link', 'give' ), |
|
| 175 | - 'id' => 'post_types_settings_docs_link', |
|
| 176 | - 'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ), |
|
| 177 | - 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | - 'type' => 'give_docs_link', |
|
| 179 | - ), |
|
| 173 | + array( |
|
| 174 | + 'name' => esc_html__( 'Post Types Docs Link', 'give' ), |
|
| 175 | + 'id' => 'post_types_settings_docs_link', |
|
| 176 | + 'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ), |
|
| 177 | + 'title' => __( 'Post Types Settings', 'give' ), |
|
| 178 | + 'type' => 'give_docs_link', |
|
| 179 | + ), |
|
| 180 | 180 | array( |
| 181 | 181 | 'id' => 'give_title_display_settings_2', |
| 182 | 182 | 'type' => 'sectionend' |
@@ -212,13 +212,13 @@ discard block |
||
| 212 | 212 | 'disabled' => __( 'Disabled', 'give' ), |
| 213 | 213 | ) |
| 214 | 214 | ), |
| 215 | - array( |
|
| 216 | - 'name' => esc_html__( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | - 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | - 'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ), |
|
| 219 | - 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | - 'type' => 'give_docs_link', |
|
| 221 | - ), |
|
| 215 | + array( |
|
| 216 | + 'name' => esc_html__( 'Taxonomies Docs Link', 'give' ), |
|
| 217 | + 'id' => 'taxonomies_settings_docs_link', |
|
| 218 | + 'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ), |
|
| 219 | + 'title' => __( 'Taxonomies Settings', 'give' ), |
|
| 220 | + 'type' => 'give_docs_link', |
|
| 221 | + ), |
|
| 222 | 222 | array( |
| 223 | 223 | 'id' => 'give_title_display_settings_3', |
| 224 | 224 | 'type' => 'sectionend' |
@@ -258,13 +258,13 @@ discard block |
||
| 258 | 258 | 'id' => 'agreement_text', |
| 259 | 259 | 'type' => 'wysiwyg' |
| 260 | 260 | ), |
| 261 | - array( |
|
| 262 | - 'name' => esc_html__( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | - 'id' => 'terms_settings_docs_link', |
|
| 264 | - 'url' => esc_url( 'http://docs.givewp.com/settings-terms' ), |
|
| 265 | - 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | - 'type' => 'give_docs_link', |
|
| 267 | - ), |
|
| 261 | + array( |
|
| 262 | + 'name' => esc_html__( 'Terms and Conditions Docs Link', 'give' ), |
|
| 263 | + 'id' => 'terms_settings_docs_link', |
|
| 264 | + 'url' => esc_url( 'http://docs.givewp.com/settings-terms' ), |
|
| 265 | + 'title' => __( 'Terms and Conditions Settings', 'give' ), |
|
| 266 | + 'type' => 'give_docs_link', |
|
| 267 | + ), |
|
| 268 | 268 | array( |
| 269 | 269 | 'id' => 'give_title_display_settings_4', |
| 270 | 270 | 'type' => 'sectionend' |