Contact Form by BestWebSoft - Version 2011.3.01

Version Description

Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Contact Form by BestWebSoft
Version 2011.3.01
Comparing to
See all releases

Code changes from version 2011.2.08 to 2011.3.01

contact_form.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form Plugin
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
- Version: 2.08
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -23,35 +23,6 @@ License: GPLv2 or later
23
  along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
- wp_enqueue_style( 'cntctfrmStylesheet', WP_PLUGIN_URL .'/contact-form-plugin/contact_form_style.css' );
27
-
28
- if( ! function_exists( 'bws_plugin_header' ) ) {
29
- function bws_plugin_header() {
30
- global $post_type;
31
- ?>
32
- <style>
33
- #adminmenu #toplevel_page_bws_plugins div.wp-menu-image
34
- {
35
- background: url("<?php echo get_bloginfo('url');?>/wp-content/plugins/contact-form-plugin/images/icon_16.png") no-repeat scroll center center transparent;
36
- }
37
- #adminmenu #toplevel_page_bws_plugins:hover div.wp-menu-image,#adminmenu #toplevel_page_bws_plugins.wp-has-current-submenu div.wp-menu-image
38
- {
39
- background: url("<?php echo get_bloginfo('url');?>/wp-content/plugins/contact-form-plugin/images/icon_16_c.png") no-repeat scroll center center transparent;
40
- }
41
- .wrap #icon-options-general.icon32-bws
42
- {
43
- background: url("<?php echo get_bloginfo('url');?>/wp-content/plugins/contact-form-plugin/images/icon_36.png") no-repeat scroll left top transparent;
44
- }
45
- #toplevel_page_bws_plugins .wp-submenu .wp-first-item
46
- {
47
- display:none;
48
- }
49
- </style>
50
- <?php
51
- }
52
- }
53
-
54
- add_action('admin_head', 'bws_plugin_header');
55
 
56
  if( ! function_exists( 'bws_add_menu_render' ) ) {
57
  function bws_add_menu_render() {
@@ -68,7 +39,9 @@ if( ! function_exists( 'bws_add_menu_render' ) ) {
68
  array( 'contact-form-plugin\/contact_form.php', 'Contact Form', 'http://wordpress.org/extend/plugins/contact-form-plugin/', 'http://bestwebsoft.com/plugin/contact-form/', '/wp-admin/update.php?action=install-plugin&plugin=contact-form-plugin&_wpnonce=47757d936f' ),
69
  array( 'facebook-button-plugin\/facebook-button-plugin.php', 'Facebook Like Button Plugin', 'http://wordpress.org/extend/plugins/facebook-button-plugin/', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=facebook-button-plugin&_wpnonce=6eb654de19' ),
70
  array( 'twitter-plugin\/twitter.php', 'Twitter Plugin', 'http://wordpress.org/extend/plugins/twitter-plugin/', 'http://bestwebsoft.com/plugin/twitter-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=twitter-plugin&_wpnonce=1612c998a5' ),
71
- array( 'portfolio\/portfolio.php', 'Portfolio', 'http://wordpress.org/extend/plugins/portfolio/', 'http://bestwebsoft.com/plugin/portfolio-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=portfolio&_wpnonce=488af7391d' )
 
 
72
  );
73
  foreach($array_plugins as $plugins)
74
  {
@@ -99,29 +72,29 @@ if( ! function_exists( 'bws_add_menu_render' ) ) {
99
  <div class="wrap">
100
  <div class="icon32 icon32-bws" id="icon-options-general"></div>
101
  <h2><?php echo $title;?></h2>
102
- <?php if($count_activate > 0) { ?>
103
  <div>
104
- <h3>Activated plugins</h3>
105
- <?php foreach($array_activate as $activate_plugin) { ?>
106
- <div style="float:left; width:200px;"><?php echo $activate_plugin['title']; ?></div> <p><a href="<?php echo $activate_plugin['link']; ?>">Read more</a></p>
107
  <?php } ?>
108
  </div>
109
  <?php } ?>
110
- <?php if($count_install > 0) { ?>
111
  <div>
112
- <h3>Installed plugins</h3>
113
  <?php foreach($array_install as $install_plugin) { ?>
114
- <div style="float:left; width:200px;"><?php echo $install_plugin['title']; ?></div> <p><a href="<?php echo $install_plugin['link']; ?>">Read more</a></p>
115
  <?php } ?>
116
  </div>
117
  <?php } ?>
118
- <?php if($count_recomend > 0) { ?>
119
  <div>
120
- <h3>Recommended plugins</h3>
121
- <?php foreach($array_recomend as $recomend_plugin) { ?>
122
- <div style="float:left; width:200px;"><?php echo $recomend_plugin['title']; ?></div> <p><a href="<?php echo $recomend_plugin['link']; ?>">Read more</a> <a href="<?php echo $recomend_plugin['href']; ?>">Download</a> <a class="install-now" href="<?php echo get_bloginfo("url") . $recomend_plugin['slug']; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_plugin['title'] ) ) ?>"><?php echo __( 'Install Now' ) ?></a></p>
123
  <?php } ?>
124
- <span style="color: rgb(136, 136, 136); font-size: 10px;">If you have any questions, please contact us via plugin@bestwebsoft.com or fill in our contact form on our site <a href="http://bestwebsoft.com/contact/">http://bestwebsoft.com/contact/</a></span>
125
  </div>
126
  <?php } ?>
127
  </div>
@@ -132,8 +105,8 @@ if( ! function_exists( 'bws_add_menu_render' ) ) {
132
  // Add option page in admin menu
133
  if( ! function_exists( 'cntctfrm_admin_menu' ) ) {
134
  function cntctfrm_admin_menu() {
135
- add_menu_page(__('BWS Plugins'), __('BWS Plugins'), 'edit_themes', 'bws_plugins', 'bws_add_menu_render', WP_CONTENT_URL."/plugins/contact-form-plugin/images/px.png", 101);
136
- add_submenu_page('bws_plugins', 'Contact Form Options', 'Contact Form', 'edit_themes', "contact_form.php", 'cntctfrm_settings_page');
137
 
138
  //call register settings function
139
  add_action( 'admin_init', 'cntctfrm_settings' );
@@ -149,6 +122,9 @@ if( ! function_exists( 'cntctfrm_settings' ) ) {
149
  'cntctfrm_user_email' => 'admin',
150
  'cntctfrm_custom_email' => '',
151
  'cntctfrm_select_email' => 'user',
 
 
 
152
  );
153
 
154
  if( ! get_option( 'cntctfrm_options' ) )
@@ -170,24 +146,32 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
170
  $cntctfrm_options_submit['cntctfrm_user_email'] = $_REQUEST['cntctfrm_user_email'];
171
  $cntctfrm_options_submit['cntctfrm_custom_email'] = $_REQUEST['cntctfrm_custom_email'];
172
  $cntctfrm_options_submit['cntctfrm_select_email'] = $_REQUEST['cntctfrm_select_email'];
 
 
 
 
 
 
 
 
173
  $cntctfrm_options = array_merge( $cntctfrm_options, $cntctfrm_options_submit );
174
  if( 'user' == $cntctfrm_options_submit['cntctfrm_select_email'] ) {
175
  if( false !== get_userdatabylogin( $cntctfrm_options_submit['cntctfrm_user_email'] ) )
176
  {
177
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
178
- $message = "Options saved.";
179
  }
180
  else {
181
- $error = "Such user is not exist. Settings are not saved.";
182
  }
183
  }
184
  else {
185
  if( $cntctfrm_options_submit['cntctfrm_custom_email'] != "" && preg_match( "/^(?:[a-z0-9]+(?:[-_\.]?[a-z0-9]+)?@[a-z0-9]+(?:[-\.]?[a-z0-9]+)?\.[a-z]{2,5})$/i", trim( $cntctfrm_options_submit['cntctfrm_custom_email'] ) ) ) {
186
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
187
- $message = "Options saved.";
188
  }
189
  else {
190
- $error = "Please input correct email. Settings are not saved.";
191
  }
192
  }
193
  }
@@ -195,35 +179,49 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
195
  ?>
196
  <div class="wrap">
197
  <div class="icon32 icon32-bws" id="icon-options-general"></div>
198
- <h2>Contact Form Options</h2>
199
  <div class="updated fade" <?php if( ! isset( $_REQUEST['cntctfrm_form_submit'] ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
200
  <div class="error" <?php if( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
201
  <form method="post" action="admin.php?page=contact_form.php">
202
  <span style="margin-bottom:15px;">
203
- <p>If you would like to add a Contact Form to your website, just copy and put this shortcode onto your post or page: [contact_form]</p>
204
- If information in the below fields are empty then the message will be send to an address which was specified during registration.
205
  </span>
206
  <table class="form-table">
207
  <tr valign="top">
208
- <th scope="row" style="width:195px;">Use email of wordpress user: </th>
209
  <td>
210
  <input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'user') echo "checked=\"checked\" "; ?>/>
211
  </td>
212
  <td>
213
  <input type="text" name="cntctfrm_user_email" value="<?php echo $cntctfrm_options['cntctfrm_user_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_user').checked = true;" />
214
- <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;">Set a name of user wo will get messages from a contact form.</span>
215
  </td>
216
  </tr>
217
  <tr valign="top">
218
- <th scope="row" style="width:195px;">Use this email: </th>
219
  <td>
220
  <input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'custom') echo "checked=\"checked\" "; ?>/>
221
  </td>
222
  <td>
223
  <input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_custom').checked = true;" />
224
- <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;">Set an email address which will be used for messages receiving.</span>
 
 
 
 
 
 
 
 
 
225
  </td>
226
  </tr>
 
 
 
 
 
227
  </tr>
228
  </table>
229
  <input type="hidden" name="cntctfrm_form_submit" value="submit" />
@@ -250,6 +248,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
250
  $email = isset( $_REQUEST['cntctfrm_contact_email'] ) ? $_REQUEST['cntctfrm_contact_email'] : "";
251
  $subject = isset( $_REQUEST['cntctfrm_contact_subject'] ) ? $_REQUEST['cntctfrm_contact_subject'] : "";
252
  $message = isset( $_REQUEST['cntctfrm_contact_message'] ) ? $_REQUEST['cntctfrm_contact_message'] : "";
 
253
  if( isset( $_REQUEST['cntctfrm_contact_action'] ) )
254
  {
255
  // Check all input data
@@ -257,12 +256,12 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
257
  }
258
  // If it is good
259
  if( true === $result ) {
260
- $content .= __( "Thank you for contacting us.", "cntfrm" );
261
  }
262
  else if( false === $result )
263
  {
264
  // If email not be delivered
265
- $error_message['error_form'] = __( "Sorry, your e-mail could not be delivered.", "cntfrm" );
266
  }
267
  else {
268
  // Output form
@@ -271,7 +270,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
271
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_form'].'</div>';
272
  }
273
  $content .= '<div style="text-align: left; padding-top: 5px;">
274
- <label for="cntctfrm_contact_name">Name:<span class="required"> *</span></label>
275
  </div>';
276
  if( isset( $error_message['error_name'] ) ) {
277
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_name'].'</div>';
@@ -281,7 +280,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
281
  </div>
282
 
283
  <div style="text-align: left;">
284
- <label for="cntctfrm_contact_email">E-Mail Address:<span class="required"> *</span></label>
285
  </div>';
286
  if( isset( $error_message['error_email'] ) ) {
287
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_email'].'</div>';
@@ -291,7 +290,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
291
  </div>
292
 
293
  <div style="text-align: left;">
294
- <label for="cntctfrm_contact_subject1">Subject:<span class="required"> *</span></label>
295
  </div>';
296
  if( isset( $error_message['error_subject'] ) ) {
297
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_subject'].'</div>';
@@ -301,7 +300,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
301
  </div>
302
 
303
  <div style="text-align: left;">
304
- <label for="cntctfrm_contact_message">Message:<span class="required"> *</span></label>
305
  </div>';
306
  if( isset( $error_message['error_message'] ) ) {
307
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_message'].'</div>';
@@ -309,14 +308,31 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
309
  $content .= '<div style="text-align: left;">
310
  <textarea rows="10" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message">'.$message.'</textarea>
311
  </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
 
313
  if(has_filter('cntctfrm_display_captcha')) {
314
  $content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
315
  }
316
 
317
  $content .= '<div style="text-align: left; padding-top: 8px;">
318
- <input type="hidden" value="send" name="cntctfrm_contact_action">
319
- <input type="submit" value="Submit" style="cursor: pointer; margin: 0pt; text-align: center;margin-bottom:10px;">
320
  </div>
321
  </form>';
322
  }
@@ -328,14 +344,45 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
328
  if( ! function_exists( 'cntctfrm_check_form' ) ) {
329
  function cntctfrm_check_form() {
330
  global $error_message;
 
331
  $result = "";
332
  // Error messages array
333
  $error_message = array();
334
- $error_message['error_name'] = __( "Your name is required.", "cntfrm" );
335
- $error_message['error_email'] = __( "A proper e-mail address is required.", "cntfrm" );
336
- $error_message['error_subject'] = __( "Subject text is required.", "cntfrm" );
337
- $error_message['error_message'] = __( "Message text is required.", "cntfrm" );
338
- $error_message['error_form'] = __( "Please make corrections below and try again.", "cntfrm" );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  // Check information wich was input in fields
340
  if( "" != $_REQUEST['cntctfrm_contact_name'] )
341
  unset( $error_message['error_name'] );
@@ -347,7 +394,23 @@ if( ! function_exists( 'cntctfrm_check_form' ) ) {
347
  unset( $error_message['error_message'] );
348
  // If captcha plugin exists
349
  if( ! apply_filters( 'cntctfrm_check_form', $_REQUEST ) )
350
- $error_message['error_captcha'] = __( "Please complete the CAPTCHA.", "cntfrm" );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  if( 1 == count( $error_message ) ) {
352
  unset( $error_message['error_form'] );
353
  // If all is good - send mail
@@ -386,32 +449,32 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
386
  }
387
 
388
  $userdomain = gethostbyaddr($_SERVER['REMOTE_ADDR']);
389
- $user_info_string .= __('Sent from (ip address)', 'cntfrm').': '.$_SERVER['REMOTE_ADDR']." ( ". $userdomain ." )";
390
- $user_info_string .= __('Date/Time', 'cntfrm').': '.date_i18n( get_option( 'date_format' ).' '.get_option( 'time_format' ), time() );
391
- $user_info_string .= __('Coming from (referer)', 'cntfrm').': '.$form_action_url;
392
- $user_info_string .= __('Using (user agent)', 'cntfrm').': '.cntctfrm_clean_input($_SERVER['HTTP_USER_AGENT']);
393
  // message
394
  $message = '
395
  <html>
396
  <head>
397
- <title>Contact from'.get_bloginfo('name').'</title>
398
  </head>
399
  <body>
400
  <table>
401
  <tr>
402
- <td width="160">Name</td><td>'.$_REQUEST['cntctfrm_contact_name'].'</td>
403
  </tr>
404
  <tr>
405
- <td>Email</td><td>'.$_REQUEST['cntctfrm_contact_email'].'</td>
406
  </tr>
407
  <tr>
408
- <td>Subject</td><td>'.$_REQUEST['cntctfrm_contact_subject'].'</td>
409
  </tr>
410
  <tr>
411
- <td>Message</td><td>'.$_REQUEST['cntctfrm_contact_message'].'</td>
412
  </tr>
413
  <tr>
414
- <td>Site</td><td>'.get_bloginfo("url").'</td>
415
  </tr>
416
  <tr>
417
  <td><br /></td><td><br /></td>
@@ -420,31 +483,71 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
420
  <td><br /></td><td><br /></td>
421
  </tr>
422
  <tr>
423
- <td>'.__('Sent from (ip address)', 'cntfrm').': </td><td>'.$_SERVER['REMOTE_ADDR']." ( ". $userdomain ." )".'</td>
424
  </tr>
425
  <tr>
426
- <td>'.__('Date/Time', 'cntfrm').': </td><td>'.date_i18n( get_option( 'date_format' ).' '.get_option( 'time_format' ), time() ).'</td>
427
  </tr>
428
  <tr>
429
- <td>'.__('Coming from (referer)', 'cntfrm').': </td><td>'.$form_action_url.'</td>
430
  </tr>
431
  <tr>
432
- <td>'.__('Using (user agent)', 'cntfrm').': </td><td>'.cntctfrm_clean_input($_SERVER['HTTP_USER_AGENT']).'</td>
433
  </tr>
434
  </table>
435
  </body>
436
  </html>
437
  ';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
 
 
 
439
 
440
- // To send HTML mail, the Content-type header must be set
441
- $headers = 'MIME-Version: 1.0' . "\r\n";
442
- $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
443
-
444
- // Additional headers
445
- $headers .= 'From: '.$_REQUEST['cntctfrm_contact_email']. "\r\n";
446
 
447
- // Mail it
448
  return @mail($to, stripslashes($subject), stripslashes($message), $headers);
449
  }
450
  return false;
@@ -457,7 +560,7 @@ function cntctfrm_plugin_action_links( $links, $file ) {
457
  if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
458
 
459
  if ( $file == $this_plugin ){
460
- $settings_link = '<a href="admin.php?page=contact_form.php">' . __('Settings', 'cntctfrm_plugin') . '</a>';
461
  array_unshift( $links, $settings_link );
462
  }
463
  return $links;
@@ -466,9 +569,9 @@ function cntctfrm_plugin_action_links( $links, $file ) {
466
  function cntctfrm_register_plugin_links($links, $file) {
467
  $base = plugin_basename(__FILE__);
468
  if ($file == $base) {
469
- $links[] = '<a href="admin.php?page=contact_form.php">' . __('Settings','cntctfrm_plugin') . '</a>';
470
- $links[] = '<a href="http://wordpress.org/extend/plugins/contact-form-plugin/faq/" target="_blank">' . __('FAQ','cntctfrm_plugin') . '</a>';
471
- $links[] = '<a href="Mailto:plugin@bestwebsoft.com">' . __('Support','cntctfrm_plugin') . '</a>';
472
  }
473
  return $links;
474
  }
@@ -500,6 +603,25 @@ function cntctfrm_sanitize_string($string, $preserve_space = 0 ) {
500
  return preg_replace( "/[<>]/", '_', $string );
501
  }
502
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  // adds "Settings" link to the plugin action page
504
  add_filter( 'plugin_action_links', 'cntctfrm_plugin_action_links',10,2);
505
 
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
+ Version: 3.01
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
23
  along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  if( ! function_exists( 'bws_add_menu_render' ) ) {
28
  function bws_add_menu_render() {
39
  array( 'contact-form-plugin\/contact_form.php', 'Contact Form', 'http://wordpress.org/extend/plugins/contact-form-plugin/', 'http://bestwebsoft.com/plugin/contact-form/', '/wp-admin/update.php?action=install-plugin&plugin=contact-form-plugin&_wpnonce=47757d936f' ),
40
  array( 'facebook-button-plugin\/facebook-button-plugin.php', 'Facebook Like Button Plugin', 'http://wordpress.org/extend/plugins/facebook-button-plugin/', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=facebook-button-plugin&_wpnonce=6eb654de19' ),
41
  array( 'twitter-plugin\/twitter.php', 'Twitter Plugin', 'http://wordpress.org/extend/plugins/twitter-plugin/', 'http://bestwebsoft.com/plugin/twitter-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=twitter-plugin&_wpnonce=1612c998a5' ),
42
+ array( 'portfolio\/portfolio.php', 'Portfolio', 'http://wordpress.org/extend/plugins/portfolio/', 'http://bestwebsoft.com/plugin/portfolio-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=portfolio&_wpnonce=488af7391d' ),
43
+ array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://wordpress.org/extend/plugins/gallery-plugin/', 'http://bestwebsoft.com/plugin/gallery-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=gallery-plugin&_wpnonce=f82ce8c1ad' ),
44
+ array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://wordpress.org/extend/plugins/adsense-plugin/', 'http://bestwebsoft.com/plugin/google-adsense-plugin/', '/wp-admin/update.php?action=install-plugin&plugin=adsense-plugin&_wpnonce=e6e85756de' )
45
  );
46
  foreach($array_plugins as $plugins)
47
  {
72
  <div class="wrap">
73
  <div class="icon32 icon32-bws" id="icon-options-general"></div>
74
  <h2><?php echo $title;?></h2>
75
+ <?php if( 0 < $count_activate ) { ?>
76
  <div>
77
+ <h3><?php _e( 'Activated plugins', 'contact_form' ); ?></h3>
78
+ <?php foreach( $array_activate as $activate_plugin ) { ?>
79
+ <div style="float:left; width:200px;"><?php echo $activate_plugin['title']; ?></div> <p><a href="<?php echo $activate_plugin['link']; ?>"><?php echo __( "Read more", 'contact_form'); ?></a></p>
80
  <?php } ?>
81
  </div>
82
  <?php } ?>
83
+ <?php if( 0 < $count_install ) { ?>
84
  <div>
85
+ <h3><?php _e( 'Installed plugins', 'contact_form' ); ?></h3>
86
  <?php foreach($array_install as $install_plugin) { ?>
87
+ <div style="float:left; width:200px;"><?php echo $install_plugin['title']; ?></div> <p><a href="<?php echo $install_plugin['link']; ?>"><?php echo __( "Read more", 'contact_form'); ?></a></p>
88
  <?php } ?>
89
  </div>
90
  <?php } ?>
91
+ <?php if( 0 < $count_recomend ) { ?>
92
  <div>
93
+ <h3><?php _e( 'Recommended plugins', 'contact_form' ); ?></h3>
94
+ <?php foreach( $array_recomend as $recomend_plugin ) { ?>
95
+ <div style="float:left; width:200px;"><?php echo $recomend_plugin['title']; ?></div> <p><a href="<?php echo $recomend_plugin['link']; ?>"><?php echo __( "Read more", 'contact_form'); ?></a> <a href="<?php echo $recomend_plugin['href']; ?>"><?php echo __( "Download", 'contact_form'); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_plugin['slug']; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_plugin['title'] ) ) ?>"><?php echo __( 'Install Now' ) ?></a></p>
96
  <?php } ?>
97
+ <span style="color: rgb(136, 136, 136); font-size: 10px;"><?php _e( 'If you have any questions, please contact us via plugin@bestwebsoft.com or fill in our contact form on our site', 'contact_form' ); ?> <a href="http://bestwebsoft.com/contact/">http://bestwebsoft.com/contact/</a></span>
98
  </div>
99
  <?php } ?>
100
  </div>
105
  // Add option page in admin menu
106
  if( ! function_exists( 'cntctfrm_admin_menu' ) ) {
107
  function cntctfrm_admin_menu() {
108
+ add_menu_page(__( 'BWS Plugins', 'contact_form' ), __( 'BWS Plugins', 'contact_form' ), 'edit_themes', 'bws_plugins', 'bws_add_menu_render', WP_CONTENT_URL."/plugins/contact-form-plugin/images/px.png", 1001);
109
+ add_submenu_page('bws_plugins', __( 'Contact Form Options', 'contact_form' ), __( 'Contact Form', 'contact_form' ), 'edit_themes', "contact_form.php", 'cntctfrm_settings_page');
110
 
111
  //call register settings function
112
  add_action( 'admin_init', 'cntctfrm_settings' );
122
  'cntctfrm_user_email' => 'admin',
123
  'cntctfrm_custom_email' => '',
124
  'cntctfrm_select_email' => 'user',
125
+ 'cntctfrm_additions_options' => 0,
126
+ 'cntctfrm_attachment' => 0,
127
+ 'cntctfrm_send_copy' => 0
128
  );
129
 
130
  if( ! get_option( 'cntctfrm_options' ) )
146
  $cntctfrm_options_submit['cntctfrm_user_email'] = $_REQUEST['cntctfrm_user_email'];
147
  $cntctfrm_options_submit['cntctfrm_custom_email'] = $_REQUEST['cntctfrm_custom_email'];
148
  $cntctfrm_options_submit['cntctfrm_select_email'] = $_REQUEST['cntctfrm_select_email'];
149
+ $cntctfrm_options_submit['cntctfrm_additions_options'] = isset( $_REQUEST['cntctfrm_additions_options']) ? $_REQUEST['cntctfrm_additions_options'] : 0;
150
+ if($cntctfrm_options_submit['cntctfrm_additions_options'] == 0) {
151
+ $cntctfrm_options_submit['cntctfrm_attachment'] = 0;
152
+ $cntctfrm_options_submit['cntctfrm_send_copy'] = 0;
153
+ } else {
154
+ $cntctfrm_options_submit['cntctfrm_attachment'] = isset( $_REQUEST['cntctfrm_attachment']) ? $_REQUEST['cntctfrm_attachment'] : 0;
155
+ $cntctfrm_options_submit['cntctfrm_send_copy'] = isset( $_REQUEST['cntctfrm_send_copy']) ? $_REQUEST['cntctfrm_send_copy'] : 0;
156
+ }
157
  $cntctfrm_options = array_merge( $cntctfrm_options, $cntctfrm_options_submit );
158
  if( 'user' == $cntctfrm_options_submit['cntctfrm_select_email'] ) {
159
  if( false !== get_userdatabylogin( $cntctfrm_options_submit['cntctfrm_user_email'] ) )
160
  {
161
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
162
+ $message = __( "Options saved.", 'contact_form' );
163
  }
164
  else {
165
+ $error =__( "Such user is not exist. Settings are not saved.", 'contact_form' );
166
  }
167
  }
168
  else {
169
  if( $cntctfrm_options_submit['cntctfrm_custom_email'] != "" && preg_match( "/^(?:[a-z0-9]+(?:[-_\.]?[a-z0-9]+)?@[a-z0-9]+(?:[-\.]?[a-z0-9]+)?\.[a-z]{2,5})$/i", trim( $cntctfrm_options_submit['cntctfrm_custom_email'] ) ) ) {
170
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
171
+ $message = __( "Options saved.", 'contact_form' );
172
  }
173
  else {
174
+ $error = __( "Please input correct email. Settings are not saved.", 'contact_form' );
175
  }
176
  }
177
  }
179
  ?>
180
  <div class="wrap">
181
  <div class="icon32 icon32-bws" id="icon-options-general"></div>
182
+ <h2><?php _e( "Contact Form Options", 'contact_form' ); ?></h2>
183
  <div class="updated fade" <?php if( ! isset( $_REQUEST['cntctfrm_form_submit'] ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
184
  <div class="error" <?php if( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
185
  <form method="post" action="admin.php?page=contact_form.php">
186
  <span style="margin-bottom:15px;">
187
+ <p><?php _e( "If you would like to add a Contact Form to your website, just copy and put this shortcode onto your post or page:", 'contact_form' ); ?> [contact_form]</p>
188
+ <?php _e( "If information in the below fields are empty then the message will be send to an address which was specified during registration.", 'contact_form' ); ?>
189
  </span>
190
  <table class="form-table">
191
  <tr valign="top">
192
+ <th scope="row" style="width:195px;"><?php _e( "Use email of wordpress user:", 'contact_form' ); ?> </th>
193
  <td>
194
  <input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'user') echo "checked=\"checked\" "; ?>/>
195
  </td>
196
  <td>
197
  <input type="text" name="cntctfrm_user_email" value="<?php echo $cntctfrm_options['cntctfrm_user_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_user').checked = true;" />
198
+ <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;"><?php _e( "Set a name of user wo will get messages from a contact form.", 'contact_form' ); ?></span>
199
  </td>
200
  </tr>
201
  <tr valign="top">
202
+ <th scope="row" style="width:195px;"><?php _e( "Use this email:", 'contact_form' ); ?> </th>
203
  <td>
204
  <input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'custom') echo "checked=\"checked\" "; ?>/>
205
  </td>
206
  <td>
207
  <input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_custom').checked = true;" />
208
+ <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;"><?php _e( "Set an email address which will be used for messages receiving.", 'contact_form' ); ?></span>
209
+ </td>
210
+ </tr>
211
+ <tr valign="top">
212
+ <th colspan="3" scope="row" style="width:195px;"><input type="checkbox" id="cntctfrm_additions_options" name="cntctfrm_additions_options" value="1" <?php if($cntctfrm_options['cntctfrm_additions_options'] == '1') echo "checked=\"checked\" "; ?> /> <?php _e( "Additional options", 'contact_form' ); ?></th>
213
+ </tr>
214
+ <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
215
+ <th scope="row" style="width:195px;"><?php _e( "Display Attachment block", 'contact_form' ); ?></th>
216
+ <td colspan="2">
217
+ <input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if($cntctfrm_options['cntctfrm_attachment'] == '1') echo "checked=\"checked\" "; ?>/>
218
  </td>
219
  </tr>
220
+ <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
221
+ <th scope="row" style="width:195px;"><?php _e( "Display Send me a copy block", 'contact_form' ); ?></th>
222
+ <td colspan="2">
223
+ <input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if($cntctfrm_options['cntctfrm_send_copy'] == '1') echo "checked=\"checked\" "; ?>/>
224
+ </td>
225
  </tr>
226
  </table>
227
  <input type="hidden" name="cntctfrm_form_submit" value="submit" />
248
  $email = isset( $_REQUEST['cntctfrm_contact_email'] ) ? $_REQUEST['cntctfrm_contact_email'] : "";
249
  $subject = isset( $_REQUEST['cntctfrm_contact_subject'] ) ? $_REQUEST['cntctfrm_contact_subject'] : "";
250
  $message = isset( $_REQUEST['cntctfrm_contact_message'] ) ? $_REQUEST['cntctfrm_contact_message'] : "";
251
+ $send_copy = isset( $_REQUEST['cntctfrm_contact_send_copy'] ) ? $_REQUEST['cntctfrm_contact_send_copy'] : "";
252
  if( isset( $_REQUEST['cntctfrm_contact_action'] ) )
253
  {
254
  // Check all input data
256
  }
257
  // If it is good
258
  if( true === $result ) {
259
+ $content .= __( "Thank you for contacting us.", 'contact_form' );
260
  }
261
  else if( false === $result )
262
  {
263
  // If email not be delivered
264
+ $error_message['error_form'] = __( "Sorry, your e-mail could not be delivered.", 'contact_form' );
265
  }
266
  else {
267
  // Output form
270
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_form'].'</div>';
271
  }
272
  $content .= '<div style="text-align: left; padding-top: 5px;">
273
+ <label for="cntctfrm_contact_name">'. __( "Name:", 'contact_form' ). '<span class="required"> *</span></label>
274
  </div>';
275
  if( isset( $error_message['error_name'] ) ) {
276
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_name'].'</div>';
280
  </div>
281
 
282
  <div style="text-align: left;">
283
+ <label for="cntctfrm_contact_email">'. __( "E-Mail Address:", 'contact_form' ). '<span class="required"> *</span></label>
284
  </div>';
285
  if( isset( $error_message['error_email'] ) ) {
286
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_email'].'</div>';
290
  </div>
291
 
292
  <div style="text-align: left;">
293
+ <label for="cntctfrm_contact_subject1">'. __( "Subject:", 'contact_form' ). '<span class="required"> *</span></label>
294
  </div>';
295
  if( isset( $error_message['error_subject'] ) ) {
296
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_subject'].'</div>';
300
  </div>
301
 
302
  <div style="text-align: left;">
303
+ <label for="cntctfrm_contact_message">'. __( "Message:", 'contact_form' ). '<span class="required"> *</span></label>
304
  </div>';
305
  if( isset( $error_message['error_message'] ) ) {
306
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_message'].'</div>';
308
  $content .= '<div style="text-align: left;">
309
  <textarea rows="10" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message">'.$message.'</textarea>
310
  </div>';
311
+ if($cntctfrm_options['cntctfrm_attachment'] == 1 ) {
312
+ $content .= '<div style="text-align: left;">
313
+ <label for="cntctfrm_contact_attachment">'. __( "Attachment:", 'contact_form' ). '</label>
314
+ </div>';
315
+ if( isset( $error_message['error_attachment'] ) ) {
316
+ $content .= '<div style="text-align: left; color: red;">'.$error_message['error_attachment'].'</div>';
317
+ }
318
+ $content .= '<div style="text-align: left;">
319
+ <input type="file" name="cntctfrm_contact_attachment" id="cntctfrm_contact_attachment"'.(isset( $error_message['error_attachment'] ) ? "class='error'": "").' />
320
+ </div>';
321
+ }
322
+ if($cntctfrm_options['cntctfrm_send_copy'] == 1 ) {
323
+ $content .= '<div style="text-align: left;">
324
+ <input type="checkbox" size="40" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy" style="text-align: left; margin: 0;" '.( $send_copy == '1' ? " checked=\"checked\" " : "" ).'>
325
+ <label for="cntctfrm_contact_send_copy">'. __( "Send me a copy", 'contact_form' ). '</label>
326
+ </div>';
327
+ }
328
 
329
  if(has_filter('cntctfrm_display_captcha')) {
330
  $content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
331
  }
332
 
333
  $content .= '<div style="text-align: left; padding-top: 8px;">
334
+ <input type="hidden" value="send" name="cntctfrm_contact_action"><input type="hidden" value="Version: 2.09">
335
+ <input type="submit" value="'. __( "Submit", 'contact_form' ). '" style="cursor: pointer; margin: 0pt; text-align: center;margin-bottom:10px;">
336
  </div>
337
  </form>';
338
  }
344
  if( ! function_exists( 'cntctfrm_check_form' ) ) {
345
  function cntctfrm_check_form() {
346
  global $error_message;
347
+ global $cntctfrm_options;
348
  $result = "";
349
  // Error messages array
350
  $error_message = array();
351
+ $error_message['error_name'] = __( "Your name is required.", 'contact_form' );
352
+ $error_message['error_email'] = __( "A proper e-mail address is required.", 'contact_form' );
353
+ $error_message['error_subject'] = __( "Subject text is required.", 'contact_form' );
354
+ $error_message['error_message'] = __( "Message text is required.", 'contact_form' );
355
+ $error_message['error_form'] = __( "Please make corrections below and try again.", 'contact_form' );
356
+ if( $cntctfrm_options['cntctfrm_attachment'] == 1 ) {
357
+ global $path_of_uploaded_file;
358
+ global $mime_type;
359
+ $mime_type= array(
360
+ 'html'=>'text/html',
361
+ 'htm'=>'text/html',
362
+ 'txt'=>'text/plain',
363
+ 'css'=>'text/css',
364
+ 'gif'=>'image/gif',
365
+ 'png'=>'image/x-png',
366
+ 'jpeg'=>'image/jpeg',
367
+ 'jpg'=>'image/jpeg',
368
+ 'JPG'=>'image/jpeg',
369
+ 'jpe'=>'image/jpeg',
370
+ 'TIFF'=>'image/tifff',
371
+ 'tiff'=>'image/tiff',
372
+ 'tif'=>'image/tiff',
373
+ 'bmp'=>'image/x-ms-bmp',
374
+ 'ai'=>'application/postscript',
375
+ 'eps'=>'application/postscript',
376
+ 'ps'=>'application/postscript',
377
+ 'rtf'=>'application/rtf',
378
+ 'pdf'=>'application/pdf',
379
+ 'doc'=>'application/msword',
380
+ 'docx'=>'application/mswor',
381
+ 'zip'=>'application/zip',
382
+ 'js'=>'text/javascript',
383
+ 'ppt'=>'application/vnd.ms-powerpoint');
384
+ $error_message['error_attachment'] = __( "Attachment is broken.", "contact_form" );
385
+ }
386
  // Check information wich was input in fields
387
  if( "" != $_REQUEST['cntctfrm_contact_name'] )
388
  unset( $error_message['error_name'] );
394
  unset( $error_message['error_message'] );
395
  // If captcha plugin exists
396
  if( ! apply_filters( 'cntctfrm_check_form', $_REQUEST ) )
397
+ $error_message['error_captcha'] = __( "Please complete the CAPTCHA.", 'contact_form' );
398
+ if( isset($_FILES["cntctfrm_contact_attachment"]["tmp_name"]) && $_FILES["cntctfrm_contact_attachment"]["tmp_name"] != "") {
399
+ $uploads = wp_upload_dir();
400
+ $path_of_uploaded_file = $uploads['path'] ."/". $_FILES["cntctfrm_contact_attachment"]["name"];
401
+ $tmp_path = $_FILES["cntctfrm_contact_attachment"]["tmp_name"];
402
+ $path_info = pathinfo( $path_of_uploaded_file );
403
+
404
+ if( array_key_exists ($path_info['extension'], $mime_type) ) {
405
+ if( is_uploaded_file( $tmp_path ) ) {
406
+ if( copy( $tmp_path, $path_of_uploaded_file ) ) {
407
+ unset( $error_message['error_attachment'] );
408
+ }
409
+ }
410
+ }
411
+ } else {
412
+ unset( $error_message['error_attachment'] );
413
+ }
414
  if( 1 == count( $error_message ) ) {
415
  unset( $error_message['error_form'] );
416
  // If all is good - send mail
449
  }
450
 
451
  $userdomain = gethostbyaddr($_SERVER['REMOTE_ADDR']);
452
+ $user_info_string .= __('Sent from (ip address)', 'contact_form').': '.$_SERVER['REMOTE_ADDR']." ( ". $userdomain ." )";
453
+ $user_info_string .= __('Date/Time', 'contact_form').': '.date_i18n( get_option( 'date_format' ).' '.get_option( 'time_format' ), time() );
454
+ $user_info_string .= __('Coming from (referer)', 'contact_form').': '.$form_action_url;
455
+ $user_info_string .= __('Using (user agent)', 'contact_form').': '.cntctfrm_clean_input($_SERVER['HTTP_USER_AGENT']);
456
  // message
457
  $message = '
458
  <html>
459
  <head>
460
+ <title>'. __( "Contact from", 'contact_form' ) . get_bloginfo('name').'</title>
461
  </head>
462
  <body>
463
  <table>
464
  <tr>
465
+ <td width="160">'. __( "Name", 'contact_form' ) . '</td><td>'.$_REQUEST['cntctfrm_contact_name'].'</td>
466
  </tr>
467
  <tr>
468
+ <td>'. __( "Email", 'contact_form' ) .'</td><td>'.$_REQUEST['cntctfrm_contact_email'].'</td>
469
  </tr>
470
  <tr>
471
+ <td>'. __( "Subject", 'contact_form' ) . '</td><td>'.$_REQUEST['cntctfrm_contact_subject'].'</td>
472
  </tr>
473
  <tr>
474
+ <td>'. __( "Message", 'contact_form' ) . '</td><td>'.$_REQUEST['cntctfrm_contact_message'].'</td>
475
  </tr>
476
  <tr>
477
+ <td>'. __( "Site", 'contact_form' ) . '</td><td>'.get_bloginfo("url").'</td>
478
  </tr>
479
  <tr>
480
  <td><br /></td><td><br /></td>
483
  <td><br /></td><td><br /></td>
484
  </tr>
485
  <tr>
486
+ <td>'.__('Sent from (ip address)', 'contact_form').': </td><td>'.$_SERVER['REMOTE_ADDR']." ( ". $userdomain ." )".'</td>
487
  </tr>
488
  <tr>
489
+ <td>'.__('Date/Time', 'contact_form').': </td><td>'.date_i18n( get_option( 'date_format' ).' '.get_option( 'time_format' ), time() ).'</td>
490
  </tr>
491
  <tr>
492
+ <td>'.__('Coming from (referer)', 'contact_form').': </td><td>'.$form_action_url.'</td>
493
  </tr>
494
  <tr>
495
+ <td>'.__('Using (user agent)', 'contact_form').': </td><td>'.cntctfrm_clean_input($_SERVER['HTTP_USER_AGENT']).'</td>
496
  </tr>
497
  </table>
498
  </body>
499
  </html>
500
  ';
501
+ if( $cntctfrm_options['cntctfrm_attachment'] == 1 ) {
502
+ global $path_of_uploaded_file;
503
+ $headers = "";
504
+ $message_block = $message;
505
+
506
+ // Additional headers
507
+ $headers .= 'From: '.$_REQUEST['cntctfrm_contact_email']. "\r\n";
508
+
509
+ $bound_text = "jimmyP123";
510
+
511
+ $bound = "--".$bound_text."\r\n";
512
+
513
+ $bound_last = "--".$bound_text."--\r\n";
514
+
515
+ $headers .= "MIME-Version: 1.0\r\n"
516
+ ."Content-Type: multipart/mixed; boundary=\"$bound_text\"";
517
+
518
+ $message = __( "If you can see this MIME than your client doesn't accept MIME types!", "contact_form" ) . "\r\n"
519
+ .$bound;
520
+
521
+
522
+ $message .= "Content-Type: text/html; charset=\"utf-8\"\r\n"
523
+ ."Content-Transfer-Encoding: 7bit\r\n\r\n"
524
+ ."".$message_block."\r\n"
525
+ .$value
526
+ .$bound;
527
+
528
+ $file = file_get_contents($path_of_uploaded_file);
529
+ $path_info = pathinfo( $path_of_uploaded_file );
530
+
531
+ $message .= "Content-Type: ".$path_info['extension']."; name=\"".basename($path_of_uploaded_file)."\"\r\n"
532
+ ."Content-Transfer-Encoding: base64\r\n"
533
+ ."Content-disposition: attachment; file=\"".basename($path_of_uploaded_file)."\"\r\n"
534
+ ."\r\n"
535
+ .chunk_split( base64_encode( $file ) )
536
+ .$bound_last;
537
+ }
538
+ else {
539
+ // To send HTML mail, the Content-type header must be set
540
+ $headers = 'MIME-Version: 1.0' . "\r\n";
541
+ $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
542
 
543
+ // Additional headers
544
+ $headers .= 'From: '.$_REQUEST['cntctfrm_contact_email']. "\r\n";
545
 
546
+ // Mail it
547
+ }
548
+ if( $_REQUEST['cntctfrm_contact_send_copy'] == 1 )
549
+ @mail($_REQUEST['cntctfrm_contact_email'], stripslashes($subject), stripslashes($message), $headers);
 
 
550
 
 
551
  return @mail($to, stripslashes($subject), stripslashes($message), $headers);
552
  }
553
  return false;
560
  if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
561
 
562
  if ( $file == $this_plugin ){
563
+ $settings_link = '<a href="admin.php?page=contact_form.php">' . __('Settings', 'contact_form') . '</a>';
564
  array_unshift( $links, $settings_link );
565
  }
566
  return $links;
569
  function cntctfrm_register_plugin_links($links, $file) {
570
  $base = plugin_basename(__FILE__);
571
  if ($file == $base) {
572
+ $links[] = '<a href="admin.php?page=contact_form.php">' . __('Settings','contact_form') . '</a>';
573
+ $links[] = '<a href="http://wordpress.org/extend/plugins/contact-form-plugin/faq/" target="_blank">' . __('FAQ','contact_form') . '</a>';
574
+ $links[] = '<a href="Mailto:plugin@bestwebsoft.com">' . __('Support','contact_form') . '</a>';
575
  }
576
  return $links;
577
  }
603
  return preg_replace( "/[<>]/", '_', $string );
604
  }
605
 
606
+ //Function '_plugin_init' are using to add language files.
607
+ if ( ! function_exists ( 'cntctfrm_plugin_init' ) ) {
608
+ function cntctfrm_plugin_init() {
609
+ load_plugin_textdomain( 'contact_form', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
610
+ }
611
+ } // end function cntctfrm_plugin_init
612
+
613
+
614
+ if ( ! function_exists ( 'cntctfrm_admin_head' ) ) {
615
+ function cntctfrm_admin_head() {
616
+ wp_enqueue_style( 'cntctfrmStylesheet', plugins_url( 'css/style.css', __FILE__ ) );
617
+ wp_enqueue_script( 'cntctfrmScript', plugins_url( 'js/script.js', __FILE__ ) );
618
+ }
619
+ }
620
+
621
+ add_action( 'init', 'cntctfrm_plugin_init' );
622
+
623
+ add_action( 'init', 'cntctfrm_admin_head' );
624
+
625
  // adds "Settings" link to the plugin action page
626
  add_filter( 'plugin_action_links', 'cntctfrm_plugin_action_links',10,2);
627
 
contact_form_style.css DELETED
@@ -1,6 +0,0 @@
1
- #cntctfrm_contact_form input.text {width:320px;}
2
- #cntctfrm_contact_form textarea {width:320px;}
3
- #cntctfrm_contact_message {width:320px}
4
- #cntctfrm_contact_name {width:320px}
5
- #cntctfrm_contact_email {width:320px}
6
- #cntctfrm_contact_subject {width:320px}
 
 
 
 
 
 
css/style.css ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #cntctfrm_contact_form input.text {
2
+ width:320px;
3
+ }
4
+ #cntctfrm_contact_form textarea {
5
+ width:320px;
6
+ }
7
+ #cntctfrm_contact_message {
8
+ width:320px
9
+ }
10
+ #cntctfrm_contact_name {
11
+ width:320px
12
+ }
13
+ #cntctfrm_contact_email {
14
+ width:320px
15
+ }
16
+ #cntctfrm_contact_subject {
17
+ width:320px
18
+ }
19
+
20
+ #adminmenu #toplevel_page_bws_plugins div.wp-menu-image
21
+ {
22
+ background: url("../images/icon_16.png") no-repeat scroll center center transparent;
23
+ }
24
+ #adminmenu #toplevel_page_bws_plugins:hover div.wp-menu-image,#adminmenu #toplevel_page_bws_plugins.wp-has-current-submenu div.wp-menu-image
25
+ {
26
+ background: url("../images/icon_16_c.png") no-repeat scroll center center transparent;
27
+ }
28
+ .wrap #icon-options-general.icon32-bws
29
+ {
30
+ background: url("../images/icon_36.png") no-repeat scroll left top transparent;
31
+ }
32
+ #toplevel_page_bws_plugins .wp-submenu .wp-first-item
33
+ {
34
+ display:none;
35
+ }
36
+
37
+ .cntctfrm_hidden {
38
+ display:none;
39
+ }
js/script.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('#cntctfrm_additions_options').change( function() {
3
+ if(jQuery(this).is(':checked') )
4
+ jQuery('.cntctfrm_additions_block').removeClass('cntctfrm_hidden');
5
+ else
6
+ jQuery('.cntctfrm_additions_block').addClass('cntctfrm_hidden');
7
+ });
8
+ });
languages/cntfrm-ru_RU.mo ADDED
Binary file
languages/cntfrm-ru_RU.po ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: cntfrm\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-12-27 21:25+0200\n"
6
+ "PO-Revision-Date: 2011-12-27 22:52+0200\n"
7
+ "Last-Translator: BWS <zos@bestwebsoft.com>\n"
8
+ "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-Language: Russian\n"
15
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: facebook-button-plugin.php:78
20
+ msgid "Activated plugins"
21
+ msgstr "Активированные плагины"
22
+
23
+ #: facebook-button-plugin.php:80
24
+ #: facebook-button-plugin.php:88
25
+ #: facebook-button-plugin.php:96
26
+ msgid "Read more"
27
+ msgstr "Читать далее"
28
+
29
+ #: facebook-button-plugin.php:86
30
+ msgid "Installed plugins"
31
+ msgstr "Установленные плагины"
32
+
33
+ #: facebook-button-plugin.php:94
34
+ msgid "Recommended plugins"
35
+ msgstr "Рекомендованные к установке плагины"
36
+
37
+ #: facebook-button-plugin.php:96
38
+ msgid "Download"
39
+ msgstr "Скачать"
40
+
41
+ #: facebook-button-plugin.php:96
42
+ #, php-format
43
+ msgid "Install %s"
44
+ msgstr "Установлено %s"
45
+
46
+ #: facebook-button-plugin.php:96
47
+ msgid "Install Now"
48
+ msgstr "Установить сейчас"
49
+
50
+ #: facebook-button-plugin.php:98
51
+ msgid "If you have any questions, please contact us via plugin@bestwebsoft.com or fill in our contact form on our site"
52
+ msgstr "Если у вас есть какие-то впросы, обращайтесь на plugin@bestwebsoft.com или заполните контактную форму на нашем сайте"
53
+
54
+ #: facebook-button-plugin.php:134
55
+ msgid "BWS Plugins"
56
+ msgstr "Плагины BWS"
57
+
58
+ #: facebook-button-plugin.php:135
59
+ #: facebook-button-plugin.php:243
60
+ msgid "FaceBook Button Options"
61
+ msgstr "Настройки FaceBook Кнопки"
62
+
63
+ #: facebook-button-plugin.php:135
64
+ msgid "FaceBook Button"
65
+ msgstr "FaceBook кнопка"
66
+
67
+ #: facebook-button-plugin.php:183
68
+ msgid "Options saved."
69
+ msgstr "Опции сохранены"
70
+
71
+ #: facebook-button-plugin.php:206
72
+ msgid "Error: File size > 32K"
73
+ msgstr "Ошибка: Размер файла больше 32К"
74
+
75
+ #: facebook-button-plugin.php:209
76
+ msgid "Error: Invalid file type"
77
+ msgstr "Ошибка: Некорректный тип файла"
78
+
79
+ #: facebook-button-plugin.php:219
80
+ msgid "Error: moving file failed"
81
+ msgstr "Ошибка: При перемещении произошла ошибка"
82
+
83
+ #: facebook-button-plugin.php:223
84
+ msgid "Error: check image width or height"
85
+ msgstr "Ошибка: Проверьте ширину и высоту изображения"
86
+
87
+ #: facebook-button-plugin.php:228
88
+ msgid "Uploading Error: check image properties"
89
+ msgstr "Ошибка загрузки: Проверьте опции изображения"
90
+
91
+ #: facebook-button-plugin.php:250
92
+ msgid "Your's FaceBook Id:"
93
+ msgstr "Ваш FaceBook Id:"
94
+
95
+ #: facebook-button-plugin.php:257
96
+ msgid "Choose display option:"
97
+ msgstr "Выбор опций отображения:"
98
+
99
+ #: facebook-button-plugin.php:261
100
+ msgid "Standart FaceBook image"
101
+ msgstr "Стандартная картинка FaceBook"
102
+
103
+ #: facebook-button-plugin.php:262
104
+ msgid "Custom FaceBook image"
105
+ msgstr "Пользовательская картинка FaceBook"
106
+
107
+ #: facebook-button-plugin.php:268
108
+ msgid "Current image:"
109
+ msgstr "Текущее изображение:"
110
+
111
+ #: facebook-button-plugin.php:281
112
+ msgid "FaceBook image:"
113
+ msgstr "FaceBook изображение:"
114
+
115
+ #: facebook-button-plugin.php:285
116
+ msgid "Image properties: max image width:100px; max image height:40px; max image size:32Kb; image types:\"jpg\", \"jpeg\"."
117
+ msgstr "Опции изображения для загрузки: максимальная ширина:100px; максимальная высота:40px; максимальный размер:32Kb; тип файла:\"jpg\", \"jpeg\"."
118
+
119
+ #: facebook-button-plugin.php:293
120
+ msgid "FaceBook Button Position:"
121
+ msgstr "Позиции FaceBook кнопки:"
122
+
123
+ #: facebook-button-plugin.php:297
124
+ msgid "Before"
125
+ msgstr "Перед"
126
+
127
+ #: facebook-button-plugin.php:298
128
+ msgid "After"
129
+ msgstr "После"
130
+
131
+ #: facebook-button-plugin.php:299
132
+ msgid "Before and After"
133
+ msgstr "Перед и после"
134
+
135
+ #: facebook-button-plugin.php:300
136
+ msgid "Shortcode"
137
+ msgstr "Шорткод"
138
+
139
+ #: facebook-button-plugin.php:302
140
+ msgid "If you would like to add a FaceBook button to your website, just copy and put this shortcode onto your post or page:"
141
+ msgstr "Если вы хотите добавить FaceBook кнопку на свой сайт, вам надо только скопировать и вставить шорткод в контент страницы или поста"
142
+
143
+ #: facebook-button-plugin.php:308
144
+ msgid "Save Changes"
145
+ msgstr ""
146
+
147
+ #: facebook-button-plugin.php:403
148
+ #: facebook-button-plugin.php:415
149
+ msgid "Settings"
150
+ msgstr "Настройки"
151
+
152
+ #: facebook-button-plugin.php:416
153
+ msgid "FAQ"
154
+ msgstr "FAQ"
155
+
156
+ #: facebook-button-plugin.php:417
157
+ msgid "Support"
158
+ msgstr "Поддержка"
159
+
languages/contact_form-ru_RU.mo ADDED
Binary file
languages/contact_form-ru_RU.po ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: contact_form\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-12-28 17:17+0200\n"
6
+ "PO-Revision-Date: 2011-12-28 17:19+0200\n"
7
+ "Last-Translator: BWS <zos@bestwebsoft.com>\n"
8
+ "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-Language: Russian\n"
15
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: contact_form.php:77
20
+ msgid "Activated plugins"
21
+ msgstr "Активированные плагины"
22
+
23
+ #: contact_form.php:79
24
+ #: contact_form.php:87
25
+ #: contact_form.php:95
26
+ msgid "Read more"
27
+ msgstr "Читать далее"
28
+
29
+ #: contact_form.php:85
30
+ msgid "Installed plugins"
31
+ msgstr "Установленные плагины"
32
+
33
+ #: contact_form.php:93
34
+ msgid "Recommended plugins"
35
+ msgstr "Рекомендованные к установке плагины"
36
+
37
+ #: contact_form.php:95
38
+ msgid "Download"
39
+ msgstr "Скачать"
40
+
41
+ #: contact_form.php:95
42
+ #, php-format
43
+ msgid "Install %s"
44
+ msgstr "Установлено %s"
45
+
46
+ #: contact_form.php:95
47
+ msgid "Install Now"
48
+ msgstr "Установить сейчас"
49
+
50
+ #: contact_form.php:97
51
+ msgid "If you have any questions, please contact us via plugin@bestwebsoft.com or fill in our contact form on our site"
52
+ msgstr "Если у вас есть какие-то впросы, обращайтесь на plugin@bestwebsoft.com или заполните контактную форму на нашем сайте"
53
+
54
+ #: contact_form.php:108
55
+ msgid "BWS Plugins"
56
+ msgstr "Плагины BWS"
57
+
58
+ #: contact_form.php:109
59
+ #: contact_form.php:182
60
+ msgid "Contact Form Options"
61
+ msgstr "Настройки Контактной Формы"
62
+
63
+ #: contact_form.php:109
64
+ msgid "Contact Form"
65
+ msgstr "Контактная Форма"
66
+
67
+ #: contact_form.php:162
68
+ #: contact_form.php:171
69
+ msgid "Options saved."
70
+ msgstr "Опции сохранены"
71
+
72
+ #: contact_form.php:165
73
+ msgid "Such user is not exist. Settings are not saved."
74
+ msgstr "Данный пользователь не найден. Настройки не сохранены"
75
+
76
+ #: contact_form.php:174
77
+ msgid "Please input correct email. Settings are not saved."
78
+ msgstr "Пожалуйста, введите корректный email. Настройки не сохранены."
79
+
80
+ #: contact_form.php:187
81
+ msgid "If you would like to add a Contact Form to your website, just copy and put this shortcode onto your post or page:"
82
+ msgstr "Если вы хотите добавить Контактную Форму на свой сайт, вам надо только скопировать и вставить шорткод в контент страницы или поста:"
83
+
84
+ #: contact_form.php:188
85
+ msgid "If information in the below fields are empty then the message will be send to an address which was specified during registration."
86
+ msgstr "Если информация в полях ниже отсутствует, соощения будут оправлены на email адрес, который был указан при регистрации сайта."
87
+
88
+ #: contact_form.php:192
89
+ msgid "Use email of wordpress user:"
90
+ msgstr "Email пользователя сайта:"
91
+
92
+ #: contact_form.php:198
93
+ msgid "Set a name of user wo will get messages from a contact form."
94
+ msgstr "Укажите логин пользователя, который будет получать сообщения контактной формы"
95
+
96
+ #: contact_form.php:202
97
+ msgid "Use this email:"
98
+ msgstr "Использовать этот email:"
99
+
100
+ #: contact_form.php:208
101
+ msgid "Set an email address which will be used for messages receiving."
102
+ msgstr "Укажите email адрес, на который будут отправляться сообщения."
103
+
104
+ #: contact_form.php:212
105
+ msgid "Additional options"
106
+ msgstr "Дополнительные настройки"
107
+
108
+ #: contact_form.php:216
109
+ msgid "Display Attachment block"
110
+ msgstr "Отобразить блок Прикрепить файл"
111
+
112
+ #: contact_form.php:222
113
+ msgid "Display Send me a copy block"
114
+ msgstr "Отобразить блок Отправить мне копию"
115
+
116
+ #: contact_form.php:230
117
+ msgid "Save Changes"
118
+ msgstr ""
119
+
120
+ #: contact_form.php:260
121
+ msgid "Thank you for contacting us."
122
+ msgstr "Спасибо за контакт с нами."
123
+
124
+ #: contact_form.php:265
125
+ msgid "Sorry, your e-mail could not be delivered."
126
+ msgstr "Извините, ваш email не может быть отправлен."
127
+
128
+ #: contact_form.php:274
129
+ msgid "Name:"
130
+ msgstr "Имя:"
131
+
132
+ #: contact_form.php:284
133
+ msgid "E-Mail Address:"
134
+ msgstr "E-mail адрес:"
135
+
136
+ #: contact_form.php:294
137
+ msgid "Subject:"
138
+ msgstr "Тема:"
139
+
140
+ #: contact_form.php:304
141
+ msgid "Message:"
142
+ msgstr "Сообщение:"
143
+
144
+ #: contact_form.php:314
145
+ msgid "Attachment:"
146
+ msgstr "Прикрепить файл:"
147
+
148
+ #: contact_form.php:326
149
+ msgid "Send me a copy"
150
+ msgstr "Отправить мне копию"
151
+
152
+ #: contact_form.php:336
153
+ msgid "Submit"
154
+ msgstr "Отправить"
155
+
156
+ #: contact_form.php:352
157
+ msgid "Your name is required."
158
+ msgstr "Ваше имя - это обязательное поле."
159
+
160
+ #: contact_form.php:353
161
+ msgid "A proper e-mail address is required."
162
+ msgstr "Поле e-mail адреса - обязательное для заполнения."
163
+
164
+ #: contact_form.php:354
165
+ msgid "Subject text is required."
166
+ msgstr "Поле Тема - обязательное поле."
167
+
168
+ #: contact_form.php:355
169
+ msgid "Message text is required."
170
+ msgstr "Поле Сообщение - обязательное поле."
171
+
172
+ #: contact_form.php:356
173
+ msgid "Please make corrections below and try again."
174
+ msgstr "Пожалуйста, сделайте исправления в отмеченных полях ниже и повторите попытку."
175
+
176
+ #: contact_form.php:385
177
+ msgid "Attachment is broken."
178
+ msgstr "Прикрепленный тип файла не поддерживается"
179
+
180
+ #: contact_form.php:398
181
+ msgid "Please complete the CAPTCHA."
182
+ msgstr "Пожалуйста, заполните КАПЧУ."
183
+
184
+ #: contact_form.php:453
185
+ #: contact_form.php:487
186
+ msgid "Sent from (ip address)"
187
+ msgstr "Отправлено от (ip адрес)"
188
+
189
+ #: contact_form.php:454
190
+ #: contact_form.php:490
191
+ msgid "Date/Time"
192
+ msgstr "Дата/Время"
193
+
194
+ #: contact_form.php:455
195
+ #: contact_form.php:493
196
+ msgid "Coming from (referer)"
197
+ msgstr "Пришло из (реферер)"
198
+
199
+ #: contact_form.php:456
200
+ #: contact_form.php:496
201
+ msgid "Using (user agent)"
202
+ msgstr "Используя (user agent)"
203
+
204
+ #: contact_form.php:461
205
+ msgid "Contact from"
206
+ msgstr "Контактная Форма"
207
+
208
+ #: contact_form.php:466
209
+ msgid "Name"
210
+ msgstr "Имя"
211
+
212
+ #: contact_form.php:469
213
+ msgid "Email"
214
+ msgstr "Email"
215
+
216
+ #: contact_form.php:472
217
+ msgid "Subject"
218
+ msgstr "Тема"
219
+
220
+ #: contact_form.php:475
221
+ msgid "Message"
222
+ msgstr "Сообщение"
223
+
224
+ #: contact_form.php:478
225
+ msgid "Site"
226
+ msgstr "Сайт"
227
+
228
+ #: contact_form.php:519
229
+ msgid "If you can see this MIME than your client doesn't accept MIME types!"
230
+ msgstr "Если вы можете видеть этот MIME значит ваш почтовый клиент не поддерживает MIME тип!"
231
+
232
+ #: contact_form.php:564
233
+ #: contact_form.php:573
234
+ msgid "Settings"
235
+ msgstr "Настройки"
236
+
237
+ #: contact_form.php:574
238
+ msgid "FAQ"
239
+ msgstr "FAQ"
240
+
241
+ #: contact_form.php:575
242
+ msgid "Support"
243
+ msgstr "Поддержка"
244
+
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Contact Form ===
2
  Contributors: bestwebsoft
3
  Donate link: http://bestwebsoft.com/
4
- Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin
5
  Requires at least: 2.9
6
- Tested up to: 3.2
7
- Stable tag: 2011.2.08
8
 
9
  Add Contact Form to your WordPress website.
10
 
@@ -40,12 +40,15 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
40
  == Screenshots ==
41
 
42
  1. Contact Form dislaying.
43
-
44
  2. Plugin settings in the WordPress admin panel.
45
-
 
46
 
47
  == Changelog ==
48
 
 
 
 
49
  = 2.08 =
50
  *We fixed the slashes bug in email and added server info to email.
51
 
@@ -84,6 +87,9 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
84
 
85
  == Upgrade Notice ==
86
 
 
 
 
87
  = 2.08 =
88
  We fixed the slashes bug in email and added server info to email.
89
 
1
  === Contact Form ===
2
  Contributors: bestwebsoft
3
  Donate link: http://bestwebsoft.com/
4
+ Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin, attachment, send, copy, atachment, send copy
5
  Requires at least: 2.9
6
+ Tested up to: 3.3
7
+ Stable tag: 2011.3.01
8
 
9
  Add Contact Form to your WordPress website.
10
 
40
  == Screenshots ==
41
 
42
  1. Contact Form dislaying.
 
43
  2. Plugin settings in the WordPress admin panel.
44
+ 3. Contact Form dislaying with additional fields.
45
+ 4. Plugin settings in the WordPress admin panel with additional fields.
46
 
47
  == Changelog ==
48
 
49
+ = 3.01 =
50
+ *We added the 'Attachment' and 'Send me a copy' block in the contact form. Added language files for plugin.
51
+
52
  = 2.08 =
53
  *We fixed the slashes bug in email and added server info to email.
54
 
87
 
88
  == Upgrade Notice ==
89
 
90
+ = 3.01 =
91
+ *We added the 'Attachment' and 'Send me a copy' block in the contact form. Added language files for plugin.
92
+
93
  = 2.08 =
94
  We fixed the slashes bug in email and added server info to email.
95
 
screenshot-3.jpg ADDED
Binary file
screenshot-4.jpg ADDED
Binary file