Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress - Version 1.1.3

Version Description

Download this release

Release Info

Developer ataurr
Plugin Icon 128x128 Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

init.php CHANGED
@@ -52,7 +52,7 @@ final class Plugin{
52
  }
53
 
54
  public function version(){
55
- return '1.1.0';
56
  }
57
 
58
  public function package_type(){
52
  }
53
 
54
  public function version(){
55
+ return '1.1.3';
56
  }
57
 
58
  public function package_type(){
metform.php CHANGED
@@ -3,9 +3,9 @@ defined( 'ABSPATH' ) || exit;
3
 
4
  /**
5
  * Plugin Name: MetForm – Most flexible and design friendly form builder for Elementor
6
- * Plugin URI: http://products.wpmet.com/metform
7
  * Description: Most flexible and design friendly form builder for Elementor
8
- * Version: 1.1.2
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
3
 
4
  /**
5
  * Plugin Name: MetForm – Most flexible and design friendly form builder for Elementor
6
+ * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
+ * Version: 1.1.3
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ataurr, wpmet, emrnco, sayedulsayem
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
  Tested up to: 5.3
6
- Stable tag: 1.1.2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -91,6 +91,14 @@ You can use MailChimp in your contact form also create MailChimp signup forms wi
91
 
92
  == Changelog ==
93
 
 
 
 
 
 
 
 
 
94
  1.1
95
  Added telephone widget
96
  Added widget area to edit save use from same page.
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
  Tested up to: 5.3
6
+ Stable tag: 1.1.3
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
91
 
92
  == Changelog ==
93
 
94
+ Version: 1.1.3
95
+ Added Option to change checkbox and radio color
96
+ Added help text with style condition
97
+
98
+ Version: 1.1.2
99
+ Fixed recaptcha issue
100
+
101
+
102
  1.1
103
  Added telephone widget
104
  Added widget area to edit save use from same page.
widgets/checkbox/checkbox.php CHANGED
@@ -356,6 +356,15 @@ Class MetForm_Input_Checkbox extends Widget_Base{
356
  ]
357
  );
358
 
 
 
 
 
 
 
 
 
 
359
  $this->add_control(
360
  'mf_input_option_icon_color',
361
  [
@@ -366,13 +375,65 @@ Class MetForm_Input_Checkbox extends Widget_Base{
366
  'value' => Scheme_Color::COLOR_1,
367
  ],
368
  'selectors' => [
369
- '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}',
370
  ],
371
- 'default' => '#000000',
 
 
 
 
 
 
 
 
 
372
  ]
373
  );
374
 
375
  $this->add_control(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  'mf_input_option_space_after_icon',
377
  [
378
  'label' => esc_html__( 'Add space after checkbox', 'metform' ),
@@ -387,16 +448,24 @@ Class MetForm_Input_Checkbox extends Widget_Base{
387
  ]
388
  );
389
 
390
-
391
-
392
-
393
  $this->add_group_control(
394
  Group_Control_Typography::get_type(),
395
  [
396
  'name' => 'mf_input_typgraphy',
397
- 'label' => esc_html__( 'Typography', 'metform' ),
398
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
399
- 'selector' => '{{WRAPPER}} .mf-checkbox, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span',
 
 
 
 
 
 
 
 
 
 
 
400
  ]
401
  );
402
 
@@ -408,6 +477,9 @@ Class MetForm_Input_Checkbox extends Widget_Base{
408
  [
409
  'label' => esc_html__( 'Help Text', 'metform' ),
410
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
411
  ]
412
  );
413
 
356
  ]
357
  );
358
 
359
+ $this->start_controls_tabs('mf_input_option_icon_color_control');
360
+
361
+ $this->start_controls_tab(
362
+ 'mf_input_option_icon_color_tabnormal',
363
+ [
364
+ 'label' =>esc_html__( 'Normal', 'metform' ),
365
+ ]
366
+ );
367
+
368
  $this->add_control(
369
  'mf_input_option_icon_color',
370
  [
375
  'value' => Scheme_Color::COLOR_1,
376
  ],
377
  'selectors' => [
378
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}'
379
  ],
380
+ 'default' => '#747474',
381
+ ]
382
+ );
383
+
384
+ $this->end_controls_tab();
385
+
386
+ $this->start_controls_tab(
387
+ 'mf_input_option_icon_color_tabchecked',
388
+ [
389
+ 'label' =>esc_html__( 'Checked', 'metform' ),
390
  ]
391
  );
392
 
393
  $this->add_control(
394
+ 'mf_input_option_icon_color_checked',
395
+ [
396
+ 'label' => esc_html__( 'Checkbox Color', 'metform' ),
397
+ 'type' => Controls_Manager::COLOR,
398
+ 'scheme' => [
399
+ 'type' => Scheme_Color::get_type(),
400
+ 'value' => Scheme_Color::COLOR_1,
401
+ ],
402
+ 'selectors' => [
403
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"]:checked + span:before' => 'color: {{VALUE}}'
404
+ ],
405
+ 'default' => '#4285F4',
406
+ ]
407
+ );
408
+
409
+ $this->end_controls_tab();
410
+
411
+ $this->end_controls_tabs();
412
+
413
+ $this->add_responsive_control(
414
+ 'mf_input_option_icon_horizontal_position',
415
+ [
416
+ 'label' => esc_html__( 'Horizontal position of icon', 'metform' ),
417
+ 'type' => Controls_Manager::SLIDER,
418
+ 'size_units' => [ 'px'],
419
+ 'range' => [
420
+ 'px' => [
421
+ 'min' => -50,
422
+ 'max' => 50,
423
+ 'step' => 1,
424
+ ],
425
+ ],
426
+ 'default' => [
427
+ 'unit' => 'px',
428
+ 'size' => 2,
429
+ ],
430
+ 'selectors' => [
431
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'top: {{SIZE}}{{UNIT}}',
432
+ ]
433
+ ]
434
+ );
435
+
436
+ $this->add_responsive_control(
437
  'mf_input_option_space_after_icon',
438
  [
439
  'label' => esc_html__( 'Add space after checkbox', 'metform' ),
448
  ]
449
  );
450
 
 
 
 
451
  $this->add_group_control(
452
  Group_Control_Typography::get_type(),
453
  [
454
  'name' => 'mf_input_typgraphy',
455
+ 'label' => esc_html__( 'Typography for icon', 'metform' ),
456
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
457
+ 'exclude' => [ 'font_family', 'text_transform', 'font_style', 'text_decoration', 'letter_spacing' ],
458
+ 'selector' => '{{WRAPPER}} .mf-checkbox, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before',
459
+ ]
460
+ );
461
+
462
+ $this->add_group_control(
463
+ Group_Control_Typography::get_type(),
464
+ [
465
+ 'name' => 'mf_input_typgraphy_text',
466
+ 'label' => esc_html__( 'Typography for text', 'metform' ),
467
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
468
+ 'selector' => '{{WRAPPER}} .mf-checkbox, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span',
469
  ]
470
  );
471
 
477
  [
478
  'label' => esc_html__( 'Help Text', 'metform' ),
479
  'tab' => Controls_Manager::TAB_STYLE,
480
+ 'condition' => [
481
+ 'mf_input_help_text!' => ''
482
+ ]
483
  ]
484
  );
485
 
widgets/date/date.php CHANGED
@@ -309,6 +309,9 @@ Class MetForm_Input_Date extends Widget_Base{
309
  [
310
  'label' => esc_html__( 'Help Text', 'metform' ),
311
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
312
  ]
313
  );
314
 
309
  [
310
  'label' => esc_html__( 'Help Text', 'metform' ),
311
  'tab' => Controls_Manager::TAB_STYLE,
312
+ 'condition' => [
313
+ 'mf_input_help_text!' => ''
314
+ ]
315
  ]
316
  );
317
 
widgets/email/email.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Email extends widget_base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/file-upload/file-upload.php CHANGED
@@ -156,6 +156,9 @@ Class MetForm_Input_File_Upload extends Widget_base{
156
  [
157
  'label' => esc_html__( 'Help Text', 'metform' ),
158
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
159
  ]
160
  );
161
 
156
  [
157
  'label' => esc_html__( 'Help Text', 'metform' ),
158
  'tab' => Controls_Manager::TAB_STYLE,
159
+ 'condition' => [
160
+ 'mf_input_help_text!' => ''
161
+ ]
162
  ]
163
  );
164
 
widgets/listing/listing-fname.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Listing_Fname extends Widget_Base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/listing/listing-lname.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Listing_Lname extends Widget_Base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/listing/listing-optin.php CHANGED
@@ -61,7 +61,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
61
  'inline-block' => esc_html__( 'Left', 'metform' ),
62
  ],
63
  'selectors' => [
64
- '{{WRAPPER}} .mf-listing-optin-label' => 'display: {{VALUE}}; vertical-align: top',
65
  '{{WRAPPER}} .mf-checkbox' => 'display: inline-block',
66
  ],
67
  'condition' => [
@@ -106,7 +106,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
106
  ],
107
  'default' => 'inline-block',
108
  'selectors' => [
109
- '{{WRAPPER}} .mf-listing-optin-option' => 'display: {{VALUE}};',
110
  ],
111
  'description' => esc_html__('Checkbox option display style. ', 'metform'),
112
  ]
@@ -185,7 +185,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
185
  'value' => Scheme_Color::COLOR_1,
186
  ],
187
  'selectors' => [
188
- '{{WRAPPER}} .mf-listing-optin-label, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}',
189
  ],
190
  'default' => '#000000',
191
  'condition' => [
@@ -199,7 +199,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
199
  'name' => 'mf_listing_optin__label_typography',
200
  'label' => esc_html__( 'Typography', 'metform' ),
201
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
202
- 'selector' => '{{WRAPPER}} .mf-listing-optin-label',
203
  'condition' => [
204
  'mf_input_label_status' => 'yes',
205
  ],
@@ -212,7 +212,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
212
  'type' => Controls_Manager::DIMENSIONS,
213
  'size_units' => [ 'px', '%', 'em' ],
214
  'selectors' => [
215
- '{{WRAPPER}} .mf-listing-optin-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
216
  ],
217
  'condition' => [
218
  'mf_input_label_status' => 'yes',
@@ -226,7 +226,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
226
  'type' => Controls_Manager::DIMENSIONS,
227
  'size_units' => [ 'px', '%', 'em' ],
228
  'selectors' => [
229
- '{{WRAPPER}} .mf-listing-optin-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
230
  ],
231
  'condition' => [
232
  'mf_input_label_status' => 'yes',
@@ -239,7 +239,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
239
  [
240
  'name' => 'mf_listing_optin__label_box_shadow',
241
  'label' => esc_html__( 'Box Shadow', 'metform' ),
242
- 'selector' => '{{WRAPPER}} .mf-listing-optin-label',
243
  'condition' => [
244
  'mf_input_label_status' => 'yes',
245
  ],
@@ -282,7 +282,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
282
  'type' => Controls_Manager::DIMENSIONS,
283
  'size_units' => [ 'px', '%', 'em' ],
284
  'selectors' => [
285
- '{{WRAPPER}} .mf-listing-optin-option' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
286
  ],
287
  ]
288
  );
@@ -293,7 +293,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
293
  'type' => Controls_Manager::DIMENSIONS,
294
  'size_units' => [ 'px', '%', 'em' ],
295
  'selectors' => [
296
- '{{WRAPPER}} .mf-listing-optin-option' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
297
  ],
298
  ]
299
  );
@@ -308,26 +308,87 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
308
  'value' => Scheme_Color::COLOR_1,
309
  ],
310
  'selectors' => [
311
- '{{WRAPPER}} .mf-listing-optin-option' => 'color: {{VALUE}}',
312
- '{{WRAPPER}} .mf-listing-optin-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}',
313
  ],
314
  'default' => '#000000',
315
  ]
316
  );
317
 
 
 
 
 
 
 
 
 
 
318
  $this->add_control(
319
  'mf_listing_optin_option_icon_color',
320
  [
321
- 'label' =>esc_html__( 'Checkbox Color', 'metform' ),
322
  'type' => Controls_Manager::COLOR,
323
  'scheme' => [
324
  'type' => Scheme_Color::get_type(),
325
  'value' => Scheme_Color::COLOR_1,
326
  ],
327
  'selectors' => [
328
- '{{WRAPPER}} .mf-listing-optin-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}',
329
  ],
330
- 'default' => '#000000',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  ]
332
  );
333
 
@@ -341,21 +402,29 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
341
  'size' => 25,
342
  ],
343
  'selectors' => [
344
- '{{WRAPPER}} .mf-listing-optin-option input[type="checkbox"] + span:before' => 'width: {{SIZE}}{{UNIT}}',
345
  ]
346
  ]
347
  );
348
-
349
-
350
-
351
-
352
  $this->add_group_control(
353
  Group_Control_Typography::get_type(),
354
  [
355
  'name' => 'mf_listing_optin_typgraphy',
356
- 'label' => esc_html__( 'Typography', 'metform' ),
 
 
 
 
 
 
 
 
 
 
 
357
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
358
- 'selector' => '{{WRAPPER}} .mf-checkbox, {{WRAPPER}} .mf-listing-optin-option input[type="checkbox"] + span:before',
359
  ]
360
  );
361
 
@@ -374,7 +443,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
374
 
375
  if($mf_input_label_status == 'yes'){
376
  ?>
377
- <label class="mf-listing-optin-label mf-input-label" for="mf-input-optin-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
378
  <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : ''); ?></span>
379
  </label>
380
  <?php
61
  'inline-block' => esc_html__( 'Left', 'metform' ),
62
  ],
63
  'selectors' => [
64
+ '{{WRAPPER}} .mf-checkbox-label' => 'display: {{VALUE}}; vertical-align: top',
65
  '{{WRAPPER}} .mf-checkbox' => 'display: inline-block',
66
  ],
67
  'condition' => [
106
  ],
107
  'default' => 'inline-block',
108
  'selectors' => [
109
+ '{{WRAPPER}} .mf-checkbox-option' => 'display: {{VALUE}};',
110
  ],
111
  'description' => esc_html__('Checkbox option display style. ', 'metform'),
112
  ]
185
  'value' => Scheme_Color::COLOR_1,
186
  ],
187
  'selectors' => [
188
+ '{{WRAPPER}} .mf-checkbox-label, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}',
189
  ],
190
  'default' => '#000000',
191
  'condition' => [
199
  'name' => 'mf_listing_optin__label_typography',
200
  'label' => esc_html__( 'Typography', 'metform' ),
201
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
202
+ 'selector' => '{{WRAPPER}} .mf-checkbox-label',
203
  'condition' => [
204
  'mf_input_label_status' => 'yes',
205
  ],
212
  'type' => Controls_Manager::DIMENSIONS,
213
  'size_units' => [ 'px', '%', 'em' ],
214
  'selectors' => [
215
+ '{{WRAPPER}} .mf-checkbox-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
216
  ],
217
  'condition' => [
218
  'mf_input_label_status' => 'yes',
226
  'type' => Controls_Manager::DIMENSIONS,
227
  'size_units' => [ 'px', '%', 'em' ],
228
  'selectors' => [
229
+ '{{WRAPPER}} .mf-checkbox-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
230
  ],
231
  'condition' => [
232
  'mf_input_label_status' => 'yes',
239
  [
240
  'name' => 'mf_listing_optin__label_box_shadow',
241
  'label' => esc_html__( 'Box Shadow', 'metform' ),
242
+ 'selector' => '{{WRAPPER}} .mf-checkbox-label',
243
  'condition' => [
244
  'mf_input_label_status' => 'yes',
245
  ],
282
  'type' => Controls_Manager::DIMENSIONS,
283
  'size_units' => [ 'px', '%', 'em' ],
284
  'selectors' => [
285
+ '{{WRAPPER}} .mf-checkbox-option' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
286
  ],
287
  ]
288
  );
293
  'type' => Controls_Manager::DIMENSIONS,
294
  'size_units' => [ 'px', '%', 'em' ],
295
  'selectors' => [
296
+ '{{WRAPPER}} .mf-checkbox-option' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
297
  ],
298
  ]
299
  );
308
  'value' => Scheme_Color::COLOR_1,
309
  ],
310
  'selectors' => [
311
+ '{{WRAPPER}} .mf-checkbox-option' => 'color: {{VALUE}}',
312
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}',
313
  ],
314
  'default' => '#000000',
315
  ]
316
  );
317
 
318
+ $this->start_controls_tabs('mf_listing_optin_option_icon_color_control');
319
+
320
+ $this->start_controls_tab(
321
+ 'mf_listing_optin_option_icon_color_tabnormal',
322
+ [
323
+ 'label' =>esc_html__( 'Normal', 'metform' ),
324
+ ]
325
+ );
326
+
327
  $this->add_control(
328
  'mf_listing_optin_option_icon_color',
329
  [
330
+ 'label' => esc_html__( 'Checkbox Color', 'metform' ),
331
  'type' => Controls_Manager::COLOR,
332
  'scheme' => [
333
  'type' => Scheme_Color::get_type(),
334
  'value' => Scheme_Color::COLOR_1,
335
  ],
336
  'selectors' => [
337
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'color: {{VALUE}}'
338
  ],
339
+ 'default' => '#747474',
340
+ ]
341
+ );
342
+
343
+ $this->end_controls_tab();
344
+
345
+ $this->start_controls_tab(
346
+ 'mf_listing_optin_option_icon_color_tabchecked',
347
+ [
348
+ 'label' =>esc_html__( 'Checked', 'metform' ),
349
+ ]
350
+ );
351
+
352
+ $this->add_control(
353
+ 'mf_listing_optin_option_icon_color_checked',
354
+ [
355
+ 'label' => esc_html__( 'Checkbox Color', 'metform' ),
356
+ 'type' => Controls_Manager::COLOR,
357
+ 'scheme' => [
358
+ 'type' => Scheme_Color::get_type(),
359
+ 'value' => Scheme_Color::COLOR_1,
360
+ ],
361
+ 'selectors' => [
362
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"]:checked + span:before' => 'color: {{VALUE}}'
363
+ ],
364
+ 'default' => '#4285F4',
365
+ ]
366
+ );
367
+
368
+ $this->end_controls_tab();
369
+
370
+ $this->end_controls_tabs();
371
+
372
+ $this->add_responsive_control(
373
+ 'mf_input_option_icon_horizontal_position',
374
+ [
375
+ 'label' => esc_html__( 'Horizontal position of icon', 'metform' ),
376
+ 'type' => Controls_Manager::SLIDER,
377
+ 'size_units' => [ 'px'],
378
+ 'range' => [
379
+ 'px' => [
380
+ 'min' => -50,
381
+ 'max' => 50,
382
+ 'step' => 1,
383
+ ],
384
+ ],
385
+ 'default' => [
386
+ 'unit' => 'px',
387
+ 'size' => 2,
388
+ ],
389
+ 'selectors' => [
390
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'top: {{SIZE}}{{UNIT}}',
391
+ ]
392
  ]
393
  );
394
 
402
  'size' => 25,
403
  ],
404
  'selectors' => [
405
+ '{{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before' => 'width: {{SIZE}}{{UNIT}}',
406
  ]
407
  ]
408
  );
409
+
 
 
 
410
  $this->add_group_control(
411
  Group_Control_Typography::get_type(),
412
  [
413
  'name' => 'mf_listing_optin_typgraphy',
414
+ 'label' => esc_html__( 'Typography for icon', 'metform' ),
415
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
416
+ 'exclude' => [ 'font_family', 'text_transform', 'font_style', 'text_decoration', 'letter_spacing' ],
417
+ 'selector' => '{{WRAPPER}} .mf-checkbox, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span:before',
418
+ ]
419
+ );
420
+
421
+ $this->add_group_control(
422
+ Group_Control_Typography::get_type(),
423
+ [
424
+ 'name' => 'mf_listing_optin_typgraphy_text',
425
+ 'label' => esc_html__( 'Typography for text', 'metform' ),
426
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
427
+ 'selector' => '{{WRAPPER}} .mf-checkbox, {{WRAPPER}} .mf-checkbox-option input[type="checkbox"] + span',
428
  ]
429
  );
430
 
443
 
444
  if($mf_input_label_status == 'yes'){
445
  ?>
446
+ <label class="mf-checkbox-label mf-input-label" for="mf-input-optin-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
447
  <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : ''); ?></span>
448
  </label>
449
  <?php
widgets/multi-select/multi-select.php CHANGED
@@ -150,7 +150,10 @@ Class MetForm_Input_Multi_Select extends Widget_Base{
150
  'help_text_section',
151
  [
152
  'label' => esc_html__( 'Help Text', 'metform' ),
153
- 'tab' => Controls_Manager::TAB_STYLE,
 
 
 
154
  ]
155
  );
156
 
150
  'help_text_section',
151
  [
152
  'label' => esc_html__( 'Help Text', 'metform' ),
153
+ 'tab' => Controls_Manager::TAB_STYLE,
154
+ 'condition' => [
155
+ 'mf_input_help_text!' => ''
156
+ ]
157
  ]
158
  );
159
 
widgets/number/number.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Number extends Widget_Base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/password/password.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Password extends Widget_Base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/radio/radio.php CHANGED
@@ -368,6 +368,15 @@ Class MetForm_Input_Radio extends Widget_Base{
368
  ]
369
  );
370
 
 
 
 
 
 
 
 
 
 
371
  $this->add_control(
372
  'mf_input_option_icon_color',
373
  [
@@ -380,12 +389,64 @@ Class MetForm_Input_Radio extends Widget_Base{
380
  'selectors' => [
381
  '{{WRAPPER}} .mf-radio-option input[type="radio"] + span:before' => 'color: {{VALUE}}'
382
  ],
383
- 'default' => '#000000',
384
  ]
385
  );
386
 
 
 
 
 
 
 
 
 
387
 
388
  $this->add_control(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
  'mf_input_option_space_between',
390
  [
391
  'label' => esc_html__( 'Add space after radio', 'metform' ),
@@ -404,9 +465,20 @@ Class MetForm_Input_Radio extends Widget_Base{
404
  Group_Control_Typography::get_type(),
405
  [
406
  'name' => 'mf_input_typgraphy',
407
- 'label' => esc_html__( 'Typography', 'metform' ),
 
 
 
 
 
 
 
 
 
 
 
408
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
409
- 'selector' => '{{WRAPPER}} .mf-radio, {{WRAPPER}} .mf-radio-option input[type="radio"] + span:before, {{WRAPPER}} .mf-radio-option input[type="radio"] + span',
410
  ]
411
  );
412
 
@@ -418,6 +490,9 @@ Class MetForm_Input_Radio extends Widget_Base{
418
  [
419
  'label' => esc_html__( 'Help Text', 'metform' ),
420
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
421
  ]
422
  );
423
 
368
  ]
369
  );
370
 
371
+ $this->start_controls_tabs('mf_input_option_icon_color_control');
372
+
373
+ $this->start_controls_tab(
374
+ 'mf_input_option_icon_color_tabnormal',
375
+ [
376
+ 'label' =>esc_html__( 'Normal', 'metform' ),
377
+ ]
378
+ );
379
+
380
  $this->add_control(
381
  'mf_input_option_icon_color',
382
  [
389
  'selectors' => [
390
  '{{WRAPPER}} .mf-radio-option input[type="radio"] + span:before' => 'color: {{VALUE}}'
391
  ],
392
+ 'default' => '#747474',
393
  ]
394
  );
395
 
396
+ $this->end_controls_tab();
397
+
398
+ $this->start_controls_tab(
399
+ 'mf_input_option_icon_color_tabchecked',
400
+ [
401
+ 'label' =>esc_html__( 'Checked', 'metform' ),
402
+ ]
403
+ );
404
 
405
  $this->add_control(
406
+ 'mf_input_option_icon_color_checked',
407
+ [
408
+ 'label' => esc_html__( 'Radio Color', 'metform' ),
409
+ 'type' => Controls_Manager::COLOR,
410
+ 'scheme' => [
411
+ 'type' => Scheme_Color::get_type(),
412
+ 'value' => Scheme_Color::COLOR_1,
413
+ ],
414
+ 'selectors' => [
415
+ '{{WRAPPER}} .mf-radio-option input[type="radio"]:checked + span:before' => 'color: {{VALUE}}'
416
+ ],
417
+ 'default' => '#4285F4',
418
+ ]
419
+ );
420
+
421
+ $this->end_controls_tab();
422
+
423
+ $this->end_controls_tabs();
424
+
425
+ $this->add_responsive_control(
426
+ 'mf_input_option_icon_horizontal_position',
427
+ [
428
+ 'label' => esc_html__( 'Horizontal position of icon', 'metform' ),
429
+ 'type' => Controls_Manager::SLIDER,
430
+ 'size_units' => [ 'px'],
431
+ 'range' => [
432
+ 'px' => [
433
+ 'min' => -50,
434
+ 'max' => 50,
435
+ 'step' => 1,
436
+ ],
437
+ ],
438
+ 'default' => [
439
+ 'unit' => 'px',
440
+ 'size' => 2,
441
+ ],
442
+ 'selectors' => [
443
+ '{{WRAPPER}} .mf-radio-option input[type="radio"] + span:before' => 'top: {{SIZE}}{{UNIT}}',
444
+ ]
445
+ ]
446
+ );
447
+
448
+
449
+ $this->add_responsive_control(
450
  'mf_input_option_space_between',
451
  [
452
  'label' => esc_html__( 'Add space after radio', 'metform' ),
465
  Group_Control_Typography::get_type(),
466
  [
467
  'name' => 'mf_input_typgraphy',
468
+ 'label' => esc_html__( 'Typography for icon', 'metform' ),
469
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
470
+ 'exclude' => [ 'font_family', 'text_transform', 'font_style', 'text_decoration', 'letter_spacing' ],
471
+ 'selector' => '{{WRAPPER}} .mf-radio, {{WRAPPER}} .mf-radio-option input[type="radio"] + span:before',
472
+ ]
473
+ );
474
+
475
+ $this->add_group_control(
476
+ Group_Control_Typography::get_type(),
477
+ [
478
+ 'name' => 'mf_input_typgraphy_text',
479
+ 'label' => esc_html__( 'Typography for text', 'metform' ),
480
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
481
+ 'selector' => '{{WRAPPER}} .mf-radio, {{WRAPPER}} .mf-radio-option input[type="radio"] + span',
482
  ]
483
  );
484
 
490
  [
491
  'label' => esc_html__( 'Help Text', 'metform' ),
492
  'tab' => Controls_Manager::TAB_STYLE,
493
+ 'condition' => [
494
+ 'mf_input_help_text!' => ''
495
+ ]
496
  ]
497
  );
498
 
widgets/range/range.php CHANGED
@@ -173,6 +173,9 @@ Class MetForm_Input_Range extends Widget_Base{
173
  [
174
  'label' => esc_html__( 'Help Text', 'metform' ),
175
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
176
  ]
177
  );
178
 
173
  [
174
  'label' => esc_html__( 'Help Text', 'metform' ),
175
  'tab' => Controls_Manager::TAB_STYLE,
176
+ 'condition' => [
177
+ 'mf_input_help_text!' => ''
178
+ ]
179
  ]
180
  );
181
 
widgets/rating/rating.php CHANGED
@@ -285,7 +285,10 @@ Class MetForm_Input_Rating extends Widget_Base{
285
  'help_text_section',
286
  [
287
  'label' => esc_html__( 'Help Text', 'metform' ),
288
- 'tab' => Controls_Manager::TAB_STYLE,
 
 
 
289
  ]
290
  );
291
 
285
  'help_text_section',
286
  [
287
  'label' => esc_html__( 'Help Text', 'metform' ),
288
+ 'tab' => Controls_Manager::TAB_STYLE,
289
+ 'condition' => [
290
+ 'mf_input_help_text!' => ''
291
+ ]
292
  ]
293
  );
294
 
widgets/select/select.php CHANGED
@@ -150,7 +150,10 @@ Class MetForm_Input_Select extends Widget_Base{
150
  'help_text_section',
151
  [
152
  'label' => esc_html__( 'Help Text', 'metform' ),
153
- 'tab' => Controls_Manager::TAB_STYLE,
 
 
 
154
  ]
155
  );
156
 
150
  'help_text_section',
151
  [
152
  'label' => esc_html__( 'Help Text', 'metform' ),
153
+ 'tab' => Controls_Manager::TAB_STYLE,
154
+ 'condition' => [
155
+ 'mf_input_help_text!' => ''
156
+ ]
157
  ]
158
  );
159
 
widgets/switch/switch.php CHANGED
@@ -138,6 +138,9 @@ Class MetForm_Input_Switch extends Widget_Base{
138
  [
139
  'label' => esc_html__( 'Help Text', 'metform' ),
140
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
141
  ]
142
  );
143
 
138
  [
139
  'label' => esc_html__( 'Help Text', 'metform' ),
140
  'tab' => Controls_Manager::TAB_STYLE,
141
+ 'condition' => [
142
+ 'mf_input_help_text!' => ''
143
+ ]
144
  ]
145
  );
146
 
widgets/telephone/telephone.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Telephone extends Widget_Base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/text/text.php CHANGED
@@ -101,6 +101,9 @@ Class MetForm_Input_Text extends Widget_Base{
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
104
  ]
105
  );
106
 
101
  [
102
  'label' => esc_html__( 'Help Text', 'metform' ),
103
  'tab' => Controls_Manager::TAB_STYLE,
104
+ 'condition' => [
105
+ 'mf_input_help_text!' => ''
106
+ ]
107
  ]
108
  );
109
 
widgets/textarea/textarea.php CHANGED
@@ -125,6 +125,9 @@ Class MetForm_Input_Textarea extends Widget_Base{
125
  [
126
  'label' => esc_html__( 'Help Text', 'metform' ),
127
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
128
  ]
129
  );
130
 
125
  [
126
  'label' => esc_html__( 'Help Text', 'metform' ),
127
  'tab' => Controls_Manager::TAB_STYLE,
128
+ 'condition' => [
129
+ 'mf_input_help_text!' => ''
130
+ ]
131
  ]
132
  );
133
 
widgets/time/time.php CHANGED
@@ -100,6 +100,9 @@ Class MetForm_Input_Time extends Widget_Base{
100
  [
101
  'label' => esc_html__( 'Help Text', 'metform' ),
102
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
103
  ]
104
  );
105
 
100
  [
101
  'label' => esc_html__( 'Help Text', 'metform' ),
102
  'tab' => Controls_Manager::TAB_STYLE,
103
+ 'condition' => [
104
+ 'mf_input_help_text!' => ''
105
+ ]
106
  ]
107
  );
108
 
widgets/url/url.php CHANGED
@@ -90,6 +90,9 @@ Class MetForm_Input_Url extends Widget_Base{
90
  [
91
  'label' => esc_html__( 'Help Text', 'metform' ),
92
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
93
  ]
94
  );
95
 
90
  [
91
  'label' => esc_html__( 'Help Text', 'metform' ),
92
  'tab' => Controls_Manager::TAB_STYLE,
93
+ 'condition' => [
94
+ 'mf_input_help_text!' => ''
95
+ ]
96
  ]
97
  );
98