installed plugin Easy Digital Downloads version 3.1.0.3

This commit is contained in:
2022-11-27 15:03:07 +00:00
committed by Gitium
parent 555673545b
commit c5dce2cec6
1200 changed files with 238970 additions and 0 deletions
wp-content/plugins/easy-digital-downloads
assets
css
images
js
admin
alpine.min.jsedd-admin-customers.jsedd-admin-dashboard.jsedd-admin-discounts.jsedd-admin-downloads.jsedd-admin-email-tags.jsedd-admin-extension-manager.jsedd-admin-notes.jsedd-admin-notices.jsedd-admin-orders.jsedd-admin-orders.js.mapedd-admin-payments.jsedd-admin-reports.jsedd-admin-settings.jsedd-admin-tax-rates.jsedd-admin-tax-rates.js.mapedd-admin-tools-export.jsedd-admin-tools-import.jsedd-admin-tools.jsedd-admin-upgrades.jsedd-admin.jsedd-ajax.jsedd-checkout-global.js
frontend
checkout
components
agree-to-terms
index.jsutils.js
edd-ajax.js
gateways
jquery.validate.min.js
packages
paypal-checkout.js
utils
vendor
wp-polyfill.min.js
sample-products-import.xml
easy-digital-downloads.php
includes
EDD_SL_Plugin_Updater.phpactions.php
adjustments
admin
add-ons.php
adjustments
admin-actions.phpadmin-bar.phpadmin-deprecated-functions.phpadmin-footer.phpadmin-pages.phpclass-api-keys-table.phpclass-edd-heartbeat.phpclass-edd-notices.phpclass-list-table.phpclass-pass-manager.phpclass-sections.php
customers
dashboard-widgets.php
discounts
downloads
emails
extensions
import
installers
notes
payments
plugins.php
promos
reporting
settings
thickbox.phptools.php
tools
tracking.php
upgrades
upload-functions.php
views
ajax-functions.php
api
blocks
assets
build
edd-blocks.php
includes
readme.md
views
cart
checkout
class-base-object.phpclass-component.phpclass-easy-digital-downloads.phpclass-edd-cache-helper.phpclass-edd-cli.phpclass-edd-cron.phpclass-edd-customer-query.phpclass-edd-customer.phpclass-edd-db-customer-meta.phpclass-edd-db-customers.phpclass-edd-db.phpclass-edd-discount.phpclass-edd-download.phpclass-edd-fees.phpclass-edd-html-elements.phpclass-edd-license-handler.phpclass-edd-logging.phpclass-edd-register-meta.phpclass-edd-roles.phpclass-edd-session.phpclass-edd-stats.phpclass-stats.phpclass-structured-data.phpclass-utilities.phpcompat-functions.php
compat
component-functions.phpcountry-functions.php
currency
customer-functions.php
customers
database
NotificationsDB.phpREADME.md
engine
queries
rows
schemas
tables
date-functions.phpdeprecated-functions.phpdeprecated-hooks.phpdiscount-functions.phpdownload-functions.php
downloads
emails
error-tracking.php
extensions
formatting.php
gateways
actions.phpamazon-payments.phpfunctions.php
libs
manual.phppaypal-standard.php
paypal
stripe
apple-developer-merchantid-domain-association
assets
edd-stripe.php
includes
vendor
autoload.php
composer
stripe
stripe-php
CHANGELOG.mdCODE_OF_CONDUCT.mdLICENSEMakefileREADME.mdVERSIONbuild.phpcomposer.json
data
init.php
lib
Account.phpAccountLink.phpAlipayAccount.php
ApiOperations
ApiRequestor.phpApiResource.phpApiResponse.phpApplePayDomain.phpApplicationFee.phpApplicationFeeRefund.phpBalance.phpBalanceTransaction.phpBankAccount.phpBaseStripeClient.php
BillingPortal
BitcoinReceiver.phpBitcoinTransaction.phpCapability.phpCard.phpCharge.php
Checkout
Collection.phpCountrySpec.phpCoupon.phpCreditNote.phpCreditNoteLineItem.phpCustomer.phpCustomerBalanceTransaction.phpDiscount.phpDispute.phpEphemeralKey.phpErrorObject.phpEvent.php
Exception
ExchangeRate.phpFile.phpFileLink.php
HttpClient
Invoice.phpInvoiceItem.phpInvoiceLineItem.php
Issuing
LineItem.phpLoginLink.phpMandate.phpOAuth.phpOAuthErrorObject.phpOrder.phpOrderItem.phpOrderReturn.phpPaymentIntent.phpPaymentMethod.phpPayout.phpPerson.phpPlan.phpPrice.phpProduct.phpPromotionCode.php
Radar
Recipient.phpRecipientTransfer.phpRefund.php
Reporting
RequestTelemetry.phpReview.phpSKU.php
Service
AbstractService.phpAbstractServiceFactory.phpAccountLinkService.phpAccountService.phpApplePayDomainService.phpApplicationFeeService.phpBalanceService.phpBalanceTransactionService.php
BillingPortal
ChargeService.php
Checkout
CoreServiceFactory.phpCountrySpecService.phpCouponService.phpCreditNoteService.phpCustomerService.phpDisputeService.phpEphemeralKeyService.phpEventService.phpExchangeRateService.phpFileLinkService.phpFileService.phpInvoiceItemService.phpInvoiceService.php
Issuing
MandateService.phpOAuthService.phpOrderReturnService.phpOrderService.phpPaymentIntentService.phpPaymentMethodService.phpPayoutService.phpPlanService.phpPriceService.phpProductService.phpPromotionCodeService.php
Radar
RefundService.php
Reporting
ReviewService.phpSetupIntentService.php
Sigma
SkuService.phpSourceService.phpSubscriptionItemService.phpSubscriptionScheduleService.phpSubscriptionService.phpTaxRateService.php
Terminal
TokenService.phpTopupService.phpTransferService.phpWebhookEndpointService.php
SetupIntent.php
Sigma
SingletonApiResource.phpSource.phpSourceTransaction.phpStripe.phpStripeClient.phpStripeClientInterface.phpStripeObject.phpSubscription.phpSubscriptionItem.phpSubscriptionSchedule.phpTaxId.phpTaxRate.php
Terminal
ThreeDSecure.phpToken.phpTopup.phpTransfer.phpTransferReversal.phpUsageRecord.phpUsageRecordSummary.php
Util
Webhook.phpWebhookEndpoint.phpWebhookSignature.php
phpdoc.dist.xmlphpstan-baseline.neonphpstan.neon.distupdate_certs.php
install.phpinterface-edd-exception.php
libraries
logs
mime-types.phpmisc-functions.php
models
notes
orders
payments
plugin-compatibility.phppost-types.phpprivacy-functions.phpprocess-download.phpprocess-purchase.phpquery-filters.phprefund-functions.php
reports
scripts.phpshortcodes.phptax-functions.phptemplate-actions.phptemplate-functions.phptheme-compatibility.php
traits
user-functions.php
users
utils
widgets.php
languages
license.txtreadme.txt
templates
uninstall.php

@ -0,0 +1,134 @@
/**
* Notes
*/
const EDD_Notes = {
init: function() {
this.enter_key();
this.add_note();
this.remove_note();
},
enter_key: function() {
$( document.body ).on( 'keydown', '#edd-note', function( e ) {
if ( e.keyCode === 13 && ( e.metaKey || e.ctrlKey ) ) {
e.preventDefault();
$( '#edd-add-note' ).click();
}
} );
},
/**
* Ajax handler for adding new notes
*
* @since 3.0
*/
add_note: function() {
$( '#edd-add-note' ).on( 'click', function( e ) {
e.preventDefault();
const edd_button = $( this ),
edd_note = $( '#edd-note' ),
edd_notes = $( '.edd-notes' ),
edd_no_notes = $( '.edd-no-notes' ),
edd_spinner = $( '.edd-add-note .spinner' ),
edd_note_nonce = $( '#edd_note_nonce' );
const postData = {
action: 'edd_add_note',
nonce: edd_note_nonce.val(),
object_id: edd_button.data( 'object-id' ),
object_type: edd_button.data( 'object-type' ),
note: edd_note.val(),
};
if ( postData.note ) {
edd_button.prop( 'disabled', true );
edd_spinner.css( 'visibility', 'visible' );
$.ajax( {
type: 'POST',
data: postData,
url: ajaxurl,
success: function( response ) {
let res = wpAjax.parseAjaxResponse( response );
res = res.responses[ 0 ];
edd_notes.append( res.data );
edd_no_notes.hide();
edd_button.prop( 'disabled', false );
edd_spinner.css( 'visibility', 'hidden' );
edd_note.val( '' );
},
} ).fail( function( data ) {
if ( window.console && window.console.log ) {
console.log( data );
}
edd_button.prop( 'disabled', false );
edd_spinner.css( 'visibility', 'hidden' );
} );
} else {
const border_color = edd_note.css( 'border-color' );
edd_note.css( 'border-color', 'red' );
setTimeout( function() {
edd_note.css( 'border-color', border_color );
}, userInteractionInterval );
}
} );
},
/**
* Ajax handler for deleting existing notes
*
* @since 3.0
*/
remove_note: function() {
$( document.body ).on( 'click', '.edd-delete-note', function( e ) {
e.preventDefault();
const edd_link = $( this ),
edd_notes = $( '.edd-note' ),
edd_note = edd_link.parents( '.edd-note' ),
edd_no_notes = $( '.edd-no-notes' ),
edd_note_nonce = $( '#edd_note_nonce' );
if ( confirm( edd_vars.delete_note ) ) {
const postData = {
action: 'edd_delete_note',
nonce: edd_note_nonce.val(),
note_id: edd_link.data( 'note-id' ),
};
edd_note.addClass( 'deleting' );
$.ajax( {
type: 'POST',
data: postData,
url: ajaxurl,
success: function( response ) {
if ( '1' === response ) {
edd_note.remove();
}
if ( edd_notes.length === 1 ) {
edd_no_notes.show();
}
return false;
},
} ).fail( function( data ) {
if ( window.console && window.console.log ) {
console.log( data );
}
edd_note.removeClass( 'deleting' );
} );
return true;
}
} );
},
};
jQuery( document ).ready( function( $ ) {
EDD_Notes.init();
} );