Version Description
Download this release
Release Info
Developer | dlocc |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- assets/dist/js/give.js +1 -1
- give.php +14 -16
- includes/admin/add-ons/actions.php +6 -19
- includes/admin/donors/donor-functions.php +2 -2
- includes/admin/donors/donors.php +2 -1
- includes/admin/emails/class-donor-note-email.php +2 -2
- includes/admin/emails/class-email-setting-field.php +2 -3
- includes/country-functions.php +1 -1
- includes/{class-give-db-comments-meta.php → database/class-give-db-comments-meta.php} +0 -0
- includes/{class-give-db-comments.php → database/class-give-db-comments.php} +0 -0
- includes/{class-give-db-donor-meta.php → database/class-give-db-donor-meta.php} +0 -0
- includes/{class-give-db-donors.php → database/class-give-db-donors.php} +0 -0
- includes/{class-give-db-form-meta.php → database/class-give-db-form-meta.php} +0 -0
- includes/{class-give-db-logs-meta.php → database/class-give-db-logs-meta.php} +0 -0
- includes/{class-give-db-logs.php → database/class-give-db-logs.php} +0 -0
- includes/{class-give-db-meta.php → database/class-give-db-meta.php} +0 -0
- includes/{class-give-db-payment-meta.php → database/class-give-db-payment-meta.php} +0 -0
- includes/{class-give-db-sequential-ordering.php → database/class-give-db-sequential-ordering.php} +0 -0
- includes/{class-give-db-sessions.php → database/class-give-db-sessions.php} +0 -0
- includes/{class-give-db.php → database/class-give-db.php} +0 -0
- includes/formatting.php +14 -8
- includes/forms/template.php +240 -197
- includes/gateways/stripe/class-give-stripe.php +8 -2
- includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php +30 -1
- includes/gateways/stripe/includes/class-give-stripe-gateway.php +1 -1
- includes/gateways/stripe/includes/class-give-stripe-payment-intent.php +2 -2
- includes/gateways/stripe/includes/class-give-stripe-webhooks.php +2 -2
- includes/gateways/stripe/includes/give-stripe-helpers.php +34 -3
- includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php +22 -2
- includes/gateways/stripe/stripe-sdk/VERSION +0 -1
- includes/plugin-compatibility.php +23 -3
- languages/give.pot +255 -221
- readme.txt +12 -3
- templates/shortcode-goal.php +55 -5
- vendor/autoload.php +1 -1
- vendor/composer/autoload_psr4.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +12 -4
- vendor/composer/installed.json +58 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/.gitignore +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/CHANGELOG.md +3 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/LICENSE +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/README.md +0 -0
- vendor/stripe/stripe-php/VERSION +1 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/build.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/composer.json +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/data/ca-certificates.crt +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/init.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Account.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/AccountLink.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/AlipayAccount.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/All.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Create.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Delete.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/NestedResource.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Request.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Retrieve.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Update.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiRequestor.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiResource.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiResponse.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApplePayDomain.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApplicationFee.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApplicationFeeRefund.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Balance.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BalanceTransaction.php +0 -9
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BankAccount.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BitcoinReceiver.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BitcoinTransaction.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Capability.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Card.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Charge.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Checkout/Session.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Collection.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/CountrySpec.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Coupon.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/CreditNote.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Customer.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/CustomerBalanceTransaction.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Discount.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Dispute.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/EphemeralKey.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Api.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/ApiConnection.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Authentication.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Base.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Card.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Idempotency.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/InvalidRequest.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidClient.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidGrant.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidRequest.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidScope.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/OAuthBase.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/UnsupportedGrantType.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/UnsupportedResponseType.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Permission.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/RateLimit.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/SignatureVerification.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Event.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ExchangeRate.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/File.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/FileLink.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/FileUpload.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/HttpClient/ClientInterface.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/HttpClient/CurlClient.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Invoice.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/InvoiceItem.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/InvoiceLineItem.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/IssuerFraudRecord.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Authorization.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Card.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/CardDetails.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Cardholder.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Dispute.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Transaction.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/LoginLink.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/OAuth.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Order.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/OrderItem.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/OrderReturn.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/PaymentIntent.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/PaymentMethod.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Payout.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Person.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Plan.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Product.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Radar/EarlyFraudWarning.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Radar/ValueList.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Radar/ValueListItem.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Recipient.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/RecipientTransfer.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Refund.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Reporting/ReportRun.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Reporting/ReportType.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/RequestTelemetry.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Review.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SKU.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SetupIntent.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Sigma/ScheduledQueryRun.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SingletonApiResource.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Source.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SourceTransaction.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Stripe.php +1 -1
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/StripeObject.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Subscription.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SubscriptionItem.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SubscriptionSchedule.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SubscriptionScheduleRevision.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/TaxId.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/TaxRate.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Terminal/ConnectionToken.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Terminal/Location.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Terminal/Reader.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ThreeDSecure.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Token.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Topup.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Transfer.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/TransferReversal.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/UsageRecord.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/UsageRecordSummary.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/AutoPagingIterator.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/CaseInsensitiveArray.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/DefaultLogger.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/LoggerInterface.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/RandomGenerator.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/RequestOptions.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/Set.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/Util.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Webhook.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/WebhookEndpoint.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/WebhookSignature.php +0 -0
- {includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/update_certs.php +0 -0
assets/dist/js/give.js
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
* http://www.gnu.org/licenses/gpl.html
|
19 |
*
|
20 |
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
21 |
-
*/!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var f,m,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),f=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,_,w,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),_=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(C),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(f)),c.theme||_.css(c.overlayCSS),_.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,_,w],I=e(v?"body":s);e.each(k,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var j=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||j){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var S=p(s,"borderTopWidth"),E=p(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,A=E?"(0 - "+E+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&n.setExpression("left",A),O&&n.setExpression("top",O);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var T=c.onBlock?c.onBlock:t,G=c.showOverlay&&!g?T:t,M=g?T:t;c.showOverlay&&_._fadeIn(c.fadeIn,G),g&&w._fadeIn(c.fadeIn,M)}else c.showOverlay&&_.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),v?(o=w[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var P=setTimeout(function(){v?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",P)}}}function l(t,n){var r,i,s=t==window,l=e(t),f=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,function(){0==--r&&c(i,f,n,t)})):c(i,f,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,f):e(document).unbind(s,f)}}function f(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){d(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(149).jQuery?(i=[n(39)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},149:function(e,t){(function(t){e.exports=t}).call(this,{})},150:function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,m=Object.keys,v=Object.create,g=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.1";var y,b=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},_=function(e,t,n){return h.iteratee!==y?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?b(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=y=function(e,t){return _(e,t,1/0)};var w=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}},C=function(e){if(!h.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},k=function(e,t){return null!=e&&d.call(e,t)},I=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},j=Math.pow(2,53)-1,S=x("length"),E=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=j};h.each=h.forEach=function(e,t,n){var r,i;if(t=b(t,n),E(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=h.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},h.map=h.collect=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var O=function(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!E(t)&&h.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r}(t,b(n,i,4),r,o)}};h.reduce=h.foldl=h.inject=O(1),h.reduceRight=h.foldr=O(-1),h.find=h.detect=function(e,t,n){var r=(E(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=_(t,n),h.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(_(t)),n)},h.every=h.all=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},h.some=h.any=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},h.contains=h.includes=h.include=function(e,t,n,r){return E(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),h.indexOf(e,t,n)>=0},h.invoke=w(function(e,t,n){var r,i;return h.isFunction(t)?i=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=I(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},h.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return E(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=E(e)?h.clone(e):h.values(e),i=S(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=h.random(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=_(t,n),h.pluck(h.map(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var A=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=_(r,i),h.each(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}};h.groupBy=A(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=A(function(e,t,n){e[n]=t}),h.countBy=A(function(e,t,n){k(e,n)?e[n]++:e[n]=1});var T=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?u.call(e):h.isString(e)?e.match(T):E(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:E(e)?e.length:h.keys(e).length},h.partition=A(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var G=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=S(e);o<a;o++){var s=e[o];if(E(s)&&(h.isArray(s)||h.isArguments(s)))if(t)for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else G(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};h.flatten=function(e,t){return G(e,t,!1)},h.without=w(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=_(n,r));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=w(function(e){return h.uniq(G(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=S(e);r<i;r++){var o=e[r];if(!h.contains(t,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},h.difference=w(function(e,t){return t=G(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.unzip=function(e){for(var t=e&&h.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n},h.zip=w(h.unzip),h.object=function(e,t){for(var n={},r=0,i=S(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var M=function(e){return function(t,n,r){n=_(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};h.findIndex=M(1),h.findLastIndex=M(-1),h.sortedIndex=function(e,t,n,r){for(var i=(n=_(n,r,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var P=function(e,t,n){return function(r,i,o){var a=0,s=S(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),h.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};h.indexOf=P(1,h.findIndex,h.sortedIndex),h.lastIndexOf=P(-1,h.findLastIndex),h.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var L=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=C(e.prototype),a=e.apply(o,i);return h.isObject(a)?a:o};h.bind=w(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=w(function(i){return L(e,r,t,this,n.concat(i))});return r}),h.partial=w(function(e,t){var n=h.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return L(e,r,this,this,a)};return r}),h.partial.placeholder=h,h.bindAll=w(function(e,t){var n=(t=G(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return k(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},h.delay=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=h.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},h.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=h.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},h.once=h.partial(h.before,2),h.restArguments=w;var N=!{toString:null}.propertyIsEnumerable("toString"),Q=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=Q.length,r=e.constructor,i=h.isFunction(r)&&r.prototype||s,o="constructor";for(k(e,o)&&!h.contains(t,o)&&t.push(o);n--;)(o=Q[n])in e&&e[o]!==i[o]&&!h.contains(t,o)&&t.push(o)};h.keys=function(e){if(!h.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return N&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},h.mapObject=function(e,t,n){t=_(t,n);for(var r=h.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var z=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}};h.extend=z(h.allKeys),h.extendOwn=h.assign=z(h.keys),h.findKey=function(e,t,n){t=_(t,n);for(var r,i=h.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var U,F,D=function(e,t,n){return t in n};h.pick=w(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(t.length>1&&(r=b(r,t[1])),t=h.allKeys(e)):(r=D,t=G(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),h.omit=w(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),t.length>1&&(n=t[1])):(t=h.map(G(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=z(h.allKeys,!0),h.create=function(e,t){var n=C(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var u,d=h.keys(e);if(c=d.length,h.keys(t).length!==c)return!1;for(;c--;)if(u=d[c],!k(t,u)||!U(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(E(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=p||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return k(e,"callee")});var V=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return k(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},h.noConflict=function(){return i._=o,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return I(t,e)}:x(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?I(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var q={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=h.invert(q),R=function(e){var t=function(t){return e[t]},n="(?:"+h.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};h.escape=R(q),h.unescape=R(H),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=h.isFunction(o)?o.call(e):o}return e};var W=0;h.uniqueId=function(e){var t=++W+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+K[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,h)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},h.chain=function(e){var t=h(e);return t._chain=!0,t};var J=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}}),h.each(["concat","join","slice"],function(e){var t=a[e];h.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(50),n(151)(e))},151:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},152:function(e,t){jQuery(function(e){var t=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var t="",i=e.states_label;if(t=void 0!==e.states_found&&!0===e.states_found?e.data:'<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'.concat(i,'" value="').concat(e.default_state,'" autocomplete="address-level4"/>'),!1===r.hasClass("float-labels-enabled")){void 0!==e.states_require&&!0===e.states_require?r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden");var o=r.find('input[name="card_city"]');void 0!==e.city_require&&!0===e.city_require?(o.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),o.attr("required",!0)):(o.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),o.removeAttr("required"))}else r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(i);r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(i),r.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!==e.show_field&&!0===e.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,r.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(t)}),n.on("submit","#give_payment_mode",function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,n,r,i){var o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),f=0===s?c:Give.fn.unFormatCurrency(s,l),d=Give.form.fn.formatAmount(f,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===f||0===f){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),s=f=Give.fn.unFormatCurrency(p.val(),l),d=Give.form.fn.formatAmount(f,o,{}))}if(Give.fn.setCache("amount_"+f,i,o),e(this).val(d),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var m=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===m.length&&f<c?Give.notice.fn.renderNotice("bad_minimum",o):f>=c&&m.slideUp(300,function(){e(this).remove()}),0===v.length&&f>u?Give.notice.fn.renderNotice("bad_maximum",o):f<=u&&v.slideUp(300,function(){e(this).remove()})}a!==f&&o.find(".give-final-total-amount").attr("data-total",f).text(Give.fn.formatCurrency(f,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(f,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,f,i])}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).on("load",function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}})})},17:function(e,t,n){"use strict";var r={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r=commonL10n.dismiss||"";return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}},i={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",function(){Give.form.fn.__sendBackToForm()})},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?t:{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})}),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,function(e,t){if(t.amount===r)return i=t.price_id,!1}),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)})},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise(function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)}).done(function(){Give.form.fn.disable(e,!1)})}))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))})}}}},o={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},a={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)a[e[t]].init&&a[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:a.form.fn.getInfo("decimal_separator",n),thousand:a.form.fn.getInfo("thousands_separator",n),precision:a.form.fn.getInfo("number_decimals",n),currency:a.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=parseFloat(e).toFixed(r.precision),s=t.precision?".0":"",l="",c="",u="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(s=o.substring(o.indexOf("."),o.length)),l=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(l=r.thousand+l),i=(u=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+l+s).lastIndexOf("."),e=u=u.slice(0,i)+(u.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){var n,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":a.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:a.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))}},cache:{}};a.notice=r,a.form=i,a.donor=o;t.a=a},355:function(e,t,n){"use strict";n.r(t);n(146),n(76),n(147),n(57),n(78);var r=n(17),i=(n(152),n(14)),o=n.n(i);function a(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},function(t){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("give_gateway_loaded",[t,jQuery(e).attr("id")])})}
|
22 |
/*!
|
23 |
* Give AJAX JS
|
24 |
*
|
18 |
* http://www.gnu.org/licenses/gpl.html
|
19 |
*
|
20 |
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
21 |
+
*/!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var f,m,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),f=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,_,w,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),_=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(C),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(f)),c.theme||_.css(c.overlayCSS),_.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,_,w],I=e(v?"body":s);e.each(k,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var j=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||j){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var S=p(s,"borderTopWidth"),E=p(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,A=E?"(0 - "+E+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&n.setExpression("left",A),O&&n.setExpression("top",O);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var T=c.onBlock?c.onBlock:t,G=c.showOverlay&&!g?T:t,M=g?T:t;c.showOverlay&&_._fadeIn(c.fadeIn,G),g&&w._fadeIn(c.fadeIn,M)}else c.showOverlay&&_.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),v?(o=w[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var P=setTimeout(function(){v?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",P)}}}function l(t,n){var r,i,s=t==window,l=e(t),f=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,function(){0==--r&&c(i,f,n,t)})):c(i,f,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,f):e(document).unbind(s,f)}}function f(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){d(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(149).jQuery?(i=[n(39)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},149:function(e,t){(function(t){e.exports=t}).call(this,{})},150:function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,m=Object.keys,v=Object.create,g=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.1";var y,b=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},_=function(e,t,n){return h.iteratee!==y?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?b(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=y=function(e,t){return _(e,t,1/0)};var w=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}},C=function(e){if(!h.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},k=function(e,t){return null!=e&&d.call(e,t)},I=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},j=Math.pow(2,53)-1,S=x("length"),E=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=j};h.each=h.forEach=function(e,t,n){var r,i;if(t=b(t,n),E(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=h.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},h.map=h.collect=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var O=function(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!E(t)&&h.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r}(t,b(n,i,4),r,o)}};h.reduce=h.foldl=h.inject=O(1),h.reduceRight=h.foldr=O(-1),h.find=h.detect=function(e,t,n){var r=(E(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=_(t,n),h.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(_(t)),n)},h.every=h.all=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},h.some=h.any=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},h.contains=h.includes=h.include=function(e,t,n,r){return E(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),h.indexOf(e,t,n)>=0},h.invoke=w(function(e,t,n){var r,i;return h.isFunction(t)?i=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=I(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},h.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return E(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=E(e)?h.clone(e):h.values(e),i=S(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=h.random(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=_(t,n),h.pluck(h.map(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var A=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=_(r,i),h.each(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}};h.groupBy=A(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=A(function(e,t,n){e[n]=t}),h.countBy=A(function(e,t,n){k(e,n)?e[n]++:e[n]=1});var T=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?u.call(e):h.isString(e)?e.match(T):E(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:E(e)?e.length:h.keys(e).length},h.partition=A(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var G=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=S(e);o<a;o++){var s=e[o];if(E(s)&&(h.isArray(s)||h.isArguments(s)))if(t)for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else G(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};h.flatten=function(e,t){return G(e,t,!1)},h.without=w(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=_(n,r));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=w(function(e){return h.uniq(G(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=S(e);r<i;r++){var o=e[r];if(!h.contains(t,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},h.difference=w(function(e,t){return t=G(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.unzip=function(e){for(var t=e&&h.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n},h.zip=w(h.unzip),h.object=function(e,t){for(var n={},r=0,i=S(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var M=function(e){return function(t,n,r){n=_(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};h.findIndex=M(1),h.findLastIndex=M(-1),h.sortedIndex=function(e,t,n,r){for(var i=(n=_(n,r,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var P=function(e,t,n){return function(r,i,o){var a=0,s=S(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),h.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};h.indexOf=P(1,h.findIndex,h.sortedIndex),h.lastIndexOf=P(-1,h.findLastIndex),h.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var L=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=C(e.prototype),a=e.apply(o,i);return h.isObject(a)?a:o};h.bind=w(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=w(function(i){return L(e,r,t,this,n.concat(i))});return r}),h.partial=w(function(e,t){var n=h.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return L(e,r,this,this,a)};return r}),h.partial.placeholder=h,h.bindAll=w(function(e,t){var n=(t=G(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return k(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},h.delay=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=h.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},h.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=h.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},h.once=h.partial(h.before,2),h.restArguments=w;var N=!{toString:null}.propertyIsEnumerable("toString"),Q=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=Q.length,r=e.constructor,i=h.isFunction(r)&&r.prototype||s,o="constructor";for(k(e,o)&&!h.contains(t,o)&&t.push(o);n--;)(o=Q[n])in e&&e[o]!==i[o]&&!h.contains(t,o)&&t.push(o)};h.keys=function(e){if(!h.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return N&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},h.mapObject=function(e,t,n){t=_(t,n);for(var r=h.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var z=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}};h.extend=z(h.allKeys),h.extendOwn=h.assign=z(h.keys),h.findKey=function(e,t,n){t=_(t,n);for(var r,i=h.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var U,F,D=function(e,t,n){return t in n};h.pick=w(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(t.length>1&&(r=b(r,t[1])),t=h.allKeys(e)):(r=D,t=G(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),h.omit=w(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),t.length>1&&(n=t[1])):(t=h.map(G(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=z(h.allKeys,!0),h.create=function(e,t){var n=C(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var u,d=h.keys(e);if(c=d.length,h.keys(t).length!==c)return!1;for(;c--;)if(u=d[c],!k(t,u)||!U(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(E(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=p||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return k(e,"callee")});var q=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof q&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return k(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},h.noConflict=function(){return i._=o,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return I(t,e)}:x(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?I(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var V={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=h.invert(V),R=function(e){var t=function(t){return e[t]},n="(?:"+h.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};h.escape=R(V),h.unescape=R(H),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=h.isFunction(o)?o.call(e):o}return e};var W=0;h.uniqueId=function(e){var t=++W+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+K[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,h)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},h.chain=function(e){var t=h(e);return t._chain=!0,t};var J=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}}),h.each(["concat","join","slice"],function(e){var t=a[e];h.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(50),n(151)(e))},151:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},152:function(e,t){jQuery(function(e){var t=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(t){var i="",o=t.states_label,a=r.find('input[name="card_state"], select[name="card_state"]');if(void 0!==t.states_found&&!0===t.states_found?i=e(t.data):(i='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'.concat(o,'" value="').concat(t.default_state,'" autocomplete="address-level4"/>'),i=e(i)),console.log(i),!1===r.hasClass("float-labels-enabled")){void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden"));var s=r.find('input[name="card_city"]');void 0!==t.city_require&&!0===t.city_require?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.removeAttr("required"))}else a.closest("p").find("label").text(o);a.closest("p").find("label .state-label-text").text(o),a.replaceWith(i),void 0!==t.show_field&&!0===t.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[t,r.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(t)}),n.on("submit","#give_payment_mode",function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,n,r,i){var o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),f=0===s?c:Give.fn.unFormatCurrency(s,l),d=Give.form.fn.formatAmount(f,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===f||0===f){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),s=f=Give.fn.unFormatCurrency(p.val(),l),d=Give.form.fn.formatAmount(f,o,{}))}if(Give.fn.setCache("amount_"+f,i,o),e(this).val(d),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var m=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===m.length&&f<c?Give.notice.fn.renderNotice("bad_minimum",o):f>=c&&m.slideUp(300,function(){e(this).remove()}),0===v.length&&f>u?Give.notice.fn.renderNotice("bad_maximum",o):f<=u&&v.slideUp(300,function(){e(this).remove()})}a!==f&&o.find(".give-final-total-amount").attr("data-total",f).text(Give.fn.formatCurrency(f,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(f,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,f,i])}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).on("load",function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}})})},17:function(e,t,n){"use strict";var r={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r=commonL10n.dismiss||"";return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}},i={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",function(){Give.form.fn.__sendBackToForm()})},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?t:{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})}),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,function(e,t){if(t.amount===r)return i=t.price_id,!1}),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)})},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise(function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)}).done(function(){Give.form.fn.disable(e,!1)})}))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))})}}}},o={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},a={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)a[e[t]].init&&a[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:a.form.fn.getInfo("decimal_separator",n),thousand:a.form.fn.getInfo("thousands_separator",n),precision:a.form.fn.getInfo("number_decimals",n),currency:a.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=parseFloat(e).toFixed(r.precision),s=t.precision?".0":"",l="",c="",u="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(s=o.substring(o.indexOf("."),o.length)),l=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(l=r.thousand+l),i=(u=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+l+s).lastIndexOf("."),e=u=u.slice(0,i)+(u.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){var n,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":a.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:a.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))}},cache:{}};a.notice=r,a.form=i,a.donor=o;t.a=a},355:function(e,t,n){"use strict";n.r(t);n(146),n(76),n(147),n(57),n(78);var r=n(17),i=(n(152),n(14)),o=n.n(i);function a(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},function(t){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("give_gateway_loaded",[t,jQuery(e).attr("id")])})}
|
22 |
/*!
|
23 |
* Give AJAX JS
|
24 |
*
|
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
-
* Version: 2.5.
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
@@ -439,7 +439,7 @@ if ( ! class_exists( 'Give' ) ) :
|
|
439 |
|
440 |
// Plugin version.
|
441 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
442 |
-
define( 'GIVE_VERSION', '2.5.
|
443 |
}
|
444 |
|
445 |
// Plugin Root File.
|
@@ -530,18 +530,18 @@ if ( ! class_exists( 'Give' ) ) :
|
|
530 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-roles.php';
|
531 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-donate-form.php';
|
532 |
|
533 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db.php';
|
534 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-meta.php';
|
535 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-comments.php';
|
536 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-comments-meta.php';
|
537 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-donors.php';
|
538 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-donor-meta.php';
|
539 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-form-meta.php';
|
540 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-sequential-ordering.php';
|
541 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-logs.php';
|
542 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-logs-meta.php';
|
543 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-sessions.php';
|
544 |
-
require_once GIVE_PLUGIN_DIR . 'includes/class-give-db-payment-meta.php';
|
545 |
|
546 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-donor.php';
|
547 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-stats.php';
|
@@ -552,8 +552,6 @@ if ( ! class_exists( 'Give' ) ) :
|
|
552 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-donor-wall-widget.php';
|
553 |
require_once GIVE_PLUGIN_DIR . 'includes/forms/widget.php';
|
554 |
require_once GIVE_PLUGIN_DIR . 'includes/forms/class-give-forms-query.php';
|
555 |
-
|
556 |
-
|
557 |
require_once GIVE_PLUGIN_DIR . 'includes/forms/template.php';
|
558 |
require_once GIVE_PLUGIN_DIR . 'includes/shortcodes.php';
|
559 |
require_once GIVE_PLUGIN_DIR . 'includes/formatting.php';
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
+
* Version: 2.5.4
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
439 |
|
440 |
// Plugin version.
|
441 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
442 |
+
define( 'GIVE_VERSION', '2.5.4' );
|
443 |
}
|
444 |
|
445 |
// Plugin Root File.
|
530 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-roles.php';
|
531 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-donate-form.php';
|
532 |
|
533 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db.php';
|
534 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-meta.php';
|
535 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-comments.php';
|
536 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-comments-meta.php';
|
537 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-donors.php';
|
538 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-donor-meta.php';
|
539 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-form-meta.php';
|
540 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-sequential-ordering.php';
|
541 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-logs.php';
|
542 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-logs-meta.php';
|
543 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-sessions.php';
|
544 |
+
require_once GIVE_PLUGIN_DIR . 'includes/database/class-give-db-payment-meta.php';
|
545 |
|
546 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-donor.php';
|
547 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-stats.php';
|
552 |
require_once GIVE_PLUGIN_DIR . 'includes/class-give-donor-wall-widget.php';
|
553 |
require_once GIVE_PLUGIN_DIR . 'includes/forms/widget.php';
|
554 |
require_once GIVE_PLUGIN_DIR . 'includes/forms/class-give-forms-query.php';
|
|
|
|
|
555 |
require_once GIVE_PLUGIN_DIR . 'includes/forms/template.php';
|
556 |
require_once GIVE_PLUGIN_DIR . 'includes/shortcodes.php';
|
557 |
require_once GIVE_PLUGIN_DIR . 'includes/formatting.php';
|
includes/admin/add-ons/actions.php
CHANGED
@@ -25,21 +25,18 @@ function give_upload_addon_handler() {
|
|
25 |
/* @var WP_Filesystem_Direct $wp_filesystem */
|
26 |
global $wp_filesystem;
|
27 |
|
28 |
-
$addon_authors = array( 'WordImpress', 'GiveWP' );
|
29 |
-
$filename = basename( $_FILES['file']['name'], '.zip' );
|
30 |
-
|
31 |
check_admin_referer( 'give-upload-addon' );
|
32 |
|
|
|
|
|
|
|
|
|
|
|
33 |
// Bailout if user does not has permission.
|
34 |
if ( ! current_user_can( 'upload_plugins' ) ) {
|
35 |
wp_send_json_error( array( 'errorMsg' => __( 'Sorry, you are not allowed to upload add-ons on this site.', 'give' ) ) );
|
36 |
}
|
37 |
|
38 |
-
// Bailout if not upload file or not uploading Give addon
|
39 |
-
if ( empty( $_FILES ) || false === stripos( $filename, 'Give' ) ) {
|
40 |
-
wp_send_json_error( array( 'errorMsg' => __( 'Please upload a valid add-on file.', 'give' ) ) );
|
41 |
-
}
|
42 |
-
|
43 |
$access_type = get_filesystem_method();
|
44 |
|
45 |
if ( 'direct' !== $access_type ) {
|
@@ -64,11 +61,6 @@ function give_upload_addon_handler() {
|
|
64 |
|
65 |
if ( ! empty( $give_addons_list ) ) {
|
66 |
foreach ( $give_addons_list as $addon => $give_addon ) {
|
67 |
-
// Only show Give Core Activated Add-Ons.
|
68 |
-
if ( ! in_array( $give_addon['AuthorName'], $addon_authors ) ) {
|
69 |
-
continue;
|
70 |
-
}
|
71 |
-
|
72 |
if ( false !== stripos( $addon, $filename ) ) {
|
73 |
$is_addon_installed = $give_addon;
|
74 |
}
|
@@ -117,16 +109,11 @@ function give_upload_addon_handler() {
|
|
117 |
|
118 |
// Delete cache and get current installed addon plugin path.
|
119 |
wp_cache_delete( 'plugins', 'plugins' );
|
120 |
-
$give_addons_list
|
121 |
$installed_addon = array();
|
122 |
|
123 |
if ( ! empty( $give_addons_list ) ) {
|
124 |
foreach ( $give_addons_list as $addon => $give_addon ) {
|
125 |
-
// Only show Give Core Activated Add-Ons.
|
126 |
-
if ( ! in_array( $give_addon['AuthorName'], $addon_authors ) ) {
|
127 |
-
continue;
|
128 |
-
}
|
129 |
-
|
130 |
if ( false !== stripos( $addon, $filename ) ) {
|
131 |
$installed_addon = $give_addon;
|
132 |
$installed_addon['path'] = $addon;
|
25 |
/* @var WP_Filesystem_Direct $wp_filesystem */
|
26 |
global $wp_filesystem;
|
27 |
|
|
|
|
|
|
|
28 |
check_admin_referer( 'give-upload-addon' );
|
29 |
|
30 |
+
// Remove version from file name.
|
31 |
+
$filename = preg_replace( '/(.\d)+.zip/', '', $_FILES['file']['name'] );
|
32 |
+
$filename = basename( $filename, '.zip' );
|
33 |
+
|
34 |
+
|
35 |
// Bailout if user does not has permission.
|
36 |
if ( ! current_user_can( 'upload_plugins' ) ) {
|
37 |
wp_send_json_error( array( 'errorMsg' => __( 'Sorry, you are not allowed to upload add-ons on this site.', 'give' ) ) );
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
$access_type = get_filesystem_method();
|
41 |
|
42 |
if ( 'direct' !== $access_type ) {
|
61 |
|
62 |
if ( ! empty( $give_addons_list ) ) {
|
63 |
foreach ( $give_addons_list as $addon => $give_addon ) {
|
|
|
|
|
|
|
|
|
|
|
64 |
if ( false !== stripos( $addon, $filename ) ) {
|
65 |
$is_addon_installed = $give_addon;
|
66 |
}
|
109 |
|
110 |
// Delete cache and get current installed addon plugin path.
|
111 |
wp_cache_delete( 'plugins', 'plugins' );
|
112 |
+
$give_addons_list = give_get_plugins();
|
113 |
$installed_addon = array();
|
114 |
|
115 |
if ( ! empty( $give_addons_list ) ) {
|
116 |
foreach ( $give_addons_list as $addon => $give_addon ) {
|
|
|
|
|
|
|
|
|
|
|
117 |
if ( false !== stripos( $addon, $filename ) ) {
|
118 |
$installed_addon = $give_addon;
|
119 |
$installed_addon['path'] = $addon;
|
includes/admin/donors/donor-functions.php
CHANGED
@@ -119,11 +119,11 @@ function give_connect_user_donor_profile( $donor, $donor_data, $address ) {
|
|
119 |
$donor->update_meta( '_give_donor_first_name', $donor_data['first_name'] );
|
120 |
}
|
121 |
|
122 |
-
if (
|
123 |
$donor->update_meta( '_give_donor_last_name', $donor_data['last_name'] );
|
124 |
}
|
125 |
|
126 |
-
if (
|
127 |
$donor->update_meta( '_give_donor_title_prefix', $donor_data['title'] );
|
128 |
}
|
129 |
|
119 |
$donor->update_meta( '_give_donor_first_name', $donor_data['first_name'] );
|
120 |
}
|
121 |
|
122 |
+
if ( isset( $donor_data['last_name'] ) ) {
|
123 |
$donor->update_meta( '_give_donor_last_name', $donor_data['last_name'] );
|
124 |
}
|
125 |
|
126 |
+
if ( isset( $donor_data['title'] ) ) {
|
127 |
$donor->update_meta( '_give_donor_title_prefix', $donor_data['title'] );
|
128 |
}
|
129 |
|
includes/admin/donors/donors.php
CHANGED
@@ -356,6 +356,7 @@ function give_donor_view( $donor ) {
|
|
356 |
<span class="donor-name info-item edit-item">
|
357 |
<select name="donor_info[title]">
|
358 |
<option disabled value="0"><?php esc_html_e( 'Title', 'give' ); ?></option>
|
|
|
359 |
<?php
|
360 |
if ( is_array( $title_prefixes ) && count( $title_prefixes ) > 0 ) {
|
361 |
foreach ( $title_prefixes as $title ) {
|
@@ -1036,7 +1037,7 @@ function give_donor_notes_view( $donor ) {
|
|
1036 |
}
|
1037 |
|
1038 |
/**
|
1039 |
-
*
|
1040 |
*
|
1041 |
* @since 1.0
|
1042 |
*
|
356 |
<span class="donor-name info-item edit-item">
|
357 |
<select name="donor_info[title]">
|
358 |
<option disabled value="0"><?php esc_html_e( 'Title', 'give' ); ?></option>
|
359 |
+
<option value=""><?php esc_html_e( '', 'give' ); ?></option>
|
360 |
<?php
|
361 |
if ( is_array( $title_prefixes ) && count( $title_prefixes ) > 0 ) {
|
362 |
foreach ( $title_prefixes as $title ) {
|
1037 |
}
|
1038 |
|
1039 |
/**
|
1040 |
+
* The donor delete view.
|
1041 |
*
|
1042 |
* @since 1.0
|
1043 |
*
|
includes/admin/emails/class-donor-note-email.php
CHANGED
@@ -39,8 +39,8 @@ if ( ! class_exists( 'Give_Donor_Note_Email' ) ) :
|
|
39 |
|
40 |
$this->load( array(
|
41 |
'id' => 'donor-note',
|
42 |
-
'label' => __( '
|
43 |
-
'description' => __( 'Sent
|
44 |
'notification_status' => 'enabled',
|
45 |
'recipient_group_name' => __( 'Donor', 'give' ),
|
46 |
'default_email_subject' => sprintf(
|
39 |
|
40 |
$this->load( array(
|
41 |
'id' => 'donor-note',
|
42 |
+
'label' => __( 'Donation Note', 'give' ),
|
43 |
+
'description' => __( 'Sent when a donation note is added to a donation payment.', 'give' ),
|
44 |
'notification_status' => 'enabled',
|
45 |
'recipient_group_name' => __( 'Donor', 'give' ),
|
46 |
'default_email_subject' => sprintf(
|
includes/admin/emails/class-email-setting-field.php
CHANGED
@@ -250,9 +250,8 @@ class Give_Email_Setting_Field {
|
|
250 |
|
251 |
if ( $email_tag_list = $email->get_allowed_email_tags( true ) ) {
|
252 |
$desc = sprintf(
|
253 |
-
'%1$s <br> %2$s
|
254 |
-
__( '
|
255 |
-
__( 'Available template tags', 'give' ),
|
256 |
$email_tag_list,
|
257 |
sprintf(
|
258 |
'<br><a href="%1$s" target="_blank">%2$s</a> %3$s',
|
250 |
|
251 |
if ( $email_tag_list = $email->get_allowed_email_tags( true ) ) {
|
252 |
$desc = sprintf(
|
253 |
+
'%1$s <br> %2$s %3$s',
|
254 |
+
__( 'Available template tags for this email. HTML is accepted.', 'give' ),
|
|
|
255 |
$email_tag_list,
|
256 |
sprintf(
|
257 |
'<br><a href="%1$s" target="_blank">%2$s</a> %3$s',
|
includes/country-functions.php
CHANGED
@@ -55,7 +55,7 @@ function give_get_states( $country = null ) {
|
|
55 |
|
56 |
// Check if Country Code is empty or not.
|
57 |
if ( empty( $country ) ) {
|
58 |
-
// Get
|
59 |
$country = give_get_country();
|
60 |
}
|
61 |
|
55 |
|
56 |
// Check if Country Code is empty or not.
|
57 |
if ( empty( $country ) ) {
|
58 |
+
// Get default country code that is being set by the admin.
|
59 |
$country = give_get_country();
|
60 |
}
|
61 |
|
includes/{class-give-db-comments-meta.php → database/class-give-db-comments-meta.php}
RENAMED
File without changes
|
includes/{class-give-db-comments.php → database/class-give-db-comments.php}
RENAMED
File without changes
|
includes/{class-give-db-donor-meta.php → database/class-give-db-donor-meta.php}
RENAMED
File without changes
|
includes/{class-give-db-donors.php → database/class-give-db-donors.php}
RENAMED
File without changes
|
includes/{class-give-db-form-meta.php → database/class-give-db-form-meta.php}
RENAMED
File without changes
|
includes/{class-give-db-logs-meta.php → database/class-give-db-logs-meta.php}
RENAMED
File without changes
|
includes/{class-give-db-logs.php → database/class-give-db-logs.php}
RENAMED
File without changes
|
includes/{class-give-db-meta.php → database/class-give-db-meta.php}
RENAMED
File without changes
|
includes/{class-give-db-payment-meta.php → database/class-give-db-payment-meta.php}
RENAMED
File without changes
|
includes/{class-give-db-sequential-ordering.php → database/class-give-db-sequential-ordering.php}
RENAMED
File without changes
|
includes/{class-give-db-sessions.php → database/class-give-db-sessions.php}
RENAMED
File without changes
|
includes/{class-give-db.php → database/class-give-db.php}
RENAMED
File without changes
|
includes/formatting.php
CHANGED
@@ -501,13 +501,6 @@ function give_format_amount( $amount, $args = array() ) {
|
|
501 |
* @return string formatted amount number with large number names.
|
502 |
*/
|
503 |
function give_human_format_large_amount( $amount, $args = array() ) {
|
504 |
-
// Sanitize amount.
|
505 |
-
$sanitize_amount = give_maybe_sanitize_amount( $amount );
|
506 |
-
|
507 |
-
// Bailout.
|
508 |
-
if ( ! floatval( $sanitize_amount ) ) {
|
509 |
-
return '0';
|
510 |
-
};
|
511 |
|
512 |
// Set default currency;
|
513 |
if ( empty( $args['currency'] ) ) {
|
@@ -515,7 +508,20 @@ function give_human_format_large_amount( $amount, $args = array() ) {
|
|
515 |
}
|
516 |
|
517 |
// Get thousand separator.
|
518 |
-
$thousands_sep = give_get_price_thousand_separator();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
519 |
|
520 |
// Explode amount to calculate name of large numbers.
|
521 |
$amount_array = explode( $thousands_sep, $amount );
|
501 |
* @return string formatted amount number with large number names.
|
502 |
*/
|
503 |
function give_human_format_large_amount( $amount, $args = array() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
|
505 |
// Set default currency;
|
506 |
if ( empty( $args['currency'] ) ) {
|
508 |
}
|
509 |
|
510 |
// Get thousand separator.
|
511 |
+
$thousands_sep = give_get_price_thousand_separator( $args['currency'] );
|
512 |
+
|
513 |
+
// Sanitize amount for calculation purpose.
|
514 |
+
$sanitize_amount = give_maybe_sanitize_amount(
|
515 |
+
$amount,
|
516 |
+
array(
|
517 |
+
'currency' => $args['currency'],
|
518 |
+
)
|
519 |
+
);
|
520 |
+
|
521 |
+
// Bailout.
|
522 |
+
if ( ! floatval( $sanitize_amount ) ) {
|
523 |
+
return '0';
|
524 |
+
};
|
525 |
|
526 |
// Explode amount to calculate name of large numbers.
|
527 |
$amount_array = explode( $thousands_sep, $amount );
|
includes/forms/template.php
CHANGED
@@ -19,9 +19,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
19 |
*
|
20 |
* @param array $args An array of form arguments.
|
21 |
*
|
|
|
22 |
* @since 1.0
|
23 |
*
|
24 |
-
* @return string Donation form.
|
25 |
*/
|
26 |
function give_get_donation_form( $args = array() ) {
|
27 |
|
@@ -88,10 +88,11 @@ function give_get_donation_form( $args = array() ) {
|
|
88 |
/**
|
89 |
* Fires while outputting donation form, before the form wrapper div.
|
90 |
*
|
91 |
-
* @since 1.0
|
92 |
-
*
|
93 |
* @param int Give_Donate_Form::ID The form ID.
|
94 |
* @param array $args An array of form arguments.
|
|
|
|
|
|
|
95 |
*/
|
96 |
do_action( 'give_pre_form_output', $form->ID, $args, $form );
|
97 |
|
@@ -123,11 +124,12 @@ function give_get_donation_form( $args = array() ) {
|
|
123 |
/**
|
124 |
* Fires while outputting donation form, before the form.
|
125 |
*
|
126 |
-
* @since 1.0
|
127 |
-
*
|
128 |
* @param int Give_Donate_Form::ID The form ID.
|
129 |
* @param array $args An array of form arguments.
|
130 |
* @param Give_Donate_Form $form Form object.
|
|
|
|
|
|
|
131 |
*/
|
132 |
do_action( 'give_pre_form', $form->ID, $args, $form );
|
133 |
|
@@ -142,10 +144,11 @@ function give_get_donation_form( $args = array() ) {
|
|
142 |
/**
|
143 |
* Filter the form html tags.
|
144 |
*
|
145 |
-
* @since 1.8.17
|
146 |
-
*
|
147 |
* @param array $form_html_tags Array of form html tags.
|
148 |
* @param Give_Donate_Form $form Form object.
|
|
|
|
|
|
|
149 |
*/
|
150 |
$form_html_tags = apply_filters( 'give_form_html_tags', (array) $form_html_tags, $form );
|
151 |
?>
|
@@ -154,40 +157,43 @@ function give_get_donation_form( $args = array() ) {
|
|
154 |
<span class="give-hidden" style="display: none !important;">
|
155 |
<label for="give-form-honeypot-<?php echo $form->ID; ?>"></label>
|
156 |
<input id="give-form-honeypot-<?php echo $form->ID; ?>" type="text" name="give-honeypot"
|
157 |
-
|
158 |
</span>
|
159 |
|
160 |
<?php
|
161 |
/**
|
162 |
* Fires while outputting donation form, before all other fields.
|
163 |
*
|
164 |
-
* @since 1.0
|
165 |
-
*
|
166 |
* @param int Give_Donate_Form::ID The form ID.
|
167 |
* @param array $args An array of form arguments.
|
168 |
* @param Give_Donate_Form $form Form object.
|
|
|
|
|
|
|
169 |
*/
|
170 |
do_action( 'give_donation_form_top', $form->ID, $args, $form );
|
171 |
|
172 |
/**
|
173 |
* Fires while outputting donation form, for payment gateway fields.
|
174 |
*
|
175 |
-
* @since 1.7
|
176 |
-
*
|
177 |
* @param int Give_Donate_Form::ID The form ID.
|
178 |
* @param array $args An array of form arguments.
|
179 |
* @param Give_Donate_Form $form Form object.
|
|
|
|
|
|
|
180 |
*/
|
181 |
do_action( 'give_payment_mode_select', $form->ID, $args, $form );
|
182 |
|
183 |
/**
|
184 |
* Fires while outputting donation form, after all other fields.
|
185 |
*
|
186 |
-
* @since 1.0
|
187 |
-
*
|
188 |
* @param int Give_Donate_Form::ID The form ID.
|
189 |
* @param array $args An array of form arguments.
|
190 |
* @param Give_Donate_Form $form Form object.
|
|
|
|
|
|
|
191 |
*/
|
192 |
do_action( 'give_donation_form_bottom', $form->ID, $args, $form );
|
193 |
|
@@ -198,11 +204,12 @@ function give_get_donation_form( $args = array() ) {
|
|
198 |
/**
|
199 |
* Fires while outputting donation form, after the form.
|
200 |
*
|
201 |
-
* @since 1.0
|
202 |
-
*
|
203 |
* @param int Give_Donate_Form::ID The form ID.
|
204 |
* @param array $args An array of form arguments.
|
205 |
* @param Give_Donate_Form $form Form object.
|
|
|
|
|
|
|
206 |
*/
|
207 |
do_action( 'give_post_form', $form->ID, $args, $form );
|
208 |
|
@@ -215,10 +222,11 @@ function give_get_donation_form( $args = array() ) {
|
|
215 |
/**
|
216 |
* Fires while outputting donation form, after the form wrapper div.
|
217 |
*
|
218 |
-
* @since 1.0
|
219 |
-
*
|
220 |
* @param int Give_Donate_Form::ID The form ID.
|
221 |
* @param array $args An array of form arguments.
|
|
|
|
|
|
|
222 |
*/
|
223 |
do_action( 'give_post_form_output', $form->ID, $args );
|
224 |
|
@@ -236,11 +244,11 @@ function give_get_donation_form( $args = array() ) {
|
|
236 |
* gateways, a user registration form (if enable) and a credit card info form
|
237 |
* if credit cards are enabled.
|
238 |
*
|
239 |
-
* @
|
240 |
-
*
|
241 |
-
* @param int $form_id The form ID.
|
242 |
*
|
243 |
* @return string
|
|
|
|
|
244 |
*/
|
245 |
function give_show_purchase_form( $form_id, $args ) {
|
246 |
|
@@ -285,18 +293,20 @@ function give_show_purchase_form( $form_id, $args ) {
|
|
285 |
/**
|
286 |
* Fires while displaying donation form, credit card form fields for a given gateway.
|
287 |
*
|
|
|
|
|
288 |
* @since 1.0
|
289 |
*
|
290 |
-
* @param int $form_id The form ID.
|
291 |
*/
|
292 |
do_action( "give_{$payment_mode}_cc_form", $form_id, $args );
|
293 |
} else {
|
294 |
/**
|
295 |
* Fires while displaying donation form, credit card form fields.
|
296 |
*
|
|
|
|
|
297 |
* @since 1.0
|
298 |
*
|
299 |
-
* @param int $form_id The form ID.
|
300 |
*/
|
301 |
do_action( 'give_cc_form', $form_id, $args );
|
302 |
}
|
@@ -331,11 +341,11 @@ add_action( 'give_donation_form', 'give_show_purchase_form', 10, 2 );
|
|
331 |
/**
|
332 |
* Give Show Login/Register Form Fields.
|
333 |
*
|
334 |
-
* @
|
335 |
-
*
|
336 |
-
* @param int $form_id The form ID.
|
337 |
*
|
338 |
* @return void
|
|
|
|
|
339 |
*/
|
340 |
function give_show_register_login_fields( $form_id ) {
|
341 |
|
@@ -387,12 +397,12 @@ add_action( 'give_donation_form_register_login_fields', 'give_show_register_logi
|
|
387 |
* Outputs the donation amount field that appears at the top of the donation forms. If the user has custom amount
|
388 |
* enabled the field will output as a customizable input.
|
389 |
*
|
390 |
-
* @
|
391 |
-
*
|
392 |
-
* @param int $form_id The form ID.
|
393 |
-
* @param array $args An array of form arguments.
|
394 |
*
|
395 |
* @return void
|
|
|
|
|
396 |
*/
|
397 |
function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
398 |
|
@@ -413,10 +423,11 @@ function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
|
413 |
/**
|
414 |
* Fires while displaying donation form, before donation level fields.
|
415 |
*
|
416 |
-
* @since 1.0
|
417 |
-
*
|
418 |
* @param int $form_id The form ID.
|
419 |
* @param array $args An array of form arguments.
|
|
|
|
|
|
|
420 |
*/
|
421 |
do_action( 'give_before_donation_levels', $form_id, $args );
|
422 |
|
@@ -425,7 +436,7 @@ function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
|
425 |
?>
|
426 |
<label class="give-hidden" for="give-amount"><?php esc_html_e( 'Donation Amount:', 'give' ); ?></label>
|
427 |
<input id="give-amount" class="give-amount-hidden" type="hidden" name="give-amount"
|
428 |
-
|
429 |
<div class="set-price give-donation-amount form-row-wide">
|
430 |
<?php
|
431 |
if ( 'before' === $currency_position ) {
|
@@ -452,7 +463,7 @@ function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
|
452 |
?>
|
453 |
<label class="give-hidden" for="give-amount"><?php esc_html_e( 'Donation Amount:', 'give' ); ?></label>
|
454 |
<input class="give-text-input give-amount-top" id="give-amount" name="give-amount" type="tel"
|
455 |
-
|
456 |
<?php
|
457 |
if ( 'after' === $currency_position ) {
|
458 |
echo $currency_output;
|
@@ -466,10 +477,11 @@ function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
|
466 |
/**
|
467 |
* Fires while displaying donation form, after donation amounf field(s).
|
468 |
*
|
469 |
-
* @since 1.0
|
470 |
-
*
|
471 |
* @param int $form_id The form ID.
|
472 |
* @param array $args An array of form arguments.
|
|
|
|
|
|
|
473 |
*/
|
474 |
do_action( 'give_after_donation_amount', $form_id, $args );
|
475 |
|
@@ -488,10 +500,11 @@ function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
|
488 |
/**
|
489 |
* Fires while displaying donation form, after donation level fields.
|
490 |
*
|
491 |
-
* @since 1.0
|
492 |
-
*
|
493 |
* @param int $form_id The form ID.
|
494 |
* @param array $args An array of form arguments.
|
|
|
|
|
|
|
495 |
*/
|
496 |
do_action( 'give_after_donation_levels', $form_id, $args );
|
497 |
}
|
@@ -501,23 +514,24 @@ add_action( 'give_donation_form_top', 'give_output_donation_amount_top', 10, 2 )
|
|
501 |
/**
|
502 |
* Outputs the Donation Levels in various formats such as dropdown, radios, and buttons.
|
503 |
*
|
504 |
-
* @
|
505 |
-
*
|
506 |
-
* @param int $form_id The form ID.
|
507 |
*
|
508 |
* @return string Donation levels.
|
|
|
|
|
509 |
*/
|
510 |
function give_output_levels( $form_id ) {
|
511 |
|
512 |
/**
|
513 |
* Filter the variable pricing
|
514 |
*
|
515 |
-
* @since 1.0
|
516 |
-
* @deprecated 2.2 Use give_get_donation_levels filter instead of give_form_variable_prices.
|
517 |
-
* Check Give_Donate_Form::get_prices().
|
518 |
-
*
|
519 |
* @param array $prices Array of variable prices.
|
520 |
* @param int $form Form ID.
|
|
|
|
|
|
|
|
|
|
|
521 |
*/
|
522 |
$prices = apply_filters( 'give_form_variable_prices', give_get_variable_prices( $form_id ), $form_id );
|
523 |
|
@@ -663,12 +677,12 @@ function give_output_levels( $form_id ) {
|
|
663 |
*
|
664 |
* Outputs a button to reveal form fields.
|
665 |
*
|
666 |
-
* @
|
667 |
-
*
|
668 |
-
* @param int $form_id The form ID.
|
669 |
-
* @param array $args An array of form arguments.
|
670 |
*
|
671 |
* @return string Checkout button.
|
|
|
|
|
672 |
*/
|
673 |
function give_display_checkout_button( $form_id, $args ) {
|
674 |
|
@@ -695,13 +709,13 @@ add_action( 'give_after_donation_levels', 'give_display_checkout_button', 10, 2
|
|
695 |
/**
|
696 |
* Shows the User Info fields in the Personal Info box, more fields can be added via the hooks provided.
|
697 |
*
|
698 |
-
* @
|
699 |
-
*
|
700 |
-
* @param int $form_id The form ID.
|
701 |
*
|
|
|
702 |
* @see For Pattern Attribute: https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Form_validation
|
703 |
*
|
704 |
-
* @
|
|
|
705 |
*/
|
706 |
function give_user_info_fields( $form_id ) {
|
707 |
|
@@ -869,7 +883,7 @@ function give_user_info_fields( $form_id ) {
|
|
869 |
echo apply_filters( 'give_anonymous_donation_checkbox_label', __( 'Make this an anonymous donation.', 'give' ), $form_id );
|
870 |
|
871 |
if ( give_field_is_required( 'give_comment', $form_id ) ) {
|
872 |
-
|
873 |
<span class="give-required-indicator">*</span>
|
874 |
<?php } ?>
|
875 |
<?php
|
@@ -935,11 +949,11 @@ add_action( 'give_register_fields_before', 'give_user_info_fields' );
|
|
935 |
/**
|
936 |
* Renders the credit card info form.
|
937 |
*
|
938 |
-
* @
|
939 |
-
*
|
940 |
-
* @param int $form_id The form ID.
|
941 |
*
|
942 |
* @return void
|
|
|
|
|
943 |
*/
|
944 |
function give_get_cc_form( $form_id ) {
|
945 |
|
@@ -948,9 +962,10 @@ function give_get_cc_form( $form_id ) {
|
|
948 |
/**
|
949 |
* Fires while rendering credit card info form, before the fields.
|
950 |
*
|
|
|
|
|
951 |
* @since 1.0
|
952 |
*
|
953 |
-
* @param int $form_id The form ID.
|
954 |
*/
|
955 |
do_action( 'give_before_cc_fields', $form_id );
|
956 |
?>
|
@@ -971,8 +986,8 @@ function give_get_cc_form( $form_id ) {
|
|
971 |
</label>
|
972 |
|
973 |
<input type="tel" autocomplete="off" name="card_number" id="card_number-<?php echo $form_id; ?>"
|
974 |
-
|
975 |
-
|
976 |
</p>
|
977 |
|
978 |
<p id="give-card-cvc-wrap-<?php echo $form_id; ?>" class="form-row form-row-one-third form-row-responsive">
|
@@ -983,8 +998,8 @@ function give_get_cc_form( $form_id ) {
|
|
983 |
</label>
|
984 |
|
985 |
<input type="tel" size="4" autocomplete="off" name="card_cvc" id="card_cvc-<?php echo $form_id; ?>"
|
986 |
-
|
987 |
-
|
988 |
</p>
|
989 |
|
990 |
<p id="give-card-name-wrap-<?php echo $form_id; ?>" class="form-row form-row-two-thirds form-row-responsive">
|
@@ -995,16 +1010,17 @@ function give_get_cc_form( $form_id ) {
|
|
995 |
</label>
|
996 |
|
997 |
<input type="text" autocomplete="off" name="card_name" id="card_name-<?php echo $form_id; ?>"
|
998 |
-
|
999 |
-
|
1000 |
</p>
|
1001 |
<?php
|
1002 |
/**
|
1003 |
* Fires while rendering credit card info form, before expiration fields.
|
1004 |
*
|
|
|
|
|
1005 |
* @since 1.0
|
1006 |
*
|
1007 |
-
* @param int $form_id The form ID.
|
1008 |
*/
|
1009 |
do_action( 'give_before_cc_expiration' );
|
1010 |
?>
|
@@ -1016,21 +1032,22 @@ function give_get_cc_form( $form_id ) {
|
|
1016 |
</label>
|
1017 |
|
1018 |
<input type="hidden" id="card_exp_month-<?php echo $form_id; ?>" name="card_exp_month"
|
1019 |
-
|
1020 |
<input type="hidden" id="card_exp_year-<?php echo $form_id; ?>" name="card_exp_year"
|
1021 |
-
|
1022 |
|
1023 |
<input type="tel" autocomplete="off" name="card_expiry" id="card_expiry-<?php echo $form_id; ?>"
|
1024 |
-
|
1025 |
-
|
1026 |
</p>
|
1027 |
<?php
|
1028 |
/**
|
1029 |
* Fires while rendering credit card info form, after expiration fields.
|
1030 |
*
|
|
|
|
|
1031 |
* @since 1.0
|
1032 |
*
|
1033 |
-
* @param int $form_id The form ID.
|
1034 |
*/
|
1035 |
do_action( 'give_after_cc_expiration', $form_id );
|
1036 |
?>
|
@@ -1039,9 +1056,10 @@ function give_get_cc_form( $form_id ) {
|
|
1039 |
/**
|
1040 |
* Fires while rendering credit card info form, before the fields.
|
1041 |
*
|
|
|
|
|
1042 |
* @since 1.0
|
1043 |
*
|
1044 |
-
* @param int $form_id The form ID.
|
1045 |
*/
|
1046 |
do_action( 'give_after_cc_fields', $form_id );
|
1047 |
|
@@ -1053,11 +1071,11 @@ add_action( 'give_cc_form', 'give_get_cc_form' );
|
|
1053 |
/**
|
1054 |
* Outputs the default credit card address fields.
|
1055 |
*
|
1056 |
-
* @
|
1057 |
-
*
|
1058 |
-
* @param int $form_id The form ID.
|
1059 |
*
|
1060 |
* @return void
|
|
|
|
|
1061 |
*/
|
1062 |
function give_default_cc_address_fields( $form_id ) {
|
1063 |
// Get user info.
|
@@ -1071,9 +1089,10 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1071 |
/**
|
1072 |
* Fires while rendering credit card billing form, before address fields.
|
1073 |
*
|
|
|
|
|
1074 |
* @since 1.0
|
1075 |
*
|
1076 |
-
* @param int $form_id The form ID.
|
1077 |
*/
|
1078 |
do_action( 'give_cc_billing_top' );
|
1079 |
|
@@ -1098,17 +1117,7 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1098 |
if ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) {
|
1099 |
$selected_country = $give_user_info['billing_country'];
|
1100 |
}
|
1101 |
-
|
1102 |
-
$states_label = give_get_states_label();
|
1103 |
-
// Check if $country code exists in the array key for states label.
|
1104 |
-
if ( array_key_exists( $selected_country, $states_label ) ) {
|
1105 |
-
$label = $states_label[ $selected_country ];
|
1106 |
-
}
|
1107 |
-
$states = give_get_states( $selected_country );
|
1108 |
-
// Get the country list that do not have any states init.
|
1109 |
-
$no_states_country = give_no_states_country_list();
|
1110 |
-
// Get the country list that does not require states.
|
1111 |
-
$states_not_required_country_list = give_states_not_required_country_list();
|
1112 |
|
1113 |
// Get the country list that does not require city.
|
1114 |
$city_required = ! array_key_exists( $selected_country, give_city_not_required_country_list() );
|
@@ -1121,7 +1130,7 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1121 |
<span class="give-required-indicator">*</span>
|
1122 |
<?php endif; ?>
|
1123 |
<span class="give-tooltip give-icon give-icon-question"
|
1124 |
-
|
1125 |
</label>
|
1126 |
|
1127 |
<select
|
@@ -1203,14 +1212,33 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1203 |
/>
|
1204 |
</p>
|
1205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1206 |
<p id="give-card-state-wrap"
|
1207 |
-
class="form-row form-row-first form-row-responsive <?php echo ( ! empty( $selected_country ) &&
|
1208 |
<label for="card_state" class="give-label">
|
1209 |
-
<span class="state-label-text"><?php echo $
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
</label>
|
1215 |
<?php
|
1216 |
|
@@ -1220,8 +1248,8 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1220 |
name="card_state"
|
1221 |
autocomplete="address-level1"
|
1222 |
id="card_state"
|
1223 |
-
class="card_state give-select<?php echo
|
1224 |
-
<?php echo
|
1225 |
<?php
|
1226 |
foreach ( $states as $state_code => $state ) {
|
1227 |
echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>';
|
@@ -1230,19 +1258,19 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1230 |
</select>
|
1231 |
<?php else : ?>
|
1232 |
<input type="text" size="6" name="card_state" id="card_state" class="card_state give-input"
|
1233 |
-
|
1234 |
-
<?php echo
|
1235 |
/>
|
1236 |
<?php endif; ?>
|
1237 |
</p>
|
1238 |
|
1239 |
-
<p id="give-card-zip-wrap" class="form-row form-row-last form-row-responsive">
|
1240 |
<label for="card_zip" class="give-label">
|
1241 |
<?php _e( 'Zip / Postal Code', 'give' ); ?>
|
1242 |
<?php if ( give_field_is_required( 'card_zip', $form_id ) ) : ?>
|
1243 |
<span class="give-required-indicator">*</span>
|
1244 |
<?php endif; ?>
|
1245 |
-
<?php echo Give()->tooltips->render_help( __( 'The
|
1246 |
</label>
|
1247 |
|
1248 |
<input
|
@@ -1261,9 +1289,10 @@ function give_default_cc_address_fields( $form_id ) {
|
|
1261 |
/**
|
1262 |
* Fires while rendering credit card billing form, after address fields.
|
1263 |
*
|
|
|
|
|
1264 |
* @since 1.0
|
1265 |
*
|
1266 |
-
* @param int $form_id The form ID.
|
1267 |
*/
|
1268 |
do_action( 'give_cc_billing_bottom' );
|
1269 |
?>
|
@@ -1279,11 +1308,11 @@ add_action( 'give_after_cc_fields', 'give_default_cc_address_fields' );
|
|
1279 |
* Renders the user registration fields. If the user is logged in, a login form is displayed other a registration form
|
1280 |
* is provided for the user to create an account.
|
1281 |
*
|
1282 |
-
* @
|
1283 |
-
*
|
1284 |
-
* @param int $form_id The form ID.
|
1285 |
*
|
1286 |
* @return string
|
|
|
|
|
1287 |
*/
|
1288 |
function give_get_register_fields( $form_id ) {
|
1289 |
|
@@ -1303,9 +1332,10 @@ function give_get_register_fields( $form_id ) {
|
|
1303 |
/**
|
1304 |
* Fires while rendering user registration form, before registration fields.
|
1305 |
*
|
|
|
|
|
1306 |
* @since 1.0
|
1307 |
*
|
1308 |
-
* @param int $form_id The form ID.
|
1309 |
*/
|
1310 |
do_action( 'give_register_fields_before', $form_id );
|
1311 |
?>
|
@@ -1315,16 +1345,17 @@ function give_get_register_fields( $form_id ) {
|
|
1315 |
/**
|
1316 |
* Fires while rendering user registration form, before account fields.
|
1317 |
*
|
|
|
|
|
1318 |
* @since 1.0
|
1319 |
*
|
1320 |
-
* @param int $form_id The form ID.
|
1321 |
*/
|
1322 |
do_action( 'give_register_account_fields_before', $form_id );
|
1323 |
|
1324 |
$class = ( 'registration' === $show_register_form ) ? 'form-row-wide' : 'form-row-first';
|
1325 |
?>
|
1326 |
<div id="give-create-account-wrap-<?php echo $form_id; ?>"
|
1327 |
-
|
1328 |
<label for="give-create-account-<?php echo $form_id; ?>">
|
1329 |
<?php
|
1330 |
// Add attributes to checkbox, if Guest Checkout is disabled.
|
@@ -1343,7 +1374,7 @@ function give_get_register_fields( $form_id ) {
|
|
1343 |
} else {
|
1344 |
?>
|
1345 |
<input type="checkbox" name="give_create_account" value="on" id="<?php echo $id; ?>"
|
1346 |
-
|
1347 |
<?php
|
1348 |
}
|
1349 |
|
@@ -1374,9 +1405,10 @@ function give_get_register_fields( $form_id ) {
|
|
1374 |
/**
|
1375 |
* Fires while rendering user registration form, after account fields.
|
1376 |
*
|
|
|
|
|
1377 |
* @since 1.0
|
1378 |
*
|
1379 |
-
* @param int $form_id The form ID.
|
1380 |
*/
|
1381 |
do_action( 'give_register_account_fields_after', $form_id );
|
1382 |
?>
|
@@ -1386,9 +1418,10 @@ function give_get_register_fields( $form_id ) {
|
|
1386 |
/**
|
1387 |
* Fires while rendering user registration form, after registration fields.
|
1388 |
*
|
|
|
|
|
1389 |
* @since 1.0
|
1390 |
*
|
1391 |
-
* @param int $form_id The form ID.
|
1392 |
*/
|
1393 |
do_action( 'give_register_fields_after', $form_id );
|
1394 |
?>
|
@@ -1416,11 +1449,11 @@ add_action( 'give_donation_form_register_fields', 'give_get_register_fields' );
|
|
1416 |
* on the give_donation_form_login_fields to display the login form if a user already
|
1417 |
* had an account.
|
1418 |
*
|
1419 |
-
* @
|
1420 |
-
*
|
1421 |
-
* @param int $form_id The form ID.
|
1422 |
*
|
1423 |
* @return string
|
|
|
|
|
1424 |
*/
|
1425 |
function give_get_login_fields( $form_id ) {
|
1426 |
|
@@ -1460,9 +1493,10 @@ function give_get_login_fields( $form_id ) {
|
|
1460 |
/**
|
1461 |
* Fires while rendering checkout login form, before the fields.
|
1462 |
*
|
|
|
|
|
1463 |
* @since 1.0
|
1464 |
*
|
1465 |
-
* @param int $form_id The form ID.
|
1466 |
*/
|
1467 |
do_action( 'give_donation_form_login_fields_before', $form_id );
|
1468 |
?>
|
@@ -1476,13 +1510,13 @@ function give_get_login_fields( $form_id ) {
|
|
1476 |
</label>
|
1477 |
|
1478 |
<input class="give-input<?php echo ( give_logged_in_only( $form_id ) ) ? ' required' : ''; ?>"
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
</div>
|
1483 |
|
1484 |
<div id="give-user-pass-wrap-<?php echo $form_id; ?>"
|
1485 |
-
|
1486 |
<label class="give-label" for="give-user-pass-<?php echo $form_id; ?>">
|
1487 |
<?php _e( 'Password', 'give' ); ?>
|
1488 |
<?php if ( give_logged_in_only( $form_id ) ) { ?>
|
@@ -1490,8 +1524,8 @@ function give_get_login_fields( $form_id ) {
|
|
1490 |
<?php } ?>
|
1491 |
</label>
|
1492 |
<input class="give-input<?php echo ( give_logged_in_only( $form_id ) ) ? ' required' : ''; ?>"
|
1493 |
-
|
1494 |
-
|
1495 |
<?php if ( give_logged_in_only( $form_id ) ) : ?>
|
1496 |
<input type="hidden" name="give-purchase-var" value="needs-to-login"/>
|
1497 |
<?php endif; ?>
|
@@ -1500,7 +1534,7 @@ function give_get_login_fields( $form_id ) {
|
|
1500 |
<div id="give-forgot-password-wrap-<?php echo $form_id; ?>" class="give_login_forgot_password">
|
1501 |
<span class="give-forgot-password ">
|
1502 |
<a href="<?php echo wp_lostpassword_url(); ?>"
|
1503 |
-
|
1504 |
</span>
|
1505 |
</div>
|
1506 |
</div>
|
@@ -1508,11 +1542,11 @@ function give_get_login_fields( $form_id ) {
|
|
1508 |
|
1509 |
<div id="give-user-login-submit-<?php echo $form_id; ?>" class="give-clearfix">
|
1510 |
<input type="submit" class="give-submit give-btn button" name="give_login_submit"
|
1511 |
-
|
1512 |
<?php if ( $show_register_form !== 'login' ) { ?>
|
1513 |
<input type="button" data-action="give_cancel_login"
|
1514 |
-
|
1515 |
-
|
1516 |
<?php } ?>
|
1517 |
<span class="give-loading-animation"></span>
|
1518 |
</div>
|
@@ -1520,9 +1554,10 @@ function give_get_login_fields( $form_id ) {
|
|
1520 |
/**
|
1521 |
* Fires while rendering checkout login form, after the fields.
|
1522 |
*
|
|
|
|
|
1523 |
* @since 1.0
|
1524 |
*
|
1525 |
-
* @param int $form_id The form ID.
|
1526 |
*/
|
1527 |
do_action( 'give_donation_form_login_fields_after', $form_id );
|
1528 |
?>
|
@@ -1541,11 +1576,11 @@ add_action( 'give_donation_form_login_fields', 'give_get_login_fields', 10, 1 );
|
|
1541 |
* a default payment gateway has been chosen from the Give Settings, it will be
|
1542 |
* automatically selected.
|
1543 |
*
|
1544 |
-
* @
|
1545 |
-
*
|
1546 |
-
* @param int $form_id The form ID.
|
1547 |
*
|
1548 |
* @return void
|
|
|
|
|
1549 |
*/
|
1550 |
function give_payment_mode_select( $form_id, $args ) {
|
1551 |
|
@@ -1555,9 +1590,10 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1555 |
/**
|
1556 |
* Fires while selecting payment gateways, before the fields.
|
1557 |
*
|
|
|
|
|
1558 |
* @since 1.7
|
1559 |
*
|
1560 |
-
* @param int $form_id The form ID.
|
1561 |
*/
|
1562 |
do_action( 'give_payment_mode_top', $form_id );
|
1563 |
?>
|
@@ -1573,9 +1609,10 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1573 |
/**
|
1574 |
* Fires while selecting payment gateways, before the wrap div.
|
1575 |
*
|
|
|
|
|
1576 |
* @since 1.7
|
1577 |
*
|
1578 |
-
* @param int $form_id The form ID.
|
1579 |
*/
|
1580 |
do_action( 'give_payment_mode_before_gateways_wrap' );
|
1581 |
?>
|
@@ -1600,15 +1637,15 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1600 |
/**
|
1601 |
* Loop through the active payment gateways.
|
1602 |
*/
|
1603 |
-
$selected_gateway
|
1604 |
-
$give_settings
|
1605 |
-
$gateways_label
|
1606 |
$give_settings['gateways_label'] :
|
1607 |
array();
|
1608 |
|
1609 |
foreach ( $gateways as $gateway_id => $gateway ) :
|
1610 |
// Determine the default gateway.
|
1611 |
-
$checked
|
1612 |
$checked_class = $checked ? ' class="give-gateway-option-selected"' : '';
|
1613 |
$is_payment_method_visible = isset( $gateway['is_visible'] ) ? $gateway['is_visible'] : true;
|
1614 |
|
@@ -1616,8 +1653,8 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1616 |
?>
|
1617 |
<li<?php echo $checked_class; ?>>
|
1618 |
<input type="radio" name="payment-mode" class="give-gateway"
|
1619 |
-
|
1620 |
-
|
1621 |
|
1622 |
<?php
|
1623 |
$label = $gateway['checkout_label'];
|
@@ -1626,10 +1663,10 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1626 |
}
|
1627 |
?>
|
1628 |
<label for="give-gateway-<?php echo esc_attr( $gateway_id . '-' . $id_prefix ); ?>"
|
1629 |
-
|
1630 |
-
|
1631 |
</li>
|
1632 |
-
|
1633 |
}
|
1634 |
endforeach;
|
1635 |
?>
|
@@ -1647,9 +1684,10 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1647 |
/**
|
1648 |
* Fires while selecting payment gateways, after the wrap div.
|
1649 |
*
|
|
|
|
|
1650 |
* @since 1.7
|
1651 |
*
|
1652 |
-
* @param int $form_id The form ID.
|
1653 |
*/
|
1654 |
do_action( 'give_payment_mode_after_gateways_wrap' );
|
1655 |
?>
|
@@ -1659,9 +1697,10 @@ function give_payment_mode_select( $form_id, $args ) {
|
|
1659 |
/**
|
1660 |
* Fires while selecting payment gateways, after the fields.
|
1661 |
*
|
|
|
|
|
1662 |
* @since 1.7
|
1663 |
*
|
1664 |
-
* @param int $form_id The form ID.
|
1665 |
*/
|
1666 |
do_action( 'give_payment_mode_bottom', $form_id );
|
1667 |
?>
|
@@ -1695,11 +1734,11 @@ add_action( 'give_payment_mode_select', 'give_payment_mode_select', 10, 2 );
|
|
1695 |
* agree the T&Cs set in the Give Settings. This is only displayed if T&Cs are
|
1696 |
* set in the Give Settings.
|
1697 |
*
|
1698 |
-
* @
|
1699 |
-
*
|
1700 |
-
* @param int $form_id The form ID.
|
1701 |
*
|
1702 |
* @return bool
|
|
|
|
|
1703 |
*/
|
1704 |
function give_terms_agreement( $form_id ) {
|
1705 |
$form_option = give_get_meta( $form_id, '_give_terms_option', true );
|
@@ -1767,7 +1806,7 @@ function give_terms_agreement( $form_id ) {
|
|
1767 |
</div>
|
1768 |
|
1769 |
<input name="give_agree_to_terms" class="required" type="checkbox"
|
1770 |
-
|
1771 |
<label for="give_agree_to_terms-<?php echo $form_id; ?>"><?php echo $label; ?></label>
|
1772 |
|
1773 |
</fieldset>
|
@@ -1781,11 +1820,11 @@ add_action( 'give_donation_form_after_cc_form', 'give_terms_agreement', 8888, 1
|
|
1781 |
*
|
1782 |
* Shows the final donation total at the bottom of the checkout page.
|
1783 |
*
|
1784 |
-
* @
|
1785 |
-
*
|
1786 |
-
* @param int $form_id The form ID.
|
1787 |
*
|
1788 |
* @return void
|
|
|
|
|
1789 |
*/
|
1790 |
function give_checkout_final_total( $form_id ) {
|
1791 |
|
@@ -1811,7 +1850,7 @@ function give_checkout_final_total( $form_id ) {
|
|
1811 |
<?php echo apply_filters( 'give_donation_total_label', esc_html__( 'Donation Total:', 'give' ) ); ?>
|
1812 |
</span>
|
1813 |
<span class="give-final-total-amount"
|
1814 |
-
|
1815 |
<?php
|
1816 |
echo give_currency_filter(
|
1817 |
give_format_amount(
|
@@ -1840,12 +1879,12 @@ add_action( 'give_donation_form_before_submit', 'give_checkout_final_total', 999
|
|
1840 |
/**
|
1841 |
* Renders the Checkout Submit section.
|
1842 |
*
|
1843 |
-
* @since 1.0
|
1844 |
-
*
|
1845 |
* @param int $form_id The donation form ID.
|
1846 |
* @param array $args List of arguments.
|
1847 |
*
|
1848 |
* @return void
|
|
|
|
|
1849 |
*/
|
1850 |
function give_checkout_submit( $form_id, $args ) {
|
1851 |
?>
|
@@ -1903,14 +1942,14 @@ function give_get_donation_form_submit_button( $form_id, $args = array() ) {
|
|
1903 |
/**
|
1904 |
* Show Give Goals.
|
1905 |
*
|
1906 |
-
* @
|
1907 |
-
* @
|
1908 |
-
* More info is on https://github.com/impress-org/give/issues/411
|
1909 |
-
*
|
1910 |
-
* @param int $form_id The form ID.
|
1911 |
-
* @param array $args An array of form arguments.
|
1912 |
*
|
1913 |
* @return mixed
|
|
|
|
|
|
|
|
|
1914 |
*/
|
1915 |
function give_show_goal_progress( $form_id, $args = array() ) {
|
1916 |
|
@@ -1937,12 +1976,12 @@ add_action( 'give_pre_form', 'give_show_goal_progress', 10, 2 );
|
|
1937 |
/**
|
1938 |
* Show Give Totals Progress.
|
1939 |
*
|
1940 |
-
* @
|
1941 |
-
*
|
1942 |
-
* @param int $total Total amount based on shortcode parameter.
|
1943 |
-
* @param int $total_goal Total Goal amount passed by Admin.
|
1944 |
*
|
1945 |
* @return mixed
|
|
|
|
|
1946 |
*/
|
1947 |
function give_show_goal_totals_progress( $total, $total_goal ) {
|
1948 |
|
@@ -1969,12 +2008,12 @@ add_action( 'give_pre_form', 'give_show_goal_totals_progress', 10, 2 );
|
|
1969 |
/**
|
1970 |
* Get form content position.
|
1971 |
*
|
1972 |
-
* @since 1.8
|
1973 |
-
*
|
1974 |
* @param $form_id
|
1975 |
* @param $args
|
1976 |
*
|
1977 |
* @return mixed|string
|
|
|
|
|
1978 |
*/
|
1979 |
function give_get_form_content_placement( $form_id, $args ) {
|
1980 |
$show_content = '';
|
@@ -2004,12 +2043,12 @@ function give_get_form_content_placement( $form_id, $args ) {
|
|
2004 |
/**
|
2005 |
* Adds Actions to Render Form Content.
|
2006 |
*
|
2007 |
-
* @
|
2008 |
-
*
|
2009 |
-
* @param int $form_id The form ID.
|
2010 |
-
* @param array $args An array of form arguments.
|
2011 |
*
|
2012 |
* @return void|bool
|
|
|
|
|
2013 |
*/
|
2014 |
function give_form_content( $form_id, $args ) {
|
2015 |
|
@@ -2031,12 +2070,12 @@ add_action( 'give_pre_form_output', 'give_form_content', 10, 2 );
|
|
2031 |
*
|
2032 |
* Displays content for Give forms; fired by action from give_form_content.
|
2033 |
*
|
2034 |
-
* @
|
2035 |
-
*
|
2036 |
-
* @param int $form_id The form ID.
|
2037 |
-
* @param array $args An array of form arguments.
|
2038 |
*
|
2039 |
* @return void
|
|
|
|
|
2040 |
*/
|
2041 |
function give_form_display_content( $form_id, $args ) {
|
2042 |
$content = give_get_meta( $form_id, '_give_form_content', true );
|
@@ -2073,11 +2112,12 @@ function give_form_display_content( $form_id, $args ) {
|
|
2073 |
/**
|
2074 |
* Filter form content html
|
2075 |
*
|
2076 |
-
* @since 1.0
|
2077 |
-
*
|
2078 |
* @param string $output
|
2079 |
* @param int $form_id
|
2080 |
* @param array $args
|
|
|
|
|
|
|
2081 |
*/
|
2082 |
echo apply_filters( 'give_form_content_output', $output, $form_id, $args );
|
2083 |
|
@@ -2089,20 +2129,21 @@ function give_form_display_content( $form_id, $args ) {
|
|
2089 |
/**
|
2090 |
* Renders the hidden Checkout fields.
|
2091 |
*
|
2092 |
-
* @
|
2093 |
-
*
|
2094 |
-
* @param int $form_id The form ID.
|
2095 |
*
|
2096 |
* @return void
|
|
|
|
|
2097 |
*/
|
2098 |
function give_checkout_hidden_fields( $form_id ) {
|
2099 |
|
2100 |
/**
|
2101 |
* Fires while rendering hidden checkout fields, before the fields.
|
2102 |
*
|
|
|
|
|
2103 |
* @since 1.0
|
2104 |
*
|
2105 |
-
* @param int $form_id The form ID.
|
2106 |
*/
|
2107 |
do_action( 'give_hidden_fields_before', $form_id );
|
2108 |
|
@@ -2116,9 +2157,10 @@ function give_checkout_hidden_fields( $form_id ) {
|
|
2116 |
/**
|
2117 |
* Fires while rendering hidden checkout fields, after the fields.
|
2118 |
*
|
|
|
|
|
2119 |
* @since 1.0
|
2120 |
*
|
2121 |
-
* @param int $form_id The form ID.
|
2122 |
*/
|
2123 |
do_action( 'give_hidden_fields_after', $form_id );
|
2124 |
|
@@ -2129,11 +2171,11 @@ function give_checkout_hidden_fields( $form_id ) {
|
|
2129 |
*
|
2130 |
* Applies filters to the success page content.
|
2131 |
*
|
2132 |
-
* @
|
2133 |
-
*
|
2134 |
-
* @param string $content Content before filters.
|
2135 |
*
|
2136 |
* @return string $content Filtered content.
|
|
|
|
|
2137 |
*/
|
2138 |
function give_filter_success_page_content( $content ) {
|
2139 |
|
@@ -2171,12 +2213,12 @@ add_action( 'give_pre_form', 'give_test_mode_frontend_warning', 10 );
|
|
2171 |
*
|
2172 |
* If "Disable Guest Donations" and "Display Register / Login" is set to none.
|
2173 |
*
|
2174 |
-
* @
|
2175 |
-
*
|
2176 |
-
* @param string $final_output
|
2177 |
-
* @param array $args
|
2178 |
*
|
2179 |
* @return string
|
|
|
|
|
2180 |
*/
|
2181 |
function give_members_only_form( $final_output, $args ) {
|
2182 |
|
@@ -2206,11 +2248,12 @@ add_filter( 'give_donate_form', 'give_members_only_form', 10, 2 );
|
|
2206 |
/**
|
2207 |
* Add donation form hidden fields.
|
2208 |
*
|
2209 |
-
* @since 1.8.17
|
2210 |
-
*
|
2211 |
* @param int $form_id
|
2212 |
* @param array $args
|
2213 |
* @param Give_Donate_Form $form
|
|
|
|
|
|
|
2214 |
*/
|
2215 |
function __give_form_add_donation_hidden_field( $form_id, $args, $form ) {
|
2216 |
$id_prefix = ! empty( $args['id_prefix'] ) ? $args['id_prefix'] : '';
|
@@ -2228,9 +2271,9 @@ function __give_form_add_donation_hidden_field( $form_id, $args, $form ) {
|
|
2228 |
if ( give_is_setting_enabled( $custom_amount ) ) {
|
2229 |
?>
|
2230 |
<input type="hidden" name="give-form-minimum"
|
2231 |
-
|
2232 |
<input type="hidden" name="give-form-maximum"
|
2233 |
-
|
2234 |
<?php
|
2235 |
}
|
2236 |
|
@@ -2266,12 +2309,12 @@ add_action( 'give_donation_form_top', '__give_form_add_donation_hidden_field', 0
|
|
2266 |
/**
|
2267 |
* Add currency settings on donation form.
|
2268 |
*
|
2269 |
-
* @since 1.8.17
|
2270 |
-
*
|
2271 |
* @param array $form_html_tags
|
2272 |
* @param Give_Donate_Form $form
|
2273 |
*
|
2274 |
* @return array
|
|
|
|
|
2275 |
*/
|
2276 |
function __give_form_add_currency_settings( $form_html_tags, $form ) {
|
2277 |
$form_currency = give_get_currency( $form->ID );
|
@@ -2287,7 +2330,7 @@ function __give_form_add_currency_settings( $form_html_tags, $form ) {
|
|
2287 |
|
2288 |
if ( ! empty( $currency_settings ) ) {
|
2289 |
foreach ( $currency_settings as $key => $value ) {
|
2290 |
-
$form_html_tags[
|
2291 |
}
|
2292 |
}
|
2293 |
|
@@ -2299,11 +2342,11 @@ add_filter( 'give_form_html_tags', '__give_form_add_currency_settings', 0, 2 );
|
|
2299 |
/**
|
2300 |
* Adds classes to progress bar container.
|
2301 |
*
|
2302 |
-
* @since 2.1
|
2303 |
-
*
|
2304 |
* @param string $class_goal
|
2305 |
*
|
2306 |
* @return string
|
|
|
|
|
2307 |
*/
|
2308 |
function add_give_goal_progress_class( $class_goal ) {
|
2309 |
$class_goal = 'progress progress-striped active';
|
@@ -2314,11 +2357,11 @@ function add_give_goal_progress_class( $class_goal ) {
|
|
2314 |
/**
|
2315 |
* Adds classes to progress bar span tag.
|
2316 |
*
|
2317 |
-
* @since 2.1
|
2318 |
-
*
|
2319 |
* @param string $class_bar
|
2320 |
*
|
2321 |
* @return string
|
|
|
|
|
2322 |
*/
|
2323 |
function add_give_goal_progress_bar_class( $class_bar ) {
|
2324 |
$class_bar = 'bar';
|
@@ -2333,9 +2376,9 @@ function add_give_goal_progress_bar_class( $class_bar ) {
|
|
2333 |
* @param int $id ID of the form.
|
2334 |
* @param array $args Additional args.
|
2335 |
*
|
|
|
2336 |
* @since 2.1
|
2337 |
*
|
2338 |
-
* @return array
|
2339 |
*/
|
2340 |
function add_class_for_form_grid( $class, $id, $args ) {
|
2341 |
$class[] = 'give-form-grid-wrap';
|
@@ -2370,8 +2413,8 @@ function give_is_form_grid_page_hidden_field( $id, $args, $form ) {
|
|
2370 |
* @param string $redirect URL for redirection.
|
2371 |
* @param array $args Array of additional args.
|
2372 |
*
|
2373 |
-
* @since 2.1
|
2374 |
* @return string
|
|
|
2375 |
*/
|
2376 |
function give_redirect_and_popup_form( $redirect, $args ) {
|
2377 |
|
19 |
*
|
20 |
* @param array $args An array of form arguments.
|
21 |
*
|
22 |
+
* @return string Donation form.
|
23 |
* @since 1.0
|
24 |
*
|
|
|
25 |
*/
|
26 |
function give_get_donation_form( $args = array() ) {
|
27 |
|
88 |
/**
|
89 |
* Fires while outputting donation form, before the form wrapper div.
|
90 |
*
|
|
|
|
|
91 |
* @param int Give_Donate_Form::ID The form ID.
|
92 |
* @param array $args An array of form arguments.
|
93 |
+
*
|
94 |
+
* @since 1.0
|
95 |
+
*
|
96 |
*/
|
97 |
do_action( 'give_pre_form_output', $form->ID, $args, $form );
|
98 |
|
124 |
/**
|
125 |
* Fires while outputting donation form, before the form.
|
126 |
*
|
|
|
|
|
127 |
* @param int Give_Donate_Form::ID The form ID.
|
128 |
* @param array $args An array of form arguments.
|
129 |
* @param Give_Donate_Form $form Form object.
|
130 |
+
*
|
131 |
+
* @since 1.0
|
132 |
+
*
|
133 |
*/
|
134 |
do_action( 'give_pre_form', $form->ID, $args, $form );
|
135 |
|
144 |
/**
|
145 |
* Filter the form html tags.
|
146 |
*
|
|
|
|
|
147 |
* @param array $form_html_tags Array of form html tags.
|
148 |
* @param Give_Donate_Form $form Form object.
|
149 |
+
*
|
150 |
+
* @since 1.8.17
|
151 |
+
*
|
152 |
*/
|
153 |
$form_html_tags = apply_filters( 'give_form_html_tags', (array) $form_html_tags, $form );
|
154 |
?>
|
157 |
<span class="give-hidden" style="display: none !important;">
|
158 |
<label for="give-form-honeypot-<?php echo $form->ID; ?>"></label>
|
159 |
<input id="give-form-honeypot-<?php echo $form->ID; ?>" type="text" name="give-honeypot"
|
160 |
+
class="give-honeypot give-hidden"/>
|
161 |
</span>
|
162 |
|
163 |
<?php
|
164 |
/**
|
165 |
* Fires while outputting donation form, before all other fields.
|
166 |
*
|
|
|
|
|
167 |
* @param int Give_Donate_Form::ID The form ID.
|
168 |
* @param array $args An array of form arguments.
|
169 |
* @param Give_Donate_Form $form Form object.
|
170 |
+
*
|
171 |
+
* @since 1.0
|
172 |
+
*
|
173 |
*/
|
174 |
do_action( 'give_donation_form_top', $form->ID, $args, $form );
|
175 |
|
176 |
/**
|
177 |
* Fires while outputting donation form, for payment gateway fields.
|
178 |
*
|
|
|
|
|
179 |
* @param int Give_Donate_Form::ID The form ID.
|
180 |
* @param array $args An array of form arguments.
|
181 |
* @param Give_Donate_Form $form Form object.
|
182 |
+
*
|
183 |
+
* @since 1.7
|
184 |
+
*
|
185 |
*/
|
186 |
do_action( 'give_payment_mode_select', $form->ID, $args, $form );
|
187 |
|
188 |
/**
|
189 |
* Fires while outputting donation form, after all other fields.
|
190 |
*
|
|
|
|
|
191 |
* @param int Give_Donate_Form::ID The form ID.
|
192 |
* @param array $args An array of form arguments.
|
193 |
* @param Give_Donate_Form $form Form object.
|
194 |
+
*
|
195 |
+
* @since 1.0
|
196 |
+
*
|
197 |
*/
|
198 |
do_action( 'give_donation_form_bottom', $form->ID, $args, $form );
|
199 |
|
204 |
/**
|
205 |
* Fires while outputting donation form, after the form.
|
206 |
*
|
|
|
|
|
207 |
* @param int Give_Donate_Form::ID The form ID.
|
208 |
* @param array $args An array of form arguments.
|
209 |
* @param Give_Donate_Form $form Form object.
|
210 |
+
*
|
211 |
+
* @since 1.0
|
212 |
+
*
|
213 |
*/
|
214 |
do_action( 'give_post_form', $form->ID, $args, $form );
|
215 |
|
222 |
/**
|
223 |
* Fires while outputting donation form, after the form wrapper div.
|
224 |
*
|
|
|
|
|
225 |
* @param int Give_Donate_Form::ID The form ID.
|
226 |
* @param array $args An array of form arguments.
|
227 |
+
*
|
228 |
+
* @since 1.0
|
229 |
+
*
|
230 |
*/
|
231 |
do_action( 'give_post_form_output', $form->ID, $args );
|
232 |
|
244 |
* gateways, a user registration form (if enable) and a credit card info form
|
245 |
* if credit cards are enabled.
|
246 |
*
|
247 |
+
* @param int $form_id The form ID.
|
|
|
|
|
248 |
*
|
249 |
* @return string
|
250 |
+
* @since 1.0
|
251 |
+
*
|
252 |
*/
|
253 |
function give_show_purchase_form( $form_id, $args ) {
|
254 |
|
293 |
/**
|
294 |
* Fires while displaying donation form, credit card form fields for a given gateway.
|
295 |
*
|
296 |
+
* @param int $form_id The form ID.
|
297 |
+
*
|
298 |
* @since 1.0
|
299 |
*
|
|
|
300 |
*/
|
301 |
do_action( "give_{$payment_mode}_cc_form", $form_id, $args );
|
302 |
} else {
|
303 |
/**
|
304 |
* Fires while displaying donation form, credit card form fields.
|
305 |
*
|
306 |
+
* @param int $form_id The form ID.
|
307 |
+
*
|
308 |
* @since 1.0
|
309 |
*
|
|
|
310 |
*/
|
311 |
do_action( 'give_cc_form', $form_id, $args );
|
312 |
}
|
341 |
/**
|
342 |
* Give Show Login/Register Form Fields.
|
343 |
*
|
344 |
+
* @param int $form_id The form ID.
|
|
|
|
|
345 |
*
|
346 |
* @return void
|
347 |
+
* @since 1.4.1
|
348 |
+
*
|
349 |
*/
|
350 |
function give_show_register_login_fields( $form_id ) {
|
351 |
|
397 |
* Outputs the donation amount field that appears at the top of the donation forms. If the user has custom amount
|
398 |
* enabled the field will output as a customizable input.
|
399 |
*
|
400 |
+
* @param int $form_id The form ID.
|
401 |
+
* @param array $args An array of form arguments.
|
|
|
|
|
402 |
*
|
403 |
* @return void
|
404 |
+
* @since 1.0
|
405 |
+
*
|
406 |
*/
|
407 |
function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
408 |
|
423 |
/**
|
424 |
* Fires while displaying donation form, before donation level fields.
|
425 |
*
|
|
|
|
|
426 |
* @param int $form_id The form ID.
|
427 |
* @param array $args An array of form arguments.
|
428 |
+
*
|
429 |
+
* @since 1.0
|
430 |
+
*
|
431 |
*/
|
432 |
do_action( 'give_before_donation_levels', $form_id, $args );
|
433 |
|
436 |
?>
|
437 |
<label class="give-hidden" for="give-amount"><?php esc_html_e( 'Donation Amount:', 'give' ); ?></label>
|
438 |
<input id="give-amount" class="give-amount-hidden" type="hidden" name="give-amount"
|
439 |
+
value="<?php echo $default_amount; ?>" required aria-required="true"/>
|
440 |
<div class="set-price give-donation-amount form-row-wide">
|
441 |
<?php
|
442 |
if ( 'before' === $currency_position ) {
|
463 |
?>
|
464 |
<label class="give-hidden" for="give-amount"><?php esc_html_e( 'Donation Amount:', 'give' ); ?></label>
|
465 |
<input class="give-text-input give-amount-top" id="give-amount" name="give-amount" type="tel"
|
466 |
+
placeholder="" value="<?php echo $default_amount; ?>" autocomplete="off">
|
467 |
<?php
|
468 |
if ( 'after' === $currency_position ) {
|
469 |
echo $currency_output;
|
477 |
/**
|
478 |
* Fires while displaying donation form, after donation amounf field(s).
|
479 |
*
|
|
|
|
|
480 |
* @param int $form_id The form ID.
|
481 |
* @param array $args An array of form arguments.
|
482 |
+
*
|
483 |
+
* @since 1.0
|
484 |
+
*
|
485 |
*/
|
486 |
do_action( 'give_after_donation_amount', $form_id, $args );
|
487 |
|
500 |
/**
|
501 |
* Fires while displaying donation form, after donation level fields.
|
502 |
*
|
|
|
|
|
503 |
* @param int $form_id The form ID.
|
504 |
* @param array $args An array of form arguments.
|
505 |
+
*
|
506 |
+
* @since 1.0
|
507 |
+
*
|
508 |
*/
|
509 |
do_action( 'give_after_donation_levels', $form_id, $args );
|
510 |
}
|
514 |
/**
|
515 |
* Outputs the Donation Levels in various formats such as dropdown, radios, and buttons.
|
516 |
*
|
517 |
+
* @param int $form_id The form ID.
|
|
|
|
|
518 |
*
|
519 |
* @return string Donation levels.
|
520 |
+
* @since 1.0
|
521 |
+
*
|
522 |
*/
|
523 |
function give_output_levels( $form_id ) {
|
524 |
|
525 |
/**
|
526 |
* Filter the variable pricing
|
527 |
*
|
|
|
|
|
|
|
|
|
528 |
* @param array $prices Array of variable prices.
|
529 |
* @param int $form Form ID.
|
530 |
+
*
|
531 |
+
* @since 1.0
|
532 |
+
* @deprecated 2.2 Use give_get_donation_levels filter instead of give_form_variable_prices.
|
533 |
+
* Check Give_Donate_Form::get_prices().
|
534 |
+
*
|
535 |
*/
|
536 |
$prices = apply_filters( 'give_form_variable_prices', give_get_variable_prices( $form_id ), $form_id );
|
537 |
|
677 |
*
|
678 |
* Outputs a button to reveal form fields.
|
679 |
*
|
680 |
+
* @param int $form_id The form ID.
|
681 |
+
* @param array $args An array of form arguments.
|
|
|
|
|
682 |
*
|
683 |
* @return string Checkout button.
|
684 |
+
* @since 1.0
|
685 |
+
*
|
686 |
*/
|
687 |
function give_display_checkout_button( $form_id, $args ) {
|
688 |
|
709 |
/**
|
710 |
* Shows the User Info fields in the Personal Info box, more fields can be added via the hooks provided.
|
711 |
*
|
712 |
+
* @param int $form_id The form ID.
|
|
|
|
|
713 |
*
|
714 |
+
* @return void
|
715 |
* @see For Pattern Attribute: https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Form_validation
|
716 |
*
|
717 |
+
* @since 1.0
|
718 |
+
*
|
719 |
*/
|
720 |
function give_user_info_fields( $form_id ) {
|
721 |
|
883 |
echo apply_filters( 'give_anonymous_donation_checkbox_label', __( 'Make this an anonymous donation.', 'give' ), $form_id );
|
884 |
|
885 |
if ( give_field_is_required( 'give_comment', $form_id ) ) {
|
886 |
+
?>
|
887 |
<span class="give-required-indicator">*</span>
|
888 |
<?php } ?>
|
889 |
<?php
|
949 |
/**
|
950 |
* Renders the credit card info form.
|
951 |
*
|
952 |
+
* @param int $form_id The form ID.
|
|
|
|
|
953 |
*
|
954 |
* @return void
|
955 |
+
* @since 1.0
|
956 |
+
*
|
957 |
*/
|
958 |
function give_get_cc_form( $form_id ) {
|
959 |
|
962 |
/**
|
963 |
* Fires while rendering credit card info form, before the fields.
|
964 |
*
|
965 |
+
* @param int $form_id The form ID.
|
966 |
+
*
|
967 |
* @since 1.0
|
968 |
*
|
|
|
969 |
*/
|
970 |
do_action( 'give_before_cc_fields', $form_id );
|
971 |
?>
|
986 |
</label>
|
987 |
|
988 |
<input type="tel" autocomplete="off" name="card_number" id="card_number-<?php echo $form_id; ?>"
|
989 |
+
class="card-number give-input required" placeholder="<?php _e( 'Card number', 'give' ); ?>"
|
990 |
+
required aria-required="true"/>
|
991 |
</p>
|
992 |
|
993 |
<p id="give-card-cvc-wrap-<?php echo $form_id; ?>" class="form-row form-row-one-third form-row-responsive">
|
998 |
</label>
|
999 |
|
1000 |
<input type="tel" size="4" autocomplete="off" name="card_cvc" id="card_cvc-<?php echo $form_id; ?>"
|
1001 |
+
class="card-cvc give-input required" placeholder="<?php _e( 'Security code', 'give' ); ?>"
|
1002 |
+
required aria-required="true"/>
|
1003 |
</p>
|
1004 |
|
1005 |
<p id="give-card-name-wrap-<?php echo $form_id; ?>" class="form-row form-row-two-thirds form-row-responsive">
|
1010 |
</label>
|
1011 |
|
1012 |
<input type="text" autocomplete="off" name="card_name" id="card_name-<?php echo $form_id; ?>"
|
1013 |
+
class="card-name give-input required" placeholder="<?php esc_attr_e( 'Cardholder Name', 'give' ); ?>"
|
1014 |
+
required aria-required="true"/>
|
1015 |
</p>
|
1016 |
<?php
|
1017 |
/**
|
1018 |
* Fires while rendering credit card info form, before expiration fields.
|
1019 |
*
|
1020 |
+
* @param int $form_id The form ID.
|
1021 |
+
*
|
1022 |
* @since 1.0
|
1023 |
*
|
|
|
1024 |
*/
|
1025 |
do_action( 'give_before_cc_expiration' );
|
1026 |
?>
|
1032 |
</label>
|
1033 |
|
1034 |
<input type="hidden" id="card_exp_month-<?php echo $form_id; ?>" name="card_exp_month"
|
1035 |
+
class="card-expiry-month"/>
|
1036 |
<input type="hidden" id="card_exp_year-<?php echo $form_id; ?>" name="card_exp_year"
|
1037 |
+
class="card-expiry-year"/>
|
1038 |
|
1039 |
<input type="tel" autocomplete="off" name="card_expiry" id="card_expiry-<?php echo $form_id; ?>"
|
1040 |
+
class="card-expiry give-input required" placeholder="<?php esc_attr_e( 'MM / YY', 'give' ); ?>"
|
1041 |
+
required aria-required="true"/>
|
1042 |
</p>
|
1043 |
<?php
|
1044 |
/**
|
1045 |
* Fires while rendering credit card info form, after expiration fields.
|
1046 |
*
|
1047 |
+
* @param int $form_id The form ID.
|
1048 |
+
*
|
1049 |
* @since 1.0
|
1050 |
*
|
|
|
1051 |
*/
|
1052 |
do_action( 'give_after_cc_expiration', $form_id );
|
1053 |
?>
|
1056 |
/**
|
1057 |
* Fires while rendering credit card info form, before the fields.
|
1058 |
*
|
1059 |
+
* @param int $form_id The form ID.
|
1060 |
+
*
|
1061 |
* @since 1.0
|
1062 |
*
|
|
|
1063 |
*/
|
1064 |
do_action( 'give_after_cc_fields', $form_id );
|
1065 |
|
1071 |
/**
|
1072 |
* Outputs the default credit card address fields.
|
1073 |
*
|
1074 |
+
* @param int $form_id The form ID.
|
|
|
|
|
1075 |
*
|
1076 |
* @return void
|
1077 |
+
* @since 1.0
|
1078 |
+
*
|
1079 |
*/
|
1080 |
function give_default_cc_address_fields( $form_id ) {
|
1081 |
// Get user info.
|
1089 |
/**
|
1090 |
* Fires while rendering credit card billing form, before address fields.
|
1091 |
*
|
1092 |
+
* @param int $form_id The form ID.
|
1093 |
+
*
|
1094 |
* @since 1.0
|
1095 |
*
|
|
|
1096 |
*/
|
1097 |
do_action( 'give_cc_billing_top' );
|
1098 |
|
1117 |
if ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) {
|
1118 |
$selected_country = $give_user_info['billing_country'];
|
1119 |
}
|
1120 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1121 |
|
1122 |
// Get the country list that does not require city.
|
1123 |
$city_required = ! array_key_exists( $selected_country, give_city_not_required_country_list() );
|
1130 |
<span class="give-required-indicator">*</span>
|
1131 |
<?php endif; ?>
|
1132 |
<span class="give-tooltip give-icon give-icon-question"
|
1133 |
+
data-tooltip="<?php esc_attr_e( 'The country for your billing address.', 'give' ); ?>"></span>
|
1134 |
</label>
|
1135 |
|
1136 |
<select
|
1212 |
/>
|
1213 |
</p>
|
1214 |
|
1215 |
+
<?php
|
1216 |
+
/**
|
1217 |
+
* State field logic.
|
1218 |
+
*/
|
1219 |
+
$state_label = __( 'State', 'give' );
|
1220 |
+
$states_label = give_get_states_label();
|
1221 |
+
// Check if $country code exists in the array key for states label.
|
1222 |
+
if ( array_key_exists( $selected_country, $states_label ) ) {
|
1223 |
+
$state_label = $states_label[ $selected_country ];
|
1224 |
+
}
|
1225 |
+
$states = give_get_states( $selected_country );
|
1226 |
+
// Get the country list that do not have any states.
|
1227 |
+
$no_states_country = give_no_states_country_list();
|
1228 |
+
// Get the country list that does not require states.
|
1229 |
+
$states_not_required_country_list = give_states_not_required_country_list();
|
1230 |
+
// Used to determine if state is required.
|
1231 |
+
$require_state = ! array_key_exists( $selected_country, $no_states_country ) && give_field_is_required( 'card_state', $form_id );
|
1232 |
+
|
1233 |
+
?>
|
1234 |
<p id="give-card-state-wrap"
|
1235 |
+
class="form-row form-row-first form-row-responsive <?php echo ( ! empty( $selected_country ) && ! $require_state ) ? 'give-hidden' : ''; ?> ">
|
1236 |
<label for="card_state" class="give-label">
|
1237 |
+
<span class="state-label-text"><?php echo $state_label; ?></span>
|
1238 |
+
<span
|
1239 |
+
class="give-required-indicator <?php echo array_key_exists( $selected_country, $states_not_required_country_list ) ? 'give-hidden' : ''; ?> ">*</span>
|
1240 |
+
<span class="give-tooltip give-icon give-icon-question"
|
1241 |
+
data-tooltip="<?php esc_attr_e( 'The state, province, or county for your billing address.', 'give' ); ?>"></span>
|
1242 |
</label>
|
1243 |
<?php
|
1244 |
|
1248 |
name="card_state"
|
1249 |
autocomplete="address-level1"
|
1250 |
id="card_state"
|
1251 |
+
class="card_state give-select<?php echo $require_state ? ' required' : ''; ?>"
|
1252 |
+
<?php echo $require_state ? ' required aria-required="true" ' : ''; ?>>
|
1253 |
<?php
|
1254 |
foreach ( $states as $state_code => $state ) {
|
1255 |
echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>';
|
1258 |
</select>
|
1259 |
<?php else : ?>
|
1260 |
<input type="text" size="6" name="card_state" id="card_state" class="card_state give-input"
|
1261 |
+
placeholder="<?php echo $state_label; ?>" value="<?php echo $selected_state; ?>"
|
1262 |
+
<?php echo $require_state ? ' required aria-required="true" ' : ''; ?>
|
1263 |
/>
|
1264 |
<?php endif; ?>
|
1265 |
</p>
|
1266 |
|
1267 |
+
<p id="give-card-zip-wrap" class="form-row <?php echo $require_state ? 'form-row-last' : ''; ?> form-row-responsive">
|
1268 |
<label for="card_zip" class="give-label">
|
1269 |
<?php _e( 'Zip / Postal Code', 'give' ); ?>
|
1270 |
<?php if ( give_field_is_required( 'card_zip', $form_id ) ) : ?>
|
1271 |
<span class="give-required-indicator">*</span>
|
1272 |
<?php endif; ?>
|
1273 |
+
<?php echo Give()->tooltips->render_help( __( 'The zip or postal code for your billing address.', 'give' ) ); ?>
|
1274 |
</label>
|
1275 |
|
1276 |
<input
|
1289 |
/**
|
1290 |
* Fires while rendering credit card billing form, after address fields.
|
1291 |
*
|
1292 |
+
* @param int $form_id The form ID.
|
1293 |
+
*
|
1294 |
* @since 1.0
|
1295 |
*
|
|
|
1296 |
*/
|
1297 |
do_action( 'give_cc_billing_bottom' );
|
1298 |
?>
|
1308 |
* Renders the user registration fields. If the user is logged in, a login form is displayed other a registration form
|
1309 |
* is provided for the user to create an account.
|
1310 |
*
|
1311 |
+
* @param int $form_id The form ID.
|
|
|
|
|
1312 |
*
|
1313 |
* @return string
|
1314 |
+
* @since 1.0
|
1315 |
+
*
|
1316 |
*/
|
1317 |
function give_get_register_fields( $form_id ) {
|
1318 |
|
1332 |
/**
|
1333 |
* Fires while rendering user registration form, before registration fields.
|
1334 |
*
|
1335 |
+
* @param int $form_id The form ID.
|
1336 |
+
*
|
1337 |
* @since 1.0
|
1338 |
*
|
|
|
1339 |
*/
|
1340 |
do_action( 'give_register_fields_before', $form_id );
|
1341 |
?>
|
1345 |
/**
|
1346 |
* Fires while rendering user registration form, before account fields.
|
1347 |
*
|
1348 |
+
* @param int $form_id The form ID.
|
1349 |
+
*
|
1350 |
* @since 1.0
|
1351 |
*
|
|
|
1352 |
*/
|
1353 |
do_action( 'give_register_account_fields_before', $form_id );
|
1354 |
|
1355 |
$class = ( 'registration' === $show_register_form ) ? 'form-row-wide' : 'form-row-first';
|
1356 |
?>
|
1357 |
<div id="give-create-account-wrap-<?php echo $form_id; ?>"
|
1358 |
+
class="form-row <?php echo esc_attr( $class ); ?> form-row-responsive">
|
1359 |
<label for="give-create-account-<?php echo $form_id; ?>">
|
1360 |
<?php
|
1361 |
// Add attributes to checkbox, if Guest Checkout is disabled.
|
1374 |
} else {
|
1375 |
?>
|
1376 |
<input type="checkbox" name="give_create_account" value="on" id="<?php echo $id; ?>"
|
1377 |
+
class="give-input"/>
|
1378 |
<?php
|
1379 |
}
|
1380 |
|
1405 |
/**
|
1406 |
* Fires while rendering user registration form, after account fields.
|
1407 |
*
|
1408 |
+
* @param int $form_id The form ID.
|
1409 |
+
*
|
1410 |
* @since 1.0
|
1411 |
*
|
|
|
1412 |
*/
|
1413 |
do_action( 'give_register_account_fields_after', $form_id );
|
1414 |
?>
|
1418 |
/**
|
1419 |
* Fires while rendering user registration form, after registration fields.
|
1420 |
*
|
1421 |
+
* @param int $form_id The form ID.
|
1422 |
+
*
|
1423 |
* @since 1.0
|
1424 |
*
|
|
|
1425 |
*/
|
1426 |
do_action( 'give_register_fields_after', $form_id );
|
1427 |
?>
|
1449 |
* on the give_donation_form_login_fields to display the login form if a user already
|
1450 |
* had an account.
|
1451 |
*
|
1452 |
+
* @param int $form_id The form ID.
|
|
|
|
|
1453 |
*
|
1454 |
* @return string
|
1455 |
+
* @since 1.0
|
1456 |
+
*
|
1457 |
*/
|
1458 |
function give_get_login_fields( $form_id ) {
|
1459 |
|
1493 |
/**
|
1494 |
* Fires while rendering checkout login form, before the fields.
|
1495 |
*
|
1496 |
+
* @param int $form_id The form ID.
|
1497 |
+
*
|
1498 |
* @since 1.0
|
1499 |
*
|
|
|
1500 |
*/
|
1501 |
do_action( 'give_donation_form_login_fields_before', $form_id );
|
1502 |
?>
|
1510 |
</label>
|
1511 |
|
1512 |
<input class="give-input<?php echo ( give_logged_in_only( $form_id ) ) ? ' required' : ''; ?>"
|
1513 |
+
type="text"
|
1514 |
+
name="give_user_login" id="give-user-login-<?php echo $form_id; ?>" value=""
|
1515 |
+
placeholder="<?php _e( 'Your username or email', 'give' ); ?>"<?php echo ( give_logged_in_only( $form_id ) ) ? ' required aria-required="true" ' : ''; ?>/>
|
1516 |
</div>
|
1517 |
|
1518 |
<div id="give-user-pass-wrap-<?php echo $form_id; ?>"
|
1519 |
+
class="give_login_password form-row form-row-last form-row-responsive">
|
1520 |
<label class="give-label" for="give-user-pass-<?php echo $form_id; ?>">
|
1521 |
<?php _e( 'Password', 'give' ); ?>
|
1522 |
<?php if ( give_logged_in_only( $form_id ) ) { ?>
|
1524 |
<?php } ?>
|
1525 |
</label>
|
1526 |
<input class="give-input<?php echo ( give_logged_in_only( $form_id ) ) ? ' required' : ''; ?>"
|
1527 |
+
type="password" name="give_user_pass" id="give-user-pass-<?php echo $form_id; ?>"
|
1528 |
+
placeholder="<?php _e( 'Your password', 'give' ); ?>"<?php echo ( give_logged_in_only( $form_id ) ) ? ' required aria-required="true" ' : ''; ?>/>
|
1529 |
<?php if ( give_logged_in_only( $form_id ) ) : ?>
|
1530 |
<input type="hidden" name="give-purchase-var" value="needs-to-login"/>
|
1531 |
<?php endif; ?>
|
1534 |
<div id="give-forgot-password-wrap-<?php echo $form_id; ?>" class="give_login_forgot_password">
|
1535 |
<span class="give-forgot-password ">
|
1536 |
<a href="<?php echo wp_lostpassword_url(); ?>"
|
1537 |
+
target="_blank"><?php _e( 'Reset Password', 'give' ); ?></a>
|
1538 |
</span>
|
1539 |
</div>
|
1540 |
</div>
|
1542 |
|
1543 |
<div id="give-user-login-submit-<?php echo $form_id; ?>" class="give-clearfix">
|
1544 |
<input type="submit" class="give-submit give-btn button" name="give_login_submit"
|
1545 |
+
value="<?php _e( 'Login', 'give' ); ?>"/>
|
1546 |
<?php if ( $show_register_form !== 'login' ) { ?>
|
1547 |
<input type="button" data-action="give_cancel_login"
|
1548 |
+
class="give-cancel-login give-checkout-register-cancel give-btn button" name="give_login_cancel"
|
1549 |
+
value="<?php _e( 'Cancel', 'give' ); ?>"/>
|
1550 |
<?php } ?>
|
1551 |
<span class="give-loading-animation"></span>
|
1552 |
</div>
|
1554 |
/**
|
1555 |
* Fires while rendering checkout login form, after the fields.
|
1556 |
*
|
1557 |
+
* @param int $form_id The form ID.
|
1558 |
+
*
|
1559 |
* @since 1.0
|
1560 |
*
|
|
|
1561 |
*/
|
1562 |
do_action( 'give_donation_form_login_fields_after', $form_id );
|
1563 |
?>
|
1576 |
* a default payment gateway has been chosen from the Give Settings, it will be
|
1577 |
* automatically selected.
|
1578 |
*
|
1579 |
+
* @param int $form_id The form ID.
|
|
|
|
|
1580 |
*
|
1581 |
* @return void
|
1582 |
+
* @since 1.0
|
1583 |
+
*
|
1584 |
*/
|
1585 |
function give_payment_mode_select( $form_id, $args ) {
|
1586 |
|
1590 |
/**
|
1591 |
* Fires while selecting payment gateways, before the fields.
|
1592 |
*
|
1593 |
+
* @param int $form_id The form ID.
|
1594 |
+
*
|
1595 |
* @since 1.7
|
1596 |
*
|
|
|
1597 |
*/
|
1598 |
do_action( 'give_payment_mode_top', $form_id );
|
1599 |
?>
|
1609 |
/**
|
1610 |
* Fires while selecting payment gateways, before the wrap div.
|
1611 |
*
|
1612 |
+
* @param int $form_id The form ID.
|
1613 |
+
*
|
1614 |
* @since 1.7
|
1615 |
*
|
|
|
1616 |
*/
|
1617 |
do_action( 'give_payment_mode_before_gateways_wrap' );
|
1618 |
?>
|
1637 |
/**
|
1638 |
* Loop through the active payment gateways.
|
1639 |
*/
|
1640 |
+
$selected_gateway = give_get_chosen_gateway( $form_id );
|
1641 |
+
$give_settings = give_get_settings();
|
1642 |
+
$gateways_label = array_key_exists( 'gateways_label', $give_settings ) ?
|
1643 |
$give_settings['gateways_label'] :
|
1644 |
array();
|
1645 |
|
1646 |
foreach ( $gateways as $gateway_id => $gateway ) :
|
1647 |
// Determine the default gateway.
|
1648 |
+
$checked = checked( $gateway_id, $selected_gateway, false );
|
1649 |
$checked_class = $checked ? ' class="give-gateway-option-selected"' : '';
|
1650 |
$is_payment_method_visible = isset( $gateway['is_visible'] ) ? $gateway['is_visible'] : true;
|
1651 |
|
1653 |
?>
|
1654 |
<li<?php echo $checked_class; ?>>
|
1655 |
<input type="radio" name="payment-mode" class="give-gateway"
|
1656 |
+
id="give-gateway-<?php echo esc_attr( $gateway_id . '-' . $id_prefix ); ?>"
|
1657 |
+
value="<?php echo esc_attr( $gateway_id ); ?>"<?php echo $checked; ?>>
|
1658 |
|
1659 |
<?php
|
1660 |
$label = $gateway['checkout_label'];
|
1663 |
}
|
1664 |
?>
|
1665 |
<label for="give-gateway-<?php echo esc_attr( $gateway_id . '-' . $id_prefix ); ?>"
|
1666 |
+
class="give-gateway-option"
|
1667 |
+
id="give-gateway-option-<?php echo esc_attr( $gateway_id ); ?>"> <?php echo esc_html( $label ); ?></label>
|
1668 |
</li>
|
1669 |
+
<?php
|
1670 |
}
|
1671 |
endforeach;
|
1672 |
?>
|
1684 |
/**
|
1685 |
* Fires while selecting payment gateways, after the wrap div.
|
1686 |
*
|
1687 |
+
* @param int $form_id The form ID.
|
1688 |
+
*
|
1689 |
* @since 1.7
|
1690 |
*
|
|
|
1691 |
*/
|
1692 |
do_action( 'give_payment_mode_after_gateways_wrap' );
|
1693 |
?>
|
1697 |
/**
|
1698 |
* Fires while selecting payment gateways, after the fields.
|
1699 |
*
|
1700 |
+
* @param int $form_id The form ID.
|
1701 |
+
*
|
1702 |
* @since 1.7
|
1703 |
*
|
|
|
1704 |
*/
|
1705 |
do_action( 'give_payment_mode_bottom', $form_id );
|
1706 |
?>
|
1734 |
* agree the T&Cs set in the Give Settings. This is only displayed if T&Cs are
|
1735 |
* set in the Give Settings.
|
1736 |
*
|
1737 |
+
* @param int $form_id The form ID.
|
|
|
|
|
1738 |
*
|
1739 |
* @return bool
|
1740 |
+
* @since 1.0
|
1741 |
+
*
|
1742 |
*/
|
1743 |
function give_terms_agreement( $form_id ) {
|
1744 |
$form_option = give_get_meta( $form_id, '_give_terms_option', true );
|
1806 |
</div>
|
1807 |
|
1808 |
<input name="give_agree_to_terms" class="required" type="checkbox"
|
1809 |
+
id="give_agree_to_terms-<?php echo $form_id; ?>" value="1" required aria-required="true"/>
|
1810 |
<label for="give_agree_to_terms-<?php echo $form_id; ?>"><?php echo $label; ?></label>
|
1811 |
|
1812 |
</fieldset>
|
1820 |
*
|
1821 |
* Shows the final donation total at the bottom of the checkout page.
|
1822 |
*
|
1823 |
+
* @param int $form_id The form ID.
|
|
|
|
|
1824 |
*
|
1825 |
* @return void
|
1826 |
+
* @since 1.0
|
1827 |
+
*
|
1828 |
*/
|
1829 |
function give_checkout_final_total( $form_id ) {
|
1830 |
|
1850 |
<?php echo apply_filters( 'give_donation_total_label', esc_html__( 'Donation Total:', 'give' ) ); ?>
|
1851 |
</span>
|
1852 |
<span class="give-final-total-amount"
|
1853 |
+
data-total="<?php echo give_format_amount( $total, array( 'sanitize' => false ) ); ?>">
|
1854 |
<?php
|
1855 |
echo give_currency_filter(
|
1856 |
give_format_amount(
|
1879 |
/**
|
1880 |
* Renders the Checkout Submit section.
|
1881 |
*
|
|
|
|
|
1882 |
* @param int $form_id The donation form ID.
|
1883 |
* @param array $args List of arguments.
|
1884 |
*
|
1885 |
* @return void
|
1886 |
+
* @since 1.0
|
1887 |
+
*
|
1888 |
*/
|
1889 |
function give_checkout_submit( $form_id, $args ) {
|
1890 |
?>
|
1942 |
/**
|
1943 |
* Show Give Goals.
|
1944 |
*
|
1945 |
+
* @param int $form_id The form ID.
|
1946 |
+
* @param array $args An array of form arguments.
|
|
|
|
|
|
|
|
|
1947 |
*
|
1948 |
* @return mixed
|
1949 |
+
* @since 1.6 Add template for Give Goals Shortcode.
|
1950 |
+
* More info is on https://github.com/impress-org/give/issues/411
|
1951 |
+
*
|
1952 |
+
* @since 1.0
|
1953 |
*/
|
1954 |
function give_show_goal_progress( $form_id, $args = array() ) {
|
1955 |
|
1976 |
/**
|
1977 |
* Show Give Totals Progress.
|
1978 |
*
|
1979 |
+
* @param int $total Total amount based on shortcode parameter.
|
1980 |
+
* @param int $total_goal Total Goal amount passed by Admin.
|
|
|
|
|
1981 |
*
|
1982 |
* @return mixed
|
1983 |
+
* @since 2.1
|
1984 |
+
*
|
1985 |
*/
|
1986 |
function give_show_goal_totals_progress( $total, $total_goal ) {
|
1987 |
|
2008 |
/**
|
2009 |
* Get form content position.
|
2010 |
*
|
|
|
|
|
2011 |
* @param $form_id
|
2012 |
* @param $args
|
2013 |
*
|
2014 |
* @return mixed|string
|
2015 |
+
* @since 1.8
|
2016 |
+
*
|
2017 |
*/
|
2018 |
function give_get_form_content_placement( $form_id, $args ) {
|
2019 |
$show_content = '';
|
2043 |
/**
|
2044 |
* Adds Actions to Render Form Content.
|
2045 |
*
|
2046 |
+
* @param int $form_id The form ID.
|
2047 |
+
* @param array $args An array of form arguments.
|
|
|
|
|
2048 |
*
|
2049 |
* @return void|bool
|
2050 |
+
* @since 1.0
|
2051 |
+
*
|
2052 |
*/
|
2053 |
function give_form_content( $form_id, $args ) {
|
2054 |
|
2070 |
*
|
2071 |
* Displays content for Give forms; fired by action from give_form_content.
|
2072 |
*
|
2073 |
+
* @param int $form_id The form ID.
|
2074 |
+
* @param array $args An array of form arguments.
|
|
|
|
|
2075 |
*
|
2076 |
* @return void
|
2077 |
+
* @since 1.0
|
2078 |
+
*
|
2079 |
*/
|
2080 |
function give_form_display_content( $form_id, $args ) {
|
2081 |
$content = give_get_meta( $form_id, '_give_form_content', true );
|
2112 |
/**
|
2113 |
* Filter form content html
|
2114 |
*
|
|
|
|
|
2115 |
* @param string $output
|
2116 |
* @param int $form_id
|
2117 |
* @param array $args
|
2118 |
+
*
|
2119 |
+
* @since 1.0
|
2120 |
+
*
|
2121 |
*/
|
2122 |
echo apply_filters( 'give_form_content_output', $output, $form_id, $args );
|
2123 |
|
2129 |
/**
|
2130 |
* Renders the hidden Checkout fields.
|
2131 |
*
|
2132 |
+
* @param int $form_id The form ID.
|
|
|
|
|
2133 |
*
|
2134 |
* @return void
|
2135 |
+
* @since 1.0
|
2136 |
+
*
|
2137 |
*/
|
2138 |
function give_checkout_hidden_fields( $form_id ) {
|
2139 |
|
2140 |
/**
|
2141 |
* Fires while rendering hidden checkout fields, before the fields.
|
2142 |
*
|
2143 |
+
* @param int $form_id The form ID.
|
2144 |
+
*
|
2145 |
* @since 1.0
|
2146 |
*
|
|
|
2147 |
*/
|
2148 |
do_action( 'give_hidden_fields_before', $form_id );
|
2149 |
|
2157 |
/**
|
2158 |
* Fires while rendering hidden checkout fields, after the fields.
|
2159 |
*
|
2160 |
+
* @param int $form_id The form ID.
|
2161 |
+
*
|
2162 |
* @since 1.0
|
2163 |
*
|
|
|
2164 |
*/
|
2165 |
do_action( 'give_hidden_fields_after', $form_id );
|
2166 |
|
2171 |
*
|
2172 |
* Applies filters to the success page content.
|
2173 |
*
|
2174 |
+
* @param string $content Content before filters.
|
|
|
|
|
2175 |
*
|
2176 |
* @return string $content Filtered content.
|
2177 |
+
* @since 1.0
|
2178 |
+
*
|
2179 |
*/
|
2180 |
function give_filter_success_page_content( $content ) {
|
2181 |
|
2213 |
*
|
2214 |
* If "Disable Guest Donations" and "Display Register / Login" is set to none.
|
2215 |
*
|
2216 |
+
* @param string $final_output
|
2217 |
+
* @param array $args
|
|
|
|
|
2218 |
*
|
2219 |
* @return string
|
2220 |
+
* @since 1.4.1
|
2221 |
+
*
|
2222 |
*/
|
2223 |
function give_members_only_form( $final_output, $args ) {
|
2224 |
|
2248 |
/**
|
2249 |
* Add donation form hidden fields.
|
2250 |
*
|
|
|
|
|
2251 |
* @param int $form_id
|
2252 |
* @param array $args
|
2253 |
* @param Give_Donate_Form $form
|
2254 |
+
*
|
2255 |
+
* @since 1.8.17
|
2256 |
+
*
|
2257 |
*/
|
2258 |
function __give_form_add_donation_hidden_field( $form_id, $args, $form ) {
|
2259 |
$id_prefix = ! empty( $args['id_prefix'] ) ? $args['id_prefix'] : '';
|
2271 |
if ( give_is_setting_enabled( $custom_amount ) ) {
|
2272 |
?>
|
2273 |
<input type="hidden" name="give-form-minimum"
|
2274 |
+
value="<?php echo give_maybe_sanitize_amount( give_get_form_minimum_price( $form_id ) ); ?>"/>
|
2275 |
<input type="hidden" name="give-form-maximum"
|
2276 |
+
value="<?php echo give_maybe_sanitize_amount( give_get_form_maximum_price( $form_id ) ); ?>"/>
|
2277 |
<?php
|
2278 |
}
|
2279 |
|
2309 |
/**
|
2310 |
* Add currency settings on donation form.
|
2311 |
*
|
|
|
|
|
2312 |
* @param array $form_html_tags
|
2313 |
* @param Give_Donate_Form $form
|
2314 |
*
|
2315 |
* @return array
|
2316 |
+
* @since 1.8.17
|
2317 |
+
*
|
2318 |
*/
|
2319 |
function __give_form_add_currency_settings( $form_html_tags, $form ) {
|
2320 |
$form_currency = give_get_currency( $form->ID );
|
2330 |
|
2331 |
if ( ! empty( $currency_settings ) ) {
|
2332 |
foreach ( $currency_settings as $key => $value ) {
|
2333 |
+
$form_html_tags["data-{$key}"] = $value;
|
2334 |
}
|
2335 |
}
|
2336 |
|
2342 |
/**
|
2343 |
* Adds classes to progress bar container.
|
2344 |
*
|
|
|
|
|
2345 |
* @param string $class_goal
|
2346 |
*
|
2347 |
* @return string
|
2348 |
+
* @since 2.1
|
2349 |
+
*
|
2350 |
*/
|
2351 |
function add_give_goal_progress_class( $class_goal ) {
|
2352 |
$class_goal = 'progress progress-striped active';
|
2357 |
/**
|
2358 |
* Adds classes to progress bar span tag.
|
2359 |
*
|
|
|
|
|
2360 |
* @param string $class_bar
|
2361 |
*
|
2362 |
* @return string
|
2363 |
+
* @since 2.1
|
2364 |
+
*
|
2365 |
*/
|
2366 |
function add_give_goal_progress_bar_class( $class_bar ) {
|
2367 |
$class_bar = 'bar';
|
2376 |
* @param int $id ID of the form.
|
2377 |
* @param array $args Additional args.
|
2378 |
*
|
2379 |
+
* @return array
|
2380 |
* @since 2.1
|
2381 |
*
|
|
|
2382 |
*/
|
2383 |
function add_class_for_form_grid( $class, $id, $args ) {
|
2384 |
$class[] = 'give-form-grid-wrap';
|
2413 |
* @param string $redirect URL for redirection.
|
2414 |
* @param array $args Array of additional args.
|
2415 |
*
|
|
|
2416 |
* @return string
|
2417 |
+
* @since 2.1
|
2418 |
*/
|
2419 |
function give_redirect_and_popup_form( $redirect, $args ) {
|
2420 |
|
includes/gateways/stripe/class-give-stripe.php
CHANGED
@@ -59,8 +59,14 @@ if ( ! class_exists( 'Give_Stripe' ) ) {
|
|
59 |
*/
|
60 |
public function includes() {
|
61 |
|
62 |
-
// Load Stripe SDK
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
// Include admin files.
|
66 |
require_once GIVE_PLUGIN_DIR . 'includes/gateways/stripe/includes/admin/admin-actions.php';
|
59 |
*/
|
60 |
public function includes() {
|
61 |
|
62 |
+
// Load Stripe SDK.
|
63 |
+
$stripe_sdk_compatibility = give_get_option( 'stripe_sdk_incompatibility', 'composer' );
|
64 |
+
|
65 |
+
if ( 'composer' === $stripe_sdk_compatibility ) {
|
66 |
+
require_once GIVE_PLUGIN_DIR . 'vendor/autoload.php';
|
67 |
+
} elseif ( 'manual' === $stripe_sdk_compatibility ) {
|
68 |
+
require_once GIVE_PLUGIN_DIR . 'vendor/stripe/stripe-php/init.php';
|
69 |
+
}
|
70 |
|
71 |
// Include admin files.
|
72 |
require_once GIVE_PLUGIN_DIR . 'includes/gateways/stripe/includes/admin/admin-actions.php';
|
includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php
CHANGED
@@ -332,6 +332,35 @@ if ( ! class_exists( 'Give_Stripe_Admin_Settings' ) ) {
|
|
332 |
*/
|
333 |
$settings = apply_filters( 'give_stripe_before_advanced_setting_fields', $settings );
|
334 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
$settings[] = array(
|
336 |
'name' => __( 'Stripe JS Incompatibility', 'give' ),
|
337 |
'desc' => __( 'If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing.', 'give' ),
|
@@ -537,7 +566,7 @@ if ( ! class_exists( 'Give_Stripe_Admin_Settings' ) ) {
|
|
537 |
echo sprintf(
|
538 |
/* translators: 1. Documentation on webhook setup. */
|
539 |
__( 'See our <a href="%1$s" target="_blank">documentation</a> for more information.', 'give' ),
|
540 |
-
esc_url_raw( '
|
541 |
);
|
542 |
?>
|
543 |
</p>
|
332 |
*/
|
333 |
$settings = apply_filters( 'give_stripe_before_advanced_setting_fields', $settings );
|
334 |
|
335 |
+
$settings[] = array(
|
336 |
+
'name' => __( 'Stripe SDK Compatibility', 'give' ),
|
337 |
+
'desc' => sprintf(
|
338 |
+
/* translators: 1. GiveWP Support URL */
|
339 |
+
__( 'If you are using another plugin that uses Stripe to accept payments there is a chance that it may include the <a href="%1$s" target="_blank">Stripe SDK</a> (Software Development Kit) either through <a href="%2$s" target="_blank">Composer</a> or manually initalized. This can cause conflicts with GiveWP because WordPress does not have a dependency management system to prevent conflicts. To help resolve conflicts we have included two options to use Stripe alongside these other plugins. The recommended way is Composer, but if that is not working then we recommend manual initialization. If both options do not work please <a href="%3$s" target="_blank">contact support</a>.', 'give' ),
|
340 |
+
esc_url_raw( 'https://github.com/stripe/stripe-php' ),
|
341 |
+
esc_url_raw( 'http://getcomposer.org/' ),
|
342 |
+
esc_url_raw( 'https://givewp.com/support' )
|
343 |
+
),
|
344 |
+
'id' => 'stripe_sdk_incompatibility',
|
345 |
+
'type' => 'radio_inline',
|
346 |
+
'options' => array(
|
347 |
+
'composer' => __( 'Composer Autoloading', 'give' ),
|
348 |
+
'manual' => __( 'Manual Initialization', 'give' ),
|
349 |
+
),
|
350 |
+
'default' => 'composer',
|
351 |
+
);
|
352 |
+
|
353 |
+
$settings[] = array(
|
354 |
+
'name' => __( 'Stripe Receipt Emails', 'give' ),
|
355 |
+
'desc' => sprintf(
|
356 |
+
/* translators: 1. GiveWP Support URL */
|
357 |
+
__( 'Check this option if you would like donors to receive receipt emails directly from Stripe. By default, donors will receive GiveWP generated <a href="%1$s" target="_blank">receipt emails</a>.', 'give' ),
|
358 |
+
admin_url( '/edit.php?post_type=give_forms&page=give-settings&tab=emails' )
|
359 |
+
),
|
360 |
+
'id' => 'stripe_receipt_emails',
|
361 |
+
'type' => 'checkbox',
|
362 |
+
);
|
363 |
+
|
364 |
$settings[] = array(
|
365 |
'name' => __( 'Stripe JS Incompatibility', 'give' ),
|
366 |
'desc' => __( 'If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing.', 'give' ),
|
566 |
echo sprintf(
|
567 |
/* translators: 1. Documentation on webhook setup. */
|
568 |
__( 'See our <a href="%1$s" target="_blank">documentation</a> for more information.', 'give' ),
|
569 |
+
esc_url_raw( 'http://docs.givewp.com/stripe-webhooks ' )
|
570 |
);
|
571 |
?>
|
572 |
</p>
|
includes/gateways/stripe/includes/class-give-stripe-gateway.php
CHANGED
@@ -557,7 +557,7 @@ if ( ! class_exists( 'Give_Stripe_Gateway' ) ) {
|
|
557 |
// Charge application fee, only if the Stripe premium add-on is not active.
|
558 |
if ( ! defined( 'GIVE_STRIPE_VERSION' ) ) {
|
559 |
// Set Application Fee Amount.
|
560 |
-
$charge_args['application_fee_amount'] = give_stripe_get_application_fee_amount( $charge_args['amount'] );
|
561 |
}
|
562 |
|
563 |
$charge = \Stripe\Charge::create(
|
557 |
// Charge application fee, only if the Stripe premium add-on is not active.
|
558 |
if ( ! defined( 'GIVE_STRIPE_VERSION' ) ) {
|
559 |
// Set Application Fee Amount.
|
560 |
+
$charge_args['application_fee_amount'] = give_stripe_format_amount( give_stripe_get_application_fee_amount( $charge_args['amount'] ) );
|
561 |
}
|
562 |
|
563 |
$charge = \Stripe\Charge::create(
|
includes/gateways/stripe/includes/class-give-stripe-payment-intent.php
CHANGED
@@ -42,7 +42,7 @@ if ( ! class_exists( 'Give_Stripe_Payment_Intent' ) ) {
|
|
42 |
|
43 |
// Add application fee, if the Stripe premium add-on is not active.
|
44 |
if ( ! defined( 'GIVE_STRIPE_VERSION' ) ) {
|
45 |
-
$args['application_fee_amount'] = give_stripe_get_application_fee_amount( $args['amount'] );
|
46 |
}
|
47 |
|
48 |
// Set Stripe Application Info.
|
@@ -118,7 +118,7 @@ if ( ! class_exists( 'Give_Stripe_Payment_Intent' ) ) {
|
|
118 |
|
119 |
// Add application fee, if the Stripe premium add-on is not active.
|
120 |
if ( ! defined( GIVE_STRIPE_VERSION ) ) {
|
121 |
-
$args['application_fee_amount'] = give_stripe_get_application_fee_amount( $args['amount'] );
|
122 |
}
|
123 |
|
124 |
// Set Stripe Application Info.
|
42 |
|
43 |
// Add application fee, if the Stripe premium add-on is not active.
|
44 |
if ( ! defined( 'GIVE_STRIPE_VERSION' ) ) {
|
45 |
+
$args['application_fee_amount'] = give_stripe_format_amount( give_stripe_get_application_fee_amount( $args['amount'] ) );
|
46 |
}
|
47 |
|
48 |
// Set Stripe Application Info.
|
118 |
|
119 |
// Add application fee, if the Stripe premium add-on is not active.
|
120 |
if ( ! defined( GIVE_STRIPE_VERSION ) ) {
|
121 |
+
$args['application_fee_amount'] = give_stripe_format_amount( give_stripe_get_application_fee_amount( $args['amount'] ) );
|
122 |
}
|
123 |
|
124 |
// Set Stripe Application Info.
|
includes/gateways/stripe/includes/class-give-stripe-webhooks.php
CHANGED
@@ -90,8 +90,8 @@ if ( ! class_exists( 'Give_Stripe_Webhooks' ) ) {
|
|
90 |
sprintf(
|
91 |
/* translators: 1. Event ID 2. Event Type 3. Message */
|
92 |
__( 'Webhook received with ID %1$s and TYPE %2$s which processed and returned a message %3$s.', 'give' ),
|
93 |
-
$
|
94 |
-
$
|
95 |
$message
|
96 |
)
|
97 |
);
|
90 |
sprintf(
|
91 |
/* translators: 1. Event ID 2. Event Type 3. Message */
|
92 |
__( 'Webhook received with ID %1$s and TYPE %2$s which processed and returned a message %3$s.', 'give' ),
|
93 |
+
$event->id,
|
94 |
+
$event->type,
|
95 |
$message
|
96 |
)
|
97 |
);
|
includes/gateways/stripe/includes/give-stripe-helpers.php
CHANGED
@@ -708,7 +708,12 @@ function give_stripe_set_app_info() {
|
|
708 |
* @return int
|
709 |
*/
|
710 |
function give_stripe_get_application_fee_percentage() {
|
711 |
-
|
|
|
|
|
|
|
|
|
|
|
712 |
}
|
713 |
|
714 |
/**
|
@@ -1069,7 +1074,6 @@ function give_stripe_process_payment( $donation_data, $stripe_gateway ) {
|
|
1069 |
'currency' => give_get_currency( $form_id ),
|
1070 |
'payment_method_types' => [ 'card' ],
|
1071 |
'statement_descriptor' => give_stripe_get_statement_descriptor(),
|
1072 |
-
'receipt_email' => $donation_data['user_email'],
|
1073 |
'description' => give_payment_gateway_donation_summary( $donation_data ),
|
1074 |
'metadata' => $stripe_gateway->prepare_metadata( $donation_id ),
|
1075 |
'customer' => $stripe_customer_id,
|
@@ -1078,7 +1082,13 @@ function give_stripe_process_payment( $donation_data, $stripe_gateway ) {
|
|
1078 |
'return_url' => give_get_success_page_uri(),
|
1079 |
)
|
1080 |
);
|
1081 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1082 |
|
1083 |
// Save Payment Intent Client Secret to donation note and DB.
|
1084 |
give_insert_payment_note( $donation_id, 'Stripe Payment Intent Client Secret: ' . $intent->client_secret );
|
@@ -1167,3 +1177,24 @@ function give_stripe_cents_to_dollars( $cents ) {
|
|
1167 |
function give_stripe_dollars_to_cents( $dollars ) {
|
1168 |
return round( $dollars, give_currency_decimal_filter() ) * 100;
|
1169 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
708 |
* @return int
|
709 |
*/
|
710 |
function give_stripe_get_application_fee_percentage() {
|
711 |
+
|
712 |
+
// Set Application Fee Percentage.
|
713 |
+
$fee_percentage = 2;
|
714 |
+
|
715 |
+
// Return the fee percentage based on the currency used.
|
716 |
+
return give_stripe_is_zero_decimal_currency() ? $fee_percentage : give_stripe_cents_to_dollars( $fee_percentage );
|
717 |
}
|
718 |
|
719 |
/**
|
1074 |
'currency' => give_get_currency( $form_id ),
|
1075 |
'payment_method_types' => [ 'card' ],
|
1076 |
'statement_descriptor' => give_stripe_get_statement_descriptor(),
|
|
|
1077 |
'description' => give_payment_gateway_donation_summary( $donation_data ),
|
1078 |
'metadata' => $stripe_gateway->prepare_metadata( $donation_id ),
|
1079 |
'customer' => $stripe_customer_id,
|
1082 |
'return_url' => give_get_success_page_uri(),
|
1083 |
)
|
1084 |
);
|
1085 |
+
|
1086 |
+
// Send Stripe Receipt emails when enabled.
|
1087 |
+
if ( give_is_setting_enabled( give_get_option( 'stripe_receipt_emails' ) ) ) {
|
1088 |
+
$intent_args['receipt_email'] = $donation_data['user_email'];
|
1089 |
+
}
|
1090 |
+
|
1091 |
+
$intent = $stripe_gateway->payment_intent->create( $intent_args );
|
1092 |
|
1093 |
// Save Payment Intent Client Secret to donation note and DB.
|
1094 |
give_insert_payment_note( $donation_id, 'Stripe Payment Intent Client Secret: ' . $intent->client_secret );
|
1177 |
function give_stripe_dollars_to_cents( $dollars ) {
|
1178 |
return round( $dollars, give_currency_decimal_filter() ) * 100;
|
1179 |
}
|
1180 |
+
|
1181 |
+
/**
|
1182 |
+
* Format currency for Stripe.
|
1183 |
+
*
|
1184 |
+
* @see https://support.stripe.com/questions/which-zero-decimal-currencies-does-stripe-support
|
1185 |
+
*
|
1186 |
+
* @param float $amount Donation amount.
|
1187 |
+
*
|
1188 |
+
* @since 2.5.4
|
1189 |
+
*
|
1190 |
+
* @return mixed
|
1191 |
+
*/
|
1192 |
+
function give_stripe_format_amount( $amount ) {
|
1193 |
+
|
1194 |
+
// Return donation amount based on whether the currency is zero decimal or not.
|
1195 |
+
if ( give_stripe_is_zero_decimal_currency() ) {
|
1196 |
+
return round( $amount );
|
1197 |
+
}
|
1198 |
+
|
1199 |
+
return give_stripe_dollars_to_cents( $amount );
|
1200 |
+
}
|
includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php
CHANGED
@@ -193,6 +193,21 @@ if ( ! class_exists( 'Give_Stripe_Card' ) ) {
|
|
193 |
// Record the pending payment in Give.
|
194 |
$donation_id = give_insert_payment( $payment_data );
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
// Assign required data to array of donation data for future reference.
|
197 |
$donation_data['donation_id'] = $donation_id;
|
198 |
$donation_data['description'] = $donation_summary;
|
@@ -232,7 +247,6 @@ if ( ! class_exists( 'Give_Stripe_Card' ) ) {
|
|
232 |
'currency' => give_get_currency( $form_id ),
|
233 |
'payment_method_types' => [ 'card' ],
|
234 |
'statement_descriptor' => give_stripe_get_statement_descriptor(),
|
235 |
-
'receipt_email' => $donation_data['user_email'],
|
236 |
'description' => give_payment_gateway_donation_summary( $donation_data ),
|
237 |
'metadata' => $this->prepare_metadata( $donation_id ),
|
238 |
'customer' => $stripe_customer_id,
|
@@ -241,7 +255,13 @@ if ( ! class_exists( 'Give_Stripe_Card' ) ) {
|
|
241 |
'return_url' => give_get_success_page_uri(),
|
242 |
)
|
243 |
);
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
|
246 |
// Save Payment Intent Client Secret to donation note and DB.
|
247 |
give_insert_payment_note( $donation_id, 'Stripe Payment Intent Client Secret: ' . $intent->client_secret );
|
193 |
// Record the pending payment in Give.
|
194 |
$donation_id = give_insert_payment( $payment_data );
|
195 |
|
196 |
+
// Return error, if donation id doesn't exists.
|
197 |
+
if ( ! $donation_id ) {
|
198 |
+
give_record_gateway_error(
|
199 |
+
__( 'Donation creating error', 'give' ),
|
200 |
+
sprintf(
|
201 |
+
/* translators: %s Donation Data */
|
202 |
+
__( 'Unable to create a pending donation. Details: %s', 'give' ),
|
203 |
+
wp_json_encode( $donation_data )
|
204 |
+
)
|
205 |
+
);
|
206 |
+
give_set_error( 'stripe_error', __( 'The Stripe Gateway returned an error while creating a pending donation.', 'give' ) );
|
207 |
+
give_send_back_to_checkout( '?payment-mode=' . give_clean( $_GET['payment-mode'] ) );
|
208 |
+
return false;
|
209 |
+
}
|
210 |
+
|
211 |
// Assign required data to array of donation data for future reference.
|
212 |
$donation_data['donation_id'] = $donation_id;
|
213 |
$donation_data['description'] = $donation_summary;
|
247 |
'currency' => give_get_currency( $form_id ),
|
248 |
'payment_method_types' => [ 'card' ],
|
249 |
'statement_descriptor' => give_stripe_get_statement_descriptor(),
|
|
|
250 |
'description' => give_payment_gateway_donation_summary( $donation_data ),
|
251 |
'metadata' => $this->prepare_metadata( $donation_id ),
|
252 |
'customer' => $stripe_customer_id,
|
255 |
'return_url' => give_get_success_page_uri(),
|
256 |
)
|
257 |
);
|
258 |
+
|
259 |
+
// Send Stripe Receipt emails when enabled.
|
260 |
+
if ( give_is_setting_enabled( give_get_option( 'stripe_receipt_emails' ) ) ) {
|
261 |
+
$intent_args['receipt_email'] = $donation_data['user_email'];
|
262 |
+
}
|
263 |
+
|
264 |
+
$intent = $this->payment_intent->create( $intent_args );
|
265 |
|
266 |
// Save Payment Intent Client Secret to donation note and DB.
|
267 |
give_insert_payment_note( $donation_id, 'Stripe Payment Intent Client Secret: ' . $intent->client_secret );
|
includes/gateways/stripe/stripe-sdk/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
6.40.0
|
|
includes/plugin-compatibility.php
CHANGED
@@ -12,11 +12,31 @@
|
|
12 |
*/
|
13 |
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* Disables the mandrill_nl2br filter while sending Give emails.
|
17 |
*
|
18 |
-
* @since 1.4
|
19 |
* @return void
|
|
|
20 |
*/
|
21 |
function give_disable_mandrill_nl2br() {
|
22 |
add_filter( 'mandrill_nl2br', '__return_false' );
|
@@ -28,9 +48,9 @@ add_action( 'give_email_send_before', 'give_disable_mandrill_nl2br' );
|
|
28 |
/**
|
29 |
* This function will clear the Yoast SEO sitemap cache on update of settings
|
30 |
*
|
|
|
31 |
* @since 1.8.9
|
32 |
*
|
33 |
-
* @return void
|
34 |
*/
|
35 |
function give_clear_seo_sitemap_cache_on_settings_change() {
|
36 |
// Load required file if the fn 'is_plugin_active' doesn't exists.
|
@@ -69,9 +89,9 @@ add_action( 'give-settings_save_display', 'give_clear_seo_sitemap_cache_on_setti
|
|
69 |
*
|
70 |
* See link: https://github.com/impress-org/give/issues/3171#issuecomment-387471355
|
71 |
*
|
|
|
72 |
* @since 2.1.3
|
73 |
*
|
74 |
-
* @return boolean
|
75 |
*/
|
76 |
function give_elementor_hide_shortcodes_button() {
|
77 |
|
12 |
*/
|
13 |
|
14 |
|
15 |
+
/**
|
16 |
+
* If Tickera is active then allow TCPDF calls in HTML.
|
17 |
+
*
|
18 |
+
* TCPDF defines this as false by default as a security precaution. Because Tickera uses GiveWP's composer autoloaded
|
19 |
+
* TCPDF the constant is false. Therefore, we will set it to true so the QR code feature works as expected.
|
20 |
+
*
|
21 |
+
* GitHub Issue:
|
22 |
+
* See: https://tcpdf.org/examples/example_049/
|
23 |
+
*
|
24 |
+
* @since 2.5.4
|
25 |
+
*
|
26 |
+
*/
|
27 |
+
function give_tickera_qr_compatibility() {
|
28 |
+
if ( is_plugin_active( 'tickera-event-ticketing-system/tickera.php' ) ) {
|
29 |
+
define( 'K_TCPDF_CALLS_IN_HTML', true );
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
+
add_action( 'plugins_loaded', 'give_tickera_qr_compatibility' );
|
34 |
+
|
35 |
/**
|
36 |
* Disables the mandrill_nl2br filter while sending Give emails.
|
37 |
*
|
|
|
38 |
* @return void
|
39 |
+
* @since 1.4
|
40 |
*/
|
41 |
function give_disable_mandrill_nl2br() {
|
42 |
add_filter( 'mandrill_nl2br', '__return_false' );
|
48 |
/**
|
49 |
* This function will clear the Yoast SEO sitemap cache on update of settings
|
50 |
*
|
51 |
+
* @return void
|
52 |
* @since 1.8.9
|
53 |
*
|
|
|
54 |
*/
|
55 |
function give_clear_seo_sitemap_cache_on_settings_change() {
|
56 |
// Load required file if the fn 'is_plugin_active' doesn't exists.
|
89 |
*
|
90 |
* See link: https://github.com/impress-org/give/issues/3171#issuecomment-387471355
|
91 |
*
|
92 |
+
* @return boolean
|
93 |
* @since 2.1.3
|
94 |
*
|
|
|
95 |
*/
|
96 |
function give_elementor_hide_shortcodes_button() {
|
97 |
|
languages/give.pot
CHANGED
@@ -19,35 +19,35 @@ msgstr ""
|
|
19 |
msgid "Cheatin’ huh?"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: give.php:
|
23 |
msgid "Your site could be faster and more secure with a newer PHP version."
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: give.php:
|
27 |
msgid "Hey, we've noticed that you're running an outdated version of PHP. PHP is the programming language that WordPress and Give are built on. The version that is currently used for your site is no longer supported. Newer versions of PHP are both faster and more secure. In fact, your version of PHP no longer receives security updates, which is why we're sending you this notice."
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: give.php:
|
31 |
msgid "Hosts have the ability to update your PHP version, but sometimes they don't dare to do that because they're afraid they'll break your site."
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: give.php:
|
35 |
msgid "To which version should I update?"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: give.php:
|
39 |
msgid "You should update your PHP version to either 5.6 or to 7.0 or 7.1. On a normal WordPress site, switching to PHP 5.6 should never cause issues. We would however actually recommend you switch to PHP7. There are some plugins that are not ready for PHP7 though, so do some testing first. PHP7 is much faster than PHP 5.6. It's also the only PHP version still in active development and therefore the better option for your site in the long run."
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: give.php:
|
43 |
msgid "Can't update? Ask your host!"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: give.php:
|
47 |
msgid "If you cannot upgrade your PHP version yourself, you can send an email to your host. If they don't want to upgrade your PHP version, we would suggest you switch hosts. Have a look at one of the recommended %1$sWordPress hosting partners%2$s."
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: give.php:
|
51 |
msgid "<strong>Attention:</strong> Give 2.5.0+ requires the latest version of the Recurring Donations add-on to process payments properly with Stripe. Please update to the latest version add-on to resolve compatibility issues. If your license is active, you should see the update available in WordPress. Otherwise, you can access the latest version by <a href=\"%1$s\" target=\"_blank\">logging into your account</a> and visiting <a href=\"%1$s\" target=\"_blank\">your downloads</a> page on the GiveWP website."
|
52 |
msgstr ""
|
53 |
|
@@ -63,7 +63,7 @@ msgstr ""
|
|
63 |
msgid "Give version %s is required to update this add-on."
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: includes/ajax-functions.php:202, includes/country-functions.php:502, includes/country-functions.php:550, includes/country-functions.php:801, includes/admin/import-functions.php:457, includes/forms/template.php:
|
67 |
msgid "State"
|
68 |
msgstr ""
|
69 |
|
@@ -241,7 +241,7 @@ msgstr ""
|
|
241 |
msgid "s_no"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: includes/class-give-cli-commands.php:621, includes/post-types.php:118, includes/admin/class-blank-slate.php:273, includes/admin/class-blank-slate.php:277, includes/admin/class-give-html-elements.php:104, includes/emails/template.php:169, includes/admin/donors/donors.php:
|
245 |
msgid "No donations found."
|
246 |
msgstr ""
|
247 |
|
@@ -441,7 +441,7 @@ msgstr ""
|
|
441 |
msgid "Give Donor"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: includes/class-give-scripts.php:202, includes/admin/add-ons/actions.php:
|
445 |
msgid "Sorry, you entered an invalid key."
|
446 |
msgstr ""
|
447 |
|
@@ -457,7 +457,7 @@ msgstr ""
|
|
457 |
msgid "The add-on did not activate successfully."
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: includes/class-give-scripts.php:225, includes/class-give-scripts.php:278, includes/forms/template.php:
|
461 |
msgid "Cancel"
|
462 |
msgstr ""
|
463 |
|
@@ -479,7 +479,7 @@ msgstr ""
|
|
479 |
|
480 |
#. translators: %s Stripe User ID
|
481 |
#. translators: %s Stripe User ID
|
482 |
-
#: includes/class-give-scripts.php:252, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
483 |
msgid "Are you sure you want to disconnect Give from Stripe? If disconnected, this website and any others sharing the same Stripe account (%s) that are connected to Give will need to reconnect in order to process payments."
|
484 |
msgstr ""
|
485 |
|
@@ -523,7 +523,7 @@ msgstr ""
|
|
523 |
msgid "Ok"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: includes/class-give-scripts.php:280, includes/class-notices.php:632, includes/formatting.php:
|
527 |
msgid "Error"
|
528 |
msgstr ""
|
529 |
|
@@ -5515,35 +5515,35 @@ msgstr ""
|
|
5515 |
msgid "Zambian kwacha (%1$s)"
|
5516 |
msgstr ""
|
5517 |
|
5518 |
-
#: includes/formatting.php:
|
5519 |
msgid "%s arab"
|
5520 |
msgstr ""
|
5521 |
|
5522 |
-
#: includes/formatting.php:
|
5523 |
msgid "%s crore"
|
5524 |
msgstr ""
|
5525 |
|
5526 |
-
#: includes/formatting.php:
|
5527 |
msgid "%s lakh"
|
5528 |
msgstr ""
|
5529 |
|
5530 |
-
#: includes/formatting.php:
|
5531 |
msgid "%s trillion"
|
5532 |
msgstr ""
|
5533 |
|
5534 |
-
#: includes/formatting.php:
|
5535 |
msgid "%s billion"
|
5536 |
msgstr ""
|
5537 |
|
5538 |
-
#: includes/formatting.php:
|
5539 |
msgid "%s million"
|
5540 |
msgstr ""
|
5541 |
|
5542 |
-
#: includes/formatting.php:
|
5543 |
msgid "We're unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance."
|
5544 |
msgstr ""
|
5545 |
|
5546 |
-
#: includes/install.php:356, includes/forms/template.php:
|
5547 |
msgid "Agree to Terms?"
|
5548 |
msgstr ""
|
5549 |
|
@@ -5683,7 +5683,7 @@ msgstr ""
|
|
5683 |
msgid "You must be logged in to view this donation receipt."
|
5684 |
msgstr ""
|
5685 |
|
5686 |
-
#: includes/post-types.php:55, includes/post-types.php:259, includes/admin/donors/class-donor-table.php:118, includes/admin/donors/donors.php:
|
5687 |
msgid "Form"
|
5688 |
msgstr ""
|
5689 |
|
@@ -5707,7 +5707,7 @@ msgstr ""
|
|
5707 |
msgid "All Forms"
|
5708 |
msgstr ""
|
5709 |
|
5710 |
-
#: includes/post-types.php:61, includes/post-types.php:418, includes/post-types.php:419, includes/post-types.php:420, includes/post-types.php:421, includes/post-types.php:422, includes/admin/donors/donors.php:
|
5711 |
msgid "View Form"
|
5712 |
msgstr ""
|
5713 |
|
@@ -5757,7 +5757,7 @@ msgstr ""
|
|
5757 |
msgid "All Donations"
|
5758 |
msgstr ""
|
5759 |
|
5760 |
-
#: includes/post-types.php:116, includes/admin/donors/donors.php:
|
5761 |
msgid "View Donation"
|
5762 |
msgstr ""
|
5763 |
|
@@ -6057,7 +6057,7 @@ msgstr ""
|
|
6057 |
msgid "Please enter your username or email to log in."
|
6058 |
msgstr ""
|
6059 |
|
6060 |
-
#: includes/process-donation.php:943, templates/shortcode-login.php:51, includes/forms/template.php:
|
6061 |
msgid "Reset Password"
|
6062 |
msgstr ""
|
6063 |
|
@@ -6122,7 +6122,7 @@ msgstr ""
|
|
6122 |
msgid "Hey! We've raised {total} of the {total_goal} we are trying to raise for this campaign!"
|
6123 |
msgstr ""
|
6124 |
|
6125 |
-
#: includes/shortcodes.php:558, includes/forms/template.php:
|
6126 |
msgid "Donate Now"
|
6127 |
msgstr ""
|
6128 |
|
@@ -6179,7 +6179,7 @@ msgstr ""
|
|
6179 |
msgid "Donation Email:"
|
6180 |
msgstr ""
|
6181 |
|
6182 |
-
#: templates/email-login-form.php:108, templates/shortcode-profile-editor.php:118, includes/admin/import-functions.php:473, includes/forms/template.php:
|
6183 |
msgid "Email Address"
|
6184 |
msgstr ""
|
6185 |
|
@@ -6187,11 +6187,11 @@ msgstr ""
|
|
6187 |
msgid "Verify Email"
|
6188 |
msgstr ""
|
6189 |
|
6190 |
-
#: templates/history-donations.php:67, includes/admin/donors/donors.php:
|
6191 |
msgid "ID"
|
6192 |
msgstr ""
|
6193 |
|
6194 |
-
#: templates/history-donations.php:68, templates/shortcode-receipt.php:63, includes/admin/import-functions.php:423, includes/admin/donors/donors.php:
|
6195 |
msgid "Date"
|
6196 |
msgstr ""
|
6197 |
|
@@ -6199,11 +6199,11 @@ msgstr ""
|
|
6199 |
msgid "Donor"
|
6200 |
msgstr ""
|
6201 |
|
6202 |
-
#: templates/history-donations.php:70, includes/admin/import-functions.php:410, includes/admin/donors/donors.php:
|
6203 |
msgid "Amount"
|
6204 |
msgstr ""
|
6205 |
|
6206 |
-
#: templates/history-donations.php:71, includes/admin/import-functions.php:477, includes/admin/donors/donors.php:
|
6207 |
msgid "Status"
|
6208 |
msgstr ""
|
6209 |
|
@@ -6241,25 +6241,25 @@ msgid "Anonymous"
|
|
6241 |
msgstr ""
|
6242 |
|
6243 |
#. translators: 1: amount of income raised 2: goal target amount.
|
6244 |
-
#: templates/shortcode-goal.php:
|
6245 |
-
msgid "<span class=\"income\"
|
6246 |
msgstr ""
|
6247 |
|
6248 |
#. translators: %s: percentage of the amount raised compared to the goal target
|
6249 |
#. translators: %s: percentage of the amount raised compared to the goal target
|
6250 |
-
#: templates/shortcode-goal.php:
|
6251 |
msgid "<span class=\"give-percentage\">%s%%</span> funded"
|
6252 |
msgstr ""
|
6253 |
|
6254 |
#. translators: 1: total number of donations completed 2: total number of donations set as goal
|
6255 |
-
#: templates/shortcode-goal.php:
|
6256 |
msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donation"
|
6257 |
msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donations"
|
6258 |
msgstr[0] ""
|
6259 |
msgstr[1] ""
|
6260 |
|
6261 |
#. translators: 1: total number of donors completed 2: total number of donors set as goal
|
6262 |
-
#: templates/shortcode-goal.php:
|
6263 |
msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donor"
|
6264 |
msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donors"
|
6265 |
msgstr[0] ""
|
@@ -6273,7 +6273,7 @@ msgstr ""
|
|
6273 |
msgid "Username"
|
6274 |
msgstr ""
|
6275 |
|
6276 |
-
#: templates/shortcode-login.php:38, templates/shortcode-register.php:44, includes/forms/template.php:
|
6277 |
msgid "Password"
|
6278 |
msgstr ""
|
6279 |
|
@@ -6306,15 +6306,15 @@ msgstr ""
|
|
6306 |
msgid "Change your Name"
|
6307 |
msgstr ""
|
6308 |
|
6309 |
-
#: templates/shortcode-profile-editor.php:52, includes/admin/class-give-welcome.php:685, includes/admin/class-give-welcome.php:687, includes/admin/import-functions.php:435, includes/forms/template.php:
|
6310 |
msgid "First Name"
|
6311 |
msgstr ""
|
6312 |
|
6313 |
-
#: templates/shortcode-profile-editor.php:60, includes/admin/class-give-welcome.php:692, includes/admin/class-give-welcome.php:694, includes/admin/import-functions.php:441, includes/forms/template.php:
|
6314 |
msgid "Last Name"
|
6315 |
msgstr ""
|
6316 |
|
6317 |
-
#: templates/shortcode-profile-editor.php:67, templates/shortcode-receipt.php:56, includes/admin/import-functions.php:445, includes/forms/template.php:
|
6318 |
msgid "Company Name"
|
6319 |
msgstr ""
|
6320 |
|
@@ -6422,7 +6422,7 @@ msgstr ""
|
|
6422 |
msgid "Register a New Account"
|
6423 |
msgstr ""
|
6424 |
|
6425 |
-
#: templates/shortcode-register.php:39, includes/admin/import-functions.php:472, includes/admin/donors/class-donor-table.php:286, includes/admin/donors/donors.php:
|
6426 |
msgid "Email"
|
6427 |
msgstr ""
|
6428 |
|
@@ -7272,7 +7272,7 @@ msgstr ""
|
|
7272 |
msgid "Company"
|
7273 |
msgstr ""
|
7274 |
|
7275 |
-
#: includes/admin/import-functions.php:451, includes/forms/template.php:
|
7276 |
msgid "Address 1"
|
7277 |
msgstr ""
|
7278 |
|
@@ -7280,15 +7280,15 @@ msgstr ""
|
|
7280 |
msgid "Address"
|
7281 |
msgstr ""
|
7282 |
|
7283 |
-
#: includes/admin/import-functions.php:454, includes/forms/template.php:
|
7284 |
msgid "Address 2"
|
7285 |
msgstr ""
|
7286 |
|
7287 |
-
#: includes/admin/import-functions.php:455, includes/forms/template.php:
|
7288 |
msgid "City"
|
7289 |
msgstr ""
|
7290 |
|
7291 |
-
#: includes/admin/import-functions.php:462, includes/forms/template.php:
|
7292 |
msgid "Country"
|
7293 |
msgstr ""
|
7294 |
|
@@ -7328,7 +7328,7 @@ msgstr ""
|
|
7328 |
msgid "Gateway"
|
7329 |
msgstr ""
|
7330 |
|
7331 |
-
#: includes/admin/import-functions.php:485, includes/admin/donors/donors.php:
|
7332 |
msgid "Notes"
|
7333 |
msgstr ""
|
7334 |
|
@@ -7368,7 +7368,7 @@ msgstr ""
|
|
7368 |
msgid "Form Name"
|
7369 |
msgstr ""
|
7370 |
|
7371 |
-
#: includes/admin/import-functions.php:533, includes/forms/template.php:
|
7372 |
msgid "Title"
|
7373 |
msgstr ""
|
7374 |
|
@@ -7890,243 +7890,243 @@ msgstr ""
|
|
7890 |
msgid "Ms."
|
7891 |
msgstr ""
|
7892 |
|
7893 |
-
#: includes/forms/template.php:
|
7894 |
msgid "Donation Amount:"
|
7895 |
msgstr ""
|
7896 |
|
7897 |
-
#: includes/forms/template.php:
|
7898 |
msgid "Give a Custom Amount"
|
7899 |
msgstr ""
|
7900 |
|
7901 |
-
#: includes/forms/template.php:
|
7902 |
msgid "Choose Your Donation Amount"
|
7903 |
msgstr ""
|
7904 |
|
7905 |
-
#: includes/forms/template.php:
|
7906 |
msgid "Personal Info"
|
7907 |
msgstr ""
|
7908 |
|
7909 |
-
#: includes/forms/template.php:
|
7910 |
msgid "Title is used to personalize your donation record.."
|
7911 |
msgstr ""
|
7912 |
|
7913 |
-
#: includes/forms/template.php:
|
7914 |
msgid "First Name is used to personalize your donation record."
|
7915 |
msgstr ""
|
7916 |
|
7917 |
-
#: includes/forms/template.php:
|
7918 |
msgid "Last Name is used to personalize your donation record."
|
7919 |
msgstr ""
|
7920 |
|
7921 |
-
#: includes/forms/template.php:
|
7922 |
msgid "Donate on behalf of Company"
|
7923 |
msgstr ""
|
7924 |
|
7925 |
-
#: includes/forms/template.php:
|
7926 |
msgid "We will send the donation receipt to this address."
|
7927 |
msgstr ""
|
7928 |
|
7929 |
-
#: includes/forms/template.php:
|
7930 |
msgid "Make this an anonymous donation."
|
7931 |
msgstr ""
|
7932 |
|
7933 |
-
#: includes/forms/template.php:
|
7934 |
msgid "Would you like to prevent your name, image, and comment from being displayed publicly?"
|
7935 |
msgstr ""
|
7936 |
|
7937 |
-
#: includes/forms/template.php:
|
7938 |
msgid "Would you like to prevent your name and image from being displayed publicly?"
|
7939 |
msgstr ""
|
7940 |
|
7941 |
-
#: includes/forms/template.php:
|
7942 |
msgid "Comment"
|
7943 |
msgstr ""
|
7944 |
|
7945 |
-
#: includes/forms/template.php:
|
7946 |
msgid "Would you like to add a comment to this donation?"
|
7947 |
msgstr ""
|
7948 |
|
7949 |
-
#: includes/forms/template.php:
|
7950 |
msgid "Leave a comment"
|
7951 |
msgstr ""
|
7952 |
|
7953 |
-
#: includes/forms/template.php:
|
7954 |
msgid "Credit Card Info"
|
7955 |
msgstr ""
|
7956 |
|
7957 |
-
#: includes/forms/template.php:
|
7958 |
msgid "This is a secure SSL encrypted payment."
|
7959 |
msgstr ""
|
7960 |
|
7961 |
-
#: includes/forms/template.php:
|
7962 |
msgid "Card Number"
|
7963 |
msgstr ""
|
7964 |
|
7965 |
-
#: includes/forms/template.php:
|
7966 |
msgid "The (typically) 16 digits on the front of your credit card."
|
7967 |
msgstr ""
|
7968 |
|
7969 |
-
#: includes/forms/template.php:
|
7970 |
msgid "Card number"
|
7971 |
msgstr ""
|
7972 |
|
7973 |
-
#: includes/forms/template.php:
|
7974 |
msgid "CVC"
|
7975 |
msgstr ""
|
7976 |
|
7977 |
-
#: includes/forms/template.php:
|
7978 |
msgid "The 3 digit (back) or 4 digit (front) value on your card."
|
7979 |
msgstr ""
|
7980 |
|
7981 |
-
#: includes/forms/template.php:
|
7982 |
msgid "Security code"
|
7983 |
msgstr ""
|
7984 |
|
7985 |
-
#: includes/forms/template.php:
|
7986 |
msgid "Cardholder Name"
|
7987 |
msgstr ""
|
7988 |
|
7989 |
-
#: includes/forms/template.php:
|
7990 |
msgid "The name of the credit card account holder."
|
7991 |
msgstr ""
|
7992 |
|
7993 |
-
#: includes/forms/template.php:
|
7994 |
msgid "Expiration"
|
7995 |
msgstr ""
|
7996 |
|
7997 |
-
#: includes/forms/template.php:
|
7998 |
msgid "The date your credit card expires, typically on the front of the card."
|
7999 |
msgstr ""
|
8000 |
|
8001 |
-
#: includes/forms/template.php:
|
8002 |
msgid "MM / YY"
|
8003 |
msgstr ""
|
8004 |
|
8005 |
-
#: includes/forms/template.php:
|
8006 |
msgid "Billing Details"
|
8007 |
msgstr ""
|
8008 |
|
8009 |
-
#: includes/forms/template.php:
|
8010 |
msgid "The country for your billing address."
|
8011 |
msgstr ""
|
8012 |
|
8013 |
-
#: includes/forms/template.php:
|
8014 |
msgid "The primary billing address for your credit card."
|
8015 |
msgstr ""
|
8016 |
|
8017 |
-
#: includes/forms/template.php:
|
8018 |
msgid "Address line 1"
|
8019 |
msgstr ""
|
8020 |
|
8021 |
-
#: includes/forms/template.php:
|
8022 |
msgid "(optional) The suite, apartment number, post office box (etc) associated with your billing address."
|
8023 |
msgstr ""
|
8024 |
|
8025 |
-
#: includes/forms/template.php:
|
8026 |
msgid "Address line 2"
|
8027 |
msgstr ""
|
8028 |
|
8029 |
-
#: includes/forms/template.php:
|
8030 |
msgid "The city for your billing address."
|
8031 |
msgstr ""
|
8032 |
|
8033 |
-
#: includes/forms/template.php:
|
8034 |
msgid "The state, province, or county for your billing address."
|
8035 |
msgstr ""
|
8036 |
|
8037 |
-
#: includes/forms/template.php:
|
8038 |
msgid "Zip / Postal Code"
|
8039 |
msgstr ""
|
8040 |
|
8041 |
-
#: includes/forms/template.php:
|
8042 |
-
msgid "The
|
8043 |
msgstr ""
|
8044 |
|
8045 |
-
#: includes/forms/template.php:
|
8046 |
msgid "Registration is required to donate."
|
8047 |
msgstr ""
|
8048 |
|
8049 |
-
#: includes/forms/template.php:
|
8050 |
msgid "Create an account"
|
8051 |
msgstr ""
|
8052 |
|
8053 |
-
#: includes/forms/template.php:
|
8054 |
msgid "Create an account on the site to see and manage donation history."
|
8055 |
msgstr ""
|
8056 |
|
8057 |
-
#: includes/forms/template.php:
|
8058 |
msgid "Already have an account?"
|
8059 |
msgstr ""
|
8060 |
|
8061 |
-
#: includes/forms/template.php:
|
8062 |
msgid "Login"
|
8063 |
msgstr ""
|
8064 |
|
8065 |
-
#: includes/forms/template.php:
|
8066 |
msgid "Log In to Your Account"
|
8067 |
msgstr ""
|
8068 |
|
8069 |
-
#: includes/forms/template.php:
|
8070 |
msgid "(optional)"
|
8071 |
msgstr ""
|
8072 |
|
8073 |
-
#: includes/forms/template.php:
|
8074 |
msgid "Don't have an account?"
|
8075 |
msgstr ""
|
8076 |
|
8077 |
-
#: includes/forms/template.php:
|
8078 |
msgid "Register as a part of your donation »"
|
8079 |
msgstr ""
|
8080 |
|
8081 |
-
#: includes/forms/template.php:
|
8082 |
msgid "Register or donate as a guest »"
|
8083 |
msgstr ""
|
8084 |
|
8085 |
-
#: includes/forms/template.php:
|
8086 |
msgid "Username or Email Address"
|
8087 |
msgstr ""
|
8088 |
|
8089 |
-
#: includes/forms/template.php:
|
8090 |
msgid "Your username or email"
|
8091 |
msgstr ""
|
8092 |
|
8093 |
-
#: includes/forms/template.php:
|
8094 |
msgid "Your password"
|
8095 |
msgstr ""
|
8096 |
|
8097 |
-
#: includes/forms/template.php:
|
8098 |
msgid "Select Payment Method"
|
8099 |
msgstr ""
|
8100 |
|
8101 |
-
#: includes/forms/template.php:
|
8102 |
msgid "Please enter valid terms and conditions in <a href=\"%s\">this form's settings</a>."
|
8103 |
msgstr ""
|
8104 |
|
8105 |
-
#: includes/forms/template.php:
|
8106 |
msgid "Terms"
|
8107 |
msgstr ""
|
8108 |
|
8109 |
-
#: includes/forms/template.php:
|
8110 |
msgid "Show Terms"
|
8111 |
msgstr ""
|
8112 |
|
8113 |
-
#: includes/forms/template.php:
|
8114 |
msgid "Hide Terms"
|
8115 |
msgstr ""
|
8116 |
|
8117 |
-
#: includes/forms/template.php:
|
8118 |
msgid "Donation Total:"
|
8119 |
msgstr ""
|
8120 |
|
8121 |
-
#: includes/forms/template.php:
|
8122 |
msgid "Notice:"
|
8123 |
msgstr ""
|
8124 |
|
8125 |
-
#: includes/forms/template.php:
|
8126 |
msgid "Test mode is enabled. While in test mode no live donations are processed."
|
8127 |
msgstr ""
|
8128 |
|
8129 |
-
#: includes/forms/template.php:
|
8130 |
msgid "Please log in in order to complete your donation."
|
8131 |
msgstr ""
|
8132 |
|
@@ -8613,51 +8613,47 @@ msgstr ""
|
|
8613 |
msgid "Russian Rubles"
|
8614 |
msgstr ""
|
8615 |
|
8616 |
-
#: includes/admin/add-ons/actions.php:
|
8617 |
msgid "Sorry, you are not allowed to upload add-ons on this site."
|
8618 |
msgstr ""
|
8619 |
|
8620 |
-
#: includes/admin/add-ons/actions.php:
|
8621 |
-
msgid "Please upload a valid add-on file."
|
8622 |
-
msgstr ""
|
8623 |
-
|
8624 |
-
#: includes/admin/add-ons/actions.php:49
|
8625 |
msgid "Sorry, you can not upload plugins because Give does not have direct access to the file system. Please <a href=\"%1$s\" target=\"_blank\">click here</a> to upload the add-on."
|
8626 |
msgstr ""
|
8627 |
|
8628 |
-
#: includes/admin/add-ons/actions.php:
|
8629 |
msgid "Only zip file type allowed to upload. Please upload a valid add-on file."
|
8630 |
msgstr ""
|
8631 |
|
8632 |
-
#: includes/admin/add-ons/actions.php:
|
8633 |
msgid "This add-on is already installed."
|
8634 |
msgstr ""
|
8635 |
|
8636 |
-
#: includes/admin/add-ons/actions.php:
|
8637 |
msgid "File system does not load correctly."
|
8638 |
msgstr ""
|
8639 |
|
8640 |
-
#: includes/admin/add-ons/actions.php:
|
8641 |
msgid "This license key is already in use on this website."
|
8642 |
msgstr ""
|
8643 |
|
8644 |
-
#: includes/admin/add-ons/actions.php:
|
8645 |
msgid "We are unable to deactivate invalid license"
|
8646 |
msgstr ""
|
8647 |
|
8648 |
-
#: includes/admin/add-ons/actions.php:
|
8649 |
msgid "You have successfully deactivated the license."
|
8650 |
msgstr ""
|
8651 |
|
8652 |
-
#: includes/admin/add-ons/actions.php:
|
8653 |
msgid "Last refreshed on %1$s at %2$s"
|
8654 |
msgstr ""
|
8655 |
|
8656 |
-
#: includes/admin/add-ons/actions.php:
|
8657 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s."
|
8658 |
msgstr ""
|
8659 |
|
8660 |
-
#: includes/admin/add-ons/actions.php:
|
8661 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s."
|
8662 |
msgstr ""
|
8663 |
|
@@ -8725,7 +8721,7 @@ msgstr ""
|
|
8725 |
msgid "Are you sure you want to delete the selected donor(s)?"
|
8726 |
msgstr ""
|
8727 |
|
8728 |
-
#: includes/admin/donors/class-donor-table.php:575, includes/admin/donors/donors.php:
|
8729 |
msgid "Delete all associated donations and records?"
|
8730 |
msgstr ""
|
8731 |
|
@@ -8803,7 +8799,7 @@ msgstr ""
|
|
8803 |
msgid "Donor Notes"
|
8804 |
msgstr ""
|
8805 |
|
8806 |
-
#: includes/admin/donors/donor-functions.php:77, includes/admin/donors/donors.php:
|
8807 |
msgid "Delete Donor"
|
8808 |
msgstr ""
|
8809 |
|
@@ -8811,7 +8807,7 @@ msgstr ""
|
|
8811 |
msgid "Edit"
|
8812 |
msgstr ""
|
8813 |
|
8814 |
-
#: includes/admin/donors/donors.php:75, includes/admin/donors/donors.php:
|
8815 |
msgid "Remove"
|
8816 |
msgstr ""
|
8817 |
|
@@ -8824,155 +8820,158 @@ msgstr ""
|
|
8824 |
msgid "Edit Donor: %s %s"
|
8825 |
msgstr ""
|
8826 |
|
8827 |
-
#: includes/admin/donors/donors.php:
|
|
|
|
|
|
|
8828 |
msgid "Donor since"
|
8829 |
msgstr ""
|
8830 |
|
8831 |
-
#: includes/admin/donors/donors.php:
|
8832 |
msgid "Edit Donor"
|
8833 |
msgstr ""
|
8834 |
|
8835 |
-
#: includes/admin/donors/donors.php:
|
8836 |
msgid "Donor ID:"
|
8837 |
msgstr ""
|
8838 |
|
8839 |
-
#: includes/admin/donors/donors.php:
|
8840 |
msgid "User ID:"
|
8841 |
msgstr ""
|
8842 |
|
8843 |
-
#: includes/admin/donors/donors.php:
|
8844 |
msgid "Unregistered"
|
8845 |
msgstr ""
|
8846 |
|
8847 |
-
#: includes/admin/donors/donors.php:
|
8848 |
msgid "Disconnects the current user ID from this donor record."
|
8849 |
msgstr ""
|
8850 |
|
8851 |
-
#: includes/admin/donors/donors.php:
|
8852 |
msgid "Disconnect User"
|
8853 |
msgstr ""
|
8854 |
|
8855 |
-
#: includes/admin/donors/donors.php:
|
8856 |
msgid "View User Profile of current user ID."
|
8857 |
msgstr ""
|
8858 |
|
8859 |
-
#: includes/admin/donors/donors.php:
|
8860 |
msgid "View User Profile"
|
8861 |
msgstr ""
|
8862 |
|
8863 |
-
#: includes/admin/donors/donors.php:
|
8864 |
msgid "Company Name:"
|
8865 |
msgstr ""
|
8866 |
|
8867 |
-
#: includes/admin/donors/donors.php:
|
8868 |
msgid "Update Donor"
|
8869 |
msgstr ""
|
8870 |
|
8871 |
-
#: includes/admin/donors/donors.php:
|
8872 |
msgid "%d Completed Donation"
|
8873 |
msgid_plural "%d Completed Donations"
|
8874 |
msgstr[0] ""
|
8875 |
msgstr[1] ""
|
8876 |
|
8877 |
-
#: includes/admin/donors/donors.php:
|
8878 |
msgid "Lifetime Donations"
|
8879 |
msgstr ""
|
8880 |
|
8881 |
-
#: includes/admin/donors/donors.php:
|
8882 |
msgid "Addresses"
|
8883 |
msgstr ""
|
8884 |
|
8885 |
-
#: includes/admin/donors/donors.php:
|
8886 |
msgid "This donor does not have any addresses saved."
|
8887 |
msgstr ""
|
8888 |
|
8889 |
-
#: includes/admin/donors/donors.php:
|
8890 |
msgid "Add Address"
|
8891 |
msgstr ""
|
8892 |
|
8893 |
-
#: includes/admin/donors/donors.php:
|
8894 |
msgid "Country:"
|
8895 |
msgstr ""
|
8896 |
|
8897 |
-
#: includes/admin/donors/donors.php:
|
8898 |
msgid "Select a country"
|
8899 |
msgstr ""
|
8900 |
|
8901 |
-
#: includes/admin/donors/donors.php:
|
8902 |
msgid "Address 1:"
|
8903 |
msgstr ""
|
8904 |
|
8905 |
-
#: includes/admin/donors/donors.php:
|
8906 |
msgid "Address 2:"
|
8907 |
msgstr ""
|
8908 |
|
8909 |
-
#: includes/admin/donors/donors.php:
|
8910 |
msgid "City:"
|
8911 |
msgstr ""
|
8912 |
|
8913 |
-
#: includes/admin/donors/donors.php:
|
8914 |
msgid "State / Province / County:"
|
8915 |
msgstr ""
|
8916 |
|
8917 |
-
#: includes/admin/donors/donors.php:
|
8918 |
msgid "Select a state"
|
8919 |
msgstr ""
|
8920 |
|
8921 |
-
#: includes/admin/donors/donors.php:
|
8922 |
msgid "Zip / Postal Code:"
|
8923 |
msgstr ""
|
8924 |
|
8925 |
-
#: includes/admin/donors/donors.php:
|
8926 |
msgid "Save"
|
8927 |
msgstr ""
|
8928 |
|
8929 |
-
#: includes/admin/donors/donors.php:
|
8930 |
msgid "Donor Emails"
|
8931 |
msgstr ""
|
8932 |
|
8933 |
-
#: includes/admin/donors/donors.php:
|
8934 |
msgid "Actions"
|
8935 |
msgstr ""
|
8936 |
|
8937 |
-
#: includes/admin/donors/donors.php:
|
8938 |
msgid "Make Primary"
|
8939 |
msgstr ""
|
8940 |
|
8941 |
-
#: includes/admin/donors/donors.php:
|
8942 |
msgid "Add Email"
|
8943 |
msgstr ""
|
8944 |
|
8945 |
-
#: includes/admin/donors/donors.php:
|
8946 |
msgid "No Emails Found"
|
8947 |
msgstr ""
|
8948 |
|
8949 |
-
#: includes/admin/donors/donors.php:
|
8950 |
msgid "Recent Donations"
|
8951 |
msgstr ""
|
8952 |
|
8953 |
#. translators: %s: Donation ID
|
8954 |
-
#: includes/admin/donors/donors.php:
|
8955 |
msgid "View Donation %s."
|
8956 |
msgstr ""
|
8957 |
|
8958 |
-
#: includes/admin/donors/donors.php:
|
8959 |
msgid "Completed Forms"
|
8960 |
msgstr ""
|
8961 |
|
8962 |
#. translators: %s: form name
|
8963 |
-
#: includes/admin/donors/donors.php:
|
8964 |
msgid "View Form %s."
|
8965 |
msgstr ""
|
8966 |
|
8967 |
-
#: includes/admin/donors/donors.php:
|
8968 |
msgid "No completed donations found."
|
8969 |
msgstr ""
|
8970 |
|
8971 |
-
#: includes/admin/donors/donors.php:
|
8972 |
msgid "No donor notes found."
|
8973 |
msgstr ""
|
8974 |
|
8975 |
-
#: includes/admin/donors/donors.php:
|
8976 |
msgid "Are you sure you want to delete this donor?"
|
8977 |
msgstr ""
|
8978 |
|
@@ -8993,11 +8992,11 @@ msgid "You do not have permission to edit donations."
|
|
8993 |
msgstr ""
|
8994 |
|
8995 |
#: includes/admin/emails/class-donor-note-email.php:42
|
8996 |
-
msgid "
|
8997 |
msgstr ""
|
8998 |
|
8999 |
#: includes/admin/emails/class-donor-note-email.php:43
|
9000 |
-
msgid "Sent
|
9001 |
msgstr ""
|
9002 |
|
9003 |
#: includes/admin/emails/class-donor-note-email.php:47
|
@@ -9190,62 +9189,58 @@ msgid "Enter the email message."
|
|
9190 |
msgstr ""
|
9191 |
|
9192 |
#: includes/admin/emails/class-email-setting-field.php:254
|
9193 |
-
msgid "
|
9194 |
-
msgstr ""
|
9195 |
-
|
9196 |
-
#: includes/admin/emails/class-email-setting-field.php:255
|
9197 |
-
msgid "Available template tags"
|
9198 |
msgstr ""
|
9199 |
|
9200 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9201 |
msgid "See our documentation"
|
9202 |
msgstr ""
|
9203 |
|
9204 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9205 |
msgid "for examples of how to use custom meta email tags to output additional donor or donation information in your Give emails."
|
9206 |
msgstr ""
|
9207 |
|
9208 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9209 |
msgid "Email message"
|
9210 |
msgstr ""
|
9211 |
|
9212 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9213 |
msgid "Email Content Type"
|
9214 |
msgstr ""
|
9215 |
|
9216 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9217 |
msgid "Choose email type."
|
9218 |
msgstr ""
|
9219 |
|
9220 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9221 |
msgid "Email Recipients"
|
9222 |
msgstr ""
|
9223 |
|
9224 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9225 |
msgid "Enter the email address(es) that should receive a notification."
|
9226 |
msgstr ""
|
9227 |
|
9228 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9229 |
msgid "Add Recipient"
|
9230 |
msgstr ""
|
9231 |
|
9232 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9233 |
msgid "Enter the email address that should receive a notification."
|
9234 |
msgstr ""
|
9235 |
|
9236 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9237 |
msgid "Email Recipient"
|
9238 |
msgstr ""
|
9239 |
|
9240 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9241 |
msgid "This email is automatically sent to the donor and the recipient cannot be customized."
|
9242 |
msgstr ""
|
9243 |
|
9244 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9245 |
msgid "Preview Email"
|
9246 |
msgstr ""
|
9247 |
|
9248 |
-
#: includes/admin/emails/class-email-setting-field.php:
|
9249 |
msgid "Click the \"Preview Email\" button to preview the email in your browser. Click the \"Send Test Email\" button to send a test email directly to your inbox."
|
9250 |
msgstr ""
|
9251 |
|
@@ -11518,11 +11513,11 @@ msgstr ""
|
|
11518 |
msgid "Save changes"
|
11519 |
msgstr ""
|
11520 |
|
11521 |
-
#: includes/gateways/stripe/class-give-stripe.php:
|
11522 |
msgid "Stripe - Credit Card"
|
11523 |
msgstr ""
|
11524 |
|
11525 |
-
#: includes/gateways/stripe/class-give-stripe.php:
|
11526 |
msgid "Credit Card"
|
11527 |
msgstr ""
|
11528 |
|
@@ -13126,7 +13121,7 @@ msgstr ""
|
|
13126 |
msgid "Stripe Customer generated by GiveWP via %s"
|
13127 |
msgstr ""
|
13128 |
|
13129 |
-
#: includes/gateways/stripe/includes/class-give-stripe-customer.php:304, includes/gateways/stripe/includes/class-give-stripe-customer.php:398, includes/gateways/stripe/includes/class-give-stripe-customer.php:416, includes/gateways/stripe/includes/class-give-stripe-customer.php:507, includes/gateways/stripe/includes/class-give-stripe-customer.php:525, includes/gateways/stripe/includes/class-give-stripe-gateway.php:127, includes/gateways/stripe/includes/class-give-stripe-gateway.php:262, includes/gateways/stripe/includes/class-give-stripe-gateway.php:340, includes/gateways/stripe/includes/class-give-stripe-gateway.php:419, includes/gateways/stripe/includes/class-give-stripe-logger.php:77, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:196, includes/gateways/stripe/includes/give-stripe-helpers.php:685, includes/gateways/stripe/includes/give-stripe-helpers.php:
|
13130 |
msgid "Stripe Error"
|
13131 |
msgstr ""
|
13132 |
|
@@ -13141,7 +13136,7 @@ msgstr ""
|
|
13141 |
msgid "An occurred while processing the donation with the gateway. Please try your donation again."
|
13142 |
msgstr ""
|
13143 |
|
13144 |
-
#: includes/gateways/stripe/includes/class-give-stripe-customer.php:415, includes/gateways/stripe/includes/class-give-stripe-customer.php:524, includes/gateways/stripe/includes/class-give-stripe-gateway.php:134, includes/gateways/stripe/includes/class-give-stripe-gateway.php:189, includes/gateways/stripe/includes/class-give-stripe-gateway.php:229, includes/gateways/stripe/includes/class-give-stripe-gateway.php:269, includes/gateways/stripe/includes/class-give-stripe-gateway.php:339, includes/gateways/stripe/includes/give-stripe-helpers.php:
|
13145 |
msgid "An error occurred while processing the donation. Please try again."
|
13146 |
msgstr ""
|
13147 |
|
@@ -13183,7 +13178,7 @@ msgstr ""
|
|
13183 |
|
13184 |
#. translators: %s Exception Error Message
|
13185 |
#. translators: Exception Message Body
|
13186 |
-
#: includes/gateways/stripe/includes/class-give-stripe-gateway.php:324, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:
|
13187 |
msgid "The Stripe Gateway returned an error while processing a donation. Details: %s"
|
13188 |
msgstr ""
|
13189 |
|
@@ -13403,21 +13398,21 @@ msgid "Unable to set application information to Stripe. Please try again."
|
|
13403 |
msgstr ""
|
13404 |
|
13405 |
#. translators: %s Exception Message Body
|
13406 |
-
#: includes/gateways/stripe/includes/give-stripe-helpers.php:
|
13407 |
msgid "Unable to set Stripe API Key. Details: %s"
|
13408 |
msgstr ""
|
13409 |
|
13410 |
-
#: includes/gateways/stripe/includes/give-stripe-helpers.php:
|
13411 |
msgid "Stripe Customer Creation Failed"
|
13412 |
msgstr ""
|
13413 |
|
13414 |
#. translators: %s Donation Data
|
13415 |
#. translators: %s Donation Data
|
13416 |
-
#: includes/gateways/stripe/includes/give-stripe-helpers.php:
|
13417 |
msgid "Customer creation failed while processing the donation. Details: %s"
|
13418 |
msgstr ""
|
13419 |
|
13420 |
-
#: includes/gateways/stripe/includes/give-stripe-helpers.php:
|
13421 |
msgid "The Stripe Gateway returned an error while processing the donation."
|
13422 |
msgstr ""
|
13423 |
|
@@ -13468,7 +13463,7 @@ msgstr ""
|
|
13468 |
msgid "Stripe Connect"
|
13469 |
msgstr ""
|
13470 |
|
13471 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:159, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13472 |
msgid "Stripe Webhooks"
|
13473 |
msgstr ""
|
13474 |
|
@@ -13557,108 +13552,134 @@ msgid "Stripe Gateway Documentation"
|
|
13557 |
msgstr ""
|
13558 |
|
13559 |
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:336
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13560 |
msgid "Stripe JS Incompatibility"
|
13561 |
msgstr ""
|
13562 |
|
13563 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13564 |
msgid "If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing."
|
13565 |
msgstr ""
|
13566 |
|
13567 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13568 |
msgid "Stripe Styles"
|
13569 |
msgstr ""
|
13570 |
|
13571 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13572 |
msgid "Edit the properties above to match the look and feel of your WordPress theme. These styles will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. Any valid CSS property can be defined, however, it must be formatted as JSON, not CSS. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#element-options\" target=\"_blank\">article</a>."
|
13573 |
msgstr ""
|
13574 |
|
13575 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13576 |
msgid "Stripe Fonts"
|
13577 |
msgstr ""
|
13578 |
|
13579 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13580 |
msgid "Select the type of font you want to load in Stripe Credit Card fields including Card Number, CVC and Expiration. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#stripe-elements\" target=\"_blank\">article</a>."
|
13581 |
msgstr ""
|
13582 |
|
13583 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13584 |
msgid "Google Fonts"
|
13585 |
msgstr ""
|
13586 |
|
13587 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13588 |
msgid "Custom Fonts"
|
13589 |
msgstr ""
|
13590 |
|
13591 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13592 |
msgid "Google Fonts URL"
|
13593 |
msgstr ""
|
13594 |
|
13595 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13596 |
msgid "Please enter the Google Fonts URL which is applied to your theme to have the Stripe Credit Card fields reflect the same fonts."
|
13597 |
msgstr ""
|
13598 |
|
13599 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13600 |
msgid "Edit the font properties above to match the fonts of your WordPress theme. These font properties will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. However, it must be formatted as JSON, not CSS."
|
13601 |
msgstr ""
|
13602 |
|
13603 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13604 |
msgid "Stripe Connection"
|
13605 |
msgstr ""
|
13606 |
|
13607 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13608 |
msgid "Stripe is connected."
|
13609 |
msgstr ""
|
13610 |
|
13611 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13612 |
msgid "[Disconnect]"
|
13613 |
msgstr ""
|
13614 |
|
13615 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13616 |
msgid "Stripe is NOT connected."
|
13617 |
msgstr ""
|
13618 |
|
13619 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13620 |
msgid "The free Stripe payment gateway includes an additional 2%% fee for processing one-time donations. This fee is removed by using the premium <a href=\"%1$s\" target=\"_blank\">Stripe add-on</a> and never applies to subscription donations made through the <a href=\"%2$s\" target=\"_blank\">Recurring Donations add-on</a>. <a href=\"%3$s\" target=\"_blank\">Learn More ></a>"
|
13621 |
msgstr ""
|
13622 |
|
13623 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13624 |
msgid "In order for Stripe to function properly, you must configure your Stripe webhooks."
|
13625 |
msgstr ""
|
13626 |
|
13627 |
#. translators: 1. Webhook settings page.
|
13628 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13629 |
msgid " You can visit your <a href=\"%1$s\" target=\"_blank\">Stripe Account Dashboard</a> to add a new webhook. "
|
13630 |
msgstr ""
|
13631 |
|
13632 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13633 |
msgid "Please add a new webhook endpoint for the following URL:"
|
13634 |
msgstr ""
|
13635 |
|
13636 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13637 |
msgid "Webhook URL:"
|
13638 |
msgstr ""
|
13639 |
|
13640 |
#. translators: 1. Documentation on webhook setup.
|
13641 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13642 |
msgid "See our <a href=\"%1$s\" target=\"_blank\">documentation</a> for more information."
|
13643 |
msgstr ""
|
13644 |
|
13645 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13646 |
msgid "Stripe webhooks are important to setup so Give can communicate properly with the payment gateway. It is not required to have the sandbox webhooks setup unless you are testing. Note: webhooks cannot be setup on localhost or websites in maintenance mode."
|
13647 |
msgstr ""
|
13648 |
|
13649 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13650 |
msgid "Base Styles"
|
13651 |
msgstr ""
|
13652 |
|
13653 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13654 |
msgid "Empty Styles"
|
13655 |
msgstr ""
|
13656 |
|
13657 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13658 |
msgid "Invalid Styles"
|
13659 |
msgstr ""
|
13660 |
|
13661 |
-
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:
|
13662 |
msgid "Complete Styles"
|
13663 |
msgstr ""
|
13664 |
|
@@ -13683,10 +13704,23 @@ msgstr ""
|
|
13683 |
msgid "A Stripe token failed to be generated. Please check Stripe logs for more information."
|
13684 |
msgstr ""
|
13685 |
|
13686 |
-
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13687 |
msgid "Donor Error"
|
13688 |
msgstr ""
|
13689 |
|
13690 |
-
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:
|
13691 |
msgid "Donor has cancelled the payment during authorization process."
|
13692 |
msgstr ""
|
19 |
msgid "Cheatin’ huh?"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: give.php:662
|
23 |
msgid "Your site could be faster and more secure with a newer PHP version."
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: give.php:663
|
27 |
msgid "Hey, we've noticed that you're running an outdated version of PHP. PHP is the programming language that WordPress and Give are built on. The version that is currently used for your site is no longer supported. Newer versions of PHP are both faster and more secure. In fact, your version of PHP no longer receives security updates, which is why we're sending you this notice."
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: give.php:664
|
31 |
msgid "Hosts have the ability to update your PHP version, but sometimes they don't dare to do that because they're afraid they'll break your site."
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: give.php:665
|
35 |
msgid "To which version should I update?"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: give.php:666
|
39 |
msgid "You should update your PHP version to either 5.6 or to 7.0 or 7.1. On a normal WordPress site, switching to PHP 5.6 should never cause issues. We would however actually recommend you switch to PHP7. There are some plugins that are not ready for PHP7 though, so do some testing first. PHP7 is much faster than PHP 5.6. It's also the only PHP version still in active development and therefore the better option for your site in the long run."
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: give.php:667
|
43 |
msgid "Can't update? Ask your host!"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: give.php:668
|
47 |
msgid "If you cannot upgrade your PHP version yourself, you can send an email to your host. If they don't want to upgrade your PHP version, we would suggest you switch hosts. Have a look at one of the recommended %1$sWordPress hosting partners%2$s."
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: give.php:694
|
51 |
msgid "<strong>Attention:</strong> Give 2.5.0+ requires the latest version of the Recurring Donations add-on to process payments properly with Stripe. Please update to the latest version add-on to resolve compatibility issues. If your license is active, you should see the update available in WordPress. Otherwise, you can access the latest version by <a href=\"%1$s\" target=\"_blank\">logging into your account</a> and visiting <a href=\"%1$s\" target=\"_blank\">your downloads</a> page on the GiveWP website."
|
52 |
msgstr ""
|
53 |
|
63 |
msgid "Give version %s is required to update this add-on."
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: includes/ajax-functions.php:202, includes/country-functions.php:502, includes/country-functions.php:550, includes/country-functions.php:801, includes/admin/import-functions.php:457, includes/forms/template.php:1219, includes/admin/settings/class-settings-general.php:246, includes/admin/tools/export/class-batch-export-donors.php:189, includes/admin/tools/export/give-export-donations-exporter.php:198
|
67 |
msgid "State"
|
68 |
msgstr ""
|
69 |
|
241 |
msgid "s_no"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/class-give-cli-commands.php:621, includes/post-types.php:118, includes/admin/class-blank-slate.php:273, includes/admin/class-blank-slate.php:277, includes/admin/class-give-html-elements.php:104, includes/emails/template.php:169, includes/admin/donors/donors.php:894
|
245 |
msgid "No donations found."
|
246 |
msgstr ""
|
247 |
|
441 |
msgid "Give Donor"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: includes/class-give-scripts.php:202, includes/admin/add-ons/actions.php:158
|
445 |
msgid "Sorry, you entered an invalid key."
|
446 |
msgstr ""
|
447 |
|
457 |
msgid "The add-on did not activate successfully."
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: includes/class-give-scripts.php:225, includes/class-give-scripts.php:278, includes/forms/template.php:1549, includes/admin/donors/class-donor-table.php:585, includes/admin/donors/donors.php:502, includes/admin/donors/donors.php:729, includes/admin/donors/donors.php:1116, includes/admin/payments/view-payment-details.php:674
|
461 |
msgid "Cancel"
|
462 |
msgstr ""
|
463 |
|
479 |
|
480 |
#. translators: %s Stripe User ID
|
481 |
#. translators: %s Stripe User ID
|
482 |
+
#: includes/class-give-scripts.php:252, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:480
|
483 |
msgid "Are you sure you want to disconnect Give from Stripe? If disconnected, this website and any others sharing the same Stripe account (%s) that are connected to Give will need to reconnect in order to process payments."
|
484 |
msgstr ""
|
485 |
|
523 |
msgid "Ok"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/class-give-scripts.php:280, includes/class-notices.php:632, includes/formatting.php:755, includes/api/class-give-api.php:1868, includes/api/class-give-api.php:1874, includes/api/class-give-api.php:1889, includes/api/class-give-api.php:1894, includes/forms/functions.php:330, includes/gateways/manual.php:38, includes/admin/donors/donor-actions.php:31, includes/admin/donors/donor-actions.php:52, includes/admin/donors/donor-actions.php:187, includes/admin/donors/donor-actions.php:201, includes/admin/donors/donor-actions.php:270, includes/admin/donors/donor-actions.php:284, includes/admin/donors/donor-actions.php:371, includes/admin/donors/donor-actions.php:467, includes/admin/donors/donor-actions.php:514, includes/admin/donors/donor-actions.php:558, includes/admin/emails/class-donation-receipt-email.php:299, includes/admin/forms/dashboard-columns.php:266, includes/admin/payments/actions.php:31, includes/admin/payments/actions.php:87, includes/admin/payments/actions.php:100, includes/admin/payments/actions.php:379, includes/admin/payments/actions.php:399, includes/admin/payments/actions.php:457, includes/admin/payments/actions.php:479, includes/admin/payments/view-payment-details.php:19, includes/admin/payments/view-payment-details.php:32, includes/admin/payments/view-payment-details.php:42, includes/admin/reports/reports.php:143, includes/admin/upgrades/upgrade-functions.php:498, includes/admin/tools/data/class-give-tools-delete-donations.php:156, includes/admin/tools/data/class-give-tools-delete-import-donors.php:309, includes/admin/tools/data/class-give-tools-delete-test-donors.php:248, includes/admin/tools/data/class-give-tools-delete-test-transactions.php:129, includes/admin/tools/data/class-give-tools-recount-all-stats.php:248, includes/admin/tools/data/class-give-tools-recount-donor-stats.php:204, includes/admin/tools/data/class-give-tools-recount-form-stats.php:204, includes/admin/tools/data/class-give-tools-recount-income.php:177, includes/admin/tools/data/class-give-tools-recount-single-donor-stats.php:160, includes/admin/tools/data/class-give-tools-reset-stats.php:241, includes/admin/tools/export/class-batch-export.php:145, includes/admin/tools/export/class-core-settings-export.php:81, includes/admin/tools/export/class-export.php:185, includes/admin/tools/export/export-actions.php:26, includes/admin/tools/export/pdf-reports.php:31, includes/admin/tools/export/pdf-reports.php:35, includes/admin/tools/export/pdf-reports.php:39, includes/admin/tools/logs/class-api-requests-logs-list-table.php:154, includes/admin/tools/logs/class-gateway-error-logs-list-table.php:136, includes/gateways/stripe/includes/admin/admin-actions.php:205, includes/gateways/stripe/includes/admin/class-give-stripe-logs-list-table.php:87
|
527 |
msgid "Error"
|
528 |
msgstr ""
|
529 |
|
5515 |
msgid "Zambian kwacha (%1$s)"
|
5516 |
msgstr ""
|
5517 |
|
5518 |
+
#: includes/formatting.php:539
|
5519 |
msgid "%s arab"
|
5520 |
msgstr ""
|
5521 |
|
5522 |
+
#: includes/formatting.php:541
|
5523 |
msgid "%s crore"
|
5524 |
msgstr ""
|
5525 |
|
5526 |
+
#: includes/formatting.php:543
|
5527 |
msgid "%s lakh"
|
5528 |
msgstr ""
|
5529 |
|
5530 |
+
#: includes/formatting.php:549
|
5531 |
msgid "%s trillion"
|
5532 |
msgstr ""
|
5533 |
|
5534 |
+
#: includes/formatting.php:551
|
5535 |
msgid "%s billion"
|
5536 |
msgstr ""
|
5537 |
|
5538 |
+
#: includes/formatting.php:553
|
5539 |
msgid "%s million"
|
5540 |
msgstr ""
|
5541 |
|
5542 |
+
#: includes/formatting.php:754, includes/formatting.php:791, includes/process-donation.php:850, includes/api/class-give-api.php:1868, includes/forms/functions.php:330, includes/gateways/actions.php:48, includes/gateways/manual.php:38, includes/admin/donors/donor-actions.php:389, includes/admin/donors/donor-actions.php:467, includes/admin/donors/donor-actions.php:514, includes/admin/forms/class-give-form-duplicator.php:87, includes/admin/tools/export/export-actions.php:26, includes/admin/tools/export/pdf-reports.php:35
|
5543 |
msgid "We're unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance."
|
5544 |
msgstr ""
|
5545 |
|
5546 |
+
#: includes/install.php:356, includes/forms/template.php:1751, includes/forms/template.php:1756, tests/unit-tests/tests-install.php:100, includes/admin/forms/class-metabox-form-data.php:581, includes/admin/settings/class-settings-display.php:305
|
5547 |
msgid "Agree to Terms?"
|
5548 |
msgstr ""
|
5549 |
|
5683 |
msgid "You must be logged in to view this donation receipt."
|
5684 |
msgstr ""
|
5685 |
|
5686 |
+
#: includes/post-types.php:55, includes/post-types.php:259, includes/admin/donors/class-donor-table.php:118, includes/admin/donors/donors.php:908, includes/admin/payments/class-payments-table.php:194, includes/admin/reports/class-form-reports-table.php:120
|
5687 |
msgid "Form"
|
5688 |
msgstr ""
|
5689 |
|
5707 |
msgid "All Forms"
|
5708 |
msgstr ""
|
5709 |
|
5710 |
+
#: includes/post-types.php:61, includes/post-types.php:418, includes/post-types.php:419, includes/post-types.php:420, includes/post-types.php:421, includes/post-types.php:422, includes/admin/donors/donors.php:927
|
5711 |
msgid "View Form"
|
5712 |
msgstr ""
|
5713 |
|
5757 |
msgid "All Donations"
|
5758 |
msgstr ""
|
5759 |
|
5760 |
+
#: includes/post-types.php:116, includes/admin/donors/donors.php:872
|
5761 |
msgid "View Donation"
|
5762 |
msgstr ""
|
5763 |
|
6057 |
msgid "Please enter your username or email to log in."
|
6058 |
msgstr ""
|
6059 |
|
6060 |
+
#: includes/process-donation.php:943, templates/shortcode-login.php:51, includes/forms/template.php:1537
|
6061 |
msgid "Reset Password"
|
6062 |
msgstr ""
|
6063 |
|
6122 |
msgid "Hey! We've raised {total} of the {total_goal} we are trying to raise for this campaign!"
|
6123 |
msgstr ""
|
6124 |
|
6125 |
+
#: includes/shortcodes.php:558, includes/forms/template.php:700, includes/forms/template.php:1930, includes/admin/forms/class-metabox-form-data.php:263, includes/admin/forms/class-metabox-form-data.php:273, includes/gateways/stripe/includes/give-stripe-scripts.php:59
|
6126 |
msgid "Donate Now"
|
6127 |
msgstr ""
|
6128 |
|
6179 |
msgid "Donation Email:"
|
6180 |
msgstr ""
|
6181 |
|
6182 |
+
#: templates/email-login-form.php:108, templates/shortcode-profile-editor.php:118, includes/admin/import-functions.php:473, includes/forms/template.php:845, includes/forms/template.php:856, includes/admin/donors/donors.php:812, includes/admin/tools/export/give-export-donations-exporter.php:189, includes/admin/tools/import/class-give-import-donations.php:483
|
6183 |
msgid "Email Address"
|
6184 |
msgstr ""
|
6185 |
|
6187 |
msgid "Verify Email"
|
6188 |
msgstr ""
|
6189 |
|
6190 |
+
#: templates/history-donations.php:67, includes/admin/donors/donors.php:843, includes/admin/forms/class-metabox-form-data.php:195, includes/admin/tools/export/class-export.php:80
|
6191 |
msgid "ID"
|
6192 |
msgstr ""
|
6193 |
|
6194 |
+
#: templates/history-donations.php:68, templates/shortcode-receipt.php:63, includes/admin/import-functions.php:423, includes/admin/donors/donors.php:845, includes/admin/forms/dashboard-columns.php:43, includes/admin/payments/class-payments-table.php:407, includes/admin/payments/view-payment-details.php:180, includes/admin/tools/export/class-export-earnings.php:60, includes/admin/tools/export/class-export.php:81, includes/admin/tools/logs/class-api-requests-logs-list-table.php:96, includes/admin/tools/logs/class-gateway-error-logs-list-table.php:139, includes/admin/tools/logs/class-update-logs-list-table.php:80, includes/gateways/stripe/includes/admin/class-give-stripe-logs-list-table.php:88
|
6195 |
msgid "Date"
|
6196 |
msgstr ""
|
6197 |
|
6199 |
msgid "Donor"
|
6200 |
msgstr ""
|
6201 |
|
6202 |
+
#: templates/history-donations.php:70, includes/admin/import-functions.php:410, includes/admin/donors/donors.php:844, includes/admin/forms/class-metabox-form-data.php:200, includes/admin/forms/dashboard-columns.php:38, includes/admin/payments/class-payments-table.php:408
|
6203 |
msgid "Amount"
|
6204 |
msgstr ""
|
6205 |
|
6206 |
+
#: templates/history-donations.php:71, includes/admin/import-functions.php:477, includes/admin/donors/donors.php:846, includes/admin/payments/class-payments-table.php:406
|
6207 |
msgid "Status"
|
6208 |
msgstr ""
|
6209 |
|
6241 |
msgstr ""
|
6242 |
|
6243 |
#. translators: 1: amount of income raised 2: goal target amount.
|
6244 |
+
#: templates/shortcode-goal.php:146
|
6245 |
+
msgid "<span class=\"income\" data-amounts=\"%1$s\">%2$s</span> of <span class=\"goal-text\" data-amounts=\"%3$s\">%4$s</span> raised"
|
6246 |
msgstr ""
|
6247 |
|
6248 |
#. translators: %s: percentage of the amount raised compared to the goal target
|
6249 |
#. translators: %s: percentage of the amount raised compared to the goal target
|
6250 |
+
#: templates/shortcode-goal.php:156, templates/shortcode-totals-progress.php:34
|
6251 |
msgid "<span class=\"give-percentage\">%s%%</span> funded"
|
6252 |
msgstr ""
|
6253 |
|
6254 |
#. translators: 1: total number of donations completed 2: total number of donations set as goal
|
6255 |
+
#: templates/shortcode-goal.php:163
|
6256 |
msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donation"
|
6257 |
msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donations"
|
6258 |
msgstr[0] ""
|
6259 |
msgstr[1] ""
|
6260 |
|
6261 |
#. translators: 1: total number of donors completed 2: total number of donors set as goal
|
6262 |
+
#: templates/shortcode-goal.php:176
|
6263 |
msgid "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donor"
|
6264 |
msgid_plural "<span class=\"income\">%1$s</span> of <span class=\"goal-text\">%2$s</span> donors"
|
6265 |
msgstr[0] ""
|
6273 |
msgid "Username"
|
6274 |
msgstr ""
|
6275 |
|
6276 |
+
#: templates/shortcode-login.php:38, templates/shortcode-register.php:44, includes/forms/template.php:1521
|
6277 |
msgid "Password"
|
6278 |
msgstr ""
|
6279 |
|
6306 |
msgid "Change your Name"
|
6307 |
msgstr ""
|
6308 |
|
6309 |
+
#: templates/shortcode-profile-editor.php:52, includes/admin/class-give-welcome.php:685, includes/admin/class-give-welcome.php:687, includes/admin/import-functions.php:435, includes/forms/template.php:774, includes/forms/template.php:785, includes/admin/donors/donors.php:375, includes/admin/tools/export/give-export-donations-exporter.php:183, includes/admin/tools/import/class-give-import-donations.php:493
|
6310 |
msgid "First Name"
|
6311 |
msgstr ""
|
6312 |
|
6313 |
+
#: templates/shortcode-profile-editor.php:60, includes/admin/class-give-welcome.php:692, includes/admin/class-give-welcome.php:694, includes/admin/import-functions.php:441, includes/forms/template.php:794, includes/forms/template.php:807, includes/admin/donors/donors.php:384, includes/admin/tools/export/give-export-donations-exporter.php:186
|
6314 |
msgid "Last Name"
|
6315 |
msgstr ""
|
6316 |
|
6317 |
+
#: templates/shortcode-profile-editor.php:67, templates/shortcode-receipt.php:56, includes/admin/import-functions.php:445, includes/forms/template.php:817, includes/forms/template.php:827, includes/admin/tools/export/give-export-donations-exporter.php:192, includes/admin/tools/export/give-export-donations-functions.php:463
|
6318 |
msgid "Company Name"
|
6319 |
msgstr ""
|
6320 |
|
6422 |
msgid "Register a New Account"
|
6423 |
msgstr ""
|
6424 |
|
6425 |
+
#: templates/shortcode-register.php:39, includes/admin/import-functions.php:472, includes/admin/donors/class-donor-table.php:286, includes/admin/donors/donors.php:769, includes/admin/emails/class-email-notification-table.php:64, includes/admin/emails/class-email-setting-field.php:326, includes/admin/reports/class-donor-reports-table.php:216, includes/admin/tools/export/export-functions.php:141
|
6426 |
msgid "Email"
|
6427 |
msgstr ""
|
6428 |
|
7272 |
msgid "Company"
|
7273 |
msgstr ""
|
7274 |
|
7275 |
+
#: includes/admin/import-functions.php:451, includes/forms/template.php:1153, includes/admin/tools/export/give-export-donations-exporter.php:195
|
7276 |
msgid "Address 1"
|
7277 |
msgstr ""
|
7278 |
|
7280 |
msgid "Address"
|
7281 |
msgstr ""
|
7282 |
|
7283 |
+
#: includes/admin/import-functions.php:454, includes/forms/template.php:1176, includes/admin/tools/export/class-batch-export-donors.php:187, includes/admin/tools/export/give-export-donations-exporter.php:196
|
7284 |
msgid "Address 2"
|
7285 |
msgstr ""
|
7286 |
|
7287 |
+
#: includes/admin/import-functions.php:455, includes/forms/template.php:1197, includes/forms/template.php:1209, includes/admin/tools/export/class-batch-export-donors.php:188, includes/admin/tools/export/give-export-donations-exporter.php:197
|
7288 |
msgid "City"
|
7289 |
msgstr ""
|
7290 |
|
7291 |
+
#: includes/admin/import-functions.php:462, includes/forms/template.php:1128, includes/admin/tools/export/class-batch-export-donors.php:191, includes/admin/tools/export/give-export-donations-exporter.php:200
|
7292 |
msgid "Country"
|
7293 |
msgstr ""
|
7294 |
|
7328 |
msgid "Gateway"
|
7329 |
msgstr ""
|
7330 |
|
7331 |
+
#: includes/admin/import-functions.php:485, includes/admin/donors/donors.php:988
|
7332 |
msgid "Notes"
|
7333 |
msgstr ""
|
7334 |
|
7368 |
msgid "Form Name"
|
7369 |
msgstr ""
|
7370 |
|
7371 |
+
#: includes/admin/import-functions.php:533, includes/forms/template.php:751, includes/admin/donors/donors.php:358
|
7372 |
msgid "Title"
|
7373 |
msgstr ""
|
7374 |
|
7890 |
msgid "Ms."
|
7891 |
msgstr ""
|
7892 |
|
7893 |
+
#: includes/forms/template.php:437, includes/forms/template.php:464
|
7894 |
msgid "Donation Amount:"
|
7895 |
msgstr ""
|
7896 |
|
7897 |
+
#: includes/forms/template.php:543, includes/admin/forms/class-metabox-form-data.php:177
|
7898 |
msgid "Give a Custom Amount"
|
7899 |
msgstr ""
|
7900 |
|
7901 |
+
#: includes/forms/template.php:630
|
7902 |
msgid "Choose Your Donation Amount"
|
7903 |
msgstr ""
|
7904 |
|
7905 |
+
#: includes/forms/template.php:745
|
7906 |
msgid "Personal Info"
|
7907 |
msgstr ""
|
7908 |
|
7909 |
+
#: includes/forms/template.php:755
|
7910 |
msgid "Title is used to personalize your donation record.."
|
7911 |
msgstr ""
|
7912 |
|
7913 |
+
#: includes/forms/template.php:778
|
7914 |
msgid "First Name is used to personalize your donation record."
|
7915 |
msgstr ""
|
7916 |
|
7917 |
+
#: includes/forms/template.php:798
|
7918 |
msgid "Last Name is used to personalize your donation record."
|
7919 |
msgstr ""
|
7920 |
|
7921 |
+
#: includes/forms/template.php:821
|
7922 |
msgid "Donate on behalf of Company"
|
7923 |
msgstr ""
|
7924 |
|
7925 |
+
#: includes/forms/template.php:849
|
7926 |
msgid "We will send the donation receipt to this address."
|
7927 |
msgstr ""
|
7928 |
|
7929 |
+
#: includes/forms/template.php:883
|
7930 |
msgid "Make this an anonymous donation."
|
7931 |
msgstr ""
|
7932 |
|
7933 |
+
#: includes/forms/template.php:892
|
7934 |
msgid "Would you like to prevent your name, image, and comment from being displayed publicly?"
|
7935 |
msgstr ""
|
7936 |
|
7937 |
+
#: includes/forms/template.php:892
|
7938 |
msgid "Would you like to prevent your name and image from being displayed publicly?"
|
7939 |
msgstr ""
|
7940 |
|
7941 |
+
#: includes/forms/template.php:904
|
7942 |
msgid "Comment"
|
7943 |
msgstr ""
|
7944 |
|
7945 |
+
#: includes/forms/template.php:908
|
7946 |
msgid "Would you like to add a comment to this donation?"
|
7947 |
msgstr ""
|
7948 |
|
7949 |
+
#: includes/forms/template.php:914
|
7950 |
msgid "Leave a comment"
|
7951 |
msgstr ""
|
7952 |
|
7953 |
+
#: includes/forms/template.php:973, includes/gateways/stripe/includes/actions.php:53
|
7954 |
msgid "Credit Card Info"
|
7955 |
msgstr ""
|
7956 |
|
7957 |
+
#: includes/forms/template.php:977, includes/gateways/stripe/includes/actions.php:62
|
7958 |
msgid "This is a secure SSL encrypted payment."
|
7959 |
msgstr ""
|
7960 |
|
7961 |
+
#: includes/forms/template.php:982, includes/gateways/stripe/includes/actions.php:113, includes/gateways/stripe/includes/give-stripe-scripts.php:57
|
7962 |
msgid "Card Number"
|
7963 |
msgstr ""
|
7964 |
|
7965 |
+
#: includes/forms/template.php:984, includes/gateways/stripe/includes/actions.php:116
|
7966 |
msgid "The (typically) 16 digits on the front of your credit card."
|
7967 |
msgstr ""
|
7968 |
|
7969 |
+
#: includes/forms/template.php:989
|
7970 |
msgid "Card number"
|
7971 |
msgstr ""
|
7972 |
|
7973 |
+
#: includes/forms/template.php:995, includes/gateways/stripe/includes/actions.php:126, includes/gateways/stripe/includes/give-stripe-scripts.php:58
|
7974 |
msgid "CVC"
|
7975 |
msgstr ""
|
7976 |
|
7977 |
+
#: includes/forms/template.php:997, includes/gateways/stripe/includes/actions.php:129
|
7978 |
msgid "The 3 digit (back) or 4 digit (front) value on your card."
|
7979 |
msgstr ""
|
7980 |
|
7981 |
+
#: includes/forms/template.php:1001
|
7982 |
msgid "Security code"
|
7983 |
msgstr ""
|
7984 |
|
7985 |
+
#: includes/forms/template.php:1007, includes/forms/template.php:1013, includes/gateways/stripe/includes/actions.php:137, includes/gateways/stripe/includes/actions.php:148
|
7986 |
msgid "Cardholder Name"
|
7987 |
msgstr ""
|
7988 |
|
7989 |
+
#: includes/forms/template.php:1009, includes/gateways/stripe/includes/actions.php:140
|
7990 |
msgid "The name of the credit card account holder."
|
7991 |
msgstr ""
|
7992 |
|
7993 |
+
#: includes/forms/template.php:1029, includes/gateways/stripe/includes/actions.php:157
|
7994 |
msgid "Expiration"
|
7995 |
msgstr ""
|
7996 |
|
7997 |
+
#: includes/forms/template.php:1031, includes/gateways/stripe/includes/actions.php:160
|
7998 |
msgid "The date your credit card expires, typically on the front of the card."
|
7999 |
msgstr ""
|
8000 |
|
8001 |
+
#: includes/forms/template.php:1040
|
8002 |
msgid "MM / YY"
|
8003 |
msgstr ""
|
8004 |
|
8005 |
+
#: includes/forms/template.php:1087, includes/admin/settings/class-settings-gateways.php:85
|
8006 |
msgid "Billing Details"
|
8007 |
msgstr ""
|
8008 |
|
8009 |
+
#: includes/forms/template.php:1133
|
8010 |
msgid "The country for your billing address."
|
8011 |
msgstr ""
|
8012 |
|
8013 |
+
#: includes/forms/template.php:1159
|
8014 |
msgid "The primary billing address for your credit card."
|
8015 |
msgstr ""
|
8016 |
|
8017 |
+
#: includes/forms/template.php:1168
|
8018 |
msgid "Address line 1"
|
8019 |
msgstr ""
|
8020 |
|
8021 |
+
#: includes/forms/template.php:1180
|
8022 |
msgid "(optional) The suite, apartment number, post office box (etc) associated with your billing address."
|
8023 |
msgstr ""
|
8024 |
|
8025 |
+
#: includes/forms/template.php:1189
|
8026 |
msgid "Address line 2"
|
8027 |
msgstr ""
|
8028 |
|
8029 |
+
#: includes/forms/template.php:1201
|
8030 |
msgid "The city for your billing address."
|
8031 |
msgstr ""
|
8032 |
|
8033 |
+
#: includes/forms/template.php:1241
|
8034 |
msgid "The state, province, or county for your billing address."
|
8035 |
msgstr ""
|
8036 |
|
8037 |
+
#: includes/forms/template.php:1269, includes/forms/template.php:1283
|
8038 |
msgid "Zip / Postal Code"
|
8039 |
msgstr ""
|
8040 |
|
8041 |
+
#: includes/forms/template.php:1273
|
8042 |
+
msgid "The zip or postal code for your billing address."
|
8043 |
msgstr ""
|
8044 |
|
8045 |
+
#: includes/forms/template.php:1371
|
8046 |
msgid "Registration is required to donate."
|
8047 |
msgstr ""
|
8048 |
|
8049 |
+
#: includes/forms/template.php:1381
|
8050 |
msgid "Create an account"
|
8051 |
msgstr ""
|
8052 |
|
8053 |
+
#: includes/forms/template.php:1382
|
8054 |
msgid "Create an account on the site to see and manage donation history."
|
8055 |
msgstr ""
|
8056 |
|
8057 |
+
#: includes/forms/template.php:1394
|
8058 |
msgid "Already have an account?"
|
8059 |
msgstr ""
|
8060 |
|
8061 |
+
#: includes/forms/template.php:1396, includes/forms/template.php:1545, includes/admin/forms/class-metabox-form-data.php:362, includes/admin/shortcodes/shortcode-give-login.php:24, includes/admin/shortcodes/shortcode-give-login.php:25
|
8062 |
msgid "Login"
|
8063 |
msgstr ""
|
8064 |
|
8065 |
+
#: includes/forms/template.php:1468
|
8066 |
msgid "Log In to Your Account"
|
8067 |
msgstr ""
|
8068 |
|
8069 |
+
#: includes/forms/template.php:1470
|
8070 |
msgid "(optional)"
|
8071 |
msgstr ""
|
8072 |
|
8073 |
+
#: includes/forms/template.php:1476
|
8074 |
msgid "Don't have an account?"
|
8075 |
msgstr ""
|
8076 |
|
8077 |
+
#: includes/forms/template.php:1481
|
8078 |
msgid "Register as a part of your donation »"
|
8079 |
msgstr ""
|
8080 |
|
8081 |
+
#: includes/forms/template.php:1483
|
8082 |
msgid "Register or donate as a guest »"
|
8083 |
msgstr ""
|
8084 |
|
8085 |
+
#: includes/forms/template.php:1506
|
8086 |
msgid "Username or Email Address"
|
8087 |
msgstr ""
|
8088 |
|
8089 |
+
#: includes/forms/template.php:1515
|
8090 |
msgid "Your username or email"
|
8091 |
msgstr ""
|
8092 |
|
8093 |
+
#: includes/forms/template.php:1528
|
8094 |
msgid "Your password"
|
8095 |
msgstr ""
|
8096 |
|
8097 |
+
#: includes/forms/template.php:1620
|
8098 |
msgid "Select Payment Method"
|
8099 |
msgstr ""
|
8100 |
|
8101 |
+
#: includes/forms/template.php:1767
|
8102 |
msgid "Please enter valid terms and conditions in <a href=\"%s\">this form's settings</a>."
|
8103 |
msgstr ""
|
8104 |
|
8105 |
+
#: includes/forms/template.php:1782
|
8106 |
msgid "Terms"
|
8107 |
msgstr ""
|
8108 |
|
8109 |
+
#: includes/forms/template.php:1803
|
8110 |
msgid "Show Terms"
|
8111 |
msgstr ""
|
8112 |
|
8113 |
+
#: includes/forms/template.php:1805
|
8114 |
msgid "Hide Terms"
|
8115 |
msgstr ""
|
8116 |
|
8117 |
+
#: includes/forms/template.php:1850, includes/admin/shortcodes/shortcode-give-donor-wall.php:154
|
8118 |
msgid "Donation Total:"
|
8119 |
msgstr ""
|
8120 |
|
8121 |
+
#: includes/forms/template.php:2205, includes/gateways/stripe/includes/actions.php:79, includes/gateways/stripe/includes/actions.php:90, includes/gateways/stripe/includes/actions.php:98
|
8122 |
msgid "Notice:"
|
8123 |
msgstr ""
|
8124 |
|
8125 |
+
#: includes/forms/template.php:2205
|
8126 |
msgid "Test mode is enabled. While in test mode no live donations are processed."
|
8127 |
msgstr ""
|
8128 |
|
8129 |
+
#: includes/forms/template.php:2235
|
8130 |
msgid "Please log in in order to complete your donation."
|
8131 |
msgstr ""
|
8132 |
|
8613 |
msgid "Russian Rubles"
|
8614 |
msgstr ""
|
8615 |
|
8616 |
+
#: includes/admin/add-ons/actions.php:37
|
8617 |
msgid "Sorry, you are not allowed to upload add-ons on this site."
|
8618 |
msgstr ""
|
8619 |
|
8620 |
+
#: includes/admin/add-ons/actions.php:46
|
|
|
|
|
|
|
|
|
8621 |
msgid "Sorry, you can not upload plugins because Give does not have direct access to the file system. Please <a href=\"%1$s\" target=\"_blank\">click here</a> to upload the add-on."
|
8622 |
msgstr ""
|
8623 |
|
8624 |
+
#: includes/admin/add-ons/actions.php:56
|
8625 |
msgid "Only zip file type allowed to upload. Please upload a valid add-on file."
|
8626 |
msgstr ""
|
8627 |
|
8628 |
+
#: includes/admin/add-ons/actions.php:73
|
8629 |
msgid "This add-on is already installed."
|
8630 |
msgstr ""
|
8631 |
|
8632 |
+
#: includes/admin/add-ons/actions.php:94
|
8633 |
msgid "File system does not load correctly."
|
8634 |
msgstr ""
|
8635 |
|
8636 |
+
#: includes/admin/add-ons/actions.php:177
|
8637 |
msgid "This license key is already in use on this website."
|
8638 |
msgstr ""
|
8639 |
|
8640 |
+
#: includes/admin/add-ons/actions.php:340
|
8641 |
msgid "We are unable to deactivate invalid license"
|
8642 |
msgstr ""
|
8643 |
|
8644 |
+
#: includes/admin/add-ons/actions.php:370
|
8645 |
msgid "You have successfully deactivated the license."
|
8646 |
msgstr ""
|
8647 |
|
8648 |
+
#: includes/admin/add-ons/actions.php:424, includes/admin/settings/class-settings-license.php:248
|
8649 |
msgid "Last refreshed on %1$s at %2$s"
|
8650 |
msgstr ""
|
8651 |
|
8652 |
+
#: includes/admin/add-ons/actions.php:553, includes/admin/add-ons/actions.php:627
|
8653 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s."
|
8654 |
msgstr ""
|
8655 |
|
8656 |
+
#: includes/admin/add-ons/actions.php:561
|
8657 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s."
|
8658 |
msgstr ""
|
8659 |
|
8721 |
msgid "Are you sure you want to delete the selected donor(s)?"
|
8722 |
msgstr ""
|
8723 |
|
8724 |
+
#: includes/admin/donors/class-donor-table.php:575, includes/admin/donors/donors.php:1091
|
8725 |
msgid "Delete all associated donations and records?"
|
8726 |
msgstr ""
|
8727 |
|
8799 |
msgid "Donor Notes"
|
8800 |
msgstr ""
|
8801 |
|
8802 |
+
#: includes/admin/donors/donor-functions.php:77, includes/admin/donors/donors.php:1113
|
8803 |
msgid "Delete Donor"
|
8804 |
msgstr ""
|
8805 |
|
8807 |
msgid "Edit"
|
8808 |
msgstr ""
|
8809 |
|
8810 |
+
#: includes/admin/donors/donors.php:75, includes/admin/donors/donors.php:800
|
8811 |
msgid "Remove"
|
8812 |
msgstr ""
|
8813 |
|
8820 |
msgid "Edit Donor: %s %s"
|
8821 |
msgstr ""
|
8822 |
|
8823 |
+
#: includes/admin/donors/donors.php:359
|
8824 |
+
msgstr ""
|
8825 |
+
|
8826 |
+
#: includes/admin/donors/donors.php:396
|
8827 |
msgid "Donor since"
|
8828 |
msgstr ""
|
8829 |
|
8830 |
+
#: includes/admin/donors/donors.php:401
|
8831 |
msgid "Edit Donor"
|
8832 |
msgstr ""
|
8833 |
|
8834 |
+
#: includes/admin/donors/donors.php:412, includes/admin/payments/view-payment-details.php:576
|
8835 |
msgid "Donor ID:"
|
8836 |
msgstr ""
|
8837 |
|
8838 |
+
#: includes/admin/donors/donors.php:417
|
8839 |
msgid "User ID:"
|
8840 |
msgstr ""
|
8841 |
|
8842 |
+
#: includes/admin/donors/donors.php:450
|
8843 |
msgid "Unregistered"
|
8844 |
msgstr ""
|
8845 |
|
8846 |
+
#: includes/admin/donors/donors.php:461
|
8847 |
msgid "Disconnects the current user ID from this donor record."
|
8848 |
msgstr ""
|
8849 |
|
8850 |
+
#: includes/admin/donors/donors.php:462
|
8851 |
msgid "Disconnect User"
|
8852 |
msgstr ""
|
8853 |
|
8854 |
+
#: includes/admin/donors/donors.php:464
|
8855 |
msgid "View User Profile of current user ID."
|
8856 |
msgstr ""
|
8857 |
|
8858 |
+
#: includes/admin/donors/donors.php:465
|
8859 |
msgid "View User Profile"
|
8860 |
msgstr ""
|
8861 |
|
8862 |
+
#: includes/admin/donors/donors.php:478, includes/admin/payments/view-payment-details.php:643, includes/admin/shortcodes/shortcode-give-receipt.php:94
|
8863 |
msgid "Company Name:"
|
8864 |
msgstr ""
|
8865 |
|
8866 |
+
#: includes/admin/donors/donors.php:501
|
8867 |
msgid "Update Donor"
|
8868 |
msgstr ""
|
8869 |
|
8870 |
+
#: includes/admin/donors/donors.php:527
|
8871 |
msgid "%d Completed Donation"
|
8872 |
msgid_plural "%d Completed Donations"
|
8873 |
msgstr[0] ""
|
8874 |
msgstr[1] ""
|
8875 |
|
8876 |
+
#: includes/admin/donors/donors.php:534
|
8877 |
msgid "Lifetime Donations"
|
8878 |
msgstr ""
|
8879 |
|
8880 |
+
#: includes/admin/donors/donors.php:563
|
8881 |
msgid "Addresses"
|
8882 |
msgstr ""
|
8883 |
|
8884 |
+
#: includes/admin/donors/donors.php:612
|
8885 |
msgid "This donor does not have any addresses saved."
|
8886 |
msgstr ""
|
8887 |
|
8888 |
+
#: includes/admin/donors/donors.php:615
|
8889 |
msgid "Add Address"
|
8890 |
msgstr ""
|
8891 |
|
8892 |
+
#: includes/admin/donors/donors.php:625, includes/admin/payments/view-payment-details.php:740
|
8893 |
msgid "Country:"
|
8894 |
msgstr ""
|
8895 |
|
8896 |
+
#: includes/admin/donors/donors.php:636, includes/admin/payments/view-payment-details.php:750
|
8897 |
msgid "Select a country"
|
8898 |
msgstr ""
|
8899 |
|
8900 |
+
#: includes/admin/donors/donors.php:645, includes/admin/payments/view-payment-details.php:761
|
8901 |
msgid "Address 1:"
|
8902 |
msgstr ""
|
8903 |
|
8904 |
+
#: includes/admin/donors/donors.php:653, includes/admin/payments/view-payment-details.php:768
|
8905 |
msgid "Address 2:"
|
8906 |
msgstr ""
|
8907 |
|
8908 |
+
#: includes/admin/donors/donors.php:662, includes/admin/payments/view-payment-details.php:775
|
8909 |
msgid "City:"
|
8910 |
msgstr ""
|
8911 |
|
8912 |
+
#: includes/admin/donors/donors.php:676, includes/admin/payments/view-payment-details.php:786
|
8913 |
msgid "State / Province / County:"
|
8914 |
msgstr ""
|
8915 |
|
8916 |
+
#: includes/admin/donors/donors.php:703, includes/admin/payments/view-payment-details.php:798
|
8917 |
msgid "Select a state"
|
8918 |
msgstr ""
|
8919 |
|
8920 |
+
#: includes/admin/donors/donors.php:716, includes/admin/payments/view-payment-details.php:814
|
8921 |
msgid "Zip / Postal Code:"
|
8922 |
msgstr ""
|
8923 |
|
8924 |
+
#: includes/admin/donors/donors.php:728
|
8925 |
msgid "Save"
|
8926 |
msgstr ""
|
8927 |
|
8928 |
+
#: includes/admin/donors/donors.php:764, includes/admin/settings/class-settings-email.php:201
|
8929 |
msgid "Donor Emails"
|
8930 |
msgstr ""
|
8931 |
|
8932 |
+
#: includes/admin/donors/donors.php:770, includes/admin/donors/donors.php:847, includes/admin/donors/donors.php:909
|
8933 |
msgid "Actions"
|
8934 |
msgstr ""
|
8935 |
|
8936 |
+
#: includes/admin/donors/donors.php:798, includes/admin/donors/donors.php:815
|
8937 |
msgid "Make Primary"
|
8938 |
msgstr ""
|
8939 |
|
8940 |
+
#: includes/admin/donors/donors.php:817, includes/admin/emails/class-email-setting-field.php:335
|
8941 |
msgid "Add Email"
|
8942 |
msgstr ""
|
8943 |
|
8944 |
+
#: includes/admin/donors/donors.php:825
|
8945 |
msgid "No Emails Found"
|
8946 |
msgstr ""
|
8947 |
|
8948 |
+
#: includes/admin/donors/donors.php:832
|
8949 |
msgid "Recent Donations"
|
8950 |
msgstr ""
|
8951 |
|
8952 |
#. translators: %s: Donation ID
|
8953 |
+
#: includes/admin/donors/donors.php:869
|
8954 |
msgid "View Donation %s."
|
8955 |
msgstr ""
|
8956 |
|
8957 |
+
#: includes/admin/donors/donors.php:901
|
8958 |
msgid "Completed Forms"
|
8959 |
msgstr ""
|
8960 |
|
8961 |
#. translators: %s: form name
|
8962 |
+
#: includes/admin/donors/donors.php:924
|
8963 |
msgid "View Form %s."
|
8964 |
msgstr ""
|
8965 |
|
8966 |
+
#: includes/admin/donors/donors.php:935
|
8967 |
msgid "No completed donations found."
|
8968 |
msgstr ""
|
8969 |
|
8970 |
+
#: includes/admin/donors/donors.php:1027
|
8971 |
msgid "No donor notes found."
|
8972 |
msgstr ""
|
8973 |
|
8974 |
+
#: includes/admin/donors/donors.php:1080
|
8975 |
msgid "Are you sure you want to delete this donor?"
|
8976 |
msgstr ""
|
8977 |
|
8992 |
msgstr ""
|
8993 |
|
8994 |
#: includes/admin/emails/class-donor-note-email.php:42
|
8995 |
+
msgid "Donation Note"
|
8996 |
msgstr ""
|
8997 |
|
8998 |
#: includes/admin/emails/class-donor-note-email.php:43
|
8999 |
+
msgid "Sent when a donation note is added to a donation payment."
|
9000 |
msgstr ""
|
9001 |
|
9002 |
#: includes/admin/emails/class-donor-note-email.php:47
|
9189 |
msgstr ""
|
9190 |
|
9191 |
#: includes/admin/emails/class-email-setting-field.php:254
|
9192 |
+
msgid "Available template tags for this email. HTML is accepted."
|
|
|
|
|
|
|
|
|
9193 |
msgstr ""
|
9194 |
|
9195 |
+
#: includes/admin/emails/class-email-setting-field.php:259
|
9196 |
msgid "See our documentation"
|
9197 |
msgstr ""
|
9198 |
|
9199 |
+
#: includes/admin/emails/class-email-setting-field.php:260
|
9200 |
msgid "for examples of how to use custom meta email tags to output additional donor or donation information in your Give emails."
|
9201 |
msgstr ""
|
9202 |
|
9203 |
+
#: includes/admin/emails/class-email-setting-field.php:268
|
9204 |
msgid "Email message"
|
9205 |
msgstr ""
|
9206 |
|
9207 |
+
#: includes/admin/emails/class-email-setting-field.php:289
|
9208 |
msgid "Email Content Type"
|
9209 |
msgstr ""
|
9210 |
|
9211 |
+
#: includes/admin/emails/class-email-setting-field.php:290
|
9212 |
msgid "Choose email type."
|
9213 |
msgstr ""
|
9214 |
|
9215 |
+
#: includes/admin/emails/class-email-setting-field.php:317
|
9216 |
msgid "Email Recipients"
|
9217 |
msgstr ""
|
9218 |
|
9219 |
+
#: includes/admin/emails/class-email-setting-field.php:318
|
9220 |
msgid "Enter the email address(es) that should receive a notification."
|
9221 |
msgstr ""
|
9222 |
|
9223 |
+
#: includes/admin/emails/class-email-setting-field.php:322
|
9224 |
msgid "Add Recipient"
|
9225 |
msgstr ""
|
9226 |
|
9227 |
+
#: includes/admin/emails/class-email-setting-field.php:329
|
9228 |
msgid "Enter the email address that should receive a notification."
|
9229 |
msgstr ""
|
9230 |
|
9231 |
+
#: includes/admin/emails/class-email-setting-field.php:336
|
9232 |
msgid "Email Recipient"
|
9233 |
msgstr ""
|
9234 |
|
9235 |
+
#: includes/admin/emails/class-email-setting-field.php:356
|
9236 |
msgid "This email is automatically sent to the donor and the recipient cannot be customized."
|
9237 |
msgstr ""
|
9238 |
|
9239 |
+
#: includes/admin/emails/class-email-setting-field.php:375
|
9240 |
msgid "Preview Email"
|
9241 |
msgstr ""
|
9242 |
|
9243 |
+
#: includes/admin/emails/class-email-setting-field.php:376
|
9244 |
msgid "Click the \"Preview Email\" button to preview the email in your browser. Click the \"Send Test Email\" button to send a test email directly to your inbox."
|
9245 |
msgstr ""
|
9246 |
|
11513 |
msgid "Save changes"
|
11514 |
msgstr ""
|
11515 |
|
11516 |
+
#: includes/gateways/stripe/class-give-stripe.php:107
|
11517 |
msgid "Stripe - Credit Card"
|
11518 |
msgstr ""
|
11519 |
|
11520 |
+
#: includes/gateways/stripe/class-give-stripe.php:108
|
11521 |
msgid "Credit Card"
|
11522 |
msgstr ""
|
11523 |
|
13121 |
msgid "Stripe Customer generated by GiveWP via %s"
|
13122 |
msgstr ""
|
13123 |
|
13124 |
+
#: includes/gateways/stripe/includes/class-give-stripe-customer.php:304, includes/gateways/stripe/includes/class-give-stripe-customer.php:398, includes/gateways/stripe/includes/class-give-stripe-customer.php:416, includes/gateways/stripe/includes/class-give-stripe-customer.php:507, includes/gateways/stripe/includes/class-give-stripe-customer.php:525, includes/gateways/stripe/includes/class-give-stripe-gateway.php:127, includes/gateways/stripe/includes/class-give-stripe-gateway.php:262, includes/gateways/stripe/includes/class-give-stripe-gateway.php:340, includes/gateways/stripe/includes/class-give-stripe-gateway.php:419, includes/gateways/stripe/includes/class-give-stripe-logger.php:77, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:196, includes/gateways/stripe/includes/give-stripe-helpers.php:685, includes/gateways/stripe/includes/give-stripe-helpers.php:788, includes/gateways/stripe/includes/give-stripe-helpers.php:953, includes/gateways/stripe/includes/admin/admin-actions.php:191, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:80, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:371
|
13125 |
msgid "Stripe Error"
|
13126 |
msgstr ""
|
13127 |
|
13136 |
msgid "An occurred while processing the donation with the gateway. Please try your donation again."
|
13137 |
msgstr ""
|
13138 |
|
13139 |
+
#: includes/gateways/stripe/includes/class-give-stripe-customer.php:415, includes/gateways/stripe/includes/class-give-stripe-customer.php:524, includes/gateways/stripe/includes/class-give-stripe-gateway.php:134, includes/gateways/stripe/includes/class-give-stripe-gateway.php:189, includes/gateways/stripe/includes/class-give-stripe-gateway.php:229, includes/gateways/stripe/includes/class-give-stripe-gateway.php:269, includes/gateways/stripe/includes/class-give-stripe-gateway.php:339, includes/gateways/stripe/includes/give-stripe-helpers.php:795
|
13140 |
msgid "An error occurred while processing the donation. Please try again."
|
13141 |
msgstr ""
|
13142 |
|
13178 |
|
13179 |
#. translators: %s Exception Error Message
|
13180 |
#. translators: Exception Message Body
|
13181 |
+
#: includes/gateways/stripe/includes/class-give-stripe-gateway.php:324, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:374
|
13182 |
msgid "The Stripe Gateway returned an error while processing a donation. Details: %s"
|
13183 |
msgstr ""
|
13184 |
|
13398 |
msgstr ""
|
13399 |
|
13400 |
#. translators: %s Exception Message Body
|
13401 |
+
#: includes/gateways/stripe/includes/give-stripe-helpers.php:791
|
13402 |
msgid "Unable to set Stripe API Key. Details: %s"
|
13403 |
msgstr ""
|
13404 |
|
13405 |
+
#: includes/gateways/stripe/includes/give-stripe-helpers.php:1112, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:285
|
13406 |
msgid "Stripe Customer Creation Failed"
|
13407 |
msgstr ""
|
13408 |
|
13409 |
#. translators: %s Donation Data
|
13410 |
#. translators: %s Donation Data
|
13411 |
+
#: includes/gateways/stripe/includes/give-stripe-helpers.php:1115, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:288
|
13412 |
msgid "Customer creation failed while processing the donation. Details: %s"
|
13413 |
msgstr ""
|
13414 |
|
13415 |
+
#: includes/gateways/stripe/includes/give-stripe-helpers.php:1119, includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:292
|
13416 |
msgid "The Stripe Gateway returned an error while processing the donation."
|
13417 |
msgstr ""
|
13418 |
|
13463 |
msgid "Stripe Connect"
|
13464 |
msgstr ""
|
13465 |
|
13466 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:159, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:533
|
13467 |
msgid "Stripe Webhooks"
|
13468 |
msgstr ""
|
13469 |
|
13552 |
msgstr ""
|
13553 |
|
13554 |
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:336
|
13555 |
+
msgid "Stripe SDK Compatibility"
|
13556 |
+
msgstr ""
|
13557 |
+
|
13558 |
+
#. translators: 1. GiveWP Support URL
|
13559 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:339
|
13560 |
+
msgid "If you are using another plugin that uses Stripe to accept payments there is a chance that it may include the <a href=\"%1$s\" target=\"_blank\">Stripe SDK</a> (Software Development Kit) either through <a href=\"%2$s\" target=\"_blank\">Composer</a> or manually initalized. This can cause conflicts with GiveWP because WordPress does not have a dependency management system to prevent conflicts. To help resolve conflicts we have included two options to use Stripe alongside these other plugins. The recommended way is Composer, but if that is not working then we recommend manual initialization. If both options do not work please <a href=\"%3$s\" target=\"_blank\">contact support</a>."
|
13561 |
+
msgstr ""
|
13562 |
+
|
13563 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:347
|
13564 |
+
msgid "Composer Autoloading"
|
13565 |
+
msgstr ""
|
13566 |
+
|
13567 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:348
|
13568 |
+
msgid "Manual Initialization"
|
13569 |
+
msgstr ""
|
13570 |
+
|
13571 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:354
|
13572 |
+
msgid "Stripe Receipt Emails"
|
13573 |
+
msgstr ""
|
13574 |
+
|
13575 |
+
#. translators: 1. GiveWP Support URL
|
13576 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:357
|
13577 |
+
msgid "Check this option if you would like donors to receive receipt emails directly from Stripe. By default, donors will receive GiveWP generated <a href=\"%1$s\" target=\"_blank\">receipt emails</a>."
|
13578 |
+
msgstr ""
|
13579 |
+
|
13580 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:365
|
13581 |
msgid "Stripe JS Incompatibility"
|
13582 |
msgstr ""
|
13583 |
|
13584 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:366
|
13585 |
msgid "If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing."
|
13586 |
msgstr ""
|
13587 |
|
13588 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:372
|
13589 |
msgid "Stripe Styles"
|
13590 |
msgstr ""
|
13591 |
|
13592 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:373
|
13593 |
msgid "Edit the properties above to match the look and feel of your WordPress theme. These styles will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. Any valid CSS property can be defined, however, it must be formatted as JSON, not CSS. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#element-options\" target=\"_blank\">article</a>."
|
13594 |
msgstr ""
|
13595 |
|
13596 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:380
|
13597 |
msgid "Stripe Fonts"
|
13598 |
msgstr ""
|
13599 |
|
13600 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:381
|
13601 |
msgid "Select the type of font you want to load in Stripe Credit Card fields including Card Number, CVC and Expiration. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#stripe-elements\" target=\"_blank\">article</a>."
|
13602 |
msgstr ""
|
13603 |
|
13604 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:386
|
13605 |
msgid "Google Fonts"
|
13606 |
msgstr ""
|
13607 |
|
13608 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:387, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:400
|
13609 |
msgid "Custom Fonts"
|
13610 |
msgstr ""
|
13611 |
|
13612 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:392
|
13613 |
msgid "Google Fonts URL"
|
13614 |
msgstr ""
|
13615 |
|
13616 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:393
|
13617 |
msgid "Please enter the Google Fonts URL which is applied to your theme to have the Stripe Credit Card fields reflect the same fonts."
|
13618 |
msgstr ""
|
13619 |
|
13620 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:401
|
13621 |
msgid "Edit the font properties above to match the fonts of your WordPress theme. These font properties will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. However, it must be formatted as JSON, not CSS."
|
13622 |
msgstr ""
|
13623 |
|
13624 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:466
|
13625 |
msgid "Stripe Connection"
|
13626 |
msgstr ""
|
13627 |
|
13628 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:477
|
13629 |
msgid "Stripe is connected."
|
13630 |
msgstr ""
|
13631 |
|
13632 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:485
|
13633 |
msgid "[Disconnect]"
|
13634 |
msgstr ""
|
13635 |
|
13636 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:492
|
13637 |
msgid "Stripe is NOT connected."
|
13638 |
msgstr ""
|
13639 |
|
13640 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:506
|
13641 |
msgid "The free Stripe payment gateway includes an additional 2%% fee for processing one-time donations. This fee is removed by using the premium <a href=\"%1$s\" target=\"_blank\">Stripe add-on</a> and never applies to subscription donations made through the <a href=\"%2$s\" target=\"_blank\">Recurring Donations add-on</a>. <a href=\"%3$s\" target=\"_blank\">Learn More ></a>"
|
13642 |
msgstr ""
|
13643 |
|
13644 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:540
|
13645 |
msgid "In order for Stripe to function properly, you must configure your Stripe webhooks."
|
13646 |
msgstr ""
|
13647 |
|
13648 |
#. translators: 1. Webhook settings page.
|
13649 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:543
|
13650 |
msgid " You can visit your <a href=\"%1$s\" target=\"_blank\">Stripe Account Dashboard</a> to add a new webhook. "
|
13651 |
msgstr ""
|
13652 |
|
13653 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:546
|
13654 |
msgid "Please add a new webhook endpoint for the following URL:"
|
13655 |
msgstr ""
|
13656 |
|
13657 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:550
|
13658 |
msgid "Webhook URL:"
|
13659 |
msgstr ""
|
13660 |
|
13661 |
#. translators: 1. Documentation on webhook setup.
|
13662 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:568
|
13663 |
msgid "See our <a href=\"%1$s\" target=\"_blank\">documentation</a> for more information."
|
13664 |
msgstr ""
|
13665 |
|
13666 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:576
|
13667 |
msgid "Stripe webhooks are important to setup so Give can communicate properly with the payment gateway. It is not required to have the sandbox webhooks setup unless you are testing. Note: webhooks cannot be setup on localhost or websites in maintenance mode."
|
13668 |
msgstr ""
|
13669 |
|
13670 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:617
|
13671 |
msgid "Base Styles"
|
13672 |
msgstr ""
|
13673 |
|
13674 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:631
|
13675 |
msgid "Empty Styles"
|
13676 |
msgstr ""
|
13677 |
|
13678 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:647
|
13679 |
msgid "Invalid Styles"
|
13680 |
msgstr ""
|
13681 |
|
13682 |
+
#: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:663
|
13683 |
msgid "Complete Styles"
|
13684 |
msgstr ""
|
13685 |
|
13704 |
msgid "A Stripe token failed to be generated. Please check Stripe logs for more information."
|
13705 |
msgstr ""
|
13706 |
|
13707 |
+
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:199
|
13708 |
+
msgid "Donation creating error"
|
13709 |
+
msgstr ""
|
13710 |
+
|
13711 |
+
#. translators: %s Donation Data
|
13712 |
+
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:202
|
13713 |
+
msgid "Unable to create a pending donation. Details: %s"
|
13714 |
+
msgstr ""
|
13715 |
+
|
13716 |
+
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:206
|
13717 |
+
msgid "The Stripe Gateway returned an error while creating a pending donation."
|
13718 |
+
msgstr ""
|
13719 |
+
|
13720 |
+
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:384
|
13721 |
msgid "Donor Error"
|
13722 |
msgstr ""
|
13723 |
|
13724 |
+
#: includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php:384
|
13725 |
msgid "Donor has cancelled the payment during authorization process."
|
13726 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donations, donation plugin, wordpress donation plugin, givewp, g
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.5.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -205,13 +205,22 @@ Use Give for donations, and let WooCommerce or WP eCommerce or the like handle y
|
|
205 |
|
206 |
== Changelog ==
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
= 2.5.3: July 30th, 2019 =
|
209 |
* Fix: The Gutenberg Block for Donation Forms embedding was only displaying the most recent 10 donation forms. Now you can search for additional forms and they will for embedding. [#4137](https://github.com/impress-org/give/issues/4137)
|
210 |
* Fix: iThemes Sync was again having an issue with our plugin due to a change we reverted in a previous version. That change has been resolved and now syncing can commence again. Rejoice! [#4195](https://github.com/impress-org/give/issues/4195)
|
211 |
* Fix: Resolved compatibility issues with other plugins using the Stripe SDK by initializing it manually within the included GiveWP Core Stripe gateway class. We tested this alongside many of the most popular plugins to ensure smooth sailing alongside eachother. [#4193](https://github.com/impress-org/give/issues/4193)
|
212 |
* Fix: Resolved an issue with editing a donation form when it has thousands of donations. To prevent this issue we now are deleting the group cache of the donation and donor instead of individual IDs.
|
213 |
* Fix: Several deprecation notices were displaying for our Gutenberg Blocks. They are now all updated with the latest version of the WP Block Editor. [#4137](https://github.com/impress-org/give/issues/4137)
|
214 |
-
* Fix: The "Empty Trash" button was in
|
215 |
|
216 |
= 2.5.2: July 16th, 2019 =
|
217 |
* Fix: Prevent "PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array" when updating to 2.5+ on a pre WP 5.0 version. [#4176](https://github.com/impress-org/give/issues/4176)
|
@@ -246,7 +255,7 @@ Use Give for donations, and let WooCommerce or WP eCommerce or the like handle y
|
|
246 |
* Tweak: The Swiss Franc symbol has been updated to "CHF" instead of "Fr." [#4086](https://github.com/impress-org/give/issues/4086)
|
247 |
* Tweak: Removed the word "nonce" from all front end error messages and updated them to be more user friendly and less technically confusing. [#4129](https://github.com/impress-org/give/issues/4129), [#4031](https://github.com/impress-org/give/issues/4031)
|
248 |
* Tweak: Changed "Swaziland" to "Eswatini". [#4120](https://github.com/impress-org/give/issues/4120)
|
249 |
-
* Optimization: Improved various database option calls and general meta query performance throughout the plugin to speed up queries and reduce server load. [#3359](https://github.com/impress-org/give/issues/3359), [#3382](https://github.com/impress-org/give/issues/3382), [#3383](https://github.com/impress-org/give/issues/3383), [#3872](https://
|
250 |
* Refactor: Pre-2.0.0 backward compatibility code has been removed because it has reached end of life for support. [#3033](https://github.com/impress-org/give/issues/3033)
|
251 |
|
252 |
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.5.4
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
205 |
|
206 |
== Changelog ==
|
207 |
|
208 |
+
= 2.5.4: August 7th, 2019 =
|
209 |
+
* New: Stripe compatiblity solution - There is now a setting under `Donations > Settings > Advanced > Stripe` that allows you select which implementation of Stripe you wish to use. If you are using another plugin that uses Stripe to accept payments there is a chance that it may include the [Stripe SDK](https://github.com/stripe/stripe-php) (Software Development Kit) either through [Composer](http://getcomposer.org/) or manually initalized. This can cause conflicts with GiveWP because WordPress does not have a dependency management system to prevent conflicts and the other plugins may be using outdated versions compared to GiveWP's. To help resolve conflicts we have included two options to use Stripe alongside these other plugins. The recommended way is Composer, but if that is not working then we recommend manual initialization. If both options do not work please [contact support](https://givewp.com/support). [#4193](https://github.com/impress-org/give/issues/4193)
|
210 |
+
* Fix: When using Stripe there was a chance your donors would get a receipt from Stripe and from GiveWP. There is now a setting to set whether you want to send Stripe generated receipt emails or use GiveWP's. We recommend using ours if you're using multiple gateways, but if you're only using Stripe you may enable this new option and disable the default receipts. [#4203](https://github.com/impress-org/give/issues/4203)
|
211 |
+
* Fix: There was an issue with converting dollars to cents and back within Stripe free which has been resolved and now has unit tests to ensure no more issues crop up with the functional conversions. [#4200](https://github.com/impress-org/give/issues/4220)
|
212 |
+
* Fix: When editing a donor you can now properly remove the "Title" for the donor (such as "Mr", "Mrs", etc). [#4211](https://github.com/impress-org/give/issues/4211)
|
213 |
+
* Fix: Ensure the requirement on the state field is removed from hidden state fields for certain countries and regions. [#4201](https://github.com/impress-org/give/issues/4201)
|
214 |
+
* Fix: Resolved a compatibility issue with the Tickera plugin's implementation of QR codes within the PDF generator. The issue was with our shared library of TCPDF and now the QR codes display correctly due to a constant change on our end. [#3880](https://github.com/impress-org/give/issues/3880)
|
215 |
+
* Tweak: You can now activate any plugin under `Settings > Licenses`. Previously we were requiring the author to only be GiveWP which caused an "this plugin does not have a valid header" error message to annoyingly display. [#4217](https://github.com/impress-org/give/issues/4217)
|
216 |
+
|
217 |
= 2.5.3: July 30th, 2019 =
|
218 |
* Fix: The Gutenberg Block for Donation Forms embedding was only displaying the most recent 10 donation forms. Now you can search for additional forms and they will for embedding. [#4137](https://github.com/impress-org/give/issues/4137)
|
219 |
* Fix: iThemes Sync was again having an issue with our plugin due to a change we reverted in a previous version. That change has been resolved and now syncing can commence again. Rejoice! [#4195](https://github.com/impress-org/give/issues/4195)
|
220 |
* Fix: Resolved compatibility issues with other plugins using the Stripe SDK by initializing it manually within the included GiveWP Core Stripe gateway class. We tested this alongside many of the most popular plugins to ensure smooth sailing alongside eachother. [#4193](https://github.com/impress-org/give/issues/4193)
|
221 |
* Fix: Resolved an issue with editing a donation form when it has thousands of donations. To prevent this issue we now are deleting the group cache of the donation and donor instead of individual IDs.
|
222 |
* Fix: Several deprecation notices were displaying for our Gutenberg Blocks. They are now all updated with the latest version of the WP Block Editor. [#4137](https://github.com/impress-org/give/issues/4137)
|
223 |
+
* Fix: The "Empty Trash" button was in an incorrect location on the donation form edit screen and now has been placed in it's proper position. [#4075](https://github.com/impress-org/give/issues/4075)
|
224 |
|
225 |
= 2.5.2: July 16th, 2019 =
|
226 |
* Fix: Prevent "PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array" when updating to 2.5+ on a pre WP 5.0 version. [#4176](https://github.com/impress-org/give/issues/4176)
|
255 |
* Tweak: The Swiss Franc symbol has been updated to "CHF" instead of "Fr." [#4086](https://github.com/impress-org/give/issues/4086)
|
256 |
* Tweak: Removed the word "nonce" from all front end error messages and updated them to be more user friendly and less technically confusing. [#4129](https://github.com/impress-org/give/issues/4129), [#4031](https://github.com/impress-org/give/issues/4031)
|
257 |
* Tweak: Changed "Swaziland" to "Eswatini". [#4120](https://github.com/impress-org/give/issues/4120)
|
258 |
+
* Optimization: Improved various database option calls and general meta query performance throughout the plugin to speed up queries and reduce server load. [#3359](https://github.com/impress-org/give/issues/3359), [#3382](https://github.com/impress-org/give/issues/3382), [#3383](https://github.com/impress-org/give/issues/3383), [#3872](https://github.com/impress-org/give/issues/3872), [#3994](https://github.com/impress-org/give/issues/3994), [#4104](https://github.com/impress-org/give/issues/4104)
|
259 |
* Refactor: Pre-2.0.0 backward compatibility code has been removed because it has reached end of life for support. [#3033](https://github.com/impress-org/give/issues/3033)
|
260 |
|
261 |
|
templates/shortcode-goal.php
CHANGED
@@ -90,14 +90,64 @@ $progress = apply_filters( 'give_goal_amount_funded_percentage_output', $progres
|
|
90 |
'decimal' => false,
|
91 |
), $form_id );
|
92 |
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
$income = give_human_format_large_amount( give_format_amount( $income, $income_format_args ), array( 'currency' => $form_currency ) );
|
95 |
$goal = give_human_format_large_amount( give_format_amount( $goal, $goal_format_args ), array( 'currency' => $form_currency ) );
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
);
|
102 |
|
103 |
elseif ( 'percentage' === $goal_format ) :
|
90 |
'decimal' => false,
|
91 |
), $form_id );
|
92 |
|
93 |
+
/**
|
94 |
+
* This filter will be used to convert the goal amounts to different currencies.
|
95 |
+
*
|
96 |
+
* @since 2.5.4
|
97 |
+
*
|
98 |
+
* @param array $amounts List of goal amounts.
|
99 |
+
* @param int $form_id Donation Form ID.
|
100 |
+
*/
|
101 |
+
$goal_amounts = apply_filters(
|
102 |
+
'give_goal_amounts',
|
103 |
+
array(
|
104 |
+
$form_currency => $goal,
|
105 |
+
),
|
106 |
+
$form_id
|
107 |
+
);
|
108 |
+
|
109 |
+
/**
|
110 |
+
* This filter will be used to convert the income amounts to different currencies.
|
111 |
+
*
|
112 |
+
* @since 2.5.4
|
113 |
+
*
|
114 |
+
* @param array $amounts List of goal amounts.
|
115 |
+
* @param int $form_id Donation Form ID.
|
116 |
+
*/
|
117 |
+
$income_amounts = apply_filters(
|
118 |
+
'give_goal_raised_amounts',
|
119 |
+
array(
|
120 |
+
$form_currency => $income,
|
121 |
+
),
|
122 |
+
$form_id
|
123 |
+
);
|
124 |
+
|
125 |
+
// Get human readable donation amount.
|
126 |
$income = give_human_format_large_amount( give_format_amount( $income, $income_format_args ), array( 'currency' => $form_currency ) );
|
127 |
$goal = give_human_format_large_amount( give_format_amount( $goal, $goal_format_args ), array( 'currency' => $form_currency ) );
|
128 |
|
129 |
+
// Format the human readable donation amount.
|
130 |
+
$formatted_income = give_currency_filter(
|
131 |
+
$income,
|
132 |
+
array(
|
133 |
+
'form_id' => $form_id,
|
134 |
+
)
|
135 |
+
);
|
136 |
+
|
137 |
+
$formatted_goal = give_currency_filter(
|
138 |
+
$goal,
|
139 |
+
array(
|
140 |
+
'form_id' => $form_id,
|
141 |
+
)
|
142 |
+
);
|
143 |
+
|
144 |
+
echo sprintf(
|
145 |
+
/* translators: 1: amount of income raised 2: goal target amount. */
|
146 |
+
__( '<span class="income" data-amounts="%1$s">%2$s</span> of <span class="goal-text" data-amounts="%3$s">%4$s</span> raised', 'give' ),
|
147 |
+
esc_attr( wp_json_encode( $income_amounts, JSON_PRETTY_PRINT ) ),
|
148 |
+
esc_attr( $formatted_income ),
|
149 |
+
esc_attr( wp_json_encode( $goal_amounts, JSON_PRETTY_PRINT ) ),
|
150 |
+
esc_attr( $formatted_goal )
|
151 |
);
|
152 |
|
153 |
elseif ( 'percentage' === $goal_format ) :
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit6950d65c1ae6027deed3794160e36362::getLoader();
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -6,5 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
9 |
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
|
10 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'Stripe\\' => array($vendorDir . '/stripe/stripe-php/lib'),
|
10 |
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
|
11 |
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitb8ebd7572de5bccd7636ba78c5b3fa5b
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit6950d65c1ae6027deed3794160e36362
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit6950d65c1ae6027deed3794160e36362', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit6950d65c1ae6027deed3794160e36362', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit6950d65c1ae6027deed3794160e36362::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,9 +4,13 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
|
|
|
|
|
|
|
|
10 |
'C' =>
|
11 |
array (
|
12 |
'Composer\\Installers\\' => 20,
|
@@ -14,6 +18,10 @@ class ComposerStaticInitb8ebd7572de5bccd7636ba78c5b3fa5b
|
|
14 |
);
|
15 |
|
16 |
public static $prefixDirsPsr4 = array (
|
|
|
|
|
|
|
|
|
17 |
'Composer\\Installers\\' =>
|
18 |
array (
|
19 |
0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
|
@@ -40,9 +48,9 @@ class ComposerStaticInitb8ebd7572de5bccd7636ba78c5b3fa5b
|
|
40 |
public static function getInitializer(ClassLoader $loader)
|
41 |
{
|
42 |
return \Closure::bind(function () use ($loader) {
|
43 |
-
$loader->prefixLengthsPsr4 =
|
44 |
-
$loader->prefixDirsPsr4 =
|
45 |
-
$loader->classMap =
|
46 |
|
47 |
}, null, ClassLoader::class);
|
48 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit6950d65c1ae6027deed3794160e36362
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
+
'S' =>
|
11 |
+
array (
|
12 |
+
'Stripe\\' => 7,
|
13 |
+
),
|
14 |
'C' =>
|
15 |
array (
|
16 |
'Composer\\Installers\\' => 20,
|
18 |
);
|
19 |
|
20 |
public static $prefixDirsPsr4 = array (
|
21 |
+
'Stripe\\' =>
|
22 |
+
array (
|
23 |
+
0 => __DIR__ . '/..' . '/stripe/stripe-php/lib',
|
24 |
+
),
|
25 |
'Composer\\Installers\\' =>
|
26 |
array (
|
27 |
0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
|
48 |
public static function getInitializer(ClassLoader $loader)
|
49 |
{
|
50 |
return \Closure::bind(function () use ($loader) {
|
51 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit6950d65c1ae6027deed3794160e36362::$prefixLengthsPsr4;
|
52 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit6950d65c1ae6027deed3794160e36362::$prefixDirsPsr4;
|
53 |
+
$loader->classMap = ComposerStaticInit6950d65c1ae6027deed3794160e36362::$classMap;
|
54 |
|
55 |
}, null, ClassLoader::class);
|
56 |
}
|
vendor/composer/installed.json
CHANGED
@@ -121,6 +121,64 @@
|
|
121 |
"zikula"
|
122 |
]
|
123 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
{
|
125 |
"name": "tecnickcom/tcpdf",
|
126 |
"version": "6.2.26",
|
121 |
"zikula"
|
122 |
]
|
123 |
},
|
124 |
+
{
|
125 |
+
"name": "stripe/stripe-php",
|
126 |
+
"version": "v6.41.0",
|
127 |
+
"version_normalized": "6.41.0.0",
|
128 |
+
"source": {
|
129 |
+
"type": "git",
|
130 |
+
"url": "https://github.com/stripe/stripe-php.git",
|
131 |
+
"reference": "abd52aed846b52db9365b470be696d0905c08b01"
|
132 |
+
},
|
133 |
+
"dist": {
|
134 |
+
"type": "zip",
|
135 |
+
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/abd52aed846b52db9365b470be696d0905c08b01",
|
136 |
+
"reference": "abd52aed846b52db9365b470be696d0905c08b01",
|
137 |
+
"shasum": ""
|
138 |
+
},
|
139 |
+
"require": {
|
140 |
+
"ext-curl": "*",
|
141 |
+
"ext-json": "*",
|
142 |
+
"ext-mbstring": "*",
|
143 |
+
"php": ">=5.4.0"
|
144 |
+
},
|
145 |
+
"require-dev": {
|
146 |
+
"php-coveralls/php-coveralls": "1.*",
|
147 |
+
"phpunit/phpunit": "~4.0",
|
148 |
+
"squizlabs/php_codesniffer": "~2.0",
|
149 |
+
"symfony/process": "~2.8"
|
150 |
+
},
|
151 |
+
"time": "2019-08-01T01:41:19+00:00",
|
152 |
+
"type": "library",
|
153 |
+
"extra": {
|
154 |
+
"branch-alias": {
|
155 |
+
"dev-master": "2.0-dev"
|
156 |
+
}
|
157 |
+
},
|
158 |
+
"installation-source": "dist",
|
159 |
+
"autoload": {
|
160 |
+
"psr-4": {
|
161 |
+
"Stripe\\": "lib/"
|
162 |
+
}
|
163 |
+
},
|
164 |
+
"notification-url": "https://packagist.org/downloads/",
|
165 |
+
"license": [
|
166 |
+
"MIT"
|
167 |
+
],
|
168 |
+
"authors": [
|
169 |
+
{
|
170 |
+
"name": "Stripe and contributors",
|
171 |
+
"homepage": "https://github.com/stripe/stripe-php/contributors"
|
172 |
+
}
|
173 |
+
],
|
174 |
+
"description": "Stripe PHP Library",
|
175 |
+
"homepage": "https://stripe.com/",
|
176 |
+
"keywords": [
|
177 |
+
"api",
|
178 |
+
"payment processing",
|
179 |
+
"stripe"
|
180 |
+
]
|
181 |
+
},
|
182 |
{
|
183 |
"name": "tecnickcom/tcpdf",
|
184 |
"version": "6.2.26",
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/.gitignore
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/CHANGELOG.md
RENAMED
@@ -1,5 +1,8 @@
|
|
1 |
# Changelog
|
2 |
|
|
|
|
|
|
|
3 |
## 6.40.0 - 2019-06-27
|
4 |
* [#675](https://github.com/stripe/stripe-php/pull/675) Add support for `SetupIntent` resource and APIs
|
5 |
|
1 |
# Changelog
|
2 |
|
3 |
+
## 6.41.0 - 2019-07-31
|
4 |
+
* [#683](https://github.com/stripe/stripe-php/pull/683) Move the List Balance History API to `/v1/balance_transactions`
|
5 |
+
|
6 |
## 6.40.0 - 2019-06-27
|
7 |
* [#675](https://github.com/stripe/stripe-php/pull/675) Add support for `SetupIntent` resource and APIs
|
8 |
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/LICENSE
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/README.md
RENAMED
File without changes
|
vendor/stripe/stripe-php/VERSION
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
6.41.0
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/build.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/composer.json
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/data/ca-certificates.crt
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/init.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Account.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/AccountLink.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/AlipayAccount.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/All.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Create.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Delete.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/NestedResource.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Request.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Retrieve.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiOperations/Update.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiRequestor.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiResource.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApiResponse.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApplePayDomain.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApplicationFee.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ApplicationFeeRefund.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Balance.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BalanceTransaction.php
RENAMED
@@ -63,13 +63,4 @@ class BalanceTransaction extends ApiResource
|
|
63 |
const TYPE_TRANSFER_CANCEL = 'transfer_cancel';
|
64 |
const TYPE_TRANSFER_FAILURE = 'transfer_failure';
|
65 |
const TYPE_TRANSFER_REFUND = 'transfer_refund';
|
66 |
-
|
67 |
-
/**
|
68 |
-
* @return string The class URL for this resource. It needs to be special
|
69 |
-
* cased because it doesn't fit into the standard resource pattern.
|
70 |
-
*/
|
71 |
-
public static function classUrl()
|
72 |
-
{
|
73 |
-
return "/v1/balance/history";
|
74 |
-
}
|
75 |
}
|
63 |
const TYPE_TRANSFER_CANCEL = 'transfer_cancel';
|
64 |
const TYPE_TRANSFER_FAILURE = 'transfer_failure';
|
65 |
const TYPE_TRANSFER_REFUND = 'transfer_refund';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BankAccount.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BitcoinReceiver.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/BitcoinTransaction.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Capability.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Card.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Charge.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Checkout/Session.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Collection.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/CountrySpec.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Coupon.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/CreditNote.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Customer.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/CustomerBalanceTransaction.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Discount.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Dispute.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/EphemeralKey.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Api.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/ApiConnection.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Authentication.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Base.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Card.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Idempotency.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/InvalidRequest.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidClient.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidGrant.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidRequest.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/InvalidScope.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/OAuthBase.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/UnsupportedGrantType.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/OAuth/UnsupportedResponseType.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/Permission.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/RateLimit.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Error/SignatureVerification.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Event.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ExchangeRate.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/File.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/FileLink.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/FileUpload.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/HttpClient/ClientInterface.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/HttpClient/CurlClient.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Invoice.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/InvoiceItem.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/InvoiceLineItem.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/IssuerFraudRecord.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Authorization.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Card.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/CardDetails.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Cardholder.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Dispute.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Issuing/Transaction.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/LoginLink.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/OAuth.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Order.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/OrderItem.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/OrderReturn.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/PaymentIntent.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/PaymentMethod.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Payout.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Person.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Plan.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Product.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Radar/EarlyFraudWarning.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Radar/ValueList.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Radar/ValueListItem.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Recipient.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/RecipientTransfer.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Refund.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Reporting/ReportRun.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Reporting/ReportType.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/RequestTelemetry.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Review.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SKU.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SetupIntent.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Sigma/ScheduledQueryRun.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SingletonApiResource.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Source.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SourceTransaction.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Stripe.php
RENAMED
@@ -55,7 +55,7 @@ class Stripe
|
|
55 |
// @var float Initial delay between retries, in seconds
|
56 |
private static $initialNetworkRetryDelay = 0.5;
|
57 |
|
58 |
-
const VERSION = '6.
|
59 |
|
60 |
/**
|
61 |
* @return string The API key used for requests.
|
55 |
// @var float Initial delay between retries, in seconds
|
56 |
private static $initialNetworkRetryDelay = 0.5;
|
57 |
|
58 |
+
const VERSION = '6.41.0';
|
59 |
|
60 |
/**
|
61 |
* @return string The API key used for requests.
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/StripeObject.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Subscription.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SubscriptionItem.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SubscriptionSchedule.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/SubscriptionScheduleRevision.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/TaxId.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/TaxRate.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Terminal/ConnectionToken.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Terminal/Location.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Terminal/Reader.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/ThreeDSecure.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Token.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Topup.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Transfer.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/TransferReversal.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/UsageRecord.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/UsageRecordSummary.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/AutoPagingIterator.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/CaseInsensitiveArray.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/DefaultLogger.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/LoggerInterface.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/RandomGenerator.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/RequestOptions.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/Set.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Util/Util.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/Webhook.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/WebhookEndpoint.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/lib/WebhookSignature.php
RENAMED
File without changes
|
{includes/gateways/stripe/stripe-sdk → vendor/stripe/stripe-php}/update_certs.php
RENAMED
File without changes
|