Changeset 1704793
- Timestamp:
- 07/29/2017 02:07:57 AM (9 years ago)
- Location:
- allprowebtools-leadboxes/tags/1.1.1
- Files:
-
- 4 edited
-
allprowebtools.php (modified) (1 diff)
-
includes/apwt.php (modified) (3 diffs)
-
js/apwt-leadbox.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
allprowebtools-leadboxes/tags/1.1.1/allprowebtools.php
r1598164 r1704793 6 6 Author: AllProWebTools 7 7 Author URI: http://www.AllProWebTools.com 8 Version: 1.1. 08 Version: 1.1.1 9 9 License: GPLv2 10 10 */ -
allprowebtools-leadboxes/tags/1.1.1/includes/apwt.php
r1556509 r1704793 23 23 $thereturn = wp_remote_get($thisurl); 24 24 25 25 26 if ($thereturn['body'] == 'API credentials not found') { 26 27 print $thereturn['body']; … … 53 54 $debug = 0; 54 55 $args = APWTCookieSessionHandler(); 55 $args['timeout'] = 30;56 $args['timeout'] = 120; 56 57 57 58 $url .= '&siteurl='.$_SERVER['HTTP_HOST'].'&ip='.$_SERVER["REMOTE_ADDR"]; 58 59 $url = "https:".$_SESSION['serverurl'].$url; 60 61 //in an attempt to debug leadbox slowness, we tried using direct curl instead of wp_remote_get() to improve response times 62 //we later found another issue related to L30 that improved the leadbox slowness - JAB 2017.05.11 63 //$ch = curl_init($url); 64 //$response = curl_exec($ch); 59 65 60 66 $response = wp_remote_get($url, $args); … … 199 205 echo $thereturn; 200 206 } 207 201 208 die(0); 202 209 } -
allprowebtools-leadboxes/tags/1.1.1/js/apwt-leadbox.js
r1645139 r1704793 1 1 jQuery('body').on('click','.leadbox-submit', function(e) { 2 2 e.preventDefault(); 3 var leadboxForm = jQuery(this).closest('form'); 3 var saveBtn = jQuery(this); 4 var leadboxForm = saveBtn.closest('form'); 4 5 var recaptchaBox = leadboxForm.find('.g-recaptcha-response'); 6 var oldBtnTxt = saveBtn.html(); 7 8 saveBtn.prop('disabled', true); 9 saveBtn.html('<div class="leadbox-loader"></div>'); 5 10 6 11 var postedValues = {}; … … 23 28 success: function(response) { 24 29 if(response.status == "error") { 25 leadboxForm.find('.leadbox-error').html(response.message); 26 grecaptcha.reset() //reset recaptcha 30 jQuery(leadboxForm.children('.leadbox-error')).html(response.message); 31 if (typeof(grecaptcha) != 'undefined') { 32 var widgetId = parseInt(leadboxForm.find('.recaptcha-widget').val()); 33 try { 34 grecaptcha.reset(widgetId); //reset recaptcha 35 } catch (e) { 36 console.log(e); 37 } 38 } 27 39 } else { 28 40 if (response.status != 'paige') { … … 34 46 } 35 47 } 48 saveBtn.prop('disabled', false); 49 saveBtn.html(oldBtnTxt); 36 50 } 37 51 }); -
allprowebtools-leadboxes/tags/1.1.1/readme.txt
r1645139 r1704793 3 3 Tags: allprowebtools, crm, lead box, signup box, optin box, autoresponder, email marketing 4 4 Requires at least: 3.4 5 Tested up to: 4. 7.46 Stable tag: 1.1. 05 Tested up to: 4.8 6 Stable tag: 1.1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 97 97 1. Patched for better compatability with WP 4.7 and certain PHP versions 98 98 99 = 1.1.0 - 0 4/25/17 =99 = 1.1.0 - 02/17/17 = 100 100 1. Added support for Google reCaptcha 101 101 102 = 1.1.1 - 07/28/17 = 103 1. Enhanced support for Google reCaptcha to allow multiple reCaptchas per page
Note: See TracChangeset
for help on using the changeset viewer.