Plugin Directory

Changeset 2550541


Ignore:
Timestamp:
06/18/2021 04:45:37 PM (5 years ago)
Author:
mrlast
Message:

readme.txt

Location:
easy-form-builder
Files:
50 added
5 edited

Legend:

Unmodified
Added
Removed
  • easy-form-builder/trunk/emsfb.php

    r2548693 r2550541  
    44 * Plugin URI:          https://whitestudio.team
    55 * Description:         Easily create multi-step forms with tracking code support by using Easy Form Builder's drag & drop form wizard. This is the free version with limits.
    6  * Version:             1.33.3
     6 * Version:             1.33.4
    77 * Author:              WhiteStudio
    88 * Author URI:          https://whitestudio.team
  • easy-form-builder/trunk/includes/class-Emsfb-public.php

    r2548693 r2550541  
    133133                "field" => __('Field','easy-form-builder'),
    134134                "sentSuccessfully" => __('Sent successfully','easy-form-builder'),
    135                 "thanksFillingOutform" => __('Thanks for filling out our form!','easy-form-builder'),
     135                "thanksFillingOutform" => __('Thanks for filling out our form.','easy-form-builder'),
    136136                "trackingCode" => __('Tracking code','easy-form-builder'),
    137137                "sync" => __('Sync','easy-form-builder'),
     
    151151                "areYouSureYouWantDeleteItem" => __('Are you sure want to delete this item?','easy-form-builder'),
    152152                "noComment" => __('No comment','easy-form-builder'),
     153                "waitingLoadingRecaptcha" => __('Waiting for loading recaptcha','easy-form-builder'),
    153154                "please" => __('Please','easy-form-builder'),
    154 
    155155                ];
    156156                $typeOfForm =$this->value[0]->form_type;
     
    239239                "orClickHere" => __(' or click here','easy-form-builder'),
    240240                "sentSuccessfully" => __('Sent successfully','easy-form-builder'),
    241                 "thanksFillingOutform" => __('Thanks for filling out our form!','easy-form-builder'),
     241                "thanksFillingOutform" => __('Thanks for filling out our form.','easy-form-builder'),
    242242                "trackingCode" => __('Tracking Code','easy-form-builder'),
     243                "waitingLoadingRecaptcha" => __('Waiting for loading recaptcha','easy-form-builder'),
    243244                "sync" => __('Sync','easy-form-builder'),
    244245                "please" => __('Please','easy-form-builder'),
     
    339340        //https://stackoverflow.com/questions/18859857/setting-recaptcha-in-a-different-language-other-than-english
    340341       
    341         wp_register_script('recaptcha', 'https://www.google.com/recaptcha/api.js', null , null, true);
     342        wp_register_script('recaptcha', 'https://www.google.com/recaptcha/api.js?hl='.$lang.'&onload=onloadRecaptchakEFB', null , null, true);
    342343        wp_enqueue_script('recaptcha');
    343344       
  • easy-form-builder/trunk/public/assets/css/style.css

    r2547874 r2550541  
    599599
    600600/* password recovery */
     601
     602/* overpage */
     603.overpage-efb {
     604    position:         absolute !important; /* Sit on top of the page content */
     605    width:            100%; /* Full width (cover the whole page) */
     606    height:           100%; /* Full height (cover the whole page) */
     607    top:              0;
     608    left:             0;
     609    right:            0;
     610    bottom:           0;
     611    background-color: rgba(0, 0, 0, 0.5) !important; /* Black background with opacity */
     612    z-index:          10000 !important; /* Specify a stack order in case you're using a different order for other elements */
     613    cursor:           pointer; /* Add a pointer on hover */
     614}
     615
     616.preview-overpage-efb {
     617    position: absolute !important;
     618}
     619/* overpage */
  • easy-form-builder/trunk/public/assets/js/core.js

    r2548693 r2550541  
    514514    }
    515515    //console.log(ajax_object_efm )
     516   
    516517    const button_name = ajax_object_efm.type!="form" && ajax_object_efm.type!="survey" ? ajax_object_efm.text[ajax_object_efm.type] : ajax_object_efm.text.send
    517518    const content = `<!-- commenet --!><div class="m-2">
     
    519520        <div class="col-md-12">
    520521            <div id="emsFormBuilder-form-view" >
     522          ${sitekye_emsFormBuilder ? ` <div class=" overpage-efb preview-overpage-efb " id="overpage-efb"> <h1 class="mx-1 mt-5 text-info text-center"> ${ajax_object_efm.text.waitingLoadingRecaptcha}</h> </div>` :`<!-- recaptcha not added  -->`}
    521523            <form id="emsFormBuilder-form-view-id">
    522524                <h1 class='emsFormBuilder' id="emsFormBuilder-form-view-title">Form Bulider</h1>               
     
    552554    </div>
    553555    </div>`;
     556
     557
    554558    if (check ==1) {if (document.getElementById('body_emsFormBuilder')) document.getElementById('body_emsFormBuilder').innerHTML =content}
    555559    else {return content}
     
    594598    }
    595599   
     600
     601 
    596602   
    597603  }
     
    632638  //recaptcha
    633639  if(currentTab_emsFormBuilder==0){
     640   // console.log(`grecaptcha[${grecaptcha.getResponse()}]`,grecaptcha.getResponse());
     641   // if(!grecaptcha.getResponse()){document.getElementById('recaptcha-message').innerHTML=ajax_object_efm.text.errorVerifyingRecaptcha;}
    634642    const  response = sitekye_emsFormBuilder ? grecaptcha.getResponse() || null : 'not';
    635     //console.log(`[${response}]` ,sitekye_emsFormBuilder)
     643    console.log(`[${response}]` ,sitekye_emsFormBuilder)
    636644    if( response!=null) {
    637645      //reCaptcha not verified
     
    641649   
    642650    }else if ( sitekye_emsFormBuilder.length>1 && response==null){
    643       document.getElementById('recaptcha-message').innerHTML=ajax_object_efm.text.errorVerifyingRecaptcha
     651      document.getElementById('recaptcha-message').innerHTML=ajax_object_efm.text.errorVerifyingRecaptcha;
    644652      return ;
    645653    }else {
     
    12461254        data:data,
    12471255        success: function(res) {response_fill_form_efb(res)},
    1248         error: function(){response_fill_form_efb({error:'nOK'})}
     1256        error: function(){response_fill_form_efb({success: false,data: {success: false,m:'Some thing went wrong, contact to admin (E:JQ Co)'}})}
    12491257
    12501258      })
     
    15681576            data:data,
    15691577            success: function(res) {response_Valid_tracker_efb(res)},
    1570             error: function(){response_Valid_tracker_efb({error:'nOK'})}
     1578            error: function(){response_Valid_tracker_efb({success: false,data: {success: false,m:'Some thing went wrong,Plase contact to admin (E:JQ Co)'}})}
    15711579   
    15721580          })
     
    17451753      data:data,
    17461754      success: function(res) {response_rMessage_id(res,message)},
    1747       error: function(){response_rMessage_id({error:'nOK'})}
     1755      error: function(){response_rMessage_id({success: false,data: {success: false,m:'Some thing went wrong,Plase contact to admin (E:JQ Co)'}})}
    17481756
    17491757    })
     
    18341842
    18351843      if(valueJson_ws[indx].type=="multiselect" || valueJson_ws[indx].type=="option"  || valueJson_ws[indx].type=="Select") {
    1836        // console.log(indx);
    1837         indx = valueJson_ws.findIndex(x => x.id_ == valueJson_ws[indx].parents);
    1838       //  console.log(indx);
    1839         fill += valueJson_ws[indx].required== true ? 1 :0;
     1844        console.log(valueJson_ws[indx].type ,valueJson_ws[indx].parents, valueJson_ws,indx, "multiselect");
     1845        const  exists = valueJson_ws.findIndex(x => x.parents == valueJson_ws[indx].id_);
     1846        console.log(valueJson_ws[indx] ,indx , exists, "multiselect");
     1847        fill += valueJson_ws[indx].required== true && exists>-1 ? 1 :0;
    18401848      }else{
     1849        console.log(valueJson_ws[indx].type ,indx , valueJson_ws[indx], "other");
    18411850        fill += valueJson_ws[indx].required== true ? 1 :0;
    18421851      }
     
    19591968
    19601969function response_fill_form_efb(res){
    1961  
    1962   if (res.data.success==true) {
     1970  console.log(res);
     1971  if (  res.data.success==true ) {
    19631972   /*  console.log(res.data);
    19641973    console.log(form_type_emsFormBuilder); */
     
    20562065  }
    20572066}
     2067
     2068/* remove overpage after loading recaptcha */
     2069function onloadRecaptchakEFB(){
     2070 document.getElementById('overpage-efb').remove();
     2071}
     2072/* remove overpage after loading recaptcha */
  • easy-form-builder/trunk/readme.txt

    r2548693 r2550541  
    33Tags:                   form builder, form creator, contact form, support form, subscribe form
    44Donate link:            https://ko-fi.com/whitestudio
    5 Stable tag:             1.33.3
     5Stable tag:             1.33.4
    66Requires at least:      4.7
    77Tested up to:           5.7.2
     
    3232- Get notified by email when a form has been submitted
    3333- Add tracking pixels
    34 - Reliable spam protection through Google’s reCAPTCHA v2
     34- Reliable spam protection through Google’s reCAPTCHA v2 and localized
    3535- Instant reply functionality
    3636- Mobile-friendly responsive forms
     
    9292
    9393== Changelog ==
     94
     95= 1.33.3 =
     96* Fixed issues
     97* localized  spam protection
    9498
    9599= 1.33.3 =
Note: See TracChangeset for help on using the changeset viewer.