Contact Form Email - Version 1.2.47

Version Description

  • GDPR updates and small bug fixes
Download this release

Release Info

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

Code changes from version 1.2.46 to 1.2.47

README.txt CHANGED
@@ -450,6 +450,9 @@ When you click a field already added into the contact form builder area, you can
450
 
451
  == Changelog ==
452
 
 
 
 
453
  = 1.2.46 =
454
  * Better activation and deactivation process
455
 
@@ -895,5 +898,5 @@ When you click a field already added into the contact form builder area, you can
895
 
896
  == Upgrade Notice ==
897
 
898
- = 1.2.46 =
899
- * Better activation and deactivation process
450
 
451
  == Changelog ==
452
 
453
+ = 1.2.47 =
454
+ * GDPR updates and small bug fixes
455
+
456
  = 1.2.46 =
457
  * Better activation and deactivation process
458
 
898
 
899
  == Upgrade Notice ==
900
 
901
+ = 1.2.47 =
902
+ * GDPR updates and small bug fixes
cp-feedback.php CHANGED
@@ -65,7 +65,8 @@ function cpcfte_feedback() {
65
  function cpcfte_feedback_javascript() { ?>
66
  <script type="text/javascript" >
67
 
68
- window.onload = function(){
 
69
  document.querySelector('[data-slug="contact-form-to-email"] .deactivate a').addEventListener('click', function(event){
70
  event.preventDefault()
71
  var urlRedirect = document.querySelector('[data-slug="contact-form-to-email"] .deactivate a').getAttribute('href');
@@ -146,7 +147,7 @@ window.onload = function(){
146
  ]
147
  });
148
  })
149
- }
150
 
151
  function cpabc_update_reason(field)
152
  {
65
  function cpcfte_feedback_javascript() { ?>
66
  <script type="text/javascript" >
67
 
68
+ $ = jQuery.noConflict()
69
+ $( window ).load(function() {
70
  document.querySelector('[data-slug="contact-form-to-email"] .deactivate a').addEventListener('click', function(event){
71
  event.preventDefault()
72
  var urlRedirect = document.querySelector('[data-slug="contact-form-to-email"] .deactivate a').getAttribute('href');
147
  ]
148
  });
149
  })
150
+ });
151
 
152
  function cpabc_update_reason(field)
153
  {
cp-main-class.inc.php CHANGED
@@ -687,7 +687,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
687
  $from_1 = '"'.$from_1.'" <'.$from_1.'>';
688
  wp_mail(trim($item), $subject, $message,
689
  "From: ".$from_1."\r\n".
690
- ($replyto!=''?"Reply-To: \"$replyto\" <".$replyto.">\r\n":'').
691
  $content_type.
692
  "X-Mailer: PHP/" . phpversion(), $attachments);
693
  }
687
  $from_1 = '"'.$from_1.'" <'.$from_1.'>';
688
  wp_mail(trim($item), $subject, $message,
689
  "From: ".$from_1."\r\n".
690
+ //($replyto!=''?"Reply-To: \"$replyto\" <".$replyto.">\r\n":'').
691
  $content_type.
692
  "X-Mailer: PHP/" . phpversion(), $attachments);
693
  }
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.46
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.47
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
js/fbuilderf.jquery.js CHANGED
@@ -799,7 +799,7 @@ jQuery(window).on('load', function(){
799
  dlg += '<div class="cff-dialog hide"><span class="cff-close-dlg"></span><div class="cff-dialog-content">'+me.message+'</div></div>'
800
  }
801
  return '<div class="fields '+me.csslayout+' cff-checkbox-field" id="field'+me.identifier+'-'+me.index+'"><div class="dfield">'+
802
- '<div class="one_column"><label><input name="'+me.name+'" id="'+me.name+'" class="field required" value="'+htmlEncode(me.value)+'" vt="'+htmlEncode((/^\s*$/.test(me.value)) ? me.title : me.value)+'" type="checkbox" /> <span>'+
803
  htmlDecode( label )+''+((me.required)?'<span class="r">*</span>':'')+
804
  '</span></label></div>'+
805
  dlg+
799
  dlg += '<div class="cff-dialog hide"><span class="cff-close-dlg"></span><div class="cff-dialog-content">'+me.message+'</div></div>'
800
  }
801
  return '<div class="fields '+me.csslayout+' cff-checkbox-field" id="field'+me.identifier+'-'+me.index+'"><div class="dfield">'+
802
+ '<div class="one_column"><label><input name="'+me.name+'" id="'+me.name+'" class="field '+((this.required)?" required":"")+'" value="'+htmlEncode(me.value)+'" vt="'+htmlEncode((/^\s*$/.test(me.value)) ? me.title : me.value)+'" type="checkbox" /> <span>'+
803
  htmlDecode( label )+''+((me.required)?'<span class="r">*</span>':'')+
804
  '</span></label></div>'+
805
  dlg+