Contact Form7 Widget For Elementor Page Builder - Version 2.1

Version Description

  • Tweak: Updated to new wp version support
  • Tweak: Change of notification.
Download this release

Release Info

Developer voidcoders
Plugin Icon 128x128 Contact Form7 Widget For Elementor Page Builder
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

assets/elemailer-logo.png ADDED
Binary file
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: voidthemes,voidcoders,soyket,shawon786
3
  Tags: contact form, elementor, cf7, contact-form-7, contact-form-7 widget, page-builder, widget, elementor add on, email, contact, form
4
  Requires at least: 4.4
5
- Tested up to: 5.8.2
6
- Stable tag: 2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -45,10 +45,6 @@ Edit/Add contact from inside Elementor
45
  Another Preview
46
  [youtube https://youtu.be/MlzrZ0zXM24]
47
 
48
- Older Version Preview
49
- [youtube https://youtu.be/sAHspWvhjNg]
50
-
51
-
52
 
53
  What Does This plugin give you?
54
 
@@ -85,6 +81,9 @@ Our Contact Form7 Widget For Elementor Page Builder adds a new widget category i
85
  Update the plugin either via wp dashboard or via FTP. After update make sure you clear your browser cache.
86
 
87
  == Changelog ==
 
 
 
88
  = 2.0 =
89
  * New: Added many style option in Style tab
90
  = 1.1.9 =
2
  Contributors: voidthemes,voidcoders,soyket,shawon786
3
  Tags: contact form, elementor, cf7, contact-form-7, contact-form-7 widget, page-builder, widget, elementor add on, email, contact, form
4
  Requires at least: 4.4
5
+ Tested up to: 5.9.1
6
+ Stable tag: 2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
45
  Another Preview
46
  [youtube https://youtu.be/MlzrZ0zXM24]
47
 
 
 
 
 
48
 
49
  What Does This plugin give you?
50
 
81
  Update the plugin either via wp dashboard or via FTP. After update make sure you clear your browser cache.
82
 
83
  == Changelog ==
84
+ = 2.1 =
85
+ * Tweak: Updated to new wp version support
86
+ * Tweak: Change of notification.
87
  = 2.0 =
88
  * New: Added many style option in Style tab
89
  = 1.1.9 =
void-cf7-widget-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Void Contact Form 7 Widget For Elementor Page Builder
5
  * Description: Adds Contact Form 7 widget element to Elementor page builder for easy drag & drop the created contact forms with Contact Form 7
6
- * Version: 2.0
7
  * Author: voidCoders
8
  * Plugin URI: https://voidcoders.com/product/contact-form7-widget-for-elementor-free/
9
  * Author URI: https://voidcoders.com
@@ -16,7 +16,7 @@ use Account\AccountDataFactory;
16
 
17
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
18
 
19
- define('CF7_WIDGET_E_VERSION', '2.0');
20
  define('CF7_WIDGET_E_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
21
  define('CF7_WIDGET_E_PLUGIN_DIR', trailingslashit(plugin_dir_path(__FILE__)));
22
 
@@ -145,9 +145,9 @@ function void_cf7_check_installation_time()
145
  }
146
  }
147
 
148
- if ( 'yes' !== get_option( 'void_cf7_email_with_elementor_never' ) ) {
149
- if ( strtotime( '-3 days' ) >= get_option( 'void_cf7_email_with_elementor_time', strtotime( '-3 days' ) ) ) {
150
- add_action( 'admin_notices', 'void_cf7_email_with_elementor_admin_notice' );
151
  }
152
  }
153
  }
@@ -175,22 +175,86 @@ function void_cf7_display_admin_notice()
175
  /**
176
  * Display Admin Notice, for elemailer banner
177
  */
178
- function void_cf7_email_with_elementor_admin_notice()
179
  {
180
- $temporary_hide = esc_url( get_admin_url() . '?void_cf7_email_with_elementor=1' );
181
- $dont_disturb = esc_url( get_admin_url() . '?void_cf7_email_with_elementor_never=1' );
182
- $elemailer_link = esc_url( 'https://elemailer.com/?utm_source=void-cf7-dashboard&utm_medium=wpdashboard&utm_campaign=general&utm_id=cf7-2021' );
183
- $banner_url = CF7_WIDGET_E_PLUGIN_URL . '/assets/banner-with-elemailer.png';
 
 
 
 
 
 
 
 
 
 
184
  ?>
185
- <div class="notice" style="border: none; padding: 0px; position: relative;">
186
- <a style="display:flex;" href="<?php echo $elemailer_link; ?>" target="_blank">
187
- <img src="<?php echo esc_attr( $banner_url ); ?>" alt="elemailer-promotion-2021" style="width: 100%;">
188
- </a>
 
 
 
 
 
 
 
 
 
 
189
  <a href="<?php echo $temporary_hide; ?>">
190
  <button type="button" class="notice-dismiss"><span class="screen-reader-text"> <?php esc_html_e( 'Dismiss this notice.', 'void' ); ?></span></button>
191
  </a>
192
- <a href="<?php echo $dont_disturb; ?>"><span class="void-cf7-elemailer-promotion-never-show" style="position: absolute; right: 10px; bottom: 10px; color: #696969a8;"><?php esc_html_e( 'Never show', 'void' ) ?></span></a>
193
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  <?php
195
  }
196
 
@@ -204,22 +268,25 @@ function void_cf7_spare_me()
204
  }
205
  }
206
 
207
- if ( isset( $_GET['void_cf7_email_with_elementor'] ) && ! empty( $_GET['void_cf7_email_with_elementor'] ) ) {
208
- if ( 1 === absint( $_GET['void_cf7_email_with_elementor'] ) ) {
209
- update_option( 'void_cf7_email_with_elementor', 'yes' );
210
- update_option( 'void_cf7_email_with_elementor_time', strtotime("now") );
211
  }
212
  }
213
 
214
- if ( isset( $_GET['void_cf7_email_with_elementor_never'] ) && ! empty( $_GET['void_cf7_email_with_elementor_never'] ) ) {
215
- if ( 1 === absint( $_GET['void_cf7_email_with_elementor_never'] ) ) {
216
- update_option( 'void_cf7_email_with_elementor_never', 'yes' );
217
  }
218
  }
219
 
220
  delete_option( 'void_cf7_elep_2021_temporary' );
221
  delete_option( 'void_cf7_elep_2021_temporary_time' );
222
  delete_option( 'void_cf7_elep_2021_never' );
 
 
 
223
  }
224
  add_action('admin_init', 'void_cf7_spare_me', 5);
225
 
3
  /**
4
  * Plugin Name: Void Contact Form 7 Widget For Elementor Page Builder
5
  * Description: Adds Contact Form 7 widget element to Elementor page builder for easy drag & drop the created contact forms with Contact Form 7
6
+ * Version: 2.1
7
  * Author: voidCoders
8
  * Plugin URI: https://voidcoders.com/product/contact-form7-widget-for-elementor-free/
9
  * Author URI: https://voidcoders.com
16
 
17
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
18
 
19
+ define('CF7_WIDGET_E_VERSION', '2.1');
20
  define('CF7_WIDGET_E_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
21
  define('CF7_WIDGET_E_PLUGIN_DIR', trailingslashit(plugin_dir_path(__FILE__)));
22
 
145
  }
146
  }
147
 
148
+ if ( 'yes' !== get_option( 'void_cf7_with_elementor_ran_never' ) ) {
149
+ if ( strtotime( '-15 days' ) >= get_option( 'void_cf7_with_elementor_ran_time', strtotime( '-15 days' ) ) ) {
150
+ add_action( 'admin_notices', 'void_cf7_with_elementor_recomended_admin_notice' );
151
  }
152
  }
153
  }
175
  /**
176
  * Display Admin Notice, for elemailer banner
177
  */
178
+ function void_cf7_with_elementor_recomended_admin_notice()
179
  {
180
+ $temporary_hide = esc_url( get_admin_url() . '?void_cf7_with_elementor_ran=1' );
181
+ $dont_disturb = esc_url( get_admin_url() . '?void_cf7_with_elementor_ran_never=1' );
182
+
183
+ if ( is_plugin_active( 'elemailer-lite/elemailer-lite.php' ) || is_plugin_active( 'elemailer/elemailer.php' ) ) {
184
+ return true;
185
+ }
186
+
187
+ $install_url = wp_nonce_url( add_query_arg( array( 'action' => 'activate', 'plugin' => urlencode( 'elemailer-lite/elemailer-lite.php' ) ), admin_url( 'plugins.php' ) ), 'activate-plugin_elemailer-lite/elemailer-lite.php' );
188
+ $text = esc_html__( 'Active Elemailer Lite', 'void' );
189
+
190
+ if ( is_wp_error( validate_plugin( 'elemailer-lite/elemailer-lite.php' ) ) ) {
191
+ $install_url = wp_nonce_url( add_query_arg( array( 'action' => 'install-plugin', 'plugin' => 'elemailer-lite' ), admin_url( 'update.php' ) ), 'install-plugin_elemailer-lite' );
192
+ $text = esc_html__( 'Install Elemailer Lite', 'void' );
193
+ }
194
  ?>
195
+ <div class="notice error void-cf7-license-notice">
196
+ <div class="void-cf7-license-notice__logo">
197
+ <img src="<?php echo CF7_WIDGET_E_PLUGIN_URL; ?>/assets/elemailer-logo.png" alt="Elemailer Logo">
198
+ </div>
199
+ <div class="void-cf7-license-notice__message">
200
+ <h3><?php esc_html_e( 'Design your contact form 7 emails with Elementor', 'void' ); ?></h3>
201
+
202
+ <a class="button" target="_blank" href="<?php echo esc_url( 'https://wordpress.org/plugins/elemailer-lite/' ); ?>"><?php esc_html_e( 'View Details', 'void' ); ?></a>
203
+ </div>
204
+
205
+ <div class="void-cf7-license-notice__button">
206
+ <a class="button" href="<?php echo $install_url; ?>"><?php echo esc_html( $text ); ?></a>
207
+ </div>
208
+
209
  <a href="<?php echo $temporary_hide; ?>">
210
  <button type="button" class="notice-dismiss"><span class="screen-reader-text"> <?php esc_html_e( 'Dismiss this notice.', 'void' ); ?></span></button>
211
  </a>
212
+ <a href="<?php echo $dont_disturb; ?>"><span class="void-cf7-elemailer-promotion-never-show" style="position: absolute; right: 37px; bottom: 10px; color: #696969a8;"><?php esc_html_e( 'Never show again', 'void' ) ?></span></a>
213
  </div>
214
+
215
+ <style>
216
+ .notice.void-cf7-license-notice {
217
+ display: flex;
218
+ align-items: center;
219
+ padding: 15px 10px;
220
+ border: 1px solid #e4e4e4;
221
+ border-left: 4px solid #fb6e76;
222
+ background-repeat: no-repeat;
223
+ background-position: bottom right;
224
+ position: relative;
225
+ }
226
+
227
+ .void-cf7-license-notice__logo {
228
+ margin-right: 50px;
229
+ }
230
+
231
+ .void-cf7-license-notice__logo img {
232
+ width: 200px;
233
+ height: auto;
234
+ }
235
+
236
+ .void-cf7-license-notice__message {
237
+ flex-basis: 100%;
238
+ }
239
+
240
+ .void-cf7-license-notice__button {
241
+ padding: 0 25px;
242
+ }
243
+
244
+ .void-cf7-license-notice__button .button {
245
+ background: #071C74;
246
+ color: #fff;
247
+ border-color: #071C74;
248
+ font-size: 15px;
249
+ padding: 3px 15px;
250
+ }
251
+
252
+ .void-cf7-license-notice__button .button:hover {
253
+ background: #1538cb;
254
+ color: #fff;
255
+ border-color: #1538cb;
256
+ }
257
+ </style>
258
  <?php
259
  }
260
 
268
  }
269
  }
270
 
271
+ if ( isset( $_GET['void_cf7_with_elementor_ran'] ) && ! empty( $_GET['void_cf7_with_elementor_ran'] ) ) {
272
+ if ( 1 === absint( $_GET['void_cf7_with_elementor_ran'] ) ) {
273
+ update_option( 'void_cf7_with_elementor_ran', 'yes' );
274
+ update_option( 'void_cf7_with_elementor_ran_time', strtotime("now") );
275
  }
276
  }
277
 
278
+ if ( isset( $_GET['void_cf7_with_elementor_ran_never'] ) && ! empty( $_GET['void_cf7_with_elementor_ran_never'] ) ) {
279
+ if ( 1 === absint( $_GET['void_cf7_with_elementor_ran_never'] ) ) {
280
+ update_option( 'void_cf7_with_elementor_ran_never', 'yes' );
281
  }
282
  }
283
 
284
  delete_option( 'void_cf7_elep_2021_temporary' );
285
  delete_option( 'void_cf7_elep_2021_temporary_time' );
286
  delete_option( 'void_cf7_elep_2021_never' );
287
+ delete_option( 'void_cf7_email_with_elementor_never' );
288
+ delete_option( 'void_cf7_email_with_elementor' );
289
+ delete_option( 'void_cf7_email_with_elementor_time' );
290
  }
291
  add_action('admin_init', 'void_cf7_spare_me', 5);
292