Contact Form Clean and Simple - Version 4.7.6

Version Description

  • Introduced optional input field for phone number
  • Exclude consent message from email if disabled
  • Fixed spacing and line breaks in email template
  • Fixed minor issues on settings page
  • Added consent & email to copy email if requested
  • Set copy email headers to text
Download this release

Release Info

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

Code changes from version 4.7.5 to 4.7.6

class.cscf_contact.php CHANGED
@@ -11,6 +11,7 @@ class cscf_Contact {
11
  var $Message;
12
  var $EmailToSender;
13
  var $ErrorMessage;
 
14
  var $ContactConsent;
15
  var $RecaptchaPublicKey;
16
  var $RecaptchaPrivateKey;
@@ -46,10 +47,11 @@ class cscf_Contact {
46
  case 'message':
47
  $this->Message = sanitize_textarea_field( $value );
48
  break;
 
 
 
49
  case 'contact-consent':
50
- if ( cscf_PluginSettings::ContactConsent() ) {
51
- $this->ContactConsent = sanitize_text_field( $value );
52
- }
53
  break;
54
  default:
55
  $cscf[ $key ] = null; // should never get this but just in case.
@@ -113,6 +115,13 @@ class cscf_Contact {
113
  $this->Errors['email'] = esc_html__( 'Please enter a valid email address.', 'clean-and-simple-contact-form-by-meg-nicholas' );
114
  }
115
 
 
 
 
 
 
 
 
116
  //contact consent
117
  if ( cscf_PluginSettings::ContactConsent() ) {
118
  if ( ! $this->ContactConsent ) {
@@ -157,13 +166,16 @@ class cscf_Contact {
157
  $header = "Content-Type: text/plain\r\nReply-To: " . $this->Email . "\r\n";
158
 
159
  //message
160
- $message = esc_html__( 'From: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . esc_attr( $this->Name ) . "\r\n";
161
- $message .= esc_html__( 'Email: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . esc_attr( $this->Email ) . "\r\n";
162
- $message .= esc_html__( 'Page URL: ', 'clean-and-simple-contact-form-by-meg-nicholas' ) . get_permalink( $this->PostID ) . "\r\n";
163
- $message .= esc_html__( 'Message:', 'clean-and-simple-contact-form-by-meg-nicholas' ) . "\n\n" . esc_html( $this->Message ) . "\r\n";
164
- $message .= cscf_PluginSettings::ContactConsentMsg() . ': ' . ( $this->ContactConsent ? esc_html__( 'yes', 'clean-and-simple-contact-form-by-meg-nicholas' ) : esc_html__( 'no', 'clean-and-simple-contact-form-by-meg-nicholas' ) );
165
-
166
-
 
 
 
167
  $result = ( wp_mail( cscf_PluginSettings::RecipientEmails(), cscf_PluginSettings::Subject(), stripslashes( $message ), $header ) );
168
 
169
  //remove filters (play nice)
@@ -186,10 +198,16 @@ class cscf_Contact {
186
  $filters->add( 'wp_mail_from' );
187
  $filters->add( 'wp_mail_from_name' );
188
 
189
- $header = "";
190
  $message = cscf_PluginSettings::SentMessageBody() . "\n\n";
191
  $message .= esc_html__( 'Here is a copy of your message :', 'clean-and-simple-contact-form-by-meg-nicholas' ) . "\n\n";
192
- $message .= $this->Message;
 
 
 
 
 
 
193
 
194
  $result = ( wp_mail( $this->Email, cscf_PluginSettings::Subject(), stripslashes( $message ), $header ) );
195
 
11
  var $Message;
12
  var $EmailToSender;
13
  var $ErrorMessage;
14
+ var $PhoneNumber;
15
  var $ContactConsent;
16
  var $RecaptchaPublicKey;
17
  var $RecaptchaPrivateKey;
47
  case 'message':
48
  $this->Message = sanitize_textarea_field( $value );
49
  break;
50
+ case 'phone-number':
51
+ $this->PhoneNumber = sanitize_text_field( $value );
52
+ break;
53
  case 'contact-consent':
54
+ $this->ContactConsent = sanitize_text_field( $value );
 
 
55
  break;
56
  default:
57
  $cscf[ $key ] = null; // should never get this but just in case.
115
  $this->Errors['email'] = esc_html__( 'Please enter a valid email address.', 'clean-and-simple-contact-form-by-meg-nicholas' );
116
  }
117
 
118
+ //mandatory phone number
119
+ if ( cscf_PluginSettings::PhoneNumber() && cscf_PluginSettings::PhoneNumberMandatory() ) {
120
+ if ( strlen( $this->PhoneNumber ) < 8 ) {
121
+ $this->Errors['confirm-email'] = esc_html__( 'Please enter a valid phone number.', 'clean-and-simple-contact-form-by-meg-nicholas' );
122
+ }
123
+ }
124
+
125
  //contact consent
126
  if ( cscf_PluginSettings::ContactConsent() ) {
127
  if ( ! $this->ContactConsent ) {
166
  $header = "Content-Type: text/plain\r\nReply-To: " . $this->Email . "\r\n";
167
 
168
  //message
169
+ $message = esc_html__( 'From', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ': ' . esc_attr( $this->Name ) . "\n\n";
170
+ $message .= esc_html__( 'Email', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ': ' . esc_attr( $this->Email ) . "\n\n";
171
+ if ( cscf_PluginSettings::PhoneNumber() ) {
172
+ $message .= esc_html__( 'Phone', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ': ' . esc_attr( $this->PhoneNumber ) . "\n\n";
173
+ }
174
+ $message .= esc_html__( 'Page URL', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ': ' . get_permalink( $this->PostID ) . "\n\n";
175
+ $message .= esc_html__( 'Message', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ':' . "\n\n" . esc_html( $this->Message ) . "\n\n";
176
+ if ( cscf_PluginSettings::ContactConsent() ) {
177
+ $message .= cscf_PluginSettings::ContactConsentMsg() . ': ' . ( $this->ContactConsent ? esc_html__( 'yes', 'clean-and-simple-contact-form-by-meg-nicholas' ) : esc_html__( 'no', 'clean-and-simple-contact-form-by-meg-nicholas' ) );
178
+ }
179
  $result = ( wp_mail( cscf_PluginSettings::RecipientEmails(), cscf_PluginSettings::Subject(), stripslashes( $message ), $header ) );
180
 
181
  //remove filters (play nice)
198
  $filters->add( 'wp_mail_from' );
199
  $filters->add( 'wp_mail_from_name' );
200
 
201
+ $header = "Content-Type: text/plain\r\n";
202
  $message = cscf_PluginSettings::SentMessageBody() . "\n\n";
203
  $message .= esc_html__( 'Here is a copy of your message :', 'clean-and-simple-contact-form-by-meg-nicholas' ) . "\n\n";
204
+ if ( cscf_PluginSettings::ContactConsent() ) {
205
+ $message .= cscf_PluginSettings::ContactConsentMsg() . ': ' . ( $this->ContactConsent ? esc_html__( 'yes', 'clean-and-simple-contact-form-by-meg-nicholas' ) : esc_html__( 'no', 'clean-and-simple-contact-form-by-meg-nicholas' ) ) . "\n\n";
206
+ }
207
+ if ( cscf_PluginSettings::PhoneNumber() ) {
208
+ $message .= esc_html__( 'Phone', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ': ' . esc_attr( $this->PhoneNumber ) . "\n\n";
209
+ }
210
+ $message .= esc_html__( 'Message', 'clean-and-simple-contact-form-by-meg-nicholas' ) . ':' . "\n\n" . esc_html( $this->Message ) . "\n\n";
211
 
212
  $result = ( wp_mail( $this->Email, cscf_PluginSettings::Subject(), stripslashes( $message ), $header ) );
213
 
class.cscf_pluginsettings.php CHANGED
@@ -112,6 +112,7 @@ class cscf_PluginSettings
112
 
113
  }
114
 
 
115
  static
116
  function EmailToSender()
117
  {
@@ -143,7 +144,29 @@ class cscf_PluginSettings
143
 
144
  }
145
 
 
146
  static
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  function IsJetPackContactFormEnabled()
148
  {
149
  //check for jetpack plugin
112
 
113
  }
114
 
115
+
116
  static
117
  function EmailToSender()
118
  {
144
 
145
  }
146
 
147
+
148
  static
149
+ function PhoneNumber()
150
+ {
151
+
152
+ $options = get_option(CSCF_OPTIONS_KEY);
153
+
154
+ return isset($options['phone-number']) ? true : false;
155
+
156
+ }
157
+
158
+ static
159
+ function PhoneNumberMandatory()
160
+ {
161
+
162
+ $options = get_option(CSCF_OPTIONS_KEY);
163
+
164
+ return isset($options['phone-number-mandatory']) ? true : false;
165
+
166
+ }
167
+
168
+
169
+ static
170
  function IsJetPackContactFormEnabled()
171
  {
172
  //check for jetpack plugin
class.cscf_settings.php CHANGED
@@ -39,8 +39,7 @@ class cscf_settings {
39
  <h2><?php esc_html_e( 'Clean and Simple Contact Form Settings', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?></h2>
40
  <hr/>
41
  <div style="float:left;">
42
- <p><?php esc_html_e( 'You are using version', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?><?php echo esc_attr(CSCF_VERSION_NUM); ?></p>
43
-
44
  <p><?php esc_html_e( 'If you find this plugin useful please consider', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>
45
  <a target="_blank"
46
  href="http://wordpress.org/support/view/plugin-reviews/<?php echo esc_attr(CSCF_PLUGIN_NAME); ?>">
@@ -132,18 +131,30 @@ class cscf_settings {
132
  ), 'contact-form-settings', 'section_message', array(
133
  'email-sender'
134
  ) );
135
- add_settings_field( 'contact-consent', '<span style="color:red;">' . esc_html__( '*New*', 'clean-and-simple-contact-form-by-meg-nicholas' ) . '</span> ' . esc_html__( 'Add a consent checkbox :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
136
  $this,
137
  'create_fields'
138
  ), 'contact-form-settings', 'section_message', array(
139
  'contact-consent'
140
  ) );
141
- add_settings_field( 'contact-consent-msg', '<span style="color:red;">' . esc_html__( '*New*', 'clean-and-simple-contact-form-by-meg-nicholas' ) . '</span> ' . esc_html__( 'Consent message :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
142
  $this,
143
  'create_fields'
144
  ), 'contact-form-settings', 'section_message', array(
145
  'contact-consent-msg'
146
  ) );
 
 
 
 
 
 
 
 
 
 
 
 
147
  add_settings_field( 'override-from', esc_html__( 'Override \'From\' Address :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
148
  $this,
149
  'create_fields'
@@ -360,6 +371,16 @@ class cscf_settings {
360
  name="<?php echo esc_attr( CSCF_OPTIONS_KEY ); ?>[contact-consent-msg]"
361
  value="<?php echo esc_attr( cscf_PluginSettings::ContactConsentMsg() ); ?>"><?php
362
  break;
 
 
 
 
 
 
 
 
 
 
363
  case 'from-email':
364
  $disabled = cscf_PluginSettings::OverrideFrom() === false ? "readonly" : "";
365
  ?><input <?php echo esc_attr($disabled); ?> type="text" size="60" id="from-email"
39
  <h2><?php esc_html_e( 'Clean and Simple Contact Form Settings', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?></h2>
40
  <hr/>
41
  <div style="float:left;">
42
+ <p><?php esc_html_e( 'You are using version', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?> <?php echo esc_attr(CSCF_VERSION_NUM); ?></p>
 
43
  <p><?php esc_html_e( 'If you find this plugin useful please consider', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>
44
  <a target="_blank"
45
  href="http://wordpress.org/support/view/plugin-reviews/<?php echo esc_attr(CSCF_PLUGIN_NAME); ?>">
131
  ), 'contact-form-settings', 'section_message', array(
132
  'email-sender'
133
  ) );
134
+ add_settings_field( 'contact-consent', esc_html__( 'Add a consent checkbox :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
135
  $this,
136
  'create_fields'
137
  ), 'contact-form-settings', 'section_message', array(
138
  'contact-consent'
139
  ) );
140
+ add_settings_field( 'contact-consent-msg', esc_html__( 'Consent message :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
141
  $this,
142
  'create_fields'
143
  ), 'contact-form-settings', 'section_message', array(
144
  'contact-consent-msg'
145
  ) );
146
+ add_settings_field( 'phone-number', esc_html__( 'Add a phone number field :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
147
+ $this,
148
+ 'create_fields'
149
+ ), 'contact-form-settings', 'section_message', array(
150
+ 'phone-number'
151
+ ) );
152
+ add_settings_field( 'phone-number-mandatory', esc_html__( 'Phone number is mandatory :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
153
+ $this,
154
+ 'create_fields'
155
+ ), 'contact-form-settings', 'section_message', array(
156
+ 'phone-number-mandatory'
157
+ ) );
158
  add_settings_field( 'override-from', esc_html__( 'Override \'From\' Address :', 'clean-and-simple-contact-form-by-meg-nicholas' ), array(
159
  $this,
160
  'create_fields'
371
  name="<?php echo esc_attr( CSCF_OPTIONS_KEY ); ?>[contact-consent-msg]"
372
  value="<?php echo esc_attr( cscf_PluginSettings::ContactConsentMsg() ); ?>"><?php
373
  break;
374
+ case 'phone-number':
375
+ $checked = cscf_PluginSettings::PhoneNumber() == true ? "checked" : "";
376
+ ?><input type="checkbox" <?php echo esc_attr( $checked ); ?> id="phone-number"
377
+ name="<?php echo esc_attr( CSCF_OPTIONS_KEY ); ?>[phone-number]"><?php
378
+ break;
379
+ case 'phone-number-mandatory':
380
+ $checked = cscf_PluginSettings::PhoneNumberMandatory() == true ? "checked" : "";
381
+ ?><input type="checkbox" <?php echo esc_attr( $checked ); ?> id="phone-number-mandatory"
382
+ name="<?php echo esc_attr( CSCF_OPTIONS_KEY ); ?>[phone-number-mandatory]"><?php
383
+ break;
384
  case 'from-email':
385
  $disabled = cscf_PluginSettings::OverrideFrom() === false ? "readonly" : "";
386
  ?><input <?php echo esc_attr($disabled); ?> type="text" size="60" id="from-email"
clean-and-simple-contact-form-by-meg-nicholas.php CHANGED
@@ -7,7 +7,9 @@
7
  Plugin Name: Clean and Simple Contact Form
8
  Plugin URI: https://fullworks.net/productsclean-and-simple-contact-form
9
  Description: A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap markup.
10
- Version: 4.7.5
 
 
11
  Author: Fullworks
12
  Author URI: https://fullworks.net
13
  License: GPLv2 or later
@@ -71,7 +73,7 @@ if ( ! defined( 'CSCF_VERSION_KEY' ) ) {
71
  }
72
 
73
  if ( ! defined( 'CSCF_VERSION_NUM' ) ) {
74
- define( 'CSCF_VERSION_NUM', '4.7.2' );
75
  }
76
 
77
  if ( ! defined( 'CSCF_OPTIONS_KEY' ) ) {
7
  Plugin Name: Clean and Simple Contact Form
8
  Plugin URI: https://fullworks.net/productsclean-and-simple-contact-form
9
  Description: A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap markup.
10
+ Version: 4.7.6
11
+ Requires at least: 4.6
12
+ Requires PHP: 5.6
13
  Author: Fullworks
14
  Author URI: https://fullworks.net
15
  License: GPLv2 or later
73
  }
74
 
75
  if ( ! defined( 'CSCF_VERSION_NUM' ) ) {
76
+ define( 'CSCF_VERSION_NUM', '4.7.6' );
77
  }
78
 
79
  if ( ! defined( 'CSCF_OPTIONS_KEY' ) ) {
languages/clean-and-simple-contact-form-by-meg-nicholas.pot CHANGED
@@ -1,338 +1,318 @@
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
-
16
- #: class.cscf.php:157
 
 
 
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
 
81
- #: class.cscf_pluginsettings.php:44
82
  msgid "Message Sent"
83
  msgstr ""
84
 
85
- #: class.cscf_pluginsettings.php:52
86
  msgid "Thank you for your message, we will be in touch very shortly."
87
  msgstr ""
88
 
89
- #: class.cscf_pluginsettings.php:60
90
- msgid ""
91
- "Please enter your contact details and a short message below and I will try "
92
- "to answer your query as soon as possible."
93
  msgstr ""
94
 
95
- #: class.cscf_pluginsettings.php:94
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 ""
106
 
107
- #: class.cscf_settings.php:30
108
  msgid "Contact Form"
109
  msgstr ""
110
 
111
- #: class.cscf_settings.php:41
112
  msgid "Clean and Simple Contact Form Settings"
113
  msgstr ""
114
 
115
- #: class.cscf_settings.php:47
116
- msgid "Donate $10, $20 or $50!"
117
- msgstr ""
118
-
119
- #: class.cscf_settings.php:50
120
- msgid ""
121
- "If you like this plugin, please donate to support development and "
122
- "maintenance of:"
123
- msgstr ""
124
-
125
- #: class.cscf_settings.php:52
126
- msgid "Clean and Simple Contact Form!"
127
- msgstr ""
128
-
129
- #: class.cscf_settings.php:67
130
  msgid "You are using version"
131
  msgstr ""
132
 
133
- #: class.cscf_settings.php:69
134
  msgid "If you find this plugin useful please consider"
135
  msgstr ""
136
 
137
- #: class.cscf_settings.php:72
138
  msgid "leaving a review"
139
  msgstr ""
140
 
141
- #: class.cscf_settings.php:74
142
  msgid "Thank you!"
143
  msgstr ""
144
 
145
- #: class.cscf_settings.php:79
146
- msgid ""
147
- "NOTICE: You have JetPack's Contact Form enabled please deactivate it or use "
148
- "the shortcode [cscf-contact-form] instead."
149
- msgstr ""
150
-
151
- #: class.cscf_settings.php:81
152
- msgid "Read More"
153
  msgstr ""
154
 
155
- #: class.cscf_settings.php:85
156
  msgid "Please Note: To add the contact form to your page please add the text"
157
  msgstr ""
158
 
159
- #: class.cscf_settings.php:86
160
  msgid "to your post or page."
161
  msgstr ""
162
 
163
- #: class.cscf_settings.php:106
164
  msgid "ReCAPTCHA Settings"
165
  msgstr ""
166
 
167
- #: class.cscf_settings.php:114
168
  msgid "Use reCAPTCHA :"
169
  msgstr ""
170
 
171
- #: class.cscf_settings.php:120
172
  msgid "reCAPTCHA Theme :"
173
  msgstr ""
174
 
175
- #: class.cscf_settings.php:126
176
  msgid "reCAPTCHA Public Key :"
177
  msgstr ""
178
 
179
- #: class.cscf_settings.php:132
180
  msgid "reCAPTCHA Private Key :"
181
  msgstr ""
182
 
183
- #: class.cscf_settings.php:138
184
  msgid "Message Settings"
185
  msgstr ""
186
 
187
- #: class.cscf_settings.php:142
188
  msgid "Recipient Emails :"
189
  msgstr ""
190
 
191
- #: class.cscf_settings.php:148
192
  msgid "Confirm Email Address :"
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
 
269
- #: views/contact-form.view.php:25
270
  msgid "Name:"
271
  msgstr ""
272
 
273
- #: views/contact-form.view.php:37
274
  msgid "Your Name"
275
  msgstr ""
276
 
277
- #: views/contact-form.view.php:54
278
  msgid "Email Address:"
279
  msgstr ""
280
 
281
- #: views/contact-form.view.php:67
282
  msgid "Your Email Address"
283
  msgstr ""
284
 
285
- #: views/contact-form.view.php:83
286
  msgid "Confirm Email Address:"
287
  msgstr ""
288
 
289
- #: views/contact-form.view.php:92 views/contact-form.view.php:94
290
  msgid "Please enter the same email address again."
291
  msgstr ""
292
 
293
- #: views/contact-form.view.php:97
294
  msgid "Confirm Your Email Address"
295
  msgstr ""
296
 
297
- #: views/contact-form.view.php:121
298
- msgid "Please give a message."
299
- msgstr ""
300
-
301
- #: views/contact-form.view.php:123
302
- msgid "Your Message"
303
  msgstr ""
304
 
305
- #: views/contact-form.view.php:139
306
- msgid "Send me a copy:"
307
  msgstr ""
308
 
309
- #: views/contact-form.view.php:228
310
- msgid "Send Message"
311
  msgstr ""
312
 
313
- #: views/message-not-sent.view.php:1
314
- msgid "Sorry, there has been a problem and your message was not sent."
315
  msgstr ""
316
 
317
- #. Plugin Name of the plugin/theme
318
- msgid "Clean and Simple Contact Form"
319
  msgstr ""
320
 
321
- #. Plugin URI of the plugin/theme
322
- msgid ""
323
- "http://www.megnicholas.co.uk/wordpress-plugins/clean-and-simple-contact-form"
324
  msgstr ""
325
 
326
- #. Description of the plugin/theme
327
- msgid ""
328
- "A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap "
329
- "markup."
330
  msgstr ""
331
 
332
- #. Author of the plugin/theme
333
- msgid "Meghan Nicholas"
334
  msgstr ""
335
 
336
- #. Author URI of the plugin/theme
337
- msgid "http://www.megnicholas.co.uk"
338
  msgstr ""
1
+ # Copyright (C) 2021 clean-and-simple-contact-form-by-meg-nicholas
2
+ # This file is distributed under the same license as the clean-and-simple-contact-form-by-meg-nicholas package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: clean-and-simple-contact-form-by-meg-nicholas\n"
 
 
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "X-Poedit-Basepath: ..\n"
10
+ "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
11
+ "X-Poedit-SearchPath-0: .\n"
12
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
13
+ "X-Poedit-SourceCharset: UTF-8\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+
16
+ #: src/class.cscf.php:154
17
  msgid "Settings"
18
  msgstr ""
19
 
20
+ #: src/class.cscf_contact.php:87
21
  msgid "Sorry the email addresses do not match."
22
  msgstr ""
23
 
24
+ #: src/class.cscf_contact.php:93, src/views/contact-form.view.php:63
25
  msgid "Please give your email address."
26
  msgstr ""
27
 
28
+ #: src/class.cscf_contact.php:99
29
  msgid "Please confirm your email address."
30
  msgstr ""
31
 
32
+ #: src/class.cscf_contact.php:105, src/views/contact-form.view.php:34
33
  msgid "Please give your name."
34
  msgstr ""
35
 
36
+ #: src/class.cscf_contact.php:110
37
  msgid "Please enter a message."
38
  msgstr ""
39
 
40
+ #: src/class.cscf_contact.php:115, src/views/contact-form.view.php:64, src/views/contact-form.view.php:93
 
41
  msgid "Please enter a valid email address."
42
  msgstr ""
43
 
44
+ #: src/class.cscf_contact.php:121
45
+ msgid "Please enter a valid phone number."
46
+ msgstr ""
47
+
48
+ #: src/class.cscf_contact.php:128, src/views/contact-form.view.php:198
49
  msgid "Please give your consent."
50
  msgstr ""
51
 
52
+ #: src/class.cscf_contact.php:137
53
  msgid "Please solve the recaptcha to continue."
54
  msgstr ""
55
 
56
+ #: src/class.cscf_contact.php:169
57
+ msgid "From"
58
  msgstr ""
59
 
60
+ #: src/class.cscf_contact.php:170
61
+ msgid "Email"
62
  msgstr ""
63
 
64
+ #: src/class.cscf_contact.php:172, src/class.cscf_contact.php:208
65
+ msgid "Phone"
66
  msgstr ""
67
 
68
+ #: src/class.cscf_contact.php:174
69
+ msgid "Page URL"
70
+ msgstr ""
71
+
72
+ #: src/class.cscf_contact.php:175, src/class.cscf_contact.php:210
73
+ msgid "Message"
74
  msgstr ""
75
 
76
+ #: src/class.cscf_contact.php:177, src/class.cscf_contact.php:205
77
  msgid "yes"
78
  msgstr ""
79
 
80
+ #: src/class.cscf_contact.php:177, src/class.cscf_contact.php:205
81
  msgid "no"
82
  msgstr ""
83
 
84
+ #: src/class.cscf_contact.php:203
85
  msgid "Here is a copy of your message :"
86
  msgstr ""
87
 
88
+ #: src/class.cscf_pluginsettings.php:44
89
  msgid "Message Sent"
90
  msgstr ""
91
 
92
+ #: src/class.cscf_pluginsettings.php:52
93
  msgid "Thank you for your message, we will be in touch very shortly."
94
  msgstr ""
95
 
96
+ #: src/class.cscf_pluginsettings.php:60
97
+ msgid "Please enter your contact details and a short message below and I will try to answer your query as soon as possible."
 
 
98
  msgstr ""
99
 
100
+ #: src/class.cscf_pluginsettings.php:94
101
  msgid " - Web Enquiry"
102
  msgstr ""
103
 
104
+ #: src/class.cscf_pluginsettings.php:143
105
  msgid "I consent to my contact details being stored"
106
  msgstr ""
107
 
108
+ #: src/class.cscf_settings.php:26
109
  msgid "Contact Form Settings"
110
  msgstr ""
111
 
112
+ #: src/class.cscf_settings.php:27
113
  msgid "Contact Form"
114
  msgstr ""
115
 
116
+ #: src/class.cscf_settings.php:39
117
  msgid "Clean and Simple Contact Form Settings"
118
  msgstr ""
119
 
120
+ #: src/class.cscf_settings.php:42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  msgid "You are using version"
122
  msgstr ""
123
 
124
+ #: src/class.cscf_settings.php:43
125
  msgid "If you find this plugin useful please consider"
126
  msgstr ""
127
 
128
+ #: src/class.cscf_settings.php:46
129
  msgid "leaving a review"
130
  msgstr ""
131
 
132
+ #: src/class.cscf_settings.php:48
133
  msgid "Thank you!"
134
  msgstr ""
135
 
136
+ #: src/class.cscf_settings.php:53
137
+ msgid "NOTICE: You have JetPack's Contact Form enabled please deactivate it or use the shortcode [cscf-contact-form] instead."
 
 
 
 
 
 
138
  msgstr ""
139
 
140
+ #: src/class.cscf_settings.php:57
141
  msgid "Please Note: To add the contact form to your page please add the text"
142
  msgstr ""
143
 
144
+ #: src/class.cscf_settings.php:58
145
  msgid "to your post or page."
146
  msgstr ""
147
 
148
+ #: src/class.cscf_settings.php:77
149
  msgid "ReCAPTCHA Settings"
150
  msgstr ""
151
 
152
+ #: src/class.cscf_settings.php:88
153
  msgid "Use reCAPTCHA :"
154
  msgstr ""
155
 
156
+ #: src/class.cscf_settings.php:94
157
  msgid "reCAPTCHA Theme :"
158
  msgstr ""
159
 
160
+ #: src/class.cscf_settings.php:100
161
  msgid "reCAPTCHA Public Key :"
162
  msgstr ""
163
 
164
+ #: src/class.cscf_settings.php:106
165
  msgid "reCAPTCHA Private Key :"
166
  msgstr ""
167
 
168
+ #: src/class.cscf_settings.php:112
169
  msgid "Message Settings"
170
  msgstr ""
171
 
172
+ #: src/class.cscf_settings.php:116
173
  msgid "Recipient Emails :"
174
  msgstr ""
175
 
176
+ #: src/class.cscf_settings.php:122
177
  msgid "Confirm Email Address :"
178
  msgstr ""
179
 
180
+ #: src/class.cscf_settings.php:128
181
  msgid "Allow users to email themselves a copy :"
182
  msgstr ""
183
 
184
+ #: src/class.cscf_settings.php:134
 
 
 
 
185
  msgid "Add a consent checkbox :"
186
  msgstr ""
187
 
188
+ #: src/class.cscf_settings.php:140
189
  msgid "Consent message :"
190
  msgstr ""
191
 
192
+ #: src/class.cscf_settings.php:146
193
+ msgid "Add a phone number field :"
194
+ msgstr ""
195
+
196
+ #: src/class.cscf_settings.php:152
197
+ msgid "Phone number is mandatory :"
198
+ msgstr ""
199
+
200
+ #: src/class.cscf_settings.php:158
201
  msgid "Override 'From' Address :"
202
  msgstr ""
203
 
204
+ #: src/class.cscf_settings.php:164
205
  msgid "'From' Email Address :"
206
  msgstr ""
207
 
208
+ #: src/class.cscf_settings.php:170
209
  msgid "Email Subject :"
210
  msgstr ""
211
 
212
+ #: src/class.cscf_settings.php:176
213
  msgid "Message :"
214
  msgstr ""
215
 
216
+ #: src/class.cscf_settings.php:182
217
  msgid "Message Sent Heading :"
218
  msgstr ""
219
 
220
+ #: src/class.cscf_settings.php:188
221
  msgid "Message Sent Content :"
222
  msgstr ""
223
 
224
+ #: src/class.cscf_settings.php:194
225
  msgid "Styling and Validation"
226
  msgstr ""
227
 
228
+ #: src/class.cscf_settings.php:198
229
+ msgid "Use the plugin default stylesheet (un-tick to use your theme style sheet instead) :"
 
 
230
  msgstr ""
231
 
232
+ #: src/class.cscf_settings.php:204
233
  msgid "Use client side validation (AJAX) :"
234
  msgstr ""
235
 
236
+ #: src/class.cscf_settings.php:288
237
  msgid "Enter your reCAPTCHA settings below :"
238
  msgstr ""
239
 
240
+ #: src/class.cscf_settings.php:289
241
  msgid "To use reCAPTCHA you must get an API key from"
242
  msgstr ""
243
 
244
+ #: src/class.cscf_settings.php:293
245
  msgid "Enter your message settings below :"
246
  msgstr ""
247
 
248
+ #: src/class.cscf_settings.php:413
249
  msgid "Light"
250
  msgstr ""
251
 
252
+ #: src/class.cscf_settings.php:415
253
  msgid "Dark"
254
  msgstr ""
255
 
256
+ #: src/views/contact-form.view.php:25
257
  msgid "Name:"
258
  msgstr ""
259
 
260
+ #: src/views/contact-form.view.php:37
261
  msgid "Your Name"
262
  msgstr ""
263
 
264
+ #: src/views/contact-form.view.php:54
265
  msgid "Email Address:"
266
  msgstr ""
267
 
268
+ #: src/views/contact-form.view.php:67
269
  msgid "Your Email Address"
270
  msgstr ""
271
 
272
+ #: src/views/contact-form.view.php:83
273
  msgid "Confirm Email Address:"
274
  msgstr ""
275
 
276
+ #: src/views/contact-form.view.php:92, src/views/contact-form.view.php:94
277
  msgid "Please enter the same email address again."
278
  msgstr ""
279
 
280
+ #: src/views/contact-form.view.php:97
281
  msgid "Confirm Your Email Address"
282
  msgstr ""
283
 
284
+ #: src/views/contact-form.view.php:114
285
+ msgid "Phone Number:"
 
 
 
 
286
  msgstr ""
287
 
288
+ #: src/views/contact-form.view.php:121
289
+ msgid "Please give your phone number."
290
  msgstr ""
291
 
292
+ #: src/views/contact-form.view.php:124
293
+ msgid "Your Phone Number"
294
  msgstr ""
295
 
296
+ #: src/views/contact-form.view.php:141
297
+ msgid "Message:"
298
  msgstr ""
299
 
300
+ #: src/views/contact-form.view.php:148
301
+ msgid "Please give a message."
302
  msgstr ""
303
 
304
+ #: src/views/contact-form.view.php:150
305
+ msgid "Your Message"
 
306
  msgstr ""
307
 
308
+ #: src/views/contact-form.view.php:166
309
+ msgid "Send me a copy:"
 
 
310
  msgstr ""
311
 
312
+ #: src/views/contact-form.view.php:257
313
+ msgid "Send Message"
314
  msgstr ""
315
 
316
+ #: src/views/message-not-sent.view.php:1
317
+ msgid "Sorry, there has been a problem and your message was not sent."
318
  msgstr ""
readme.txt CHANGED
@@ -3,10 +3,8 @@ Contributors: fullworks
3
  License: GPLv2 or later
4
  License URI: http://www.gnu.org/licenses/gpl.html
5
  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
6
- Requires at least: 4.6
7
- Tested up to: 5.7
8
- Requires PHP: 5.6
9
- Stable tag: 4.7.5
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA, Twitter Bootstrap markup and Akismet spam filtering.
12
 
@@ -197,6 +195,14 @@ the reCAPTCHA for the contact form will be displayed correctly but not in the co
197
  The comments form will never validate due to no supplied reCAPTCHA code.
198
 
199
  == Changelog ==
 
 
 
 
 
 
 
 
200
  = 4.7.5 =
201
  * correct a couple of text domain issues introduced at 4.7.2
202
 
3
  License: GPLv2 or later
4
  License URI: http://www.gnu.org/licenses/gpl.html
5
  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
6
+ Tested up to: 5.8
7
+ Stable tag: 4.7.6
 
 
8
 
9
  A clean and simple AJAX contact form with Google reCAPTCHA, Twitter Bootstrap markup and Akismet spam filtering.
10
 
195
  The comments form will never validate due to no supplied reCAPTCHA code.
196
 
197
  == Changelog ==
198
+ = 4.7.6 =
199
+ * Introduced optional input field for phone number
200
+ * Exclude consent message from email if disabled
201
+ * Fixed spacing and line breaks in email template
202
+ * Fixed minor issues on settings page
203
+ * Added consent & email to copy email if requested
204
+ * Set copy email headers to text
205
+
206
  = 4.7.5 =
207
  * correct a couple of text domain issues introduced at 4.7.2
208
 
views/contact-form.view.php CHANGED
@@ -106,6 +106,33 @@
106
  </div>
107
  <?php } ?>
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  <!-- message -->
111
  <div class="control-group form-group<?php if ( isset( $contact->Errors['message'] ) ) {
@@ -161,13 +188,13 @@
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 esc_html( cscf_PluginSettings::ContactConsentMsg() ); ?>
165
- :</label>
166
  <div class="<?php echo ( cscf_PluginSettings::InputIcons() ) ? "input-group" : ""; ?>">
167
  <?php if ( cscf_PluginSettings::InputIcons() == true ) { ?>
168
  <span class="input-group-addon"><span class="glyphicon glyphicon-comment"></span></span>
169
  <?php } ?>
170
- <input data-rule-required="true"
 
171
  data-msg-required="<?php esc_html_e( 'Please give your consent.', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>"
172
  <?php echo ( true === $contact->ContactConsent ) ? 'checked' : ''; ?> type="checkbox"
173
  id="cscf_contact-consent"
106
  </div>
107
  <?php } ?>
108
 
109
+ <?php if ( cscf_PluginSettings::PhoneNumber() ) { ?>
110
+ <!-- telephone number -->
111
+ <div class="control-group form-group<?php if ( isset( $contact->Errors['phone-number'] ) ) {
112
+ echo ' error has-error';
113
+ } ?>">
114
+ <label for="cscf_phone-number"><?php esc_html_e( 'Phone Number:', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?></label>
115
+ <div class="<?php echo ( true === cscf_PluginSettings::InputIcons() ) ? 'input-group' : ''; ?>">
116
+ <?php if ( cscf_PluginSettings::InputIcons() == true ) { ?>
117
+ <span class="input-group-addon"><span class="glyphicon glyphicon-phone-alt"></span></span>
118
+ <?php } ?>
119
+ <input class="form-control input-xlarge"
120
+ data-rule-required="<?php echo ( true === cscf_PluginSettings::PhoneNumberMandatory() ) ? 'true' : 'false'; ?>"
121
+ data-msg-required="<?php esc_html_e( 'Please give your phone number.', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>"
122
+ type="text" id="cscf_phone-number" name="cscf[phone-number]"
123
+ value="<?php echo esc_attr( $contact->PhoneNumber ); ?>"
124
+ placeholder="<?php esc_html_e( 'Your Phone Number', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>"
125
+ />
126
+ </div>
127
+ <span for="cscf_phone-number" class="help-inline help-block error"
128
+ style="display:<?php echo isset( $contact->Errors['phone-number'] ) ? 'block' : 'none'; ?>;">
129
+ <?php if ( isset( $contact->Errors['phone-number'] ) ) {
130
+ echo esc_attr( $contact->Errors['phone-number'] );
131
+ } ?>
132
+ </span>
133
+ </div>
134
+ <?php } ?>
135
+
136
 
137
  <!-- message -->
138
  <div class="control-group form-group<?php if ( isset( $contact->Errors['message'] ) ) {
188
  <div class="control-group form-group<?php if ( isset( $contact->Errors['contact-consent'] ) ) {
189
  echo ' error has-error';
190
  } ?>">
191
+ <label for="cscf_contact-consent"><?php echo esc_html( cscf_PluginSettings::ContactConsentMsg() ); ?>:</label>
 
192
  <div class="<?php echo ( cscf_PluginSettings::InputIcons() ) ? "input-group" : ""; ?>">
193
  <?php if ( cscf_PluginSettings::InputIcons() == true ) { ?>
194
  <span class="input-group-addon"><span class="glyphicon glyphicon-comment"></span></span>
195
  <?php } ?>
196
+ <input class="form-control input-xlarge"
197
+ data-rule-required="true"
198
  data-msg-required="<?php esc_html_e( 'Please give your consent.', 'clean-and-simple-contact-form-by-meg-nicholas' ); ?>"
199
  <?php echo ( true === $contact->ContactConsent ) ? 'checked' : ''; ?> type="checkbox"
200
  id="cscf_contact-consent"