Contact Form Clean and Simple - Version 4.2.3

Version Description

  • Added ability to specify multiple recipient email addresses
  • Fix settings gui - there was a problem enabling 'From' Address option when javascript is not enabled.
Download this release

Release Info

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

Code changes from version 4.2.2 to 4.2.3

class.cscf.php CHANGED
@@ -22,6 +22,11 @@ class cscf
22
  'RegisterScripts'
23
  ));
24
 
 
 
 
 
 
25
  add_action('plugins_loaded', array(
26
  $this,
27
  'RegisterTextDomain'
@@ -58,6 +63,19 @@ class cscf
58
 
59
  }
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  function Upgrade()
62
  {
63
  //change namespace of options
@@ -99,6 +117,14 @@ class cscf
99
  }
100
  }
101
 
 
 
 
 
 
 
 
 
102
  }
103
 
104
  /*
22
  'RegisterScripts'
23
  ));
24
 
25
+ add_action('admin_enqueue_scripts', array(
26
+ $this,
27
+ 'RegisterAdminScripts'
28
+ ));
29
+
30
  add_action('plugins_loaded', array(
31
  $this,
32
  'RegisterTextDomain'
63
 
64
  }
65
 
66
+ function RegisterAdminScripts($hook)
67
+ {
68
+ if ( $hook != 'settings_page_contact-form-settings')
69
+ return;
70
+
71
+ wp_register_script('cscf-admin-settings', CSCF_PLUGIN_URL . '/js/jquery.admin.settings.js',
72
+ array(
73
+ 'jquery-ui-sortable',
74
+ ) , CSCF_VERSION_NUM, false );
75
+
76
+ wp_enqueue_script('cscf-admin-settings');
77
+ }
78
+
79
  function Upgrade()
80
  {
81
  //change namespace of options
117
  }
118
  }
119
 
120
+ //upgrade to 4.2.3 recipient_email becomes recipient_emails (array) for multiple recipients
121
+ $options = get_option(CSCF_OPTIONS_KEY);
122
+ if ( isset($options['recipient_email']) ) {
123
+ $options['recipient_emails']=array();
124
+ $options['recipient_emails'][] = $options['recipient_email'];
125
+ update_option(CSCF_OPTIONS_KEY,$options);
126
+ }
127
+
128
  }
129
 
130
  /*
class.cscf_contact.php CHANGED
@@ -90,7 +90,7 @@ class cscf_Contact
90
 
91
  $filters = new cscf_Filters;
92
 
93
- if ( cscf_PluginSettings::OverrideFrom() ) {
94
  $filters->fromEmail=cscf_PluginSettings::FromEmail();
95
  }
96
  else {
@@ -106,8 +106,8 @@ class cscf_Contact
106
  $message="From: " . $this->Name . "\n\n";
107
  $message.="Email: " . $this->Email . "\n\n";
108
  $message.="Message:\n\n" . $this->Message;
109
-
110
- $result = (wp_mail(cscf_PluginSettings::RecipientEmail() , cscf_PluginSettings::Subject(), stripslashes($message)));
111
 
112
  //remove filters (play nice)
113
  $filters->remove('wp_mail_from');
90
 
91
  $filters = new cscf_Filters;
92
 
93
+ if ( cscf_PluginSettings::OverrideFrom() & cscf_PluginSettings::FromEmail() != "" ) {
94
  $filters->fromEmail=cscf_PluginSettings::FromEmail();
95
  }
96
  else {
106
  $message="From: " . $this->Name . "\n\n";
107
  $message.="Email: " . $this->Email . "\n\n";
108
  $message.="Message:\n\n" . $this->Message;
109
+
110
+ $result = (wp_mail(cscf_PluginSettings::RecipientEmails() , cscf_PluginSettings::Subject(), stripslashes($message)));
111
 
112
  //remove filters (play nice)
113
  $filters->remove('wp_mail_from');
class.cscf_pluginsettings.php CHANGED
@@ -68,13 +68,13 @@ class cscf_PluginSettings
68
  return isset($options['use_client_validation']) ? true : false;
69
  }
70
  static
71
- function RecipientEmail()
72
  {
73
  $options = get_option(CSCF_OPTIONS_KEY);
74
-
75
- return isset($options['recipient_email']) ? $options['recipient_email'] : get_bloginfo('admin_email');
76
- }
77
-
78
  static
79
  function Subject()
80
  {
68
  return isset($options['use_client_validation']) ? true : false;
69
  }
70
  static
71
+ function RecipientEmails()
72
  {
73
  $options = get_option(CSCF_OPTIONS_KEY);
74
+ if ( count($options['recipient_emails']) == 0 )
75
+ unset($options['recipient_emails']);
76
+ return isset($options['recipient_emails']) ? $options['recipient_emails'] : array(get_bloginfo('admin_email'));
77
+ }
78
  static
79
  function Subject()
80
  {
class.cscf_settings.php CHANGED
@@ -37,8 +37,6 @@ class cscf_settings
37
  {
38
  ?>
39
 
40
-
41
-
42
  <?php screen_icon(); ?><h2><?php _e('Clean and Simple Contact Form Settings','cleanandsimple');?></h2>
43
  <hr/>
44
 
@@ -81,29 +79,17 @@ class cscf_settings
81
  <p class="howto"><?php _e("Please Note: To add the contact form to your page please add the text","cleanandsimple"); ?> <code>[cscf-contact-form]</code> <?php _e("to your post or page.","cleanandsimple"); ?></p>
82
 
83
  <form method="post" action="options.php">
84
- <?php
85
- submit_button();
86
 
87
- /* This prints out all hidden setting fields*/
88
- settings_fields('test_option_group');
89
- do_settings_sections('contact-form-settings');
90
-
91
- submit_button();
92
- ?>
93
- </form>
94
  </div>
95
- <script>
96
- jQuery('#use_recaptcha').change(function() {
97
- jQuery('#theme').attr('disabled', ! this.checked);
98
- jQuery('#recaptcha_public_key').attr('readonly', ! this.checked);
99
- jQuery('#recaptcha_private_key').attr('readonly', ! this.checked);
100
- });
101
- jQuery('#override-from').change(function() {
102
- jQuery('#from-email').attr('readonly', ! this.checked);
103
- });
104
- </script>
105
-
106
-
107
  <?php
108
  }
109
  public
@@ -145,11 +131,11 @@ class cscf_settings
145
  $this,
146
  'print_section_info_message'
147
  ) , 'contact-form-settings');
148
- add_settings_field('recipient_email', __('Recipient Email :','cleanandsimple'), array(
149
  $this,
150
  'create_fields'
151
  ) , 'contact-form-settings', 'section_message', array(
152
- 'recipient_email'
153
  ));
154
  add_settings_field('override-from', __('Override \'From\' Address :','cleanandsimple'), array(
155
  $this,
@@ -226,14 +212,15 @@ class cscf_settings
226
  //message
227
  $input['message'] = filter_var($input['message'], FILTER_SANITIZE_STRING);
228
 
229
- //recipient_email
230
- if (!filter_var($input['recipient_email'], FILTER_VALIDATE_EMAIL)) {
231
- unset($input['recipient_email']);
 
 
232
  }
233
 
234
  //from
235
  if (!filter_var($input['from-email'], FILTER_VALIDATE_EMAIL)) {
236
- unset($input['override-from']);
237
  unset($input['from-email']);
238
  }
239
 
@@ -243,6 +230,24 @@ class cscf_settings
243
  unset($input['subject']);
244
  }
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  return $input;
247
  }
248
  public
@@ -286,8 +291,18 @@ class cscf_settings
286
  $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "readonly" : "";
287
  ?><input <?php echo $disabled; ?> type="text" size="60" id="recaptcha_private_key" name="<?php echo CSCF_OPTIONS_KEY; ?>[recaptcha_private_key]" value="<?php echo cscf_PluginSettings::PrivateKey(); ?>" /><?php
288
  break;
289
- case 'recipient_email':
290
- ?><input type="text" size="60" id="recipient_email" name="<?php echo CSCF_OPTIONS_KEY; ?>[recipient_email]" value="<?php echo cscf_PluginSettings::RecipientEmail(); ?>" /><?php
 
 
 
 
 
 
 
 
 
 
291
  break;
292
  case 'override-from':
293
  $checked = cscf_PluginSettings::OverrideFrom() == true ? "checked" : "";
37
  {
38
  ?>
39
 
 
 
40
  <?php screen_icon(); ?><h2><?php _e('Clean and Simple Contact Form Settings','cleanandsimple');?></h2>
41
  <hr/>
42
 
79
  <p class="howto"><?php _e("Please Note: To add the contact form to your page please add the text","cleanandsimple"); ?> <code>[cscf-contact-form]</code> <?php _e("to your post or page.","cleanandsimple"); ?></p>
80
 
81
  <form method="post" action="options.php">
82
+ <?php
83
+ submit_button();
84
 
85
+ /* This prints out all hidden setting fields*/
86
+ settings_fields('test_option_group');
87
+ do_settings_sections('contact-form-settings');
88
+
89
+ submit_button();
90
+ ?>
91
+ </form>
92
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
93
  <?php
94
  }
95
  public
131
  $this,
132
  'print_section_info_message'
133
  ) , 'contact-form-settings');
134
+ add_settings_field('recipient_emails', __('Recipient Emails :','cleanandsimple'), array(
135
  $this,
136
  'create_fields'
137
  ) , 'contact-form-settings', 'section_message', array(
138
+ 'recipient_emails'
139
  ));
140
  add_settings_field('override-from', __('Override \'From\' Address :','cleanandsimple'), array(
141
  $this,
212
  //message
213
  $input['message'] = filter_var($input['message'], FILTER_SANITIZE_STRING);
214
 
215
+ //recipient_emails
216
+ foreach ($input['recipient_emails'] as $key=>$recipient) {
217
+ if (!filter_var($input['recipient_emails'][$key], FILTER_VALIDATE_EMAIL)) {
218
+ unset($input['recipient_emails'][$key]);
219
+ }
220
  }
221
 
222
  //from
223
  if (!filter_var($input['from-email'], FILTER_VALIDATE_EMAIL)) {
 
224
  unset($input['from-email']);
225
  }
226
 
230
  unset($input['subject']);
231
  }
232
 
233
+ if ( isset($_POST['add_recipient'])) {
234
+ $input['recipient_emails'][]="";
235
+ }
236
+
237
+ if ( isset($_POST['remove_recipient'])) {
238
+ foreach ($_POST['remove_recipient'] as $key => $element) {
239
+ unset($input['recipient_emails'][$key]);
240
+ }
241
+ }
242
+
243
+ //tidy up the keys
244
+ $tidiedRecipients=array();
245
+ foreach($input['recipient_emails'] as $recipient) {
246
+ $tidiedRecipients[] = $recipient;
247
+ }
248
+ $input['recipient_emails'] = $tidiedRecipients;
249
+
250
+
251
  return $input;
252
  }
253
  public
291
  $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "readonly" : "";
292
  ?><input <?php echo $disabled; ?> type="text" size="60" id="recaptcha_private_key" name="<?php echo CSCF_OPTIONS_KEY; ?>[recaptcha_private_key]" value="<?php echo cscf_PluginSettings::PrivateKey(); ?>" /><?php
293
  break;
294
+ case 'recipient_emails':
295
+ ?><ul id="recipients"><?php
296
+ foreach(cscf_PluginSettings::RecipientEmails() as $key=>$recipientEmail) {
297
+ ?>
298
+ <li class="recipient_email" data-element="<?php echo $key; ?>">
299
+ <input class="enter_recipient" type="email" size="50" name="<?php echo CSCF_OPTIONS_KEY; ?>[recipient_emails][<?php echo $key ?>]" value="<?php echo $recipientEmail; ?>" />
300
+ <input class="add_recipient" title="Add New Recipient" type="submit" name="add_recipient"value="+">
301
+ <input class="remove_recipient" title="Remove This Recipient" type="submit" name="remove_recipient[<?php echo $key; ?>]" value="-">
302
+ </li>
303
+
304
+ <?php }
305
+ ?></ul><?php
306
  break;
307
  case 'override-from':
308
  $checked = cscf_PluginSettings::OverrideFrom() == true ? "checked" : "";
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.2.2
11
  Author: Meghan Nicholas
12
  Author URI: http://www.megnicholas.co.uk
13
  License: GPLv2 or later
@@ -52,7 +52,7 @@ if (!defined('CSCF_PLUGIN_URL')) define('CSCF_PLUGIN_URL', WP_PLUGIN_URL . '/' .
52
 
53
  if (!defined('CSCF_VERSION_KEY')) define('CSCF_VERSION_KEY', 'cscf_version');
54
 
55
- if (!defined('CSCF_VERSION_NUM')) define('CSCF_VERSION_NUM', '4.2.2');
56
 
57
  if (!defined('CSCF_OPTIONS_KEY')) define('CSCF_OPTIONS_KEY', 'cscf_options');
58
 
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.2.3
11
  Author: Meghan Nicholas
12
  Author URI: http://www.megnicholas.co.uk
13
  License: GPLv2 or later
52
 
53
  if (!defined('CSCF_VERSION_KEY')) define('CSCF_VERSION_KEY', 'cscf_version');
54
 
55
+ if (!defined('CSCF_VERSION_NUM')) define('CSCF_VERSION_NUM', '4.2.3');
56
 
57
  if (!defined('CSCF_OPTIONS_KEY')) define('CSCF_OPTIONS_KEY', 'cscf_options');
58
 
js/jquery.admin.settings.js ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(function($) {
2
+
3
+ function SetSortable() {
4
+ //if more than one list item, then it's sortable
5
+ if ( $('li.recipient_email').length > 1 ) {
6
+ $('#recipients').sortable({disabled:false,cursor:'move',axis: "y"});
7
+ }
8
+ else {
9
+ $('#recipients').sortable({disabled:true});
10
+ }
11
+
12
+ //set the cursor depending on how many list items there are
13
+ $('#recipients li').hover(
14
+ function(){
15
+ if ( $('li.recipient_email').length > 1 )
16
+ $(this).css('cursor','move');
17
+ },
18
+ function(){
19
+ $(this).css('cursor','default');
20
+ }
21
+ );
22
+
23
+ }
24
+
25
+ function add_recipient(e) {
26
+ e.preventDefault();
27
+
28
+ //find the next id
29
+ var $nextID=0;
30
+ $('li.recipient_email').each(function() {
31
+ if ( $(this).data('element') > $nextID) {
32
+ $nextID = $(this).data('element');
33
+ }
34
+ });
35
+ $nextID++;
36
+
37
+ //make the new element
38
+ var $eleToClone=$(this).parent();
39
+ $eleToClone.after('<li class="recipient_email" data-element="'+$nextID+'">'+$eleToClone.html()+'</li>');
40
+
41
+ //get the new element
42
+ var $newEle=$('li.recipient_email[data-element="'+$nextID+'"]');
43
+
44
+ //update the array element of the new html
45
+ var $eleToUpdate = $newEle.find('.enter_recipient');
46
+ var $oldName = $eleToUpdate.attr('name');
47
+ var $newName = $oldName.replace('['+$eleToClone.data('element')+']', '['+$nextID+']');
48
+ $eleToUpdate.attr('name', $newName);
49
+ $eleToUpdate.val('');
50
+
51
+ var $eleToUpdate = $newEle.find('.remove_recipient');
52
+ var $oldName = $eleToUpdate.attr('name');
53
+ var $newName = $oldName.replace('['+$eleToClone.data('element')+']', '['+$nextID+']');
54
+ $eleToUpdate.attr('name', $newName);
55
+
56
+ //add events for the new elements
57
+ $newEle.find('.add_recipient').click(add_recipient);
58
+ $newEle.find('.remove_recipient').click(remove_recipient);
59
+
60
+ //set focus
61
+ $newEle.find('.enter_recipient').focus();
62
+
63
+ SetSortable();
64
+ }
65
+
66
+ function remove_recipient(e) {
67
+ e.preventDefault();
68
+ if ( $('li.recipient_email').length < 2 )
69
+ return;
70
+ $(this).parent().remove();
71
+ SetSortable();
72
+ }
73
+
74
+ $('.add_recipient').click(add_recipient);
75
+ $('.remove_recipient').click(remove_recipient);
76
+
77
+
78
+ SetSortable();
79
+
80
+
81
+ $('#use_recaptcha').change(function() {
82
+ $('#theme').attr('disabled', ! this.checked);
83
+ $('#recaptcha_public_key').attr('readonly', ! this.checked);
84
+ $('#recaptcha_private_key').attr('readonly', ! this.checked);
85
+ });
86
+
87
+ $('#override-from').change(function() {
88
+ $('#from-email').attr('readonly', ! this.checked);
89
+ });
90
+
91
+ });
languages/cleanandsimple.pot CHANGED
@@ -2,10 +2,10 @@
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.2.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/clean-and-simple-contact-form-"
7
  "by-meg-nicholas\n"
8
- "POT-Creation-Date: 2013-10-14 08:13:32+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
- #: class.cscf.php:117
17
  msgid "Settings"
18
  msgstr ""
19
 
@@ -21,7 +21,7 @@ msgstr ""
21
  msgid "Sorry the email addresses do not match."
22
  msgstr ""
23
 
24
- #: class.cscf_contact.php:58 views/contact-form.view.php:31
25
  msgid "Please give your email address."
26
  msgstr ""
27
 
@@ -29,7 +29,7 @@ msgstr ""
29
  msgid "Please confirm your email address."
30
  msgstr ""
31
 
32
- #: class.cscf_contact.php:66 views/contact-form.view.php:76
33
  msgid "Please give your name."
34
  msgstr ""
35
 
@@ -37,8 +37,8 @@ msgstr ""
37
  msgid "Please enter a message."
38
  msgstr ""
39
 
40
- #: class.cscf_contact.php:74 views/contact-form.view.php:32
41
- #: views/contact-form.view.php:55
42
  msgid "Please enter a valid email address."
43
  msgstr ""
44
 
@@ -72,193 +72,193 @@ msgstr ""
72
  msgid "Contact Form"
73
  msgstr ""
74
 
75
- #: class.cscf_settings.php:42
76
  msgid "Clean and Simple Contact Form Settings"
77
  msgstr ""
78
 
79
- #: class.cscf_settings.php:48
80
  msgid "Donate $10, $20 or $50!"
81
  msgstr ""
82
 
83
- #: class.cscf_settings.php:50
84
  msgid ""
85
  "If you like this plugin, please donate to support development and "
86
  "maintenance of:"
87
  msgstr ""
88
 
89
- #: class.cscf_settings.php:50
90
  msgid "Clean and Simple Contact Form!"
91
  msgstr ""
92
 
93
- #: class.cscf_settings.php:65
94
  msgid "You are using version"
95
  msgstr ""
96
 
97
- #: class.cscf_settings.php:66
98
  msgid "If you find this plugin useful please consider"
99
  msgstr ""
100
 
101
- #: class.cscf_settings.php:69
102
  msgid "leaving a review"
103
  msgstr ""
104
 
105
- #: class.cscf_settings.php:71
106
  msgid "Thank you!"
107
  msgstr ""
108
 
109
- #: class.cscf_settings.php:76
110
  msgid ""
111
  "NOTICE: You have JetPack's Contact Form enabled please deactivate it or use "
112
  "the shortcode [cscf-contact-form] instead."
113
  msgstr ""
114
 
115
- #: class.cscf_settings.php:77
116
  msgid "Read More"
117
  msgstr ""
118
 
119
- #: class.cscf_settings.php:81
120
  msgid "Please Note: To add the contact form to your page please add the text"
121
  msgstr ""
122
 
123
- #: class.cscf_settings.php:81
124
  msgid "to your post or page."
125
  msgstr ""
126
 
127
- #: class.cscf_settings.php:112
128
  msgid "ReCAPTCHA Settings"
129
  msgstr ""
130
 
131
- #: class.cscf_settings.php:120
132
  msgid "Use reCAPTCHA :"
133
  msgstr ""
134
 
135
- #: class.cscf_settings.php:126
136
  msgid "reCAPTCHA Theme :"
137
  msgstr ""
138
 
139
- #: class.cscf_settings.php:132
140
  msgid "reCAPTCHA Public Key :"
141
  msgstr ""
142
 
143
- #: class.cscf_settings.php:138
144
  msgid "reCAPTCHA Private Key :"
145
  msgstr ""
146
 
147
- #: class.cscf_settings.php:144
148
  msgid "Message Settings"
149
  msgstr ""
150
 
151
- #: class.cscf_settings.php:148
152
- msgid "Recipient Email :"
153
  msgstr ""
154
 
155
- #: class.cscf_settings.php:154
156
  msgid "Override 'From' Address :"
157
  msgstr ""
158
 
159
- #: class.cscf_settings.php:160
160
  msgid "'From' Email Address :"
161
  msgstr ""
162
 
163
- #: class.cscf_settings.php:166
164
  msgid "Email Subject :"
165
  msgstr ""
166
 
167
- #: class.cscf_settings.php:172
168
  msgid "Message :"
169
  msgstr ""
170
 
171
- #: class.cscf_settings.php:178
172
  msgid "Message Sent Heading :"
173
  msgstr ""
174
 
175
- #: class.cscf_settings.php:184
176
  msgid "Message Sent Content :"
177
  msgstr ""
178
 
179
- #: class.cscf_settings.php:190
180
  msgid "Styling and Validation"
181
  msgstr ""
182
 
183
- #: class.cscf_settings.php:194
184
  msgid ""
185
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
186
  "instead) :"
187
  msgstr ""
188
 
189
- #: class.cscf_settings.php:200
190
  msgid "Use client side validation (AJAX) :"
191
  msgstr ""
192
 
193
- #: class.cscf_settings.php:251
194
  msgid "Enter your reCAPTCHA settings below :"
195
  msgstr ""
196
 
197
- #: class.cscf_settings.php:252
198
  msgid "To use reCAPTCHA you must get an API key from"
199
  msgstr ""
200
 
201
- #: class.cscf_settings.php:257
202
  msgid "Enter your message settings below :"
203
  msgstr ""
204
 
205
- #: class.cscf_settings.php:317
206
  msgid "Red"
207
  msgstr ""
208
 
209
- #: class.cscf_settings.php:318
210
  msgid "White"
211
  msgstr ""
212
 
213
- #: class.cscf_settings.php:319
214
  msgid "Blackglass"
215
  msgstr ""
216
 
217
- #: class.cscf_settings.php:320
218
  msgid "Clean"
219
  msgstr ""
220
 
221
- #: views/contact-form.view.php:23
222
  msgid "Email Address:"
223
  msgstr ""
224
 
225
- #: views/contact-form.view.php:35
226
  msgid "Your Email Address"
227
  msgstr ""
228
 
229
- #: views/contact-form.view.php:45
230
  msgid "Confirm Email Address:"
231
  msgstr ""
232
 
233
- #: views/contact-form.view.php:54 views/contact-form.view.php:56
234
  msgid "Please enter the same email address again."
235
  msgstr ""
236
 
237
- #: views/contact-form.view.php:59
238
  msgid "Confirm Your Email Address"
239
  msgstr ""
240
 
241
- #: views/contact-form.view.php:69
242
  msgid "Name:"
243
  msgstr ""
244
 
245
- #: views/contact-form.view.php:79
246
  msgid "Your Name"
247
  msgstr ""
248
 
249
- #: views/contact-form.view.php:89
250
  msgid "Message:"
251
  msgstr ""
252
 
253
- #: views/contact-form.view.php:96
254
  msgid "Please give a message."
255
  msgstr ""
256
 
257
- #: views/contact-form.view.php:98
258
  msgid "Your Message"
259
  msgstr ""
260
 
261
- #: views/contact-form.view.php:120
262
  msgid "Send Message"
263
  msgstr ""
264
 
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.2.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/clean-and-simple-contact-form-"
7
  "by-meg-nicholas\n"
8
+ "POT-Creation-Date: 2013-10-28 20:02:19+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
16
+ #: class.cscf.php:143
17
  msgid "Settings"
18
  msgstr ""
19
 
21
  msgid "Sorry the email addresses do not match."
22
  msgstr ""
23
 
24
+ #: class.cscf_contact.php:58 views/contact-form.view.php:32
25
  msgid "Please give your email address."
26
  msgstr ""
27
 
29
  msgid "Please confirm your email address."
30
  msgstr ""
31
 
32
+ #: class.cscf_contact.php:66 views/contact-form.view.php:77
33
  msgid "Please give your name."
34
  msgstr ""
35
 
37
  msgid "Please enter a message."
38
  msgstr ""
39
 
40
+ #: class.cscf_contact.php:74 views/contact-form.view.php:33
41
+ #: views/contact-form.view.php:56
42
  msgid "Please enter a valid email address."
43
  msgstr ""
44
 
72
  msgid "Contact Form"
73
  msgstr ""
74
 
75
+ #: class.cscf_settings.php:40
76
  msgid "Clean and Simple Contact Form Settings"
77
  msgstr ""
78
 
79
+ #: class.cscf_settings.php:46
80
  msgid "Donate $10, $20 or $50!"
81
  msgstr ""
82
 
83
+ #: class.cscf_settings.php:48
84
  msgid ""
85
  "If you like this plugin, please donate to support development and "
86
  "maintenance of:"
87
  msgstr ""
88
 
89
+ #: class.cscf_settings.php:48
90
  msgid "Clean and Simple Contact Form!"
91
  msgstr ""
92
 
93
+ #: class.cscf_settings.php:63
94
  msgid "You are using version"
95
  msgstr ""
96
 
97
+ #: class.cscf_settings.php:64
98
  msgid "If you find this plugin useful please consider"
99
  msgstr ""
100
 
101
+ #: class.cscf_settings.php:67
102
  msgid "leaving a review"
103
  msgstr ""
104
 
105
+ #: class.cscf_settings.php:69
106
  msgid "Thank you!"
107
  msgstr ""
108
 
109
+ #: class.cscf_settings.php:74
110
  msgid ""
111
  "NOTICE: You have JetPack's Contact Form enabled please deactivate it or use "
112
  "the shortcode [cscf-contact-form] instead."
113
  msgstr ""
114
 
115
+ #: class.cscf_settings.php:75
116
  msgid "Read More"
117
  msgstr ""
118
 
119
+ #: class.cscf_settings.php:79
120
  msgid "Please Note: To add the contact form to your page please add the text"
121
  msgstr ""
122
 
123
+ #: class.cscf_settings.php:79
124
  msgid "to your post or page."
125
  msgstr ""
126
 
127
+ #: class.cscf_settings.php:98
128
  msgid "ReCAPTCHA Settings"
129
  msgstr ""
130
 
131
+ #: class.cscf_settings.php:106
132
  msgid "Use reCAPTCHA :"
133
  msgstr ""
134
 
135
+ #: class.cscf_settings.php:112
136
  msgid "reCAPTCHA Theme :"
137
  msgstr ""
138
 
139
+ #: class.cscf_settings.php:118
140
  msgid "reCAPTCHA Public Key :"
141
  msgstr ""
142
 
143
+ #: class.cscf_settings.php:124
144
  msgid "reCAPTCHA Private Key :"
145
  msgstr ""
146
 
147
+ #: class.cscf_settings.php:130
148
  msgid "Message Settings"
149
  msgstr ""
150
 
151
+ #: class.cscf_settings.php:134
152
+ msgid "Recipient Emails :"
153
  msgstr ""
154
 
155
+ #: class.cscf_settings.php:140
156
  msgid "Override 'From' Address :"
157
  msgstr ""
158
 
159
+ #: class.cscf_settings.php:146
160
  msgid "'From' Email Address :"
161
  msgstr ""
162
 
163
+ #: class.cscf_settings.php:152
164
  msgid "Email Subject :"
165
  msgstr ""
166
 
167
+ #: class.cscf_settings.php:158
168
  msgid "Message :"
169
  msgstr ""
170
 
171
+ #: class.cscf_settings.php:164
172
  msgid "Message Sent Heading :"
173
  msgstr ""
174
 
175
+ #: class.cscf_settings.php:170
176
  msgid "Message Sent Content :"
177
  msgstr ""
178
 
179
+ #: class.cscf_settings.php:176
180
  msgid "Styling and Validation"
181
  msgstr ""
182
 
183
+ #: class.cscf_settings.php:180
184
  msgid ""
185
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
186
  "instead) :"
187
  msgstr ""
188
 
189
+ #: class.cscf_settings.php:186
190
  msgid "Use client side validation (AJAX) :"
191
  msgstr ""
192
 
193
+ #: class.cscf_settings.php:256
194
  msgid "Enter your reCAPTCHA settings below :"
195
  msgstr ""
196
 
197
+ #: class.cscf_settings.php:257
198
  msgid "To use reCAPTCHA you must get an API key from"
199
  msgstr ""
200
 
201
+ #: class.cscf_settings.php:262
202
  msgid "Enter your message settings below :"
203
  msgstr ""
204
 
205
+ #: class.cscf_settings.php:332
206
  msgid "Red"
207
  msgstr ""
208
 
209
+ #: class.cscf_settings.php:333
210
  msgid "White"
211
  msgstr ""
212
 
213
+ #: class.cscf_settings.php:334
214
  msgid "Blackglass"
215
  msgstr ""
216
 
217
+ #: class.cscf_settings.php:335
218
  msgid "Clean"
219
  msgstr ""
220
 
221
+ #: views/contact-form.view.php:24
222
  msgid "Email Address:"
223
  msgstr ""
224
 
225
+ #: views/contact-form.view.php:36
226
  msgid "Your Email Address"
227
  msgstr ""
228
 
229
+ #: views/contact-form.view.php:46
230
  msgid "Confirm Email Address:"
231
  msgstr ""
232
 
233
+ #: views/contact-form.view.php:55 views/contact-form.view.php:57
234
  msgid "Please enter the same email address again."
235
  msgstr ""
236
 
237
+ #: views/contact-form.view.php:60
238
  msgid "Confirm Your Email Address"
239
  msgstr ""
240
 
241
+ #: views/contact-form.view.php:70
242
  msgid "Name:"
243
  msgstr ""
244
 
245
+ #: views/contact-form.view.php:80
246
  msgid "Your Name"
247
  msgstr ""
248
 
249
+ #: views/contact-form.view.php:90
250
  msgid "Message:"
251
  msgstr ""
252
 
253
+ #: views/contact-form.view.php:97
254
  msgid "Please give a message."
255
  msgstr ""
256
 
257
+ #: views/contact-form.view.php:99
258
  msgid "Your Message"
259
  msgstr ""
260
 
261
+ #: views/contact-form.view.php:121
262
  msgid "Send Message"
263
  msgstr ""
264
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: simple, contact, form, contact button, contact form, contact form plugin, contacts, contacts form plugin, contact me, feedback form, bootstrap, twitter, google, reCAPTCHA, ajax, secure
7
  Requires at least: 3.3
8
  Tested up to: 3.6.1
9
- Stable tag: 4.2.2
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA and Twitter Bootstrap markup.
12
 
@@ -104,7 +104,10 @@ Here is a list of things that you can change
104
 
105
  * **reCAPTCHA Theme**: Here you can change the reCAPTCHA box theme so that it fits with the style of your website.
106
 
107
- * **Recipient Email**: The email address where you would like all messages to be sent. This will default to the email address you have specified under 'E-Mail Address' in your WordPress General Settings. If you want your mail sent to a different address then enter it here.
 
 
 
108
 
109
  * **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.
110
 
@@ -180,7 +183,10 @@ the reCAPTCHA for the contact form will be displayed correctly but not in the co
180
  The comments form will never validate due to no supplied reCAPTCHA code.
181
 
182
  == Changelog ==
183
- * 4.2.2
 
 
 
184
  * Recaptcha library has now been namespaced to 'cscf' to remove ALL possibility of conflicts with other plugins that also include this library.
185
  = 4.2.1 =
186
  * Fixed potential conflict with other themes or plugins that use Google reCAPTCHA. reCAPTCHA library is not loaded if it already loaded by another plugin or theme.
@@ -259,6 +265,8 @@ Polish thanks to Patryk Peas
259
 
260
 
261
  == Upgrade Notice ==
 
 
262
  = 4.2.2 =
263
  Remove ALL possibility of conflicts with other plugins that also include Google reCAPTCHA library
264
  = 4.2.1 =
6
  Tags: simple, contact, form, contact button, contact form, contact form plugin, contacts, contacts form plugin, contact me, feedback form, bootstrap, twitter, google, reCAPTCHA, ajax, secure
7
  Requires at least: 3.3
8
  Tested up to: 3.6.1
9
+ Stable tag: 4.2.3
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA and Twitter Bootstrap markup.
12
 
104
 
105
  * **reCAPTCHA Theme**: Here you can change the reCAPTCHA box theme so that it fits with the style of your website.
106
 
107
+ * **!NEW! Recipient Emails**: The email address where you would like all messages to be sent.
108
+ This will default to the email address you have specified under 'E-Mail Address' in your WordPress General Settings.
109
+ If you want your mail sent to a different address then enter it here.
110
+ You may enter multiple email addresses by clicking the '+' button.
111
 
112
  * **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.
113
 
183
  The comments form will never validate due to no supplied reCAPTCHA code.
184
 
185
  == Changelog ==
186
+ = 4.2.3 =
187
+ * Added ability to specify multiple recipient email addresses
188
+ * Fix settings gui - there was a problem enabling 'From' Address option when javascript is not enabled.
189
+ = 4.2.2 =
190
  * Recaptcha library has now been namespaced to 'cscf' to remove ALL possibility of conflicts with other plugins that also include this library.
191
  = 4.2.1 =
192
  * Fixed potential conflict with other themes or plugins that use Google reCAPTCHA. reCAPTCHA library is not loaded if it already loaded by another plugin or theme.
265
 
266
 
267
  == Upgrade Notice ==
268
+ = 4.2.3 =
269
+ Multiple recipients are now possible
270
  = 4.2.2 =
271
  Remove ALL possibility of conflicts with other plugins that also include Google reCAPTCHA library
272
  = 4.2.1 =
views/contact-form.view.php CHANGED
@@ -1,6 +1,7 @@
1
- <!--Clean and Simple Contact Form by Meg Nicholas Version <?php echo $version; ?>-->
2
-
3
  <div id="cscf" class="cscfBlock">
 
 
 
4
  <div class="cscfMessageSent" style="display:none;">
5
  <?php echo $messageSentView->Render(); ?>
6
  </div>
 
 
1
  <div id="cscf" class="cscfBlock">
2
+ <div class="cscfVersion" style="display:none;">
3
+ <a href="http://www.megnicholas.co.uk?version=<?php echo urlencode($version); ?>">Clean and Simple WordPress Contact Form by Meg Nicholas - WordPress Developer</a>
4
+ </div>
5
  <div class="cscfMessageSent" style="display:none;">
6
  <?php echo $messageSentView->Render(); ?>
7
  </div>