Contact Form Email - Version 1.2.46

Version Description

  • Better activation and deactivation process
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.46
Comparing to
See all releases

Code changes from version 1.2.45 to 1.2.46

README.txt CHANGED
@@ -450,6 +450,9 @@ When you click a field already added into the contact form builder area, you can
450
 
451
  == Changelog ==
452
 
 
 
 
453
  = 1.2.45 =
454
  * Removed unneeded code blocks
455
 
@@ -892,5 +895,5 @@ When you click a field already added into the contact form builder area, you can
892
 
893
  == Upgrade Notice ==
894
 
895
- = 1.2.45 =
896
- * Removed unneeded code blocks
450
 
451
  == Changelog ==
452
 
453
+ = 1.2.46 =
454
+ * Better activation and deactivation process
455
+
456
  = 1.2.45 =
457
  * Removed unneeded code blocks
458
 
895
 
896
  == Upgrade Notice ==
897
 
898
+ = 1.2.46 =
899
+ * Better activation and deactivation process
bannerdk.php CHANGED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // este es el bloque del banner para descuentos
4
+
5
+ global $codepeople_cftedk_banner_plugins;
6
+ if(empty($codepeople_cftedk_banner_plugins)) $codepeople_cftedk_banner_plugins = array();
7
+ if(!function_exists( 'codepeople_add_promotecftedk_banner' ))
8
+ {
9
+ function codepeople_add_promotecftedk_banner($wp_admin_bar)
10
+ {
11
+ global $codepeople_cftedk_banner_plugins;
12
+
13
+ if( empty($codepeople_cftedk_banner_plugins) || !is_admin() ) return;
14
+
15
+ // Take action over the banner
16
+ if(isset($_POST['codepeople_cftedk_banner_nonce']) && wp_verify_nonce($_POST['codepeople_cftedk_banner_nonce'], __FILE__))
17
+ {
18
+ if(
19
+ !empty($_POST['codepeople_cftedk_banner_plugin']) &&
20
+ !empty($codepeople_cftedk_banner_plugins[$_POST['codepeople_cftedk_banner_plugin']])
21
+ )
22
+ {
23
+ set_transient( 'codepeople_cftedk_banner_'.$_POST['codepeople_cftedk_banner_plugin'], -1, 0);
24
+ if(
25
+ !empty($_POST['codepeople_cftedk_banner_action']) &&
26
+ $_POST['codepeople_cftedk_banner_action'] == 'set-review' &&
27
+ !empty($codepeople_cftedk_banner_plugins[$_POST['codepeople_cftedk_banner_plugin']]['plugin_url'])
28
+ )
29
+ {
30
+ print '<script>document.location.href="'.esc_js($codepeople_cftedk_banner_plugins[$_POST['codepeople_cftedk_banner_plugin']]['plugin_url']).'";</script>';
31
+ }
32
+ }
33
+ }
34
+
35
+ $minimum_days = 86400*1; // 1 days after review
36
+ $now = time();
37
+
38
+ foreach($codepeople_cftedk_banner_plugins as $plugin_slug => $plugin_data )
39
+ {
40
+
41
+ $valuePromo = get_transient( 'codepeople_promote_banner_'.$plugin_slug );
42
+ if( $valuePromo === false || $valuePromo > 0) // display only after review answer
43
+ {
44
+ return;
45
+ }
46
+
47
+ $value = get_transient( 'codepeople_cftedk_banner_'.$plugin_slug );
48
+ if( $value === false )
49
+ {
50
+ $value = $now;
51
+ set_transient( 'codepeople_cftedk_banner_'.$plugin_slug, $value, 0 );
52
+ }
53
+
54
+ if($minimum_days <= abs($now-$value) && 0<$value)
55
+ {
56
+ ?>
57
+ <style>
58
+ #codepeople-cftedkreview-banner{width:calc( 100% - 20px );width:-webkit-calc( 100% - 20px );width:-moz-calc( 100% - 20px );width:-o-calc( 100% - 20px );margin-top:5px;border:10px solid #008a15;background:#FFF;display:table;}
59
+ #codepeople-cftedkreview-banner form{float:left; padding:0 5px;}
60
+ #codepeople-cftedkreview-banner .codepeople-cftedkreview-banner-picture{width:120px;padding:10px 10px 10px 10px;float:left;text-align:center;}
61
+ #codepeople-cftedkreview-banner .codepeople-cftedkreview-banner-content{float: left;padding:10px;width: calc( 100% - 160px );width: -webkit-calc( 100% - 160px );width: -moz-calc( 100% - 160px );width: -o-calc( 100% - 160px );}
62
+ #codepeople-cftedkreview-banner .codepeople-cftedkreview-banner-buttons{padding-top:20px;}
63
+ #codepeople-cftedkreview-banner .no-thank-button,
64
+ #codepeople-cftedkreview-banner .main-button{height: 28px;border-width:1px;border-style:solid;border-radius:5px;text-decoration: none;}
65
+ #codepeople-cftedkreview-banner .main-button{background: #00ba15;border-color: #009a15 #008a15 #008a15;-webkit-box-shadow: 0 1px 0 #006799;box-shadow: 0 1px 0 #006799;color: #fff;text-decoration: none;text-shadow: 0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799;}
66
+ #codepeople-cftedkreview-banner .no-thank-button {color: #555;border-color: #cccccc;background: #f7f7f7;-webkit-box-shadow: 0 1px 0 #cccccc;box-shadow: 0 1px 0 #cccccc;vertical-align: top;}
67
+ #codepeople-cftedkreview-banner .main-button:hover,#codepeople-cftedkreview-banner .main-button:focus{background: #00be15;border-color: #008a15;color: #fff;}
68
+ #codepeople-cftedkreview-banner .no-thank-button:hover,
69
+ #codepeople-cftedkreview-banner .no-thank-button:focus{background: #fafafa;border-color: #999;color: #23282d;}
70
+ @media screen AND (max-width:760px)
71
+ {
72
+ #codepeople-cftedkreview-banner{position:relative;top:50px;}
73
+ #codepeople-cftedkreview-banner .codepeople-cftedkreview-banner-picture{display:none;}
74
+ #codepeople-cftedkreview-banner .codepeople-cftedkreview-banner-content{width:calc( 100% - 20px );width:-webkit-calc( 100% - 20px );width:-moz-calc( 100% - 20px );width:-o-calc( 100% - 20px );}
75
+ }
76
+ </style>
77
+ <div id="codepeople-cftedkreview-banner">
78
+ <div class="codepeople-cftedkreview-banner-picture">
79
+ <img alt="" src="<?php echo plugins_url('', __FILE__); ?>/images/form-builder-th.png" style="width:120px;border:1px dotted black;padding:1px;">
80
+ </div>
81
+ <div class="codepeople-cftedkreview-banner-content">
82
+ <div class="codepeople-cftedkreview-banner-text">
83
+ <p><strong>Great! You have been using the Contact Form to Email plugin for a while. Take a moment to
84
+ improve your website by getting the <span style="color:#1582AB;font-weight:bold;"><a href="https://form2email.dwbooster.com/download">full featured version</a></span> of the plugin for as little as $5.99.</strong>
85
+ </p><p>This way you can build more professional contact / payment and booking forms improving your users experience and giving a better overall impression about your website. You will get a rich featured Visual Form Builder, uploads processing, the ability to create payment/booking forms, premium support service and a <a href="https://form2email.dwbooster.com/download">lot more of features</a>.</p>
86
+ <p>Thank you for using the plugin!</p>
87
+ </div>
88
+ <div class="codepeople-cftedkreview-banner-buttons">
89
+ <form method="post" target="_blank">
90
+ <button class="main-button" onclick="jQuery(this).closest('[id=\'codepeople-cftedkreview-banner\']').hide();">Yes, improve the website with better contact forms!</button>
91
+ <input type="hidden" name="codepeople_cftedk_banner_plugin" value="<?php echo esc_attr($plugin_slug); ?>" />
92
+ <input type="hidden" name="codepeople_cftedk_banner_action" value="set-review" />
93
+ <input type="hidden" name="codepeople_cftedk_banner_nonce" value="<?php echo wp_create_nonce(__FILE__); ?>" />
94
+ </form>
95
+ <form method="post">
96
+ <button class="no-thank-button">No Thanks, don't want to see this message again.</button>
97
+ <input type="hidden" name="codepeople_cftedk_banner_plugin" value="<?php echo esc_attr($plugin_slug); ?>" />
98
+ <input type="hidden" name="codepeople_cftedk_banner_action" value="not-thanks" />
99
+ <input type="hidden" name="codepeople_cftedk_banner_nonce" value="<?php echo wp_create_nonce(__FILE__); ?>" />
100
+ </form>
101
+ <div style="clear:both;display:block;"></div>
102
+ </div>
103
+ <div style="clear:both;"></div>
104
+ </div>
105
+ <div style="clear:both;"></div>
106
+ </div>
107
+ <?php
108
+ return;
109
+ }
110
+ }
111
+ }
112
+ add_action( 'admin_bar_menu', 'codepeople_add_promotecftedk_banner' );
113
+ } // End codepeople_promote_banner block
114
+ ?>
cp-admin-int.inc.php CHANGED
@@ -276,13 +276,13 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
276
 
277
  <div style="border:1px dotted black;background-color:#ffffaa;padding-left:15px;padding-right:15px;padding-top:5px;width:740px;font-size:12px;color:#000000;">
278
  <p>The form builder supports 3 fields in this version: "Single Line Text", "Email" and "Text-area".</p>
279
- <p>The full set of fields is available in the <a href="https://form2email.dwbooster.com/download">commercial versions</a>. The <a href="https://form2email.dwbooster.com/download">commercial versions</a> also supports:
280
  <ul>
281
- <li> - Dependand fields: Hide/show fields based in previous selections.</li>
282
  <li> - File uploads</li>
283
  <li> - Multi-page forms</li>
284
  <li> - Publish it as a widget in the sidebar</li>
285
- <li> - Convert the form in a payment / booking form (Platinum version only) with integration with PayPal Standard, PayPal Pro, Stripe, Authorize.net, Skrill, Mollie / iDeal, TargetPay / iDeal, SagePay, RedSys TPV and Sage Payments.</li>
286
  <li> - ...and more fields and validations</li>
287
  </ul>
288
  <p>There are also other plugins with similar features (not exactly the same features) but adding <a href="https://wordpress.org/extend/plugins/cp-contact-form-with-paypal/">the connection of the form to PayPal</a>, with <a href="https://wordpress.org/plugins/calculated-fields-form/">calculated fields</a> or with a <a href="https://wordpress.org/plugins/appointment-hour-booking/">Appointment/Service Booking Calendar</a>.</p>
276
 
277
  <div style="border:1px dotted black;background-color:#ffffaa;padding-left:15px;padding-right:15px;padding-top:5px;width:740px;font-size:12px;color:#000000;">
278
  <p>The form builder supports 3 fields in this version: "Single Line Text", "Email" and "Text-area".</p>
279
+ <p>The full set of fields is available in the <a href="https://form2email.dwbooster.com/download">commercial version</a>. It also supports:
280
  <ul>
281
+ <li> - Conditional Logic: Hide/show fields based in previous selections.</li>
282
  <li> - File uploads</li>
283
  <li> - Multi-page forms</li>
284
  <li> - Publish it as a widget in the sidebar</li>
285
+ <li> - Convert the form in a payment / booking form with integration with PayPal Standard, PayPal Pro, Stripe, Authorize.net, Skrill, Mollie / iDeal, TargetPay / iDeal, SagePay, RedSys TPV and Sage Payments.</li>
286
  <li> - ...and more fields and validations</li>
287
  </ul>
288
  <p>There are also other plugins with similar features (not exactly the same features) but adding <a href="https://wordpress.org/extend/plugins/cp-contact-form-with-paypal/">the connection of the form to PayPal</a>, with <a href="https://wordpress.org/plugins/calculated-fields-form/">calculated fields</a> or with a <a href="https://wordpress.org/plugins/appointment-hour-booking/">Appointment/Service Booking Calendar</a>.</p>
cp-feedback.php ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_action('admin_enqueue_scripts', 'cfte_feedback_insert_adminScripts', 1);
3
+ add_action( 'wp_ajax_cpcfte_feedback', 'cpcfte_feedback' );
4
+
5
+ function cfte_feedback_insert_adminScripts($hook) {
6
+ if( 'plugins.php' == $hook )
7
+ {
8
+ wp_enqueue_style('wp-jquery-ui-dialog');
9
+ wp_enqueue_script('jquery');
10
+ wp_enqueue_script('jquery-ui-dialog');
11
+ add_action( 'admin_footer', 'cpcfte_feedback_javascript' );
12
+ }
13
+ }
14
+
15
+
16
+
17
+ // This function is used only if explicitly accepted (opt-in) by the user
18
+ function cpcfte_feedback() {
19
+ $plugin_data = get_plugin_data( dirname(__FILE__).'/form-to-email.php' );
20
+ $plugin_version = $plugin_data['Version'];
21
+ $data = array(
22
+ 'answer' => urlencode(@$_POST["answer"]),
23
+ 'otherplugin' => urlencode(@$_POST["opinfo"]),
24
+ 'otherinfo' => urlencode(@$_POST["oinfo"]),
25
+ 'plugin' => urlencode($plugin_data['Name']),
26
+ 'pluginv' => urlencode($plugin_version),
27
+ 'wordpress' => urlencode(get_bloginfo( 'version' )),
28
+ 'phpversion' => urlencode(phpversion ())
29
+ );
30
+ if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
31
+ {
32
+ $current_user = wp_get_current_user();
33
+ $data['email'] = urlencode($current_user->user_email);
34
+ $data['website'] = urlencode($_SERVER['HTTP_HOST']);
35
+ $data['url'] = urlencode(get_site_url());
36
+ }
37
+
38
+ //extract data from the post
39
+ //set POST variables
40
+ $url = 'https://wordpress.dwbooster.com/licensesystem/debug-data.php';
41
+ $fields = $data;
42
+
43
+ //url-ify the data for the POST
44
+ foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
45
+ rtrim($fields_string, '&');
46
+
47
+ //open connection
48
+ $ch = curl_init();
49
+
50
+ //set the url, number of POST vars, POST data
51
+ curl_setopt($ch,CURLOPT_URL, $url);
52
+ curl_setopt($ch,CURLOPT_POST, count($fields));
53
+ curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
54
+
55
+ //execute post
56
+ $result = curl_exec($ch);
57
+
58
+ //close connection
59
+ curl_close($ch);
60
+
61
+ wp_die(); // this is required to terminate immediately and return a proper response
62
+ }
63
+
64
+
65
+ function cpcfte_feedback_javascript() { ?>
66
+ <script type="text/javascript" >
67
+
68
+ window.onload = function(){
69
+ document.querySelector('[data-slug="contact-form-to-email"] .deactivate a').addEventListener('click', function(event){
70
+ event.preventDefault()
71
+ var urlRedirect = document.querySelector('[data-slug="contact-form-to-email"] .deactivate a').getAttribute('href');
72
+ $ = jQuery.noConflict()
73
+
74
+ $('<div title="QUICK FEEDBACK"><div style="padding:10px;">'+
75
+ '<style type="text/css">.abcreasonblock { margin-top:8px; }</style>'+
76
+ '<h3><strong>If you have a moment, please let us know why you are deactivating:</strong></h3>'+
77
+ '<form id="cpfeedbackform">'+
78
+
79
+ '<div class="abcreasonblock"><input type="radio" name="abcm_reason" onclick="cpabc_update_reason(this);" value="no-work"> The plugin didn\'t work<br />'+
80
+ '<div id="abcm_nowork" style="margin-left:25px;display:none;padding:10px;border:1px dotted gray;color:#660000"><strong>We can help!</strong> We offer <strong>free support</strong> for this plugin. Feel free to open a support ticket at <a href="https://form2email.dwbooster.com/contact-us?priority-support=yes"><strong>https://form2email.dwbooster.com/contact-us</strong></a> and we will be happy to help.</div></div>'+
81
+
82
+ '<div class="abcreasonblock"><input type="radio" name="abcm_reason" onclick="cpabc_update_reason(this);" value="-"> I don\'t like to share my information with you<br /></div>'+
83
+
84
+ '<div class="abcreasonblock"><input type="radio" name="abcm_reason" onclick="cpabc_update_reason(this);" value="temporary-deactivation"> It\'s a temporary deactivation. I\'m just debugging an issue.<br /></div>'+
85
+
86
+ '<div class="abcreasonblock"><input type="radio" name="abcm_reason" onclick="cpabc_update_reason(this);" value="better-plugin"> I found a better plugin<br />'+
87
+ '<div id="abcm_otherplugin" style="margin-left:25px;display:none;"><input type="text" name="abcm_otherpinfo" placeholder="What\'s the plugin name?" style="width:100%"></div></div>'+
88
+
89
+ '<div class="abcreasonblock"><input type="radio" name="abcm_reason" onclick="cpabc_update_reason(this);" value="other"> Other<br />'+
90
+ '<div id="abcm_other" style="margin-left:25px;display:none;font-weight:bold;">Kindly tell us the reason so we can improve.<br /><input type="text" name="abcm_otherinfo" style="width:100%"></div></div>'+
91
+
92
+ '<div id="abcnofeedback" style="display:none;margin-top:30px;text-align:right"><input type="checkbox" name="cpabcanonymous" value="yes"> Anonymous feedback</div>'+
93
+
94
+ '</form>'+
95
+ '</div></div>'
96
+ ).dialog({
97
+ width:'600',
98
+ dialogClass: 'wp-dialog',
99
+ modal: true,
100
+ close: function(event, ui)
101
+ {
102
+ $(this).dialog("close");
103
+ $(this).remove();
104
+ },
105
+ closeOnEscape: true,
106
+ buttons: [
107
+ {
108
+ id: 'abcdeactivatebtn',
109
+ text: "Skip & Deactivate",
110
+ click: function() {
111
+ var answer = $("input[name='abcm_reason']:checked").val();
112
+ if (answer == undefined || answer == '' || answer == '-')
113
+ window.location.href = urlRedirect;
114
+ else
115
+ {
116
+ var opinfo = $("input[name='abcm_otherpinfo']").val();
117
+ var oinfo = $("input[name='abcm_otherinfo']").val();
118
+ var isAnonymous = $("input[name='cpabcanonymous']:checked").length > 0;
119
+ var data = {
120
+ 'action': 'cpcfte_feedback',
121
+ 'answer': $("input[name='abcm_reason']:checked").val(),
122
+ 'opinfo': $("input[name='abcm_otherpinfo']").val(),
123
+ 'oinfo': $("input[name='abcm_otherinfo']").val(),
124
+ 'onymous': $("input[name='cpabcanonymous']:checked").length > 0
125
+ };
126
+ $.post(ajaxurl, data, function(response) {
127
+ window.location.href = urlRedirect;
128
+ });
129
+ }
130
+ }
131
+ },
132
+ {
133
+ text: "We can help: Support Service",
134
+ click: function() {
135
+ window.open('https://form2email.dwbooster.com/contact-us?priority-support=yes');
136
+ $(this).dialog("close");
137
+ }
138
+ },
139
+ {
140
+ text: "Cancel",
141
+ "class": 'button button-primary button-close',
142
+ click: function() {
143
+ $(this).dialog("close");
144
+ }
145
+ }
146
+ ]
147
+ });
148
+ })
149
+ }
150
+
151
+ function cpabc_update_reason(field)
152
+ {
153
+ document.getElementById("abcdeactivatebtn").value = 'Submit & Deactivate';
154
+ document.getElementById("abcdeactivatebtn").innerHTML = '<span class="ui-button-text">Submit &amp; Deactivate</span>';
155
+ document.getElementById("abcnofeedback").style.display = '';
156
+ document.getElementById("abcm_other").style.display = 'none';
157
+ document.getElementById("abcm_otherplugin").style.display = 'none';
158
+ document.getElementById("abcm_nowork").style.display = 'none';
159
+ if (field.value == '-')
160
+ {
161
+ document.getElementById("abcdeactivatebtn").value = 'Skip & Deactivate';
162
+ document.getElementById("abcdeactivatebtn").innerHTML = '<span class="ui-button-text">Skip &amp; Deactivate</span>';
163
+ document.getElementById("abcnofeedback").style.display = 'none';
164
+ }
165
+ else if (field.value == 'other')
166
+ document.getElementById("abcm_other").style.display = '';
167
+ else if (field.value == 'better-plugin')
168
+ document.getElementById("abcm_otherplugin").style.display = '';
169
+ else if (field.value == 'no-work')
170
+ document.getElementById("abcm_nowork").style.display = '';
171
+ }
172
+
173
+ </script> <?php
174
+ }
175
+
176
+ ?>
cp-main-class.inc.php CHANGED
@@ -446,7 +446,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
446
  wp_enqueue_style('cfte-admincalendarstyles', plugins_url('css/cupertino/jquery-ui-1.8.20.custom.css', __FILE__) );
447
  wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
448
  if ($this->get_param("report") == '1')
449
- wp_enqueue_script( $this->prefix.'_excanvas', plugins_url('/js/excanvas.min.js', __FILE__));
450
  }
451
  if( 'post.php' != $hook && 'post-new.php' != $hook )
452
  return;
446
  wp_enqueue_style('cfte-admincalendarstyles', plugins_url('css/cupertino/jquery-ui-1.8.20.custom.css', __FILE__) );
447
  wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
448
  if ($this->get_param("report") == '1')
449
+ wp_enqueue_script( $this->prefix.'_excanvas', plugins_url('/js/excanvas.min.js', __FILE__));
450
  }
451
  if( 'post.php' != $hook && 'post-new.php' != $hook )
452
  return;
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.45
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
@@ -70,6 +70,15 @@ function cfte_plugin_init() {
70
  }
71
  add_action('plugins_loaded', 'cfte_plugin_init');
72
 
 
 
 
 
 
 
 
 
 
73
  if ( is_admin() ) {
74
  add_action('admin_enqueue_scripts', array($cp_cfte_plugin,'insert_adminScripts'), 1);
75
  add_filter("plugin_action_links_".plugin_basename(__FILE__), array($cp_cfte_plugin,'plugin_page_links'));
@@ -81,6 +90,11 @@ if ( is_admin() ) {
81
  $codepeople_promote_banner_plugins[ 'contact-form-to-email' ] = array( 'plugin_name' => 'Contact Form Email', 'plugin_url' => 'https://wordpress.org/support/plugin/contact-form-to-email/reviews/#new-post');
82
  require_once 'banner.php';
83
 
 
 
 
84
 
 
 
85
 
86
  ?>
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.46
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
70
  }
71
  add_action('plugins_loaded', 'cfte_plugin_init');
72
 
73
+ //START: activation redirection
74
+ function cfte_activation_redirect( $plugin ) {
75
+ if( $plugin == plugin_basename( __FILE__ ) ) {
76
+ exit( wp_redirect( admin_url( 'admin.php?page=cp_contactformtoemail' ) ) );
77
+ }
78
+ }
79
+ add_action( 'activated_plugin', 'cfte_activation_redirect' );
80
+ //END: activation redirection
81
+
82
  if ( is_admin() ) {
83
  add_action('admin_enqueue_scripts', array($cp_cfte_plugin,'insert_adminScripts'), 1);
84
  add_filter("plugin_action_links_".plugin_basename(__FILE__), array($cp_cfte_plugin,'plugin_page_links'));
90
  $codepeople_promote_banner_plugins[ 'contact-form-to-email' ] = array( 'plugin_name' => 'Contact Form Email', 'plugin_url' => 'https://wordpress.org/support/plugin/contact-form-to-email/reviews/#new-post');
91
  require_once 'banner.php';
92
 
93
+ // improve block
94
+ $codepeople_cftedk_banner_plugins[ 'contact-form-to-email' ] = array( 'plugin_name' => 'Contact Form Email', 'plugin_url' => 'https://form2email.dwbooster.com/download');
95
+ require_once 'bannerdk.php';
96
 
97
+ // optional opt-in deactivation feedback
98
+ require_once 'cp-feedback.php';
99
 
100
  ?>