Contact Form Clean and Simple - Version 4.4.0

Version Description

  • Add option for enquiry to email themselves a copy of the message
  • Update to Polish translation thanks to Radosaw Robaczek Rak
Download this release

Release Info

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

Code changes from version 4.3.4 to 4.4.0

class.cscf_contact.php CHANGED
@@ -10,130 +10,160 @@ class cscf_Contact
10
  var $Email;
11
  var $ConfirmEmail;
12
  var $Message;
 
13
  var $ErrorMessage;
14
  var $RecaptchaPublicKey;
15
  var $RecaptchaPrivateKey;
16
  var $Errors;
17
  var $PostID;
18
  var $IsSpam;
19
-
20
- function __construct()
21
  {
22
  $this->Errors = array();
23
-
24
- if (cscf_PluginSettings::UseRecaptcha())
25
- {
26
  $this->RecaptchaPublicKey = cscf_PluginSettings::PublicKey();
27
  $this->RecaptchaPrivateKey = cscf_PluginSettings::PrivateKey();
28
  }
29
-
30
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['cscf']) )
31
- {
32
  $cscf = $_POST['cscf'];
33
- $this->Name = filter_var($cscf['name'], FILTER_SANITIZE_STRING,FILTER_FLAG_NO_ENCODE_QUOTES);
34
  $this->Email = filter_var($cscf['email'], FILTER_SANITIZE_EMAIL);
35
- if ( isset($cscf['confirm-email']) ) {
 
36
  $this->ConfirmEmail = filter_var($cscf['confirm-email'], FILTER_SANITIZE_EMAIL);
37
  }
38
- $this->Message = filter_var($cscf['message'], FILTER_SANITIZE_STRING,FILTER_FLAG_NO_ENCODE_QUOTES);
 
 
 
39
  if (isset($_POST['post-id'])) {
40
  $this->PostID = $_POST['post-id'];
41
  }
42
  unset($_POST['cscf']);
43
  }
44
-
45
  $this->IsSpam = false;
46
  }
47
-
48
  public
49
- function IsValid()
50
  {
51
  $this->Errors = array();
52
-
53
- if ($_SERVER['REQUEST_METHOD'] != 'POST')
54
- return false;
55
 
56
  //check nonce
57
-
58
- if (!wp_verify_nonce($_POST['cscf_nonce'], 'cscf_contact'))
59
- return false;
60
 
61
  // email and confirm email are the same
62
- if ( cscf_PluginSettings::ConfirmEmail() ) {
63
- if ($this->Email != $this->ConfirmEmail) $this->Errors['confirm-email'] = __('Sorry the email addresses do not match.','cleanandsimple');
64
  }
65
 
66
  //email
67
-
68
- if (strlen($this->Email) == 0) $this->Errors['email'] = __('Please give your email address.','cleanandsimple');
69
 
70
  //confirm email
71
- if ( cscf_PluginSettings::ConfirmEmail() ) {
72
- if (strlen($this->ConfirmEmail) == 0) $this->Errors['confirm-email'] = __('Please confirm your email address.','cleanandsimple');
73
  }
74
 
75
  //name
76
-
77
- if (strlen($this->Name) == 0) $this->Errors['name'] = __('Please give your name.','cleanandsimple');
78
 
79
  //message
80
-
81
- if (strlen($this->Message) == 0) $this->Errors['message'] = __('Please enter a message.','cleanandsimple');
82
 
83
  //email invalid address
84
-
85
- if (strlen($this->Email) > 0 && !filter_var($this->Email, FILTER_VALIDATE_EMAIL)) $this->Errors['email'] = __('Please enter a valid email address.','cleanandsimple');
86
 
87
  //check recaptcha but only if we have keys
88
-
89
- if ($this->RecaptchaPublicKey <> '' && $this->RecaptchaPrivateKey <> '')
90
- {
91
  $resp = cscf_recaptcha_check_answer($this->RecaptchaPrivateKey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
92
-
93
- if (!$resp->is_valid) $this->Errors['recaptcha'] = __('Sorry the code wasn\'t entered correctly please try again.','cleanandsimple');
94
  }
95
-
96
  return count($this->Errors) == 0;
97
  }
98
 
99
  public
100
- function SendMail() {
101
- apply_filters('cscf_spamfilter',$this);
102
-
103
- if ( $this->IsSpam === true ) {
 
104
  return true;
105
  }
106
-
107
  $filters = new cscf_Filters;
108
-
109
- if ( cscf_PluginSettings::OverrideFrom() & cscf_PluginSettings::FromEmail() != "" ) {
110
- $filters->fromEmail=cscf_PluginSettings::FromEmail();
111
- }
112
- else {
113
- $filters->fromEmail=$this->Email;
114
  }
115
 
116
- $filters->fromName=$this->Name;
117
-
118
  //add filters
119
  $filters->add('wp_mail_from');
120
  $filters->add('wp_mail_from_name');
121
-
122
  //headers
123
- $header="Reply-To: " .$this->Email. "\r\n";
124
-
125
  //message
126
- $message="From: " . $this->Name . "\n\n";
127
- $message.="Email: " . $this->Email . "\n\n";
128
- $message.="Page URL: " . get_permalink($this->PostID) . "\n\n";
129
- $message.="Message:\n\n" . $this->Message;
130
-
131
- $result = (wp_mail(cscf_PluginSettings::RecipientEmails() , cscf_PluginSettings::Subject(), stripslashes($message), $header));
132
-
133
  //remove filters (play nice)
134
  $filters->remove('wp_mail_from');
135
  $filters->remove('wp_mail_from_name');
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  return $result;
138
  }
139
  }
10
  var $Email;
11
  var $ConfirmEmail;
12
  var $Message;
13
+ var $EmailToSender;
14
  var $ErrorMessage;
15
  var $RecaptchaPublicKey;
16
  var $RecaptchaPrivateKey;
17
  var $Errors;
18
  var $PostID;
19
  var $IsSpam;
20
+
21
+ function __construct()
22
  {
23
  $this->Errors = array();
24
+
25
+ if (cscf_PluginSettings::UseRecaptcha()) {
 
26
  $this->RecaptchaPublicKey = cscf_PluginSettings::PublicKey();
27
  $this->RecaptchaPrivateKey = cscf_PluginSettings::PrivateKey();
28
  }
29
+
30
+ if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['cscf'])) {
 
31
  $cscf = $_POST['cscf'];
32
+ $this->Name = filter_var($cscf['name'], FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
33
  $this->Email = filter_var($cscf['email'], FILTER_SANITIZE_EMAIL);
34
+
35
+ if (isset($cscf['confirm-email'])) {
36
  $this->ConfirmEmail = filter_var($cscf['confirm-email'], FILTER_SANITIZE_EMAIL);
37
  }
38
+
39
+ $this->EmailToSender = isset($cscf['email-sender']);
40
+
41
+ $this->Message = filter_var($cscf['message'], FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
42
  if (isset($_POST['post-id'])) {
43
  $this->PostID = $_POST['post-id'];
44
  }
45
  unset($_POST['cscf']);
46
  }
47
+
48
  $this->IsSpam = false;
49
  }
50
+
51
  public
52
+ function IsValid()
53
  {
54
  $this->Errors = array();
55
+
56
+ if ($_SERVER['REQUEST_METHOD'] != 'POST')
57
+ return false;
58
 
59
  //check nonce
60
+
61
+ if (!wp_verify_nonce($_POST['cscf_nonce'], 'cscf_contact'))
62
+ return false;
63
 
64
  // email and confirm email are the same
65
+ if (cscf_PluginSettings::ConfirmEmail()) {
66
+ if ($this->Email != $this->ConfirmEmail) $this->Errors['confirm-email'] = __('Sorry the email addresses do not match.', 'cleanandsimple');
67
  }
68
 
69
  //email
70
+
71
+ if (strlen($this->Email) == 0) $this->Errors['email'] = __('Please give your email address.', 'cleanandsimple');
72
 
73
  //confirm email
74
+ if (cscf_PluginSettings::ConfirmEmail()) {
75
+ if (strlen($this->ConfirmEmail) == 0) $this->Errors['confirm-email'] = __('Please confirm your email address.', 'cleanandsimple');
76
  }
77
 
78
  //name
79
+
80
+ if (strlen($this->Name) == 0) $this->Errors['name'] = __('Please give your name.', 'cleanandsimple');
81
 
82
  //message
83
+
84
+ if (strlen($this->Message) == 0) $this->Errors['message'] = __('Please enter a message.', 'cleanandsimple');
85
 
86
  //email invalid address
87
+
88
+ if (strlen($this->Email) > 0 && !filter_var($this->Email, FILTER_VALIDATE_EMAIL)) $this->Errors['email'] = __('Please enter a valid email address.', 'cleanandsimple');
89
 
90
  //check recaptcha but only if we have keys
91
+
92
+ if ($this->RecaptchaPublicKey <> '' && $this->RecaptchaPrivateKey <> '') {
 
93
  $resp = cscf_recaptcha_check_answer($this->RecaptchaPrivateKey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
94
+
95
+ if (!$resp->is_valid) $this->Errors['recaptcha'] = __('Sorry the code wasn\'t entered correctly please try again.', 'cleanandsimple');
96
  }
97
+
98
  return count($this->Errors) == 0;
99
  }
100
 
101
  public
102
+ function SendMail()
103
+ {
104
+ apply_filters('cscf_spamfilter', $this);
105
+
106
+ if ($this->IsSpam === true) {
107
  return true;
108
  }
109
+
110
  $filters = new cscf_Filters;
111
+
112
+ if (cscf_PluginSettings::OverrideFrom() & cscf_PluginSettings::FromEmail() != "") {
113
+ $filters->fromEmail = cscf_PluginSettings::FromEmail();
114
+ } else {
115
+ $filters->fromEmail = $this->Email;
 
116
  }
117
 
118
+ $filters->fromName = $this->Name;
119
+
120
  //add filters
121
  $filters->add('wp_mail_from');
122
  $filters->add('wp_mail_from_name');
123
+
124
  //headers
125
+ $header = "Reply-To: " . $this->Email . "\r\n";
126
+
127
  //message
128
+ $message = "From: " . $this->Name . "\n\n";
129
+ $message .= "Email: " . $this->Email . "\n\n";
130
+ $message .= "Page URL: " . get_permalink($this->PostID) . "\n\n";
131
+ $message .= "Message:\n\n" . $this->Message;
132
+
133
+ $result = (wp_mail(cscf_PluginSettings::RecipientEmails(), cscf_PluginSettings::Subject(), stripslashes($message), $header));
134
+
135
  //remove filters (play nice)
136
  $filters->remove('wp_mail_from');
137
  $filters->remove('wp_mail_from_name');
138
 
139
+ //send an email to the form-filler
140
+ if ($this->EmailToSender) {
141
+ $recipients = cscf_PluginSettings::RecipientEmails();
142
+
143
+ if (cscf_PluginSettings::OverrideFrom() & cscf_PluginSettings::FromEmail() != "") {
144
+ $filters->fromEmail = cscf_PluginSettings::FromEmail();
145
+ } else {
146
+ $filters->fromEmail = $recipients[0];
147
+ }
148
+
149
+ $filters->fromName = get_bloginfo('name');
150
+
151
+ //add filters
152
+ $filters->add('wp_mail_from');
153
+ $filters->add('wp_mail_from_name');
154
+
155
+ $header = "";
156
+ $message = cscf_PluginSettings::SentMessageBody() . "\n\n";
157
+ $message .= __("Here is a copy of your message :", "cleanandsimple") . "\n\n";
158
+ $message .= $this->Message;
159
+
160
+ $result = (wp_mail($this->Email, cscf_PluginSettings::Subject(), stripslashes($message), $header));
161
+
162
+ //remove filters (play nice)
163
+ $filters->remove('wp_mail_from');
164
+ $filters->remove('wp_mail_from_name');
165
+ }
166
+
167
  return $result;
168
  }
169
  }
class.cscf_pluginsettings.php CHANGED
@@ -2,126 +2,150 @@
2
 
3
  class cscf_PluginSettings
4
  {
5
- static
6
- function UseRecaptcha()
7
  {
8
 
9
- /* @var $options type array*/
10
  $options = get_option(CSCF_OPTIONS_KEY);
11
-
12
  return isset($options['use_recaptcha']) ? true : false;
13
  }
14
- static
15
- function Theme()
 
16
  {
17
  $options = get_option(CSCF_OPTIONS_KEY);
18
-
19
  return isset($options['theme']) ? $options['theme'] : 'red';
20
  }
21
- static
22
- function PublicKey()
 
23
  {
24
  $options = get_option(CSCF_OPTIONS_KEY);
25
-
26
  return $options['recaptcha_public_key'];
27
  }
28
- static
29
- function PrivateKey()
 
30
  {
31
  $options = get_option(CSCF_OPTIONS_KEY);
32
-
33
  return $options['recaptcha_private_key'];
34
  }
35
- static
36
- function SentMessageHeading()
 
37
  {
38
  $options = get_option(CSCF_OPTIONS_KEY);
39
-
40
- return isset($options['sent_message_heading']) ? __($options['sent_message_heading'],'cleanandsimple') : __('Message Sent','cleanandsimple');
41
  }
42
- static
43
- function SentMessageBody()
 
44
  {
45
  $options = get_option(CSCF_OPTIONS_KEY);
46
-
47
- return isset($options['sent_message_body']) ? __($options['sent_message_body'],'cleanandsimple') : __('Thank you for your message, we will be in touch very shortly.','cleanandsimple');
48
  }
49
- static
50
- function Message()
 
51
  {
52
  $options = get_option(CSCF_OPTIONS_KEY);
53
-
54
- return isset($options['message']) ? __($options['message'],'cleanandsimple') : __('Please enter your contact details and a short message below and I will try to answer your query as soon as possible.','cleanandsimple');
55
  }
56
- static
57
- function LoadStyleSheet()
 
58
  {
59
  $options = get_option(CSCF_OPTIONS_KEY);
60
-
61
  return isset($options['load_stylesheet']) ? true : false;
62
  }
63
- static
64
- function UseClientValidation()
 
65
  {
66
  $options = get_option(CSCF_OPTIONS_KEY);
67
-
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
  {
81
  $options = get_option(CSCF_OPTIONS_KEY);
82
-
83
- return isset($options['subject']) ? __($options['subject'],'cleanandsimple') : get_bloginfo('name') . __(' - Web Enquiry','cleanandsimple');
84
  }
85
-
86
  static
87
- function FromEmail()
88
  {
89
  $options = get_option(CSCF_OPTIONS_KEY);
90
-
91
  return isset($options['from-email']) ? $options['from-email'] : "";
92
- }
93
-
94
  static
95
- function OverrideFrom() {
 
96
 
97
  $options = get_option(CSCF_OPTIONS_KEY);
98
-
99
  return isset($options['override-from']) ? true : false;
100
 
101
  }
102
-
 
 
 
 
 
 
 
 
 
 
103
  static
104
- function IsJetPackContactFormEnabled() {
 
105
  //check for jetpack plugin
106
- if ( ! is_plugin_active('jetpack/jetpack.php') )
107
  return false;
108
-
109
  //check we can use the jetpack method
110
- if ( ! method_exists('JetPack', 'get_active_modules') )
111
  return false;
112
 
113
  //now check if it is in the active modules
114
- return in_array( 'contact-form', JetPack::get_active_modules() );
115
-
116
  }
117
-
118
  static
119
- function InputIcons() {
 
120
  return false;
121
  }
122
-
123
  static
124
- function ConfirmEmail() {
 
125
  $options = get_option(CSCF_OPTIONS_KEY);
126
  return isset($options['confirm-email']) ? true : false;
127
  }
2
 
3
  class cscf_PluginSettings
4
  {
5
+ static
6
+ function UseRecaptcha()
7
  {
8
 
9
+ /* @var $options type array */
10
  $options = get_option(CSCF_OPTIONS_KEY);
11
+
12
  return isset($options['use_recaptcha']) ? true : false;
13
  }
14
+
15
+ static
16
+ function Theme()
17
  {
18
  $options = get_option(CSCF_OPTIONS_KEY);
19
+
20
  return isset($options['theme']) ? $options['theme'] : 'red';
21
  }
22
+
23
+ static
24
+ function PublicKey()
25
  {
26
  $options = get_option(CSCF_OPTIONS_KEY);
27
+
28
  return $options['recaptcha_public_key'];
29
  }
30
+
31
+ static
32
+ function PrivateKey()
33
  {
34
  $options = get_option(CSCF_OPTIONS_KEY);
35
+
36
  return $options['recaptcha_private_key'];
37
  }
38
+
39
+ static
40
+ function SentMessageHeading()
41
  {
42
  $options = get_option(CSCF_OPTIONS_KEY);
43
+
44
+ return isset($options['sent_message_heading']) ? __($options['sent_message_heading'], 'cleanandsimple') : __('Message Sent', 'cleanandsimple');
45
  }
46
+
47
+ static
48
+ function SentMessageBody()
49
  {
50
  $options = get_option(CSCF_OPTIONS_KEY);
51
+
52
+ return isset($options['sent_message_body']) ? __($options['sent_message_body'], 'cleanandsimple') : __('Thank you for your message, we will be in touch very shortly.', 'cleanandsimple');
53
  }
54
+
55
+ static
56
+ function Message()
57
  {
58
  $options = get_option(CSCF_OPTIONS_KEY);
59
+
60
+ return isset($options['message']) ? __($options['message'], 'cleanandsimple') : __('Please enter your contact details and a short message below and I will try to answer your query as soon as possible.', 'cleanandsimple');
61
  }
62
+
63
+ static
64
+ function LoadStyleSheet()
65
  {
66
  $options = get_option(CSCF_OPTIONS_KEY);
67
+
68
  return isset($options['load_stylesheet']) ? true : false;
69
  }
70
+
71
+ static
72
+ function UseClientValidation()
73
  {
74
  $options = get_option(CSCF_OPTIONS_KEY);
75
+
76
  return isset($options['use_client_validation']) ? true : false;
77
  }
78
+
79
  static
80
+ function RecipientEmails()
81
  {
82
  $options = get_option(CSCF_OPTIONS_KEY);
83
+ if (count($options['recipient_emails']) == 0)
84
  unset($options['recipient_emails']);
85
  return isset($options['recipient_emails']) ? $options['recipient_emails'] : array(get_bloginfo('admin_email'));
86
+ }
87
+
88
  static
89
+ function Subject()
90
  {
91
  $options = get_option(CSCF_OPTIONS_KEY);
92
+
93
+ return isset($options['subject']) ? __($options['subject'], 'cleanandsimple') : get_bloginfo('name') . __(' - Web Enquiry', 'cleanandsimple');
94
  }
95
+
96
  static
97
+ function FromEmail()
98
  {
99
  $options = get_option(CSCF_OPTIONS_KEY);
100
+
101
  return isset($options['from-email']) ? $options['from-email'] : "";
102
+ }
103
+
104
  static
105
+ function OverrideFrom()
106
+ {
107
 
108
  $options = get_option(CSCF_OPTIONS_KEY);
109
+
110
  return isset($options['override-from']) ? true : false;
111
 
112
  }
113
+
114
+ static
115
+ function EmailToSender()
116
+ {
117
+
118
+ $options = get_option(CSCF_OPTIONS_KEY);
119
+
120
+ return isset($options['email-sender']) ? true : false;
121
+
122
+ }
123
+
124
  static
125
+ function IsJetPackContactFormEnabled()
126
+ {
127
  //check for jetpack plugin
128
+ if (!is_plugin_active('jetpack/jetpack.php'))
129
  return false;
130
+
131
  //check we can use the jetpack method
132
+ if (!method_exists('JetPack', 'get_active_modules'))
133
  return false;
134
 
135
  //now check if it is in the active modules
136
+ return in_array('contact-form', JetPack::get_active_modules());
137
+
138
  }
139
+
140
  static
141
+ function InputIcons()
142
+ {
143
  return false;
144
  }
145
+
146
  static
147
+ function ConfirmEmail()
148
+ {
149
  $options = get_option(CSCF_OPTIONS_KEY);
150
  return isset($options['confirm-email']) ? true : false;
151
  }
class.cscf_settings.php CHANGED
@@ -6,12 +6,11 @@
6
 
7
  class cscf_settings
8
  {
9
- public
10
- function __construct()
11
  {
12
-
13
- if (is_admin())
14
- {
15
  add_action('admin_menu', array(
16
  $this,
17
  'add_plugin_page'
@@ -22,336 +21,391 @@ class cscf_settings
22
  ));
23
  }
24
  }
25
- public
26
- function add_plugin_page()
 
27
  {
28
 
29
  // This page will be under "Settings"
30
- add_options_page(__('Contact Form Settings','cleanandsimple'), __('Contact Form','cleanandsimple'), 'manage_options', 'contact-form-settings', array(
31
  $this,
32
  'create_admin_page'
33
  ));
34
  }
35
- public
36
- function create_admin_page()
 
37
  {
38
- ?>
39
-
40
- <?php screen_icon(); ?><h2><?php _e('Clean and Simple Contact Form Settings','cleanandsimple');?></h2>
41
  <hr/>
42
-
43
  <div style="float:right;position: relative;width:250px;">
44
-
45
- <div style="border:1px solid;padding:5px;margin-bottom: 8px;text-align:center;">
46
- <h3><?php _e("Donate $10, $20 or $50!","cleanandsimple");?></h3>
 
47
  <div>
48
- <p><?php _e("If you like this plugin, please donate to support development and maintenance of:","cleanandsimple"); ?></p> <h3><?php _e("Clean and Simple Contact Form!","cleanandsimple"); ?></h3>
 
 
49
 
50
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
51
  <input type="hidden" name="cmd" value="_s-xclick">
52
  <input type="hidden" name="hosted_button_id" value="ALAGLZ3APUZMW">
53
- <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
54
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
55
- </form>
56
-
57
- </div>
58
- </div>
59
-
60
- <a title="ManageWP" href="http://managewp.com/?utm_source=clean_simple_form&utm_medium=Banner&utm_content=mwp250_2&utm_campaign=Plugins"><img alt="ManageWP - Manage all your WordPress blogs from one Dashboard"src="<?php echo CSCF_PLUGIN_URL; ?>/images/managewp.png" width="250px" height="250px"/></a>
 
 
 
 
 
61
  </div>
62
  <div style="float:left;">
63
- <p><?php _e('You are using version','cleanandsimple'); ?> <?php echo CSCF_VERSION_NUM;?></p>
64
- <p><?php _e('If you find this plugin useful please consider','cleanandsimple'); ?>
65
- <a target="_blank"
66
- href="http://wordpress.org/support/view/plugin-reviews/<?php echo CSCF_PLUGIN_NAME; ?>">
67
- <?php _e('leaving a review', 'cleanandsimple'); ?>
68
- </a>
69
- . <?php _e('Thank you!','cleanandsimple'); ?>
70
- </p>
71
-
72
- <?php if ( cscf_PluginSettings::IsJetPackContactFormEnabled() ) { ?>
73
- <p class="highlight">
74
- <?php _e('NOTICE: You have JetPack\'s Contact Form enabled please deactivate it or use the shortcode [cscf-contact-form] instead.','cleanandsimple'); ?>
75
- &nbsp; <a target="_blank" href="http://www.megnicholas.co.uk/articles/clean-and-simple-contact-form-and-jetpack/"><?php _e('Read More','cleanandsimple');?></a>
76
- </p>
77
- <?php } ?>
78
-
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
96
- function page_init()
 
97
  {
98
- add_settings_section('section_recaptcha', '<h3>' . __('ReCAPTCHA Settings','cleanandsimple') . '</h3>', array(
99
  $this,
100
  'print_section_info_recaptcha'
101
- ) , 'contact-form-settings');
102
  register_setting('test_option_group', CSCF_OPTIONS_KEY, array(
103
  $this,
104
  'check_form'
105
  ));
106
- add_settings_field('use_recaptcha',__('Use reCAPTCHA :','cleanandsimple'), array(
107
  $this,
108
  'create_fields'
109
- ) , 'contact-form-settings', 'section_recaptcha', array(
110
  'use_recaptcha'
111
  ));
112
- add_settings_field('theme',__('reCAPTCHA Theme :','cleanandsimple'), array(
113
  $this,
114
  'create_fields'
115
- ) , 'contact-form-settings', 'section_recaptcha', array(
116
  'theme'
117
  ));
118
- add_settings_field('recaptcha_public_key', __('reCAPTCHA Public Key :','cleanandsimple'), array(
119
  $this,
120
  'create_fields'
121
- ) , 'contact-form-settings', 'section_recaptcha', array(
122
  'recaptcha_public_key'
123
  ));
124
- add_settings_field('recaptcha_private_key',__('reCAPTCHA Private Key :','cleanandsimple'), array(
125
  $this,
126
  'create_fields'
127
- ) , 'contact-form-settings', 'section_recaptcha', array(
128
  'recaptcha_private_key'
129
  ));
130
- add_settings_section('section_message', '<h3>'.__('Message Settings','cleanandsimple').'</h3>', array(
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('confirm-email', __('Confirm Email Address :','cleanandsimple'), array(
141
  $this,
142
  'create_fields'
143
- ) , 'contact-form-settings', 'section_message', array(
144
  'confirm-email'
145
- ));
146
- add_settings_field('override-from', __('Override \'From\' Address :','cleanandsimple'), array(
 
 
 
 
 
 
147
  $this,
148
  'create_fields'
149
- ) , 'contact-form-settings', 'section_message', array(
150
  'override-from'
151
- ));
152
- add_settings_field('from-email', __('\'From\' Email Address :','cleanandsimple'), array(
153
  $this,
154
  'create_fields'
155
- ) , 'contact-form-settings', 'section_message', array(
156
  'from-email'
157
- ));
158
- add_settings_field('subject', __('Email Subject :','cleanandsimple'), array(
159
  $this,
160
  'create_fields'
161
- ) , 'contact-form-settings', 'section_message', array(
162
  'subject'
163
  ));
164
- add_settings_field('message', __('Message :','cleanandsimple'), array(
165
  $this,
166
  'create_fields'
167
- ) , 'contact-form-settings', 'section_message', array(
168
  'message'
169
  ));
170
- add_settings_field('sent_message_heading', __('Message Sent Heading :','cleanandsimple'), array(
171
  $this,
172
  'create_fields'
173
- ) , 'contact-form-settings', 'section_message', array(
174
  'sent_message_heading'
175
  ));
176
- add_settings_field('sent_message_body', __('Message Sent Content :','cleanandsimple'), array(
177
  $this,
178
  'create_fields'
179
- ) , 'contact-form-settings', 'section_message', array(
180
  'sent_message_body'
181
  ));
182
- add_settings_section('section_styling', '<h3>'.__('Styling and Validation','cleanandsimple').'</h3>', array(
183
  $this,
184
  'print_section_info_styling'
185
- ) , 'contact-form-settings');
186
- add_settings_field('load_stylesheet', __('Use the plugin default stylesheet (un-tick to use your theme style sheet instead) :','cleanandsimple'), array(
187
  $this,
188
  'create_fields'
189
- ) , 'contact-form-settings', 'section_styling', array(
190
  'load_stylesheet'
191
  ));
192
- add_settings_field('use_client_validation', __('Use client side validation (AJAX) :','cleanandsimple'), array(
193
  $this,
194
  'create_fields'
195
- ) , 'contact-form-settings', 'section_styling', array(
196
  'use_client_validation'
197
  ));
198
  }
199
- public
200
- function check_form($input)
 
201
  {
202
-
203
  //recaptcha theme
204
  if (isset($input['theme'])) $input['theme'] = filter_var($input['theme'], FILTER_SANITIZE_STRING);
205
-
206
  //recaptcha_public_key
207
  if (isset($input['recaptcha_public_key'])) $input['recaptcha_public_key'] = filter_var($input['recaptcha_public_key'], FILTER_SANITIZE_STRING);
208
-
209
  //recaptcha_private_key
210
  if (isset($input['recaptcha_private_key'])) $input['recaptcha_private_key'] = filter_var($input['recaptcha_private_key'], FILTER_SANITIZE_STRING);
211
-
212
  //sent_message_heading
213
  $input['sent_message_heading'] = filter_var($input['sent_message_heading'], FILTER_SANITIZE_STRING);
214
-
215
  //sent_message_body
216
  $input['sent_message_body'] = filter_var($input['sent_message_body'], FILTER_SANITIZE_STRING);
217
-
218
  //message
219
  $input['message'] = filter_var($input['message'], FILTER_SANITIZE_STRING);
220
-
221
  //recipient_emails
222
- foreach ($input['recipient_emails'] as $key=>$recipient) {
223
  if (!filter_var($input['recipient_emails'][$key], FILTER_VALIDATE_EMAIL)) {
224
  unset($input['recipient_emails'][$key]);
225
  }
226
  }
227
-
228
  //from
229
  if (!filter_var($input['from-email'], FILTER_VALIDATE_EMAIL)) {
230
  unset($input['from-email']);
231
  }
232
-
233
  //subject
234
  $input['subject'] = trim(filter_var($input['subject'], FILTER_SANITIZE_STRING));
235
- if ( empty($input['subject']) ) {
236
  unset($input['subject']);
237
  }
238
-
239
- if ( isset($_POST['add_recipient'])) {
240
- $input['recipient_emails'][]="";
241
  }
242
-
243
- if ( isset($_POST['remove_recipient'])) {
244
  foreach ($_POST['remove_recipient'] as $key => $element) {
245
  unset($input['recipient_emails'][$key]);
246
  }
247
- }
248
-
249
  //tidy up the keys
250
- $tidiedRecipients=array();
251
- foreach($input['recipient_emails'] as $recipient) {
252
  $tidiedRecipients[] = $recipient;
253
  }
254
  $input['recipient_emails'] = $tidiedRecipients;
255
-
256
-
257
  return $input;
258
  }
259
- public
260
- function print_section_info_recaptcha()
 
261
  {
262
- print __('Enter your reCAPTCHA settings below :','cleanandsimple');
263
- print "<p>" . __('To use reCAPTCHA you must get an API key from','cleanandsimple')." <a target='_blank' href='" . cscf_recaptcha_get_signup_url($_SERVER['SERVER_NAME']). "'>Google reCAPTCHA</a></p>";
264
  }
265
- public
266
- function print_section_info_message()
 
267
  {
268
- print __('Enter your message settings below :','cleanandsimple');
269
  }
270
- public
271
- function print_section_info_styling()
 
272
  {
273
 
274
  //print 'Enter your styling settings below:';
275
-
276
  }
277
- public
278
- function create_fields($args)
 
279
  {
280
  $fieldname = $args[0];
281
-
282
- switch ($fieldname)
283
- {
284
- case 'use_recaptcha':
285
- $checked = cscf_PluginSettings::UseRecaptcha() == true ? "checked" : "";
286
- ?><input type="checkbox" <?php echo $checked; ?> id="use_recaptcha" name="<?php echo CSCF_OPTIONS_KEY; ?>[use_recaptcha]"><?php
287
- break;
288
- case 'load_stylesheet':
289
- $checked = cscf_PluginSettings::LoadStyleSheet() == true ? "checked" : "";
290
- ?><input type="checkbox" <?php echo $checked; ?> id="load_stylesheet" name="<?php echo CSCF_OPTIONS_KEY; ?>[load_stylesheet]"><?php
291
- break;
292
- case 'recaptcha_public_key':
293
- $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "readonly" : "";
294
- ?><input <?php echo $disabled; ?> type="text" size="60" id="recaptcha_public_key" name="<?php echo CSCF_OPTIONS_KEY; ?>[recaptcha_public_key]" value="<?php echo cscf_PluginSettings::PublicKey(); ?>" /><?php
295
- break;
296
- case 'recaptcha_private_key':
297
- $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "readonly" : "";
298
- ?><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
299
- break;
300
- case 'recipient_emails':
301
- ?><ul id="recipients"><?php
302
- foreach(cscf_PluginSettings::RecipientEmails() as $key=>$recipientEmail) {
303
- ?>
304
- <li class="recipient_email" data-element="<?php echo $key; ?>">
305
- <input class="enter_recipient" type="email" size="50" name="<?php echo CSCF_OPTIONS_KEY; ?>[recipient_emails][<?php echo $key ?>]" value="<?php echo $recipientEmail; ?>" />
306
- <input class="add_recipient" title="Add New Recipient" type="submit" name="add_recipient"value="+">
307
- <input class="remove_recipient" title="Remove This Recipient" type="submit" name="remove_recipient[<?php echo $key; ?>]" value="-">
308
- </li>
309
-
310
- <?php }
311
- ?></ul><?php
312
- break;
313
- case 'confirm-email':
314
- $checked = cscf_PluginSettings::ConfirmEmail() == true ? "checked" : "";
315
- ?><input type="checkbox" <?php echo $checked; ?> id="confirm-email" name="<?php echo CSCF_OPTIONS_KEY; ?>[confirm-email]"><?php
316
- break;
317
- case 'override-from':
318
- $checked = cscf_PluginSettings::OverrideFrom() == true ? "checked" : "";
319
- ?><input type="checkbox" <?php echo $checked; ?> id="override-from" name="<?php echo CSCF_OPTIONS_KEY; ?>[override-from]"><?php
320
- break;
321
- case 'from-email':
322
- $disabled = cscf_PluginSettings::OverrideFrom() == false ? "readonly" : "";
323
- ?><input <?php echo $disabled; ?> type="text" size="60" id="from-email" name="<?php echo CSCF_OPTIONS_KEY; ?>[from-email]" value="<?php echo cscf_PluginSettings::FromEmail(); ?>" /><?php
324
- break;
325
- case 'subject':
326
- ?><input type="text" size="60" id="subject" name="<?php echo CSCF_OPTIONS_KEY; ?>[subject]" value="<?php echo cscf_PluginSettings::Subject(); ?>" /><?php
327
- break;
328
- case 'sent_message_heading':
329
- ?><input type="text" size="60" id="sent_message_heading" name="<?php echo CSCF_OPTIONS_KEY; ?>[sent_message_heading]" value="<?php echo cscf_PluginSettings::SentMessageHeading(); ?>" /><?php
330
- break;
331
- case 'sent_message_body':
332
- ?><textarea cols="63" rows="8" name="<?php echo CSCF_OPTIONS_KEY; ?>[sent_message_body]"><?php echo cscf_PluginSettings::SentMessageBody(); ?></textarea><?php
333
- break;
334
- case 'message':
335
- ?><textarea cols="63" rows="8" name="<?php echo CSCF_OPTIONS_KEY; ?>[message]"><?php echo cscf_PluginSettings::Message(); ?></textarea><?php
336
- break;
337
- case 'theme':
338
- $theme = cscf_PluginSettings::Theme();
339
- $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "disabled" : "";
340
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  <select <?php echo $disabled; ?> id="theme" name="<?php echo CSCF_OPTIONS_KEY; ?>[theme]">
342
- <option <?php echo $theme == "red" ? "selected" : ""; ?> value="red"><?php _e('Red', 'cleanandsimple'); ?></option>
343
- <option <?php echo $theme == "white" ? "selected" : ""; ?> value="white"><?php _e('White','cleanandsimple'); ?></option>
344
- <option <?php echo $theme == "blackglass" ? "selected" : ""; ?> value="blackglass"><?php _e('Blackglass', 'cleanandsimple'); ?></option>
345
- <option <?php echo $theme == "clean" ? "selected" : ""; ?> value="clean"><?php _e('Clean','cleanandsimple'); ?></option>
346
- </select>
 
 
 
 
347
  <?php
348
- break;
349
- case 'use_client_validation':
350
- $checked = cscf_PluginSettings::UseClientValidation() == true ? "checked" : "";
351
- ?><input type="checkbox" <?php echo $checked; ?> id="use_client_validation" name="<?php echo CSCF_OPTIONS_KEY; ?>[use_client_validation]"><?php
352
- break;
353
- default:
354
- break;
 
355
  }
356
  }
357
  }
6
 
7
  class cscf_settings
8
  {
9
+ public
10
+ function __construct()
11
  {
12
+
13
+ if (is_admin()) {
 
14
  add_action('admin_menu', array(
15
  $this,
16
  'add_plugin_page'
21
  ));
22
  }
23
  }
24
+
25
+ public
26
+ function add_plugin_page()
27
  {
28
 
29
  // This page will be under "Settings"
30
+ add_options_page(__('Contact Form Settings', 'cleanandsimple'), __('Contact Form', 'cleanandsimple'), 'manage_options', 'contact-form-settings', array(
31
  $this,
32
  'create_admin_page'
33
  ));
34
  }
35
+
36
+ public
37
+ function create_admin_page()
38
  {
39
+ ?>
40
+
41
+ <?php screen_icon(); ?><h2><?php _e('Clean and Simple Contact Form Settings', 'cleanandsimple'); ?></h2>
42
  <hr/>
43
+
44
  <div style="float:right;position: relative;width:250px;">
45
+
46
+ <div style="border:1px solid;padding:5px;margin-bottom: 8px;text-align:center;">
47
+ <h3><?php _e("Donate $10, $20 or $50!", "cleanandsimple"); ?></h3>
48
+
49
  <div>
50
+ <p><?php _e("If you like this plugin, please donate to support development and maintenance of:", "cleanandsimple"); ?></p>
51
+
52
+ <h3><?php _e("Clean and Simple Contact Form!", "cleanandsimple"); ?></h3>
53
 
54
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
55
  <input type="hidden" name="cmd" value="_s-xclick">
56
  <input type="hidden" name="hosted_button_id" value="ALAGLZ3APUZMW">
57
+ <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif"
58
+ border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
59
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1"
60
+ height="1">
61
+ </form>
62
+
63
+ </div>
64
+ </div>
65
+
66
+ <a title="ManageWP"
67
+ href="http://managewp.com/?utm_source=clean_simple_form&utm_medium=Banner&utm_content=mwp250_2&utm_campaign=Plugins"><img
68
+ alt="ManageWP - Manage all your WordPress blogs from one Dashboard"
69
+ src="<?php echo CSCF_PLUGIN_URL; ?>/images/managewp.png" width="250px" height="250px"/></a>
70
  </div>
71
  <div style="float:left;">
72
+ <p><?php _e('You are using version', 'cleanandsimple'); ?> <?php echo CSCF_VERSION_NUM; ?></p>
73
+
74
+ <p><?php _e('If you find this plugin useful please consider', 'cleanandsimple'); ?>
75
+ <a target="_blank"
76
+ href="http://wordpress.org/support/view/plugin-reviews/<?php echo CSCF_PLUGIN_NAME; ?>">
77
+ <?php _e('leaving a review', 'cleanandsimple'); ?>
78
+ </a>
79
+ . <?php _e('Thank you!', 'cleanandsimple'); ?>
80
+ </p>
81
+
82
+ <?php if (cscf_PluginSettings::IsJetPackContactFormEnabled()) { ?>
83
+ <p class="highlight">
84
+ <?php _e('NOTICE: You have JetPack\'s Contact Form enabled please deactivate it or use the shortcode [cscf-contact-form] instead.', 'cleanandsimple'); ?>
85
+ &nbsp; <a target="_blank"
86
+ href="http://www.megnicholas.co.uk/articles/clean-and-simple-contact-form-and-jetpack/"><?php _e('Read More', 'cleanandsimple'); ?></a>
87
+ </p>
88
+ <?php } ?>
89
+
90
+ <p class="howto"><?php _e("Please Note: To add the contact form to your page please add the text", "cleanandsimple"); ?>
91
+ <code>[cscf-contact-form]</code> <?php _e("to your post or page.", "cleanandsimple"); ?></p>
92
+
93
+ <form method="post" action="options.php">
94
+ <?php
95
+ submit_button();
96
+
97
+ /* This prints out all hidden setting fields*/
98
+ settings_fields('test_option_group');
99
+ do_settings_sections('contact-form-settings');
100
+
101
+ submit_button();
102
+ ?>
103
+ </form>
104
  </div>
105
+ <?php
106
  }
107
+
108
+ public
109
+ function page_init()
110
  {
111
+ add_settings_section('section_recaptcha', '<h3>' . __('ReCAPTCHA Settings', 'cleanandsimple') . '</h3>', array(
112
  $this,
113
  'print_section_info_recaptcha'
114
+ ), 'contact-form-settings');
115
  register_setting('test_option_group', CSCF_OPTIONS_KEY, array(
116
  $this,
117
  'check_form'
118
  ));
119
+ add_settings_field('use_recaptcha', __('Use reCAPTCHA :', 'cleanandsimple'), array(
120
  $this,
121
  'create_fields'
122
+ ), 'contact-form-settings', 'section_recaptcha', array(
123
  'use_recaptcha'
124
  ));
125
+ add_settings_field('theme', __('reCAPTCHA Theme :', 'cleanandsimple'), array(
126
  $this,
127
  'create_fields'
128
+ ), 'contact-form-settings', 'section_recaptcha', array(
129
  'theme'
130
  ));
131
+ add_settings_field('recaptcha_public_key', __('reCAPTCHA Public Key :', 'cleanandsimple'), array(
132
  $this,
133
  'create_fields'
134
+ ), 'contact-form-settings', 'section_recaptcha', array(
135
  'recaptcha_public_key'
136
  ));
137
+ add_settings_field('recaptcha_private_key', __('reCAPTCHA Private Key :', 'cleanandsimple'), array(
138
  $this,
139
  'create_fields'
140
+ ), 'contact-form-settings', 'section_recaptcha', array(
141
  'recaptcha_private_key'
142
  ));
143
+ add_settings_section('section_message', '<h3>' . __('Message Settings', 'cleanandsimple') . '</h3>', array(
144
  $this,
145
  'print_section_info_message'
146
+ ), 'contact-form-settings');
147
+ add_settings_field('recipient_emails', __('Recipient Emails :', 'cleanandsimple'), array(
148
  $this,
149
  'create_fields'
150
+ ), 'contact-form-settings', 'section_message', array(
151
  'recipient_emails'
152
  ));
153
+ add_settings_field('confirm-email', __('Confirm Email Address :', 'cleanandsimple'), array(
154
  $this,
155
  'create_fields'
156
+ ), 'contact-form-settings', 'section_message', array(
157
  'confirm-email'
158
+ ));
159
+ add_settings_field('email-sender', '<span style="color:red;">' . __('*New*','cleanandsimple') . '</span> ' . __('Allow users to email themselves a copy :', 'cleanandsimple'), array(
160
+ $this,
161
+ 'create_fields'
162
+ ), 'contact-form-settings', 'section_message', array(
163
+ 'email-sender'
164
+ ));
165
+ add_settings_field('override-from', __('Override \'From\' Address :', 'cleanandsimple'), array(
166
  $this,
167
  'create_fields'
168
+ ), 'contact-form-settings', 'section_message', array(
169
  'override-from'
170
+ ));
171
+ add_settings_field('from-email', __('\'From\' Email Address :', 'cleanandsimple'), array(
172
  $this,
173
  'create_fields'
174
+ ), 'contact-form-settings', 'section_message', array(
175
  'from-email'
176
+ ));
177
+ add_settings_field('subject', __('Email Subject :', 'cleanandsimple'), array(
178
  $this,
179
  'create_fields'
180
+ ), 'contact-form-settings', 'section_message', array(
181
  'subject'
182
  ));
183
+ add_settings_field('message', __('Message :', 'cleanandsimple'), array(
184
  $this,
185
  'create_fields'
186
+ ), 'contact-form-settings', 'section_message', array(
187
  'message'
188
  ));
189
+ add_settings_field('sent_message_heading', __('Message Sent Heading :', 'cleanandsimple'), array(
190
  $this,
191
  'create_fields'
192
+ ), 'contact-form-settings', 'section_message', array(
193
  'sent_message_heading'
194
  ));
195
+ add_settings_field('sent_message_body', __('Message Sent Content :', 'cleanandsimple'), array(
196
  $this,
197
  'create_fields'
198
+ ), 'contact-form-settings', 'section_message', array(
199
  'sent_message_body'
200
  ));
201
+ add_settings_section('section_styling', '<h3>' . __('Styling and Validation', 'cleanandsimple') . '</h3>', array(
202
  $this,
203
  'print_section_info_styling'
204
+ ), 'contact-form-settings');
205
+ add_settings_field('load_stylesheet', __('Use the plugin default stylesheet (un-tick to use your theme style sheet instead) :', 'cleanandsimple'), array(
206
  $this,
207
  'create_fields'
208
+ ), 'contact-form-settings', 'section_styling', array(
209
  'load_stylesheet'
210
  ));
211
+ add_settings_field('use_client_validation', __('Use client side validation (AJAX) :', 'cleanandsimple'), array(
212
  $this,
213
  'create_fields'
214
+ ), 'contact-form-settings', 'section_styling', array(
215
  'use_client_validation'
216
  ));
217
  }
218
+
219
+ public
220
+ function check_form($input)
221
  {
222
+
223
  //recaptcha theme
224
  if (isset($input['theme'])) $input['theme'] = filter_var($input['theme'], FILTER_SANITIZE_STRING);
225
+
226
  //recaptcha_public_key
227
  if (isset($input['recaptcha_public_key'])) $input['recaptcha_public_key'] = filter_var($input['recaptcha_public_key'], FILTER_SANITIZE_STRING);
228
+
229
  //recaptcha_private_key
230
  if (isset($input['recaptcha_private_key'])) $input['recaptcha_private_key'] = filter_var($input['recaptcha_private_key'], FILTER_SANITIZE_STRING);
231
+
232
  //sent_message_heading
233
  $input['sent_message_heading'] = filter_var($input['sent_message_heading'], FILTER_SANITIZE_STRING);
234
+
235
  //sent_message_body
236
  $input['sent_message_body'] = filter_var($input['sent_message_body'], FILTER_SANITIZE_STRING);
237
+
238
  //message
239
  $input['message'] = filter_var($input['message'], FILTER_SANITIZE_STRING);
240
+
241
  //recipient_emails
242
+ foreach ($input['recipient_emails'] as $key => $recipient) {
243
  if (!filter_var($input['recipient_emails'][$key], FILTER_VALIDATE_EMAIL)) {
244
  unset($input['recipient_emails'][$key]);
245
  }
246
  }
247
+
248
  //from
249
  if (!filter_var($input['from-email'], FILTER_VALIDATE_EMAIL)) {
250
  unset($input['from-email']);
251
  }
252
+
253
  //subject
254
  $input['subject'] = trim(filter_var($input['subject'], FILTER_SANITIZE_STRING));
255
+ if (empty($input['subject'])) {
256
  unset($input['subject']);
257
  }
258
+
259
+ if (isset($_POST['add_recipient'])) {
260
+ $input['recipient_emails'][] = "";
261
  }
262
+
263
+ if (isset($_POST['remove_recipient'])) {
264
  foreach ($_POST['remove_recipient'] as $key => $element) {
265
  unset($input['recipient_emails'][$key]);
266
  }
267
+ }
268
+
269
  //tidy up the keys
270
+ $tidiedRecipients = array();
271
+ foreach ($input['recipient_emails'] as $recipient) {
272
  $tidiedRecipients[] = $recipient;
273
  }
274
  $input['recipient_emails'] = $tidiedRecipients;
275
+
276
+
277
  return $input;
278
  }
279
+
280
+ public
281
+ function print_section_info_recaptcha()
282
  {
283
+ print __('Enter your reCAPTCHA settings below :', 'cleanandsimple');
284
+ print "<p>" . __('To use reCAPTCHA you must get an API key from', 'cleanandsimple') . " <a target='_blank' href='" . cscf_recaptcha_get_signup_url($_SERVER['SERVER_NAME']) . "'>Google reCAPTCHA</a></p>";
285
  }
286
+
287
+ public
288
+ function print_section_info_message()
289
  {
290
+ print __('Enter your message settings below :', 'cleanandsimple');
291
  }
292
+
293
+ public
294
+ function print_section_info_styling()
295
  {
296
 
297
  //print 'Enter your styling settings below:';
298
+
299
  }
300
+
301
+ public
302
+ function create_fields($args)
303
  {
304
  $fieldname = $args[0];
305
+
306
+ switch ($fieldname) {
307
+ case 'use_recaptcha':
308
+ $checked = cscf_PluginSettings::UseRecaptcha() == true ? "checked" : "";
309
+ ?><input type="checkbox" <?php echo $checked; ?> id="use_recaptcha"
310
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[use_recaptcha]"><?php
311
+ break;
312
+ case 'load_stylesheet':
313
+ $checked = cscf_PluginSettings::LoadStyleSheet() == true ? "checked" : "";
314
+ ?><input type="checkbox" <?php echo $checked; ?> id="load_stylesheet"
315
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[load_stylesheet]"><?php
316
+ break;
317
+ case 'recaptcha_public_key':
318
+ $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "readonly" : "";
319
+ ?><input <?php echo $disabled; ?> type="text" size="60" id="recaptcha_public_key"
320
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[recaptcha_public_key]"
321
+ value="<?php echo cscf_PluginSettings::PublicKey(); ?>" /><?php
322
+ break;
323
+ case 'recaptcha_private_key':
324
+ $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "readonly" : "";
325
+ ?><input <?php echo $disabled; ?> type="text" size="60" id="recaptcha_private_key"
326
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[recaptcha_private_key]"
327
+ value="<?php echo cscf_PluginSettings::PrivateKey(); ?>" /><?php
328
+ break;
329
+ case 'recipient_emails':
330
+ ?>
331
+ <ul id="recipients"><?php
332
+ foreach (cscf_PluginSettings::RecipientEmails() as $key => $recipientEmail) {
333
+ ?>
334
+ <li class="recipient_email" data-element="<?php echo $key; ?>">
335
+ <input class="enter_recipient" type="email" size="50"
336
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[recipient_emails][<?php echo $key ?>]"
337
+ value="<?php echo $recipientEmail; ?>"/>
338
+ <input class="add_recipient" title="Add New Recipient" type="submit" name="add_recipient"
339
+ value="+">
340
+ <input class="remove_recipient" title="Remove This Recipient" type="submit"
341
+ name="remove_recipient[<?php echo $key; ?>]" value="-">
342
+ </li>
343
+
344
+ <?php
345
+ }
346
+ ?></ul><?php
347
+ break;
348
+ case 'confirm-email':
349
+ $checked = cscf_PluginSettings::ConfirmEmail() == true ? "checked" : "";
350
+ ?><input type="checkbox" <?php echo $checked; ?> id="confirm-email"
351
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[confirm-email]"><?php
352
+ break;
353
+ case 'override-from':
354
+ $checked = cscf_PluginSettings::OverrideFrom() == true ? "checked" : "";
355
+ ?><input type="checkbox" <?php echo $checked; ?> id="override-from"
356
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[override-from]"><?php
357
+ break;
358
+ case 'email-sender':
359
+ $checked = cscf_PluginSettings::EmailToSender() == true ? "checked" : "";
360
+ ?><input type="checkbox" <?php echo $checked; ?> id="email-sender"
361
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[email-sender]"><?php
362
+ break;
363
+ case 'from-email':
364
+ $disabled = cscf_PluginSettings::OverrideFrom() == false ? "readonly" : "";
365
+ ?><input <?php echo $disabled; ?> type="text" size="60" id="from-email"
366
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[from-email]"
367
+ value="<?php echo cscf_PluginSettings::FromEmail(); ?>" /><?php
368
+ break;
369
+ case 'subject':
370
+ ?><input type="text" size="60" id="subject" name="<?php echo CSCF_OPTIONS_KEY; ?>[subject]"
371
+ value="<?php echo cscf_PluginSettings::Subject(); ?>" /><?php
372
+ break;
373
+ case 'sent_message_heading':
374
+ ?><input type="text" size="60" id="sent_message_heading"
375
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[sent_message_heading]"
376
+ value="<?php echo cscf_PluginSettings::SentMessageHeading(); ?>" /><?php
377
+ break;
378
+ case 'sent_message_body':
379
+ ?><textarea cols="63" rows="8"
380
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[sent_message_body]"><?php echo cscf_PluginSettings::SentMessageBody(); ?></textarea><?php
381
+ break;
382
+ case 'message':
383
+ ?><textarea cols="63" rows="8"
384
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[message]"><?php echo cscf_PluginSettings::Message(); ?></textarea><?php
385
+ break;
386
+ case 'theme':
387
+ $theme = cscf_PluginSettings::Theme();
388
+ $disabled = cscf_PluginSettings::UseRecaptcha() == false ? "disabled" : "";
389
+ ?>
390
  <select <?php echo $disabled; ?> id="theme" name="<?php echo CSCF_OPTIONS_KEY; ?>[theme]">
391
+ <option <?php echo $theme == "red" ? "selected" : ""; ?>
392
+ value="red"><?php _e('Red', 'cleanandsimple'); ?></option>
393
+ <option <?php echo $theme == "white" ? "selected" : ""; ?>
394
+ value="white"><?php _e('White', 'cleanandsimple'); ?></option>
395
+ <option <?php echo $theme == "blackglass" ? "selected" : ""; ?>
396
+ value="blackglass"><?php _e('Blackglass', 'cleanandsimple'); ?></option>
397
+ <option <?php echo $theme == "clean" ? "selected" : ""; ?>
398
+ value="clean"><?php _e('Clean', 'cleanandsimple'); ?></option>
399
+ </select>
400
  <?php
401
+ break;
402
+ case 'use_client_validation':
403
+ $checked = cscf_PluginSettings::UseClientValidation() == true ? "checked" : "";
404
+ ?><input type="checkbox" <?php echo $checked; ?> id="use_client_validation"
405
+ name="<?php echo CSCF_OPTIONS_KEY; ?>[use_client_validation]"><?php
406
+ break;
407
+ default:
408
+ break;
409
  }
410
  }
411
  }
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.3.4
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.3.4');
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.4.0
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.4.0');
56
 
57
  if (!defined('CSCF_OPTIONS_KEY')) define('CSCF_OPTIONS_KEY', 'cscf_options');
58
 
languages/cleanandsimple-pl_PL.mo CHANGED
Binary file
languages/cleanandsimple-pl_PL.po CHANGED
@@ -1,258 +1,287 @@
1
- # Copyright (C) 2013 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\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/plugins/clean-and-simple-contact-"
7
- "form-by-meg-nicholas/\n"
8
- "POT-Creation-Date: 2013-06-20 08:37:17+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: 2013-12-03 23:05-0000\n"
13
- "Last-Translator: Arkadiusz Baron <arkadiusz.baron@gmail.com>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "X-Generator: Poedit 1.6\n"
16
- "Language: pl_PL\n"
17
-
18
- #: class.cscf.php:102
 
 
 
 
19
  msgid "Settings"
20
  msgstr "Ustawienia"
21
 
22
- #: class.cscf_contact.php:53
23
  msgid "Sorry the email addresses do not match."
24
- msgstr "Podane adresy email nie są takie same."
25
 
26
- #: class.cscf_contact.php:57 views/contact-form-with-recaptcha.view.php:33
27
- #: views/contact-form.view.php:14
28
  msgid "Please give your email address."
29
- msgstr "Wpisz swój adres email."
30
 
31
- #: class.cscf_contact.php:61
32
  msgid "Please confirm your email address."
33
- msgstr "Potwierdź swój adres email."
34
 
35
- #: class.cscf_contact.php:65 views/contact-form-with-recaptcha.view.php:53
36
- #: views/contact-form.view.php:34
37
  msgid "Please give your name."
38
- msgstr "Podaj swoje imię."
39
 
40
- #: class.cscf_contact.php:69
41
  msgid "Please enter a message."
42
- msgstr "Napisz wiadomość."
43
 
44
- #: class.cscf_contact.php:73 views/contact-form-with-recaptcha.view.php:33
45
- #: views/contact-form.view.php:14
46
  msgid "Please enter a valid email address."
47
- msgstr "Podany adres email jest nieprawidłowy."
48
 
49
- #: class.cscf_contact.php:81
50
  msgid "Sorry the code wasn't entered correctly please try again."
51
- msgstr "Wpisany kod jest nieprawidłowy. Spróbuj ponownie."
52
 
53
  #: class.cscf_pluginsettings.php:40
54
  msgid "Message Sent"
55
- msgstr "Wiadomość została wysłana"
56
 
57
  #: class.cscf_pluginsettings.php:47
58
  msgid "Thank you for your message, we will be in touch very shortly."
59
- msgstr "Dziekuję za wiadomość, postaram się odpisać jak najszybciej."
60
 
61
  #: class.cscf_pluginsettings.php:54
62
  msgid ""
63
  "Please enter your contact details and a short message below and I will try "
64
  "to answer your query as soon as possible."
65
  msgstr ""
 
 
66
 
67
  #: class.cscf_pluginsettings.php:83
68
  msgid " - Web Enquiry"
69
- msgstr " - Zapytanie"
 
 
 
 
70
 
71
- #: class.cscf_settings.php:41
 
 
 
 
72
  msgid "Clean and Simple Contact Form Settings"
73
  msgstr "Ustawienia Clean and Simple Contact Form"
74
 
75
- #: class.cscf_settings.php:43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  msgid "You are using version"
77
  msgstr "Używasz wersji"
78
 
79
- #: class.cscf_settings.php:44
80
  msgid "If you find this plugin useful please consider"
81
- msgstr "Jeśli uważasz ten plugin za przydatny proszę"
82
 
83
- #: class.cscf_settings.php:47
84
  msgid "leaving a review"
85
  msgstr "zostaw komentarz"
86
 
87
- #: class.cscf_settings.php:49
88
  msgid "Thank you!"
89
- msgstr "Dziękuję!"
90
 
91
- #: class.cscf_settings.php:68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  msgid "ReCAPTCHA Settings"
93
  msgstr "Ustawienia ReCAPTCHA"
94
 
95
- #: class.cscf_settings.php:76
96
  msgid "Use reCAPTCHA :"
97
- msgstr "Użyj reCAPTCHA"
98
 
99
- #: class.cscf_settings.php:82
100
  msgid "reCAPTCHA Theme :"
101
- msgstr "Skórka reCAPTCHA:"
102
 
103
- #: class.cscf_settings.php:88
104
  msgid "reCAPTCHA Public Key :"
105
  msgstr "Klucz publiczny reCAPTCHA :"
106
 
107
- #: class.cscf_settings.php:94
108
  msgid "reCAPTCHA Private Key :"
109
  msgstr "Klucz prywatny reCAPTCHA :"
110
 
111
- #: class.cscf_settings.php:100
112
  msgid "Message Settings"
113
  msgstr "Ustawienia wiadomości"
114
 
115
- #: class.cscf_settings.php:104
116
- msgid "Recipient Email :"
117
- msgstr "Email na który ma zostać wysłana wiadomość :"
 
 
 
 
 
 
 
 
118
 
119
- #: class.cscf_settings.php:110
 
 
 
 
120
  msgid "Email Subject :"
121
  msgstr "Temat wiadomości :"
122
 
123
- #: class.cscf_settings.php:116
124
  msgid "Message :"
125
  msgstr "Wiadomość :"
126
 
127
- #: class.cscf_settings.php:122
128
  msgid "Message Sent Heading :"
129
- msgstr "Nagłówek wyświetlany po wysłaniu wiadomości :"
130
 
131
- #: class.cscf_settings.php:128
132
  msgid "Message Sent Content :"
133
- msgstr "Treść wiadomości :"
134
 
135
- #: class.cscf_settings.php:134
136
  msgid "Styling and Validation"
137
- msgstr "Styl i walidacja :"
138
 
139
- #: class.cscf_settings.php:138
140
  msgid ""
141
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
142
  "instead) :"
143
- msgstr "Uzyj wbudowanego stylu (odznacz by użyć swoich styli) :"
144
 
145
- #: class.cscf_settings.php:144
146
  msgid "Use client side validation (AJAX) :"
147
- msgstr "Użyć Ajax?"
148
 
149
- #: class.cscf_settings.php:216
150
  msgid "Enter your reCAPTCHA settings below :"
151
- msgstr "Wpisz poniżej swoje ustawienia reCAPTCHA :"
152
 
153
- #: class.cscf_settings.php:217
154
  msgid "To use reCAPTCHA you must get an API key from"
155
  msgstr "Aby używać reCAPTCHA musisz mieć klucz API z"
156
 
157
- #: class.cscf_settings.php:222
158
  msgid "Enter your message settings below :"
159
- msgstr "Wpisz swoje ustawienia wiadomości poniżej"
160
 
161
- #: class.cscf_settings.php:274
162
  msgid "Red"
163
  msgstr "Czerwony"
164
 
165
- #: class.cscf_settings.php:275
166
  msgid "White"
167
  msgstr "Biały"
168
 
169
- #: class.cscf_settings.php:276
170
  msgid "Blackglass"
171
  msgstr "Czarne szkło"
172
 
173
- #: class.cscf_settings.php:277
174
  msgid "Clean"
175
  msgstr "Czysty"
176
 
177
- #: views/contact-form-with-recaptcha.view.php:31
178
- #: views/contact-form.view.php:12
 
 
 
 
 
 
 
 
 
 
 
179
  msgid "Email Address:"
180
- msgstr "Adres email :"
181
 
182
- #: views/contact-form-with-recaptcha.view.php:33
183
- #: views/contact-form.view.php:14
184
  msgid "Your Email Address"
185
- msgstr "Twój adres email"
186
 
187
- #: views/contact-form-with-recaptcha.view.php:41
188
- #: views/contact-form.view.php:22
189
  msgid "Confirm Email Address:"
190
- msgstr "Potwierdź adres email :"
191
 
192
- #: views/contact-form-with-recaptcha.view.php:43
193
- #: views/contact-form.view.php:24
194
  msgid "Please enter the same email address again."
195
- msgstr "Wpisz jeszcze raz swój adres email"
196
 
197
- #: views/contact-form-with-recaptcha.view.php:43
198
- #: views/contact-form.view.php:24
199
  msgid "Confirm Your Email Address"
200
- msgstr "Potwierdź swój adres email"
201
 
202
- #: views/contact-form-with-recaptcha.view.php:51
203
- #: views/contact-form.view.php:32
204
- msgid "Name:"
205
- msgstr "Imię :"
206
-
207
- #: views/contact-form-with-recaptcha.view.php:53
208
- #: views/contact-form.view.php:34
209
- msgid "Your Name"
210
- msgstr "Imię"
211
-
212
- #: views/contact-form-with-recaptcha.view.php:61
213
- #: views/contact-form.view.php:42
214
  msgid "Message:"
215
- msgstr "Wiadomość :"
216
 
217
- #: views/contact-form-with-recaptcha.view.php:63
218
- #: views/contact-form.view.php:44
219
  msgid "Please give a message."
220
- msgstr "Wpisz wiadomość"
221
 
222
- #: views/contact-form-with-recaptcha.view.php:63
223
- #: views/contact-form.view.php:44
224
  msgid "Your Message"
225
  msgstr "Twoja wiadomość"
226
 
227
- #: views/contact-form-with-recaptcha.view.php:79
228
- #: views/contact-form.view.php:51
229
  msgid "Send Message"
230
- msgstr "Wyślij"
231
 
232
  #: views/message-not-sent.view.php:1
233
  msgid "Sorry, there has been a problem and your message was not sent."
234
- msgstr "Przepraszam, wiadomość nie została wysłana."
235
-
236
- #. Plugin Name of the plugin/theme
237
- msgid "Clean and Simple Contact Form"
238
- msgstr ""
239
-
240
- #. Plugin URI of the plugin/theme
241
- msgid ""
242
- "http://www.megnicholas.co.uk/wordpress-plugins/clean-and-simple-contact-form"
243
- msgstr ""
244
-
245
- #. Description of the plugin/theme
246
- msgid ""
247
- "A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap "
248
- "markup."
249
- msgstr ""
250
- "Prosty formularz kontaktowy z Google reCAPTCHA i stylem Twitter Bootstrap."
251
-
252
- #. Author of the plugin/theme
253
- msgid "Meghan Nicholas"
254
- msgstr ""
255
-
256
- #. Author URI of the plugin/theme
257
- msgid "http://www.megnicholas.co.uk"
258
- msgstr ""
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Clean and Simple Contact Form\n"
4
+ "POT-Creation-Date: 2014-05-18 14:32+0100\n"
5
+ "PO-Revision-Date: 2014-05-18 15:32+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Radosłąw Rak <radekdb87@gmail.com>\n"
8
+ "Language: pl_PL\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.5\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
19
+ "|| n%100>=20) ? 1 : 2);\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: class.cscf.php:151
23
  msgid "Settings"
24
  msgstr "Ustawienia"
25
 
26
+ #: class.cscf_contact.php:63
27
  msgid "Sorry the email addresses do not match."
28
+ msgstr "Przepraszamy adresy e-mail nie pasują."
29
 
30
+ #: class.cscf_contact.php:68 views/contact-form.view.php:54
 
31
  msgid "Please give your email address."
32
+ msgstr "Proszę podać adres e-mail."
33
 
34
+ #: class.cscf_contact.php:72
35
  msgid "Please confirm your email address."
36
+ msgstr "Proszę potwierdzić Twój adres e-mail."
37
 
38
+ #: class.cscf_contact.php:77 views/contact-form.view.php:32
 
39
  msgid "Please give your name."
40
+ msgstr "Proszę podać Twoje imię i nazwisko."
41
 
42
+ #: class.cscf_contact.php:81
43
  msgid "Please enter a message."
44
+ msgstr "Proszę wpisać wiadomość."
45
 
46
+ #: class.cscf_contact.php:85 views/contact-form.view.php:55
47
+ #: views/contact-form.view.php:79
48
  msgid "Please enter a valid email address."
49
+ msgstr "Proszę wpisać prawidłowy adres e-mail."
50
 
51
+ #: class.cscf_contact.php:93
52
  msgid "Sorry the code wasn't entered correctly please try again."
53
+ msgstr "Przepraszamy kod nie został wprowadzony poprawnie spróbuj ponownie."
54
 
55
  #: class.cscf_pluginsettings.php:40
56
  msgid "Message Sent"
57
+ msgstr "Wyślij wiadomość"
58
 
59
  #: class.cscf_pluginsettings.php:47
60
  msgid "Thank you for your message, we will be in touch very shortly."
61
+ msgstr "Dziękuję za Twoją wiadomość, wkrótce skontaktuje się z Państwem."
62
 
63
  #: class.cscf_pluginsettings.php:54
64
  msgid ""
65
  "Please enter your contact details and a short message below and I will try "
66
  "to answer your query as soon as possible."
67
  msgstr ""
68
+ "Proszę wpisać dane kontaktowe i krótką wiadomość na którą postaram się "
69
+ "odpowiedzieć jak najszybciej."
70
 
71
  #: class.cscf_pluginsettings.php:83
72
  msgid " - Web Enquiry"
73
+ msgstr "- Zapytanie"
74
+
75
+ #: class.cscf_settings.php:30
76
+ msgid "Contact Form Settings"
77
+ msgstr "Ustawienia Contact Form"
78
 
79
+ #: class.cscf_settings.php:30
80
+ msgid "Contact Form"
81
+ msgstr "Contact Form"
82
+
83
+ #: class.cscf_settings.php:40
84
  msgid "Clean and Simple Contact Form Settings"
85
  msgstr "Ustawienia Clean and Simple Contact Form"
86
 
87
+ #: class.cscf_settings.php:46
88
+ msgid "Donate $10, $20 or $50!"
89
+ msgstr "Wspomóż $10, $20 lub $50!"
90
+
91
+ #: class.cscf_settings.php:48
92
+ msgid ""
93
+ "If you like this plugin, please donate to support development and "
94
+ "maintenance of:"
95
+ msgstr ""
96
+ "Jeśli podoba Ci się ta wtyczka, prosimy o dotację na wsparcie rozwoju i "
97
+ "konserwacji:"
98
+
99
+ #: class.cscf_settings.php:48
100
+ msgid "Clean and Simple Contact Form!"
101
+ msgstr "Clean and Simple Contact Form!"
102
+
103
+ #: class.cscf_settings.php:63
104
  msgid "You are using version"
105
  msgstr "Używasz wersji"
106
 
107
+ #: class.cscf_settings.php:64
108
  msgid "If you find this plugin useful please consider"
109
+ msgstr "Jeśli uważasz wtyczkę za przydatną proszę"
110
 
111
+ #: class.cscf_settings.php:67
112
  msgid "leaving a review"
113
  msgstr "zostaw komentarz"
114
 
115
+ #: class.cscf_settings.php:69
116
  msgid "Thank you!"
117
+ msgstr "Dziękujemy"
118
 
119
+ #: class.cscf_settings.php:74
120
+ msgid ""
121
+ "NOTICE: You have JetPack's Contact Form enabled please deactivate it or use "
122
+ "the shortcode [cscf-contact-form] instead."
123
+ msgstr ""
124
+ "UWAGA: Masz włączony JetPack's Contact Form, proszę wyłączyć go lub "
125
+ "skorzystać z kodu [CSCF-contact-form]."
126
+
127
+ #: class.cscf_settings.php:75
128
+ msgid "Read More"
129
+ msgstr "Czytaj więcej"
130
+
131
+ #: class.cscf_settings.php:79
132
+ msgid "Please Note: To add the contact form to your page please add the text"
133
+ msgstr "Uwaga: Aby dodać formularz kontaktowy na stronie, proszę dodać tekst"
134
+
135
+ #: class.cscf_settings.php:79
136
+ msgid "to your post or page."
137
+ msgstr "do wpisu lub strony."
138
+
139
+ #: class.cscf_settings.php:98
140
  msgid "ReCAPTCHA Settings"
141
  msgstr "Ustawienia ReCAPTCHA"
142
 
143
+ #: class.cscf_settings.php:106
144
  msgid "Use reCAPTCHA :"
145
+ msgstr "Użyj reCAPTCHA :"
146
 
147
+ #: class.cscf_settings.php:112
148
  msgid "reCAPTCHA Theme :"
149
+ msgstr "Motyw reCAPTCHA:"
150
 
151
+ #: class.cscf_settings.php:118
152
  msgid "reCAPTCHA Public Key :"
153
  msgstr "Klucz publiczny reCAPTCHA :"
154
 
155
+ #: class.cscf_settings.php:124
156
  msgid "reCAPTCHA Private Key :"
157
  msgstr "Klucz prywatny reCAPTCHA :"
158
 
159
+ #: class.cscf_settings.php:130
160
  msgid "Message Settings"
161
  msgstr "Ustawienia wiadomości"
162
 
163
+ #: class.cscf_settings.php:134
164
+ msgid "Recipient Emails :"
165
+ msgstr "E-maile odbiorcy :"
166
+
167
+ #: class.cscf_settings.php:140
168
+ msgid "Confirm Email Address :"
169
+ msgstr "Potwierdź adres e-mail :"
170
+
171
+ #: class.cscf_settings.php:146
172
+ msgid "Override 'From' Address :"
173
+ msgstr "Zastąp adresem 'Od' :"
174
 
175
+ #: class.cscf_settings.php:152
176
+ msgid "'From' Email Address :"
177
+ msgstr "Adres e-mail 'Od' :"
178
+
179
+ #: class.cscf_settings.php:158
180
  msgid "Email Subject :"
181
  msgstr "Temat wiadomości :"
182
 
183
+ #: class.cscf_settings.php:164
184
  msgid "Message :"
185
  msgstr "Wiadomość :"
186
 
187
+ #: class.cscf_settings.php:170
188
  msgid "Message Sent Heading :"
189
+ msgstr "Nagłówek wysłanej wiadomości :"
190
 
191
+ #: class.cscf_settings.php:176
192
  msgid "Message Sent Content :"
193
+ msgstr "Treść wysłanej wiadomości :"
194
 
195
+ #: class.cscf_settings.php:182
196
  msgid "Styling and Validation"
197
+ msgstr "Styl i Walidacja"
198
 
199
+ #: class.cscf_settings.php:186
200
  msgid ""
201
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
202
  "instead) :"
203
+ msgstr "Użyj styl domyślnej wtyczki (odznacz, aby użyć własnych styli motywu)"
204
 
205
+ #: class.cscf_settings.php:192
206
  msgid "Use client side validation (AJAX) :"
207
+ msgstr "Użyj weryfikacji danych klienta (AJAX) :"
208
 
209
+ #: class.cscf_settings.php:262
210
  msgid "Enter your reCAPTCHA settings below :"
211
+ msgstr "Wpisz poniżej Twoje ustawienia reCAPTCHA :"
212
 
213
+ #: class.cscf_settings.php:263
214
  msgid "To use reCAPTCHA you must get an API key from"
215
  msgstr "Aby używać reCAPTCHA musisz mieć klucz API z"
216
 
217
+ #: class.cscf_settings.php:268
218
  msgid "Enter your message settings below :"
219
+ msgstr "Wpisz Twoje ustawienia wiadomości poniżej :"
220
 
221
+ #: class.cscf_settings.php:342
222
  msgid "Red"
223
  msgstr "Czerwony"
224
 
225
+ #: class.cscf_settings.php:343
226
  msgid "White"
227
  msgstr "Biały"
228
 
229
+ #: class.cscf_settings.php:344
230
  msgid "Blackglass"
231
  msgstr "Czarne szkło"
232
 
233
+ #: class.cscf_settings.php:345
234
  msgid "Clean"
235
  msgstr "Czysty"
236
 
237
+ #: class.view.php:26
238
+ msgid "View "
239
+ msgstr "Pokaż"
240
+
241
+ #: views/contact-form.view.php:25
242
+ msgid "Name:"
243
+ msgstr "Imię i Nazwisko:"
244
+
245
+ #: views/contact-form.view.php:35
246
+ msgid "Your Name"
247
+ msgstr "Wpisz Twoje imię i nazwisko"
248
+
249
+ #: views/contact-form.view.php:46
250
  msgid "Email Address:"
251
+ msgstr "Adres e-mail:"
252
 
253
+ #: views/contact-form.view.php:58
 
254
  msgid "Your Email Address"
255
+ msgstr "Twój adres e-mail"
256
 
257
+ #: views/contact-form.view.php:69
 
258
  msgid "Confirm Email Address:"
259
+ msgstr "Potwierdź adres e-mail:"
260
 
261
+ #: views/contact-form.view.php:78 views/contact-form.view.php:80
 
262
  msgid "Please enter the same email address again."
263
+ msgstr "Proszę ponownie wpisać ten sam adres e-mail."
264
 
265
+ #: views/contact-form.view.php:83
 
266
  msgid "Confirm Your Email Address"
267
+ msgstr "Potwierdź Twój adres e-mail"
268
 
269
+ #: views/contact-form.view.php:95
 
 
 
 
 
 
 
 
 
 
 
270
  msgid "Message:"
271
+ msgstr "Wiadomość:"
272
 
273
+ #: views/contact-form.view.php:102
 
274
  msgid "Please give a message."
275
+ msgstr "Proszę wpisać wiadomość."
276
 
277
+ #: views/contact-form.view.php:104
 
278
  msgid "Your Message"
279
  msgstr "Twoja wiadomość"
280
 
281
+ #: views/contact-form.view.php:126
 
282
  msgid "Send Message"
283
+ msgstr "Wyślij wiadomość"
284
 
285
  #: views/message-not-sent.view.php:1
286
  msgid "Sorry, there has been a problem and your message was not sent."
287
+ msgstr "Przepraszamy wystąpił problem i wiadomość nie została wysłana."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/cleanandsimple.pot CHANGED
@@ -1,66 +1,70 @@
1
- # Copyright (C) 2013 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.2.4\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-11-06 14:29:38+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: 2013-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:149
17
  msgid "Settings"
18
  msgstr ""
19
 
20
- #: class.cscf_contact.php:54
21
  msgid "Sorry the email addresses do not match."
22
  msgstr ""
23
 
24
- #: class.cscf_contact.php:59 views/contact-form.view.php:32
25
  msgid "Please give your email address."
26
  msgstr ""
27
 
28
- #: class.cscf_contact.php:63
29
  msgid "Please confirm your email address."
30
  msgstr ""
31
 
32
- #: class.cscf_contact.php:68 views/contact-form.view.php:79
33
  msgid "Please give your name."
34
  msgstr ""
35
 
36
- #: class.cscf_contact.php:72
37
  msgid "Please enter a message."
38
  msgstr ""
39
 
40
- #: class.cscf_contact.php:76 views/contact-form.view.php:33
41
- #: views/contact-form.view.php:57
42
  msgid "Please enter a valid email address."
43
  msgstr ""
44
 
45
- #: class.cscf_contact.php:84
46
  msgid "Sorry the code wasn't entered correctly please try again."
47
  msgstr ""
48
 
49
- #: class.cscf_pluginsettings.php:40
 
 
 
 
50
  msgid "Message Sent"
51
  msgstr ""
52
 
53
- #: class.cscf_pluginsettings.php:47
54
  msgid "Thank you for your message, we will be in touch very shortly."
55
  msgstr ""
56
 
57
- #: class.cscf_pluginsettings.php:54
58
  msgid ""
59
  "Please enter your contact details and a short message below and I will try "
60
  "to answer your query as soon as possible."
61
  msgstr ""
62
 
63
- #: class.cscf_pluginsettings.php:83
64
  msgid " - Web Enquiry"
65
  msgstr ""
66
 
@@ -72,197 +76,209 @@ msgstr ""
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 "Confirm Email Address :"
157
  msgstr ""
158
 
159
- #: class.cscf_settings.php:146
 
 
 
 
 
 
 
 
160
  msgid "Override 'From' Address :"
161
  msgstr ""
162
 
163
- #: class.cscf_settings.php:152
164
  msgid "'From' Email Address :"
165
  msgstr ""
166
 
167
- #: class.cscf_settings.php:158
168
  msgid "Email Subject :"
169
  msgstr ""
170
 
171
- #: class.cscf_settings.php:164
172
  msgid "Message :"
173
  msgstr ""
174
 
175
- #: class.cscf_settings.php:170
176
  msgid "Message Sent Heading :"
177
  msgstr ""
178
 
179
- #: class.cscf_settings.php:176
180
  msgid "Message Sent Content :"
181
  msgstr ""
182
 
183
- #: class.cscf_settings.php:182
184
  msgid "Styling and Validation"
185
  msgstr ""
186
 
187
- #: class.cscf_settings.php:186
188
  msgid ""
189
  "Use the plugin default stylesheet (un-tick to use your theme style sheet "
190
  "instead) :"
191
  msgstr ""
192
 
193
- #: class.cscf_settings.php:192
194
  msgid "Use client side validation (AJAX) :"
195
  msgstr ""
196
 
197
- #: class.cscf_settings.php:262
198
  msgid "Enter your reCAPTCHA settings below :"
199
  msgstr ""
200
 
201
- #: class.cscf_settings.php:263
202
  msgid "To use reCAPTCHA you must get an API key from"
203
  msgstr ""
204
 
205
- #: class.cscf_settings.php:268
206
  msgid "Enter your message settings below :"
207
  msgstr ""
208
 
209
- #: class.cscf_settings.php:342
210
  msgid "Red"
211
  msgstr ""
212
 
213
- #: class.cscf_settings.php:343
214
  msgid "White"
215
  msgstr ""
216
 
217
- #: class.cscf_settings.php:344
218
  msgid "Blackglass"
219
  msgstr ""
220
 
221
- #: class.cscf_settings.php:345
222
  msgid "Clean"
223
  msgstr ""
224
 
225
- #: views/contact-form.view.php:24
 
 
 
 
 
 
 
 
226
  msgid "Email Address:"
227
  msgstr ""
228
 
229
- #: views/contact-form.view.php:36
230
  msgid "Your Email Address"
231
  msgstr ""
232
 
233
- #: views/contact-form.view.php:47
234
  msgid "Confirm Email Address:"
235
  msgstr ""
236
 
237
- #: views/contact-form.view.php:56 views/contact-form.view.php:58
238
  msgid "Please enter the same email address again."
239
  msgstr ""
240
 
241
- #: views/contact-form.view.php:61
242
  msgid "Confirm Your Email Address"
243
  msgstr ""
244
 
245
- #: views/contact-form.view.php:72
246
- msgid "Name:"
247
- msgstr ""
248
-
249
- #: views/contact-form.view.php:82
250
- msgid "Your Name"
251
- msgstr ""
252
-
253
- #: views/contact-form.view.php:92
254
  msgid "Message:"
255
  msgstr ""
256
 
257
- #: views/contact-form.view.php:99
258
  msgid "Please give a message."
259
  msgstr ""
260
 
261
- #: views/contact-form.view.php:101
262
  msgid "Your Message"
263
  msgstr ""
264
 
265
- #: views/contact-form.view.php:123
 
 
 
 
266
  msgid "Send Message"
267
  msgstr ""
268
 
1
+ # Copyright (C) 2014 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.4.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/clean-and-simple-contact-form-"
7
  "by-meg-nicholas\n"
8
+ "POT-Creation-Date: 2014-09-24 08:46:00+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: 2014-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:151
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:54
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:32
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:55
41
+ #: views/contact-form.view.php:79
42
  msgid "Please enter a valid email address."
43
  msgstr ""
44
 
45
+ #: class.cscf_contact.php:95
46
  msgid "Sorry the code wasn't entered correctly please try again."
47
  msgstr ""
48
 
49
+ #: class.cscf_contact.php:157
50
+ msgid "Here is a copy of your message :"
51
+ msgstr ""
52
+
53
+ #: class.cscf_pluginsettings.php:44
54
  msgid "Message Sent"
55
  msgstr ""
56
 
57
+ #: class.cscf_pluginsettings.php:52
58
  msgid "Thank you for your message, we will be in touch very shortly."
59
  msgstr ""
60
 
61
+ #: class.cscf_pluginsettings.php:60
62
  msgid ""
63
  "Please enter your contact details and a short message below and I will try "
64
  "to answer your query as soon as possible."
65
  msgstr ""
66
 
67
+ #: class.cscf_pluginsettings.php:93
68
  msgid " - Web Enquiry"
69
  msgstr ""
70
 
76
  msgid "Contact Form"
77
  msgstr ""
78
 
79
+ #: class.cscf_settings.php:41
80
  msgid "Clean and Simple Contact Form Settings"
81
  msgstr ""
82
 
83
+ #: class.cscf_settings.php:47
84
  msgid "Donate $10, $20 or $50!"
85
  msgstr ""
86
 
87
+ #: class.cscf_settings.php:50
88
  msgid ""
89
  "If you like this plugin, please donate to support development and "
90
  "maintenance of:"
91
  msgstr ""
92
 
93
+ #: class.cscf_settings.php:52
94
  msgid "Clean and Simple Contact Form!"
95
  msgstr ""
96
 
97
+ #: class.cscf_settings.php:72
98
  msgid "You are using version"
99
  msgstr ""
100
 
101
+ #: class.cscf_settings.php:74
102
  msgid "If you find this plugin useful please consider"
103
  msgstr ""
104
 
105
+ #: class.cscf_settings.php:77
106
  msgid "leaving a review"
107
  msgstr ""
108
 
109
+ #: class.cscf_settings.php:79
110
  msgid "Thank you!"
111
  msgstr ""
112
 
113
+ #: class.cscf_settings.php:84
114
  msgid ""
115
  "NOTICE: You have JetPack's Contact Form enabled please deactivate it or use "
116
  "the shortcode [cscf-contact-form] instead."
117
  msgstr ""
118
 
119
+ #: class.cscf_settings.php:86
120
  msgid "Read More"
121
  msgstr ""
122
 
123
+ #: class.cscf_settings.php:90
124
  msgid "Please Note: To add the contact form to your page please add the text"
125
  msgstr ""
126
 
127
+ #: class.cscf_settings.php:91
128
  msgid "to your post or page."
129
  msgstr ""
130
 
131
+ #: class.cscf_settings.php:111
132
  msgid "ReCAPTCHA Settings"
133
  msgstr ""
134
 
135
+ #: class.cscf_settings.php:119
136
  msgid "Use reCAPTCHA :"
137
  msgstr ""
138
 
139
+ #: class.cscf_settings.php:125
140
  msgid "reCAPTCHA Theme :"
141
  msgstr ""
142
 
143
+ #: class.cscf_settings.php:131
144
  msgid "reCAPTCHA Public Key :"
145
  msgstr ""
146
 
147
+ #: class.cscf_settings.php:137
148
  msgid "reCAPTCHA Private Key :"
149
  msgstr ""
150
 
151
+ #: class.cscf_settings.php:143
152
  msgid "Message Settings"
153
  msgstr ""
154
 
155
+ #: class.cscf_settings.php:147
156
  msgid "Recipient Emails :"
157
  msgstr ""
158
 
159
+ #: class.cscf_settings.php:153
160
  msgid "Confirm Email Address :"
161
  msgstr ""
162
 
163
+ #: class.cscf_settings.php:159
164
+ msgid "*New*"
165
+ msgstr ""
166
+
167
+ #: class.cscf_settings.php:159
168
+ msgid "Allow users to email themselves a copy :"
169
+ msgstr ""
170
+
171
+ #: class.cscf_settings.php:165
172
  msgid "Override 'From' Address :"
173
  msgstr ""
174
 
175
+ #: class.cscf_settings.php:171
176
  msgid "'From' Email Address :"
177
  msgstr ""
178
 
179
+ #: class.cscf_settings.php:177
180
  msgid "Email Subject :"
181
  msgstr ""
182
 
183
+ #: class.cscf_settings.php:183
184
  msgid "Message :"
185
  msgstr ""
186
 
187
+ #: class.cscf_settings.php:189
188
  msgid "Message Sent Heading :"
189
  msgstr ""
190
 
191
+ #: class.cscf_settings.php:195
192
  msgid "Message Sent Content :"
193
  msgstr ""
194
 
195
+ #: class.cscf_settings.php:201
196
  msgid "Styling and Validation"
197
  msgstr ""
198
 
199
+ #: class.cscf_settings.php:205
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:211
206
  msgid "Use client side validation (AJAX) :"
207
  msgstr ""
208
 
209
+ #: class.cscf_settings.php:283
210
  msgid "Enter your reCAPTCHA settings below :"
211
  msgstr ""
212
 
213
+ #: class.cscf_settings.php:284
214
  msgid "To use reCAPTCHA you must get an API key from"
215
  msgstr ""
216
 
217
+ #: class.cscf_settings.php:290
218
  msgid "Enter your message settings below :"
219
  msgstr ""
220
 
221
+ #: class.cscf_settings.php:392
222
  msgid "Red"
223
  msgstr ""
224
 
225
+ #: class.cscf_settings.php:394
226
  msgid "White"
227
  msgstr ""
228
 
229
+ #: class.cscf_settings.php:396
230
  msgid "Blackglass"
231
  msgstr ""
232
 
233
+ #: class.cscf_settings.php:398
234
  msgid "Clean"
235
  msgstr ""
236
 
237
+ #: views/contact-form.view.php:25
238
+ msgid "Name:"
239
+ msgstr ""
240
+
241
+ #: views/contact-form.view.php:35
242
+ msgid "Your Name"
243
+ msgstr ""
244
+
245
+ #: views/contact-form.view.php:46
246
  msgid "Email Address:"
247
  msgstr ""
248
 
249
+ #: views/contact-form.view.php:58
250
  msgid "Your Email Address"
251
  msgstr ""
252
 
253
+ #: views/contact-form.view.php:69
254
  msgid "Confirm Email Address:"
255
  msgstr ""
256
 
257
+ #: views/contact-form.view.php:78 views/contact-form.view.php:80
258
  msgid "Please enter the same email address again."
259
  msgstr ""
260
 
261
+ #: views/contact-form.view.php:83
262
  msgid "Confirm Your Email Address"
263
  msgstr ""
264
 
265
+ #: views/contact-form.view.php:95
 
 
 
 
 
 
 
 
266
  msgid "Message:"
267
  msgstr ""
268
 
269
+ #: views/contact-form.view.php:102
270
  msgid "Please give a message."
271
  msgstr ""
272
 
273
+ #: views/contact-form.view.php:104
274
  msgid "Your Message"
275
  msgstr ""
276
 
277
+ #: views/contact-form.view.php:114
278
+ msgid "Send me a copy:"
279
+ msgstr ""
280
+
281
+ #: views/contact-form.view.php:142
282
  msgid "Send Message"
283
  msgstr ""
284
 
readme.txt CHANGED
@@ -5,8 +5,8 @@ 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: 3.9
9
- Stable tag: 4.3.4
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA, Twitter Bootstrap markup and Akismet spam filtering.
12
 
@@ -131,6 +131,8 @@ Here is a list of things that you can change
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
  == Screenshots ==
135
  1. Contact Form With reCAPTCHA
136
  2. Contact Form Without reCAPTCHA
@@ -201,6 +203,9 @@ the reCAPTCHA for the contact form will be displayed correctly but not in the co
201
  The comments form will never validate due to no supplied reCAPTCHA code.
202
 
203
  == Changelog ==
 
 
 
204
  = 4.3.4 =
205
  * Added the wordpress page of contact form to the email
206
  * Removed link in main contact form view
@@ -311,6 +316,8 @@ Polish thanks to Patryk Peas
311
 
312
 
313
  == Upgrade Notice ==
 
 
314
  = 4.3.4 =
315
  Email now includes page url of contact form, removed link in main contact form view
316
  = 4.3.3 =
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.0
9
+ Stable tag: 4.4.0
10
 
11
  A clean and simple AJAX contact form with Google reCAPTCHA, Twitter Bootstrap markup and Akismet spam filtering.
12
 
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
138
  2. Contact Form Without reCAPTCHA
203
  The comments form will never validate due to no supplied reCAPTCHA code.
204
 
205
  == Changelog ==
206
+ = 4.4.0 =
207
+ * Add option for enquiry to email themselves a copy of the message
208
+ * Update to Polish translation thanks to Radosław “Robaczek” Rak
209
  = 4.3.4 =
210
  * Added the wordpress page of contact form to the email
211
  * Removed link in main contact form view
316
 
317
 
318
  == Upgrade Notice ==
319
+ = 4.4.0 =
320
+ Added option for enquiry to email themselves a copy of the message plus Polish translation updated
321
  = 4.3.4 =
322
  Email now includes page url of contact form, removed link in main contact form view
323
  = 4.3.3 =
views/contact-form.view.php CHANGED
@@ -108,6 +108,22 @@
108
  </span>
109
  </div>
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  <!-- recaptcha -->
112
  <?php if ( $contact->RecaptchaPublicKey<>'' && $contact->RecaptchaPrivateKey<>'') { ?>
113
  <script type="text/javascript">
108
  </span>
109
  </div>
110
 
111
+ <?php if ( cscf_PluginSettings::EmailToSender() ) { ?>
112
+ <!-- email to sender -->
113
+ <div class="control-group form-group<?php if (isset($contact->Errors['email-sender'])) echo ' error has-error'; ?>">
114
+ <label for="cscf_email-sender"><?php _e('Send me a copy:','cleanandsimple');?></label>
115
+ <div class="<?php echo cscf_PluginSettings::InputIcons() ? "input-group" : ""; ?>">
116
+ <?php if ( cscf_PluginSettings::InputIcons() == true ) { ?>
117
+ <span class="input-group-addon"><span class="glyphicon glyphicon-comment"></span></span>
118
+ <?php } ?>
119
+ <input <?php echo $contact->EmailToSender==true ? 'checked' : ''; ?> type="checkbox" id="cscf_email-sender" name="cscf[email-sender]">
120
+ </div>
121
+ <span for="cscf_email-sender" class="help-inline help-block error" style="display:<?php echo isset($contact->Errors['email-sender']) ? 'block' : 'none'; ?>;">
122
+ <?php if (isset($contact->Errors['email-sender'])) echo $contact->Errors['email-sender']; ?>
123
+ </span>
124
+ </div>
125
+ <?php } ?>
126
+
127
  <!-- recaptcha -->
128
  <?php if ( $contact->RecaptchaPublicKey<>'' && $contact->RecaptchaPrivateKey<>'') { ?>
129
  <script type="text/javascript">