Contact Form7 Widget For Elementor Page Builder - Version 1.0.5

Version Description

  • Css added Hover button
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

plugin.php CHANGED
@@ -1,9 +1,5 @@
1
  <?php
2
  namespace voidelement; //main namespace
3
-
4
- global $void_cf7;
5
- $void_cf7= array_map('basename', glob(dirname( __FILE__ ) . '/widgets/*.php'));
6
-
7
  use voidelement\Widgets\void_cf7; //path define same as class name of the widget
8
 
9
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -22,7 +18,6 @@ add_action( 'elementor/init', function() {
22
  } );
23
 
24
 
25
-
26
  /**
27
  * Main Plugin Class
28
  *
@@ -76,7 +71,7 @@ class Plugin {
76
  * @access private
77
  */
78
  private function includes() {
79
- global $void_cf7; //include the widgets here
80
  require __DIR__ . '/helper/helper.php';
81
  foreach($void_cf7 as $key => $value){
82
  require __DIR__ . '/widgets/'.$value;
1
  <?php
2
  namespace voidelement; //main namespace
 
 
 
 
3
  use voidelement\Widgets\void_cf7; //path define same as class name of the widget
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
18
  } );
19
 
20
 
 
21
  /**
22
  * Main Plugin Class
23
  *
71
  * @access private
72
  */
73
  private function includes() {
74
+ $void_cf7= array_map('basename', glob(dirname( __FILE__ ) . '/widgets/*.php'));
75
  require __DIR__ . '/helper/helper.php';
76
  foreach($void_cf7 as $key => $value){
77
  require __DIR__ . '/widgets/'.$value;
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Contact Form7 Widget For Elementor Page Builder ===
2
  Contributors: voidthemes,voidcoders
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: 4.8.3
6
- Stable tag: 1.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -21,9 +22,9 @@ This plugin adds new element / widget to Elementor Page Builder which helps you
21
  Yet this is just a simple plugin for simple users :)
22
  * What's more interesting is that you can have multiple form of the same single contact form 7 form with different rules and design with this on same page !
23
 
24
- For more details :[VOID CF7 Elementor Widget](http://voidthemes.com/contact-form-7-widget-for-elementor/).
25
- For our other elementor & WP works visit : [VOID Themes](http://voidthemes.com).
26
- For updates follow us on : [Facebook](https://www.facebook.com/voidthemes).
27
 
28
 
29
  Latest Version Preview
@@ -65,6 +66,8 @@ Our Contact Form7 Widget For Elementor Page Builder adds a new section in the el
65
 
66
 
67
  == Changelog ==
 
 
68
  = 1.0.4 =
69
  * Css added for select box
70
  = 1.0.3 =
1
  === Contact Form7 Widget For Elementor Page Builder ===
2
  Contributors: voidthemes,voidcoders
3
  Tags: page-builder, elementor, cf7, contact-form-7, contact-form-7 widget, widget, elementor add on, email, contact,form
4
+ Donate link: https://www.paypal.me/voidcoders
5
  Requires at least: 4.4
6
+ Tested up to: 4.9.1
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
22
  Yet this is just a simple plugin for simple users :)
23
  * What's more interesting is that you can have multiple form of the same single contact form 7 form with different rules and design with this on same page !
24
 
25
+ For more details :[VOID CF7 Elementor Widget](https://voidcoders.com/product/contact-form7-widget-for-elementor-free/).
26
+ For our other elementor & WP works visit : [VOID CODERS](http://voidcoders.com).
27
+ For updates follow us on : [Facebook](https://www.facebook.com/voidcoders).
28
 
29
 
30
  Latest Version Preview
66
 
67
 
68
  == Changelog ==
69
+ = 1.0.5 =
70
+ * Css added Hover button
71
  = 1.0.4 =
72
  * Css added for select box
73
  = 1.0.3 =
void-cf7-widget-elementor.php CHANGED
@@ -2,10 +2,10 @@
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.4
6
  * Author: VOID THEMES
7
  * Plugin URI: http://voidthemes.com/contact-form-7-widget-for-elementor/
8
- * Author URI: http://voidthemes.com
9
  * Text Domain: void
10
  */
11
 
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.5
6
  * Author: VOID THEMES
7
  * Plugin URI: http://voidthemes.com/contact-form-7-widget-for-elementor/
8
+ * Author URI: http://voidcoders.com
9
  * Text Domain: void
10
  */
11
 
widgets/void-section-cf7.php CHANGED
@@ -71,7 +71,8 @@ protected function _register_controls() {
71
  $this->add_control(
72
  'cf7_direct_css',
73
  [
74
- 'label' => __( 'Global CSS', 'elementor' ),
 
75
  'type' => Controls_Manager::TEXTAREA,
76
  'placeholder' => 'color:#000;',
77
  'selectors' => [
@@ -83,7 +84,8 @@ protected function _register_controls() {
83
  $this->add_control(
84
  'alllabel',
85
  [
86
- 'label' => __( 'All Label CSS', 'elementor' ),
 
87
  'type' => Controls_Manager::TEXTAREA,
88
  'placeholder' => 'color:#fff;',
89
  'selectors' => [
@@ -94,12 +96,15 @@ protected function _register_controls() {
94
  $this->add_control(
95
  'allinput',
96
  [
97
- 'label' => __( 'All Input CSS', 'elementor' ),
 
98
  'type' => Controls_Manager::TEXTAREA,
99
  'placeholder' => 'width:100%;
100
  background:red;',
101
  'selectors' => [
 
102
  '{{WRAPPER}} input' => '{{VALUE}}',
 
103
  ],
104
  ]
105
  );
@@ -107,11 +112,13 @@ protected function _register_controls() {
107
  $this->add_control(
108
  'textinput',
109
  [
110
- 'label' => __( 'Input Type Text CSS', 'elementor' ),
 
111
  'type' => Controls_Manager::TEXTAREA,
112
  'placeholder' => 'width:100%;
113
  background:red;',
114
  'selectors' => [
 
115
  '{{WRAPPER}} .wpcf7-text' => '{{VALUE}}',
116
  ],
117
  ]
@@ -119,11 +126,13 @@ protected function _register_controls() {
119
  $this->add_control(
120
  'textarea',
121
  [
122
- 'label' => __( 'Textarea CSS', 'elementor' ),
 
123
  'type' => Controls_Manager::TEXTAREA,
124
  'placeholder' => 'height:100px;
125
  width:100%;',
126
  'selectors' => [
 
127
  '{{WRAPPER}} textarea' => '{{VALUE}}',
128
  ],
129
  ]
@@ -132,7 +141,7 @@ protected function _register_controls() {
132
  $this->add_control(
133
  'checkbox',
134
  [
135
- 'label' => __( 'Checkbox/ Radio CSS', 'elementor' ),
136
  'type' => Controls_Manager::TEXTAREA,
137
  'placeholder' => 'display: block;',
138
  'selectors' => [
@@ -144,7 +153,7 @@ protected function _register_controls() {
144
  $this->add_control(
145
  'selectcss',
146
  [
147
- 'label' => __( 'Dropdown/ Select Box css', 'elementor' ),
148
  'type' => Controls_Manager::TEXTAREA,
149
  'placeholder' => 'width: 100;',
150
  'selectors' => [
@@ -155,7 +164,7 @@ protected function _register_controls() {
155
  $this->add_control(
156
  'selectoptionscss',
157
  [
158
- 'label' => __( 'Select Options Css', 'elementor' ),
159
  'type' => Controls_Manager::TEXTAREA,
160
  'placeholder' => 'color: red;',
161
  'selectors' => [
@@ -167,7 +176,7 @@ protected function _register_controls() {
167
  $this->add_control(
168
  'file',
169
  [
170
- 'label' => __( 'File CSS', 'elementor' ),
171
  'type' => Controls_Manager::TEXTAREA,
172
  'placeholder' => 'display: block;',
173
  'selectors' => [
@@ -178,7 +187,7 @@ protected function _register_controls() {
178
  $this->add_control(
179
  'date',
180
  [
181
- 'label' => __( 'Date CSS', 'elementor' ),
182
  'type' => Controls_Manager::TEXTAREA,
183
  'placeholder' => 'display: block;',
184
  'selectors' => [
@@ -189,7 +198,8 @@ protected function _register_controls() {
189
  $this->add_control(
190
  'inputsubmit',
191
  [
192
- 'label' => __( 'Submit Button CSS', 'elementor' ),
 
193
  'type' => Controls_Manager::TEXTAREA,
194
  'placeholder' => 'width:100%;
195
  background:red;',
@@ -197,11 +207,23 @@ protected function _register_controls() {
197
  '{{WRAPPER}} input[type="submit"]' => '{{VALUE}}',
198
  ],
199
  ]
 
 
 
 
 
 
 
 
 
 
 
200
  );
 
201
  $this->add_control(
202
  'responce',
203
  [
204
- 'label' => __( 'Responce CSS', 'elementor' ),
205
  'type' => Controls_Manager::TEXTAREA,
206
  'placeholder' => 'color:red;',
207
  'selectors' => [
71
  $this->add_control(
72
  'cf7_direct_css',
73
  [
74
+ 'label' => __( 'Global CSS For all fields', 'void' ),
75
+ 'description' => __( 'This is the global css for all fields of cf7. It will not effect the other fileds but if you want to define things such as color, background color use this.', 'void' ),
76
  'type' => Controls_Manager::TEXTAREA,
77
  'placeholder' => 'color:#000;',
78
  'selectors' => [
84
  $this->add_control(
85
  'alllabel',
86
  [
87
+ 'label' => __( 'All Label CSS', 'void' ),
88
+ 'description' => __( 'Changes might not sometimes show in the live preview but check in the front end to see the changes.', 'void' ),
89
  'type' => Controls_Manager::TEXTAREA,
90
  'placeholder' => 'color:#fff;',
91
  'selectors' => [
96
  $this->add_control(
97
  'allinput',
98
  [
99
+ 'label' => __( 'All Input CSS', 'void' ),
100
+ 'description' => __( 'Changes might not sometimes show in the live preview but check in the front end to see the changes.', 'void' ),
101
  'type' => Controls_Manager::TEXTAREA,
102
  'placeholder' => 'width:100%;
103
  background:red;',
104
  'selectors' => [
105
+ '{{WRAPPER}} input' => 'height:auto;',
106
  '{{WRAPPER}} input' => '{{VALUE}}',
107
+
108
  ],
109
  ]
110
  );
112
  $this->add_control(
113
  'textinput',
114
  [
115
+ 'label' => __( 'Input Type Text CSS', 'void' ),
116
+ 'description' => __( 'Changes might not sometimes show in the live preview but check in the front end to see the changes.', 'void' ),
117
  'type' => Controls_Manager::TEXTAREA,
118
  'placeholder' => 'width:100%;
119
  background:red;',
120
  'selectors' => [
121
+ '{{WRAPPER}} .wpcf7-text' => 'height:auto;',
122
  '{{WRAPPER}} .wpcf7-text' => '{{VALUE}}',
123
  ],
124
  ]
126
  $this->add_control(
127
  'textarea',
128
  [
129
+ 'label' => __( 'Textarea CSS', 'void' ),
130
+ 'description' => __( 'Changes might not sometimes show in the live preview but check in the front end to see the changes.', 'void' ),
131
  'type' => Controls_Manager::TEXTAREA,
132
  'placeholder' => 'height:100px;
133
  width:100%;',
134
  'selectors' => [
135
+ '{{WRAPPER}} textarea' => 'height:auto;',
136
  '{{WRAPPER}} textarea' => '{{VALUE}}',
137
  ],
138
  ]
141
  $this->add_control(
142
  'checkbox',
143
  [
144
+ 'label' => __( 'Checkbox/ Radio CSS', 'void' ),
145
  'type' => Controls_Manager::TEXTAREA,
146
  'placeholder' => 'display: block;',
147
  'selectors' => [
153
  $this->add_control(
154
  'selectcss',
155
  [
156
+ 'label' => __( 'Dropdown/ Select Box css', 'void' ),
157
  'type' => Controls_Manager::TEXTAREA,
158
  'placeholder' => 'width: 100;',
159
  'selectors' => [
164
  $this->add_control(
165
  'selectoptionscss',
166
  [
167
+ 'label' => __( 'Select Options Css', 'void' ),
168
  'type' => Controls_Manager::TEXTAREA,
169
  'placeholder' => 'color: red;',
170
  'selectors' => [
176
  $this->add_control(
177
  'file',
178
  [
179
+ 'label' => __( 'File CSS', 'void' ),
180
  'type' => Controls_Manager::TEXTAREA,
181
  'placeholder' => 'display: block;',
182
  'selectors' => [
187
  $this->add_control(
188
  'date',
189
  [
190
+ 'label' => __( 'Date CSS', 'void' ),
191
  'type' => Controls_Manager::TEXTAREA,
192
  'placeholder' => 'display: block;',
193
  'selectors' => [
198
  $this->add_control(
199
  'inputsubmit',
200
  [
201
+ 'label' => __( 'Submit Button CSS', 'void' ),
202
+ 'description' => __( 'Changes might not sometimes show in the live preview but check in the front end to see the changes.', 'void' ),
203
  'type' => Controls_Manager::TEXTAREA,
204
  'placeholder' => 'width:100%;
205
  background:red;',
207
  '{{WRAPPER}} input[type="submit"]' => '{{VALUE}}',
208
  ],
209
  ]
210
+ );
211
+ $this->add_control(
212
+ 'inputsubmithover',
213
+ [
214
+ 'label' => __( 'Submit Button Hover CSS', 'void' ),
215
+ 'type' => Controls_Manager::TEXTAREA,
216
+ 'placeholder' => 'background:#fff;',
217
+ 'selectors' => [
218
+ '{{WRAPPER}} input[type="submit"]:hover' => '{{VALUE}}',
219
+ ],
220
+ ]
221
  );
222
+
223
  $this->add_control(
224
  'responce',
225
  [
226
+ 'label' => __( 'Responce CSS', 'void' ),
227
  'type' => Controls_Manager::TEXTAREA,
228
  'placeholder' => 'color:red;',
229
  'selectors' => [