Contact Form7 Widget For Elementor Page Builder - Version 1.0.9

Version Description

  • Feature added - External thank you page
Download this release

Release Info

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

Code changes from version 1.0.8 to 1.0.9

assets/banner-772x250.jpg DELETED
Binary file
assets/banner-772x250.png ADDED
Binary file
assets/icon-128x128.png CHANGED
Binary file
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
- === Contact Form7 Widget For Elementor Page Builder ===
2
  Contributors: voidthemes,voidcoders,soyket,shawon786
3
- Tags: page-builder, elementor, cf7, contact-form-7, contact-form-7 widget, widget, elementor add on, email, contact,form
4
  Requires at least: 4.4
5
- Tested up to: 5.1
6
- Stable tag: 1.0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- This WordPress Plugin Adds Contact Form 7 widget element to Elementor page builder for easy drag & drop the created contact forms with CF7 (contact form 7). It also lets you define any page as a thank you / success page after the form has been submitted! You also can add basic custom CSS directly from elementor edit screen now !!
11
 
12
  You must have [Elementor Page Builder](https://wordpress.org/plugins/elementor/) installed.
13
  You must have [Contact form 7](https://wordpress.org/plugins/contact-form-7/) installed and forms created.
@@ -66,9 +66,10 @@ Our Contact Form7 Widget For Elementor Page Builder adds a new section in the el
66
 
67
 
68
  == Changelog ==
 
 
69
  = 1.0.6 =
70
  * Css added Number control
71
- * External redirect url available now
72
  * Any post type url from the site for redirect url
73
  = 1.0.5 =
74
  * Css added Hover button
1
+ === Void Contact Form7 Widget For Elementor Page Builder ===
2
  Contributors: voidthemes,voidcoders,soyket,shawon786
3
+ Tags: page-builder, elementor, cf7, contact-form-7, contact-form-7 widget, widget, elementor add on, email, contact, form
4
  Requires at least: 4.4
5
+ Tested up to: 5.2.2
6
+ Stable tag: 1.0.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ This WordPress Plugin Adds Contact Form 7 widget element to Elementor page builder for easy drag & drop the created contact forms with CF7 (contact form 7). It also lets you define any page as a thank you / success page after the form has been submitted! You also can add basic custom CSS directly from elementor edit screen now !! If you are a developer who designs sites for clients you will love this because the css panel is developer fridnly as well as noob friendly.
11
 
12
  You must have [Elementor Page Builder](https://wordpress.org/plugins/elementor/) installed.
13
  You must have [Contact form 7](https://wordpress.org/plugins/contact-form-7/) installed and forms created.
66
 
67
 
68
  == Changelog ==
69
+ = 1.0.9 =
70
+ * Feature added - External thank you page
71
  = 1.0.6 =
72
  * Css added Number control
 
73
  * Any post type url from the site for redirect url
74
  = 1.0.5 =
75
  * Css added Hover button
void-cf7-widget-elementor.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
- * Plugin Name: Contact Form 7 Widget For Elementor Page Builder
4
  * Description: Adds Contact Form 7 widget element to Elementor page builder for easy drag & drop the created contact forms with CF7 (contact form 7).
5
- * Version: 1.0.8
6
  * Author: voidCoders
7
  * Plugin URI: https://demo.voidcoders.com/plugins/contact-form7-widget-for-elementor/
8
  * Author URI: https://voidcoders.com
1
  <?php
2
  /**
3
+ * Plugin Name: Void Contact Form 7 Widget For Elementor Page Builder
4
  * Description: Adds Contact Form 7 widget element to Elementor page builder for easy drag & drop the created contact forms with CF7 (contact form 7).
5
+ * Version: 1.0.9
6
  * Author: voidCoders
7
  * Plugin URI: https://demo.voidcoders.com/plugins/contact-form7-widget-for-elementor/
8
  * Author URI: https://voidcoders.com
widgets/void-section-cf7.php CHANGED
@@ -55,6 +55,7 @@ protected function _register_controls() {
55
  'description' => esc_html__('Contact form 7 - plugin must be installed and there must be some contact forms made with the contact form 7','void'),
56
  'type' => Controls_Manager::SELECT2,
57
  'multiple' => false,
 
58
  'options' => get_contact_form_7_posts(),
59
  ]
60
  );
@@ -243,18 +244,34 @@ protected function _register_controls() {
243
  'label' => esc_html__( 'After Submit Redirect Setting', 'void' ), //section name for controler view
244
  ]
245
  );
 
 
 
 
 
 
 
 
 
 
 
246
 
247
  $this->add_control(
248
  'cf7_redirect_page',
249
  [
250
- 'label' => esc_html__( 'On Success Redirect To', 'void' ),
251
- 'description' => esc_html__('Select a page which you want users to redirect to when the contact fom is submitted and is successful. Leave Blank to Disable','void'),
252
  'type' => Controls_Manager::SELECT2,
253
  'multiple' => false,
 
254
  'options' => void_get_all_pages(),
 
 
 
255
  ]
256
  );
257
 
 
258
  $this->end_controls_section();
259
  }
260
 
@@ -269,11 +286,17 @@ protected function _register_controls() {
269
  echo '</div>';
270
  }
271
 
272
- if(!empty($settings['cf7_redirect_page'])) { ?>
273
  <script>
274
  var theform = document.querySelector('.void-cf7-<?php echo $v_veriable; ?>');
275
  theform.addEventListener( 'wpcf7mailsent', function( event ) {
276
- location = '<?php echo get_permalink( $settings['cf7_redirect_page'] ); ?>';
 
 
 
 
 
 
277
  }, false );
278
  </script>
279
 
55
  'description' => esc_html__('Contact form 7 - plugin must be installed and there must be some contact forms made with the contact form 7','void'),
56
  'type' => Controls_Manager::SELECT2,
57
  'multiple' => false,
58
+ 'label_block' => 1,
59
  'options' => get_contact_form_7_posts(),
60
  ]
61
  );
244
  'label' => esc_html__( 'After Submit Redirect Setting', 'void' ), //section name for controler view
245
  ]
246
  );
247
+
248
+ $this->add_control(
249
+ 'cf7_redirect_external',
250
+ [
251
+ 'label' => __( 'On Success External URL Redirect', 'void' ),
252
+ 'description' => esc_html__('Insert the external URL where you want users to redirect to when the contact form is submitted and is successful. Leave Blank to Disable','void'),
253
+ 'type' => \Elementor\Controls_Manager::TEXT,
254
+ 'placeholder' => __( 'https://voidcoders.com', 'void' ),
255
+ 'label_block' => 1,
256
+ ]
257
+ );
258
 
259
  $this->add_control(
260
  'cf7_redirect_page',
261
  [
262
+ 'label' => esc_html__( 'On Success Internal Redirect', 'void' ),
263
+ 'description' => esc_html__('Select a page within the site which you want users to redirect to when the contact form is submitted and is successful. Leave Blank to Disable','void'),
264
  'type' => Controls_Manager::SELECT2,
265
  'multiple' => false,
266
+ 'label_block' => 1,
267
  'options' => void_get_all_pages(),
268
+ 'condition' => [
269
+ 'cf7_redirect_external' => '',
270
+ ],
271
  ]
272
  );
273
 
274
+
275
  $this->end_controls_section();
276
  }
277
 
286
  echo '</div>';
287
  }
288
 
289
+ if(!empty($settings['cf7_redirect_page']) || !empty($settings['cf7_redirect_external']) ) { ?>
290
  <script>
291
  var theform = document.querySelector('.void-cf7-<?php echo $v_veriable; ?>');
292
  theform.addEventListener( 'wpcf7mailsent', function( event ) {
293
+ location = '<?php
294
+ if( !empty($settings['cf7_redirect_external']) ){
295
+ echo $settings['cf7_redirect_external'];
296
+ }else{
297
+ echo get_permalink( $settings['cf7_redirect_page'] );
298
+ }
299
+ ?>';
300
  }, false );
301
  </script>
302