Elementor Essential Addons - Version 1.0.1

Version Description

  • Element added for weForms (https://wordpress.org/plugins/weforms/)
Download this release

Release Info

Developer codetic
Plugin Icon 128x128 Elementor Essential Addons
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

assets/css/essential-addons-elementor.css CHANGED
@@ -1437,3 +1437,27 @@ body:not(.x-ethos):not(.x-integrity):not(.x-renew):not(.x-icon) .eael-product-ca
1437
  .eael-contact-form-container .wpcf7-response-output {
1438
  clear: both;
1439
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1437
  .eael-contact-form-container .wpcf7-response-output {
1438
  clear: both;
1439
  }
1440
+
1441
+ /* weForm Styles */
1442
+
1443
+ .eael-contact-form-align-center .eael-weform-container, .eael-contact-form-btn-align-center .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"] {
1444
+ margin-left: auto !important;
1445
+ margin-right: auto !important;
1446
+ display: block;
1447
+ float: none;
1448
+ }
1449
+
1450
+ .eael-contact-form-align-left .eael-weform-container, .eael-contact-form-btn-align-left .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"] {
1451
+ float: left;
1452
+ width: auto;
1453
+ }
1454
+
1455
+ .eael-contact-form-align-right .eael-weform-container, .eael-contact-form-btn-align-right .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"] {
1456
+ float: right;
1457
+ width: auto;
1458
+ }
1459
+
1460
+ .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"], .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"], .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"], .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"], .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"], .eael-weform-container ul.wpuf-form li .wpuf-fields textarea {
1461
+ max-width: 100%;
1462
+ }
1463
+
elements/weforms/weforms.php ADDED
@@ -0,0 +1,725 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Elementor;
3
+
4
+ if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
+
6
+
7
+ class Widget_Eael_WeForm extends Widget_Base {
8
+
9
+ public function get_name() {
10
+ return 'eael-weform';
11
+ }
12
+
13
+ public function get_title() {
14
+ return esc_html__( 'EA weForm', 'essential-addons-elementor' );
15
+ }
16
+
17
+ public function get_icon() {
18
+ return 'fa fa-envelope-o';
19
+ }
20
+
21
+ public function get_categories() {
22
+ return [ 'essential-addons-elementor' ];
23
+ }
24
+
25
+ protected function _register_controls() {
26
+
27
+
28
+ $this->start_controls_section(
29
+ 'eael_section_weform',
30
+ [
31
+ 'label' => esc_html__( 'Select Form', 'essential-addons-elementor' )
32
+ ]
33
+ );
34
+
35
+
36
+
37
+ $this->add_control(
38
+ 'wpuf_contact_form',
39
+ [
40
+ 'label' => esc_html__( 'Select weForm', 'essential-addons-elementor' ),
41
+ 'description' => esc_html__( 'Please save and refresh the page after selecting the form', 'essential-addons-elementor' ),
42
+ 'label_block' => true,
43
+ 'type' => Controls_Manager::SELECT,
44
+ 'options' => eael_select_weform(),
45
+ ]
46
+ );
47
+
48
+
49
+ $this->end_controls_section();
50
+
51
+
52
+ $this->start_controls_section(
53
+ 'eael_section_weform_styles',
54
+ [
55
+ 'label' => esc_html__( 'Form Container Styles', 'essential-addons-elementor' ),
56
+ 'tab' => Controls_Manager::TAB_STYLE
57
+ ]
58
+ );
59
+
60
+ $this->add_control(
61
+ 'eael_weform_background',
62
+ [
63
+ 'label' => esc_html__( 'Form Background Color', 'essential-addons-elementor' ),
64
+ 'type' => Controls_Manager::COLOR,
65
+ 'selectors' => [
66
+ '{{WRAPPER}} .eael-weform-container' => 'background-color: {{VALUE}};',
67
+ ],
68
+ ]
69
+ );
70
+
71
+ $this->add_responsive_control(
72
+ 'eael_weform_alignment',
73
+ [
74
+ 'label' => esc_html__( 'Form Alignment', 'essential-addons-elementor' ),
75
+ 'type' => Controls_Manager::CHOOSE,
76
+ 'label_block' => true,
77
+ 'options' => [
78
+ 'default' => [
79
+ 'title' => __( 'Default', 'essential-addons-elementor' ),
80
+ 'icon' => 'fa fa-ban',
81
+ ],
82
+ 'left' => [
83
+ 'title' => esc_html__( 'Left', 'essential-addons-elementor' ),
84
+ 'icon' => 'fa fa-align-left',
85
+ ],
86
+ 'center' => [
87
+ 'title' => esc_html__( 'Center', 'essential-addons-elementor' ),
88
+ 'icon' => 'fa fa-align-center',
89
+ ],
90
+ 'right' => [
91
+ 'title' => esc_html__( 'Right', 'essential-addons-elementor' ),
92
+ 'icon' => 'fa fa-align-right',
93
+ ],
94
+ ],
95
+ 'default' => 'default',
96
+ 'prefix_class' => 'eael-contact-form-align-',
97
+ ]
98
+ );
99
+
100
+ $this->add_responsive_control(
101
+ 'eael_weform_width',
102
+ [
103
+ 'label' => esc_html__( 'Form Width', 'essential-addons-elementor' ),
104
+ 'type' => Controls_Manager::SLIDER,
105
+ 'size_units' => [ 'px', 'em', '%' ],
106
+ 'range' => [
107
+ 'px' => [
108
+ 'min' => 10,
109
+ 'max' => 1500,
110
+ ],
111
+ 'em' => [
112
+ 'min' => 1,
113
+ 'max' => 80,
114
+ ],
115
+ ],
116
+ 'selectors' => [
117
+ '{{WRAPPER}} .eael-weform-container' => 'width: {{SIZE}}{{UNIT}};',
118
+ ],
119
+ ]
120
+ );
121
+
122
+ $this->add_responsive_control(
123
+ 'eael_weform_max_width',
124
+ [
125
+ 'label' => esc_html__( 'Form Max Width', 'essential-addons-elementor' ),
126
+ 'type' => Controls_Manager::SLIDER,
127
+ 'size_units' => [ 'px', 'em', '%' ],
128
+ 'range' => [
129
+ 'px' => [
130
+ 'min' => 10,
131
+ 'max' => 1500,
132
+ ],
133
+ 'em' => [
134
+ 'min' => 1,
135
+ 'max' => 80,
136
+ ],
137
+ ],
138
+ 'selectors' => [
139
+ '{{WRAPPER}} .eael-weform-container' => 'max-width: {{SIZE}}{{UNIT}};',
140
+ ],
141
+ ]
142
+ );
143
+
144
+
145
+ $this->add_responsive_control(
146
+ 'eael_weform_margin',
147
+ [
148
+ 'label' => esc_html__( 'Form Margin', 'essential-addons-elementor' ),
149
+ 'type' => Controls_Manager::DIMENSIONS,
150
+ 'size_units' => [ 'px', 'em', '%' ],
151
+ 'selectors' => [
152
+ '{{WRAPPER}} .eael-weform-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
153
+ ],
154
+ ]
155
+ );
156
+
157
+ $this->add_responsive_control(
158
+ 'eael_weform_padding',
159
+ [
160
+ 'label' => esc_html__( 'Form Padding', 'essential-addons-elementor' ),
161
+ 'type' => Controls_Manager::DIMENSIONS,
162
+ 'size_units' => [ 'px', 'em', '%' ],
163
+ 'selectors' => [
164
+ '{{WRAPPER}} .eael-weform-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
165
+ ],
166
+ ]
167
+ );
168
+
169
+
170
+ $this->add_control(
171
+ 'eael_weform_border_radius',
172
+ [
173
+ 'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
174
+ 'type' => Controls_Manager::DIMENSIONS,
175
+ 'separator' => 'before',
176
+ 'size_units' => [ 'px' ],
177
+ 'selectors' => [
178
+ '{{WRAPPER}} .eael-weform-container' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
179
+ ],
180
+ ]
181
+ );
182
+
183
+
184
+ $this->add_group_control(
185
+ Group_Control_Border::get_type(),
186
+ [
187
+ 'name' => 'eael_weform_border',
188
+ 'selector' => '{{WRAPPER}} .eael-weform-container',
189
+ ]
190
+ );
191
+
192
+
193
+ $this->add_group_control(
194
+ Group_Control_Box_Shadow::get_type(),
195
+ [
196
+ 'name' => 'eael_weform_box_shadow',
197
+ 'selector' => '{{WRAPPER}} .eael-weform-container',
198
+ ]
199
+ );
200
+
201
+ $this->end_controls_section();
202
+
203
+
204
+
205
+ $this->start_controls_section(
206
+ 'eael_section_weform_field_styles',
207
+ [
208
+ 'label' => esc_html__( 'Form Fields Styles', 'essential-addons-elementor' ),
209
+ 'tab' => Controls_Manager::TAB_STYLE
210
+ ]
211
+ );
212
+
213
+ $this->add_control(
214
+ 'eael_weform_input_background',
215
+ [
216
+ 'label' => esc_html__( 'Input Field Background', 'essential-addons-elementor' ),
217
+ 'type' => Controls_Manager::COLOR,
218
+ 'selectors' => [
219
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
220
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
221
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
222
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
223
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
224
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
225
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea' => 'background-color: {{VALUE}};',
226
+ ],
227
+ ]
228
+ );
229
+
230
+
231
+ $this->add_responsive_control(
232
+ 'eael_weform_input_width',
233
+ [
234
+ 'label' => esc_html__( 'Input Width', 'essential-addons-elementor' ),
235
+ 'type' => Controls_Manager::SLIDER,
236
+ 'size_units' => [ 'px', 'em', '%' ],
237
+ 'range' => [
238
+ 'px' => [
239
+ 'min' => 10,
240
+ 'max' => 1500,
241
+ ],
242
+ 'em' => [
243
+ 'min' => 1,
244
+ 'max' => 80,
245
+ ],
246
+ ],
247
+ 'selectors' => [
248
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
249
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
250
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
251
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
252
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
253
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"]' => 'width: {{SIZE}}{{UNIT}};',
254
+ ],
255
+ ]
256
+ );
257
+
258
+ $this->add_responsive_control(
259
+ 'eael_weform_textarea_width',
260
+ [
261
+ 'label' => esc_html__( 'Textarea Width', 'essential-addons-elementor' ),
262
+ 'type' => Controls_Manager::SLIDER,
263
+ 'size_units' => [ 'px', 'em', '%' ],
264
+ 'range' => [
265
+ 'px' => [
266
+ 'min' => 10,
267
+ 'max' => 1500,
268
+ ],
269
+ 'em' => [
270
+ 'min' => 1,
271
+ 'max' => 80,
272
+ ],
273
+ ],
274
+ 'selectors' => [
275
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea' => 'width: {{SIZE}}{{UNIT}};',
276
+ ],
277
+ ]
278
+ );
279
+
280
+ $this->add_responsive_control(
281
+ 'eael_weform_input_padding',
282
+ [
283
+ 'label' => esc_html__( 'Fields Padding', 'essential-addons-elementor' ),
284
+ 'type' => Controls_Manager::DIMENSIONS,
285
+ 'size_units' => [ 'px', 'em', '%' ],
286
+ 'selectors' => [
287
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
288
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
289
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
290
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
291
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
292
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
293
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
294
+ ],
295
+ ]
296
+ );
297
+
298
+
299
+
300
+ $this->add_control(
301
+ 'eael_weform_input_border_radius',
302
+ [
303
+ 'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
304
+ 'type' => Controls_Manager::DIMENSIONS,
305
+ 'separator' => 'before',
306
+ 'size_units' => [ 'px' ],
307
+ 'selectors' => [
308
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
309
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
310
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
311
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
312
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
313
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
314
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
315
+ ],
316
+ ]
317
+ );
318
+
319
+
320
+ $this->add_group_control(
321
+ Group_Control_Border::get_type(),
322
+ [
323
+ 'name' => 'eael_weform_input_border',
324
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
325
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
326
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
327
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
328
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
329
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
330
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea',
331
+ ]
332
+ );
333
+
334
+
335
+ $this->add_group_control(
336
+ Group_Control_Box_Shadow::get_type(),
337
+ [
338
+ 'name' => 'eael_weform_input_box_shadow',
339
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
340
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
341
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
342
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
343
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
344
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
345
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea',
346
+ ]
347
+ );
348
+
349
+ $this->add_control(
350
+ 'eael_weform_focus_heading',
351
+ [
352
+ 'type' => Controls_Manager::HEADING,
353
+ 'label' => esc_html__( 'Focus State Style', 'essential-addons-elementor' ),
354
+ 'separator' => 'before',
355
+ ]
356
+ );
357
+
358
+
359
+ $this->add_group_control(
360
+ Group_Control_Box_Shadow::get_type(),
361
+ [
362
+ 'name' => 'eael_weform_input_focus_box_shadow',
363
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"]:focus,
364
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"]:focus,
365
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"]:focus,
366
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"]:focus,
367
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"]:focus,
368
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"]:focus,
369
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea:focus',
370
+ ]
371
+ );
372
+
373
+ $this->add_control(
374
+ 'eael_weform_input_focus_border',
375
+ [
376
+ 'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
377
+ 'type' => Controls_Manager::COLOR,
378
+ 'selectors' => [
379
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"]:focus,
380
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"]:focus,
381
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"]:focus,
382
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"]:focus,
383
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"]:focus,
384
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"]:focus,
385
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea:focus' => 'border-color: {{VALUE}};',
386
+ ],
387
+ ]
388
+ );
389
+
390
+
391
+
392
+ $this->end_controls_section();
393
+
394
+
395
+ $this->start_controls_section(
396
+ 'eael_section_weform_typography',
397
+ [
398
+ 'label' => esc_html__( 'Color & Typography', 'essential-addons-elementor' ),
399
+ 'tab' => Controls_Manager::TAB_STYLE
400
+ ]
401
+ );
402
+
403
+
404
+ $this->add_control(
405
+ 'eael_weform_label_color',
406
+ [
407
+ 'label' => esc_html__( 'Label Color', 'essential-addons-elementor' ),
408
+ 'type' => Controls_Manager::COLOR,
409
+ 'selectors' => [
410
+ '{{WRAPPER}} .eael-weform-container, {{WRAPPER}} .eael-weform-container .wpuf-label label' => 'color: {{VALUE}};',
411
+ ],
412
+ ]
413
+ );
414
+
415
+ $this->add_control(
416
+ 'eael_weform_field_color',
417
+ [
418
+ 'label' => esc_html__( 'Field Font Color', 'essential-addons-elementor' ),
419
+ 'type' => Controls_Manager::COLOR,
420
+ 'selectors' => [
421
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
422
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
423
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
424
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
425
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
426
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
427
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea' => 'color: {{VALUE}};',
428
+ ],
429
+ ]
430
+ );
431
+
432
+ $this->add_control(
433
+ 'eael_weform_placeholder_color',
434
+ [
435
+ 'label' => esc_html__( 'Placeholder Font Color', 'essential-addons-elementor' ),
436
+ 'type' => Controls_Manager::COLOR,
437
+ 'selectors' => [
438
+ '{{WRAPPER}} .eael-weform-container ::-webkit-input-placeholder' => 'color: {{VALUE}};',
439
+ '{{WRAPPER}} .eael-weform-container ::-moz-placeholder' => 'color: {{VALUE}};',
440
+ '{{WRAPPER}} .eael-weform-container ::-ms-input-placeholder' => 'color: {{VALUE}};',
441
+ ],
442
+ ]
443
+ );
444
+
445
+
446
+ $this->add_control(
447
+ 'eael_weform_label_heading',
448
+ [
449
+ 'type' => Controls_Manager::HEADING,
450
+ 'label' => esc_html__( 'Label Typography', 'essential-addons-elementor' ),
451
+ 'separator' => 'before',
452
+ ]
453
+ );
454
+
455
+ $this->add_group_control(
456
+ Group_Control_Typography::get_type(),
457
+ [
458
+ 'name' => 'eael_weform_label_typography',
459
+ 'selector' => '{{WRAPPER}} .eael-weform-container, {{WRAPPER}} .eael-weform-container .wpuf-label label',
460
+ ]
461
+ );
462
+
463
+
464
+ $this->add_control(
465
+ 'eael_weform_heading_input_field',
466
+ [
467
+ 'type' => Controls_Manager::HEADING,
468
+ 'label' => esc_html__( 'Input Fields Typography', 'essential-addons-elementor' ),
469
+ 'separator' => 'before',
470
+ ]
471
+ );
472
+
473
+ $this->add_group_control(
474
+ Group_Control_Typography::get_type(),
475
+ [
476
+ 'name' => 'eael_weform_input_field_typography',
477
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="text"],
478
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="password"],
479
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="email"],
480
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
481
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="url"],
482
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields input[type="number"],
483
+ {{WRAPPER}} .eael-weform-container ul.wpuf-form li .wpuf-fields textarea',
484
+ ]
485
+ );
486
+
487
+ $this->end_controls_section();
488
+
489
+
490
+
491
+ $this->start_controls_section(
492
+ 'eael_section_weform_submit_button_styles',
493
+ [
494
+ 'label' => esc_html__( 'Submit Button Styles', 'essential-addons-elementor' ),
495
+ 'tab' => Controls_Manager::TAB_STYLE
496
+ ]
497
+ );
498
+
499
+ $this->add_responsive_control(
500
+ 'eael_weform_submit_btn_width',
501
+ [
502
+ 'label' => esc_html__( 'Button Width', 'essential-addons-elementor' ),
503
+ 'type' => Controls_Manager::SLIDER,
504
+ 'size_units' => [ 'px', 'em', '%' ],
505
+ 'range' => [
506
+ 'px' => [
507
+ 'min' => 10,
508
+ 'max' => 1500,
509
+ ],
510
+ 'em' => [
511
+ 'min' => 1,
512
+ 'max' => 80,
513
+ ],
514
+ ],
515
+ 'selectors' => [
516
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]' => 'width: {{SIZE}}{{UNIT}};',
517
+ ],
518
+ ]
519
+ );
520
+
521
+ $this->add_responsive_control(
522
+ 'eael_weform_submit_btn_alignment',
523
+ [
524
+ 'label' => esc_html__( 'Button Alignment', 'essential-addons-elementor' ),
525
+ 'type' => Controls_Manager::CHOOSE,
526
+ 'label_block' => true,
527
+ 'options' => [
528
+ 'default' => [
529
+ 'title' => __( 'Default', 'essential-addons-elementor' ),
530
+ 'icon' => 'fa fa-ban',
531
+ ],
532
+ 'left' => [
533
+ 'title' => esc_html__( 'Left', 'essential-addons-elementor' ),
534
+ 'icon' => 'fa fa-align-left',
535
+ ],
536
+ 'center' => [
537
+ 'title' => esc_html__( 'Center', 'essential-addons-elementor' ),
538
+ 'icon' => 'fa fa-align-center',
539
+ ],
540
+ 'right' => [
541
+ 'title' => esc_html__( 'Right', 'essential-addons-elementor' ),
542
+ 'icon' => 'fa fa-align-right',
543
+ ],
544
+ ],
545
+ 'default' => 'default',
546
+ 'prefix_class' => 'eael-contact-form-btn-align-',
547
+ ]
548
+ );
549
+
550
+ $this->add_group_control(
551
+ Group_Control_Typography::get_type(),
552
+ [
553
+ 'name' => 'eael_weform_submit_btn_typography',
554
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
555
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]',
556
+ ]
557
+ );
558
+
559
+ $this->add_responsive_control(
560
+ 'eael_weform_submit_btn_margin',
561
+ [
562
+ 'label' => esc_html__( 'Margin', 'essential-addons-elementor' ),
563
+ 'type' => Controls_Manager::DIMENSIONS,
564
+ 'size_units' => [ 'px', 'em', '%' ],
565
+ 'selectors' => [
566
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
567
+ ],
568
+ ]
569
+ );
570
+
571
+
572
+ $this->add_responsive_control(
573
+ 'eael_weform_submit_btn_padding',
574
+ [
575
+ 'label' => esc_html__( 'Padding', 'essential-addons-elementor' ),
576
+ 'type' => Controls_Manager::DIMENSIONS,
577
+ 'size_units' => [ 'px', 'em', '%' ],
578
+ 'selectors' => [
579
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
580
+ ],
581
+ ]
582
+ );
583
+
584
+
585
+
586
+ $this->start_controls_tabs( 'eael_weform_submit_button_tabs' );
587
+
588
+ $this->start_controls_tab( 'normal', [ 'label' => esc_html__( 'Normal', 'essential-addons-elementor' ) ] );
589
+
590
+ $this->add_control(
591
+ 'eael_weform_submit_btn_text_color',
592
+ [
593
+ 'label' => esc_html__( 'Text Color', 'essential-addons-elementor' ),
594
+ 'type' => Controls_Manager::COLOR,
595
+ 'selectors' => [
596
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]' => 'color: {{VALUE}};',
597
+ ],
598
+ ]
599
+ );
600
+
601
+
602
+
603
+ $this->add_control(
604
+ 'eael_weform_submit_btn_background_color',
605
+ [
606
+ 'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
607
+ 'type' => Controls_Manager::COLOR,
608
+ 'selectors' => [
609
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]' => 'background-color: {{VALUE}};',
610
+ ],
611
+ ]
612
+ );
613
+
614
+ $this->add_group_control(
615
+ Group_Control_Border::get_type(),
616
+ [
617
+ 'name' => 'eael_weform_submit_btn_border',
618
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]',
619
+ ]
620
+ );
621
+
622
+ $this->add_control(
623
+ 'eael_weform_submit_btn_border_radius',
624
+ [
625
+ 'label' => esc_html__( 'Border Radius', 'essential-addons-elementor' ),
626
+ 'type' => Controls_Manager::SLIDER,
627
+ 'range' => [
628
+ 'px' => [
629
+ 'max' => 100,
630
+ ],
631
+ ],
632
+ 'selectors' => [
633
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]' => 'border-radius: {{SIZE}}px;',
634
+ ],
635
+ ]
636
+ );
637
+
638
+
639
+
640
+ $this->end_controls_tab();
641
+
642
+ $this->start_controls_tab( 'eael_weform_submit_btn_hover', [ 'label' => esc_html__( 'Hover', 'essential-addons-elementor' ) ] );
643
+
644
+ $this->add_control(
645
+ 'eael_weform_submit_btn_hover_text_color',
646
+ [
647
+ 'label' => esc_html__( 'Text Color', 'essential-addons-elementor' ),
648
+ 'type' => Controls_Manager::COLOR,
649
+ 'selectors' => [
650
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]:hover' => 'color: {{VALUE}};',
651
+ ],
652
+ ]
653
+ );
654
+
655
+ $this->add_control(
656
+ 'eael_weform_submit_btn_hover_background_color',
657
+ [
658
+ 'label' => esc_html__( 'Background Color', 'essential-addons-elementor' ),
659
+ 'type' => Controls_Manager::COLOR,
660
+ 'selectors' => [
661
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]:hover' => 'background-color: {{VALUE}};',
662
+ ],
663
+ ]
664
+ );
665
+
666
+ $this->add_control(
667
+ 'eael_weform_submit_btn_hover_border_color',
668
+ [
669
+ 'label' => esc_html__( 'Border Color', 'essential-addons-elementor' ),
670
+ 'type' => Controls_Manager::COLOR,
671
+ 'selectors' => [
672
+ '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]:hover' => 'border-color: {{VALUE}};',
673
+ ],
674
+ ]
675
+ );
676
+
677
+ $this->end_controls_tab();
678
+
679
+ $this->end_controls_tabs();
680
+
681
+
682
+ $this->add_group_control(
683
+ Group_Control_Box_Shadow::get_type(),
684
+ [
685
+ 'name' => 'eael_weform_submit_btn_box_shadow',
686
+ 'selector' => '{{WRAPPER}} .eael-weform-container ul.wpuf-form .wpuf-submit input[type="submit"]',
687
+ ]
688
+ );
689
+
690
+
691
+ $this->end_controls_section();
692
+
693
+
694
+ }
695
+
696
+
697
+ protected function render( ) {
698
+
699
+ $settings = $this->get_settings();
700
+
701
+
702
+ ?>
703
+
704
+
705
+ <?php if ( ! empty( $settings['wpuf_contact_form'] ) ) : ?>
706
+ <div class="eael-weform-container">
707
+ <?php echo do_shortcode( '[weforms id="' . $settings['wpuf_contact_form'] . '" ]' ); ?>
708
+ </div>
709
+ <?php endif; ?>
710
+
711
+ <?php
712
+
713
+ }
714
+
715
+ protected function content_template() {''
716
+
717
+ ?>
718
+
719
+
720
+ <?php
721
+ }
722
+ }
723
+
724
+
725
+ Plugin::instance()->widgets_manager->register_widget_type( new Widget_Eael_WeForm() );
essential_adons_elementor.php CHANGED
@@ -3,8 +3,8 @@
3
  * Plugin Name: Essential Addons for Elementor Lite
4
  * Description: Elements bundle for Elementor page builder plugin for WordPress. <a href="https://essential-addons.com/elementor/buy.php">Get Premium version</a>
5
  * Plugin URI: https://essential-addons.com/elementor/
6
- * Author: Codetic
7
- * Version: 1.0.0
8
  * Author URI: http://www.codetic.net
9
  *
10
  * Text Domain: essential-addons-elementor
@@ -36,6 +36,10 @@ function add_eael_elements(){
36
  if ( function_exists( 'wpcf7' ) ) {
37
  require_once ESSENTIAL_ADDONS_EL_PATH.'elements/contact-form-7/contact-form-7.php';
38
  }
 
 
 
 
39
  }
40
  add_action('elementor/widgets/widgets_registered','add_eael_elements');
41
 
3
  * Plugin Name: Essential Addons for Elementor Lite
4
  * Description: Elements bundle for Elementor page builder plugin for WordPress. <a href="https://essential-addons.com/elementor/buy.php">Get Premium version</a>
5
  * Plugin URI: https://essential-addons.com/elementor/
6
+ * Author: Elementor Addons Team by Codetic
7
+ * Version: 1.0.1
8
  * Author URI: http://www.codetic.net
9
  *
10
  * Text Domain: essential-addons-elementor
36
  if ( function_exists( 'wpcf7' ) ) {
37
  require_once ESSENTIAL_ADDONS_EL_PATH.'elements/contact-form-7/contact-form-7.php';
38
  }
39
+
40
+ if ( function_exists( 'WeForms' ) ) {
41
+ require_once ESSENTIAL_ADDONS_EL_PATH.'elements/weforms/weforms.php';
42
+ }
43
  }
44
  add_action('elementor/widgets/widgets_registered','add_eael_elements');
45
 
includes/queries.php CHANGED
@@ -189,3 +189,23 @@ function eael_select_contact_form(){
189
  }
190
  }
191
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  }
190
  }
191
 
192
+
193
+
194
+ // Get weForms
195
+
196
+
197
+ function eael_select_weform(){
198
+ $wpuf_form_list = get_posts(array(
199
+ 'post_type' => 'wpuf_contact_form',
200
+ 'showposts' => 999,
201
+ ));
202
+ $posts = array();
203
+
204
+ if ( ! empty( $wpuf_form_list ) && ! is_wp_error( $wpuf_form_list ) ){
205
+ foreach ( $wpuf_form_list as $post ) {
206
+ $options[ $post->ID ] = $post->post_title;
207
+ }
208
+ return $options;
209
+ }
210
+ }
211
+
readme.txt CHANGED
@@ -1,25 +1,26 @@
1
  === Essential Addons for Elementor Lite ===
2
- Contributors: Codetic
3
  Tags: elementor, elements, widgets, page builder, builder, visual editor, wordpress page builder
4
  Requires at least: 4.0
5
  Tested up to: 4.8
6
- Stable tag: 1.0.0
7
  License: GPLv3
8
  License URI: https://opensource.org/licenses/GPL-3.0
9
 
10
- Essential bundle of elements for Elementor Page Builder.
11
 
12
  == Description ==
13
 
14
- Bundle of elements for Elementor Page Builder. Lots of useful and premium elements to complete your website quickly.
15
 
16
 
17
  <a href="https://codetic.net/essential-addons-elementor/" rel="nofollow">Check the demos</a>
18
 
 
19
 
20
  ### Features
21
 
22
- * 8+ Stunning Elements
23
  * Fully Customizable
24
  * Unlimited Design Options
25
  * Lightweight and Fast
@@ -27,23 +28,27 @@ Bundle of elements for Elementor Page Builder. Lots of useful and premium elemen
27
 
28
  ### Available Elements
29
 
30
- * Post Timeline
31
- * Fancy Text
32
- * Creative Buttons
33
- * Countdown
34
- * Testimonials
35
- * Team Members
36
- * WooCommerce Product Grid
37
- * Contact Form 7
 
 
38
 
39
  ### More elements on <a href="https://essential-addons.com/elementor/buy.php">Premium Version</a>
40
 
41
- * Lightbox & Modal
42
- * Instagram Feed/Gallery
43
- * Testimonial Slider
44
- * Image Comparison
45
- * Interactive Promo
 
46
 
 
47
 
48
  == Installation ==
49
 
@@ -75,9 +80,17 @@ Your existing elements/content will work with premium version. So you won't lose
75
 
76
  == Changelog ==
77
 
 
 
 
 
78
  = 1.0.0 =
79
 
80
  Initial stable realese
81
 
82
 
83
  == Upgrade Notice ==
 
 
 
 
1
  === Essential Addons for Elementor Lite ===
2
+ Contributors: Codetic, re_enter_rupok
3
  Tags: elementor, elements, widgets, page builder, builder, visual editor, wordpress page builder
4
  Requires at least: 4.0
5
  Tested up to: 4.8
6
+ Stable tag: 1.0.1
7
  License: GPLv3
8
  License URI: https://opensource.org/licenses/GPL-3.0
9
 
10
+ Elementor elements bundle for Elementor WordPress Page Builder.
11
 
12
  == Description ==
13
 
14
+ Elementor elements bundle for Elementor WordPress Page Builder. Lots of useful and premium elements to complete your website quickly.
15
 
16
 
17
  <a href="https://codetic.net/essential-addons-elementor/" rel="nofollow">Check the demos</a>
18
 
19
+ ### <a href="https://wordpress.org/plugins/elementor/" rel="nofollow">Elementor</a> page builder is required for this plugin.
20
 
21
  ### Features
22
 
23
+ * 9+ Stunning Elements
24
  * Fully Customizable
25
  * Unlimited Design Options
26
  * Lightweight and Fast
28
 
29
  ### Available Elements
30
 
31
+ * <a href="https://www.codetic.net/essential-addons-elementor/post-timeline/" target="_blank">Post Timeline</a>
32
+ * <a href="https://www.codetic.net/essential-addons-elementor/fancy-text/" target="_blank">Fancy Text</a>
33
+ * <a href="https://www.codetic.net/essential-addons-elementor/creative-buttons/" target="_blank">Creative Buttons</a>
34
+ * <a href="https://www.codetic.net/essential-addons-elementor/countdown/" target="_blank">Countdown</a>
35
+ * <a href="https://www.codetic.net/essential-addons-elementor/team-members/" target="_blank">Team Members</a>
36
+ * <a href="https://www.codetic.net/essential-addons-elementor/testimonials/" target="_blank">Testimonials</a>
37
+ * <a href="https://www.codetic.net/essential-addons-elementor/woo-product-grid/" target="_blank">WooCommerce Product Grid</a>
38
+ * <a href="https://www.codetic.net/essential-addons-elementor/contact-form-7/" target="_blank">Contact Form 7</a>
39
+ * <a href="https://www.codetic.net/essential-addons-elementor/weforms/" target="_blank">weForms</a>
40
+
41
 
42
  ### More elements on <a href="https://essential-addons.com/elementor/buy.php">Premium Version</a>
43
 
44
+ * <a href="https://www.codetic.net/essential-addons-elementor/post-grid/" target="_blank">Post Grid (Masonry)</a>
45
+ * <a href="https://www.codetic.net/essential-addons-elementor/post-block/" target="_blank">Post Block (Flex)</a>
46
+ * <a href="https://www.codetic.net/essential-addons-elementor/lightbox-modal/" target="_blank">Lightbox & Modal</a>
47
+ * <a href="https://www.codetic.net/essential-addons-elementor/testimonial-slider/" target="_blank">Testimonial Slider</a>
48
+ * <a href="https://www.codetic.net/essential-addons-elementor/image-comparison/" target="_blank">Image Comparison</a>
49
+ * <a href="https://www.codetic.net/essential-addons-elementor/interactive-promo/" target="_blank">Interactive Promo</a>
50
 
51
+ More coming soon...
52
 
53
  == Installation ==
54
 
80
 
81
  == Changelog ==
82
 
83
+ = 1.0.1 =
84
+
85
+ - Element added for weForms (https://wordpress.org/plugins/weforms/)
86
+
87
  = 1.0.0 =
88
 
89
  Initial stable realese
90
 
91
 
92
  == Upgrade Notice ==
93
+
94
+ = 1.0.1 =
95
+
96
+ - Element added for weForms (https://wordpress.org/plugins/weforms/)