Changeset 3363442
- Timestamp:
- 09/17/2025 05:58:08 PM (7 months ago)
- Location:
- wordform
- Files:
-
- 98 added
- 5 edited
-
tags/2.0.2 (added)
-
tags/2.0.2/admin (added)
-
tags/2.0.2/admin/block (added)
-
tags/2.0.2/admin/block/build (added)
-
tags/2.0.2/admin/block/build/block.json (added)
-
tags/2.0.2/admin/block/build/index.asset.php (added)
-
tags/2.0.2/admin/block/build/index.css (added)
-
tags/2.0.2/admin/block/build/index.js (added)
-
tags/2.0.2/admin/block/build/index.js.map (added)
-
tags/2.0.2/admin/css (added)
-
tags/2.0.2/admin/css/dataTables.css (added)
-
tags/2.0.2/admin/css/fontawesome6-all.min.css (added)
-
tags/2.0.2/admin/css/images (added)
-
tags/2.0.2/admin/css/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/2.0.2/admin/css/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/2.0.2/admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/2.0.2/admin/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/2.0.2/admin/css/jquery-ui.css (added)
-
tags/2.0.2/admin/css/sc-wordform-admin-misc-styles.css (added)
-
tags/2.0.2/admin/images (added)
-
tags/2.0.2/admin/images/dropzone.png (added)
-
tags/2.0.2/admin/js (added)
-
tags/2.0.2/admin/js/clipboard.min.js (added)
-
tags/2.0.2/admin/js/dataTables.js (added)
-
tags/2.0.2/admin/js/sc-wordform-admin-misc-script.js (added)
-
tags/2.0.2/admin/js/wordform-admin-view-page-script.js (added)
-
tags/2.0.2/admin/views (added)
-
tags/2.0.2/admin/views/allforms_callback_page.php (added)
-
tags/2.0.2/admin/views/captcha-templates-images (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-1-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-2-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-3-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-4-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-5-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-6-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-7-150x70.jpg (added)
-
tags/2.0.2/admin/views/captcha-templates-images/captcha-background-template-8-150x70.jpg (added)
-
tags/2.0.2/admin/views/create_forms_callback_page.php (added)
-
tags/2.0.2/admin/views/create_forms_edit_page.php (added)
-
tags/2.0.2/admin/views/fonts (added)
-
tags/2.0.2/admin/views/fonts/BlackOpsOne-Regular.ttf (added)
-
tags/2.0.2/admin/views/fonts/FasterOne-Regular.ttf (added)
-
tags/2.0.2/admin/views/fonts/Kalam-Regular.ttf (added)
-
tags/2.0.2/admin/views/fonts/RubikMoonrocks-Regular.ttf (added)
-
tags/2.0.2/admin/views/fonts/code.otf (added)
-
tags/2.0.2/admin/views/images (added)
-
tags/2.0.2/admin/views/images/wordform-icon-box-shape-16x16.png (added)
-
tags/2.0.2/admin/views/images/wordform-icon-box-shape-50x50.png (added)
-
tags/2.0.2/admin/views/pages-header-template.php (added)
-
tags/2.0.2/admin/views/sc-wordform-preview-page.php (added)
-
tags/2.0.2/admin/views/settings-callback-gcaptcha-tab-page.php (added)
-
tags/2.0.2/admin/views/settings_callback_general_tab_page.php (added)
-
tags/2.0.2/admin/views/settings_callback_page.php (added)
-
tags/2.0.2/admin/views/settings_callback_validation_tab_page.php (added)
-
tags/2.0.2/admin/views/settings_callback_validation_tab_page_template.php (added)
-
tags/2.0.2/admin/views/user_submission_data_callback_page.php (added)
-
tags/2.0.2/admin/webfonts (added)
-
tags/2.0.2/admin/webfonts/fa-brands-400.ttf (added)
-
tags/2.0.2/admin/webfonts/fa-brands-400.woff2 (added)
-
tags/2.0.2/admin/webfonts/fa-regular-400.ttf (added)
-
tags/2.0.2/admin/webfonts/fa-regular-400.woff2 (added)
-
tags/2.0.2/admin/webfonts/fa-solid-900.ttf (added)
-
tags/2.0.2/admin/webfonts/fa-solid-900.woff2 (added)
-
tags/2.0.2/admin/webfonts/fa-v4compatibility.ttf (added)
-
tags/2.0.2/admin/webfonts/fa-v4compatibility.woff2 (added)
-
tags/2.0.2/assets (added)
-
tags/2.0.2/assets/css (added)
-
tags/2.0.2/assets/css/sc-wordform-block-editor-misc-styles.css (added)
-
tags/2.0.2/assets/css/sc-wordform-frontend-misc-styles.css (added)
-
tags/2.0.2/assets/js (added)
-
tags/2.0.2/assets/js/sc-wordform-block-editor-script.js (added)
-
tags/2.0.2/assets/js/sc-wordform-frontend-misc-script.js (added)
-
tags/2.0.2/includes (added)
-
tags/2.0.2/includes/class-sftcy-buildform.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform-ajaxhandler.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform-autoloader.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform-captcha.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform-formsubmission.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform-formvalidation.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform-shortcode.php (added)
-
tags/2.0.2/includes/class-sftcy-wordform.php (added)
-
tags/2.0.2/includes/elements (added)
-
tags/2.0.2/includes/elements/captcha.php (added)
-
tags/2.0.2/includes/elements/checkbox.php (added)
-
tags/2.0.2/includes/elements/email.php (added)
-
tags/2.0.2/includes/elements/form-name.php (added)
-
tags/2.0.2/includes/elements/gcaptcha.php (added)
-
tags/2.0.2/includes/elements/number.php (added)
-
tags/2.0.2/includes/elements/radio.php (added)
-
tags/2.0.2/includes/elements/range.php (added)
-
tags/2.0.2/includes/elements/select.php (added)
-
tags/2.0.2/includes/elements/submit-button.php (added)
-
tags/2.0.2/includes/elements/text.php (added)
-
tags/2.0.2/includes/elements/textarea.php (added)
-
tags/2.0.2/languages (added)
-
tags/2.0.2/license.txt (added)
-
tags/2.0.2/readme.txt (added)
-
tags/2.0.2/wordform.php (added)
-
trunk/assets/js/sc-wordform-frontend-misc-script.js (modified) (19 diffs)
-
trunk/includes/class-sftcy-buildform.php (modified) (1 diff)
-
trunk/includes/class-sftcy-wordform-ajaxhandler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/wordform.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordform/trunk/assets/js/sc-wordform-frontend-misc-script.js
r3282718 r3363442 6 6 7 7 jQuery(document).ready(function($) { 8 console.log('SC-WORDFORM-FRONTEND-OBJECT');9 console.log(sc_wordform_frontend_misc_script_obj);8 // console.log('SC-WORDFORM-FRONTEND-OBJECT'); 9 // console.log(sc_wordform_frontend_misc_script_obj); 10 10 11 11 // Front-end Users Form Submission - Single Page Multiple Form Support … … 33 33 let wordform_total_files_uploading = 0; 34 34 35 console.log('wordform_selected_tmp_files');36 console.log(wordform_selected_tmp_files);35 // console.log('wordform_selected_tmp_files'); 36 // console.log(wordform_selected_tmp_files); 37 37 38 38 // Append Selected files into FormData to upload to server - index is the each input type file element Id attribute … … 40 40 // Find the name attribute to assign upload file data 41 41 let inputTypeFileElementName = scWordformWrapper.find('#'+index).prop('name'); 42 console.log(inputTypeFileElementName );42 // console.log(inputTypeFileElementName ); 43 43 wordform_formdata.delete( inputTypeFileElementName ); // Delete / Clear same name of FormData varriable before adding to avoid duplicate files uploading 44 44 $.each( files, function(index, file) { … … 49 49 }); 50 50 51 console.log('Total File Uploading: '+ wordform_total_files_uploading );51 // console.log('Total File Uploading: '+ wordform_total_files_uploading ); 52 52 53 53 wordform_formdata.append('action', 'sc_wordform_created_form_submission'); … … 56 56 wordform_formdata.append('WordFormID', scWordFormID ); 57 57 58 console.log('wordform_formdata');59 console.log(wordform_formdata);58 // console.log('wordform_formdata'); 59 // console.log(wordform_formdata); 60 60 61 61 // Remove form submission report messages if exist … … 65 65 scWordformWrapper.find('.sc-wordform-error-msg').text(''); 66 66 67 // Whenn greCaptcha Key Available && greCaptcha integrated with form! 68 if ( sc_wordform_frontend_misc_script_obj.gcaptcha_site_key.length > 0 && sc_wordform_frontend_misc_script_obj.gcaptcha_version === 'v3' ) { 69 console.log('gCaptcha Site Key: '+ sc_wordform_frontend_misc_script_obj.gcaptcha_site_key ); 67 // When greCaptcha Key Available && greCaptcha integrated with form! 68 if ( sc_wordform_frontend_misc_script_obj.gcaptcha_site_key.length > 0 69 && sc_wordform_frontend_misc_script_obj.gcaptcha_version === 'v3' 70 && parseInt( sc_wordform_frontend_misc_script_obj?.gcaptcha_form_element_exist ) === 1 ) { 71 72 // console.log('gCaptcha Site Key: '+ sc_wordform_frontend_misc_script_obj.gcaptcha_site_key ); 70 73 71 74 // greCaptcha Render … … 84 87 grecaptcha.execute( sc_wordform_frontend_misc_script_obj.gcaptcha_site_key, {action: gCaptchaActionValue } ).then(function(token) { 85 88 // grecaptcha.enterprise.execute( sc_wordform_frontend_misc_script_obj.gcaptcha_site_key, {action: gCaptchaActionValue } ).then(function(token) { 86 console.log('grecaptcha.execute Token: '+ token );89 // console.log('grecaptcha.execute Token: '+ token ); 87 90 // wordform_formdata.append('token', token ); 88 91 wordform_formdata.append( gCapcthaTokenInputElementName, token ); 89 92 wordform_formdata.append( gCapcthaActionInputElementName, gCaptchaActionValue ); 90 93 91 console.log('reCAPTCHA( V3 ) FORM SUBMISSION');94 // console.log('reCAPTCHA( V3 ) FORM SUBMISSION'); 92 95 $.ajax({ 93 96 xhr: function() { … … 118 121 success: function(data) { 119 122 wordformProgressBarEle.width('0%'); 120 console.log(data);123 // console.log(data); 121 124 jsonData = JSON.parse( data ); 122 console.log(jsonData );125 // console.log(jsonData ); 123 126 // Fail 124 127 if ( jsonData.status == 'fail' ) { … … 177 180 if ( typeof grecaptcha !== 'undefined' ) { 178 181 try { 179 console.log('grecaptcha.getResponse(): ');182 // console.log('grecaptcha.getResponse(): '); 180 183 token = grecaptcha.getResponse(); 181 184 wordform_formdata.append( gCapcthaTokenInputElementName, token ); 182 console.log( token );185 // console.log( token ); 183 186 } 184 187 catch(error) { … … 218 221 success: function(data) { 219 222 wordformProgressBarEle.width('0%'); 220 console.log(data);223 // console.log(data); 221 224 jsonData = JSON.parse( data ); 222 console.log(jsonData );225 // console.log(jsonData ); 223 226 // Fail 224 227 if ( jsonData.status == 'fail' ) { … … 296 299 UploadErrorMsgWrapper.html(''); 297 300 298 console.log('WordForm ID: '+ scWordformWrapperID );299 console.log(acceptFileExtensions);301 // console.log('WordForm ID: '+ scWordformWrapperID ); 302 // console.log(acceptFileExtensions); 300 303 301 304 // console.log('Upload Config data'); … … 307 310 // Total Selected Files Number 308 311 if ( ( wordform_selected_total_file_numbers + e.target.files.length ) > sc_wordform_frontend_misc_script_obj.wordform_upload_config_data?.max_num_files_allowed ) { 309 console.log('Total Selected Files:'+ ( wordform_selected_total_file_numbers + e.target.files.length ) );312 // console.log('Total Selected Files:'+ ( wordform_selected_total_file_numbers + e.target.files.length ) ); 310 313 UploadErrorMsgWrapper.html( sc_wordform_frontend_misc_script_obj.info_file_icon + validationMessages.upload_maxinput_msg ); 311 314 } … … 322 325 // console.log( acceptFileExtensions.split(',') ); 323 326 for ( const file of e.target.files ) { 324 console.log(file);327 // console.log(file); 325 328 if ( is_file_selected_once( file.name ) >= 0 ) { 326 329 UploadErrorMsgWrapper.append( sc_wordform_frontend_misc_script_obj.info_file_icon + file.name +' - '+ validationMessages.upload_filealready_added_msg ); … … 352 355 console.log('Total Selected Files:'+ wordform_selected_total_file_numbers ); 353 356 } 354 console.log(wordform_selected_tmp_files );357 // console.log(wordform_selected_tmp_files ); 355 358 }); 356 359 … … 360 363 // let inputTypeElementkey = $(this).closest('.wordform-selected-file-names-list').prop('id').split('-')[1]; 361 364 // let UploadErrorMsgWrapper = $('#wordformUploadTempError-' + inputTypeElementkey ); 362 console.log( 'Remove File Name:'+ removeFileName );365 // console.log( 'Remove File Name:'+ removeFileName ); 363 366 $.each( wordform_selected_tmp_files, function(index, files) { 364 367 let removeItemIndex = files.findIndex( function(file) { return file?.name?.trim() == removeFileName.trim(); }); … … 366 369 if ( removeItemIndex !== -1 ) { files.splice( removeItemIndex, 1 ); } 367 370 }); 368 console.log( wordform_selected_tmp_files );371 // console.log( wordform_selected_tmp_files ); 369 372 $(this).closest('li').remove(); 370 373 // Update Total File Numbers on Remove 371 374 wordform_selected_total_file_numbers--; 372 console.log('Total Selected Files:'+ wordform_selected_total_file_numbers );375 // console.log('Total Selected Files:'+ wordform_selected_total_file_numbers ); 373 376 }); 374 377 … … 380 383 $.each( selectedFiles, function( index, file ) { 381 384 total_size_in_bytes += file.size ||=0; 382 console.log('Converted file.size into MB: '+ wordform_bytes_to_mb( file.size ) );383 console.log('Each File Size Allowed: '+ parseFloat( sc_wordform_frontend_misc_script_obj.wordform_upload_config_data?.each_file_max_size_allowed ) );385 // console.log('Converted file.size into MB: '+ wordform_bytes_to_mb( file.size ) ); 386 // console.log('Each File Size Allowed: '+ parseFloat( sc_wordform_frontend_misc_script_obj.wordform_upload_config_data?.each_file_max_size_allowed ) ); 384 387 if ( wordform_bytes_to_mb( file.size ) > parseFloat( sc_wordform_frontend_misc_script_obj.wordform_upload_config_data?.each_file_max_size_allowed ) ) { 385 console.log( file.name + ' File Size '+ wordform_bytes_to_mb( file.size ) + ' Exceeded.' );388 // console.log( file.name + ' File Size '+ wordform_bytes_to_mb( file.size ) + ' Exceeded.' ); 386 389 fileSizeInfo.singleFileSizeExceed = true; 387 390 return; // Break the loop … … 398 401 fileSizeInfo.multipleFileSizeExceed = true; 399 402 } 400 console.log('All selected files total size:'+ wordform_bytes_to_mb( total_size_in_bytes ) );403 // console.log('All selected files total size:'+ wordform_bytes_to_mb( total_size_in_bytes ) ); 401 404 return fileSizeInfo; 402 405 } … … 438 441 let offset = $(this).offset(); 439 442 let selectedValue = $(this).val(); 440 console.log( selectedValue );443 // console.log( selectedValue ); 441 444 442 445 wordformRangeValueDisplayEle.text( selectedValue ); -
wordform/trunk/includes/class-sftcy-buildform.php
r3282718 r3363442 746 746 return $formdata; 747 747 } 748 749 /** 750 * Find element Google reCAPTCHA exist in form elements 751 * based on Google reCAPTCHA element exist in form elements load reCAPTCHA JS library 752 * If not exist not required to load with form page 753 * @return boolean true | false 754 */ 755 public static function is_google_recaptcha_element_exist_in_built_form() { 756 $searchValue = 'gcaptcha'; 757 $form_data = self::$form_elements; 758 foreach ($form_data as $subArray) { 759 if (is_array($subArray)) { 760 if (in_array($searchValue, $subArray, true)) { 761 return true; // Found in sub-array 762 } 763 } 764 } 765 return false; // Not found in any sub-array 766 } 767 748 768 } // End class 749 769 } -
wordform/trunk/includes/class-sftcy-wordform-ajaxhandler.php
r3282718 r3363442 261 261 262 262 // $enterprise_recaptcha_script_url = 'https://www.google.com/recaptcha/enterprise.js?sitekey=' . esc_attr( $gcaptcha_data['gcaptcha-site-key'] ) . '&badge=bottomleft'; 263 if ( isset( $recaptcha_script_url ) && ! empty( $recaptcha_script_url ) ) { 263 // Google reCAPTCHA script loaded only when reCAPTCHA element integrated with Form 264 $google_recaptcha_element_exist_in_built_form = ( SFTCY_BuildForm::is_google_recaptcha_element_exist_in_built_form() === true )? 1 : 0; 265 if ( isset( $recaptcha_script_url ) && ! empty( $recaptcha_script_url ) && $google_recaptcha_element_exist_in_built_form === 1 ) { 264 266 wp_enqueue_script( 'sc-wordform-frontend-google-recaptcha-script', $recaptcha_script_url, array( 'jquery' ), SFTCY_WORDFORM_VERSION, true ); 265 267 } 266 267 268 268 269 // Localize script … … 283 284 'gcaptcha_site_key' => $gcaptcha_data['gcaptcha-site-key'], 284 285 'gcaptcha_type' => $gcaptcha_data['gcaptcha-type'], 285 'gcaptcha_version' => $gcaptcha_data['gcaptcha-version'], 286 'gcaptcha_version' => $gcaptcha_data['gcaptcha-version'], 287 'gcaptcha_form_element_exist' => $google_recaptcha_element_exist_in_built_form, // gcaptcha added or not into form - 1 | 0 286 288 ) 287 289 ); -
wordform/trunk/readme.txt
r3359106 r3363442 3 3 Donate link: https://www.buymeacoffee.com/softcoy 4 4 Plugin URI: https://www.softcoy.com/wordform/ 5 Tags: Drag & Drop Form Builder, No-Code WordPress Forms, Captcha Forms, Block Editor Form Integration, Easy Form Builder Plugin5 Tags: form builder, drag and drop, contact form, captcha, block editor 6 6 Requires at least: 6.2 7 7 Tested up to: 6.8 8 Stable tag: 2.0. 18 Stable tag: 2.0.2 9 9 Requires PHP: 7.4 10 10 License: GPLv3 … … 20 20 [How to check users form submission data](https://youtu.be/8MxaKekcBl0) 21 21 [How to edit your created forms](https://youtu.be/0AdmQh1WuOs) 22 [In Wordform, you can easily integrate Google reCAPTCHA to keep your forms secure](https://www.youtube.com/watch?v=95sVtBaOPgs) 23 [With Wordform, customizing validation messages is simple, flexible, and user-friendly](https://www.youtube.com/watch?v=Z_olDQypzHs) 24 [WordForm makes it effortless to manage all your form submissions—right from your WordPress dashboard](https://www.youtube.com/watch?v=khyIixubn7g) 25 [You're just a few quick steps away from making the form publish and ready to collect user responses](https://www.youtube.com/watch?v=qCINIvrNZMc) 26 [WordForm is a powerful drag-and-drop form builder plugin, allowing you to create custom forms easily](https://www.youtube.com/watch?v=Mbbv-_MfZc0) 27 22 28 23 29 … … 105 111 == Changelog == 106 112 113 = 2.0.2 = 114 * Fixed: Minor Google reCAPTCHA bugs 115 107 116 = 2.0.1 = 108 117 * Fixed: Minor bugs … … 142 151 143 152 == Upgrade Notice == 144 = 2.0. 1=153 = 2.0.2 = 145 154 Upgrade to the latest version. -
wordform/trunk/wordform.php
r3359106 r3363442 4 4 * Plugin URI: http://softcoy.com/wordform/ 5 5 * Description: WordForm – The intuitive drag-and-drop form builder for WordPress. Effortlessly create and embed custom forms into any page or post using full block editor support—no coding required. 6 * Version: 2.0. 16 * Version: 2.0.2 7 7 * Author: SOFTCOY 8 8 * Author URI: https://softcoy.com/ … … 22 22 23 23 if ( ! defined( 'SFTCY_WORDFORM_VERSION' ) ) { 24 define( 'SFTCY_WORDFORM_VERSION', '2.0. 1' );24 define( 'SFTCY_WORDFORM_VERSION', '2.0.2' ); 25 25 } 26 26 if ( ! defined( 'SFTCY_WORDFORM_MINIMUM_PHP_VERSION' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.