Changeset 2286386
- Timestamp:
- 04/18/2020 02:58:19 PM (6 years ago)
- Location:
- customdonations/trunk
- Files:
-
- 4 edited
-
classes/cd-shortcode-class.php (modified) (2 diffs)
-
customdonations.php (modified) (1 diff)
-
js/cd-config-page.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
customdonations/trunk/classes/cd-shortcode-class.php
r2282810 r2286386 22 22 $this->mode = ($mode === 'live' || $mode === 'test') ? esc_attr($mode) : null; //there is an issue if mode isn't provided. 23 23 $this->paymentVersion = !empty($paymentVersion) && $paymentVersion > 0 && $paymentVersion <= 2 ? $paymentVersion : $config_paymentver; //1: for modal payment window. 2: for inline payment with Google/Apple Pay options (US CLIENTS ONLY!) 24 $this->interval = !empty($interval) ? $interval : null;24 $this->interval = !empty($interval) && !(strtolower($interval) === "null") ? trim(strtolower($interval)) : null; // once, monthly, quarterly, yearly, or empty. 25 25 } 26 26 … … 67 67 function enqueue_customdonations_scripts_js() { 68 68 $dateTime = new DateTime(); 69 $frm_builder_script_url = sprintf('%s/%s/js/form-builder.min.js', $this->baseUrl, $this->apiVersion);69 $frm_builder_script_url = "{$this->baseUrl}/{$this->apiVersion}/js/form-builder.min.js"; 70 70 wp_enqueue_script('customdonations-form-builder', $frm_builder_script_url, '', $dateTime->getTimestamp(), true); 71 71 wp_enqueue_script('customdonations-shortcode', plugins_url('../js/cd-shortcode.js', __FILE__), '', '1.1', true); -
customdonations/trunk/customdonations.php
r2048717 r2286386 6 6 * Author URI: https://www.customdonations.com 7 7 * Text Domain: customdonations 8 * Version: 1.1 8 * Version: 1.1.2 9 9 * License: GPLv2 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
customdonations/trunk/js/cd-config-page.js
r1790427 r2286386 4 4 } 5 5 jQuery('#customdonations_memberid_enabled').change(function () { 6 if (this.checked) 7 { 8 jQuery('tr.customdonations_memberid_field_row').show(); 9 } else 10 { 11 jQuery('tr.customdonations_memberid_field_row').hide(); 12 } 6 this.checked ? jQuery('tr.customdonations_memberid_field_row').show() : jQuery('tr.customdonations_memberid_field_row').hide(); 13 7 }); 14 8 }); -
customdonations/trunk/readme.txt
r2282810 r2286386 42 42 43 43 == Changelog == 44 = 1.1.2 = 45 Improve interval parameter processing, minor adjustments to settings page. 44 46 = 1.1.1 = 45 47 Addition of interval parameter (optional) for choosing if payments should recur.
Note: See TracChangeset
for help on using the changeset viewer.