Changeset 1032065
- Timestamp:
- 11/24/2014 07:57:23 PM (11 years ago)
- Location:
- ithemes-exchange
- Files:
-
- 30 edited
- 1 copied
-
tags/1.11.3 (copied) (copied from ithemes-exchange/trunk)
-
tags/1.11.3/api/theme/billing.php (modified) (2 diffs)
-
tags/1.11.3/api/theme/shipping.php (modified) (2 diffs)
-
tags/1.11.3/core-addons/transaction-methods/paypal-standard-secure/init.php (modified) (1 diff)
-
tags/1.11.3/core-addons/transaction-methods/paypal-standard/init.php (modified) (1 diff)
-
tags/1.11.3/core-addons/transaction-methods/zero-sum-checkout/init.php (modified) (1 diff)
-
tags/1.11.3/history.txt (modified) (1 diff)
-
tags/1.11.3/init.php (modified) (2 diffs)
-
tags/1.11.3/lang/ithemes-exchange.pot (modified) (17 diffs)
-
tags/1.11.3/lib/functions/functions.php (modified) (2 diffs)
-
tags/1.11.3/lib/super-widget/class.super-widget.php (modified) (2 diffs)
-
tags/1.11.3/lib/super-widget/css/frontend-global.css (modified) (1 diff)
-
tags/1.11.3/lib/super-widget/js/super-widget.js (modified) (2 diffs)
-
tags/1.11.3/lib/templates/content-confirmation/elements/order-details-label.php (modified) (1 diff)
-
tags/1.11.3/lib/templates/content-store.php (modified) (1 diff)
-
tags/1.11.3/readme.txt (modified) (1 diff)
-
trunk/api/theme/billing.php (modified) (2 diffs)
-
trunk/api/theme/shipping.php (modified) (2 diffs)
-
trunk/core-addons/transaction-methods/paypal-standard-secure/init.php (modified) (1 diff)
-
trunk/core-addons/transaction-methods/paypal-standard/init.php (modified) (1 diff)
-
trunk/core-addons/transaction-methods/zero-sum-checkout/init.php (modified) (1 diff)
-
trunk/history.txt (modified) (1 diff)
-
trunk/init.php (modified) (2 diffs)
-
trunk/lang/ithemes-exchange.pot (modified) (17 diffs)
-
trunk/lib/functions/functions.php (modified) (2 diffs)
-
trunk/lib/super-widget/class.super-widget.php (modified) (2 diffs)
-
trunk/lib/super-widget/css/frontend-global.css (modified) (1 diff)
-
trunk/lib/super-widget/js/super-widget.js (modified) (2 diffs)
-
trunk/lib/templates/content-confirmation/elements/order-details-label.php (modified) (1 diff)
-
trunk/lib/templates/content-store.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ithemes-exchange/tags/1.11.3/api/theme/billing.php
r802482 r1032065 296 296 foreach( $countries as $key => $value ) { 297 297 $alternatives = esc_attr( $key ); 298 if ( 'US' == $key ) 298 if ( 'US' == $key ) { 299 299 $alternatives .= ' US us usa USA u'; 300 } 301 $alternatives = apply_filters( 'it_exchange_country_select_alternatives_' . strtolower( $key ), $alternatives ); 300 302 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 301 303 } … … 366 368 foreach( (array) $states as $key => $value ) { 367 369 $alternatives = esc_attr( $key ); 370 $alternatives = apply_filters( 'it_exchange_state_select_alternatives_' . strtolower( $key ), $alternatives ); 368 371 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 369 372 } -
ithemes-exchange/tags/1.11.3/api/theme/shipping.php
r802482 r1032065 240 240 foreach( $countries as $key => $value ) { 241 241 $alternatives = esc_attr( $key ); 242 if ( 'US' == $key ) 242 if ( 'US' == $key ) { 243 243 $alternatives .= ' US us usa USA u'; 244 } 245 $alternatives = apply_filters( 'it_exchange_country_select_alternatives_' . strtolower( $key ), $alternatives ); 244 246 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 245 247 } … … 311 313 foreach( (array) $states as $key => $value ) { 312 314 $alternatives = esc_attr( $key ); 315 $alternatives = apply_filters( 'it_exchange_state_select_alternatives_' . strtolower( $key ), $alternatives ); 313 316 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 314 317 } -
ithemes-exchange/tags/1.11.3/core-addons/transaction-methods/paypal-standard-secure/init.php
r1024556 r1032065 95 95 * Determine if the transaction currently trying to process has already been processed 96 96 * 97 * @since CHANGEME97 * @since 1.11.2 98 98 * 99 99 * @param bool|int $processed If this transaction has already been processed. -
ithemes-exchange/tags/1.11.3/core-addons/transaction-methods/paypal-standard/init.php
r1024556 r1032065 87 87 * Determine if the transaction currently trying to process has already been processed 88 88 * 89 * @since CHANGEME89 * @since 1.11.2 90 90 * 91 91 * @param bool|int $processed If this transaction has already been processed. -
ithemes-exchange/tags/1.11.3/core-addons/transaction-methods/zero-sum-checkout/init.php
r817436 r1032065 185 185 function it_exchange_zero_sum_checkout_after_payment_details_cancel_url( $transaction ) { 186 186 $cart_object = get_post_meta( $transaction->ID, '_it_exchange_cart_object', true ); 187 foreach ( $cart_object->products as $product ) { 188 $autorenews = $transaction->get_transaction_meta( 'subscription_autorenew_' . $product['product_id'], true ); 189 if ( $autorenews ) { 190 $status = $transaction->get_transaction_meta( 'subscriber_status', true ); 191 switch( $status ) { 192 193 case false: //active 194 case '': 195 $output = '<a href="' . add_query_arg( 'zero-sum-recurring-payment', 'cancel' ) . '">' . __( 'Cancel Recurring Payment', 'it-l10n-ithemes-exchange' ) . '</a>'; 196 break; 197 198 case 'deactivated': 199 default: 200 $output = __( 'Recurring payment has been deactivated', 'it-l10n-ithemes-exchange' ); 201 break; 202 187 if ( !empty( $cart_object->products ) ) { 188 foreach ( $cart_object->products as $product ) { 189 $autorenews = $transaction->get_transaction_meta( 'subscription_autorenew_' . $product['product_id'], true ); 190 if ( $autorenews ) { 191 $status = $transaction->get_transaction_meta( 'subscriber_status', true ); 192 switch( $status ) { 193 194 case false: //active 195 case '': 196 $output = '<a href="' . add_query_arg( 'zero-sum-recurring-payment', 'cancel' ) . '">' . __( 'Cancel Recurring Payment', 'it-l10n-ithemes-exchange' ) . '</a>'; 197 break; 198 199 case 'deactivated': 200 default: 201 $output = __( 'Recurring payment has been deactivated', 'it-l10n-ithemes-exchange' ); 202 break; 203 204 } 205 ?> 206 <div class="transaction-autorenews clearfix spacing-wrapper"> 207 <div class="recurring-payment-cancel-options left"> 208 <div class="recurring-payment-status-name"><?php echo $output; ?></div> 209 </div> 210 </div> 211 <?php 212 continue; 203 213 } 204 ?>205 <div class="transaction-autorenews clearfix spacing-wrapper">206 <div class="recurring-payment-cancel-options left">207 <div class="recurring-payment-status-name"><?php echo $output; ?></div>208 </div>209 </div>210 <?php211 continue;212 214 } 213 215 } -
ithemes-exchange/tags/1.11.3/history.txt
r1024577 r1032065 1 1.11.3 - Glenn Ansley, Lew Ayotte, Elise Alley 2 Fixed bad translation string in order details template part 3 Added filters for country and state alternatives in text2select API 4 Added loading gif during SW AJAX calls to Register / Login 5 Fixed bug causing Stripe webhooks not to reach Exchange in some setups 6 Fixed notice when no cart object is returned in zero sum checkout 1 7 1.11.2.1 - 2014-11-12 - Glenn Ansley, Lew Ayotte, Elise Alley 2 8 Fixing call to weight meta for product -
ithemes-exchange/tags/1.11.3/init.php
r1024577 r1032065 2 2 /* 3 3 * Plugin Name: iThemes Exchange 4 * Version: 1.11. 2.14 * Version: 1.11.3 5 5 * Text Domain: LION 6 6 * Description: Easily sell your digital goods with iThemes Exchange, simple ecommerce for WordPress … … 25 25 class IT_Exchange { 26 26 27 var $_version = '1.11. 2.1';27 var $_version = '1.11.3'; 28 28 var $_wp_minimum = '3.5'; 29 29 var $_slug = 'it-exchange'; -
ithemes-exchange/tags/1.11.3/lang/ithemes-exchange.pot
r1024577 r1032065 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: iThemes Exchange 1.11. 2.1\n"5 "Project-Id-Version: iThemes Exchange 1.11.3\n" 6 6 "Report-Msgid-Bugs-To: http://ithemes.com/forum/\n" 7 "POT-Creation-Date: 2014-11- 12 17:31:38+00:00\n"7 "POT-Creation-Date: 2014-11-24 19:38:27+00:00\n" 8 8 "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n" 9 9 "MIME-Version: 1.0\n" … … 2547 2547 msgstr "" 2548 2548 2549 #: api/theme/billing.php:34 5 api/theme/shipping.php:2892549 #: api/theme/billing.php:347 api/theme/shipping.php:291 2550 2550 #: lib/shipping/class.shipping.php:631 2551 2551 msgid "State" 2552 2552 msgstr "" 2553 2553 2554 #: api/theme/billing.php:41 5api/theme/customer.php:2662555 #: api/theme/registration.php:222 api/theme/shipping.php:36 02554 #: api/theme/billing.php:418 api/theme/customer.php:266 2555 #: api/theme/registration.php:222 api/theme/shipping.php:363 2556 2556 #: core-addons/load.php:316 2557 2557 msgid "Email" 2558 2558 msgstr "" 2559 2559 2560 #: api/theme/billing.php:43 6 api/theme/shipping.php:3802560 #: api/theme/billing.php:439 api/theme/shipping.php:383 2561 2561 msgid "Phone" 2562 2562 msgstr "" 2563 2563 2564 #: api/theme/billing.php:4 57 api/theme/shipping.php:4002564 #: api/theme/billing.php:460 api/theme/shipping.php:403 2565 2565 msgid "Submit" 2566 2566 msgstr "" 2567 2567 2568 #: api/theme/billing.php:47 6api/theme/checkout.php:93 api/theme/login.php:3322568 #: api/theme/billing.php:479 api/theme/checkout.php:93 api/theme/login.php:332 2569 2569 #: api/theme/registration.php:368 api/theme/shipping-method.php:163 2570 #: api/theme/shipping.php:4 192570 #: api/theme/shipping.php:422 2571 2571 #: core-addons/admin/guest-checkout/lib/template-functions.php:210 2572 2572 #: core-addons/coupons/basic-coupons/admin.php:390 … … 2675 2675 msgstr "" 2676 2676 2677 #: api/theme/login.php:221 lib/functions/functions.php:50 82677 #: api/theme/login.php:221 lib/functions/functions.php:504 2678 2678 msgid "Log In" 2679 2679 msgstr "" … … 2867 2867 msgstr "" 2868 2868 2869 #. #-#-#-#-# ithemes-exchange.pot (iThemes Exchange 1.11. 2.1) #-#-#-#-#2869 #. #-#-#-#-# ithemes-exchange.pot (iThemes Exchange 1.11.3) #-#-#-#-# 2870 2870 #. Plugin Name of the plugin/theme 2871 2871 #: core-addons/admin/basic-reporting/init.php:19 … … 3183 3183 #: core-addons/coupons/basic-coupons/admin.php:438 3184 3184 #: lib/email-notifications/class.email-notifications.php:453 3185 #: lib/functions/functions.php:39 93185 #: lib/functions/functions.php:395 3186 3186 #: lib/products/class.products-post-type.php:113 3187 3187 msgid "Product" … … 3891 3891 #: core-addons/transaction-methods/paypal-standard/init.php:904 3892 3892 #: core-addons/transaction-methods/paypal-standard-secure/init.php:1156 3893 #: core-addons/transaction-methods/zero-sum-checkout/init.php:19 53893 #: core-addons/transaction-methods/zero-sum-checkout/init.php:196 3894 3894 msgid "Cancel Recurring Payment" 3895 3895 msgstr "" … … 3898 3898 #: core-addons/transaction-methods/paypal-standard/init.php:891 3899 3899 #: core-addons/transaction-methods/paypal-standard-secure/init.php:1143 3900 #: core-addons/transaction-methods/zero-sum-checkout/init.php:20 03900 #: core-addons/transaction-methods/zero-sum-checkout/init.php:201 3901 3901 msgid "Recurring payment has been deactivated" 3902 3902 msgstr "" … … 5067 5067 msgstr "" 5068 5068 5069 #: lib/admin/views/admin-settings.php:187 lib/functions/functions.php:4 425069 #: lib/admin/views/admin-settings.php:187 lib/functions/functions.php:438 5070 5070 msgid "Customer Registration" 5071 5071 msgstr "" … … 5090 5090 msgstr "" 5091 5091 5092 #: lib/admin/views/admin-settings.php:201 lib/functions/functions.php:43 95092 #: lib/admin/views/admin-settings.php:201 lib/functions/functions.php:435 5093 5093 msgid "Registration" 5094 5094 msgstr "" … … 5097 5097 #: lib/deprecated/templates/content-registration.php:49 5098 5098 #: lib/deprecated/templates/super-widget-registration.php:44 5099 #: lib/functions/functions.php:88 65099 #: lib/functions/functions.php:882 5100 5100 #: lib/templates/content-checkout/elements/purchase-requirements/logged-in/elements/not-logged-in/links/login.php:21 5101 5101 #: lib/templates/content-checkout/elements/purchase-requirements/logged-in/elements/registration/login.php:20 … … 5213 5213 #: lib/admin/views/admin-user-products.php:11 5214 5214 #: lib/deprecated/templates/content-downloads.php:34 5215 #: lib/functions/functions.php:42 6 lib/functions/functions.php:4295215 #: lib/functions/functions.php:422 lib/functions/functions.php:425 5216 5216 #: lib/templates/content-downloads/elements/confirmation-url.php:20 5217 5217 msgid "Transaction" … … 5224 5224 msgstr "" 5225 5225 5226 #: lib/admin/views/admin-user-products.php:72 lib/functions/functions.php:4 815226 #: lib/admin/views/admin-user-products.php:72 lib/functions/functions.php:477 5227 5227 #: lib/product-features/class.downloads.php:168 5228 5228 #: lib/templates/content-confirmation/elements/product.php:37 … … 5816 5816 msgstr "" 5817 5817 5818 #: lib/functions/functions.php:2 405818 #: lib/functions/functions.php:237 5819 5819 msgid "" 5820 5820 "Invalid webhook request for this site. The webhook request should be: %s" 5821 5821 msgstr "" 5822 5822 5823 #: lib/functions/functions.php:2 405823 #: lib/functions/functions.php:237 5824 5824 msgid "iThemes Exchange Webhook Process Error" 5825 5825 msgstr "" 5826 5826 5827 #: lib/functions/functions.php:2 505827 #: lib/functions/functions.php:246 5828 5828 msgid "iThemes Exchange webhook process Complete" 5829 5829 msgstr "" 5830 5830 5831 #: lib/functions/functions.php:2 505831 #: lib/functions/functions.php:246 5832 5832 msgid "iThemes Exchange Webhook Process Complete" 5833 5833 msgstr "" 5834 5834 5835 #: lib/functions/functions.php:274 5836 msgid "Dangerous Settings" 5837 msgstr "" 5838 5835 5839 #: lib/functions/functions.php:278 5836 msgid "Dangerous Settings" 5840 msgid "Reset Exchange" 5841 msgstr "" 5842 5843 #: lib/functions/functions.php:281 5844 msgid "Reset ALL data" 5837 5845 msgstr "" 5838 5846 5839 5847 #: lib/functions/functions.php:282 5840 msgid "Reset Exchange"5841 msgstr ""5842 5843 #: lib/functions/functions.php:2855844 msgid "Reset ALL data"5845 msgstr ""5846 5847 #: lib/functions/functions.php:2865848 5848 msgid "Checking this box will rest ALL settings and DELETE ALL DATA." 5849 5849 msgstr "" 5850 5850 5851 #: lib/functions/functions.php:3 825851 #: lib/functions/functions.php:378 5852 5852 msgid "Exchange has been reset. All data has been deleted." 5853 5853 msgstr "" 5854 5854 5855 #: lib/functions/functions.php: 4025855 #: lib/functions/functions.php:398 5856 5856 msgid "Product Base" 5857 5857 msgstr "" 5858 5858 5859 #: lib/functions/functions.php:408 5860 msgid "Store" 5861 msgstr "" 5862 5863 #: lib/functions/functions.php:411 5864 msgid "Store Page" 5865 msgstr "" 5866 5859 5867 #: lib/functions/functions.php:412 5860 msgid "Store"5861 msgstr ""5862 5863 #: lib/functions/functions.php:4155864 msgid "Store Page"5865 msgstr ""5866 5867 #: lib/functions/functions.php:4165868 5868 msgid "Where all your products are shown in one place" 5869 5869 msgstr "" 5870 5870 5871 #: lib/functions/functions.php:4 435871 #: lib/functions/functions.php:439 5872 5872 msgid "" 5873 5873 "Where customers register to login, download, etc. You can turn off " … … 5876 5876 msgstr "" 5877 5877 5878 #: lib/functions/functions.php:449 5879 msgid "Account" 5880 msgstr "" 5881 5882 #: lib/functions/functions.php:452 5883 msgid "Account Page" 5884 msgstr "" 5885 5878 5886 #: lib/functions/functions.php:453 5879 msgid "Account"5880 msgstr ""5881 5882 #: lib/functions/functions.php:4565883 msgid "Account Page"5884 msgstr ""5885 5886 #: lib/functions/functions.php:4575887 5887 msgid "" 5888 5888 "Customers get an account when they buy something, so they can login and " … … 5891 5891 msgstr "" 5892 5892 5893 #: lib/functions/functions.php:463 5894 msgid "Profile" 5895 msgstr "" 5896 5897 #: lib/functions/functions.php:466 5898 msgid "Profile Page" 5899 msgstr "" 5900 5893 5901 #: lib/functions/functions.php:467 5894 msgid "Profile"5895 msgstr ""5896 5897 #: lib/functions/functions.php:4705898 msgid "Profile Page"5899 msgstr ""5900 5901 #: lib/functions/functions.php:4715902 5902 msgid "Private details about your customers that they can change." 5903 5903 msgstr "" 5904 5904 5905 #: lib/functions/functions.php:48 45905 #: lib/functions/functions.php:480 5906 5906 msgid "Customer Downloads" 5907 5907 msgstr "" 5908 5908 5909 #: lib/functions/functions.php:48 55909 #: lib/functions/functions.php:481 5910 5910 msgid "Page where the customer can find all of their available downloads." 5911 5911 msgstr "" 5912 5912 5913 #: lib/functions/functions.php:49 5 lib/functions/functions.php:4985913 #: lib/functions/functions.php:491 lib/functions/functions.php:494 5914 5914 #: lib/products/class.products-post-type.php:588 5915 5915 #: lib/templates/content-confirmation/elements/purchases-label.php:20 … … 5917 5917 msgstr "" 5918 5918 5919 #: lib/functions/functions.php:5 115919 #: lib/functions/functions.php:507 5920 5920 msgid "Customer Log In" 5921 5921 msgstr "" 5922 5922 5923 #: lib/functions/functions.php:5 215923 #: lib/functions/functions.php:517 5924 5924 msgid "Log Out" 5925 5925 msgstr "" 5926 5926 5927 #: lib/functions/functions.php:52 45927 #: lib/functions/functions.php:520 5928 5928 msgid "Customer Log Out" 5929 5929 msgstr "" 5930 5930 5931 #: lib/functions/functions.php:53 45931 #: lib/functions/functions.php:530 5932 5932 msgid "Thank you" 5933 5933 msgstr "" 5934 5934 5935 #: lib/functions/functions.php:53 75935 #: lib/functions/functions.php:533 5936 5936 msgid "Purchase Confirmation" 5937 5937 msgstr "" 5938 5938 5939 #: lib/functions/functions.php:88 75939 #: lib/functions/functions.php:883 5940 5940 msgid "register" 5941 5941 msgstr "" 5942 5942 5943 #: lib/functions/functions.php:88 85943 #: lib/functions/functions.php:884 5944 5944 msgid "edit your cart" 5945 5945 msgstr "" 5946 5946 5947 #: lib/functions/functions.php:9 105947 #: lib/functions/functions.php:906 5948 5948 msgid "We need a billing address before you can checkout" 5949 5949 msgstr "" 5950 5950 5951 #: lib/functions/functions.php:12 715951 #: lib/functions/functions.php:1267 5952 5952 msgid "You do not have permission to view this file." 5953 5953 msgstr "" 5954 5954 5955 #: lib/functions/functions.php:12 715955 #: lib/functions/functions.php:1267 5956 5956 msgid "Error" 5957 5957 msgstr "" 5958 5958 5959 #: lib/functions/functions.php:14 505959 #: lib/functions/functions.php:1446 5960 5960 msgid "%s Product" 5961 5961 msgid_plural "%s Products" … … 6860 6860 msgstr "" 6861 6861 6862 #: lib/super-widget/class.super-widget.php:15 26862 #: lib/super-widget/class.super-widget.php:155 6863 6863 msgid "Processing" 6864 6864 msgstr "" 6865 6865 6866 #: lib/super-widget/class.super-widget.php:196 6866 #: lib/super-widget/class.super-widget.php:156 6867 msgid "Processing... " 6868 msgstr "" 6869 6870 #: lib/super-widget/class.super-widget.php:200 6867 6871 msgid "There are no options for this widget." 6868 6872 msgstr "" -
ithemes-exchange/tags/1.11.3/lib/functions/functions.php
r1018864 r1032065 226 226 227 227 $webhooks_processed = true; 228 $requested_webhook_url = untrailingslashit( get_site_url()) . $_SERVER['REQUEST_URI']; //REQUEST_URI includes the slash228 $requested_webhook_url = untrailingslashit( $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ) . $_SERVER['REQUEST_URI']; //REQUEST_URI includes the slash 229 229 $parsed_requested_webhook_url = parse_url( $requested_webhook_url ); 230 230 $required_webhook_url = add_query_arg( $param, '1', trailingslashit( get_site_url() ) ); //add the slash to make sure we match … … 233 233 234 234 if ( empty( $webhook_diff ) ) { //No differences in the requested webhook and the required webhook 235 236 235 do_action( 'it_exchange_webhook_' . $param, $_REQUEST ); 237 238 236 } else { 239 240 237 wp_die( sprintf( __( 'Invalid webhook request for this site. The webhook request should be: %s', 'it-l10n-ithemes-exchange' ), $required_webhook_url ), __( 'iThemes Exchange Webhook Process Error', 'it-l10n-ithemes-exchange' ), array( 'response' => 400 ) ); 241 242 238 } 243 239 -
ithemes-exchange/tags/1.11.3/lib/super-widget/class.super-widget.php
r935226 r1032065 128 128 ?> 129 129 <div class="it-exchange-super-widget it-exchange-super-widget-<?php esc_attr_e( $this->get_state() ); ?>"> 130 <style type="text/css"> 131 .it-exchange-super-widget .spinner{background:url('<?php echo get_admin_url(); ?>/images/wpspin_light.gif') no-repeat;} 132 </style> 130 133 <?php it_exchange_get_template_part( 'super-widget', $this->get_state() ); ?> 131 134 </div> … … 148 151 // JS 149 152 $script_url = ITUtility::get_url_from_file( dirname( __FILE__ ) . '/js/super-widget.js' ); 150 wp_enqueue_script( 'it-exchange-super-widget', $script_url, array( 'jquery', ' detect-credit-card-type', 'it-exchange-event-manager' ), false, true );153 wp_enqueue_script( 'it-exchange-super-widget', $script_url, array( 'jquery', 'jquery-ui-spinner', 'detect-credit-card-type', 'it-exchange-event-manager' ), false, true ); 151 154 wp_localize_script( 'it-exchange-super-widget', 'exchangeSWL10n', array( 152 155 'processingPaymentLabel' => __( 'Processing', 'it-l10n-ithemes-exchange' ), 156 'processingAction' => __( 'Processing... ', 'it-l10n-ithemes-exchange' ), 153 157 ) 154 158 ); -
ithemes-exchange/tags/1.11.3/lib/super-widget/css/frontend-global.css
r910535 r1032065 91 91 .it-exchange-super-widget .it-exchange-sw-processing-guest-checkout .save_url input{width:100%;} 92 92 .it-exchange-super-widget .it-exchange-sw-processing-guest-checkout h3.in-super-widget{margin: 0 0 .75em;} 93 94 /** ----------------------------------------:[ guest checkout (background image set inline)]:--- */ 95 .it-exchange-super-widget .spinner{background-size: 16px 16px;display:none;opacity: .7;filter: alpha(opacity=70);width: 16px;height: 16px; margin: 0 0 5px 5px;display:inline-block;} -
ithemes-exchange/tags/1.11.3/lib/super-widget/js/super-widget.js
r1004481 r1032065 154 154 event.preventDefault(); 155 155 data = jQuery( ':input', this ).serializeArray(); 156 jQuery(this).find('.it-exchange-login-button').find('input').hide().after('<div style="margin-top:15px;"><div style="float:left;">'+exchangeSWL10n.processingAction+'</div><div class="spinner"></div></div>'); 156 157 itExchangeSWLogIn(data); 157 158 itExchange.hooks.doAction( 'itExchangeSW.loginRequested' ); … … 162 163 event.preventDefault(); 163 164 data = jQuery( ':input', this ).serializeArray(); 165 jQuery(this).children('#it-exchange-register-customer').hide().after('<div><div style="float:left;">'+exchangeSWL10n.processingAction+'</div><div class="spinner"></div></div>'); 164 166 itExchangeSWRegister(data); 165 167 itExchange.hooks.doAction( 'itExchangeSW.registerRequested' ); -
ithemes-exchange/tags/1.11.3/lib/templates/content-confirmation/elements/order-details-label.php
r802482 r1032065 18 18 <?php do_action( 'it_exchange_confirmation_before_transaction_order_details_label' ); ?> 19 19 <div class="it-exchange-transaction-order-details-label"> 20 <h3><?php _e( 'Order Details', ' date' ); ?></h3>20 <h3><?php _e( 'Order Details', 'it-l10n-ithemes-exchange' ); ?></h3> 21 21 </div> 22 22 <?php do_action( 'it_exchange_confirmation_after_transaction_order_details_label' ); ?> -
ithemes-exchange/tags/1.11.3/lib/templates/content-store.php
r1024556 r1032065 5 5 * @since 0.4.0 6 6 * @package IT_Exchange 7 * @version CHANGEME7 * @version 1.11.2 8 8 * @link http://ithemes.com/codex/page/Exchange_Template_Updates 9 9 * -
ithemes-exchange/tags/1.11.3/readme.txt
r1024577 r1032065 88 88 89 89 == Changelog == 90 1.11.2.1 - 2014-11-12 - Glenn Ansley, Lew Ayotte, Elise Alley 90 91 = 1.11.3 = 92 * Fixed bad translation string in order details template part 93 * Added filters for country and state alternatives in text2select API 94 * Added loading gif during SW AJAX calls to Register / Login 95 * Fixed bug causing Stripe webhooks not to reach Exchange in some setups 96 * Fixed notice when no cart object is returned in zero sum checkout 97 98 = 1.11.2.1 - 2014-11-12 - Glenn Ansley, Lew Ayotte, Elise Alley = 91 99 * Fixing call to weight meta for product 92 100 -
ithemes-exchange/trunk/api/theme/billing.php
r802482 r1032065 296 296 foreach( $countries as $key => $value ) { 297 297 $alternatives = esc_attr( $key ); 298 if ( 'US' == $key ) 298 if ( 'US' == $key ) { 299 299 $alternatives .= ' US us usa USA u'; 300 } 301 $alternatives = apply_filters( 'it_exchange_country_select_alternatives_' . strtolower( $key ), $alternatives ); 300 302 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 301 303 } … … 366 368 foreach( (array) $states as $key => $value ) { 367 369 $alternatives = esc_attr( $key ); 370 $alternatives = apply_filters( 'it_exchange_state_select_alternatives_' . strtolower( $key ), $alternatives ); 368 371 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 369 372 } -
ithemes-exchange/trunk/api/theme/shipping.php
r802482 r1032065 240 240 foreach( $countries as $key => $value ) { 241 241 $alternatives = esc_attr( $key ); 242 if ( 'US' == $key ) 242 if ( 'US' == $key ) { 243 243 $alternatives .= ' US us usa USA u'; 244 } 245 $alternatives = apply_filters( 'it_exchange_country_select_alternatives_' . strtolower( $key ), $alternatives ); 244 246 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 245 247 } … … 311 313 foreach( (array) $states as $key => $value ) { 312 314 $alternatives = esc_attr( $key ); 315 $alternatives = apply_filters( 'it_exchange_state_select_alternatives_' . strtolower( $key ), $alternatives ); 313 316 $field .= '<option value="' . esc_attr( $key ) . '" ' . selected( $key, $current_value, false ) . ' data-alternative-spellings="' . $alternatives . '">' . esc_html( $value ) . '</option>'; 314 317 } -
ithemes-exchange/trunk/core-addons/transaction-methods/paypal-standard-secure/init.php
r1024556 r1032065 95 95 * Determine if the transaction currently trying to process has already been processed 96 96 * 97 * @since CHANGEME97 * @since 1.11.2 98 98 * 99 99 * @param bool|int $processed If this transaction has already been processed. -
ithemes-exchange/trunk/core-addons/transaction-methods/paypal-standard/init.php
r1024556 r1032065 87 87 * Determine if the transaction currently trying to process has already been processed 88 88 * 89 * @since CHANGEME89 * @since 1.11.2 90 90 * 91 91 * @param bool|int $processed If this transaction has already been processed. -
ithemes-exchange/trunk/core-addons/transaction-methods/zero-sum-checkout/init.php
r817436 r1032065 185 185 function it_exchange_zero_sum_checkout_after_payment_details_cancel_url( $transaction ) { 186 186 $cart_object = get_post_meta( $transaction->ID, '_it_exchange_cart_object', true ); 187 foreach ( $cart_object->products as $product ) { 188 $autorenews = $transaction->get_transaction_meta( 'subscription_autorenew_' . $product['product_id'], true ); 189 if ( $autorenews ) { 190 $status = $transaction->get_transaction_meta( 'subscriber_status', true ); 191 switch( $status ) { 192 193 case false: //active 194 case '': 195 $output = '<a href="' . add_query_arg( 'zero-sum-recurring-payment', 'cancel' ) . '">' . __( 'Cancel Recurring Payment', 'it-l10n-ithemes-exchange' ) . '</a>'; 196 break; 197 198 case 'deactivated': 199 default: 200 $output = __( 'Recurring payment has been deactivated', 'it-l10n-ithemes-exchange' ); 201 break; 202 187 if ( !empty( $cart_object->products ) ) { 188 foreach ( $cart_object->products as $product ) { 189 $autorenews = $transaction->get_transaction_meta( 'subscription_autorenew_' . $product['product_id'], true ); 190 if ( $autorenews ) { 191 $status = $transaction->get_transaction_meta( 'subscriber_status', true ); 192 switch( $status ) { 193 194 case false: //active 195 case '': 196 $output = '<a href="' . add_query_arg( 'zero-sum-recurring-payment', 'cancel' ) . '">' . __( 'Cancel Recurring Payment', 'it-l10n-ithemes-exchange' ) . '</a>'; 197 break; 198 199 case 'deactivated': 200 default: 201 $output = __( 'Recurring payment has been deactivated', 'it-l10n-ithemes-exchange' ); 202 break; 203 204 } 205 ?> 206 <div class="transaction-autorenews clearfix spacing-wrapper"> 207 <div class="recurring-payment-cancel-options left"> 208 <div class="recurring-payment-status-name"><?php echo $output; ?></div> 209 </div> 210 </div> 211 <?php 212 continue; 203 213 } 204 ?>205 <div class="transaction-autorenews clearfix spacing-wrapper">206 <div class="recurring-payment-cancel-options left">207 <div class="recurring-payment-status-name"><?php echo $output; ?></div>208 </div>209 </div>210 <?php211 continue;212 214 } 213 215 } -
ithemes-exchange/trunk/history.txt
r1024577 r1032065 1 1.11.3 - Glenn Ansley, Lew Ayotte, Elise Alley 2 Fixed bad translation string in order details template part 3 Added filters for country and state alternatives in text2select API 4 Added loading gif during SW AJAX calls to Register / Login 5 Fixed bug causing Stripe webhooks not to reach Exchange in some setups 6 Fixed notice when no cart object is returned in zero sum checkout 1 7 1.11.2.1 - 2014-11-12 - Glenn Ansley, Lew Ayotte, Elise Alley 2 8 Fixing call to weight meta for product -
ithemes-exchange/trunk/init.php
r1024577 r1032065 2 2 /* 3 3 * Plugin Name: iThemes Exchange 4 * Version: 1.11. 2.14 * Version: 1.11.3 5 5 * Text Domain: LION 6 6 * Description: Easily sell your digital goods with iThemes Exchange, simple ecommerce for WordPress … … 25 25 class IT_Exchange { 26 26 27 var $_version = '1.11. 2.1';27 var $_version = '1.11.3'; 28 28 var $_wp_minimum = '3.5'; 29 29 var $_slug = 'it-exchange'; -
ithemes-exchange/trunk/lang/ithemes-exchange.pot
r1024577 r1032065 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: iThemes Exchange 1.11. 2.1\n"5 "Project-Id-Version: iThemes Exchange 1.11.3\n" 6 6 "Report-Msgid-Bugs-To: http://ithemes.com/forum/\n" 7 "POT-Creation-Date: 2014-11- 12 17:31:38+00:00\n"7 "POT-Creation-Date: 2014-11-24 19:38:27+00:00\n" 8 8 "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n" 9 9 "MIME-Version: 1.0\n" … … 2547 2547 msgstr "" 2548 2548 2549 #: api/theme/billing.php:34 5 api/theme/shipping.php:2892549 #: api/theme/billing.php:347 api/theme/shipping.php:291 2550 2550 #: lib/shipping/class.shipping.php:631 2551 2551 msgid "State" 2552 2552 msgstr "" 2553 2553 2554 #: api/theme/billing.php:41 5api/theme/customer.php:2662555 #: api/theme/registration.php:222 api/theme/shipping.php:36 02554 #: api/theme/billing.php:418 api/theme/customer.php:266 2555 #: api/theme/registration.php:222 api/theme/shipping.php:363 2556 2556 #: core-addons/load.php:316 2557 2557 msgid "Email" 2558 2558 msgstr "" 2559 2559 2560 #: api/theme/billing.php:43 6 api/theme/shipping.php:3802560 #: api/theme/billing.php:439 api/theme/shipping.php:383 2561 2561 msgid "Phone" 2562 2562 msgstr "" 2563 2563 2564 #: api/theme/billing.php:4 57 api/theme/shipping.php:4002564 #: api/theme/billing.php:460 api/theme/shipping.php:403 2565 2565 msgid "Submit" 2566 2566 msgstr "" 2567 2567 2568 #: api/theme/billing.php:47 6api/theme/checkout.php:93 api/theme/login.php:3322568 #: api/theme/billing.php:479 api/theme/checkout.php:93 api/theme/login.php:332 2569 2569 #: api/theme/registration.php:368 api/theme/shipping-method.php:163 2570 #: api/theme/shipping.php:4 192570 #: api/theme/shipping.php:422 2571 2571 #: core-addons/admin/guest-checkout/lib/template-functions.php:210 2572 2572 #: core-addons/coupons/basic-coupons/admin.php:390 … … 2675 2675 msgstr "" 2676 2676 2677 #: api/theme/login.php:221 lib/functions/functions.php:50 82677 #: api/theme/login.php:221 lib/functions/functions.php:504 2678 2678 msgid "Log In" 2679 2679 msgstr "" … … 2867 2867 msgstr "" 2868 2868 2869 #. #-#-#-#-# ithemes-exchange.pot (iThemes Exchange 1.11. 2.1) #-#-#-#-#2869 #. #-#-#-#-# ithemes-exchange.pot (iThemes Exchange 1.11.3) #-#-#-#-# 2870 2870 #. Plugin Name of the plugin/theme 2871 2871 #: core-addons/admin/basic-reporting/init.php:19 … … 3183 3183 #: core-addons/coupons/basic-coupons/admin.php:438 3184 3184 #: lib/email-notifications/class.email-notifications.php:453 3185 #: lib/functions/functions.php:39 93185 #: lib/functions/functions.php:395 3186 3186 #: lib/products/class.products-post-type.php:113 3187 3187 msgid "Product" … … 3891 3891 #: core-addons/transaction-methods/paypal-standard/init.php:904 3892 3892 #: core-addons/transaction-methods/paypal-standard-secure/init.php:1156 3893 #: core-addons/transaction-methods/zero-sum-checkout/init.php:19 53893 #: core-addons/transaction-methods/zero-sum-checkout/init.php:196 3894 3894 msgid "Cancel Recurring Payment" 3895 3895 msgstr "" … … 3898 3898 #: core-addons/transaction-methods/paypal-standard/init.php:891 3899 3899 #: core-addons/transaction-methods/paypal-standard-secure/init.php:1143 3900 #: core-addons/transaction-methods/zero-sum-checkout/init.php:20 03900 #: core-addons/transaction-methods/zero-sum-checkout/init.php:201 3901 3901 msgid "Recurring payment has been deactivated" 3902 3902 msgstr "" … … 5067 5067 msgstr "" 5068 5068 5069 #: lib/admin/views/admin-settings.php:187 lib/functions/functions.php:4 425069 #: lib/admin/views/admin-settings.php:187 lib/functions/functions.php:438 5070 5070 msgid "Customer Registration" 5071 5071 msgstr "" … … 5090 5090 msgstr "" 5091 5091 5092 #: lib/admin/views/admin-settings.php:201 lib/functions/functions.php:43 95092 #: lib/admin/views/admin-settings.php:201 lib/functions/functions.php:435 5093 5093 msgid "Registration" 5094 5094 msgstr "" … … 5097 5097 #: lib/deprecated/templates/content-registration.php:49 5098 5098 #: lib/deprecated/templates/super-widget-registration.php:44 5099 #: lib/functions/functions.php:88 65099 #: lib/functions/functions.php:882 5100 5100 #: lib/templates/content-checkout/elements/purchase-requirements/logged-in/elements/not-logged-in/links/login.php:21 5101 5101 #: lib/templates/content-checkout/elements/purchase-requirements/logged-in/elements/registration/login.php:20 … … 5213 5213 #: lib/admin/views/admin-user-products.php:11 5214 5214 #: lib/deprecated/templates/content-downloads.php:34 5215 #: lib/functions/functions.php:42 6 lib/functions/functions.php:4295215 #: lib/functions/functions.php:422 lib/functions/functions.php:425 5216 5216 #: lib/templates/content-downloads/elements/confirmation-url.php:20 5217 5217 msgid "Transaction" … … 5224 5224 msgstr "" 5225 5225 5226 #: lib/admin/views/admin-user-products.php:72 lib/functions/functions.php:4 815226 #: lib/admin/views/admin-user-products.php:72 lib/functions/functions.php:477 5227 5227 #: lib/product-features/class.downloads.php:168 5228 5228 #: lib/templates/content-confirmation/elements/product.php:37 … … 5816 5816 msgstr "" 5817 5817 5818 #: lib/functions/functions.php:2 405818 #: lib/functions/functions.php:237 5819 5819 msgid "" 5820 5820 "Invalid webhook request for this site. The webhook request should be: %s" 5821 5821 msgstr "" 5822 5822 5823 #: lib/functions/functions.php:2 405823 #: lib/functions/functions.php:237 5824 5824 msgid "iThemes Exchange Webhook Process Error" 5825 5825 msgstr "" 5826 5826 5827 #: lib/functions/functions.php:2 505827 #: lib/functions/functions.php:246 5828 5828 msgid "iThemes Exchange webhook process Complete" 5829 5829 msgstr "" 5830 5830 5831 #: lib/functions/functions.php:2 505831 #: lib/functions/functions.php:246 5832 5832 msgid "iThemes Exchange Webhook Process Complete" 5833 5833 msgstr "" 5834 5834 5835 #: lib/functions/functions.php:274 5836 msgid "Dangerous Settings" 5837 msgstr "" 5838 5835 5839 #: lib/functions/functions.php:278 5836 msgid "Dangerous Settings" 5840 msgid "Reset Exchange" 5841 msgstr "" 5842 5843 #: lib/functions/functions.php:281 5844 msgid "Reset ALL data" 5837 5845 msgstr "" 5838 5846 5839 5847 #: lib/functions/functions.php:282 5840 msgid "Reset Exchange"5841 msgstr ""5842 5843 #: lib/functions/functions.php:2855844 msgid "Reset ALL data"5845 msgstr ""5846 5847 #: lib/functions/functions.php:2865848 5848 msgid "Checking this box will rest ALL settings and DELETE ALL DATA." 5849 5849 msgstr "" 5850 5850 5851 #: lib/functions/functions.php:3 825851 #: lib/functions/functions.php:378 5852 5852 msgid "Exchange has been reset. All data has been deleted." 5853 5853 msgstr "" 5854 5854 5855 #: lib/functions/functions.php: 4025855 #: lib/functions/functions.php:398 5856 5856 msgid "Product Base" 5857 5857 msgstr "" 5858 5858 5859 #: lib/functions/functions.php:408 5860 msgid "Store" 5861 msgstr "" 5862 5863 #: lib/functions/functions.php:411 5864 msgid "Store Page" 5865 msgstr "" 5866 5859 5867 #: lib/functions/functions.php:412 5860 msgid "Store"5861 msgstr ""5862 5863 #: lib/functions/functions.php:4155864 msgid "Store Page"5865 msgstr ""5866 5867 #: lib/functions/functions.php:4165868 5868 msgid "Where all your products are shown in one place" 5869 5869 msgstr "" 5870 5870 5871 #: lib/functions/functions.php:4 435871 #: lib/functions/functions.php:439 5872 5872 msgid "" 5873 5873 "Where customers register to login, download, etc. You can turn off " … … 5876 5876 msgstr "" 5877 5877 5878 #: lib/functions/functions.php:449 5879 msgid "Account" 5880 msgstr "" 5881 5882 #: lib/functions/functions.php:452 5883 msgid "Account Page" 5884 msgstr "" 5885 5878 5886 #: lib/functions/functions.php:453 5879 msgid "Account"5880 msgstr ""5881 5882 #: lib/functions/functions.php:4565883 msgid "Account Page"5884 msgstr ""5885 5886 #: lib/functions/functions.php:4575887 5887 msgid "" 5888 5888 "Customers get an account when they buy something, so they can login and " … … 5891 5891 msgstr "" 5892 5892 5893 #: lib/functions/functions.php:463 5894 msgid "Profile" 5895 msgstr "" 5896 5897 #: lib/functions/functions.php:466 5898 msgid "Profile Page" 5899 msgstr "" 5900 5893 5901 #: lib/functions/functions.php:467 5894 msgid "Profile"5895 msgstr ""5896 5897 #: lib/functions/functions.php:4705898 msgid "Profile Page"5899 msgstr ""5900 5901 #: lib/functions/functions.php:4715902 5902 msgid "Private details about your customers that they can change." 5903 5903 msgstr "" 5904 5904 5905 #: lib/functions/functions.php:48 45905 #: lib/functions/functions.php:480 5906 5906 msgid "Customer Downloads" 5907 5907 msgstr "" 5908 5908 5909 #: lib/functions/functions.php:48 55909 #: lib/functions/functions.php:481 5910 5910 msgid "Page where the customer can find all of their available downloads." 5911 5911 msgstr "" 5912 5912 5913 #: lib/functions/functions.php:49 5 lib/functions/functions.php:4985913 #: lib/functions/functions.php:491 lib/functions/functions.php:494 5914 5914 #: lib/products/class.products-post-type.php:588 5915 5915 #: lib/templates/content-confirmation/elements/purchases-label.php:20 … … 5917 5917 msgstr "" 5918 5918 5919 #: lib/functions/functions.php:5 115919 #: lib/functions/functions.php:507 5920 5920 msgid "Customer Log In" 5921 5921 msgstr "" 5922 5922 5923 #: lib/functions/functions.php:5 215923 #: lib/functions/functions.php:517 5924 5924 msgid "Log Out" 5925 5925 msgstr "" 5926 5926 5927 #: lib/functions/functions.php:52 45927 #: lib/functions/functions.php:520 5928 5928 msgid "Customer Log Out" 5929 5929 msgstr "" 5930 5930 5931 #: lib/functions/functions.php:53 45931 #: lib/functions/functions.php:530 5932 5932 msgid "Thank you" 5933 5933 msgstr "" 5934 5934 5935 #: lib/functions/functions.php:53 75935 #: lib/functions/functions.php:533 5936 5936 msgid "Purchase Confirmation" 5937 5937 msgstr "" 5938 5938 5939 #: lib/functions/functions.php:88 75939 #: lib/functions/functions.php:883 5940 5940 msgid "register" 5941 5941 msgstr "" 5942 5942 5943 #: lib/functions/functions.php:88 85943 #: lib/functions/functions.php:884 5944 5944 msgid "edit your cart" 5945 5945 msgstr "" 5946 5946 5947 #: lib/functions/functions.php:9 105947 #: lib/functions/functions.php:906 5948 5948 msgid "We need a billing address before you can checkout" 5949 5949 msgstr "" 5950 5950 5951 #: lib/functions/functions.php:12 715951 #: lib/functions/functions.php:1267 5952 5952 msgid "You do not have permission to view this file." 5953 5953 msgstr "" 5954 5954 5955 #: lib/functions/functions.php:12 715955 #: lib/functions/functions.php:1267 5956 5956 msgid "Error" 5957 5957 msgstr "" 5958 5958 5959 #: lib/functions/functions.php:14 505959 #: lib/functions/functions.php:1446 5960 5960 msgid "%s Product" 5961 5961 msgid_plural "%s Products" … … 6860 6860 msgstr "" 6861 6861 6862 #: lib/super-widget/class.super-widget.php:15 26862 #: lib/super-widget/class.super-widget.php:155 6863 6863 msgid "Processing" 6864 6864 msgstr "" 6865 6865 6866 #: lib/super-widget/class.super-widget.php:196 6866 #: lib/super-widget/class.super-widget.php:156 6867 msgid "Processing... " 6868 msgstr "" 6869 6870 #: lib/super-widget/class.super-widget.php:200 6867 6871 msgid "There are no options for this widget." 6868 6872 msgstr "" -
ithemes-exchange/trunk/lib/functions/functions.php
r1018864 r1032065 226 226 227 227 $webhooks_processed = true; 228 $requested_webhook_url = untrailingslashit( get_site_url()) . $_SERVER['REQUEST_URI']; //REQUEST_URI includes the slash228 $requested_webhook_url = untrailingslashit( $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ) . $_SERVER['REQUEST_URI']; //REQUEST_URI includes the slash 229 229 $parsed_requested_webhook_url = parse_url( $requested_webhook_url ); 230 230 $required_webhook_url = add_query_arg( $param, '1', trailingslashit( get_site_url() ) ); //add the slash to make sure we match … … 233 233 234 234 if ( empty( $webhook_diff ) ) { //No differences in the requested webhook and the required webhook 235 236 235 do_action( 'it_exchange_webhook_' . $param, $_REQUEST ); 237 238 236 } else { 239 240 237 wp_die( sprintf( __( 'Invalid webhook request for this site. The webhook request should be: %s', 'it-l10n-ithemes-exchange' ), $required_webhook_url ), __( 'iThemes Exchange Webhook Process Error', 'it-l10n-ithemes-exchange' ), array( 'response' => 400 ) ); 241 242 238 } 243 239 -
ithemes-exchange/trunk/lib/super-widget/class.super-widget.php
r935226 r1032065 128 128 ?> 129 129 <div class="it-exchange-super-widget it-exchange-super-widget-<?php esc_attr_e( $this->get_state() ); ?>"> 130 <style type="text/css"> 131 .it-exchange-super-widget .spinner{background:url('<?php echo get_admin_url(); ?>/images/wpspin_light.gif') no-repeat;} 132 </style> 130 133 <?php it_exchange_get_template_part( 'super-widget', $this->get_state() ); ?> 131 134 </div> … … 148 151 // JS 149 152 $script_url = ITUtility::get_url_from_file( dirname( __FILE__ ) . '/js/super-widget.js' ); 150 wp_enqueue_script( 'it-exchange-super-widget', $script_url, array( 'jquery', ' detect-credit-card-type', 'it-exchange-event-manager' ), false, true );153 wp_enqueue_script( 'it-exchange-super-widget', $script_url, array( 'jquery', 'jquery-ui-spinner', 'detect-credit-card-type', 'it-exchange-event-manager' ), false, true ); 151 154 wp_localize_script( 'it-exchange-super-widget', 'exchangeSWL10n', array( 152 155 'processingPaymentLabel' => __( 'Processing', 'it-l10n-ithemes-exchange' ), 156 'processingAction' => __( 'Processing... ', 'it-l10n-ithemes-exchange' ), 153 157 ) 154 158 ); -
ithemes-exchange/trunk/lib/super-widget/css/frontend-global.css
r910535 r1032065 91 91 .it-exchange-super-widget .it-exchange-sw-processing-guest-checkout .save_url input{width:100%;} 92 92 .it-exchange-super-widget .it-exchange-sw-processing-guest-checkout h3.in-super-widget{margin: 0 0 .75em;} 93 94 /** ----------------------------------------:[ guest checkout (background image set inline)]:--- */ 95 .it-exchange-super-widget .spinner{background-size: 16px 16px;display:none;opacity: .7;filter: alpha(opacity=70);width: 16px;height: 16px; margin: 0 0 5px 5px;display:inline-block;} -
ithemes-exchange/trunk/lib/super-widget/js/super-widget.js
r1004481 r1032065 154 154 event.preventDefault(); 155 155 data = jQuery( ':input', this ).serializeArray(); 156 jQuery(this).find('.it-exchange-login-button').find('input').hide().after('<div style="margin-top:15px;"><div style="float:left;">'+exchangeSWL10n.processingAction+'</div><div class="spinner"></div></div>'); 156 157 itExchangeSWLogIn(data); 157 158 itExchange.hooks.doAction( 'itExchangeSW.loginRequested' ); … … 162 163 event.preventDefault(); 163 164 data = jQuery( ':input', this ).serializeArray(); 165 jQuery(this).children('#it-exchange-register-customer').hide().after('<div><div style="float:left;">'+exchangeSWL10n.processingAction+'</div><div class="spinner"></div></div>'); 164 166 itExchangeSWRegister(data); 165 167 itExchange.hooks.doAction( 'itExchangeSW.registerRequested' ); -
ithemes-exchange/trunk/lib/templates/content-confirmation/elements/order-details-label.php
r802482 r1032065 18 18 <?php do_action( 'it_exchange_confirmation_before_transaction_order_details_label' ); ?> 19 19 <div class="it-exchange-transaction-order-details-label"> 20 <h3><?php _e( 'Order Details', ' date' ); ?></h3>20 <h3><?php _e( 'Order Details', 'it-l10n-ithemes-exchange' ); ?></h3> 21 21 </div> 22 22 <?php do_action( 'it_exchange_confirmation_after_transaction_order_details_label' ); ?> -
ithemes-exchange/trunk/lib/templates/content-store.php
r1024556 r1032065 5 5 * @since 0.4.0 6 6 * @package IT_Exchange 7 * @version CHANGEME7 * @version 1.11.2 8 8 * @link http://ithemes.com/codex/page/Exchange_Template_Updates 9 9 * -
ithemes-exchange/trunk/readme.txt
r1024577 r1032065 88 88 89 89 == Changelog == 90 1.11.2.1 - 2014-11-12 - Glenn Ansley, Lew Ayotte, Elise Alley 90 91 = 1.11.3 = 92 * Fixed bad translation string in order details template part 93 * Added filters for country and state alternatives in text2select API 94 * Added loading gif during SW AJAX calls to Register / Login 95 * Fixed bug causing Stripe webhooks not to reach Exchange in some setups 96 * Fixed notice when no cart object is returned in zero sum checkout 97 98 = 1.11.2.1 - 2014-11-12 - Glenn Ansley, Lew Ayotte, Elise Alley = 91 99 * Fixing call to weight meta for product 92 100
Note: See TracChangeset
for help on using the changeset viewer.