Contact Form Email - Version 1.2.79

Version Description

  • Fixed Gutemberg editor conflict
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.79
Comparing to
See all releases

Code changes from version 1.2.78 to 1.2.79

README.txt CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
456
 
457
  == Changelog ==
458
 
 
 
 
459
  = 1.2.78 =
460
  * Major interface update and improvements
461
 
@@ -994,5 +997,5 @@ When you click a field already added into the contact form builder area, you can
994
 
995
  == Upgrade Notice ==
996
 
997
- = 1.2.78 =
998
- * Major interface update and improvements
456
 
457
  == Changelog ==
458
 
459
+ = 1.2.79 =
460
+ * Fixed Gutemberg editor conflict
461
+
462
  = 1.2.78 =
463
  * Major interface update and improvements
464
 
997
 
998
  == Upgrade Notice ==
999
 
1000
+ = 1.2.79 =
1001
+ * Fixed Gutemberg editor conflict
controllers/elementor/cp-elementor-widget.inc.php CHANGED
@@ -30,7 +30,7 @@ if (!class_exists('CP_ContactFormToEmail_Elementor'))
30
  wp_deregister_script($this->prefix.'_validate_script');
31
  wp_register_script($this->prefix.'_validate_script', plugins_url('/../../js/jquery.validate.js', __FILE__));
32
  wp_enqueue_script( $this->prefix.'_builder_script',
33
- plugins_url('/../../js/fbuilderf.jquery.js', __FILE__),array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-position","jquery-ui-tooltip","query-stringify",$this->prefix."_validate_script"), false, true );
34
  }
35
 
36
  /**
30
  wp_deregister_script($this->prefix.'_validate_script');
31
  wp_register_script($this->prefix.'_validate_script', plugins_url('/../../js/jquery.validate.js', __FILE__));
32
  wp_enqueue_script( $this->prefix.'_builder_script',
33
+ plugins_url('/../../js/fbuilderf.jquery.js?nc=1', __FILE__),array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-position","jquery-ui-tooltip","query-stringify",$this->prefix."_validate_script"), false, true );
34
  }
35
 
36
  /**
controllers/elementor/elementorwidget_class.inc.php CHANGED
@@ -136,7 +136,7 @@ class Elementor_CPCFTE_Widget extends \Elementor\Widget_Base {
136
  echo '<script>'.
137
  'var id = "'.$counter.'";'.
138
  'var cp_appbooking_fbuilder_myconfig = {"obj":"{\"pub\":true,\"identifier\":\"_"+id+"\",\"messages\": {}}"};'.
139
- 'var f = jQuery("#fbuilder_"+id).fbuilder(jQuery.parseJSON(cp_appbooking_fbuilder_myconfig.obj));'.
140
  'f.fBuild.loadData("form_structure_"+id);'.
141
  '</script>';
142
  }
136
  echo '<script>'.
137
  'var id = "'.$counter.'";'.
138
  'var cp_appbooking_fbuilder_myconfig = {"obj":"{\"pub\":true,\"identifier\":\"_"+id+"\",\"messages\": {}}"};'.
139
+ 'var f = jQuery("#fbuilder_"+id).CFTEfbuilder(jQuery.parseJSON(cp_appbooking_fbuilder_myconfig.obj));'.
140
  'f.fBuild.loadData("form_structure_"+id);'.
141
  '</script>';
142
  }
cp-admin-int-list.inc.php CHANGED
@@ -143,6 +143,8 @@ else if (isset($_POST["cp_cfte_rep_enable"]))
143
  $message = "Report settings updated";
144
  }
145
 
 
 
146
 
147
  if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>";
148
 
@@ -295,6 +297,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
295
  <div><label for="addon-cfficalattachment-20180730" style="font-weight:bold;"><input type="checkbox" disabled id="addon-cfficalattachment-20180730" name="cfte_addons" value="addon-cfficalattachment-20180730" >iCal Export Attached</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to attach an iCal file with the date of a field</div></div><div>
296
  <label for="addon-uploads-20160330" style="font-weight:bold;"><input type="checkbox" disabled id="addon-uploads-20160330" name="cfte_addons" value="addon-uploads-20160330" >Uploads</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to add the uploaded files to the Media Library, and the support for new mime types</div></div><div>
297
  <label for="addon-signature-20171025" style="font-weight:bold;"><input type="checkbox" disabled id="addon-signature-20171025" name="cfte_addons" value="addon-signature-20171025">Signature Fields</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to replace form fields with "Signature" fields</div></div><div>
 
298
  <label for="addon-signature-20171025" style="font-weight:bold;"><input type="checkbox" disabled id="addon-paymentcalculations-20171025" name="cfte_addons" value="addon-paymentcalculations-20171025">Payment Calculations</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to add the number values on dropdowns / checkboxes / radiobuttons to the total price for payments</div></div>
299
  </fieldset>
300
 
143
  $message = "Report settings updated";
144
  }
145
 
146
+ if (isset($_GET["confirm"]))
147
+ $message = 'Settings updated';
148
 
149
  if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>";
150
 
297
  <div><label for="addon-cfficalattachment-20180730" style="font-weight:bold;"><input type="checkbox" disabled id="addon-cfficalattachment-20180730" name="cfte_addons" value="addon-cfficalattachment-20180730" >iCal Export Attached</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to attach an iCal file with the date of a field</div></div><div>
298
  <label for="addon-uploads-20160330" style="font-weight:bold;"><input type="checkbox" disabled id="addon-uploads-20160330" name="cfte_addons" value="addon-uploads-20160330" >Uploads</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to add the uploaded files to the Media Library, and the support for new mime types</div></div><div>
299
  <label for="addon-signature-20171025" style="font-weight:bold;"><input type="checkbox" disabled id="addon-signature-20171025" name="cfte_addons" value="addon-signature-20171025">Signature Fields</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to replace form fields with "Signature" fields</div></div><div>
300
+ <label for="addon-coupons-20171025" style="font-weight:bold;"><input type="checkbox" disabled id="addon-coupons-20171025" name="cfte_addons" value="addon-coupons-20171025">Coupon Codes</label> <div style="font-style:italic;padding-left:20px;">The add-on adds support for coupons / discounts codes for payments</div></div> <div>
301
  <label for="addon-signature-20171025" style="font-weight:bold;"><input type="checkbox" disabled id="addon-paymentcalculations-20171025" name="cfte_addons" value="addon-paymentcalculations-20171025">Payment Calculations</label> <div style="font-style:italic;padding-left:20px;">The add-on allows to add the number values on dropdowns / checkboxes / radiobuttons to the total price for payments</div></div>
302
  </fieldset>
303
 
cp-admin-int.inc.php CHANGED
@@ -38,7 +38,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
38
 
39
  </script>
40
  <div class="wrap">
41
- <h1><?php _e('Edit','cpappb'); ?> - <?php echo $this->get_option('form_name','Contact Form'); ?> - <?php echo $this->plugin_name; ?></h1>
42
 
43
 
44
  <form method="post" action="" name="cpformconf">
@@ -48,8 +48,8 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
48
 
49
 
50
  <div id="topadminsection" class="ahb-buttons-container">
51
- <input type="submit" class="button button-primary ahb-save-btn" name="savereturn" value="<?php _e('Save Changes and Return','cpappb'); ?>" />
52
- <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;<?php _e('Return to the contact forms list','cpappb'); ?></a>
53
  <div class="clear"></div>
54
  </div>
55
 
@@ -58,27 +58,27 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
58
  <div class="ahb-breadcrumb">
59
  <div class="ahb-step ahb-step-active" data-step="1">
60
  <i>1</i>
61
- <label><?php _e('Email Settings','cpappb'); ?></label>
62
  </div>
63
  <div class="ahb-step" data-step="2">
64
  <i>2</i>
65
- <label><?php _e('Form Builder','cpappb'); ?></label>
66
  </div>
67
  <div class="ahb-step" data-step="3">
68
  <i>3</i>
69
- <label><?php _e('Autoreply to Customer','cpappb'); ?></label>
70
  </div>
71
  <div class="ahb-step" data-step="4">
72
  <i>4</i>
73
- <label><?php _e('Texts','cpappb'); ?></label>
74
  </div>
75
  <div class="ahb-step" data-step="5">
76
  <i>5</i>
77
- <label><?php _e('Antispam','cpappb'); ?></label>
78
  </div>
79
  <div class="ahb-step" data-step="6">
80
  <i>6</i>
81
- <label><?php _e('Reports','cpappb'); ?></label>
82
  </div>
83
  </div>
84
 
@@ -226,14 +226,14 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
226
  // In some cases a third party plugin or WP theme affect the expected jQuery scripts, this code autodetect that and provide an alternative solution
227
  document.write ("<"+"script type='text/javascript' src='<?php echo plugins_url('js/jQuery.stringify.js', __FILE__); ?>'></"+"script>");
228
  document.write ("<"+"script type='text/javascript' src='<?php echo plugins_url('js/jquery.validate.js', __FILE__); ?>'></"+"script>");
229
- document.write ("<"+"script type='text/javascript' src='<?php echo plugins_url('js/fbuilderf.jquery.js', __FILE__); ?>'></"+"script>");
230
  }
231
  </script>
232
 
233
  <script>
234
  jQuery(window).on('load', function(){
235
  $easyFormQuery(document).ready(function() {
236
- var f = $easyFormQuery("#fbuilder").fbuilder();
237
  f.fBuild.loadData("form_structure");
238
 
239
  $easyFormQuery("#saveForm").click(function() {
@@ -640,7 +640,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
640
 
641
 
642
  <div class="ahb-buttons-container">
643
- <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;<?php _e('Return to the contact forms list','cpappb'); ?></a>
644
  </div>
645
 
646
 
38
 
39
  </script>
40
  <div class="wrap">
41
+ <h1><?php _e('Edit','cfte'); ?> - <?php echo $this->get_option('form_name','Contact Form'); ?> - <?php echo $this->plugin_name; ?></h1>
42
 
43
 
44
  <form method="post" action="" name="cpformconf">
48
 
49
 
50
  <div id="topadminsection" class="ahb-buttons-container">
51
+ <input type="submit" class="button button-primary ahb-save-btn" name="savereturn" value="<?php _e('Save Changes and Return','cfte'); ?>" />
52
+ <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;<?php _e('Return to the contact forms list','cfte'); ?></a>
53
  <div class="clear"></div>
54
  </div>
55
 
58
  <div class="ahb-breadcrumb">
59
  <div class="ahb-step ahb-step-active" data-step="1">
60
  <i>1</i>
61
+ <label><?php _e('Email Settings','cfte'); ?></label>
62
  </div>
63
  <div class="ahb-step" data-step="2">
64
  <i>2</i>
65
+ <label><?php _e('Form Builder','cfte'); ?></label>
66
  </div>
67
  <div class="ahb-step" data-step="3">
68
  <i>3</i>
69
+ <label><?php _e('Autoreply to Customer','cfte'); ?></label>
70
  </div>
71
  <div class="ahb-step" data-step="4">
72
  <i>4</i>
73
+ <label><?php _e('Texts','cfte'); ?></label>
74
  </div>
75
  <div class="ahb-step" data-step="5">
76
  <i>5</i>
77
+ <label><?php _e('Antispam','cfte'); ?></label>
78
  </div>
79
  <div class="ahb-step" data-step="6">
80
  <i>6</i>
81
+ <label><?php _e('Reports','cfte'); ?></label>
82
  </div>
83
  </div>
84
 
226
  // In some cases a third party plugin or WP theme affect the expected jQuery scripts, this code autodetect that and provide an alternative solution
227
  document.write ("<"+"script type='text/javascript' src='<?php echo plugins_url('js/jQuery.stringify.js', __FILE__); ?>'></"+"script>");
228
  document.write ("<"+"script type='text/javascript' src='<?php echo plugins_url('js/jquery.validate.js', __FILE__); ?>'></"+"script>");
229
+ document.write ("<"+"script type='text/javascript' src='<?php echo plugins_url('js/fbuilderf.jquery.js?nc=1', __FILE__); ?>'></"+"script>");
230
  }
231
  </script>
232
 
233
  <script>
234
  jQuery(window).on('load', function(){
235
  $easyFormQuery(document).ready(function() {
236
+ var f = $easyFormQuery("#fbuilder").CFTEfbuilder();
237
  f.fBuild.loadData("form_structure");
238
 
239
  $easyFormQuery("#saveForm").click(function() {
640
 
641
 
642
  <div class="ahb-buttons-container">
643
+ <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;<?php _e('Return to the contact forms list','cfte'); ?></a>
644
  </div>
645
 
646
 
cp-main-class.inc.php CHANGED
@@ -220,7 +220,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
220
  wp_register_script($this->prefix.'_validate_script', plugins_url('/js/jquery.validate.js', __FILE__));
221
 
222
  wp_enqueue_script( $this->prefix.'_builder_script',
223
- plugins_url('/js/fbuilderf.jquery.js', __FILE__),array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-dialog","jquery-ui-position","jquery-ui-tooltip","query-stringify",$this->prefix."_validate_script"), false, true );
224
 
225
  wp_localize_script($this->prefix.'_builder_script', $this->prefix.'_fbuilder_config'.('_'.$this->print_counter), array('obj' =>
226
  '{"pub":true,"identifier":"'.('_'.$this->print_counter).'","messages": {
@@ -368,7 +368,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
368
  var <?php echo $this->prefix; ?>_fbuilder_config<?php echo '_'.$this->print_counter; ?> = {"obj":"{\"pub\":true,\"identifier\":\"<?php echo '_'.$this->print_counter; ?>\",\"messages\": {\n \t \t\"required\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_is_required', CP_CFEMAIL_DEFAULT_vs_text_is_required));?>\",\n \t \t\"email\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_is_email', CP_CFEMAIL_DEFAULT_vs_text_is_email));?>\",\n \t \t\"datemmddyyyy\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_datemmddyyyy', CP_CFEMAIL_DEFAULT_vs_text_datemmddyyyy));?>\",\n \t \t\"dateddmmyyyy\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_dateddmmyyyy', CP_CFEMAIL_DEFAULT_vs_text_dateddmmyyyy));?>\",\n \t \t\"number\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_number', CP_CFEMAIL_DEFAULT_vs_text_number));?>\",\n \t \t\"digits\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_digits', CP_CFEMAIL_DEFAULT_vs_text_digits));?>\",\n \t \t\"max\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_max', CP_CFEMAIL_DEFAULT_vs_text_max));?>\",\n \t \t\"min\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_min', CP_CFEMAIL_DEFAULT_vs_text_min));?>\",\"previous\": \"<?php echo str_replace(array('"'),array('\\"'),$previous_label); ?>\",\"next\": \"<?php echo str_replace(array('"'),array('\\"'),$next_label); ?>\"\n \t }}"};
369
  /* ]]> */
370
  </script>
371
- <script type='text/javascript' src='<?php echo plugins_url('js/fbuilderf.jquery.js', __FILE__); ?>'></script>
372
  <?php
373
  }
374
  $this->print_counter++;
@@ -464,7 +464,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
464
  wp_deregister_script($this->prefix.'_validate_script');
465
  wp_register_script($this->prefix.'_validate_script', plugins_url('/js/jquery.validate.js', __FILE__));
466
  wp_enqueue_script( $this->prefix.'_builder_script',
467
- plugins_url('/js/fbuilderf.jquery.js', __FILE__),array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-position","jquery-ui-tooltip","query-stringify",$this->prefix."_validate_script"), false, true );
468
 
469
  $forms = array();
470
  $rows = $wpdb->get_results("SELECT id,form_name FROM ".$wpdb->prefix.$this->table_items." ORDER BY form_name");
@@ -500,7 +500,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
500
  {
501
  wp_deregister_script('query-stringify');
502
  wp_register_script('query-stringify', plugins_url('/js/jQuery.stringify.js', __FILE__));
503
- wp_enqueue_script( $this->prefix.'_builder_script', plugins_url('/js/fbuilderf.jquery.js', __FILE__),array("jquery","jquery-ui-core","jquery-ui-sortable","jquery-ui-tabs","jquery-ui-droppable","jquery-ui-button","query-stringify","jquery-ui-datepicker") );
504
  wp_enqueue_style('cfte-adminstyles', plugins_url('css/style.css', __FILE__) );
505
  wp_enqueue_style('cfte-admincalendarstyles', plugins_url('css/cupertino/jquery-ui-1.8.20.custom.css', __FILE__) );
506
  wp_enqueue_style('cfte-newadminstyle', plugins_url('/css/newadminlayout.css', __FILE__));
220
  wp_register_script($this->prefix.'_validate_script', plugins_url('/js/jquery.validate.js', __FILE__));
221
 
222
  wp_enqueue_script( $this->prefix.'_builder_script',
223
+ plugins_url('/js/fbuilderf.jquery.js?nc=1', __FILE__),array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-dialog","jquery-ui-position","jquery-ui-tooltip","query-stringify",$this->prefix."_validate_script"), false, true );
224
 
225
  wp_localize_script($this->prefix.'_builder_script', $this->prefix.'_fbuilder_config'.('_'.$this->print_counter), array('obj' =>
226
  '{"pub":true,"identifier":"'.('_'.$this->print_counter).'","messages": {
368
  var <?php echo $this->prefix; ?>_fbuilder_config<?php echo '_'.$this->print_counter; ?> = {"obj":"{\"pub\":true,\"identifier\":\"<?php echo '_'.$this->print_counter; ?>\",\"messages\": {\n \t \t\"required\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_is_required', CP_CFEMAIL_DEFAULT_vs_text_is_required));?>\",\n \t \t\"email\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_is_email', CP_CFEMAIL_DEFAULT_vs_text_is_email));?>\",\n \t \t\"datemmddyyyy\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_datemmddyyyy', CP_CFEMAIL_DEFAULT_vs_text_datemmddyyyy));?>\",\n \t \t\"dateddmmyyyy\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_dateddmmyyyy', CP_CFEMAIL_DEFAULT_vs_text_dateddmmyyyy));?>\",\n \t \t\"number\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_number', CP_CFEMAIL_DEFAULT_vs_text_number));?>\",\n \t \t\"digits\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_digits', CP_CFEMAIL_DEFAULT_vs_text_digits));?>\",\n \t \t\"max\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_max', CP_CFEMAIL_DEFAULT_vs_text_max));?>\",\n \t \t\"min\": \"<?php echo str_replace(array('"'),array('\\"'),$this->get_option('vs_text_min', CP_CFEMAIL_DEFAULT_vs_text_min));?>\",\"previous\": \"<?php echo str_replace(array('"'),array('\\"'),$previous_label); ?>\",\"next\": \"<?php echo str_replace(array('"'),array('\\"'),$next_label); ?>\"\n \t }}"};
369
  /* ]]> */
370
  </script>
371
+ <script type='text/javascript' src='<?php echo plugins_url('js/fbuilderf.jquery.js?nc=1', __FILE__); ?>'></script>
372
  <?php
373
  }
374
  $this->print_counter++;
464
  wp_deregister_script($this->prefix.'_validate_script');
465
  wp_register_script($this->prefix.'_validate_script', plugins_url('/js/jquery.validate.js', __FILE__));
466
  wp_enqueue_script( $this->prefix.'_builder_script',
467
+ plugins_url('/js/fbuilderf.jquery.js?nc=1', __FILE__),array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-position","jquery-ui-tooltip","query-stringify",$this->prefix."_validate_script"), false, true );
468
 
469
  $forms = array();
470
  $rows = $wpdb->get_results("SELECT id,form_name FROM ".$wpdb->prefix.$this->table_items." ORDER BY form_name");
500
  {
501
  wp_deregister_script('query-stringify');
502
  wp_register_script('query-stringify', plugins_url('/js/jQuery.stringify.js', __FILE__));
503
+ wp_enqueue_script( $this->prefix.'_builder_script', plugins_url('/js/fbuilderf.jquery.js?nc=1', __FILE__),array("jquery","jquery-ui-core","jquery-ui-sortable","jquery-ui-tabs","jquery-ui-droppable","jquery-ui-button","query-stringify","jquery-ui-datepicker") );
504
  wp_enqueue_style('cfte-adminstyles', plugins_url('css/style.css', __FILE__) );
505
  wp_enqueue_style('cfte-admincalendarstyles', plugins_url('css/cupertino/jquery-ui-1.8.20.custom.css', __FILE__) );
506
  wp_enqueue_style('cfte-newadminstyle', plugins_url('/css/newadminlayout.css', __FILE__));
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.78
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.79
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
js/block.js CHANGED
@@ -3,7 +3,7 @@ function cfte_renderForm(id) {
3
  {
4
  try {
5
  var cp_appbooking_fbuilder_myconfig = {"obj":"{\"pub\":true,\"identifier\":\"_"+id+"\",\"messages\": {}}"};
6
- var f = $("#fbuilder_"+id).fbuilder($.parseJSON(cp_appbooking_fbuilder_myconfig.obj));
7
  f.fBuild.loadData("form_structure"+id);
8
  } catch (e) { setTimeout ('cfte_renderForm('+id+')',500); }
9
  }
3
  {
4
  try {
5
  var cp_appbooking_fbuilder_myconfig = {"obj":"{\"pub\":true,\"identifier\":\"_"+id+"\",\"messages\": {}}"};
6
+ var f = $("#fbuilder_"+id).CFTEfbuilder($.parseJSON(cp_appbooking_fbuilder_myconfig.obj));
7
  f.fBuild.loadData("form_structure"+id);
8
  } catch (e) { setTimeout ('cfte_renderForm('+id+')',500); }
9
  }
js/fbuilderf.jquery.js CHANGED
@@ -1,7 +1,7 @@
1
  /** jQuery.holdReady( true ); */
2
  jQuery(window).on('load', function(){
3
  (function($) {
4
- $.fn.fbuilder = function(options){
5
  var opt = $.extend({},
6
  {
7
  typeList:new Array({id:"ftext",name:"Single Line"},{id:"fnumber",name:"Number"},{id:"femail",name:"Email"},{id:"fdate",name:"Date Time"},{id:"ftextarea",name:"Text Area"},{id:"fcurrency",name:"Currency"},{id:"fcheck",name:"Checkboxes"},{id:"fradio",name:"Radio Buttons"},{id:"fdropdown",name:"Dropdown"},{id:"ffile",name:"Upload File"},{id:"fpassword",name:"Password"},{id:"fPhone",name:"Phone field"},{id:"fCommentArea",name:"Instruct. Text"},{id:"fhidden",name:"Hidden"},{id:"fSectionBreak",name:"Section break"},{id:"fPageBreak",name:"Page break"},{id:"fsummary",name:"Summary"},{id:"fMedia",name:"Media"},{id:"fButton",name:"Button"},{id:"fhtml",name:"HTML content"},{id:"facceptance",name:"Accept / GDPR"},{id:"category",name:"Container Controls"},{id:"ffieldset",name:"Fieldset"},{id:"fdiv",name:"Div"},{id:"category",name:"Form Controls with Datasource Connection"},{id:"ftextds",name:"Line Text DS"},{id:"femailds",name:"Email DS"},{id:"ftextareads",name:"Text Area DS"},{id:"fcheckds",name:"Checkboxes DS"},{id:"fradiods",name:"Radio Btns DS"},{id:"fPhoneds",name:"Phone DS"},{id:"fdropdownds",name:"Dropdown DS"},{id:"fhiddends",name:"Hidden DS"},{id:"fnumberds",name:"Number DS"},{id:"fcurrencyds",name:"Currency DS"}),
@@ -1387,7 +1387,7 @@ jQuery(window).on('load', function(){
1387
  {
1388
  try {
1389
  var cp_contactformtoemail_fbuilder_config = eval("cp_contactformtoemail_fbuilder_config"+fnum);
1390
- var f = $("#fbuilder"+fnum).fbuilder($.parseJSON(cp_contactformtoemail_fbuilder_config.obj));
1391
  f.fBuild.loadData("form_structure"+fnum);
1392
  $("#cp_contactformtoemail_pform"+fnum).validate({
1393
  ignore:".ignore",
1
  /** jQuery.holdReady( true ); */
2
  jQuery(window).on('load', function(){
3
  (function($) {
4
+ $.fn.CFTEfbuilder = function(options){
5
  var opt = $.extend({},
6
  {
7
  typeList:new Array({id:"ftext",name:"Single Line"},{id:"fnumber",name:"Number"},{id:"femail",name:"Email"},{id:"fdate",name:"Date Time"},{id:"ftextarea",name:"Text Area"},{id:"fcurrency",name:"Currency"},{id:"fcheck",name:"Checkboxes"},{id:"fradio",name:"Radio Buttons"},{id:"fdropdown",name:"Dropdown"},{id:"ffile",name:"Upload File"},{id:"fpassword",name:"Password"},{id:"fPhone",name:"Phone field"},{id:"fCommentArea",name:"Instruct. Text"},{id:"fhidden",name:"Hidden"},{id:"fSectionBreak",name:"Section break"},{id:"fPageBreak",name:"Page break"},{id:"fsummary",name:"Summary"},{id:"fMedia",name:"Media"},{id:"fButton",name:"Button"},{id:"fhtml",name:"HTML content"},{id:"facceptance",name:"Accept / GDPR"},{id:"category",name:"Container Controls"},{id:"ffieldset",name:"Fieldset"},{id:"fdiv",name:"Div"},{id:"category",name:"Form Controls with Datasource Connection"},{id:"ftextds",name:"Line Text DS"},{id:"femailds",name:"Email DS"},{id:"ftextareads",name:"Text Area DS"},{id:"fcheckds",name:"Checkboxes DS"},{id:"fradiods",name:"Radio Btns DS"},{id:"fPhoneds",name:"Phone DS"},{id:"fdropdownds",name:"Dropdown DS"},{id:"fhiddends",name:"Hidden DS"},{id:"fnumberds",name:"Number DS"},{id:"fcurrencyds",name:"Currency DS"}),
1387
  {
1388
  try {
1389
  var cp_contactformtoemail_fbuilder_config = eval("cp_contactformtoemail_fbuilder_config"+fnum);
1390
+ var f = $("#fbuilder"+fnum).CFTEfbuilder($.parseJSON(cp_contactformtoemail_fbuilder_config.obj));
1391
  f.fBuild.loadData("form_structure"+fnum);
1392
  $("#cp_contactformtoemail_pform"+fnum).validate({
1393
  ignore:".ignore",