Contact Form Clean and Simple - Version 4.7.0

Version Description

  • Tested with Wordpress version 4.9.6
  • Added consent to contact checkbox for GDPR compliance
Download this release

Release Info

Developer megnicholas
Plugin Icon wp plugin Contact Form Clean and Simple
Version 4.7.0
Comparing to
See all releases

Code changes from version 4.6.2 to 4.7.0

class.cscf_contact.php CHANGED
@@ -11,6 +11,7 @@ class cscf_Contact {
11
  var $Message;
12
  var $EmailToSender;
13
  var $ErrorMessage;
 
14
  var $RecaptchaPublicKey;
15
  var $RecaptchaPrivateKey;
16
  var $Errors;
@@ -40,6 +41,11 @@ class cscf_Contact {
40
  if ( isset( $_POST['post-id'] ) ) {
41
  $this->PostID = $_POST['post-id'];
42
  }
 
 
 
 
 
43
  unset( $_POST['cscf'] );
44
  }
45
 
@@ -55,7 +61,6 @@ class cscf_Contact {
55
  }
56
 
57
  //check nonce
58
-
59
  if ( ! wp_verify_nonce( $_POST['cscf_nonce'], 'cscf_contact' ) ) {
60
  return false;
61
  }
@@ -68,7 +73,6 @@ class cscf_Contact {
68
  }
69
 
70
  //email
71
-
72
  if ( strlen( $this->Email ) == 0 ) {
73
  $this->Errors['email'] = __( 'Please give your email address.', 'clean-and-simple-contact-form-by-meg-nicholas' );
74
  }
@@ -81,30 +85,32 @@ class cscf_Contact {
81
  }
82
 
83
  //name
84
-
85
  if ( strlen( $this->Name ) == 0 ) {
86
  $this->Errors['name'] = __( 'Please give your name.', 'clean-and-simple-contact-form-by-meg-nicholas' );
87
  }
88
 
89
  //message
90
-
91
  if ( strlen( $this->Message ) == 0 ) {
92
  $this->Errors['message'] = __( 'Please enter a message.', 'clean-and-simple-contact-form-by-meg-nicholas' );
93
  }
94
 
95
  //email invalid address
96
-
97
  if ( strlen( $this->Email ) > 0 && ! filter_var( $this->Email, FILTER_VALIDATE_EMAIL ) ) {
98
  $this->Errors['email'] = __( 'Please enter a valid email address.', 'clean-and-simple-contact-form-by-meg-nicholas' );
99
  }
100
 
101
- //check recaptcha but only if we have keys
 
 
 
 
 
102
 
 
103
  if ( $this->RecaptchaPublicKey <> '' && $this->RecaptchaPrivateKey <> '' ) {
104
  $resp = csf_RecaptchaV2::VerifyResponse( $_SERVER["REMOTE_ADDR"], $this->RecaptchaPrivateKey, $_POST["g-recaptcha-response"] );
105
 
106
  if ( ! $resp->success ) {
107
- // $this->Errors['recaptcha'] = __('Sorry the code wasn\'t entered correctly please try again.', 'clean-and-simple-contact-form-by-meg-nicholas');
108
  $this->Errors['recaptcha'] = __( 'Please solve the recaptcha to continue.', 'clean-and-simple-contact-form-by-meg-nicholas' );
109
  }
110
  }
@@ -141,7 +147,9 @@ class cscf_Contact {
141
  $message = __( 'From: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . $this->Name . "\n\n";
142
  $message .= __( 'Email: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . $this->Email . "\n\n";
143
  $message .= __( 'Page URL: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . get_permalink( $this->PostID ) . "\n\n";
144
- $message .= __( 'Message:', 'clean-and-simple-contact-form-by-meg-nicholas' ) . "\n\n" . $this->Message;
 
 
145
 
146
  $result = ( wp_mail( cscf_PluginSettings::RecipientEmails(), cscf_PluginSettings::Subject(), stripslashes( $message ), $header ) );
147
 
11
  var $Message;
12
  var $EmailToSender;
13
  var $ErrorMessage;
14
+ var $ContactConsent;
15
  var $RecaptchaPublicKey;
16
  var $RecaptchaPrivateKey;
17
  var $Errors;
41
  if ( isset( $_POST['post-id'] ) ) {
42
  $this->PostID = $_POST['post-id'];
43
  }
44
+
45
+ if ( cscf_PluginSettings::ContactConsent() ) {
46
+ $this->ContactConsent = isset( $cscf['contact-consent'] );
47
+ }
48
+
49
  unset( $_POST['cscf'] );
50
  }
51
 
61
  }
62
 
63
  //check nonce
 
64
  if ( ! wp_verify_nonce( $_POST['cscf_nonce'], 'cscf_contact' ) ) {
65
  return false;
66
  }
73
  }
74
 
75
  //email
 
76
  if ( strlen( $this->Email ) == 0 ) {
77
  $this->Errors['email'] = __( 'Please give your email address.', 'clean-and-simple-contact-form-by-meg-nicholas' );
78
  }
85
  }
86
 
87
  //name
 
88
  if ( strlen( $this->Name ) == 0 ) {
89
  $this->Errors['name'] = __( 'Please give your name.', 'clean-and-simple-contact-form-by-meg-nicholas' );
90
  }
91
 
92
  //message
 
93
  if ( strlen( $this->Message ) == 0 ) {
94
  $this->Errors['message'] = __( 'Please enter a message.', 'clean-and-simple-contact-form-by-meg-nicholas' );
95
  }
96
 
97
  //email invalid address
 
98
  if ( strlen( $this->Email ) > 0 && ! filter_var( $this->Email, FILTER_VALIDATE_EMAIL ) ) {
99
  $this->Errors['email'] = __( 'Please enter a valid email address.', 'clean-and-simple-contact-form-by-meg-nicholas' );
100
  }
101
 
102
+ //contact consent
103
+ if ( cscf_PluginSettings::ContactConsent() ) {
104
+ if ( ! $this->ContactConsent ) {
105
+ $this->Errors['contact-consent'] = __( 'Please give your consent.', 'clean-and-simple-contact-form-by-meg-nicholas' );
106
+ }
107
+ }
108
 
109
+ //check recaptcha but only if we have keys
110
  if ( $this->RecaptchaPublicKey <> '' && $this->RecaptchaPrivateKey <> '' ) {
111
  $resp = csf_RecaptchaV2::VerifyResponse( $_SERVER["REMOTE_ADDR"], $this->RecaptchaPrivateKey, $_POST["g-recaptcha-response"] );
112
 
113
  if ( ! $resp->success ) {
 
114
  $this->Errors['recaptcha'] = __( 'Please solve the recaptcha to continue.', 'clean-and-simple-contact-form-by-meg-nicholas' );
115
  }
116
  }
147
  $message = __( 'From: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . $this->Name . "\n\n";
148
  $message .= __( 'Email: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . $this->Email . "\n\n";
149
  $message .= __( 'Page URL: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . get_permalink( $this->PostID ) . "\n\n";
150
+ $message .= __( 'Message:', 'clean-and-simple-contact-form-by-meg-nicholas' ) . "\n\n" . $this->Message . "\n\n";
151
+ $message .= cscf_PluginSettings::ContactConsentMsg() . ': ' . ( $this->ContactConsent ? __( 'yes', 'clean-and-simple-contact-form-by-meg-nicholas' ) : __( 'no', 'clean-and-simple-contact-form-by-meg-nicholas' ) );
152
+
153
 
154
  $result = ( wp_mail( cscf_PluginSettings::RecipientEmails(), cscf_PluginSettings::Subject(), stripslashes( $message ), $header ) );
155
 
class.cscf_pluginsettings.php CHANGED
@@ -122,6 +122,27 @@ class cscf_PluginSettings
122
 
123
  }
124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  static
126
  function IsJetPackContactFormEnabled()
127
  {
122
 
123
  }
124
 
125
+
126
+ static
127
+ function ContactConsent()
128
+ {
129
+
130
+ $options = get_option(CSCF_OPTIONS_KEY);
131
+
132
+ return isset($options['contact-consent']) ? true : false;
133
+
134
+ }
135
+
136
+ static
137
+ function ContactConsentMsg()
138
+ {
139
+
140
+ $options = get_option(CSCF_OPTIONS_KEY);
141
+
142
+ return isset( $options['contact-consent-msg'] ) ? $options['contact-consent-msg'] : __( 'I consent to my contact details being stored', 'clean-and-simple-contact-form-by-meg-nicholas' );
143
+
144
+ }
145
+
146
  static
147
  function IsJetPackContactFormEnabled()
148
  {
class.cscf_settings.php CHANGED
@@ -38,7 +38,7 @@ class cscf_settings
38
  {
39
  ?>
40
 
41
- <?php screen_icon(); ?><h2><?php _e('Clean and Simple Contact Form Settings', 'clean-and-simple-contact-form-by-meg-nicholas'); ?></h2>
42
  <hr/>
43
 
44
  <div style="float:right;position: relative;width:250px;">
@@ -151,12 +151,24 @@ class cscf_settings
151
  ), 'contact-form-settings', 'section_message', array(
152
  'confirm-email'
153
  ));
154
- add_settings_field('email-sender', '<span style="color:red;">' . __('*New*','clean-and-simple-contact-form-by-meg-nicholas') . '</span> ' . __('Allow users to email themselves a copy :', 'clean-and-simple-contact-form-by-meg-nicholas'), array(
155
  $this,
156
  'create_fields'
157
  ), 'contact-form-settings', 'section_message', array(
158
  'email-sender'
159
  ));
 
 
 
 
 
 
 
 
 
 
 
 
160
  add_settings_field('override-from', __('Override \'From\' Address :', 'clean-and-simple-contact-form-by-meg-nicholas'), array(
161
  $this,
162
  'create_fields'
@@ -355,6 +367,16 @@ class cscf_settings
355
  ?><input type="checkbox" <?php echo $checked; ?> id="email-sender"
356
  name="<?php echo CSCF_OPTIONS_KEY; ?>[email-sender]"><?php
357
  break;
 
 
 
 
 
 
 
 
 
 
358
  case 'from-email':
359
  $disabled = cscf_PluginSettings::OverrideFrom() == false ? "readonly" : "";
360
  ?><input <?php echo $disabled; ?> type="text" size="60" id="from-email"
38
  {
39
  ?>
40
 
41
+ <h2><?php _e('Clean and Simple Contact Form Settings', 'clean-and-simple-contact-form-by-meg-nicholas'); ?></h2>
42
  <hr/>
43
 
44
  <div style="float:right;position: relative;width:250px;">
151
  ), 'contact-form-settings', 'section_message', array(
152
  'confirm-email'
153
  ));
154
+ add_settings_field('email-sender', __('Allow users to email themselves a copy :', 'clean-and-simple-contact-form-by-meg-nicholas'), array(
155
  $this,
156
  'create_fields'
157
  ), 'contact-form-settings', 'section_message', array(
158
  'email-sender'
159
  ));
160
+ add_settings_field('contact-consent', '<span style="color:red;">' . __('*New*','clean-and-simple-contact-form-by-meg-nicholas') . '</span> ' . __('Add a consent checkbox :', 'clean-and-simple-contact-form-by-meg-nicholas'), array(
161
+ $this,
162
+ 'create_fields'
163
+ ), 'contact-form-settings', 'section_message', array(
164
+ 'contact-consent'
165
+ ));
166
+ add_settings_field('contact-consent-msg', '<span style="color:red;">' . __('*New*','clean-and-simple-contact-form-by-meg-nicholas') . '</span> ' . __('Consent message :', 'clean-and-simple-contact-form-by-meg-nicholas'), array(
167
+ $this,
168
+ 'create_fields'
169
+ ), 'contact-form-settings', 'section_message', array(
170
+ 'contact-consent-msg'
171
+ ));
172
  add_settings_field('override-from', __('Override \'From\' Address :', 'clean-and-simple-contact-form-by-meg-nicholas'), array(
173
  $this,
174
  'create_fields'
367
  ?><input type="checkbox" <?php echo $checked; ?> id="email-sender"
368
  name="<?php echo CSCF_OPTIONS_KEY; ?>[email-sender]"><?php
369
  break;
370
+ case 'contact-consent':
371
+ $checked = cscf_PluginSettings::ContactConsent() == true ? "checked" : "";
372
+ ?><input type="checkbox" <?php echo $checked; ?> id="contact-consent"
373
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[contact-consent]"><?php
374
+ break;
375
+ case 'contact-consent-msg':
376
+ ?><input type="text" size="60" id="contact-consent-msg"
377
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[contact-consent-msg]"
378
+ value="<?php echo cscf_PluginSettings::ContactConsentMsg(); ?>"><?php
379
+ break;
380
  case 'from-email':
381
  $disabled = cscf_PluginSettings::OverrideFrom() == false ? "readonly" : "";
382
  ?><input <?php echo $disabled; ?> type="text" size="60" id="from-email"
clean-and-simple-contact-form-by-meg-nicholas.php CHANGED
@@ -7,7 +7,7 @@
7
  Plugin Name: Clean and Simple Contact Form
8
  Plugin URI: http://www.megnicholas.co.uk/wordpress-plugins/clean-and-simple-contact-form
9
  Description: A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap markup.
10
- Version: 4.6.2
11
  Author: Meghan Nicholas
12
  Author URI: http://www.megnicholas.co.uk
13
  License: GPLv2 or later
@@ -54,7 +54,7 @@ if (!defined('CSCF_PLUGIN_URL')) define('CSCF_PLUGIN_URL', WP_PLUGIN_URL . '/' .
54
 
55
  if (!defined('CSCF_VERSION_KEY')) define('CSCF_VERSION_KEY', 'cscf_version');
56
 
57
- if (!defined('CSCF_VERSION_NUM')) define('CSCF_VERSION_NUM', '4.6.2');
58
 
59
  if (!defined('CSCF_OPTIONS_KEY')) define('CSCF_OPTIONS_KEY', 'cscf_options');
60
 
7
  Plugin Name: Clean and Simple Contact Form
8
  Plugin URI: http://www.megnicholas.co.uk/wordpress-plugins/clean-and-simple-contact-form
9
  Description: A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap markup.
10
+ Version: 4.7.0
11
  Author: Meghan Nicholas
12
  Author URI: http://www.megnicholas.co.uk
13
  License: GPLv2 or later
54
 
55
  if (!defined('CSCF_VERSION_KEY')) define('CSCF_VERSION_KEY', 'cscf_version');
56
 
57
+ if (!defined('CSCF_VERSION_NUM')) define('CSCF_VERSION_NUM', '4.7.0');
58
 
59
  if (!defined('CSCF_OPTIONS_KEY')) define('CSCF_OPTIONS_KEY', 'cscf_options');
60
 
languages/clean-and-simple-contact-form-by-meg-nicholas.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2016 Clean and Simple Contact Form
2
  # This file is distributed under the same license as the Clean and Simple Contact Form package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Clean and Simple Contact Form 4.6.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/clean-and-simple-"
7
  "contact-form-by-meg-nicholas\n"
8
- "POT-Creation-Date: 2016-01-19 14:59:22+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
@@ -17,36 +17,64 @@ msgstr ""
17
  msgid "Settings"
18
  msgstr ""
19
 
20
- #: class.cscf_contact.php:66
21
  msgid "Sorry the email addresses do not match."
22
  msgstr ""
23
 
24
- #: class.cscf_contact.php:71 views/contact-form.view.php:63
25
  msgid "Please give your email address."
26
  msgstr ""
27
 
28
- #: class.cscf_contact.php:75
29
  msgid "Please confirm your email address."
30
  msgstr ""
31
 
32
- #: class.cscf_contact.php:80 views/contact-form.view.php:34
33
  msgid "Please give your name."
34
  msgstr ""
35
 
36
- #: class.cscf_contact.php:84
37
  msgid "Please enter a message."
38
  msgstr ""
39
 
40
- #: class.cscf_contact.php:88 views/contact-form.view.php:64
41
  #: views/contact-form.view.php:93
42
  msgid "Please enter a valid email address."
43
  msgstr ""
44
 
45
- #: class.cscf_contact.php:97
 
 
 
 
46
  msgid "Please solve the recaptcha to continue."
47
  msgstr ""
48
 
49
- #: class.cscf_contact.php:160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  msgid "Here is a copy of your message :"
51
  msgstr ""
52
 
@@ -68,6 +96,10 @@ msgstr ""
68
  msgid " - Web Enquiry"
69
  msgstr ""
70
 
 
 
 
 
71
  #: class.cscf_settings.php:30
72
  msgid "Contact Form Settings"
73
  msgstr ""
@@ -161,68 +193,76 @@ msgid "Confirm Email Address :"
161
  msgstr ""
162
 
163
  #: class.cscf_settings.php:154
164
- msgid "*New*"
165
  msgstr ""
166
 
167
- #: class.cscf_settings.php:154
168
- msgid "Allow users to email themselves a copy :"
169
  msgstr ""
170
 
171
  #: class.cscf_settings.php:160
172
- msgid "Override 'From' Address :"
173
  msgstr ""
174
 
175
  #: class.cscf_settings.php:166
176
- msgid "'From' Email Address :"
177
  msgstr ""
178
 
179
  #: class.cscf_settings.php:172
180
- msgid "Email Subject :"
181
  msgstr ""
182
 
183
  #: class.cscf_settings.php:178
184
- msgid "Message :"
185
  msgstr ""
186
 
187
  #: class.cscf_settings.php:184
188
- msgid "Message Sent Heading :"
189
  msgstr ""
190
 
191
  #: class.cscf_settings.php:190
192
- msgid "Message Sent Content :"
193
  msgstr ""
194
 
195
  #: class.cscf_settings.php:196
 
 
 
 
 
 
 
 
196
  msgid "Styling and Validation"
197
  msgstr ""
198
 
199
- #: class.cscf_settings.php:200
200
  msgid ""
201
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
202
  "instead) :"
203
  msgstr ""
204
 
205
- #: class.cscf_settings.php:206
206
  msgid "Use client side validation (AJAX) :"
207
  msgstr ""
208
 
209
- #: class.cscf_settings.php:278
210
  msgid "Enter your reCAPTCHA settings below :"
211
  msgstr ""
212
 
213
- #: class.cscf_settings.php:279
214
  msgid "To use reCAPTCHA you must get an API key from"
215
  msgstr ""
216
 
217
- #: class.cscf_settings.php:285
218
  msgid "Enter your message settings below :"
219
  msgstr ""
220
 
221
- #: class.cscf_settings.php:387
222
  msgid "Light"
223
  msgstr ""
224
 
225
- #: class.cscf_settings.php:389
226
  msgid "Dark"
227
  msgstr ""
228
 
@@ -254,10 +294,6 @@ msgstr ""
254
  msgid "Confirm Your Email Address"
255
  msgstr ""
256
 
257
- #: views/contact-form.view.php:114
258
- msgid "Message:"
259
- msgstr ""
260
-
261
  #: views/contact-form.view.php:121
262
  msgid "Please give a message."
263
  msgstr ""
@@ -270,7 +306,7 @@ msgstr ""
270
  msgid "Send me a copy:"
271
  msgstr ""
272
 
273
- #: views/contact-form.view.php:201
274
  msgid "Send Message"
275
  msgstr ""
276
 
1
+ # Copyright (C) 2018 Clean and Simple Contact Form
2
  # This file is distributed under the same license as the Clean and Simple Contact Form package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Clean and Simple Contact Form 4.7.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/clean-and-simple-"
7
  "contact-form-by-meg-nicholas\n"
8
+ "POT-Creation-Date: 2018-07-05 13:14:58+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
17
  msgid "Settings"
18
  msgstr ""
19
 
20
+ #: class.cscf_contact.php:71
21
  msgid "Sorry the email addresses do not match."
22
  msgstr ""
23
 
24
+ #: class.cscf_contact.php:77 views/contact-form.view.php:63
25
  msgid "Please give your email address."
26
  msgstr ""
27
 
28
+ #: class.cscf_contact.php:83
29
  msgid "Please confirm your email address."
30
  msgstr ""
31
 
32
+ #: class.cscf_contact.php:89 views/contact-form.view.php:34
33
  msgid "Please give your name."
34
  msgstr ""
35
 
36
+ #: class.cscf_contact.php:94
37
  msgid "Please enter a message."
38
  msgstr ""
39
 
40
+ #: class.cscf_contact.php:99 views/contact-form.view.php:64
41
  #: views/contact-form.view.php:93
42
  msgid "Please enter a valid email address."
43
  msgstr ""
44
 
45
+ #: class.cscf_contact.php:105 views/contact-form.view.php:170
46
+ msgid "Please give your consent."
47
+ msgstr ""
48
+
49
+ #: class.cscf_contact.php:114
50
  msgid "Please solve the recaptcha to continue."
51
  msgstr ""
52
 
53
+ #: class.cscf_contact.php:147
54
+ msgid "From: "
55
+ msgstr ""
56
+
57
+ #: class.cscf_contact.php:148
58
+ msgid "Email: "
59
+ msgstr ""
60
+
61
+ #: class.cscf_contact.php:149
62
+ msgid "Page URL: "
63
+ msgstr ""
64
+
65
+ #: class.cscf_contact.php:150 views/contact-form.view.php:114
66
+ msgid "Message:"
67
+ msgstr ""
68
+
69
+ #: class.cscf_contact.php:151
70
+ msgid "yes"
71
+ msgstr ""
72
+
73
+ #: class.cscf_contact.php:151
74
+ msgid "no"
75
+ msgstr ""
76
+
77
+ #: class.cscf_contact.php:178
78
  msgid "Here is a copy of your message :"
79
  msgstr ""
80
 
96
  msgid " - Web Enquiry"
97
  msgstr ""
98
 
99
+ #: class.cscf_pluginsettings.php:142
100
+ msgid "I consent to my contact details being stored"
101
+ msgstr ""
102
+
103
  #: class.cscf_settings.php:30
104
  msgid "Contact Form Settings"
105
  msgstr ""
193
  msgstr ""
194
 
195
  #: class.cscf_settings.php:154
196
+ msgid "Allow users to email themselves a copy :"
197
  msgstr ""
198
 
199
+ #: class.cscf_settings.php:160 class.cscf_settings.php:166
200
+ msgid "*New*"
201
  msgstr ""
202
 
203
  #: class.cscf_settings.php:160
204
+ msgid "Add a consent checkbox :"
205
  msgstr ""
206
 
207
  #: class.cscf_settings.php:166
208
+ msgid "Consent message :"
209
  msgstr ""
210
 
211
  #: class.cscf_settings.php:172
212
+ msgid "Override 'From' Address :"
213
  msgstr ""
214
 
215
  #: class.cscf_settings.php:178
216
+ msgid "'From' Email Address :"
217
  msgstr ""
218
 
219
  #: class.cscf_settings.php:184
220
+ msgid "Email Subject :"
221
  msgstr ""
222
 
223
  #: class.cscf_settings.php:190
224
+ msgid "Message :"
225
  msgstr ""
226
 
227
  #: class.cscf_settings.php:196
228
+ msgid "Message Sent Heading :"
229
+ msgstr ""
230
+
231
+ #: class.cscf_settings.php:202
232
+ msgid "Message Sent Content :"
233
+ msgstr ""
234
+
235
+ #: class.cscf_settings.php:208
236
  msgid "Styling and Validation"
237
  msgstr ""
238
 
239
+ #: class.cscf_settings.php:212
240
  msgid ""
241
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
242
  "instead) :"
243
  msgstr ""
244
 
245
+ #: class.cscf_settings.php:218
246
  msgid "Use client side validation (AJAX) :"
247
  msgstr ""
248
 
249
+ #: class.cscf_settings.php:290
250
  msgid "Enter your reCAPTCHA settings below :"
251
  msgstr ""
252
 
253
+ #: class.cscf_settings.php:291
254
  msgid "To use reCAPTCHA you must get an API key from"
255
  msgstr ""
256
 
257
+ #: class.cscf_settings.php:297
258
  msgid "Enter your message settings below :"
259
  msgstr ""
260
 
261
+ #: class.cscf_settings.php:409
262
  msgid "Light"
263
  msgstr ""
264
 
265
+ #: class.cscf_settings.php:411
266
  msgid "Dark"
267
  msgstr ""
268
 
294
  msgid "Confirm Your Email Address"
295
  msgstr ""
296
 
 
 
 
 
297
  #: views/contact-form.view.php:121
298
  msgid "Please give a message."
299
  msgstr ""
306
  msgid "Send me a copy:"
307
  msgstr ""
308
 
309
+ #: views/contact-form.view.php:228
310
  msgid "Send Message"
311
  msgstr ""
312
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: simple, contact, form, contact button, contact form, contact form plugin, akismet, contacts, contacts form plugin, contact me, feedback form, bootstrap, twitter, google, reCAPTCHA, ajax, secure
7
  Requires at least: 3.3
8
- Tested up to: 4.6.1
9
  Stable tag: 4.6.2
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA, Twitter Bootstrap markup and Akismet spam filtering.
@@ -118,20 +118,23 @@ Here is a list of things that you can change
118
 
119
  * **reCAPTCHA Theme**: Here you can change the reCAPTCHA box theme so that it fits with the style of your website.
120
 
121
- * **!NEW! Recipient Emails**: The email address where you would like all messages to be sent.
122
  This will default to the email address you have specified under 'E-Mail Address' in your WordPress General Settings.
123
  If you want your mail sent to a different address then enter it here.
124
  You may enter multiple email addresses by clicking the '+' button.
125
 
126
- * **!NEW! Confirm Email Address**: Email confirmation is now optional. To force your user to re-type their email address tick 'Confirm Email Address'.
127
  It is recommended that you leave this option on. If you turn this option off your user will only have to enter their email address once,
128
  but if they enter it incorrectly you will have no way of getting back to them!
129
 
130
  * **Email Subject**: This is the email subject that will appear on all messages. If you would like to set it to something different then enter it here.
131
 
132
- * **!NEW! Override 'From' Address**: If you tick this and then fill in the 'From Address:' box then all email will be sent from the given address NOT from the email address given by the form filler.
 
 
 
 
133
 
134
- * **!NEW! Option to allow enquiry to email themselves a copy of the message.
135
 
136
  == Screenshots ==
137
  1. Contact Form With reCAPTCHA
@@ -203,6 +206,9 @@ the reCAPTCHA for the contact form will be displayed correctly but not in the co
203
  The comments form will never validate due to no supplied reCAPTCHA code.
204
 
205
  == Changelog ==
 
 
 
206
  = 4.6.2 =
207
  * Turkish translation update. Thanks to Abdullah Manaz! Tested up to WordPress 4.6.1.
208
  = 4.6.1 =
@@ -351,7 +357,8 @@ Polish thanks to Patryk Peas
351
 
352
 
353
  == Upgrade Notice ==
354
-
 
355
  = 4.6.2 =
356
  Updated translations. Tested up to WordPress 4.6.1.
357
  = 4.6.0 =
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: simple, contact, form, contact button, contact form, contact form plugin, akismet, contacts, contacts form plugin, contact me, feedback form, bootstrap, twitter, google, reCAPTCHA, ajax, secure
7
  Requires at least: 3.3
8
+ Tested up to: 4.9.6
9
  Stable tag: 4.6.2
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA, Twitter Bootstrap markup and Akismet spam filtering.
118
 
119
  * **reCAPTCHA Theme**: Here you can change the reCAPTCHA box theme so that it fits with the style of your website.
120
 
121
+ * **Recipient Emails**: The email address where you would like all messages to be sent.
122
  This will default to the email address you have specified under 'E-Mail Address' in your WordPress General Settings.
123
  If you want your mail sent to a different address then enter it here.
124
  You may enter multiple email addresses by clicking the '+' button.
125
 
126
+ * **Confirm Email Address**: Email confirmation is now optional. To force your user to re-type their email address tick 'Confirm Email Address'.
127
  It is recommended that you leave this option on. If you turn this option off your user will only have to enter their email address once,
128
  but if they enter it incorrectly you will have no way of getting back to them!
129
 
130
  * **Email Subject**: This is the email subject that will appear on all messages. If you would like to set it to something different then enter it here.
131
 
132
+ * **Override 'From' Address**: If you tick this and then fill in the 'From Address:' box then all email will be sent from the given address NOT from the email address given by the form filler.
133
+
134
+ * **Option to allow enquiry to email themselves a copy of the message.
135
+
136
+ * **!NEW! Contact consent**: This option allows you to be GDPR compliant by adding a 'Consent to contact' check box at the bottom of the form.
137
 
 
138
 
139
  == Screenshots ==
140
  1. Contact Form With reCAPTCHA
206
  The comments form will never validate due to no supplied reCAPTCHA code.
207
 
208
  == Changelog ==
209
+ = 4.7.0 =
210
+ * Tested with Wordpress version 4.9.6
211
+ * Added consent to contact checkbox for GDPR compliance
212
  = 4.6.2 =
213
  * Turkish translation update. Thanks to Abdullah Manaz! Tested up to WordPress 4.6.1.
214
  = 4.6.1 =
357
 
358
 
359
  == Upgrade Notice ==
360
+ = 4.7.0 =
361
+ Tested with Wordpress version 4.9.6. Added 'consent to contact' GDPR compliance message
362
  = 4.6.2 =
363
  Updated translations. Tested up to WordPress 4.6.1.
364
  = 4.6.0 =
views/contact-form.view.php CHANGED
@@ -154,6 +154,33 @@
154
  </div>
155
  <?php } ?>
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  <!-- recaptcha -->
158
  <?php if ( $contact->RecaptchaPublicKey <> '' && $contact->RecaptchaPrivateKey <> '' ) { ?>
159
 
154
  </div>
155
  <?php } ?>
156
 
157
+
158
+
159
+ <?php if ( cscf_PluginSettings::ContactConsent() ) { ?>
160
+ <!-- contact consent -->
161
+ <div class="control-group form-group<?php if ( isset( $contact->Errors['contact-consent'] ) ) {
162
+ echo ' error has-error';
163
+ } ?>">
164
+ <label for="cscf_contact-consent"><?php echo cscf_PluginSettings::ContactConsentMsg(); ?>:</label>
165
+ <div class="<?php echo cscf_PluginSettings::InputIcons() ? "input-group" : ""; ?>">
166
+ <?php if ( cscf_PluginSettings::InputIcons() == true ) { ?>
167
+ <span class="input-group-addon"><span class="glyphicon glyphicon-comment"></span></span>
168
+ <?php } ?>
169
+ <input data-rule-required="true"
170
+ data-msg-required="<?php _e( 'Please give your consent.', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>"
171
+ <?php echo $contact->ContactConsent == true ? 'checked' : ''; ?> type="checkbox"
172
+ id="cscf_contact-consent"
173
+ name="cscf[contact-consent]">
174
+ </div>
175
+ <span for="cscf[contact-consent]" class="help-inline help-block error"
176
+ style="display:<?php echo isset( $contact->Errors['contact-consent'] ) ? 'block' : 'none'; ?>;">
177
+ <?php if ( isset( $contact->Errors['contact-consent'] ) ) {
178
+ echo $contact->Errors['contact-consent'];
179
+ } ?>
180
+ </span>
181
+ </div>
182
+ <?php } ?>
183
+
184
  <!-- recaptcha -->
185
  <?php if ( $contact->RecaptchaPublicKey <> '' && $contact->RecaptchaPrivateKey <> '' ) { ?>
186