Version Description
- New: Added a "Billing Details" as an option in PayPal Standard gateways which adds address fields to the gateway. The field data is then passed to PayPal and pre-filled on the PayPal payment form. #1573
- New: Button only display mode now has an option to customize the donate button text. #1494
- New: There is now a colorpicker setting field in the Give Setting API. #1566
- Fix: If Give is upgraded from pre-1.8 to the latest version upgrades but does not run the manual upgrade routine the donation forms will continue to remain open for guest donations. #1578
- Fix: There was an issue with the 1.8 upgrade routine where it was incorrectly disabling the Offline Donations gateway per form. #1579
- Fix: The upgrade routine would not properly run on pages outside of Give in wp-admin. This has been fixed, now users can upgrade the db anywhere in wp-admin. #1580
Download this release
Release Info
Developer | dlocc |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 1.8.5 |
Comparing to | |
See all releases |
Code changes from version 1.8.4 to 1.8.5
- assets/js/admin/admin-scripts.js +5 -2
- assets/js/admin/admin-scripts.min.js +1 -1
- assets/js/admin/admin-shortcodes.js +83 -67
- assets/js/admin/admin-shortcodes.min.js +1 -1
- assets/js/admin/admin-widgets.js +21 -1
- assets/js/admin/admin-widgets.min.js +1 -1
- give.php +2 -2
- includes/admin/class-admin-settings.php +7 -0
- includes/admin/forms/class-metabox-form-data.php +1 -5
- includes/admin/settings/class-settings-gateways.php +11 -0
- includes/admin/shortcodes/abstract-shortcode-generator.php +2 -1
- includes/admin/shortcodes/shortcode-give-form.php +13 -5
- includes/admin/tools/class-settings-api.php +1 -1
- includes/admin/tools/class-settings-data.php +1 -1
- includes/admin/tools/class-settings-logs.php +1 -1
- includes/admin/upgrades/upgrade-functions.php +15 -8
- includes/forms/functions.php +6 -3
- includes/forms/template.php +1 -1
- includes/forms/widget.php +66 -57
- includes/gateways/paypal-standard.php +31 -15
- includes/scripts.php +7 -5
- includes/shortcodes.php +7 -6
- languages/give.pot +207 -203
- readme.txt +9 -1
assets/js/admin/admin-scripts.js
CHANGED
@@ -1698,9 +1698,12 @@ jQuery.noConflict();
|
|
1698 |
}
|
1699 |
|
1700 |
return false;
|
1701 |
-
}).on( 'blur', function(){
|
1702 |
var $sub_tab_nav = $(this).next();
|
1703 |
-
|
|
|
|
|
|
|
1704 |
});
|
1705 |
|
1706 |
// Render setting tab.
|
1698 |
}
|
1699 |
|
1700 |
return false;
|
1701 |
+
}).on( 'blur', '#give-show-sub-nav', function(){
|
1702 |
var $sub_tab_nav = $(this).next();
|
1703 |
+
|
1704 |
+
if( ! $sub_tab_nav.is(':hover') ) {
|
1705 |
+
$sub_tab_nav.addClass('give-hidden');
|
1706 |
+
}
|
1707 |
});
|
1708 |
|
1709 |
// Render setting tab.
|
assets/js/admin/admin-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function give_render_responsinve_tabs(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),a=jQuery("nav",n),o=jQuery("h2.give-nav-tab-wrapper>a:not(give-not-tab)"),r=[],s=[],c=0;if(414<jQuery(window).outerWidth()&&(c=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),o.removeClass("give-hidden");var d=new Promise(function(e,t){jQuery.each(o,function(e,t){t=jQuery(t),c+=parseInt(t.outerWidth()),c<i?r.push(t):s.push(t)}),e(!0)});d.then(function(e){if(s.length&&-1!=window.location.search.indexOf("&tab=")){var i={},o=get_url_params();s=s.filter(function(e){var t=-1!=parseInt(e.attr("href").indexOf("&tab="+o.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}var c=new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});c.then(function(e){s.length?(a.html(""),jQuery.each(s,function(e,t){t=jQuery(t),t.addClass("give-hidden"),t.clone().removeClass().appendTo(a)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}function get_url_params(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}jQuery.noConflict(),function(e){function t(e,t){e=accounting.unformat(e,give_vars.decimal_separator).toString();var i=e.indexOf(".");return 0!=t?e=parseFloat(e).toFixed(t):(-1===i||give_vars.currency_decimals>e.substr(i+1).length)&&(e=parseFloat(e).toFixed(give_vars.currency_decimals)),e}var i=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},n=function(){e(".give-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:give_vars.one_option,placeholder_text_multiple:give_vars.one_or_more_option}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")})},a={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this);return data={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"},e.post(ajaxurl,data,function(t){var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),"nostates"==t?i.append('<input type="text" name="give-payment-address[0][state]" value="" class="give-edit-toggles medium-text"/>'):(i.append(t),i.find("select").chosen())}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){t.preventDefault();var i={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#give-payment-note").val()};if(i.note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#give-payment-note").css("border-color");e("#give-payment-note").css("border-color","red"),setTimeout(function(){e("#give-payment-note").css("border-color",n)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){if(t.preventDefault(),confirm(give_vars.delete_payment_note)){var i={action:"give_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-customer, .give-payment-new-customer-cancel",function(t){t.preventDefault(),e(".customer-info").toggle(),e(".new-customer").toggle(),e(".new-customer").is(":visible")?e("#give-new-customer").val(1):e("#give-new-customer").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(e){return confirm(give_vars.resend_receipt)})},variable_price_list:function(){e('select[name="forms"]').chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){t=t.trim(),t?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}})}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},o={init:function(){this.toggle_options(),this.main_setting_update_notice(),this.verify_settings()},toggle_options:function(){var t=e('input[name="email_access"]',".give-setting-tab-body-general");t.on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change();var i=e('input[name="form_featured_img"]',".give-setting-tab-body-display");i.on("change",function(){var t=e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val();"enabled"===t?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change();var n=e('input[name="terms"]',".give-setting-tab-body-display");n.on("change",function(){var t=e('input[name="terms"]:checked',".give-setting-tab-body-display").val();"enabled"===t?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change();var a=e('input[name="admin_notices"]',".give-setting-tab-body-emails");a.on("change",function(){var t=e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val();"enabled"===t?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+give_vars.matched_success_failure_page+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+give_vars.dismiss_notice_text+"</span></button> </div>",a=e("#setting-error-give-matched-success-failure-page");if(a.length)return!1;e("h2","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()}),e(this).val("")}}).change()}},r={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){var t=e(this);"other"===t.val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_customer_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var a=e(".give_price_options_select");if(0!=parseInt(i)){var o={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,o,function(t){a.remove(),e("#give_customer_export_form_chosen").after(t)})}else a.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),a=e("#tools-form-dropdown");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),a.hide(),e(".give-recount-stats-descriptions span").hide(),"recount-form"===i)a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"});else if("reset-stats"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.reset_stats_warn+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else a.hide(),a.val(0);e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),a=e("option:selected",this).data("type");if("reset-stats"===a){var o=e("#confirm-reset").is(":checked");if(o)return!0;s=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var r=n.find(".notice-wrap"),s=!1;if(null!==i&&0!==i||(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),s=!0),"recount-form"===a){var c=e('select[name="form_id"]').val();0==c&&(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),s=!0)}if(s)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},s={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var a=e(this).serialize();n.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,a,t)}})},process_step:function(t,i,n){e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var a=e(".give-export-form").find(".give-progress").parent().parent(),o=a.find(".notice-wrap");if(a.find(".button-disabled").removeClass("button-disabled"),t.error){var r=t.message;o.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var s=t.message;o.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+s+'<span class="notice-dismiss"></span></p></div>')}else o.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n)}}).fail(function(t){window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},c=function(){e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)})},d={init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e("body").on("click","#edit-customer",function(t){t.preventDefault(),e("#give-customer-card-wrapper .editable").hide(),e("#give-customer-card-wrapper .edit-item").fadeIn().css("display","block")})},user_search:function(){e("body").on("click.giveSelectUser",".give_user_search_results a",function(t){t.preventDefault();var i=e(this).data("userid");e('input[name="customerinfo[user_id]"]').val(i)})},remove_user:function(){e("body").on("click","#disconnect-customer",function(t){t.preventDefault();var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e("body").on("click","#give-edit-customer-cancel",function(t){t.preventDefault(),e("#give-customer-card-wrapper .edit-item").hide(),e("#give-customer-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,i,function(t){"nostates"==t?e(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="'+i.field_name+'" value="" class="give-edit-toggles medium-text"/>'):e(':input[name="customerinfo[state]"]').replaceWith(t)}),!1})},add_note:function(){e("body").on("click","#add-customer-note",function(t){t.preventDefault();var i={give_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:e("#customer-note").val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(i.customer_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-customer-notes").prepend(t),e(".give-no-customer-notes").hide(),e("#customer-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#customer-note").css("border-color");e("#customer-note").css("border-color","red"),setTimeout(function(){e("#customer-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-customer-delete-confirm").change(function(){var t=e("#give-customer-delete-records"),i=e("#give-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-customer-email").length&&e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var a=n.find('input[name="customer-id"]').val(),o=n.find('input[name="additional-email"]').val(),r=n.find('input[name="make-additional-primary"]').is(":checked"),s=n.find('input[name="add_email_nonce"]').val(),c={give_action:"add_donor_email",customer_id:a,email:o,primary:r,_wpnonce:s};e.post(ajaxurl,c,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})}},l={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(give_vars.revoke_api_key)})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(give_vars.regenerate_api_key)})}},u={init:function(){this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events()},handle_metabox_tab_click:function(){var t=e(".give-metabox-tabs a");if(t.on("click",function(i){i.preventDefault();var n=e(this).parent(),a=e("ul.give-metabox-sub-tabs",n),o=a.length,r=t.parents("li"),s=e("ul.give-metabox-sub-tabs"),c=e(this).parents("ul.give-metabox-sub-tabs").length;if(o){n.toggleClass("active"),a.toggleClass("give-hidden");var d=e("li.active","ul.give-metabox-sub-tabs");return s.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),d.addClass("active"),!1}return c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),e(this).parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),e(this).parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){i=e(i),i.removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")}),e(this).parent().addClass("active"),e(".give_options_panel").addClass("give-hidden"),e(e(this).attr("href")).removeClass("give-hidden"),!1}),location.hash.length){var i=e('a[href="'+location.hash+'"]',".give-metabox-tabs");i.length&&i.trigger("click")}},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t;e("body").on("click",".give-media-upload",function(i){return i.preventDefault(),window.give_media_uploader_input_field=e(this),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1}),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),i=window.give_media_uploader_input_field.prev(),n="id"===i.data("fvalue")?e.id:e.url;console.log(i),i.val(n)}),void t.open())})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:give_vars.confirm_before_remove_row_text,is_sortable:!0,before_add:null,after_add:v,before_remove:null,after_remove:p,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(t,i){e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,i){e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var a=e(".give-row",t).not(".give-template");if(a.length){var o=1;a.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var a=this.value.replace(/\[/g,"_").replace(/]/g,""),r=a+"_field",s="",c="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(o-1)+"]"),c=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(r)&&(s=c+"_field",t.removeClass(r).addClass(s)),a==i.attr("id")&&i.attr("id",c))})}),o++}),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){_(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);_(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var a=e("div[data-wp-editor]",n);a.length&&a.each(function(t,i){var n=e(i),a=e(".wp-editor-wrap",n),o=e("textarea",n),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=a.prev();o.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),s.after(t),tinyMCEPreInit.qtInit[o.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");return(!e(this).val()||e(this).val()!==i.html())&&void(e(this).val()?i.html(n+": "+e(this).val()):i.html(n))}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),a=n.closest("tr"),o=e(".give-row-head h2 span",a),r=o.data("header-title");return(!n.val()||n.val()!==o.html())&&void(n.val()?o.html(r+": "+n.val()):o.html(r))}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=t,n=e(".give-row",i).not(".give-template"),a=e(".give-give_default_radio_inline",n),o=n.length;1===o&&a.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var a=e(this),o=0;window.setTimeout(function(){e(".give-give_default_radio_inline",a).is(":checked")===!1&&e(".give-row",a).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',a).each(function(t,i){var n=e(i);o<n.val()&&(o=n.val())}),e('input[type="hidden"].give-levels_id',n).val(++o)})}},v=function(t,i){var n=e(t).attr("data-rf-row-count"),a=e(t),o=a.parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},p=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),a=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--a),n.trigger("repeater_field_row_deleted")},_=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var a=e(i);a.parents(".give-template").length||a.html(n+": "+t)})}},g=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},events:{show:function(t,i){var n=e(i.elements.target[0]);n.qtip("option","position.my",void 0==n.data("tooltip-my-position")?"bottom center":n.data("tooltip-my-position")),n.qtip("option","position.at",void 0==n.data("tooltip-target-position")?"top center":n.data("tooltip-target-position"))}}})},h={init:function(){this.handle_bulk_delete()},handle_bulk_delete:function(){var t=e("#give-payments-filter");t.on("submit",function(t){var i=e('select[name="action"]',e(this)).val(),n=[],a="";switch(e('input[name="payment[]"]:checked',e(this)).each(function(t,i){n.push(e(this).val())}),n=n.length.toString(),i){case"delete":if(!parseInt(n))return alert(give_vars.bulk_action["delete"].zero_payment_selected),!1;if(a=1<n?give_vars.bulk_action["delete"].delete_payments:give_vars.bulk_action["delete"].delete_payment,!window.confirm(a.replace("{payment_count}",n)))return!1;break;case"resend-receipt":if(!parseInt(n))return alert(give_vars.bulk_action.resend_receipt.zero_recipient_selected),!1;if(a=1<n?give_vars.bulk_action.resend_receipt.resend_receipts:give_vars.bulk_action.resend_receipt.resend_receipt,!window.confirm(a.replace("{payment_count}",n)))return!1}return!0})}};e(function(){function v(t){t.each(function(){e(this).qtip({style:"qtip-dark qtip-tipsy",content:{text:give_vars.price_format_guide.trim()},show:"",position:{my:"bottom center",at:"top center"}})})}i(),c(),n(),a.init(),o.init(),r.init(),d.init(),l.init(),s.init(),u.init(),h.init(),g(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))}),e(".give-ajax-user-search").on("keyup",function(){var t=e(this).val(),i="";e(this).data("exclude")&&(i=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:i},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})}),e("body").on("click.giveSelectUser",".give_user_search_results span a",function(t){t.preventDefault();var i=e(this).data("login");e(".give-ajax-user-search").val(i),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")});var p=e("input.give-money-field, input.give-price-field"),_=give_vars.thousands_separator,f=give_vars.decimal_separator,m="",b="",w="",y=f===_?1:0;v(p),e("#_give_donation_levels_repeat").on("click","button.cmb-add-group-row",function(){window.setTimeout(function(){p=e("input.give-money-field, input.give-price-field"),v(p)},100)}),e("#poststuff").on("keyup","input.give-money-field, input.give-price-field",function(){m=(e(this).val().match(new RegExp(_,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(_)&&y<m?e(this).qtip("show"):b?e(this).qtip("show"):e(this).qtip("hide"),m=b=""}),e("#poststuff").on("focusout","input.give-money-field, input.give-price-field",function(){return w=t(e(this).val(),!1),parseInt(w)?(w=w.replace(".",f),-1!==w.indexOf("-")&&(w=w.replace("-","")),void e(this).val(w)):(e(this).val(""),!1)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur",function(){var t=e(this).next();t.removeClass("give-hidden")}),give_render_responsinve_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsinve_tabs()});
|
1 |
+
function give_render_responsinve_tabs(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),a=jQuery("nav",n),o=jQuery("h2.give-nav-tab-wrapper>a:not(give-not-tab)"),r=[],s=[],c=0;if(414<jQuery(window).outerWidth()&&(c=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),o.removeClass("give-hidden");var d=new Promise(function(e,t){jQuery.each(o,function(e,t){t=jQuery(t),c+=parseInt(t.outerWidth()),c<i?r.push(t):s.push(t)}),e(!0)});d.then(function(e){if(s.length&&-1!=window.location.search.indexOf("&tab=")){var i={},o=get_url_params();s=s.filter(function(e){var t=-1!=parseInt(e.attr("href").indexOf("&tab="+o.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}var c=new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});c.then(function(e){s.length?(a.html(""),jQuery.each(s,function(e,t){t=jQuery(t),t.addClass("give-hidden"),t.clone().removeClass().appendTo(a)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}function get_url_params(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}jQuery.noConflict(),function(e){function t(e,t){e=accounting.unformat(e,give_vars.decimal_separator).toString();var i=e.indexOf(".");return 0!=t?e=parseFloat(e).toFixed(t):(-1===i||give_vars.currency_decimals>e.substr(i+1).length)&&(e=parseFloat(e).toFixed(give_vars.currency_decimals)),e}var i=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},n=function(){e(".give-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:give_vars.one_option,placeholder_text_multiple:give_vars.one_or_more_option}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")})},a={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this);return data={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"},e.post(ajaxurl,data,function(t){var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),"nostates"==t?i.append('<input type="text" name="give-payment-address[0][state]" value="" class="give-edit-toggles medium-text"/>'):(i.append(t),i.find("select").chosen())}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){t.preventDefault();var i={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#give-payment-note").val()};if(i.note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#give-payment-note").css("border-color");e("#give-payment-note").css("border-color","red"),setTimeout(function(){e("#give-payment-note").css("border-color",n)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){if(t.preventDefault(),confirm(give_vars.delete_payment_note)){var i={action:"give_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-customer, .give-payment-new-customer-cancel",function(t){t.preventDefault(),e(".customer-info").toggle(),e(".new-customer").toggle(),e(".new-customer").is(":visible")?e("#give-new-customer").val(1):e("#give-new-customer").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(e){return confirm(give_vars.resend_receipt)})},variable_price_list:function(){e('select[name="forms"]').chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){t=t.trim(),t?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}})}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},o={init:function(){this.toggle_options(),this.main_setting_update_notice(),this.verify_settings()},toggle_options:function(){var t=e('input[name="email_access"]',".give-setting-tab-body-general");t.on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change();var i=e('input[name="form_featured_img"]',".give-setting-tab-body-display");i.on("change",function(){var t=e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val();"enabled"===t?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change();var n=e('input[name="terms"]',".give-setting-tab-body-display");n.on("change",function(){var t=e('input[name="terms"]:checked',".give-setting-tab-body-display").val();"enabled"===t?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change();var a=e('input[name="admin_notices"]',".give-setting-tab-body-emails");a.on("change",function(){var t=e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val();"enabled"===t?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+give_vars.matched_success_failure_page+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+give_vars.dismiss_notice_text+"</span></button> </div>",a=e("#setting-error-give-matched-success-failure-page");if(a.length)return!1;e("h2","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()}),e(this).val("")}}).change()}},r={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){var t=e(this);"other"===t.val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_customer_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var a=e(".give_price_options_select");if(0!=parseInt(i)){var o={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,o,function(t){a.remove(),e("#give_customer_export_form_chosen").after(t)})}else a.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),a=e("#tools-form-dropdown");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),a.hide(),e(".give-recount-stats-descriptions span").hide(),"recount-form"===i)a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"});else if("reset-stats"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.reset_stats_warn+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else a.hide(),a.val(0);e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),a=e("option:selected",this).data("type");if("reset-stats"===a){var o=e("#confirm-reset").is(":checked");if(o)return!0;s=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var r=n.find(".notice-wrap"),s=!1;if(null!==i&&0!==i||(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),s=!0),"recount-form"===a){var c=e('select[name="form_id"]').val();0==c&&(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),s=!0)}if(s)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},s={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var a=e(this).serialize();n.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,a,t)}})},process_step:function(t,i,n){e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var a=e(".give-export-form").find(".give-progress").parent().parent(),o=a.find(".notice-wrap");if(a.find(".button-disabled").removeClass("button-disabled"),t.error){var r=t.message;o.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var s=t.message;o.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+s+'<span class="notice-dismiss"></span></p></div>')}else o.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n)}}).fail(function(t){window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},c=function(){e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)})},d={init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e("body").on("click","#edit-customer",function(t){t.preventDefault(),e("#give-customer-card-wrapper .editable").hide(),e("#give-customer-card-wrapper .edit-item").fadeIn().css("display","block")})},user_search:function(){e("body").on("click.giveSelectUser",".give_user_search_results a",function(t){t.preventDefault();var i=e(this).data("userid");e('input[name="customerinfo[user_id]"]').val(i)})},remove_user:function(){e("body").on("click","#disconnect-customer",function(t){t.preventDefault();var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e("body").on("click","#give-edit-customer-cancel",function(t){t.preventDefault(),e("#give-customer-card-wrapper .edit-item").hide(),e("#give-customer-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,i,function(t){"nostates"==t?e(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="'+i.field_name+'" value="" class="give-edit-toggles medium-text"/>'):e(':input[name="customerinfo[state]"]').replaceWith(t)}),!1})},add_note:function(){e("body").on("click","#add-customer-note",function(t){t.preventDefault();var i={give_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:e("#customer-note").val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(i.customer_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-customer-notes").prepend(t),e(".give-no-customer-notes").hide(),e("#customer-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#customer-note").css("border-color");e("#customer-note").css("border-color","red"),setTimeout(function(){e("#customer-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-customer-delete-confirm").change(function(){var t=e("#give-customer-delete-records"),i=e("#give-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-customer-email").length&&e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var a=n.find('input[name="customer-id"]').val(),o=n.find('input[name="additional-email"]').val(),r=n.find('input[name="make-additional-primary"]').is(":checked"),s=n.find('input[name="add_email_nonce"]').val(),c={give_action:"add_donor_email",customer_id:a,email:o,primary:r,_wpnonce:s};e.post(ajaxurl,c,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})}},l={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(give_vars.revoke_api_key)})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(give_vars.regenerate_api_key)})}},u={init:function(){this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events()},handle_metabox_tab_click:function(){var t=e(".give-metabox-tabs a");if(t.on("click",function(i){i.preventDefault();var n=e(this).parent(),a=e("ul.give-metabox-sub-tabs",n),o=a.length,r=t.parents("li"),s=e("ul.give-metabox-sub-tabs"),c=e(this).parents("ul.give-metabox-sub-tabs").length;if(o){n.toggleClass("active"),a.toggleClass("give-hidden");var d=e("li.active","ul.give-metabox-sub-tabs");return s.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),d.addClass("active"),!1}return c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),e(this).parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),e(this).parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){i=e(i),i.removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")}),e(this).parent().addClass("active"),e(".give_options_panel").addClass("give-hidden"),e(e(this).attr("href")).removeClass("give-hidden"),!1}),location.hash.length){var i=e('a[href="'+location.hash+'"]',".give-metabox-tabs");i.length&&i.trigger("click")}},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t;e("body").on("click",".give-media-upload",function(i){return i.preventDefault(),window.give_media_uploader_input_field=e(this),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1}),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),i=window.give_media_uploader_input_field.prev(),n="id"===i.data("fvalue")?e.id:e.url;console.log(i),i.val(n)}),void t.open())})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:give_vars.confirm_before_remove_row_text,is_sortable:!0,before_add:null,after_add:v,before_remove:null,after_remove:p,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(t,i){e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,i){e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var a=e(".give-row",t).not(".give-template");if(a.length){var o=1;a.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var a=this.value.replace(/\[/g,"_").replace(/]/g,""),r=a+"_field",s="",c="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(o-1)+"]"),c=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(r)&&(s=c+"_field",t.removeClass(r).addClass(s)),a==i.attr("id")&&i.attr("id",c))})}),o++}),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){_(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);_(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var a=e("div[data-wp-editor]",n);a.length&&a.each(function(t,i){var n=e(i),a=e(".wp-editor-wrap",n),o=e("textarea",n),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=a.prev();o.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),s.after(t),tinyMCEPreInit.qtInit[o.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");return(!e(this).val()||e(this).val()!==i.html())&&void(e(this).val()?i.html(n+": "+e(this).val()):i.html(n))}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),a=n.closest("tr"),o=e(".give-row-head h2 span",a),r=o.data("header-title");return(!n.val()||n.val()!==o.html())&&void(n.val()?o.html(r+": "+n.val()):o.html(r))}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=t,n=e(".give-row",i).not(".give-template"),a=e(".give-give_default_radio_inline",n),o=n.length;1===o&&a.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var a=e(this),o=0;window.setTimeout(function(){e(".give-give_default_radio_inline",a).is(":checked")===!1&&e(".give-row",a).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',a).each(function(t,i){var n=e(i);o<n.val()&&(o=n.val())}),e('input[type="hidden"].give-levels_id',n).val(++o)})}},v=function(t,i){var n=e(t).attr("data-rf-row-count"),a=e(t),o=a.parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},p=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),a=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--a),n.trigger("repeater_field_row_deleted")},_=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var a=e(i);a.parents(".give-template").length||a.html(n+": "+t)})}},g=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},events:{show:function(t,i){var n=e(i.elements.target[0]);n.qtip("option","position.my",void 0==n.data("tooltip-my-position")?"bottom center":n.data("tooltip-my-position")),n.qtip("option","position.at",void 0==n.data("tooltip-target-position")?"top center":n.data("tooltip-target-position"))}}})},h={init:function(){this.handle_bulk_delete()},handle_bulk_delete:function(){var t=e("#give-payments-filter");t.on("submit",function(t){var i=e('select[name="action"]',e(this)).val(),n=[],a="";switch(e('input[name="payment[]"]:checked',e(this)).each(function(t,i){n.push(e(this).val())}),n=n.length.toString(),i){case"delete":if(!parseInt(n))return alert(give_vars.bulk_action["delete"].zero_payment_selected),!1;if(a=1<n?give_vars.bulk_action["delete"].delete_payments:give_vars.bulk_action["delete"].delete_payment,!window.confirm(a.replace("{payment_count}",n)))return!1;break;case"resend-receipt":if(!parseInt(n))return alert(give_vars.bulk_action.resend_receipt.zero_recipient_selected),!1;if(a=1<n?give_vars.bulk_action.resend_receipt.resend_receipts:give_vars.bulk_action.resend_receipt.resend_receipt,!window.confirm(a.replace("{payment_count}",n)))return!1}return!0})}};e(function(){function v(t){t.each(function(){e(this).qtip({style:"qtip-dark qtip-tipsy",content:{text:give_vars.price_format_guide.trim()},show:"",position:{my:"bottom center",at:"top center"}})})}i(),c(),n(),a.init(),o.init(),r.init(),d.init(),l.init(),s.init(),u.init(),h.init(),g(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))}),e(".give-ajax-user-search").on("keyup",function(){var t=e(this).val(),i="";e(this).data("exclude")&&(i=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:i},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})}),e("body").on("click.giveSelectUser",".give_user_search_results span a",function(t){t.preventDefault();var i=e(this).data("login");e(".give-ajax-user-search").val(i),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")});var p=e("input.give-money-field, input.give-price-field"),_=give_vars.thousands_separator,f=give_vars.decimal_separator,m="",b="",w="",y=f===_?1:0;v(p),e("#_give_donation_levels_repeat").on("click","button.cmb-add-group-row",function(){window.setTimeout(function(){p=e("input.give-money-field, input.give-price-field"),v(p)},100)}),e("#poststuff").on("keyup","input.give-money-field, input.give-price-field",function(){m=(e(this).val().match(new RegExp(_,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(_)&&y<m?e(this).qtip("show"):b?e(this).qtip("show"):e(this).qtip("hide"),m=b=""}),e("#poststuff").on("focusout","input.give-money-field, input.give-price-field",function(){return w=t(e(this).val(),!1),parseInt(w)?(w=w.replace(".",f),-1!==w.indexOf("-")&&(w=w.replace("-","")),void e(this).val(w)):(e(this).val(""),!1)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),give_render_responsinve_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsinve_tabs()});
|
assets/js/admin/admin-shortcodes.js
CHANGED
@@ -16,13 +16,26 @@ var jq = jQuery.noConflict();
|
|
16 |
|
17 |
var scShortcode, scButton;
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
var scForm = {
|
20 |
|
21 |
-
open: function( editor_id )
|
22 |
-
{
|
23 |
var editor = tinymce.get( editor_id );
|
24 |
|
25 |
-
if( !editor ) {
|
26 |
return;
|
27 |
}
|
28 |
|
@@ -33,15 +46,15 @@ var scForm = {
|
|
33 |
shortcode : scShortcode
|
34 |
};
|
35 |
|
36 |
-
jq.post( ajaxurl, data, function( response )
|
37 |
-
|
38 |
// what happens if response === false?
|
39 |
-
if( !response.body ) {
|
40 |
console.error( 'Bad AJAX response!' );
|
41 |
return;
|
42 |
}
|
43 |
|
44 |
-
if( response.body.length === 0 ) {
|
45 |
window.send_to_editor( '[' + response.shortcode + ']' );
|
46 |
|
47 |
scForm.destroy();
|
@@ -49,58 +62,66 @@ var scForm = {
|
|
49 |
return;
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
var popup = {
|
53 |
title : response.title,
|
54 |
body : response.body,
|
55 |
classes: 'sc-popup',
|
56 |
minWidth: 320,
|
57 |
-
buttons : [
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
// Get the top most window object
|
64 |
-
win = editor.windowManager.getWindows()[0];
|
65 |
|
66 |
-
|
67 |
-
|
68 |
|
69 |
-
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
-
|
76 |
|
77 |
-
|
78 |
|
79 |
-
|
80 |
|
81 |
-
|
82 |
|
83 |
-
|
84 |
-
}
|
85 |
}
|
86 |
}
|
|
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
}
|
91 |
}
|
92 |
-
}
|
|
|
93 |
{
|
94 |
text : response.close,
|
95 |
onclick : 'close'
|
96 |
-
|
97 |
-
|
98 |
-
onsubmit: function( e )
|
99 |
-
{
|
100 |
var attributes = '';
|
101 |
|
102 |
-
for( var key in e.data ) {
|
103 |
-
if( e.data.hasOwnProperty( key ) && e.data[ key ] !== '' ) {
|
104 |
attributes += ' ' + key + '="' + e.data[ key ] + '"';
|
105 |
}
|
106 |
}
|
@@ -108,14 +129,19 @@ var scForm = {
|
|
108 |
// Insert shortcode into the WP_Editor
|
109 |
window.send_to_editor( '[' + response.shortcode + attributes + ']' );
|
110 |
},
|
111 |
-
onclose: function()
|
112 |
-
{
|
113 |
scForm.destroy();
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
};
|
116 |
|
117 |
// Change the buttons if server-side validation failed
|
118 |
-
if( response.ok.constructor === Array ) {
|
119 |
popup.buttons[0].text = response.ok[0];
|
120 |
popup.buttons[0].onclick = 'close';
|
121 |
delete popup.buttons[1];
|
@@ -125,63 +151,55 @@ var scForm = {
|
|
125 |
});
|
126 |
},
|
127 |
|
128 |
-
destroy: function()
|
129 |
-
{
|
130 |
var tmp = jq( '#scTemp' );
|
131 |
|
132 |
-
if( tmp.length ) {
|
133 |
tinymce.get( 'scTemp' ).remove();
|
134 |
tmp.remove();
|
135 |
}
|
136 |
}
|
137 |
};
|
138 |
|
139 |
-
jq( function( $ )
|
140 |
-
{
|
141 |
-
var scOpen = function()
|
142 |
-
{
|
143 |
scButton.addClass( 'active' ).parent().find( '.sc-menu' ).show();
|
144 |
};
|
145 |
|
146 |
-
var scClose = function()
|
147 |
-
|
148 |
-
if( typeof scButton !== 'undefined' ) {
|
149 |
scButton.removeClass( 'active' ).parent().find( '.sc-menu' ).hide();
|
150 |
}
|
151 |
};
|
152 |
|
153 |
-
$( document ).on( 'click', function( e )
|
154 |
-
|
155 |
-
if( !$( e.target ).closest( '.sc-wrap' ).length ) {
|
156 |
scClose();
|
157 |
}
|
158 |
});
|
159 |
|
160 |
-
$( document ).on( 'click', '.sc-button', function( e )
|
161 |
-
{
|
162 |
e.preventDefault();
|
163 |
|
164 |
scButton = $( this );
|
165 |
|
166 |
-
if( scButton.hasClass( 'active' ) ) {
|
167 |
scClose();
|
168 |
-
}
|
169 |
-
else {
|
170 |
scOpen();
|
171 |
}
|
172 |
});
|
173 |
|
174 |
-
$( document ).on( 'click', '.sc-shortcode', function( e )
|
175 |
-
{
|
176 |
e.preventDefault();
|
177 |
|
178 |
// scShortcode is used by scForm to trigger the correct popup
|
179 |
scShortcode = $( this ).attr( 'data-shortcode' );
|
180 |
|
181 |
-
if( scShortcode ) {
|
182 |
-
if( !tinymce.get( window.wpActiveEditor ) ) {
|
183 |
|
184 |
-
if(
|
185 |
|
186 |
$( 'body' ).append( '<textarea id="scTemp" style="display: none;" />' );
|
187 |
|
@@ -193,14 +211,12 @@ jq( function( $ )
|
|
193 |
}
|
194 |
|
195 |
setTimeout( function() { tinymce.execCommand( 'Give_Shortcode' ); }, 200 );
|
196 |
-
}
|
197 |
-
else {
|
198 |
tinymce.execCommand( 'Give_Shortcode' );
|
199 |
}
|
200 |
|
201 |
setTimeout( function() { scClose(); }, 100 );
|
202 |
-
}
|
203 |
-
else {
|
204 |
console.warn( 'That is not a valid shortcode link.' );
|
205 |
}
|
206 |
});
|
16 |
|
17 |
var scShortcode, scButton;
|
18 |
|
19 |
+
/**
|
20 |
+
* Show continue button title setting field only if display style is not All Fields.
|
21 |
+
*/
|
22 |
+
var render_continue_button_title_field = function() {
|
23 |
+
var selected_display_style = jq('.mce-txt', '.mce-give-display-style').text(),
|
24 |
+
expected_display_styles = [ '- Select -', 'All Fields' ];
|
25 |
+
|
26 |
+
if( -1 !== jq.inArray( selected_display_style, expected_display_styles ) ) {
|
27 |
+
jq('.mce-give-continue-button-title').closest('.mce-container' ).hide()
|
28 |
+
} else {
|
29 |
+
jq('.mce-give-continue-button-title').closest('.mce-container' ).show()
|
30 |
+
}
|
31 |
+
};
|
32 |
+
|
33 |
var scForm = {
|
34 |
|
35 |
+
open: function( editor_id ) {
|
|
|
36 |
var editor = tinymce.get( editor_id );
|
37 |
|
38 |
+
if ( ! editor ) {
|
39 |
return;
|
40 |
}
|
41 |
|
46 |
shortcode : scShortcode
|
47 |
};
|
48 |
|
49 |
+
jq.post( ajaxurl, data, function( response ) {
|
50 |
+
|
51 |
// what happens if response === false?
|
52 |
+
if ( ! response.body ) {
|
53 |
console.error( 'Bad AJAX response!' );
|
54 |
return;
|
55 |
}
|
56 |
|
57 |
+
if ( response.body.length === 0 ) {
|
58 |
window.send_to_editor( '[' + response.shortcode + ']' );
|
59 |
|
60 |
scForm.destroy();
|
62 |
return;
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Render continue button title setting field on basis of display style value.
|
67 |
+
*/
|
68 |
+
jq.each( response.body, function( index, item ){
|
69 |
+
|
70 |
+
if( 'display_style' === item.name ) {
|
71 |
+
response.body[index].onselect = function(){
|
72 |
+
render_continue_button_title_field();
|
73 |
+
};
|
74 |
+
}
|
75 |
+
});
|
76 |
+
|
77 |
var popup = {
|
78 |
title : response.title,
|
79 |
body : response.body,
|
80 |
classes: 'sc-popup',
|
81 |
minWidth: 320,
|
82 |
+
buttons : [ {
|
83 |
+
text : response.ok,
|
84 |
+
classes : 'primary sc-primary',
|
85 |
+
onclick : function() {
|
86 |
+
// Get the top most window object
|
87 |
+
win = editor.windowManager.getWindows()[0];
|
|
|
|
|
88 |
|
89 |
+
// Get the shortcode required attributes
|
90 |
+
required = scShortcodes[ scShortcode ];
|
91 |
|
92 |
+
valid = true;
|
93 |
|
94 |
+
// Do some validation voodoo
|
95 |
+
for ( var id in required ) {
|
96 |
+
if ( required.hasOwnProperty( id ) ) {
|
97 |
|
98 |
+
field = win.find( '#' + id )[0];
|
99 |
|
100 |
+
if ( typeof field !== 'undefined' && field.state.data.value === '' ) {
|
101 |
|
102 |
+
valid = false;
|
103 |
|
104 |
+
alert( required[ id ] );
|
105 |
|
106 |
+
break;
|
|
|
107 |
}
|
108 |
}
|
109 |
+
}
|
110 |
|
111 |
+
if ( valid ) {
|
112 |
+
win.submit();
|
|
|
113 |
}
|
114 |
+
}
|
115 |
+
},
|
116 |
{
|
117 |
text : response.close,
|
118 |
onclick : 'close'
|
119 |
+
}, ],
|
120 |
+
onsubmit: function( e ) {
|
|
|
|
|
121 |
var attributes = '';
|
122 |
|
123 |
+
for ( var key in e.data ) {
|
124 |
+
if ( e.data.hasOwnProperty( key ) && e.data[ key ] !== '' ) {
|
125 |
attributes += ' ' + key + '="' + e.data[ key ] + '"';
|
126 |
}
|
127 |
}
|
129 |
// Insert shortcode into the WP_Editor
|
130 |
window.send_to_editor( '[' + response.shortcode + attributes + ']' );
|
131 |
},
|
132 |
+
onclose: function() {
|
|
|
133 |
scForm.destroy();
|
134 |
+
},
|
135 |
+
onopen: function() {
|
136 |
+
// Conditional fields.
|
137 |
+
console.log( response );
|
138 |
+
|
139 |
+
render_continue_button_title_field();
|
140 |
}
|
141 |
};
|
142 |
|
143 |
// Change the buttons if server-side validation failed
|
144 |
+
if ( response.ok.constructor === Array ) {
|
145 |
popup.buttons[0].text = response.ok[0];
|
146 |
popup.buttons[0].onclick = 'close';
|
147 |
delete popup.buttons[1];
|
151 |
});
|
152 |
},
|
153 |
|
154 |
+
destroy: function() {
|
|
|
155 |
var tmp = jq( '#scTemp' );
|
156 |
|
157 |
+
if ( tmp.length ) {
|
158 |
tinymce.get( 'scTemp' ).remove();
|
159 |
tmp.remove();
|
160 |
}
|
161 |
}
|
162 |
};
|
163 |
|
164 |
+
jq( function( $ ) {
|
165 |
+
var scOpen = function() {
|
|
|
|
|
166 |
scButton.addClass( 'active' ).parent().find( '.sc-menu' ).show();
|
167 |
};
|
168 |
|
169 |
+
var scClose = function() {
|
170 |
+
if ( typeof scButton !== 'undefined' ) {
|
|
|
171 |
scButton.removeClass( 'active' ).parent().find( '.sc-menu' ).hide();
|
172 |
}
|
173 |
};
|
174 |
|
175 |
+
$( document ).on( 'click', function( e ) {
|
176 |
+
if ( ! $( e.target ).closest( '.sc-wrap' ).length ) {
|
|
|
177 |
scClose();
|
178 |
}
|
179 |
});
|
180 |
|
181 |
+
$( document ).on( 'click', '.sc-button', function( e ) {
|
|
|
182 |
e.preventDefault();
|
183 |
|
184 |
scButton = $( this );
|
185 |
|
186 |
+
if ( scButton.hasClass( 'active' ) ) {
|
187 |
scClose();
|
188 |
+
} else {
|
|
|
189 |
scOpen();
|
190 |
}
|
191 |
});
|
192 |
|
193 |
+
$( document ).on( 'click', '.sc-shortcode', function( e ) {
|
|
|
194 |
e.preventDefault();
|
195 |
|
196 |
// scShortcode is used by scForm to trigger the correct popup
|
197 |
scShortcode = $( this ).attr( 'data-shortcode' );
|
198 |
|
199 |
+
if ( scShortcode ) {
|
200 |
+
if ( ! tinymce.get( window.wpActiveEditor ) ) {
|
201 |
|
202 |
+
if ( ! $( '#scTemp' ).length ) {
|
203 |
|
204 |
$( 'body' ).append( '<textarea id="scTemp" style="display: none;" />' );
|
205 |
|
211 |
}
|
212 |
|
213 |
setTimeout( function() { tinymce.execCommand( 'Give_Shortcode' ); }, 200 );
|
214 |
+
} else {
|
|
|
215 |
tinymce.execCommand( 'Give_Shortcode' );
|
216 |
}
|
217 |
|
218 |
setTimeout( function() { scClose(); }, 100 );
|
219 |
+
} else {
|
|
|
220 |
console.warn( 'That is not a valid shortcode link.' );
|
221 |
}
|
222 |
});
|
assets/js/admin/admin-shortcodes.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var jq=jQuery.noConflict(),scShortcode,scButton,scForm={open:function(t){var
|
1 |
+
var jq=jQuery.noConflict(),scShortcode,scButton,render_continue_button_title_field=function(){var t=jq(".mce-txt",".mce-give-display-style").text(),e=["- Select -","All Fields"];-1!==jq.inArray(t,e)?jq(".mce-give-continue-button-title").closest(".mce-container").hide():jq(".mce-give-continue-button-title").closest(".mce-container").show()},scForm={open:function(t){var e=tinymce.get(t);if(e){var o,n,c,i,s;o={action:"give_shortcode",shortcode:scShortcode},jq.post(ajaxurl,o,function(t){if(!t.body)return void console.error("Bad AJAX response!");if(0===t.body.length)return window.send_to_editor("["+t.shortcode+"]"),void scForm.destroy();jq.each(t.body,function(e,o){"display_style"===o.name&&(t.body[e].onselect=function(){render_continue_button_title_field()})});var o={title:t.title,body:t.body,classes:"sc-popup",minWidth:320,buttons:[{text:t.ok,classes:"primary sc-primary",onclick:function(){s=e.windowManager.getWindows()[0],c=scShortcodes[scShortcode],i=!0;for(var t in c)if(c.hasOwnProperty(t)&&(n=s.find("#"+t)[0],"undefined"!=typeof n&&""===n.state.data.value)){i=!1,alert(c[t]);break}i&&s.submit()}},{text:t.close,onclick:"close"}],onsubmit:function(e){var o="";for(var n in e.data)e.data.hasOwnProperty(n)&&""!==e.data[n]&&(o+=" "+n+'="'+e.data[n]+'"');window.send_to_editor("["+t.shortcode+o+"]")},onclose:function(){scForm.destroy()},onopen:function(){console.log(t),render_continue_button_title_field()}};t.ok.constructor===Array&&(o.buttons[0].text=t.ok[0],o.buttons[0].onclick="close",delete o.buttons[1]),e.windowManager.open(o)})}},destroy:function(){var t=jq("#scTemp");t.length&&(tinymce.get("scTemp").remove(),t.remove())}};jq(function(t){var e=function(){scButton.addClass("active").parent().find(".sc-menu").show()},o=function(){"undefined"!=typeof scButton&&scButton.removeClass("active").parent().find(".sc-menu").hide()};t(document).on("click",function(e){t(e.target).closest(".sc-wrap").length||o()}),t(document).on("click",".sc-button",function(n){n.preventDefault(),scButton=t(this),scButton.hasClass("active")?o():e()}),t(document).on("click",".sc-shortcode",function(e){e.preventDefault(),scShortcode=t(this).attr("data-shortcode"),scShortcode?(tinymce.get(window.wpActiveEditor)?tinymce.execCommand("Give_Shortcode"):(t("#scTemp").length||(t("body").append('<textarea id="scTemp" style="display: none;" />'),tinymce.init({mode:"exact",elements:"scTemp",plugins:["give_shortcode","wplink"]})),setTimeout(function(){tinymce.execCommand("Give_Shortcode")},200)),setTimeout(function(){o()},100)):console.warn("That is not a valid shortcode link.")})});
|
assets/js/admin/admin-widgets.js
CHANGED
@@ -24,17 +24,37 @@ jQuery.noConflict();
|
|
24 |
} )
|
25 |
};
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
//On DOM Ready
|
29 |
$( function () {
|
30 |
-
|
31 |
initialize_qtips();
|
32 |
|
|
|
|
|
33 |
} );
|
34 |
|
35 |
//Function to Refresh jQuery toggles for Yelp Widget Pro upon saving specific widget
|
36 |
$( document ).ajaxSuccess( function ( e, xhr, settings ) {
|
37 |
initialize_qtips();
|
|
|
|
|
|
|
38 |
} );
|
39 |
|
40 |
|
24 |
} )
|
25 |
};
|
26 |
|
27 |
+
/**
|
28 |
+
* Show/Hide continue button tile setting on basis of display setting for Give Form widget.
|
29 |
+
*/
|
30 |
+
var continue_button_setting_js = function() {
|
31 |
+
$( '.widget-liquid-right' ).on( 'change', '.give_forms_display_style_setting_row input', function(){
|
32 |
+
var $parent = $(this).parents('p'),
|
33 |
+
$continue_button_title = $parent.next();
|
34 |
+
|
35 |
+
if( 'onpage' === $('input:checked', $parent ).val() ) {
|
36 |
+
$continue_button_title.hide();
|
37 |
+
} else {
|
38 |
+
$continue_button_title.show();
|
39 |
+
}
|
40 |
+
});
|
41 |
+
};
|
42 |
+
|
43 |
|
44 |
//On DOM Ready
|
45 |
$( function () {
|
|
|
46 |
initialize_qtips();
|
47 |
|
48 |
+
continue_button_setting_js();
|
49 |
+
$( '.give_forms_display_style_setting_row input', '.widget-liquid-right' ).trigger('change');
|
50 |
} );
|
51 |
|
52 |
//Function to Refresh jQuery toggles for Yelp Widget Pro upon saving specific widget
|
53 |
$( document ).ajaxSuccess( function ( e, xhr, settings ) {
|
54 |
initialize_qtips();
|
55 |
+
|
56 |
+
continue_button_setting_js();
|
57 |
+
$( '.give_forms_display_style_setting_row input', '.widget-liquid-right' ).trigger('change');
|
58 |
} );
|
59 |
|
60 |
|
assets/js/admin/admin-widgets.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery.noConflict(),function(t){var
|
1 |
+
jQuery.noConflict(),function(t){var i=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}})},e=function(){t(".widget-liquid-right").on("change",".give_forms_display_style_setting_row input",function(){var i=t(this).parents("p"),e=i.next();"onpage"===t("input:checked",i).val()?e.hide():e.show()})};t(function(){i(),e(),t(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")}),t(document).ajaxSuccess(function(n,o,r){i(),e(),t(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")})}(jQuery);
|
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: https://wordimpress.com
|
8 |
-
* Version: 1.8.
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
* GitHub Plugin URI: https://github.com/WordImpress/Give
|
@@ -260,7 +260,7 @@ if ( ! class_exists( 'Give' ) ) :
|
|
260 |
|
261 |
// Plugin version
|
262 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
263 |
-
define( 'GIVE_VERSION', '1.8.
|
264 |
}
|
265 |
|
266 |
// Plugin Folder Path
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: https://wordimpress.com
|
8 |
+
* Version: 1.8.5
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
* GitHub Plugin URI: https://github.com/WordImpress/Give
|
260 |
|
261 |
// Plugin version
|
262 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
263 |
+
define( 'GIVE_VERSION', '1.8.5' );
|
264 |
}
|
265 |
|
266 |
// Plugin Folder Path
|
includes/admin/class-admin-settings.php
CHANGED
@@ -293,8 +293,14 @@ if ( ! class_exists( 'Give_Admin_Settings' ) ) :
|
|
293 |
// Set title.
|
294 |
$defaults['title'] = isset( $value['name'] ) ? $value['name'] : '';
|
295 |
|
|
|
296 |
$value = wp_parse_args( $value, $defaults );
|
297 |
|
|
|
|
|
|
|
|
|
|
|
298 |
// Custom attribute handling.
|
299 |
$custom_attributes = array();
|
300 |
|
@@ -371,6 +377,7 @@ if ( ! class_exists( 'Give_Admin_Settings' ) ) :
|
|
371 |
break;
|
372 |
|
373 |
// Standard text inputs and subtypes like 'number'.
|
|
|
374 |
case 'text':
|
375 |
case 'email':
|
376 |
case 'number':
|
293 |
// Set title.
|
294 |
$defaults['title'] = isset( $value['name'] ) ? $value['name'] : '';
|
295 |
|
296 |
+
// Set default setting.
|
297 |
$value = wp_parse_args( $value, $defaults );
|
298 |
|
299 |
+
// Colorpicker field.
|
300 |
+
$value['class'] = ( 'colorpicker' === $value['type'] ? trim( $value['class'] ) . ' give-colorpicker' : $value['class'] );
|
301 |
+
$value['type'] = ( 'colorpicker' === $value['type'] ? 'text' : $value['type'] );
|
302 |
+
|
303 |
+
|
304 |
// Custom attribute handling.
|
305 |
$custom_attributes = array();
|
306 |
|
377 |
break;
|
378 |
|
379 |
// Standard text inputs and subtypes like 'number'.
|
380 |
+
case 'colorpicker':
|
381 |
case 'text':
|
382 |
case 'email':
|
383 |
case 'number':
|
includes/admin/forms/class-metabox-form-data.php
CHANGED
@@ -54,9 +54,6 @@ class Give_MetaBox_Form_Data {
|
|
54 |
// Add metabox.
|
55 |
add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ), 30 );
|
56 |
|
57 |
-
// Load required scripts.
|
58 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_script' ) );
|
59 |
-
|
60 |
// Save form meta.
|
61 |
add_action( 'save_post_give_forms', array( $this, 'save' ), 10, 2 );
|
62 |
|
@@ -552,8 +549,7 @@ class Give_MetaBox_Form_Data {
|
|
552 |
global $post;
|
553 |
|
554 |
if ( is_object( $post ) && 'give_forms' === $post->post_type ) {
|
555 |
-
|
556 |
-
wp_enqueue_script( 'wp-color-picker' );
|
557 |
}
|
558 |
}
|
559 |
|
54 |
// Add metabox.
|
55 |
add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ), 30 );
|
56 |
|
|
|
|
|
|
|
57 |
// Save form meta.
|
58 |
add_action( 'save_post_give_forms', array( $this, 'save' ), 10, 2 );
|
59 |
|
549 |
global $post;
|
550 |
|
551 |
if ( is_object( $post ) && 'give_forms' === $post->post_type ) {
|
552 |
+
|
|
|
553 |
}
|
554 |
}
|
555 |
|
includes/admin/settings/class-settings-gateways.php
CHANGED
@@ -75,6 +75,17 @@ if ( ! class_exists( 'Give_Settings_Gateways' ) ) :
|
|
75 |
),
|
76 |
'default' => 'donation',
|
77 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
array(
|
79 |
'name' => __( 'PayPal IPN Verification', 'give' ),
|
80 |
'desc' => __( 'If donations are not getting marked as complete, use a slightly less secure method of verifying donations.', 'give' ),
|
75 |
),
|
76 |
'default' => 'donation',
|
77 |
),
|
78 |
+
array(
|
79 |
+
'name' => __( 'Billing Details', 'give' ),
|
80 |
+
'desc' => __( 'This option will enable the billing details section for PayPal Standard which requires the donor\'s address to complete the donation. These fields are not required by PayPal to process the transaction, but you may have a need to collect the data.', 'give' ),
|
81 |
+
'id' => 'paypal_standard_billing_details',
|
82 |
+
'type' => 'radio_inline',
|
83 |
+
'default' => 'disabled',
|
84 |
+
'options' => array(
|
85 |
+
'enabled' => __( 'Enabled', 'give' ),
|
86 |
+
'disabled' => __( 'Disabled', 'give' ),
|
87 |
+
)
|
88 |
+
),
|
89 |
array(
|
90 |
'name' => __( 'PayPal IPN Verification', 'give' ),
|
91 |
'desc' => __( 'If donations are not getting marked as complete, use a slightly less secure method of verifying donations.', 'give' ),
|
includes/admin/shortcodes/abstract-shortcode-generator.php
CHANGED
@@ -64,7 +64,6 @@ abstract class Give_Shortcode_Generator {
|
|
64 |
*/
|
65 |
public function __construct( $shortcode ) {
|
66 |
|
67 |
-
|
68 |
$this->shortcode_tag = $shortcode;
|
69 |
|
70 |
add_action( 'admin_init', array( $this, 'init' ) );
|
@@ -236,6 +235,7 @@ abstract class Give_Shortcode_Generator {
|
|
236 |
'tooltip' => '',
|
237 |
'type' => '',
|
238 |
'value' => '',
|
|
|
239 |
), $field );
|
240 |
|
241 |
if ( $this->validate( $field ) ) {
|
@@ -329,6 +329,7 @@ abstract class Give_Shortcode_Generator {
|
|
329 |
'tooltip' => '',
|
330 |
'type' => '',
|
331 |
'value' => '',
|
|
|
332 |
), $field );
|
333 |
|
334 |
if ( $this->validate( $field ) ) {
|
64 |
*/
|
65 |
public function __construct( $shortcode ) {
|
66 |
|
|
|
67 |
$this->shortcode_tag = $shortcode;
|
68 |
|
69 |
add_action( 'admin_init', array( $this, 'init' ) );
|
235 |
'tooltip' => '',
|
236 |
'type' => '',
|
237 |
'value' => '',
|
238 |
+
'classes' => ''
|
239 |
), $field );
|
240 |
|
241 |
if ( $this->validate( $field ) ) {
|
329 |
'tooltip' => '',
|
330 |
'type' => '',
|
331 |
'value' => '',
|
332 |
+
'classes' => ''
|
333 |
), $field );
|
334 |
|
335 |
if ( $this->validate( $field ) ) {
|
includes/admin/shortcodes/shortcode-give-form.php
CHANGED
@@ -64,7 +64,7 @@ class Give_Shortcode_Donation_Form extends Give_Shortcode_Generator {
|
|
64 |
array(
|
65 |
'type' => 'listbox',
|
66 |
'name' => 'show_title',
|
67 |
-
'label' => esc_attr__( 'Show Title
|
68 |
'tooltip' => esc_attr__( 'Do you want to display the form title?', 'give' ),
|
69 |
'options' => array(
|
70 |
'true' => esc_html__( 'Show', 'give' ),
|
@@ -74,7 +74,7 @@ class Give_Shortcode_Donation_Form extends Give_Shortcode_Generator {
|
|
74 |
array(
|
75 |
'type' => 'listbox',
|
76 |
'name' => 'show_goal',
|
77 |
-
'label' => esc_attr__( 'Show Goal
|
78 |
'tooltip' => esc_attr__( 'Do you want to display the donation goal?', 'give' ),
|
79 |
'options' => array(
|
80 |
'true' => esc_html__( 'Show', 'give' ),
|
@@ -85,7 +85,7 @@ class Give_Shortcode_Donation_Form extends Give_Shortcode_Generator {
|
|
85 |
'type' => 'listbox',
|
86 |
'name' => 'show_content',
|
87 |
'minWidth' => 240,
|
88 |
-
'label' => esc_attr__( 'Display Content
|
89 |
'tooltip' => esc_attr__( 'Do you want to display the form content?', 'give' ),
|
90 |
'options' => array(
|
91 |
'none' => esc_html__( 'No Content', 'give' ),
|
@@ -96,7 +96,8 @@ class Give_Shortcode_Donation_Form extends Give_Shortcode_Generator {
|
|
96 |
array(
|
97 |
'type' => 'listbox',
|
98 |
'name' => 'display_style',
|
99 |
-
'
|
|
|
100 |
'tooltip' => esc_attr__( 'How would you like to display donation information?', 'give' ),
|
101 |
'options' => array(
|
102 |
'onpage' => esc_html__( 'All Fields', 'give' ),
|
@@ -105,8 +106,15 @@ class Give_Shortcode_Donation_Form extends Give_Shortcode_Generator {
|
|
105 |
'button' => esc_html__( 'Button', 'give' ),
|
106 |
),
|
107 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
);
|
109 |
}
|
110 |
}
|
111 |
|
112 |
-
new Give_Shortcode_Donation_Form;
|
64 |
array(
|
65 |
'type' => 'listbox',
|
66 |
'name' => 'show_title',
|
67 |
+
'label' => esc_attr__( 'Show Title', 'give' ),
|
68 |
'tooltip' => esc_attr__( 'Do you want to display the form title?', 'give' ),
|
69 |
'options' => array(
|
70 |
'true' => esc_html__( 'Show', 'give' ),
|
74 |
array(
|
75 |
'type' => 'listbox',
|
76 |
'name' => 'show_goal',
|
77 |
+
'label' => esc_attr__( 'Show Goal', 'give' ),
|
78 |
'tooltip' => esc_attr__( 'Do you want to display the donation goal?', 'give' ),
|
79 |
'options' => array(
|
80 |
'true' => esc_html__( 'Show', 'give' ),
|
85 |
'type' => 'listbox',
|
86 |
'name' => 'show_content',
|
87 |
'minWidth' => 240,
|
88 |
+
'label' => esc_attr__( 'Display Content', 'give' ),
|
89 |
'tooltip' => esc_attr__( 'Do you want to display the form content?', 'give' ),
|
90 |
'options' => array(
|
91 |
'none' => esc_html__( 'No Content', 'give' ),
|
96 |
array(
|
97 |
'type' => 'listbox',
|
98 |
'name' => 'display_style',
|
99 |
+
'classes' => 'give-display-style',
|
100 |
+
'label' => esc_attr__( 'Display Options', 'give' ),
|
101 |
'tooltip' => esc_attr__( 'How would you like to display donation information?', 'give' ),
|
102 |
'options' => array(
|
103 |
'onpage' => esc_html__( 'All Fields', 'give' ),
|
106 |
'button' => esc_html__( 'Button', 'give' ),
|
107 |
),
|
108 |
),
|
109 |
+
array(
|
110 |
+
'type' => 'textbox',
|
111 |
+
'classes' => 'give-hidden give-continue-button-title',
|
112 |
+
'name' => 'continue_button_title',
|
113 |
+
'label' => esc_attr__( 'Button Text', 'give' ),
|
114 |
+
'tooltip' => esc_attr__( 'The button label for displaying the additional payment fields.', 'give' ),
|
115 |
+
),
|
116 |
);
|
117 |
}
|
118 |
}
|
119 |
|
120 |
+
new Give_Shortcode_Donation_Form();
|
includes/admin/tools/class-settings-api.php
CHANGED
@@ -73,7 +73,7 @@ if ( ! class_exists( 'Give_Settings_API' ) ) :
|
|
73 |
$GLOBALS['give_hide_save_button'] = true;
|
74 |
|
75 |
// Get settings.
|
76 |
-
$settings = apply_filters( '
|
77 |
array(
|
78 |
'id' => 'give_tools_api',
|
79 |
'type' => 'title',
|
73 |
$GLOBALS['give_hide_save_button'] = true;
|
74 |
|
75 |
// Get settings.
|
76 |
+
$settings = apply_filters( 'give_settings_api', array(
|
77 |
array(
|
78 |
'id' => 'give_tools_api',
|
79 |
'type' => 'title',
|
includes/admin/tools/class-settings-data.php
CHANGED
@@ -79,7 +79,7 @@ if ( ! class_exists( 'Give_Settings_Data' ) ) :
|
|
79 |
$GLOBALS['give_hide_save_button'] = true;
|
80 |
|
81 |
// Get settings.
|
82 |
-
$settings = apply_filters( '
|
83 |
array(
|
84 |
'id' => 'give_tools_tools',
|
85 |
'type' => 'title',
|
79 |
$GLOBALS['give_hide_save_button'] = true;
|
80 |
|
81 |
// Get settings.
|
82 |
+
$settings = apply_filters( 'give_settings_data', array(
|
83 |
array(
|
84 |
'id' => 'give_tools_tools',
|
85 |
'type' => 'title',
|
includes/admin/tools/class-settings-logs.php
CHANGED
@@ -82,7 +82,7 @@ if ( ! class_exists( 'Give_Settings_Logs' ) ) :
|
|
82 |
$GLOBALS['give_hide_save_button'] = true;
|
83 |
|
84 |
// Get settings.
|
85 |
-
$settings = apply_filters( '
|
86 |
array(
|
87 |
'id' => 'give_tools_logs',
|
88 |
'type' => 'title',
|
82 |
$GLOBALS['give_hide_save_button'] = true;
|
83 |
|
84 |
// Get settings.
|
85 |
+
$settings = apply_filters( 'give_settings_logs', array(
|
86 |
array(
|
87 |
'id' => 'give_tools_logs',
|
88 |
'type' => 'title',
|
includes/admin/upgrades/upgrade-functions.php
CHANGED
@@ -42,7 +42,7 @@ function give_do_automatic_upgrades() {
|
|
42 |
case version_compare( $give_version, '1.7', '<' ) :
|
43 |
give_v17_upgrades();
|
44 |
$did_upgrade = true;
|
45 |
-
|
46 |
|
47 |
case version_compare( $give_version, '1.8', '<' ) :
|
48 |
give_v18_upgrades();
|
@@ -138,7 +138,7 @@ function give_show_upgrade_notices() {
|
|
138 |
$upgrade_links.on( 'click', function(e){
|
139 |
e.preventDefault();
|
140 |
|
141 |
-
if( ! window.confirm(
|
142 |
return;
|
143 |
}
|
144 |
|
@@ -707,7 +707,6 @@ function give_v18_upgrades_form_metadata() {
|
|
707 |
)
|
708 |
);
|
709 |
|
710 |
-
|
711 |
if ( $forms->have_posts() ) {
|
712 |
while ( $forms->have_posts() ) {
|
713 |
$forms->the_post();
|
@@ -723,13 +722,25 @@ function give_v18_upgrades_form_metadata() {
|
|
723 |
$field_value = ( 'none' !== $show_content ? $show_content : 'give_pre_form' );
|
724 |
update_post_meta( get_the_ID(), '_give_content_placement', $field_value );
|
725 |
}
|
726 |
-
|
727 |
// "Disable" Guest Donation. Checkbox
|
728 |
// See: https://github.com/WordImpress/Give/issues/1470
|
729 |
$guest_donation = get_post_meta( get_the_ID(), '_give_logged_in_only', true );
|
730 |
$guest_donation_newval = ( in_array( $guest_donation, array( 'yes', 'on' ) ) ? 'disabled' : 'enabled' );
|
731 |
update_post_meta( get_the_ID(), '_give_logged_in_only', $guest_donation_newval );
|
732 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
733 |
// Convert yes/no setting field to enabled/disabled.
|
734 |
$form_radio_settings = array(
|
735 |
// Custom Amount.
|
@@ -744,9 +755,6 @@ function give_v18_upgrades_form_metadata() {
|
|
744 |
// Term & conditions.
|
745 |
'_give_terms_option',
|
746 |
|
747 |
-
// Offline donation.
|
748 |
-
'_give_customize_offline_donations',
|
749 |
-
|
750 |
// Billing fields.
|
751 |
'_give_offline_donation_enable_billing_fields_single',
|
752 |
);
|
@@ -782,7 +790,6 @@ function give_v18_upgrades_form_metadata() {
|
|
782 |
delete_option( 'give_doing_upgrade' );
|
783 |
give_set_upgrade_complete( 'v18_upgrades_form_metadata' );
|
784 |
|
785 |
-
|
786 |
wp_redirect( admin_url() );
|
787 |
exit;
|
788 |
}
|
42 |
case version_compare( $give_version, '1.7', '<' ) :
|
43 |
give_v17_upgrades();
|
44 |
$did_upgrade = true;
|
45 |
+
break;
|
46 |
|
47 |
case version_compare( $give_version, '1.8', '<' ) :
|
48 |
give_v18_upgrades();
|
138 |
$upgrade_links.on( 'click', function(e){
|
139 |
e.preventDefault();
|
140 |
|
141 |
+
if( ! window.confirm( '<?php _e( 'Please make sure to create a database backup before initiating the upgrade.', 'give' ); ?>' ) ) {
|
142 |
return;
|
143 |
}
|
144 |
|
707 |
)
|
708 |
);
|
709 |
|
|
|
710 |
if ( $forms->have_posts() ) {
|
711 |
while ( $forms->have_posts() ) {
|
712 |
$forms->the_post();
|
722 |
$field_value = ( 'none' !== $show_content ? $show_content : 'give_pre_form' );
|
723 |
update_post_meta( get_the_ID(), '_give_content_placement', $field_value );
|
724 |
}
|
725 |
+
|
726 |
// "Disable" Guest Donation. Checkbox
|
727 |
// See: https://github.com/WordImpress/Give/issues/1470
|
728 |
$guest_donation = get_post_meta( get_the_ID(), '_give_logged_in_only', true );
|
729 |
$guest_donation_newval = ( in_array( $guest_donation, array( 'yes', 'on' ) ) ? 'disabled' : 'enabled' );
|
730 |
update_post_meta( get_the_ID(), '_give_logged_in_only', $guest_donation_newval );
|
731 |
|
732 |
+
// Offline Donations
|
733 |
+
// See: https://github.com/WordImpress/Give/issues/1579
|
734 |
+
$offline_donation = get_post_meta( get_the_ID(), '_give_customize_offline_donations', true );
|
735 |
+
if ( 'no' === $offline_donation ) {
|
736 |
+
$offline_donation_newval = 'global';
|
737 |
+
} elseif ( 'yes' === $offline_donation ) {
|
738 |
+
$offline_donation_newval = 'enabled';
|
739 |
+
} else {
|
740 |
+
$offline_donation_newval = 'disabled';
|
741 |
+
}
|
742 |
+
update_post_meta( get_the_ID(), '_give_customize_offline_donations', $offline_donation_newval );
|
743 |
+
|
744 |
// Convert yes/no setting field to enabled/disabled.
|
745 |
$form_radio_settings = array(
|
746 |
// Custom Amount.
|
755 |
// Term & conditions.
|
756 |
'_give_terms_option',
|
757 |
|
|
|
|
|
|
|
758 |
// Billing fields.
|
759 |
'_give_offline_donation_enable_billing_fields_single',
|
760 |
);
|
790 |
delete_option( 'give_doing_upgrade' );
|
791 |
give_set_upgrade_complete( 'v18_upgrades_form_metadata' );
|
792 |
|
|
|
793 |
wp_redirect( admin_url() );
|
794 |
exit;
|
795 |
}
|
includes/forms/functions.php
CHANGED
@@ -163,7 +163,7 @@ function give_send_to_success_page( $query_string = null ) {
|
|
163 |
*/
|
164 |
function give_send_back_to_checkout( $args = array() ) {
|
165 |
|
166 |
-
$url
|
167 |
$form_id = 0;
|
168 |
|
169 |
// Set the form_id.
|
@@ -902,8 +902,11 @@ add_filter( 'give_form_goal', 'give_currency_filter', 20 );
|
|
902 |
*/
|
903 |
function give_logged_in_only( $form_id ) {
|
904 |
// If _give_logged_in_only is set to enable then guest can donate from that specific form.
|
905 |
-
//
|
906 |
-
$
|
|
|
|
|
|
|
907 |
|
908 |
return (bool) apply_filters( 'give_logged_in_only', $ret, $form_id );
|
909 |
}
|
163 |
*/
|
164 |
function give_send_back_to_checkout( $args = array() ) {
|
165 |
|
166 |
+
$url = isset( $_POST['give-current-url'] ) ? sanitize_text_field( $_POST['give-current-url'] ) : '';
|
167 |
$form_id = 0;
|
168 |
|
169 |
// Set the form_id.
|
902 |
*/
|
903 |
function give_logged_in_only( $form_id ) {
|
904 |
// If _give_logged_in_only is set to enable then guest can donate from that specific form.
|
905 |
+
// Otherwise it is member only donation form.
|
906 |
+
$val = get_post_meta( $form_id, '_give_logged_in_only', true );
|
907 |
+
$val = ! empty( $val ) ? $val : 'enabled';
|
908 |
+
|
909 |
+
$ret = ! give_is_setting_enabled( $val );
|
910 |
|
911 |
return (bool) apply_filters( 'give_logged_in_only', $ret, $form_id );
|
912 |
}
|
includes/forms/template.php
CHANGED
@@ -607,7 +607,7 @@ function give_display_checkout_button( $form_id, $args ) {
|
|
607 |
}
|
608 |
|
609 |
$display_label_field = get_post_meta( $form_id, '_give_reveal_label', true );
|
610 |
-
$display_label = ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );
|
611 |
|
612 |
$output = '<button type="button" class="give-btn give-btn-' . $display_option . '">' . $display_label . '</button>';
|
613 |
|
607 |
}
|
608 |
|
609 |
$display_label_field = get_post_meta( $form_id, '_give_reveal_label', true );
|
610 |
+
$display_label = ! empty( $args['continue_button_title'] ) ? $args['continue_button_title'] : ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );
|
611 |
|
612 |
$output = '<button type="button" class="give-btn give-btn-' . $display_option . '">' . $display_label . '</button>';
|
613 |
|
includes/forms/widget.php
CHANGED
@@ -120,6 +120,7 @@ class Give_Forms_Widget extends WP_Widget{
|
|
120 |
'float_labels' => 'global',
|
121 |
'display_style' => 'modal',
|
122 |
'show_content' => 'none',
|
|
|
123 |
);
|
124 |
|
125 |
$instance = wp_parse_args( (array) $instance, $defaults );
|
@@ -135,64 +136,72 @@ class Give_Forms_Widget extends WP_Widget{
|
|
135 |
);
|
136 |
|
137 |
$give_forms = get_posts( $args );
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
<
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
/* translators: %s: http://docs.givewp.com/form-floating-labels */
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
196 |
<?php
|
197 |
}
|
198 |
|
120 |
'float_labels' => 'global',
|
121 |
'display_style' => 'modal',
|
122 |
'show_content' => 'none',
|
123 |
+
'continue_button_title' => '',
|
124 |
);
|
125 |
|
126 |
$instance = wp_parse_args( (array) $instance, $defaults );
|
136 |
);
|
137 |
|
138 |
$give_forms = get_posts( $args );
|
139 |
+
?>
|
140 |
+
<div class="give_forms_widget_container">
|
141 |
+
|
142 |
+
<?php // Widget: widget Title. ?>
|
143 |
+
<p>
|
144 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'give' ); ?></label>
|
145 |
+
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php esc_attr_e( $instance['title'] ); ?>" /><br>
|
146 |
+
<small class="give-field-description"><?php esc_html_e( 'Leave blank to hide the widget title.', 'give' ); ?></small>
|
147 |
+
</p>
|
148 |
+
|
149 |
+
<?php // Widget: Give Form?>
|
150 |
+
<p>
|
151 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'id' ) ); ?>"><?php esc_html_e( 'Give Form:', 'give' ); ?></label>
|
152 |
+
<select class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'id' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'id' ) ); ?>">
|
153 |
+
<option value="current"><?php esc_html_e( '- Select -', 'give' ); ?></option>
|
154 |
+
<?php foreach ( $give_forms as $give_form ) { ?>
|
155 |
+
<?php $form_title = empty( $give_form->post_title ) ? sprintf( __( 'Untitled (#%s)', 'give' ), $give_form->ID ) : $give_form->post_title; ?>
|
156 |
+
<option <?php selected( absint( $instance['id'] ), $give_form->ID ); ?> value="<?php echo esc_attr( $give_form->ID ); ?>"><?php echo $form_title; ?></option>
|
157 |
+
<?php } ?>
|
158 |
+
</select><br>
|
159 |
+
<small class="give-field-description"><?php esc_html_e( 'Select a Give Form to embed in this widget.', 'give' ); ?></small>
|
160 |
+
</p>
|
161 |
+
|
162 |
+
<?php // Widget: Display Style ?>
|
163 |
+
<p class="give_forms_display_style_setting_row">
|
164 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'display_style' ) ); ?>"><?php esc_html_e( 'Display Style:', 'give' ); ?></label><br>
|
165 |
+
<label for="<?php echo $this->get_field_id( 'display_style' ); ?>-onpage"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'display_style' ); ?>-onpage" name="<?php echo $this->get_field_name( 'display_style' ); ?>" value="onpage" <?php checked( $instance['display_style'], 'onpage' ); ?>> <?php echo esc_html__( 'All Fields', 'give' ); ?></label>
|
166 |
+
<label for="<?php echo $this->get_field_id( 'display_style' ); ?>-reveal"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'display_style' ); ?>-reveal" name="<?php echo $this->get_field_name( 'display_style' ); ?>" value="reveal" <?php checked( $instance['display_style'], 'reveal' ); ?>> <?php echo esc_html__( 'Reveal', 'give' ); ?></label>
|
167 |
+
<label for="<?php echo $this->get_field_id( 'display_style' ); ?>-modal"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'display_style' ); ?>-modal" name="<?php echo $this->get_field_name( 'display_style' ); ?>" value="modal" <?php checked( $instance['display_style'], 'modal' ); ?>> <?php echo esc_html__( 'Modal', 'give' ); ?></label>
|
168 |
+
<label for="<?php echo $this->get_field_id( 'display_style' ); ?>-button"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'display_style' ); ?>-button" name="<?php echo $this->get_field_name( 'display_style' ); ?>" value="button" <?php checked( $instance['display_style'], 'button' ); ?>> <?php echo esc_html__( 'Button', 'give' ); ?></label><br>
|
169 |
+
<small class="give-field-description">
|
170 |
+
<?php echo esc_html__( 'Select a Give Form style.', 'give' ); ?>
|
171 |
+
</small>
|
172 |
+
</p>
|
173 |
+
|
174 |
+
<?php // Widget: Continue Button Title. ?>
|
175 |
+
<p class="give_forms_continue_button_title_setting_row">
|
176 |
+
<label for="<?php echo $this->get_field_id( 'continue_button_title' ); ?>"><?php esc_html_e( 'Button Text:', 'give' ); ?></label>
|
177 |
+
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'continue_button_title' ); ?>" name="<?php echo $this->get_field_name( 'continue_button_title' ); ?>" value="<?php esc_attr_e( $instance['continue_button_title'] ); ?>" /><br>
|
178 |
+
<small class="give-field-description"><?php esc_html_e( 'The button label for displaying the additional payment fields.', 'give' ); ?></small>
|
179 |
+
</p>
|
180 |
+
|
181 |
+
<?php // Widget: Floating Labels ?>
|
182 |
+
<p>
|
183 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'float_labels' ) ); ?>"><?php esc_html_e( 'Floating Labels (optional):', 'give' ); ?></label><br>
|
184 |
+
<label for="<?php echo $this->get_field_id( 'float_labels' ); ?>-global"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'float_labels' ); ?>-global" name="<?php echo $this->get_field_name( 'float_labels' ); ?>" value="global" <?php checked( $instance['float_labels'], 'global' ); ?>> <?php echo esc_html__( 'Global Option', 'give' ); ?></label>
|
185 |
+
<label for="<?php echo $this->get_field_id( 'float_labels' ); ?>-enabled"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'float_labels' ); ?>-enabled" name="<?php echo $this->get_field_name( 'float_labels' ); ?>" value="enabled" <?php checked( $instance['float_labels'], 'enabled' ); ?>> <?php echo esc_html__( 'Yes', 'give' ); ?></label>
|
186 |
+
<label for="<?php echo $this->get_field_id( 'float_labels' ); ?>-disabled"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'float_labels' ); ?>-disabled" name="<?php echo $this->get_field_name( 'float_labels' ); ?>" value="disabled" <?php checked( $instance['float_labels'], 'disabled' ); ?>> <?php echo esc_html__( 'No', 'give' ); ?></label><br>
|
187 |
+
<small class="give-field-description">
|
188 |
+
<?php
|
189 |
+
printf(
|
190 |
/* translators: %s: http://docs.givewp.com/form-floating-labels */
|
191 |
+
__( 'Override the <a href="%s" target="_blank">floating labels</a> setting for this Give form.', 'give' ),
|
192 |
+
esc_url( 'http://docs.givewp.com/form-floating-labels' )
|
193 |
+
);
|
194 |
+
?></small>
|
195 |
+
</p>
|
196 |
+
|
197 |
+
<?php // Widget: Display Content ?>
|
198 |
+
<p>
|
199 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'show_content' ) ); ?>"><?php esc_html_e( 'Display Content (optional):', 'give' ); ?></label><br>
|
200 |
+
<label for="<?php echo $this->get_field_id( 'show_content' ); ?>-none"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'show_content' ); ?>-none" name="<?php echo $this->get_field_name( 'show_content' ); ?>" value="none" <?php checked( $instance['show_content'], 'none' ); ?>> <?php echo esc_html__( 'None', 'give' ); ?></label>
|
201 |
+
<label for="<?php echo $this->get_field_id( 'show_content' ); ?>-above"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'show_content' ); ?>-above" name="<?php echo $this->get_field_name( 'show_content' ); ?>" value="above" <?php checked( $instance['show_content'], 'above' ); ?>> <?php echo esc_html__( 'Above', 'give' ); ?></label>
|
202 |
+
<label for="<?php echo $this->get_field_id( 'show_content' ); ?>-below"><input type="radio" class="widefat" id="<?php echo $this->get_field_id( 'show_content' ); ?>-below" name="<?php echo $this->get_field_name( 'show_content' ); ?>" value="below" <?php checked( $instance['show_content'], 'below' ); ?>> <?php echo esc_html__( 'Below', 'give' ); ?></label><br>
|
203 |
+
<small class="give-field-description"><?php esc_html_e( 'Override the display content setting for this Give form.', 'give' ); ?></small>
|
204 |
+
</div>
|
205 |
<?php
|
206 |
}
|
207 |
|
includes/gateways/paypal-standard.php
CHANGED
@@ -14,14 +14,27 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
* PayPal
|
18 |
*
|
19 |
-
*
|
20 |
*
|
21 |
-
* @
|
22 |
-
*
|
|
|
23 |
*/
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
/**
|
27 |
* Process PayPal Payment.
|
@@ -44,7 +57,7 @@ function give_process_paypal_payment( $payment_data ) {
|
|
44 |
give_record_gateway_error(
|
45 |
esc_html__( 'Payment Error', 'give' ),
|
46 |
sprintf(
|
47 |
-
|
48 |
esc_html__( 'Payment creation failed before sending donor to PayPal. Payment data: %s', 'give' ),
|
49 |
json_encode( $payment_data )
|
50 |
),
|
@@ -169,7 +182,7 @@ function give_process_paypal_ipn() {
|
|
169 |
give_record_gateway_error(
|
170 |
esc_html__( 'IPN Error', 'give' ),
|
171 |
sprintf(
|
172 |
-
|
173 |
esc_html__( 'Invalid IPN verification response. IPN data: %s', 'give' ),
|
174 |
json_encode( $api_response )
|
175 |
)
|
@@ -182,7 +195,7 @@ function give_process_paypal_ipn() {
|
|
182 |
give_record_gateway_error(
|
183 |
esc_html__( 'IPN Error', 'give' ),
|
184 |
sprintf(
|
185 |
-
|
186 |
esc_html__( 'Invalid IPN verification response. IPN data: %s', 'give' ),
|
187 |
json_encode( $api_response )
|
188 |
)
|
@@ -277,7 +290,7 @@ function give_process_paypal_web_accept_and_cart( $data, $payment_id ) {
|
|
277 |
give_record_gateway_error(
|
278 |
esc_html__( 'IPN Error', 'give' ),
|
279 |
sprintf(
|
280 |
-
|
281 |
esc_html__( 'Invalid business email in IPN response. IPN data: %s', 'give' ),
|
282 |
json_encode( $data )
|
283 |
),
|
@@ -295,7 +308,7 @@ function give_process_paypal_web_accept_and_cart( $data, $payment_id ) {
|
|
295 |
give_record_gateway_error(
|
296 |
esc_html__( 'IPN Error', 'give' ),
|
297 |
sprintf(
|
298 |
-
|
299 |
esc_html__( 'Invalid currency in IPN response. IPN data: %s', 'give' ),
|
300 |
json_encode( $data )
|
301 |
),
|
@@ -328,7 +341,7 @@ function give_process_paypal_web_accept_and_cart( $data, $payment_id ) {
|
|
328 |
give_record_gateway_error(
|
329 |
esc_html__( 'IPN Error', 'give' ),
|
330 |
sprintf(
|
331 |
-
|
332 |
esc_html__( 'Invalid payment amount in IPN response. IPN data: %s', 'give' ),
|
333 |
json_encode( $data )
|
334 |
),
|
@@ -346,7 +359,7 @@ function give_process_paypal_web_accept_and_cart( $data, $payment_id ) {
|
|
346 |
give_insert_payment_note(
|
347 |
$payment_id,
|
348 |
sprintf(
|
349 |
-
|
350 |
esc_html__( 'PayPal Transaction ID: %s', 'give' ),
|
351 |
$data['txn_id']
|
352 |
)
|
@@ -399,7 +412,7 @@ function give_process_paypal_refund( $data, $payment_id = 0 ) {
|
|
399 |
give_insert_payment_note(
|
400 |
$payment_id,
|
401 |
sprintf(
|
402 |
-
|
403 |
esc_html__( 'Partial PayPal refund processed: %s', 'give' ),
|
404 |
$data['parent_txn_id']
|
405 |
)
|
@@ -412,7 +425,7 @@ function give_process_paypal_refund( $data, $payment_id = 0 ) {
|
|
412 |
give_insert_payment_note(
|
413 |
$payment_id,
|
414 |
sprintf(
|
415 |
-
|
416 |
esc_html__( 'PayPal Payment #%1$s Refunded for reason: %2$s', 'give' ),
|
417 |
$data['parent_txn_id'],
|
418 |
$data['reason_code']
|
@@ -421,7 +434,7 @@ function give_process_paypal_refund( $data, $payment_id = 0 ) {
|
|
421 |
give_insert_payment_note(
|
422 |
$payment_id,
|
423 |
sprintf(
|
424 |
-
|
425 |
esc_html__( 'PayPal Refund Transaction ID: %s', 'give' ),
|
426 |
$data['txn_id']
|
427 |
)
|
@@ -692,6 +705,7 @@ function give_build_paypal_url( $payment_id, $payment_data ) {
|
|
692 |
'line2' => '',
|
693 |
'city' => '',
|
694 |
'state' => '',
|
|
|
695 |
'country' => '',
|
696 |
);
|
697 |
|
@@ -701,6 +715,7 @@ function give_build_paypal_url( $payment_id, $payment_data ) {
|
|
701 |
$paypal_args['address2'] = $address['line2'];
|
702 |
$paypal_args['city'] = $address['city'];
|
703 |
$paypal_args['state'] = $address['state'];
|
|
|
704 |
$paypal_args['country'] = $address['country'];
|
705 |
}
|
706 |
|
@@ -748,6 +763,7 @@ function give_get_paypal_button_type() {
|
|
748 |
* Build item title for paypal.
|
749 |
*
|
750 |
* @since 1.8
|
|
|
751 |
* @param $payment_data
|
752 |
*
|
753 |
* @return string
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* Toggle PayPal CC Billing Detail Fieldset.
|
18 |
*
|
19 |
+
* @since 1.8.5
|
20 |
*
|
21 |
+
* @param $form_id
|
22 |
+
*
|
23 |
+
* @return bool
|
24 |
*/
|
25 |
+
function give_paypal_standard_billing_fields( $form_id ) {
|
26 |
+
|
27 |
+
if ( give_is_setting_enabled( give_get_option( 'paypal_standard_billing_details' ) ) ) {
|
28 |
+
give_default_cc_address_fields( $form_id );
|
29 |
+
|
30 |
+
return true;
|
31 |
+
}
|
32 |
+
|
33 |
+
return false;
|
34 |
+
|
35 |
+
}
|
36 |
+
|
37 |
+
add_action( 'give_paypal_cc_form', 'give_paypal_standard_billing_fields');
|
38 |
|
39 |
/**
|
40 |
* Process PayPal Payment.
|
57 |
give_record_gateway_error(
|
58 |
esc_html__( 'Payment Error', 'give' ),
|
59 |
sprintf(
|
60 |
+
/* translators: %s: payment data */
|
61 |
esc_html__( 'Payment creation failed before sending donor to PayPal. Payment data: %s', 'give' ),
|
62 |
json_encode( $payment_data )
|
63 |
),
|
182 |
give_record_gateway_error(
|
183 |
esc_html__( 'IPN Error', 'give' ),
|
184 |
sprintf(
|
185 |
+
/* translators: %s: Paypal IPN response */
|
186 |
esc_html__( 'Invalid IPN verification response. IPN data: %s', 'give' ),
|
187 |
json_encode( $api_response )
|
188 |
)
|
195 |
give_record_gateway_error(
|
196 |
esc_html__( 'IPN Error', 'give' ),
|
197 |
sprintf(
|
198 |
+
/* translators: %s: Paypal IPN response */
|
199 |
esc_html__( 'Invalid IPN verification response. IPN data: %s', 'give' ),
|
200 |
json_encode( $api_response )
|
201 |
)
|
290 |
give_record_gateway_error(
|
291 |
esc_html__( 'IPN Error', 'give' ),
|
292 |
sprintf(
|
293 |
+
/* translators: %s: Paypal IPN response */
|
294 |
esc_html__( 'Invalid business email in IPN response. IPN data: %s', 'give' ),
|
295 |
json_encode( $data )
|
296 |
),
|
308 |
give_record_gateway_error(
|
309 |
esc_html__( 'IPN Error', 'give' ),
|
310 |
sprintf(
|
311 |
+
/* translators: %s: Paypal IPN response */
|
312 |
esc_html__( 'Invalid currency in IPN response. IPN data: %s', 'give' ),
|
313 |
json_encode( $data )
|
314 |
),
|
341 |
give_record_gateway_error(
|
342 |
esc_html__( 'IPN Error', 'give' ),
|
343 |
sprintf(
|
344 |
+
/* translators: %s: Paypal IPN response */
|
345 |
esc_html__( 'Invalid payment amount in IPN response. IPN data: %s', 'give' ),
|
346 |
json_encode( $data )
|
347 |
),
|
359 |
give_insert_payment_note(
|
360 |
$payment_id,
|
361 |
sprintf(
|
362 |
+
/* translators: %s: Paypal transaction ID */
|
363 |
esc_html__( 'PayPal Transaction ID: %s', 'give' ),
|
364 |
$data['txn_id']
|
365 |
)
|
412 |
give_insert_payment_note(
|
413 |
$payment_id,
|
414 |
sprintf(
|
415 |
+
/* translators: %s: Paypal parent transaction ID */
|
416 |
esc_html__( 'Partial PayPal refund processed: %s', 'give' ),
|
417 |
$data['parent_txn_id']
|
418 |
)
|
425 |
give_insert_payment_note(
|
426 |
$payment_id,
|
427 |
sprintf(
|
428 |
+
/* translators: 1: Paypal parent transaction ID 2. Paypal reason code */
|
429 |
esc_html__( 'PayPal Payment #%1$s Refunded for reason: %2$s', 'give' ),
|
430 |
$data['parent_txn_id'],
|
431 |
$data['reason_code']
|
434 |
give_insert_payment_note(
|
435 |
$payment_id,
|
436 |
sprintf(
|
437 |
+
/* translators: %s: Paypal transaction ID */
|
438 |
esc_html__( 'PayPal Refund Transaction ID: %s', 'give' ),
|
439 |
$data['txn_id']
|
440 |
)
|
705 |
'line2' => '',
|
706 |
'city' => '',
|
707 |
'state' => '',
|
708 |
+
'zip' => '',
|
709 |
'country' => '',
|
710 |
);
|
711 |
|
715 |
$paypal_args['address2'] = $address['line2'];
|
716 |
$paypal_args['city'] = $address['city'];
|
717 |
$paypal_args['state'] = $address['state'];
|
718 |
+
$paypal_args['zip'] = $address['zip'];
|
719 |
$paypal_args['country'] = $address['country'];
|
720 |
}
|
721 |
|
763 |
* Build item title for paypal.
|
764 |
*
|
765 |
* @since 1.8
|
766 |
+
*
|
767 |
* @param $payment_data
|
768 |
*
|
769 |
* @return string
|
includes/scripts.php
CHANGED
@@ -255,6 +255,8 @@ function give_load_admin_scripts( $hook ) {
|
|
255 |
wp_register_style( 'jquery-chosen', $css_dir . 'chosen' . $suffix . '.css', array(), GIVE_VERSION );
|
256 |
wp_enqueue_style( 'jquery-chosen' );
|
257 |
wp_enqueue_style( 'thickbox' );
|
|
|
|
|
258 |
|
259 |
// JS.
|
260 |
wp_register_script( 'jquery-chosen', $js_plugins . 'chosen.jquery' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION );
|
@@ -263,7 +265,11 @@ function give_load_admin_scripts( $hook ) {
|
|
263 |
wp_register_script( 'give-accounting', $js_plugins . 'accounting' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
|
264 |
wp_enqueue_script( 'give-accounting' );
|
265 |
|
266 |
-
|
|
|
|
|
|
|
|
|
267 |
wp_enqueue_script( 'give-admin-scripts' );
|
268 |
|
269 |
wp_register_script( 'jquery-flot', $js_plugins . 'jquery.flot' . $suffix . '.js' );
|
@@ -275,9 +281,6 @@ function give_load_admin_scripts( $hook ) {
|
|
275 |
wp_register_script( 'give-repeatable-fields', $js_plugins . 'repeatable-fields' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
|
276 |
wp_enqueue_script( 'give-repeatable-fields' );
|
277 |
|
278 |
-
wp_enqueue_script( 'jquery-ui-datepicker' );
|
279 |
-
wp_enqueue_script( 'thickbox' );
|
280 |
-
|
281 |
// Forms CPT Script.
|
282 |
if ( $post_type === 'give_forms' ) {
|
283 |
wp_register_script( 'give-admin-forms-scripts', $js_dir . 'admin-forms' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
|
@@ -333,7 +336,6 @@ function give_load_admin_scripts( $hook ) {
|
|
333 |
'resend_receipts' => __( 'Are you sure you want to resend the emails receipt to {payment_count} recipients?', 'give' ),
|
334 |
),
|
335 |
),
|
336 |
-
'upgrade_confirmation' => __( 'Please make sure to create a database backup before initiating the upgrade.', 'give' ),
|
337 |
'metabox_fields' => array(
|
338 |
'media' => array(
|
339 |
'button_title' => esc_html__( 'Choose Attachment', 'give' ),
|
255 |
wp_register_style( 'jquery-chosen', $css_dir . 'chosen' . $suffix . '.css', array(), GIVE_VERSION );
|
256 |
wp_enqueue_style( 'jquery-chosen' );
|
257 |
wp_enqueue_style( 'thickbox' );
|
258 |
+
wp_enqueue_style( 'wp-color-picker' );
|
259 |
+
|
260 |
|
261 |
// JS.
|
262 |
wp_register_script( 'jquery-chosen', $js_plugins . 'chosen.jquery' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION );
|
265 |
wp_register_script( 'give-accounting', $js_plugins . 'accounting' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
|
266 |
wp_enqueue_script( 'give-accounting' );
|
267 |
|
268 |
+
wp_enqueue_script( 'wp-color-picker' );
|
269 |
+
wp_enqueue_script( 'jquery-ui-datepicker' );
|
270 |
+
wp_enqueue_script( 'thickbox' );
|
271 |
+
|
272 |
+
wp_register_script( 'give-admin-scripts', $js_dir . 'admin-scripts' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'wp-color-picker' ), GIVE_VERSION, false );
|
273 |
wp_enqueue_script( 'give-admin-scripts' );
|
274 |
|
275 |
wp_register_script( 'jquery-flot', $js_plugins . 'jquery.flot' . $suffix . '.js' );
|
281 |
wp_register_script( 'give-repeatable-fields', $js_plugins . 'repeatable-fields' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
|
282 |
wp_enqueue_script( 'give-repeatable-fields' );
|
283 |
|
|
|
|
|
|
|
284 |
// Forms CPT Script.
|
285 |
if ( $post_type === 'give_forms' ) {
|
286 |
wp_register_script( 'give-admin-forms-scripts', $js_dir . 'admin-forms' . $suffix . '.js', array( 'jquery' ), GIVE_VERSION, false );
|
336 |
'resend_receipts' => __( 'Are you sure you want to resend the emails receipt to {payment_count} recipients?', 'give' ),
|
337 |
),
|
338 |
),
|
|
|
339 |
'metabox_fields' => array(
|
340 |
'media' => array(
|
341 |
'button_title' => esc_html__( 'Choose Attachment', 'give' ),
|
includes/shortcodes.php
CHANGED
@@ -80,12 +80,13 @@ add_shortcode( 'donation_history', 'give_donation_history' );
|
|
80 |
*/
|
81 |
function give_form_shortcode( $atts ) {
|
82 |
$atts = shortcode_atts( array(
|
83 |
-
'id'
|
84 |
-
'show_title'
|
85 |
-
'show_goal'
|
86 |
-
'show_content'
|
87 |
-
'float_labels'
|
88 |
-
'display_style'
|
|
|
89 |
), $atts, 'give_form' );
|
90 |
|
91 |
// Convert string to bool.
|
80 |
*/
|
81 |
function give_form_shortcode( $atts ) {
|
82 |
$atts = shortcode_atts( array(
|
83 |
+
'id' => '',
|
84 |
+
'show_title' => true,
|
85 |
+
'show_goal' => true,
|
86 |
+
'show_content' => '',
|
87 |
+
'float_labels' => '',
|
88 |
+
'display_style' => '',
|
89 |
+
'continue_button_title' => '',
|
90 |
), $atts, 'give_form' );
|
91 |
|
92 |
// Convert string to bool.
|
languages/give.pot
CHANGED
@@ -167,7 +167,7 @@ msgstr ""
|
|
167 |
msgid "The test email has been sent."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: includes/admin/class-admin-notices.php:132, includes/scripts.php:
|
171 |
msgid "You cannot set the success and failed pages to the same page"
|
172 |
msgstr ""
|
173 |
|
@@ -227,7 +227,7 @@ msgstr ""
|
|
227 |
msgid "Your settings have been saved."
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: includes/admin/class-admin-settings.php:
|
231 |
msgid "Add or Upload File"
|
232 |
msgstr ""
|
233 |
|
@@ -279,7 +279,7 @@ msgstr ""
|
|
279 |
msgid "Payment Gateways"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: includes/admin/class-give-settings.php:197, includes/admin/forms/class-metabox-form-data.php:
|
283 |
msgid "Display Options"
|
284 |
msgstr ""
|
285 |
|
@@ -399,31 +399,31 @@ msgstr ""
|
|
399 |
msgid "Gateways Settings"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: includes/admin/class-give-settings.php:633, includes/admin/settings/class-settings-gateways.php:
|
403 |
msgid "Test Mode"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: includes/admin/class-give-settings.php:635, includes/admin/settings/class-settings-gateways.php:
|
407 |
msgid "While in test mode no live donations are processed. To fully use test mode, you must have a sandbox (test) account for the payment gateway you are testing."
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: includes/admin/class-give-settings.php:645, includes/admin/settings/class-settings-gateways.php:
|
411 |
msgid "Enabled Gateways"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: includes/admin/class-give-settings.php:647, includes/admin/settings/class-settings-gateways.php:
|
415 |
msgid "Enable your payment gateway. Can be ordered by dragging."
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: includes/admin/class-give-settings.php:657, includes/admin/forms/class-metabox-form-data.php:
|
419 |
msgid "Default Gateway"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: includes/admin/class-give-settings.php:659, includes/admin/settings/class-settings-gateways.php:
|
423 |
msgid "The gateway that will be selected by default."
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: includes/admin/class-give-settings.php:669, includes/admin/settings/class-settings-gateways.php:
|
427 |
msgid "PayPal Standard"
|
428 |
msgstr ""
|
429 |
|
@@ -463,47 +463,47 @@ msgstr ""
|
|
463 |
msgid "Disable PayPal IPN Verification"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: includes/admin/class-give-settings.php:729, includes/admin/settings/class-settings-gateways.php:
|
467 |
msgid "If donations are not getting marked as complete, use a slightly less secure method of verifying donations."
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: includes/admin/class-give-settings.php:739, includes/admin/forms/class-metabox-form-data.php:
|
471 |
msgid "Offline Donations"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: includes/admin/class-give-settings.php:751, includes/admin/settings/class-settings-gateways.php:
|
475 |
msgid "Collect Billing Details"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: includes/admin/class-give-settings.php:753, includes/admin/settings/class-settings-gateways.php:
|
479 |
msgid "Enable to request billing details for offline donations. Will appear above offline donation instructions. Can be enabled/disabled per form."
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/admin/class-give-settings.php:763, includes/admin/settings/class-settings-gateways.php:
|
483 |
msgid "Offline Donation Instructions"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: includes/admin/class-give-settings.php:765, includes/admin/settings/class-settings-gateways.php:
|
487 |
msgid "The following content will appear for all forms when the user selects the offline donation payment option. Note: You may customize the content per form as needed."
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/admin/class-give-settings.php:783, includes/admin/settings/class-settings-gateways.php:
|
491 |
msgid "Offline Donation Email Instructions Subject"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/admin/class-give-settings.php:785, includes/admin/class-give-settings.php:1127, includes/admin/settings/class-settings-email.php:106, includes/admin/settings/class-settings-gateways.php:
|
495 |
msgid "Enter the subject line for the donation receipt email."
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/admin/class-give-settings.php:789, includes/admin/settings/class-settings-gateways.php:
|
499 |
msgid "{donation} - Offline Donation Instructions"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/admin/class-give-settings.php:797, includes/admin/settings/class-settings-gateways.php:
|
503 |
msgid "Offline Donation Email Instructions"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/admin/class-give-settings.php:799, includes/admin/settings/class-settings-gateways.php:
|
507 |
msgid "Enter the instructions you want emailed to the donor after they have submitted the donation form. Most likely this would include important information like mailing address and who to make the check out to."
|
508 |
msgstr ""
|
509 |
|
@@ -619,7 +619,7 @@ msgstr ""
|
|
619 |
msgid "Choose a template. Click \"Save Changes\" then \"Preview Donation Receipt\" to see the new template."
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/admin/class-give-settings.php:1073, includes/admin/settings/class-settings-email.php:64, includes/scripts.php:
|
623 |
msgid "Logo"
|
624 |
msgstr ""
|
625 |
|
@@ -1091,7 +1091,7 @@ msgstr ""
|
|
1091 |
msgid "User ID:"
|
1092 |
msgstr ""
|
1093 |
|
1094 |
-
#: includes/admin/customers/customers.php:268, includes/admin/forms/class-metabox-form-data.php:
|
1095 |
msgid "None"
|
1096 |
msgstr ""
|
1097 |
|
@@ -1173,11 +1173,11 @@ msgstr ""
|
|
1173 |
msgid "Recent Donations"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: includes/admin/customers/customers.php:501, includes/admin/forms/class-metabox-form-data.php:
|
1177 |
msgid "ID"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: includes/admin/customers/customers.php:502, includes/admin/forms/class-metabox-form-data.php:
|
1181 |
msgid "Amount"
|
1182 |
msgstr ""
|
1183 |
|
@@ -1280,315 +1280,315 @@ msgstr[1] ""
|
|
1280 |
msgid "Donation Form Options"
|
1281 |
msgstr ""
|
1282 |
|
1283 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1284 |
msgid "Donation Options"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1288 |
msgid "Donation Option"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1292 |
msgid "Do you want this form to have one set donation price or multiple levels (for example, $10, $20, $50)?"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1296 |
msgid "Set Donation"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1300 |
msgid "Multi-level Donation"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1304 |
msgid "This is the set donation amount for this form. If you have a \"Custom Amount Minimum\" set, make sure it is less than this amount."
|
1305 |
msgstr ""
|
1306 |
|
1307 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1308 |
msgid "Display Style"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1312 |
msgid "Set how the donations levels will display on the form."
|
1313 |
msgstr ""
|
1314 |
|
1315 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1316 |
msgid "Buttons"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1320 |
msgid "Radios"
|
1321 |
msgstr ""
|
1322 |
|
1323 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1324 |
msgid "Dropdown"
|
1325 |
msgstr ""
|
1326 |
|
1327 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1328 |
msgid "Custom Amount"
|
1329 |
msgstr ""
|
1330 |
|
1331 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1332 |
msgid "Do you want the user to be able to input their own donation amount?"
|
1333 |
msgstr ""
|
1334 |
|
1335 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1336 |
msgid "Enabled"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1340 |
msgid "Disabled"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1344 |
msgid "Minimum Amount"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1348 |
msgid "Enter the minimum custom donation amount."
|
1349 |
msgstr ""
|
1350 |
|
1351 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1352 |
msgid "Custom Amount Text"
|
1353 |
msgstr ""
|
1354 |
|
1355 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1356 |
msgid "This text appears as a label below the custom amount field for set donation forms. For multi-level forms the text will appear as it's own level (ie button, radio, or select option)."
|
1357 |
msgstr ""
|
1358 |
|
1359 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1360 |
msgid "Give a Custom Amount"
|
1361 |
msgstr ""
|
1362 |
|
1363 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1364 |
msgid "Add Level"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1368 |
msgid "Donation Level"
|
1369 |
msgstr ""
|
1370 |
|
1371 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1372 |
msgid "Text"
|
1373 |
msgstr ""
|
1374 |
|
1375 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1376 |
msgid "Default"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1380 |
msgid "Form Display"
|
1381 |
msgstr ""
|
1382 |
|
1383 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1384 |
msgid "How would you like to display donation information for this form?"
|
1385 |
msgstr ""
|
1386 |
|
1387 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1388 |
msgid "All Fields"
|
1389 |
msgstr ""
|
1390 |
|
1391 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1392 |
msgid "Modal"
|
1393 |
msgstr ""
|
1394 |
|
1395 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1396 |
msgid "Reveal"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1400 |
msgid "Button"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1404 |
msgid "Continue Button"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1408 |
msgid "The button label for displaying the additional payment fields."
|
1409 |
msgstr ""
|
1410 |
|
1411 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1412 |
msgid "Donate Now"
|
1413 |
msgstr ""
|
1414 |
|
1415 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1416 |
msgid "Submit Button"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1420 |
msgid "The button label for completing a donation."
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1424 |
msgid "By default, the gateway for this form will inherit the global default gateway (set under Give > Settings > Payment Gateways). This option allows you to customize the default gateway for this form only."
|
1425 |
msgstr ""
|
1426 |
|
1427 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1428 |
msgid "Guest Donations"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1432 |
msgid "Do you want to allow non-logged-in users to make donations?"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1436 |
msgid "Registration"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1440 |
msgid "Display the registration and login forms in the payment section for non-logged-in users."
|
1441 |
msgstr ""
|
1442 |
|
1443 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1444 |
msgid "Login"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1448 |
msgid "Registration + Login"
|
1449 |
msgstr ""
|
1450 |
|
1451 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1452 |
msgid "Floating Labels"
|
1453 |
msgstr ""
|
1454 |
|
1455 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1456 |
msgid "Select the <a href=\"%s\" target=\"_blank\">floating labels</a> setting for this Give form. Be aware that if you have the \"Disable CSS\" option enabled, you will need to style the floating labels yourself."
|
1457 |
msgstr ""
|
1458 |
|
1459 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1460 |
msgid "Global Option"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1464 |
msgid "Donation Goal"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1468 |
msgid "Do you want to set a donation goal for this form?"
|
1469 |
msgstr ""
|
1470 |
|
1471 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1472 |
msgid "Goal Amount"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1476 |
msgid "This is the monetary goal amount you want to reach for this form."
|
1477 |
msgstr ""
|
1478 |
|
1479 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1480 |
msgid "Goal Format"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1484 |
msgid "Do you want to display the total amount raised based on your monetary goal or a percentage? For instance, \"$500 of $1,000 raised\" or \"50% funded\"."
|
1485 |
msgstr ""
|
1486 |
|
1487 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1488 |
msgid "Percentage"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1492 |
msgid "Progress Bar Color"
|
1493 |
msgstr ""
|
1494 |
|
1495 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1496 |
msgid "Customize the color of the goal progress bar."
|
1497 |
msgstr ""
|
1498 |
|
1499 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1500 |
msgid "Close Form"
|
1501 |
msgstr ""
|
1502 |
|
1503 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1504 |
msgid "Do you want to close the donation forms and stop accepting donations once this goal has been met?"
|
1505 |
msgstr ""
|
1506 |
|
1507 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1508 |
msgid "Goal Achieved Message"
|
1509 |
msgstr ""
|
1510 |
|
1511 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1512 |
msgid "Do you want to display a custom message when the goal is closed?"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1516 |
msgid "Thank you to all our donors, we have met our fundraising goal."
|
1517 |
msgstr ""
|
1518 |
|
1519 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1520 |
msgid "Form Content"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1524 |
msgid "Display Content"
|
1525 |
msgstr ""
|
1526 |
|
1527 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1528 |
msgid "Do you want to add custom content to this form?"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1532 |
msgid "Content Placement"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1536 |
msgid "This option controls where the content appears within the donation form."
|
1537 |
msgstr ""
|
1538 |
|
1539 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1540 |
msgid "Above fields"
|
1541 |
msgstr ""
|
1542 |
|
1543 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1544 |
msgid "Below fields"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1548 |
msgid "Content"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1552 |
msgid "This content will display on the single give form page."
|
1553 |
msgstr ""
|
1554 |
|
1555 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1556 |
msgid "Terms & Conditions"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1560 |
msgid "Terms and Conditions"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1564 |
msgid "Do you want to require the donor to accept terms prior to being able to complete their donation?"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1568 |
msgid "Customize"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1572 |
msgid "Disable"
|
1573 |
msgstr ""
|
1574 |
|
1575 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1576 |
msgid "Agreement Label"
|
1577 |
msgstr ""
|
1578 |
|
1579 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1580 |
msgid "The label shown next to the agree to terms check box. Add your own to customize or leave blank to use the default text placeholder."
|
1581 |
msgstr ""
|
1582 |
|
1583 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1584 |
msgid "Agree to Terms?"
|
1585 |
msgstr ""
|
1586 |
|
1587 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1588 |
msgid "Agreement Text"
|
1589 |
msgstr ""
|
1590 |
|
1591 |
-
#: includes/admin/forms/class-metabox-form-data.php:
|
1592 |
msgid "This is the actual text which the user will have to agree to in order to make a donation."
|
1593 |
msgstr ""
|
1594 |
|
@@ -1724,7 +1724,7 @@ msgstr ""
|
|
1724 |
msgid "by"
|
1725 |
msgstr ""
|
1726 |
|
1727 |
-
#: includes/admin/payments/class-payments-table.php:350, includes/admin/reporting/class-sales-logs-list-table.php:74, includes/admin/reporting/class-sales-logs-list-table.php:310, includes/admin/shortcodes/abstract-shortcode-generator.php:296, includes/class-give-html-elements.php:130, includes/forms/widget.php:
|
1728 |
msgid "Untitled (#%s)"
|
1729 |
msgstr ""
|
1730 |
|
@@ -2048,7 +2048,7 @@ msgstr ""
|
|
2048 |
msgid "Donation Forms Report"
|
2049 |
msgstr ""
|
2050 |
|
2051 |
-
#: includes/admin/reporting/class-gateway-error-logs-list-table.php:75, includes/gateways/manual.php:62, includes/gateways/paypal-standard.php:
|
2052 |
msgid "Payment Error"
|
2053 |
msgstr ""
|
2054 |
|
@@ -2104,7 +2104,7 @@ msgstr ""
|
|
2104 |
msgid "Donation Methods"
|
2105 |
msgstr ""
|
2106 |
|
2107 |
-
#: includes/admin/reporting/class-settings-gateways.php:98, includes/admin/settings/class-settings-gateways.php:
|
2108 |
msgid "Gateways"
|
2109 |
msgstr ""
|
2110 |
|
@@ -2788,35 +2788,43 @@ msgstr ""
|
|
2788 |
msgid "Enter the name of the PayPal page style to use, or leave blank to use the default."
|
2789 |
msgstr ""
|
2790 |
|
2791 |
-
#: includes/admin/settings/class-settings-gateways.php:79
|
2792 |
-
msgid "
|
|
|
|
|
|
|
|
|
2793 |
msgstr ""
|
2794 |
|
2795 |
#: includes/admin/settings/class-settings-gateways.php:90
|
|
|
|
|
|
|
|
|
2796 |
msgid "PayPal Standard Gateway Settings Docs Link"
|
2797 |
msgstr ""
|
2798 |
|
2799 |
-
#: includes/admin/settings/class-settings-gateways.php:
|
2800 |
msgid "PayPal Standard Gateway Settings"
|
2801 |
msgstr ""
|
2802 |
|
2803 |
-
#: includes/admin/settings/class-settings-gateways.php:
|
2804 |
msgid "Available template tags:"
|
2805 |
msgstr ""
|
2806 |
|
2807 |
-
#: includes/admin/settings/class-settings-gateways.php:
|
2808 |
msgid "Offline Donations Settings Docs Link"
|
2809 |
msgstr ""
|
2810 |
|
2811 |
-
#: includes/admin/settings/class-settings-gateways.php:
|
2812 |
msgid "Offline Gateway Settings"
|
2813 |
msgstr ""
|
2814 |
|
2815 |
-
#: includes/admin/settings/class-settings-gateways.php:
|
2816 |
msgid "Gateways Docs Link"
|
2817 |
msgstr ""
|
2818 |
|
2819 |
-
#: includes/admin/settings/class-settings-gateways.php:
|
2820 |
msgid "Gateway Settings"
|
2821 |
msgstr ""
|
2822 |
|
@@ -2848,23 +2856,23 @@ msgstr ""
|
|
2848 |
msgid "General Options"
|
2849 |
msgstr ""
|
2850 |
|
2851 |
-
#: includes/admin/shortcodes/abstract-shortcode-generator.php:
|
2852 |
msgid "Close"
|
2853 |
msgstr ""
|
2854 |
|
2855 |
-
#: includes/admin/shortcodes/abstract-shortcode-generator.php:
|
2856 |
msgid "Insert Shortcode"
|
2857 |
msgstr ""
|
2858 |
|
2859 |
-
#: includes/admin/shortcodes/abstract-shortcode-generator.php:256, includes/forms/widget.php:
|
2860 |
msgid "- Select -"
|
2861 |
msgstr ""
|
2862 |
|
2863 |
-
#: includes/admin/shortcodes/abstract-shortcode-generator.php:
|
2864 |
msgid "Some of the shortcode options are required."
|
2865 |
msgstr ""
|
2866 |
|
2867 |
-
#: includes/admin/shortcodes/abstract-shortcode-generator.php:
|
2868 |
msgid "The \"%s\" option is required."
|
2869 |
msgstr ""
|
2870 |
|
@@ -2901,7 +2909,7 @@ msgid "Optional settings"
|
|
2901 |
msgstr ""
|
2902 |
|
2903 |
#: includes/admin/shortcodes/shortcode-give-form.php:67
|
2904 |
-
msgid "Show Title
|
2905 |
msgstr ""
|
2906 |
|
2907 |
#: includes/admin/shortcodes/shortcode-give-form.php:68
|
@@ -2913,17 +2921,13 @@ msgid "Hide"
|
|
2913 |
msgstr ""
|
2914 |
|
2915 |
#: includes/admin/shortcodes/shortcode-give-form.php:77
|
2916 |
-
msgid "Show Goal
|
2917 |
msgstr ""
|
2918 |
|
2919 |
#: includes/admin/shortcodes/shortcode-give-form.php:78
|
2920 |
msgid "Do you want to display the donation goal?"
|
2921 |
msgstr ""
|
2922 |
|
2923 |
-
#: includes/admin/shortcodes/shortcode-give-form.php:88
|
2924 |
-
msgid "Display Content:"
|
2925 |
-
msgstr ""
|
2926 |
-
|
2927 |
#: includes/admin/shortcodes/shortcode-give-form.php:89
|
2928 |
msgid "Do you want to display the form content?"
|
2929 |
msgstr ""
|
@@ -2940,12 +2944,12 @@ msgstr ""
|
|
2940 |
msgid "Display content BELOW the fields"
|
2941 |
msgstr ""
|
2942 |
|
2943 |
-
#: includes/admin/shortcodes/shortcode-give-form.php:
|
2944 |
-
msgid "
|
2945 |
msgstr ""
|
2946 |
|
2947 |
-
#: includes/admin/shortcodes/shortcode-give-form.php:
|
2948 |
-
msgid "
|
2949 |
msgstr ""
|
2950 |
|
2951 |
#: includes/admin/shortcodes/shortcode-give-goal.php:26, includes/admin/shortcodes/shortcode-give-goal.php:27
|
@@ -3653,11 +3657,11 @@ msgstr ""
|
|
3653 |
msgid "Whether the current theme is a child theme."
|
3654 |
msgstr ""
|
3655 |
|
3656 |
-
#: includes/admin/tools/views/html-admin-page-system-info.php:752, includes/class-give-cli-commands.php:130, includes/forms/widget.php:
|
3657 |
msgid "Yes"
|
3658 |
msgstr ""
|
3659 |
|
3660 |
-
#: includes/admin/tools/views/html-admin-page-system-info.php:752, includes/class-give-cli-commands.php:130, includes/forms/widget.php:
|
3661 |
msgid "No"
|
3662 |
msgstr ""
|
3663 |
|
@@ -3705,6 +3709,10 @@ msgstr ""
|
|
3705 |
msgid "Give needs to upgrade the form database, click %1$shere%2$s to start the upgrade."
|
3706 |
msgstr ""
|
3707 |
|
|
|
|
|
|
|
|
|
3708 |
#: includes/admin/upgrades/upgrade-functions.php:167, includes/admin/upgrades/upgrade-functions.php:279, includes/admin/upgrades/upgrade-functions.php:316, includes/admin/upgrades/upgrade-functions.php:687
|
3709 |
msgid "You do not have permission to do Give upgrades."
|
3710 |
msgstr ""
|
@@ -4169,7 +4177,7 @@ msgstr ""
|
|
4169 |
msgid "Give Donors Gravatars"
|
4170 |
msgstr ""
|
4171 |
|
4172 |
-
#: includes/class-give-gravatars.php:539, includes/forms/widget.php:
|
4173 |
msgid "Title:"
|
4174 |
msgstr ""
|
4175 |
|
@@ -5749,10 +5757,6 @@ msgstr ""
|
|
5749 |
msgid "MM / YY"
|
5750 |
msgstr ""
|
5751 |
|
5752 |
-
#: includes/forms/template.php:887
|
5753 |
-
msgid "Billing Details"
|
5754 |
-
msgstr ""
|
5755 |
-
|
5756 |
#: includes/forms/template.php:906
|
5757 |
msgid "The primary billing address for your credit card."
|
5758 |
msgstr ""
|
@@ -5889,47 +5893,51 @@ msgstr ""
|
|
5889 |
msgid "Display a Give Donation Form in your theme's widget powered sidebar."
|
5890 |
msgstr ""
|
5891 |
|
5892 |
-
#: includes/forms/widget.php:
|
5893 |
msgid "Leave blank to hide the widget title."
|
5894 |
msgstr ""
|
5895 |
|
5896 |
-
#: includes/forms/widget.php:
|
5897 |
msgid "Give Form:"
|
5898 |
msgstr ""
|
5899 |
|
5900 |
-
#: includes/forms/widget.php:
|
5901 |
msgid "Select a Give Form to embed in this widget."
|
5902 |
msgstr ""
|
5903 |
|
5904 |
-
#: includes/forms/widget.php:
|
5905 |
msgid "Display Style:"
|
5906 |
msgstr ""
|
5907 |
|
5908 |
-
#: includes/forms/widget.php:
|
5909 |
msgid "Select a Give Form style."
|
5910 |
msgstr ""
|
5911 |
|
5912 |
-
#: includes/forms/widget.php:
|
5913 |
-
msgid "
|
5914 |
msgstr ""
|
5915 |
|
5916 |
#: includes/forms/widget.php:183
|
5917 |
-
msgid "
|
5918 |
msgstr ""
|
5919 |
|
5920 |
#: includes/forms/widget.php:191
|
|
|
|
|
|
|
|
|
5921 |
msgid "Display Content (optional):"
|
5922 |
msgstr ""
|
5923 |
|
5924 |
-
#: includes/forms/widget.php:
|
5925 |
msgid "Above"
|
5926 |
msgstr ""
|
5927 |
|
5928 |
-
#: includes/forms/widget.php:
|
5929 |
msgid "Below"
|
5930 |
msgstr ""
|
5931 |
|
5932 |
-
#: includes/forms/widget.php:
|
5933 |
msgid "Override the display content setting for this Give form."
|
5934 |
msgstr ""
|
5935 |
|
@@ -6045,91 +6053,91 @@ msgstr ""
|
|
6045 |
msgid "Please enter offline donation instructions in <a href=\"%s\">this form's settings</a>."
|
6046 |
msgstr ""
|
6047 |
|
6048 |
-
#: includes/gateways/paypal-standard.php:
|
6049 |
msgid "Payment creation failed before sending donor to PayPal. Payment data: %s"
|
6050 |
msgstr ""
|
6051 |
|
6052 |
-
#: includes/gateways/paypal-standard.php:
|
6053 |
msgid "IPN Error"
|
6054 |
msgstr ""
|
6055 |
|
6056 |
-
#: includes/gateways/paypal-standard.php:
|
6057 |
msgid "Invalid IPN verification response. IPN data: %s"
|
6058 |
msgstr ""
|
6059 |
|
6060 |
-
#: includes/gateways/paypal-standard.php:
|
6061 |
msgid "Invalid business email in IPN response. IPN data: %s"
|
6062 |
msgstr ""
|
6063 |
|
6064 |
-
#: includes/gateways/paypal-standard.php:
|
6065 |
msgid "Payment failed due to invalid PayPal business email."
|
6066 |
msgstr ""
|
6067 |
|
6068 |
-
#: includes/gateways/paypal-standard.php:
|
6069 |
msgid "Invalid currency in IPN response. IPN data: %s"
|
6070 |
msgstr ""
|
6071 |
|
6072 |
-
#: includes/gateways/paypal-standard.php:
|
6073 |
msgid "Payment failed due to invalid currency in PayPal IPN."
|
6074 |
msgstr ""
|
6075 |
|
6076 |
-
#: includes/gateways/paypal-standard.php:
|
6077 |
msgid "Invalid payment amount in IPN response. IPN data: %s"
|
6078 |
msgstr ""
|
6079 |
|
6080 |
-
#: includes/gateways/paypal-standard.php:
|
6081 |
msgid "Payment failed due to invalid amount in PayPal IPN."
|
6082 |
msgstr ""
|
6083 |
|
6084 |
-
#: includes/gateways/paypal-standard.php:
|
6085 |
msgid "PayPal Transaction ID: %s"
|
6086 |
msgstr ""
|
6087 |
|
6088 |
-
#: includes/gateways/paypal-standard.php:
|
6089 |
msgid "Partial PayPal refund processed: %s"
|
6090 |
msgstr ""
|
6091 |
|
6092 |
-
#: includes/gateways/paypal-standard.php:
|
6093 |
msgid "PayPal Payment #%1$s Refunded for reason: %2$s"
|
6094 |
msgstr ""
|
6095 |
|
6096 |
-
#: includes/gateways/paypal-standard.php:
|
6097 |
msgid "PayPal Refund Transaction ID: %s"
|
6098 |
msgstr ""
|
6099 |
|
6100 |
-
#: includes/gateways/paypal-standard.php:
|
6101 |
msgid "Payment made via eCheck and will clear automatically in 5-8 days."
|
6102 |
msgstr ""
|
6103 |
|
6104 |
-
#: includes/gateways/paypal-standard.php:
|
6105 |
msgid "Payment requires a confirmed donor address and must be accepted manually through PayPal."
|
6106 |
msgstr ""
|
6107 |
|
6108 |
-
#: includes/gateways/paypal-standard.php:
|
6109 |
msgid "Payment must be accepted manually through PayPal due to international account regulations."
|
6110 |
msgstr ""
|
6111 |
|
6112 |
-
#: includes/gateways/paypal-standard.php:
|
6113 |
msgid "Payment received in non-shop currency and must be accepted manually through PayPal."
|
6114 |
msgstr ""
|
6115 |
|
6116 |
-
#: includes/gateways/paypal-standard.php:
|
6117 |
msgid "Payment is being reviewed by PayPal staff as high-risk or in possible violation of government regulations."
|
6118 |
msgstr ""
|
6119 |
|
6120 |
-
#: includes/gateways/paypal-standard.php:
|
6121 |
msgid "Payment was sent to non-confirmed or non-registered email address."
|
6122 |
msgstr ""
|
6123 |
|
6124 |
-
#: includes/gateways/paypal-standard.php:
|
6125 |
msgid "PayPal account must be upgraded before this payment can be accepted."
|
6126 |
msgstr ""
|
6127 |
|
6128 |
-
#: includes/gateways/paypal-standard.php:
|
6129 |
msgid "PayPal account is not verified. Verify account in order to accept this donation."
|
6130 |
msgstr ""
|
6131 |
|
6132 |
-
#: includes/gateways/paypal-standard.php:
|
6133 |
msgid "Payment is pending for unknown reasons. Contact PayPal support for assistance."
|
6134 |
msgstr ""
|
6135 |
|
@@ -6678,95 +6686,91 @@ msgstr ""
|
|
6678 |
msgid "Loading"
|
6679 |
msgstr ""
|
6680 |
|
6681 |
-
#: includes/scripts.php:
|
6682 |
msgid "Not available for variable priced forms."
|
6683 |
msgstr ""
|
6684 |
|
6685 |
-
#: includes/scripts.php:
|
6686 |
msgid "Are you sure you wish to delete this payment?"
|
6687 |
msgstr ""
|
6688 |
|
6689 |
-
#: includes/scripts.php:
|
6690 |
msgid "Are you sure you wish to delete this note?"
|
6691 |
msgstr ""
|
6692 |
|
6693 |
-
#: includes/scripts.php:
|
6694 |
msgid "Are you sure you wish to revoke this API key?"
|
6695 |
msgstr ""
|
6696 |
|
6697 |
-
#: includes/scripts.php:
|
6698 |
msgid "Are you sure you wish to regenerate this API key?"
|
6699 |
msgstr ""
|
6700 |
|
6701 |
-
#: includes/scripts.php:
|
6702 |
msgid "Are you sure you wish to resend the donation receipt?"
|
6703 |
msgstr ""
|
6704 |
|
6705 |
-
#: includes/scripts.php:
|
6706 |
msgid "Use this image"
|
6707 |
msgstr ""
|
6708 |
|
6709 |
-
#: includes/scripts.php:
|
6710 |
msgid "Choose a form"
|
6711 |
msgstr ""
|
6712 |
|
6713 |
-
#: includes/scripts.php:
|
6714 |
msgid "Choose one or more forms"
|
6715 |
msgstr ""
|
6716 |
|
6717 |
-
#: includes/scripts.php:
|
6718 |
msgid "You must choose a method."
|
6719 |
msgstr ""
|
6720 |
|
6721 |
-
#: includes/scripts.php:
|
6722 |
msgid "Required fields not completed."
|
6723 |
msgstr ""
|
6724 |
|
6725 |
-
#: includes/scripts.php:
|
6726 |
msgid "Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding."
|
6727 |
msgstr ""
|
6728 |
|
6729 |
-
#: includes/scripts.php:
|
6730 |
msgid "Please enter amount in monetary decimal ( %1$s ) format without thousand separator ( %2$s ) ."
|
6731 |
msgstr ""
|
6732 |
|
6733 |
-
#: includes/scripts.php:
|
6734 |
msgid "Do you want to delete this level?"
|
6735 |
msgstr ""
|
6736 |
|
6737 |
-
#: includes/scripts.php:
|
6738 |
msgid "Dismiss this notice."
|
6739 |
msgstr ""
|
6740 |
|
6741 |
-
#: includes/scripts.php:
|
6742 |
msgid "You must choose at least one or more payments to delete."
|
6743 |
msgstr ""
|
6744 |
|
6745 |
-
#: includes/scripts.php:
|
6746 |
msgid "Are you sure you want to permanently delete this donation?"
|
6747 |
msgstr ""
|
6748 |
|
6749 |
-
#: includes/scripts.php:
|
6750 |
msgid "Are you sure you want to permanently delete the selected {payment_count} donations?"
|
6751 |
msgstr ""
|
6752 |
|
6753 |
-
#: includes/scripts.php:
|
6754 |
msgid "You must choose at least one or more recipients to resend the email receipt."
|
6755 |
msgstr ""
|
6756 |
|
6757 |
-
#: includes/scripts.php:
|
6758 |
msgid "Are you sure you want to resend the email receipt to this recipient?"
|
6759 |
msgstr ""
|
6760 |
|
6761 |
-
#: includes/scripts.php:333
|
6762 |
-
msgid "Are you sure you want to resend the emails receipt to {payment_count} recipients?"
|
6763 |
-
msgstr ""
|
6764 |
-
|
6765 |
#: includes/scripts.php:336
|
6766 |
-
msgid "
|
6767 |
msgstr ""
|
6768 |
|
6769 |
-
#: includes/scripts.php:
|
6770 |
msgid "Choose Attachment"
|
6771 |
msgstr ""
|
6772 |
|
@@ -6778,35 +6782,35 @@ msgstr ""
|
|
6778 |
msgid "You must be logged in to view your donation history. Please login using your account or create an account using the same email you used to donate with."
|
6779 |
msgstr ""
|
6780 |
|
6781 |
-
#: includes/shortcodes.php:
|
6782 |
msgid "The shortcode is missing Donation Form ID attribute."
|
6783 |
msgstr ""
|
6784 |
|
6785 |
-
#: includes/shortcodes.php:
|
6786 |
msgid "The form does not have Goals enabled."
|
6787 |
msgstr ""
|
6788 |
|
6789 |
-
#: includes/shortcodes.php:
|
6790 |
msgid "You are missing the payment key to view this donation receipt."
|
6791 |
msgstr ""
|
6792 |
|
6793 |
-
#: includes/shortcodes.php:
|
6794 |
msgid "You must be logged in to view this donation receipt."
|
6795 |
msgstr ""
|
6796 |
|
6797 |
-
#: includes/shortcodes.php:
|
6798 |
msgid "The passwords you entered do not match. Please try again."
|
6799 |
msgstr ""
|
6800 |
|
6801 |
-
#: includes/shortcodes.php:
|
6802 |
msgid "The email you entered is empty."
|
6803 |
msgstr ""
|
6804 |
|
6805 |
-
#: includes/shortcodes.php:
|
6806 |
msgid "The email you entered is not valid. Please use another"
|
6807 |
msgstr ""
|
6808 |
|
6809 |
-
#: includes/shortcodes.php:
|
6810 |
msgid "The email you entered belongs to another user. Please use another."
|
6811 |
msgstr ""
|
6812 |
|
167 |
msgid "The test email has been sent."
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: includes/admin/class-admin-notices.php:132, includes/scripts.php:325
|
171 |
msgid "You cannot set the success and failed pages to the same page"
|
172 |
msgstr ""
|
173 |
|
227 |
msgid "Your settings have been saved."
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: includes/admin/class-admin-settings.php:597, includes/admin/give-metabox-functions.php:645
|
231 |
msgid "Add or Upload File"
|
232 |
msgstr ""
|
233 |
|
279 |
msgid "Payment Gateways"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: includes/admin/class-give-settings.php:197, includes/admin/forms/class-metabox-form-data.php:246, includes/admin/settings/class-settings-display.php:30, includes/admin/shortcodes/shortcode-give-form.php:100
|
283 |
msgid "Display Options"
|
284 |
msgstr ""
|
285 |
|
399 |
msgid "Gateways Settings"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: includes/admin/class-give-settings.php:633, includes/admin/settings/class-settings-gateways.php:181, includes/admin/tools/views/html-admin-page-system-info.php:419
|
403 |
msgid "Test Mode"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: includes/admin/class-give-settings.php:635, includes/admin/settings/class-settings-gateways.php:182
|
407 |
msgid "While in test mode no live donations are processed. To fully use test mode, you must have a sandbox (test) account for the payment gateway you are testing."
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: includes/admin/class-give-settings.php:645, includes/admin/settings/class-settings-gateways.php:192
|
411 |
msgid "Enabled Gateways"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: includes/admin/class-give-settings.php:647, includes/admin/settings/class-settings-gateways.php:193
|
415 |
msgid "Enable your payment gateway. Can be ordered by dragging."
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: includes/admin/class-give-settings.php:657, includes/admin/forms/class-metabox-form-data.php:277, includes/admin/settings/class-settings-gateways.php:198
|
419 |
msgid "Default Gateway"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: includes/admin/class-give-settings.php:659, includes/admin/settings/class-settings-gateways.php:199
|
423 |
msgid "The gateway that will be selected by default."
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: includes/admin/class-give-settings.php:669, includes/admin/settings/class-settings-gateways.php:246, includes/gateways/functions.php:27
|
427 |
msgid "PayPal Standard"
|
428 |
msgstr ""
|
429 |
|
463 |
msgid "Disable PayPal IPN Verification"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: includes/admin/class-give-settings.php:729, includes/admin/settings/class-settings-gateways.php:91
|
467 |
msgid "If donations are not getting marked as complete, use a slightly less secure method of verifying donations."
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: includes/admin/class-give-settings.php:739, includes/admin/forms/class-metabox-form-data.php:1081, includes/admin/settings/class-settings-gateways.php:247, includes/gateways/offline-donations.php:303, includes/gateways/offline-donations.php:361
|
471 |
msgid "Offline Donations"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: includes/admin/class-give-settings.php:751, includes/admin/settings/class-settings-gateways.php:122
|
475 |
msgid "Collect Billing Details"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: includes/admin/class-give-settings.php:753, includes/admin/settings/class-settings-gateways.php:123
|
479 |
msgid "Enable to request billing details for offline donations. Will appear above offline donation instructions. Can be enabled/disabled per form."
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: includes/admin/class-give-settings.php:763, includes/admin/settings/class-settings-gateways.php:133, includes/gateways/offline-donations.php:187, includes/gateways/offline-donations.php:202
|
483 |
msgid "Offline Donation Instructions"
|
484 |
msgstr ""
|
485 |
|
486 |
+
#: includes/admin/class-give-settings.php:765, includes/admin/settings/class-settings-gateways.php:134
|
487 |
msgid "The following content will appear for all forms when the user selects the offline donation payment option. Note: You may customize the content per form as needed."
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/admin/class-give-settings.php:783, includes/admin/settings/class-settings-gateways.php:143
|
491 |
msgid "Offline Donation Email Instructions Subject"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: includes/admin/class-give-settings.php:785, includes/admin/class-give-settings.php:1127, includes/admin/settings/class-settings-email.php:106, includes/admin/settings/class-settings-gateways.php:144, includes/gateways/offline-donations.php:341
|
495 |
msgid "Enter the subject line for the donation receipt email."
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: includes/admin/class-give-settings.php:789, includes/admin/settings/class-settings-gateways.php:146
|
499 |
msgid "{donation} - Offline Donation Instructions"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: includes/admin/class-give-settings.php:797, includes/admin/settings/class-settings-gateways.php:150
|
503 |
msgid "Offline Donation Email Instructions"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: includes/admin/class-give-settings.php:799, includes/admin/settings/class-settings-gateways.php:151, includes/gateways/offline-donations.php:349
|
507 |
msgid "Enter the instructions you want emailed to the donor after they have submitted the donation form. Most likely this would include important information like mailing address and who to make the check out to."
|
508 |
msgstr ""
|
509 |
|
619 |
msgid "Choose a template. Click \"Save Changes\" then \"Preview Donation Receipt\" to see the new template."
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: includes/admin/class-give-settings.php:1073, includes/admin/settings/class-settings-email.php:64, includes/scripts.php:312
|
623 |
msgid "Logo"
|
624 |
msgstr ""
|
625 |
|
1091 |
msgid "User ID:"
|
1092 |
msgstr ""
|
1093 |
|
1094 |
+
#: includes/admin/customers/customers.php:268, includes/admin/forms/class-metabox-form-data.php:299, includes/class-give-html-elements.php:396, includes/forms/widget.php:200
|
1095 |
msgid "None"
|
1096 |
msgstr ""
|
1097 |
|
1173 |
msgid "Recent Donations"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
+
#: includes/admin/customers/customers.php:501, includes/admin/forms/class-metabox-form-data.php:196, includes/admin/reporting/class-export.php:72, includes/admin/reporting/export/class-batch-export-forms.php:44, includes/admin/reporting/export/class-batch-export-payments.php:42, templates/history-donations.php:32
|
1177 |
msgid "ID"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: includes/admin/customers/customers.php:502, includes/admin/forms/class-metabox-form-data.php:201, includes/admin/forms/class-metabox-form-data.php:371, includes/admin/forms/dashboard-columns.php:38, includes/admin/payments/class-payments-table.php:276, includes/admin/reporting/export/class-batch-export-payments.php:55, templates/history-donations.php:34
|
1181 |
msgid "Amount"
|
1182 |
msgstr ""
|
1183 |
|
1280 |
msgid "Donation Form Options"
|
1281 |
msgstr ""
|
1282 |
|
1283 |
+
#: includes/admin/forms/class-metabox-form-data.php:109, includes/admin/forms/class-metabox-form-data.php:230
|
1284 |
msgid "Donation Options"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
+
#: includes/admin/forms/class-metabox-form-data.php:114
|
1288 |
msgid "Donation Option"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
+
#: includes/admin/forms/class-metabox-form-data.php:115
|
1292 |
msgid "Do you want this form to have one set donation price or multiple levels (for example, $10, $20, $50)?"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
+
#: includes/admin/forms/class-metabox-form-data.php:120, includes/admin/forms/class-metabox-form-data.php:125
|
1296 |
msgid "Set Donation"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
+
#: includes/admin/forms/class-metabox-form-data.php:121
|
1300 |
msgid "Multi-level Donation"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
+
#: includes/admin/forms/class-metabox-form-data.php:126
|
1304 |
msgid "This is the set donation amount for this form. If you have a \"Custom Amount Minimum\" set, make sure it is less than this amount."
|
1305 |
msgstr ""
|
1306 |
|
1307 |
+
#: includes/admin/forms/class-metabox-form-data.php:138
|
1308 |
msgid "Display Style"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: includes/admin/forms/class-metabox-form-data.php:139
|
1312 |
msgid "Set how the donations levels will display on the form."
|
1313 |
msgstr ""
|
1314 |
|
1315 |
+
#: includes/admin/forms/class-metabox-form-data.php:144
|
1316 |
msgid "Buttons"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: includes/admin/forms/class-metabox-form-data.php:145
|
1320 |
msgid "Radios"
|
1321 |
msgstr ""
|
1322 |
|
1323 |
+
#: includes/admin/forms/class-metabox-form-data.php:146
|
1324 |
msgid "Dropdown"
|
1325 |
msgstr ""
|
1326 |
|
1327 |
+
#: includes/admin/forms/class-metabox-form-data.php:151, includes/gateways/paypal-standard.php:785, includes/gateways/paypal-standard.php:796, includes/payments/functions.php:1832
|
1328 |
msgid "Custom Amount"
|
1329 |
msgstr ""
|
1330 |
|
1331 |
+
#: includes/admin/forms/class-metabox-form-data.php:152
|
1332 |
msgid "Do you want the user to be able to input their own donation amount?"
|
1333 |
msgstr ""
|
1334 |
|
1335 |
+
#: includes/admin/forms/class-metabox-form-data.php:157, includes/admin/forms/class-metabox-form-data.php:289, includes/admin/forms/class-metabox-form-data.php:314, includes/admin/forms/class-metabox-form-data.php:347, includes/admin/forms/class-metabox-form-data.php:390, includes/admin/forms/class-metabox-form-data.php:428, includes/admin/settings/class-settings-advanced.php:75, includes/admin/settings/class-settings-display.php:62, includes/admin/settings/class-settings-display.php:74, includes/admin/settings/class-settings-display.php:86, includes/admin/settings/class-settings-display.php:117, includes/admin/settings/class-settings-display.php:128, includes/admin/settings/class-settings-display.php:139, includes/admin/settings/class-settings-display.php:150, includes/admin/settings/class-settings-display.php:169, includes/admin/settings/class-settings-display.php:200, includes/admin/settings/class-settings-display.php:211, includes/admin/settings/class-settings-display.php:242, includes/admin/settings/class-settings-email.php:149, includes/admin/settings/class-settings-gateways.php:85, includes/admin/settings/class-settings-gateways.php:96, includes/admin/settings/class-settings-gateways.php:128, includes/admin/settings/class-settings-gateways.php:187, includes/admin/settings/class-settings-general.php:74, includes/admin/tools/views/html-admin-page-system-info.php:421, includes/admin/tools/views/html-admin-page-system-info.php:494, includes/admin/tools/views/html-admin-page-system-info.php:499, includes/admin/tools/views/html-admin-page-system-info.php:514, includes/admin/tools/views/html-admin-page-system-info.php:519, includes/admin/tools/views/html-admin-page-system-info.php:540, includes/admin/tools/views/html-admin-page-system-info.php:545, includes/gateways/offline-donations.php:323
|
1336 |
msgid "Enabled"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
+
#: includes/admin/forms/class-metabox-form-data.php:158, includes/admin/forms/class-metabox-form-data.php:290, includes/admin/forms/class-metabox-form-data.php:315, includes/admin/forms/class-metabox-form-data.php:348, includes/admin/forms/class-metabox-form-data.php:391, includes/admin/forms/class-metabox-form-data.php:429, includes/admin/settings/class-settings-advanced.php:76, includes/admin/settings/class-settings-display.php:63, includes/admin/settings/class-settings-display.php:75, includes/admin/settings/class-settings-display.php:87, includes/admin/settings/class-settings-display.php:118, includes/admin/settings/class-settings-display.php:129, includes/admin/settings/class-settings-display.php:140, includes/admin/settings/class-settings-display.php:151, includes/admin/settings/class-settings-display.php:170, includes/admin/settings/class-settings-display.php:201, includes/admin/settings/class-settings-display.php:212, includes/admin/settings/class-settings-display.php:243, includes/admin/settings/class-settings-email.php:150, includes/admin/settings/class-settings-gateways.php:86, includes/admin/settings/class-settings-gateways.php:97, includes/admin/settings/class-settings-gateways.php:129, includes/admin/settings/class-settings-gateways.php:188, includes/admin/settings/class-settings-general.php:75, includes/admin/tools/views/html-admin-page-system-info.php:421, includes/admin/tools/views/html-admin-page-system-info.php:494, includes/admin/tools/views/html-admin-page-system-info.php:499, includes/admin/tools/views/html-admin-page-system-info.php:514, includes/admin/tools/views/html-admin-page-system-info.php:519, includes/admin/tools/views/html-admin-page-system-info.php:540, includes/admin/tools/views/html-admin-page-system-info.php:545, includes/gateways/offline-donations.php:324
|
1340 |
msgid "Disabled"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: includes/admin/forms/class-metabox-form-data.php:162
|
1344 |
msgid "Minimum Amount"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
+
#: includes/admin/forms/class-metabox-form-data.php:163
|
1348 |
msgid "Enter the minimum custom donation amount."
|
1349 |
msgstr ""
|
1350 |
|
1351 |
+
#: includes/admin/forms/class-metabox-form-data.php:174
|
1352 |
msgid "Custom Amount Text"
|
1353 |
msgstr ""
|
1354 |
|
1355 |
+
#: includes/admin/forms/class-metabox-form-data.php:175
|
1356 |
msgid "This text appears as a label below the custom amount field for set donation forms. For multi-level forms the text will appear as it's own level (ie button, radio, or select option)."
|
1357 |
msgstr ""
|
1358 |
|
1359 |
+
#: includes/admin/forms/class-metabox-form-data.php:180, includes/forms/template.php:491
|
1360 |
msgid "Give a Custom Amount"
|
1361 |
msgstr ""
|
1362 |
|
1363 |
+
#: includes/admin/forms/class-metabox-form-data.php:188
|
1364 |
msgid "Add Level"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
+
#: includes/admin/forms/class-metabox-form-data.php:189, includes/admin/forms/class-metabox-form-data.php:215
|
1368 |
msgid "Donation Level"
|
1369 |
msgstr ""
|
1370 |
|
1371 |
+
#: includes/admin/forms/class-metabox-form-data.php:211
|
1372 |
msgid "Text"
|
1373 |
msgstr ""
|
1374 |
|
1375 |
+
#: includes/admin/forms/class-metabox-form-data.php:220, includes/admin/tools/views/html-admin-page-system-info.php:112
|
1376 |
msgid "Default"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
+
#: includes/admin/forms/class-metabox-form-data.php:242, includes/admin/forms/class-metabox-form-data.php:323
|
1380 |
msgid "Form Display"
|
1381 |
msgstr ""
|
1382 |
|
1383 |
+
#: includes/admin/forms/class-metabox-form-data.php:247
|
1384 |
msgid "How would you like to display donation information for this form?"
|
1385 |
msgstr ""
|
1386 |
|
1387 |
+
#: includes/admin/forms/class-metabox-form-data.php:251, includes/admin/shortcodes/shortcode-give-form.php:103, includes/forms/widget.php:165
|
1388 |
msgid "All Fields"
|
1389 |
msgstr ""
|
1390 |
|
1391 |
+
#: includes/admin/forms/class-metabox-form-data.php:252, includes/admin/shortcodes/shortcode-give-form.php:104, includes/forms/widget.php:167
|
1392 |
msgid "Modal"
|
1393 |
msgstr ""
|
1394 |
|
1395 |
+
#: includes/admin/forms/class-metabox-form-data.php:253, includes/admin/shortcodes/shortcode-give-form.php:105, includes/forms/widget.php:166
|
1396 |
msgid "Reveal"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
+
#: includes/admin/forms/class-metabox-form-data.php:254, includes/admin/shortcodes/shortcode-give-form.php:106, includes/forms/widget.php:168
|
1400 |
msgid "Button"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
+
#: includes/admin/forms/class-metabox-form-data.php:260
|
1404 |
msgid "Continue Button"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
+
#: includes/admin/forms/class-metabox-form-data.php:261, includes/admin/shortcodes/shortcode-give-form.php:114, includes/forms/widget.php:178
|
1408 |
msgid "The button label for displaying the additional payment fields."
|
1409 |
msgstr ""
|
1410 |
|
1411 |
+
#: includes/admin/forms/class-metabox-form-data.php:264, includes/admin/forms/class-metabox-form-data.php:273, includes/forms/template.php:610, includes/forms/template.php:1632
|
1412 |
msgid "Donate Now"
|
1413 |
msgstr ""
|
1414 |
|
1415 |
+
#: includes/admin/forms/class-metabox-form-data.php:269
|
1416 |
msgid "Submit Button"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
+
#: includes/admin/forms/class-metabox-form-data.php:270
|
1420 |
msgid "The button label for completing a donation."
|
1421 |
msgstr ""
|
1422 |
|
1423 |
+
#: includes/admin/forms/class-metabox-form-data.php:278
|
1424 |
msgid "By default, the gateway for this form will inherit the global default gateway (set under Give > Settings > Payment Gateways). This option allows you to customize the default gateway for this form only."
|
1425 |
msgstr ""
|
1426 |
|
1427 |
+
#: includes/admin/forms/class-metabox-form-data.php:283
|
1428 |
msgid "Guest Donations"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
+
#: includes/admin/forms/class-metabox-form-data.php:284
|
1432 |
msgid "Do you want to allow non-logged-in users to make donations?"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
+
#: includes/admin/forms/class-metabox-form-data.php:294, includes/admin/forms/class-metabox-form-data.php:300
|
1436 |
msgid "Registration"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
+
#: includes/admin/forms/class-metabox-form-data.php:295
|
1440 |
msgid "Display the registration and login forms in the payment section for non-logged-in users."
|
1441 |
msgstr ""
|
1442 |
|
1443 |
+
#: includes/admin/forms/class-metabox-form-data.php:301, includes/admin/shortcodes/shortcode-give-login.php:24, includes/admin/shortcodes/shortcode-give-login.php:25, includes/forms/template.php:1095, includes/forms/template.php:1306
|
1444 |
msgid "Login"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
+
#: includes/admin/forms/class-metabox-form-data.php:302
|
1448 |
msgid "Registration + Login"
|
1449 |
msgstr ""
|
1450 |
|
1451 |
+
#: includes/admin/forms/class-metabox-form-data.php:307, includes/admin/settings/class-settings-display.php:67
|
1452 |
msgid "Floating Labels"
|
1453 |
msgstr ""
|
1454 |
|
1455 |
+
#: includes/admin/forms/class-metabox-form-data.php:309
|
1456 |
msgid "Select the <a href=\"%s\" target=\"_blank\">floating labels</a> setting for this Give form. Be aware that if you have the \"Disable CSS\" option enabled, you will need to style the floating labels yourself."
|
1457 |
msgstr ""
|
1458 |
|
1459 |
+
#: includes/admin/forms/class-metabox-form-data.php:313, includes/admin/forms/class-metabox-form-data.php:479, includes/forms/widget.php:184, includes/gateways/offline-donations.php:309
|
1460 |
msgid "Global Option"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
+
#: includes/admin/forms/class-metabox-form-data.php:336, includes/admin/forms/class-metabox-form-data.php:341, includes/admin/forms/class-metabox-form-data.php:405
|
1464 |
msgid "Donation Goal"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
+
#: includes/admin/forms/class-metabox-form-data.php:342
|
1468 |
msgid "Do you want to set a donation goal for this form?"
|
1469 |
msgstr ""
|
1470 |
|
1471 |
+
#: includes/admin/forms/class-metabox-form-data.php:352
|
1472 |
msgid "Goal Amount"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
+
#: includes/admin/forms/class-metabox-form-data.php:353
|
1476 |
msgid "This is the monetary goal amount you want to reach for this form."
|
1477 |
msgstr ""
|
1478 |
|
1479 |
+
#: includes/admin/forms/class-metabox-form-data.php:365
|
1480 |
msgid "Goal Format"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
+
#: includes/admin/forms/class-metabox-form-data.php:366
|
1484 |
msgid "Do you want to display the total amount raised based on your monetary goal or a percentage? For instance, \"$500 of $1,000 raised\" or \"50% funded\"."
|
1485 |
msgstr ""
|
1486 |
|
1487 |
+
#: includes/admin/forms/class-metabox-form-data.php:372
|
1488 |
msgid "Percentage"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
+
#: includes/admin/forms/class-metabox-form-data.php:376
|
1492 |
msgid "Progress Bar Color"
|
1493 |
msgstr ""
|
1494 |
|
1495 |
+
#: includes/admin/forms/class-metabox-form-data.php:377
|
1496 |
msgid "Customize the color of the goal progress bar."
|
1497 |
msgstr ""
|
1498 |
|
1499 |
+
#: includes/admin/forms/class-metabox-form-data.php:384
|
1500 |
msgid "Close Form"
|
1501 |
msgstr ""
|
1502 |
|
1503 |
+
#: includes/admin/forms/class-metabox-form-data.php:385
|
1504 |
msgid "Do you want to close the donation forms and stop accepting donations once this goal has been met?"
|
1505 |
msgstr ""
|
1506 |
|
1507 |
+
#: includes/admin/forms/class-metabox-form-data.php:395
|
1508 |
msgid "Goal Achieved Message"
|
1509 |
msgstr ""
|
1510 |
|
1511 |
+
#: includes/admin/forms/class-metabox-form-data.php:396
|
1512 |
msgid "Do you want to display a custom message when the goal is closed?"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
+
#: includes/admin/forms/class-metabox-form-data.php:399
|
1516 |
msgid "Thank you to all our donors, we have met our fundraising goal."
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: includes/admin/forms/class-metabox-form-data.php:417, includes/admin/forms/class-metabox-form-data.php:457
|
1520 |
msgid "Form Content"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
+
#: includes/admin/forms/class-metabox-form-data.php:423, includes/admin/shortcodes/shortcode-give-form.php:88
|
1524 |
msgid "Display Content"
|
1525 |
msgstr ""
|
1526 |
|
1527 |
+
#: includes/admin/forms/class-metabox-form-data.php:424
|
1528 |
msgid "Do you want to add custom content to this form?"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
+
#: includes/admin/forms/class-metabox-form-data.php:436
|
1532 |
msgid "Content Placement"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
+
#: includes/admin/forms/class-metabox-form-data.php:437
|
1536 |
msgid "This option controls where the content appears within the donation form."
|
1537 |
msgstr ""
|
1538 |
|
1539 |
+
#: includes/admin/forms/class-metabox-form-data.php:441
|
1540 |
msgid "Above fields"
|
1541 |
msgstr ""
|
1542 |
|
1543 |
+
#: includes/admin/forms/class-metabox-form-data.php:442
|
1544 |
msgid "Below fields"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
+
#: includes/admin/forms/class-metabox-form-data.php:448
|
1548 |
msgid "Content"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: includes/admin/forms/class-metabox-form-data.php:449
|
1552 |
msgid "This content will display on the single give form page."
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: includes/admin/forms/class-metabox-form-data.php:469
|
1556 |
msgid "Terms & Conditions"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
+
#: includes/admin/forms/class-metabox-form-data.php:474, includes/admin/forms/class-metabox-form-data.php:506, includes/admin/settings/class-settings-display.php:236, includes/admin/settings/class-settings-display.php:305
|
1560 |
msgid "Terms and Conditions"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
+
#: includes/admin/forms/class-metabox-form-data.php:475
|
1564 |
msgid "Do you want to require the donor to accept terms prior to being able to complete their donation?"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
+
#: includes/admin/forms/class-metabox-form-data.php:480, includes/gateways/offline-donations.php:310
|
1568 |
msgid "Customize"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
+
#: includes/admin/forms/class-metabox-form-data.php:481, includes/gateways/offline-donations.php:311
|
1572 |
msgid "Disable"
|
1573 |
msgstr ""
|
1574 |
|
1575 |
+
#: includes/admin/forms/class-metabox-form-data.php:488
|
1576 |
msgid "Agreement Label"
|
1577 |
msgstr ""
|
1578 |
|
1579 |
+
#: includes/admin/forms/class-metabox-form-data.php:489
|
1580 |
msgid "The label shown next to the agree to terms check box. Add your own to customize or leave blank to use the default text placeholder."
|
1581 |
msgstr ""
|
1582 |
|
1583 |
+
#: includes/admin/forms/class-metabox-form-data.php:493, includes/admin/settings/class-settings-display.php:251, includes/forms/template.php:1486, includes/forms/template.php:1491
|
1584 |
msgid "Agree to Terms?"
|
1585 |
msgstr ""
|
1586 |
|
1587 |
+
#: includes/admin/forms/class-metabox-form-data.php:498, includes/admin/settings/class-settings-display.php:256
|
1588 |
msgid "Agreement Text"
|
1589 |
msgstr ""
|
1590 |
|
1591 |
+
#: includes/admin/forms/class-metabox-form-data.php:499
|
1592 |
msgid "This is the actual text which the user will have to agree to in order to make a donation."
|
1593 |
msgstr ""
|
1594 |
|
1724 |
msgid "by"
|
1725 |
msgstr ""
|
1726 |
|
1727 |
+
#: includes/admin/payments/class-payments-table.php:350, includes/admin/reporting/class-sales-logs-list-table.php:74, includes/admin/reporting/class-sales-logs-list-table.php:310, includes/admin/shortcodes/abstract-shortcode-generator.php:296, includes/class-give-html-elements.php:130, includes/forms/widget.php:155
|
1728 |
msgid "Untitled (#%s)"
|
1729 |
msgstr ""
|
1730 |
|
2048 |
msgid "Donation Forms Report"
|
2049 |
msgstr ""
|
2050 |
|
2051 |
+
#: includes/admin/reporting/class-gateway-error-logs-list-table.php:75, includes/gateways/manual.php:62, includes/gateways/paypal-standard.php:58
|
2052 |
msgid "Payment Error"
|
2053 |
msgstr ""
|
2054 |
|
2104 |
msgid "Donation Methods"
|
2105 |
msgstr ""
|
2106 |
|
2107 |
+
#: includes/admin/reporting/class-settings-gateways.php:98, includes/admin/settings/class-settings-gateways.php:245
|
2108 |
msgid "Gateways"
|
2109 |
msgstr ""
|
2110 |
|
2788 |
msgid "Enter the name of the PayPal page style to use, or leave blank to use the default."
|
2789 |
msgstr ""
|
2790 |
|
2791 |
+
#: includes/admin/settings/class-settings-gateways.php:79, includes/forms/template.php:887
|
2792 |
+
msgid "Billing Details"
|
2793 |
+
msgstr ""
|
2794 |
+
|
2795 |
+
#: includes/admin/settings/class-settings-gateways.php:80
|
2796 |
+
msgid "This option will enable the billing details section for PayPal Standard which requires the donor's address to complete the donation. These fields are not required by PayPal to process the transaction, but you may have a need to collect the data."
|
2797 |
msgstr ""
|
2798 |
|
2799 |
#: includes/admin/settings/class-settings-gateways.php:90
|
2800 |
+
msgid "PayPal IPN Verification"
|
2801 |
+
msgstr ""
|
2802 |
+
|
2803 |
+
#: includes/admin/settings/class-settings-gateways.php:101
|
2804 |
msgid "PayPal Standard Gateway Settings Docs Link"
|
2805 |
msgstr ""
|
2806 |
|
2807 |
+
#: includes/admin/settings/class-settings-gateways.php:104
|
2808 |
msgid "PayPal Standard Gateway Settings"
|
2809 |
msgstr ""
|
2810 |
|
2811 |
+
#: includes/admin/settings/class-settings-gateways.php:151, includes/gateways/offline-donations.php:349
|
2812 |
msgid "Available template tags:"
|
2813 |
msgstr ""
|
2814 |
|
2815 |
+
#: includes/admin/settings/class-settings-gateways.php:160
|
2816 |
msgid "Offline Donations Settings Docs Link"
|
2817 |
msgstr ""
|
2818 |
|
2819 |
+
#: includes/admin/settings/class-settings-gateways.php:163
|
2820 |
msgid "Offline Gateway Settings"
|
2821 |
msgstr ""
|
2822 |
|
2823 |
+
#: includes/admin/settings/class-settings-gateways.php:204
|
2824 |
msgid "Gateways Docs Link"
|
2825 |
msgstr ""
|
2826 |
|
2827 |
+
#: includes/admin/settings/class-settings-gateways.php:207
|
2828 |
msgid "Gateway Settings"
|
2829 |
msgstr ""
|
2830 |
|
2856 |
msgid "General Options"
|
2857 |
msgstr ""
|
2858 |
|
2859 |
+
#: includes/admin/shortcodes/abstract-shortcode-generator.php:91
|
2860 |
msgid "Close"
|
2861 |
msgstr ""
|
2862 |
|
2863 |
+
#: includes/admin/shortcodes/abstract-shortcode-generator.php:92, includes/admin/shortcodes/abstract-shortcode-generator.php:97
|
2864 |
msgid "Insert Shortcode"
|
2865 |
msgstr ""
|
2866 |
|
2867 |
+
#: includes/admin/shortcodes/abstract-shortcode-generator.php:256, includes/forms/widget.php:153
|
2868 |
msgid "- Select -"
|
2869 |
msgstr ""
|
2870 |
|
2871 |
+
#: includes/admin/shortcodes/abstract-shortcode-generator.php:389
|
2872 |
msgid "Some of the shortcode options are required."
|
2873 |
msgstr ""
|
2874 |
|
2875 |
+
#: includes/admin/shortcodes/abstract-shortcode-generator.php:399
|
2876 |
msgid "The \"%s\" option is required."
|
2877 |
msgstr ""
|
2878 |
|
2909 |
msgstr ""
|
2910 |
|
2911 |
#: includes/admin/shortcodes/shortcode-give-form.php:67
|
2912 |
+
msgid "Show Title"
|
2913 |
msgstr ""
|
2914 |
|
2915 |
#: includes/admin/shortcodes/shortcode-give-form.php:68
|
2921 |
msgstr ""
|
2922 |
|
2923 |
#: includes/admin/shortcodes/shortcode-give-form.php:77
|
2924 |
+
msgid "Show Goal"
|
2925 |
msgstr ""
|
2926 |
|
2927 |
#: includes/admin/shortcodes/shortcode-give-form.php:78
|
2928 |
msgid "Do you want to display the donation goal?"
|
2929 |
msgstr ""
|
2930 |
|
|
|
|
|
|
|
|
|
2931 |
#: includes/admin/shortcodes/shortcode-give-form.php:89
|
2932 |
msgid "Do you want to display the form content?"
|
2933 |
msgstr ""
|
2944 |
msgid "Display content BELOW the fields"
|
2945 |
msgstr ""
|
2946 |
|
2947 |
+
#: includes/admin/shortcodes/shortcode-give-form.php:101
|
2948 |
+
msgid "How would you like to display donation information?"
|
2949 |
msgstr ""
|
2950 |
|
2951 |
+
#: includes/admin/shortcodes/shortcode-give-form.php:113
|
2952 |
+
msgid "Button Text"
|
2953 |
msgstr ""
|
2954 |
|
2955 |
#: includes/admin/shortcodes/shortcode-give-goal.php:26, includes/admin/shortcodes/shortcode-give-goal.php:27
|
3657 |
msgid "Whether the current theme is a child theme."
|
3658 |
msgstr ""
|
3659 |
|
3660 |
+
#: includes/admin/tools/views/html-admin-page-system-info.php:752, includes/class-give-cli-commands.php:130, includes/forms/widget.php:185
|
3661 |
msgid "Yes"
|
3662 |
msgstr ""
|
3663 |
|
3664 |
+
#: includes/admin/tools/views/html-admin-page-system-info.php:752, includes/class-give-cli-commands.php:130, includes/forms/widget.php:186
|
3665 |
msgid "No"
|
3666 |
msgstr ""
|
3667 |
|
3709 |
msgid "Give needs to upgrade the form database, click %1$shere%2$s to start the upgrade."
|
3710 |
msgstr ""
|
3711 |
|
3712 |
+
#: includes/admin/upgrades/upgrade-functions.php:141
|
3713 |
+
msgid "Please make sure to create a database backup before initiating the upgrade."
|
3714 |
+
msgstr ""
|
3715 |
+
|
3716 |
#: includes/admin/upgrades/upgrade-functions.php:167, includes/admin/upgrades/upgrade-functions.php:279, includes/admin/upgrades/upgrade-functions.php:316, includes/admin/upgrades/upgrade-functions.php:687
|
3717 |
msgid "You do not have permission to do Give upgrades."
|
3718 |
msgstr ""
|
4177 |
msgid "Give Donors Gravatars"
|
4178 |
msgstr ""
|
4179 |
|
4180 |
+
#: includes/class-give-gravatars.php:539, includes/forms/widget.php:144
|
4181 |
msgid "Title:"
|
4182 |
msgstr ""
|
4183 |
|
5757 |
msgid "MM / YY"
|
5758 |
msgstr ""
|
5759 |
|
|
|
|
|
|
|
|
|
5760 |
#: includes/forms/template.php:906
|
5761 |
msgid "The primary billing address for your credit card."
|
5762 |
msgstr ""
|
5893 |
msgid "Display a Give Donation Form in your theme's widget powered sidebar."
|
5894 |
msgstr ""
|
5895 |
|
5896 |
+
#: includes/forms/widget.php:146
|
5897 |
msgid "Leave blank to hide the widget title."
|
5898 |
msgstr ""
|
5899 |
|
5900 |
+
#: includes/forms/widget.php:151
|
5901 |
msgid "Give Form:"
|
5902 |
msgstr ""
|
5903 |
|
5904 |
+
#: includes/forms/widget.php:159
|
5905 |
msgid "Select a Give Form to embed in this widget."
|
5906 |
msgstr ""
|
5907 |
|
5908 |
+
#: includes/forms/widget.php:164
|
5909 |
msgid "Display Style:"
|
5910 |
msgstr ""
|
5911 |
|
5912 |
+
#: includes/forms/widget.php:170
|
5913 |
msgid "Select a Give Form style."
|
5914 |
msgstr ""
|
5915 |
|
5916 |
+
#: includes/forms/widget.php:176
|
5917 |
+
msgid "Button Text:"
|
5918 |
msgstr ""
|
5919 |
|
5920 |
#: includes/forms/widget.php:183
|
5921 |
+
msgid "Floating Labels (optional):"
|
5922 |
msgstr ""
|
5923 |
|
5924 |
#: includes/forms/widget.php:191
|
5925 |
+
msgid "Override the <a href=\"%s\" target=\"_blank\">floating labels</a> setting for this Give form."
|
5926 |
+
msgstr ""
|
5927 |
+
|
5928 |
+
#: includes/forms/widget.php:199
|
5929 |
msgid "Display Content (optional):"
|
5930 |
msgstr ""
|
5931 |
|
5932 |
+
#: includes/forms/widget.php:201
|
5933 |
msgid "Above"
|
5934 |
msgstr ""
|
5935 |
|
5936 |
+
#: includes/forms/widget.php:202
|
5937 |
msgid "Below"
|
5938 |
msgstr ""
|
5939 |
|
5940 |
+
#: includes/forms/widget.php:203
|
5941 |
msgid "Override the display content setting for this Give form."
|
5942 |
msgstr ""
|
5943 |
|
6053 |
msgid "Please enter offline donation instructions in <a href=\"%s\">this form's settings</a>."
|
6054 |
msgstr ""
|
6055 |
|
6056 |
+
#: includes/gateways/paypal-standard.php:61
|
6057 |
msgid "Payment creation failed before sending donor to PayPal. Payment data: %s"
|
6058 |
msgstr ""
|
6059 |
|
6060 |
+
#: includes/gateways/paypal-standard.php:183, includes/gateways/paypal-standard.php:196, includes/gateways/paypal-standard.php:291, includes/gateways/paypal-standard.php:309, includes/gateways/paypal-standard.php:342
|
6061 |
msgid "IPN Error"
|
6062 |
msgstr ""
|
6063 |
|
6064 |
+
#: includes/gateways/paypal-standard.php:186, includes/gateways/paypal-standard.php:199
|
6065 |
msgid "Invalid IPN verification response. IPN data: %s"
|
6066 |
msgstr ""
|
6067 |
|
6068 |
+
#: includes/gateways/paypal-standard.php:294
|
6069 |
msgid "Invalid business email in IPN response. IPN data: %s"
|
6070 |
msgstr ""
|
6071 |
|
6072 |
+
#: includes/gateways/paypal-standard.php:300
|
6073 |
msgid "Payment failed due to invalid PayPal business email."
|
6074 |
msgstr ""
|
6075 |
|
6076 |
+
#: includes/gateways/paypal-standard.php:312
|
6077 |
msgid "Invalid currency in IPN response. IPN data: %s"
|
6078 |
msgstr ""
|
6079 |
|
6080 |
+
#: includes/gateways/paypal-standard.php:318
|
6081 |
msgid "Payment failed due to invalid currency in PayPal IPN."
|
6082 |
msgstr ""
|
6083 |
|
6084 |
+
#: includes/gateways/paypal-standard.php:345
|
6085 |
msgid "Invalid payment amount in IPN response. IPN data: %s"
|
6086 |
msgstr ""
|
6087 |
|
6088 |
+
#: includes/gateways/paypal-standard.php:351
|
6089 |
msgid "Payment failed due to invalid amount in PayPal IPN."
|
6090 |
msgstr ""
|
6091 |
|
6092 |
+
#: includes/gateways/paypal-standard.php:363, tests/framework/helpers/class-helper-payment.php:77, tests/framework/helpers/class-helper-payment.php:140, tests/framework/helpers/class-helper-payment.php:235, tests/unit-tests/tests-payment-class.php:31
|
6093 |
msgid "PayPal Transaction ID: %s"
|
6094 |
msgstr ""
|
6095 |
|
6096 |
+
#: includes/gateways/paypal-standard.php:416
|
6097 |
msgid "Partial PayPal refund processed: %s"
|
6098 |
msgstr ""
|
6099 |
|
6100 |
+
#: includes/gateways/paypal-standard.php:429
|
6101 |
msgid "PayPal Payment #%1$s Refunded for reason: %2$s"
|
6102 |
msgstr ""
|
6103 |
|
6104 |
+
#: includes/gateways/paypal-standard.php:438
|
6105 |
msgid "PayPal Refund Transaction ID: %s"
|
6106 |
msgstr ""
|
6107 |
|
6108 |
+
#: includes/gateways/paypal-standard.php:593
|
6109 |
msgid "Payment made via eCheck and will clear automatically in 5-8 days."
|
6110 |
msgstr ""
|
6111 |
|
6112 |
+
#: includes/gateways/paypal-standard.php:599
|
6113 |
msgid "Payment requires a confirmed donor address and must be accepted manually through PayPal."
|
6114 |
msgstr ""
|
6115 |
|
6116 |
+
#: includes/gateways/paypal-standard.php:605
|
6117 |
msgid "Payment must be accepted manually through PayPal due to international account regulations."
|
6118 |
msgstr ""
|
6119 |
|
6120 |
+
#: includes/gateways/paypal-standard.php:611
|
6121 |
msgid "Payment received in non-shop currency and must be accepted manually through PayPal."
|
6122 |
msgstr ""
|
6123 |
|
6124 |
+
#: includes/gateways/paypal-standard.php:618
|
6125 |
msgid "Payment is being reviewed by PayPal staff as high-risk or in possible violation of government regulations."
|
6126 |
msgstr ""
|
6127 |
|
6128 |
+
#: includes/gateways/paypal-standard.php:624
|
6129 |
msgid "Payment was sent to non-confirmed or non-registered email address."
|
6130 |
msgstr ""
|
6131 |
|
6132 |
+
#: includes/gateways/paypal-standard.php:630
|
6133 |
msgid "PayPal account must be upgraded before this payment can be accepted."
|
6134 |
msgstr ""
|
6135 |
|
6136 |
+
#: includes/gateways/paypal-standard.php:636
|
6137 |
msgid "PayPal account is not verified. Verify account in order to accept this donation."
|
6138 |
msgstr ""
|
6139 |
|
6140 |
+
#: includes/gateways/paypal-standard.php:642
|
6141 |
msgid "Payment is pending for unknown reasons. Contact PayPal support for assistance."
|
6142 |
msgstr ""
|
6143 |
|
6686 |
msgid "Loading"
|
6687 |
msgstr ""
|
6688 |
|
6689 |
+
#: includes/scripts.php:306
|
6690 |
msgid "Not available for variable priced forms."
|
6691 |
msgstr ""
|
6692 |
|
6693 |
+
#: includes/scripts.php:307
|
6694 |
msgid "Are you sure you wish to delete this payment?"
|
6695 |
msgstr ""
|
6696 |
|
6697 |
+
#: includes/scripts.php:308
|
6698 |
msgid "Are you sure you wish to delete this note?"
|
6699 |
msgstr ""
|
6700 |
|
6701 |
+
#: includes/scripts.php:309
|
6702 |
msgid "Are you sure you wish to revoke this API key?"
|
6703 |
msgstr ""
|
6704 |
|
6705 |
+
#: includes/scripts.php:310
|
6706 |
msgid "Are you sure you wish to regenerate this API key?"
|
6707 |
msgstr ""
|
6708 |
|
6709 |
+
#: includes/scripts.php:311
|
6710 |
msgid "Are you sure you wish to resend the donation receipt?"
|
6711 |
msgstr ""
|
6712 |
|
6713 |
+
#: includes/scripts.php:313
|
6714 |
msgid "Use this image"
|
6715 |
msgstr ""
|
6716 |
|
6717 |
+
#: includes/scripts.php:314
|
6718 |
msgid "Choose a form"
|
6719 |
msgstr ""
|
6720 |
|
6721 |
+
#: includes/scripts.php:315
|
6722 |
msgid "Choose one or more forms"
|
6723 |
msgstr ""
|
6724 |
|
6725 |
+
#: includes/scripts.php:319
|
6726 |
msgid "You must choose a method."
|
6727 |
msgstr ""
|
6728 |
|
6729 |
+
#: includes/scripts.php:320
|
6730 |
msgid "Required fields not completed."
|
6731 |
msgstr ""
|
6732 |
|
6733 |
+
#: includes/scripts.php:321
|
6734 |
msgid "Are you sure you want to reset Give? This process is <strong><em>not reversible</em></strong> and will delete all data regardless of test or live mode. Please be sure you have a recent backup before proceeding."
|
6735 |
msgstr ""
|
6736 |
|
6737 |
+
#: includes/scripts.php:322
|
6738 |
msgid "Please enter amount in monetary decimal ( %1$s ) format without thousand separator ( %2$s ) ."
|
6739 |
msgstr ""
|
6740 |
|
6741 |
+
#: includes/scripts.php:324
|
6742 |
msgid "Do you want to delete this level?"
|
6743 |
msgstr ""
|
6744 |
|
6745 |
+
#: includes/scripts.php:326
|
6746 |
msgid "Dismiss this notice."
|
6747 |
msgstr ""
|
6748 |
|
6749 |
+
#: includes/scripts.php:329
|
6750 |
msgid "You must choose at least one or more payments to delete."
|
6751 |
msgstr ""
|
6752 |
|
6753 |
+
#: includes/scripts.php:330
|
6754 |
msgid "Are you sure you want to permanently delete this donation?"
|
6755 |
msgstr ""
|
6756 |
|
6757 |
+
#: includes/scripts.php:331
|
6758 |
msgid "Are you sure you want to permanently delete the selected {payment_count} donations?"
|
6759 |
msgstr ""
|
6760 |
|
6761 |
+
#: includes/scripts.php:334
|
6762 |
msgid "You must choose at least one or more recipients to resend the email receipt."
|
6763 |
msgstr ""
|
6764 |
|
6765 |
+
#: includes/scripts.php:335
|
6766 |
msgid "Are you sure you want to resend the email receipt to this recipient?"
|
6767 |
msgstr ""
|
6768 |
|
|
|
|
|
|
|
|
|
6769 |
#: includes/scripts.php:336
|
6770 |
+
msgid "Are you sure you want to resend the emails receipt to {payment_count} recipients?"
|
6771 |
msgstr ""
|
6772 |
|
6773 |
+
#: includes/scripts.php:341
|
6774 |
msgid "Choose Attachment"
|
6775 |
msgstr ""
|
6776 |
|
6782 |
msgid "You must be logged in to view your donation history. Please login using your account or create an account using the same email you used to donate with."
|
6783 |
msgstr ""
|
6784 |
|
6785 |
+
#: includes/shortcodes.php:130
|
6786 |
msgid "The shortcode is missing Donation Form ID attribute."
|
6787 |
msgstr ""
|
6788 |
|
6789 |
+
#: includes/shortcodes.php:136
|
6790 |
msgid "The form does not have Goals enabled."
|
6791 |
msgstr ""
|
6792 |
|
6793 |
+
#: includes/shortcodes.php:220
|
6794 |
msgid "You are missing the payment key to view this donation receipt."
|
6795 |
msgstr ""
|
6796 |
|
6797 |
+
#: includes/shortcodes.php:280
|
6798 |
msgid "You must be logged in to view this donation receipt."
|
6799 |
msgstr ""
|
6800 |
|
6801 |
+
#: includes/shortcodes.php:409
|
6802 |
msgid "The passwords you entered do not match. Please try again."
|
6803 |
msgstr ""
|
6804 |
|
6805 |
+
#: includes/shortcodes.php:417
|
6806 |
msgid "The email you entered is empty."
|
6807 |
msgstr ""
|
6808 |
|
6809 |
+
#: includes/shortcodes.php:421
|
6810 |
msgid "The email you entered is not valid. Please use another"
|
6811 |
msgstr ""
|
6812 |
|
6813 |
+
#: includes/shortcodes.php:426
|
6814 |
msgid "The email you entered belongs to another user. Please use another."
|
6815 |
msgstr ""
|
6816 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://givewp.com/
|
|
4 |
Tags: donation, donations, donation plugin, wordpress donation plugin, wp donation, ecommerce, e-commerce, fundraising, fundraiser, crowdfunding, wordpress donations, commerce, wordpress ecommerce, giving, charity, donate, gifts, non-profit, paypal, stripe, churches, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -165,6 +165,14 @@ We also really like WooCommerce. It's hands-down the most robust eCommerce platf
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
= 1.8.4 =
|
169 |
* Fix: When a donation form has guest donations enabled and the registration + login option enabled the optional fields were being incorrect required. [#1553](https://github.com/WordImpress/Give/issues/1553)
|
170 |
* Fix: Minor RTL style issue with the i18n banner that displays asking help translating Give when WP-Admin is in a non-supported language. [#1547](https://github.com/WordImpress/Give/issues/1547)
|
4 |
Tags: donation, donations, donation plugin, wordpress donation plugin, wp donation, ecommerce, e-commerce, fundraising, fundraiser, crowdfunding, wordpress donations, commerce, wordpress ecommerce, giving, charity, donate, gifts, non-profit, paypal, stripe, churches, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.8.5
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 1.8.5 =
|
169 |
+
* New: Added a "Billing Details" as an option in PayPal Standard gateways which adds address fields to the gateway. The field data is then passed to PayPal and pre-filled on the PayPal payment form. [#1573](https://github.com/WordImpress/Give/issues/1573)
|
170 |
+
* New: Button only display mode now has an option to customize the donate button text. [#1494](https://github.com/WordImpress/Give/issues/1494)
|
171 |
+
* New: There is now a colorpicker setting field in the Give Setting API. [#1566](https://github.com/WordImpress/Give/issues/1566)
|
172 |
+
* Fix: If Give is upgraded from pre-1.8 to the latest version upgrades but does not run the manual upgrade routine the donation forms will continue to remain open for guest donations. [#1578](https://github.com/WordImpress/Give/issues/1578)
|
173 |
+
* Fix: There was an issue with the 1.8 upgrade routine where it was incorrectly disabling the Offline Donations gateway per form. [#1579](https://github.com/WordImpress/Give/issues/1579)
|
174 |
+
* Fix: The upgrade routine would not properly run on pages outside of Give in wp-admin. This has been fixed, now users can upgrade the db anywhere in wp-admin. [#1580](https://github.com/WordImpress/Give/issues/1580)
|
175 |
+
|
176 |
= 1.8.4 =
|
177 |
* Fix: When a donation form has guest donations enabled and the registration + login option enabled the optional fields were being incorrect required. [#1553](https://github.com/WordImpress/Give/issues/1553)
|
178 |
* Fix: Minor RTL style issue with the i18n banner that displays asking help translating Give when WP-Admin is in a non-supported language. [#1547](https://github.com/WordImpress/Give/issues/1547)
|