Premium Addons for Elementor - Version 2.0.2

Version Description

  • New: Plugin is now localization and translation ready.
  • Tweak: Default settings for all widgets are enhanced.
  • Tweak: Added responsive controls to all dimensions options.
  • Tweak: Added badge text horizontal and vertical position option for Pricing Table Widget.
  • Tweak: Added Icon row background option for Pricing Table widget.
  • Tweak: Added video text switcher control for Video Box widget.
  • Tweak: Added centered content box for Modal Box widget.
  • Tweak: Added marker click disable when title and description are empty for Google Maps.
  • Fix: Image Button icon slide effect icon selection bug.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

assets/css/premium-addons.css CHANGED
@@ -600,44 +600,23 @@
600
  }
601
 
602
  .countdown span.pre_countdown-amount {
603
- font-size: 36px;
604
  line-height: 1;
605
  }
606
 
607
  .countdown .pre_time-mid {
608
  display: block;
609
  }
610
- /********************************
611
- * Border styles
612
- *********************************/
613
- .solid .pre_countdown-section .pre_countdown-amount {
614
- border-style: solid;
615
- }
616
-
617
- .dashed .pre_countdown-section .pre_countdown-amount {
618
- border-style: dashed;
619
- }
620
-
621
- .dotted .pre_countdown-section .pre_countdown-amount {
622
- border-style: dotted;
623
- }
624
-
625
- .double .pre_countdown-section .pre_countdown-amount {
626
- border-style: double;
627
- }
628
-
629
- .inset .pre_countdown-section .pre_countdown-amount {
630
- border-style: inset;
631
- }
632
-
633
- .outset .pre_countdown-section .pre_countdown-amount {
634
- border-style: outset;
635
- }
636
  /************************************
637
  * Digit and unit styles
638
  *************************************/
639
  .side .pre_countdown-section .pre_countdown-period {
640
  vertical-align: bottom;
 
 
 
 
 
641
  }
642
  /************************************
643
  * Digit and unit side by side
@@ -777,13 +756,16 @@ span.icon.flex-width {
777
  width: auto !important;
778
  height: auto !important;
779
  }
 
 
 
780
  /**************** Premium Image Separator ****************/
781
  /*********************************************************/
782
  /*Image Separator Container Style*/
783
  .premium-image-separator-container{
784
  position: absolute;
785
  width: 100%;
786
- z-index: 99;
787
  top: auto;
788
  }
789
  /*Link on Image Style*/
@@ -884,16 +866,6 @@ button.close {
884
  -webkit-transition: -webkit-transform .3s ease-out;
885
  -o-transition: -o-transform .3s ease-out;
886
  transition: transform .3s ease-out;
887
- -webkit-transform: translate(0, -25%);
888
- -ms-transform: translate(0, -25%);
889
- -o-transform: translate(0, -25%);
890
- transform: translate(0, -25%)
891
- }
892
- .modal.in .modal-dialog {
893
- -webkit-transform: translate(0, 0);
894
- -ms-transform: translate(0, 0);
895
- -o-transform: translate(0, 0);
896
- transform: translate(0, 0)
897
  }
898
  .modal-open .modal {
899
  overflow-x: hidden;
@@ -901,8 +873,12 @@ button.close {
901
  }
902
  .modal-dialog {
903
  position: relative;
 
 
 
 
904
  width: auto;
905
- margin: 10px
906
  }
907
  .modal-content {
908
  position: relative;
@@ -971,12 +947,14 @@ button.close {
971
  top: -9999px;
972
  width: 50px;
973
  height: 50px;
974
- overflow: scroll
 
 
 
975
  }
976
  @media (min-width:768px) {
977
  .modal-dialog {
978
  width: 600px;
979
- margin: 30px auto
980
  }
981
  .modal-content {
982
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
@@ -1267,6 +1245,7 @@ button.close {
1267
  z-index: 1;
1268
  cursor: pointer;
1269
  transform: translate(-50%,-50%);
 
1270
  }
1271
  .premium-video-box-description-container {
1272
  position: absolute;
@@ -1825,7 +1804,7 @@ button.close {
1825
  .premium-suffix-text,
1826
  .premium-fancy-text,
1827
  .premium-prefix-text {
1828
- font-size: 25px;
1829
  }
1830
  /**************** Premium Pricing Table ****************/
1831
  /*******************************************************/
@@ -1833,12 +1812,16 @@ button.close {
1833
  .premium-pricing-table-container {
1834
  text-align: center;
1835
  overflow: hidden;
 
1836
  -webkit-transition: all 0.3s ease-in-out;
1837
  -moz-transition: all 0.3s ease-in-out;
1838
  -o-transition: all 0.3s ease-in-out;
1839
  -ms-transition: all 0.3s ease-in-out;
1840
  transition: all 0.3s ease-in-out;
1841
  }
 
 
 
1842
  .premium-badge-left,
1843
  .premium-badge-right {
1844
  position:absolute;
@@ -1851,7 +1834,7 @@ button.close {
1851
  left: 0;
1852
  }
1853
  .premium-badge-left .corner {
1854
- width: 0;
1855
  height: 0;
1856
  border-top: 150px solid;
1857
  border-bottom: 150px solid transparent;
@@ -1873,6 +1856,7 @@ button.close {
1873
  -webkit-transform: rotate(-45deg);
1874
  transform: rotate(-45deg);
1875
  display:block;
 
1876
  }
1877
  .premium-badge-right span {
1878
  -webkit-transform: rotate(45deg);
@@ -1883,7 +1867,6 @@ button.close {
1883
  position: relative;
1884
  }
1885
  .premium-pricing-icon-container {
1886
- display: inline-block;
1887
  line-height: 0;
1888
  }
1889
  .premium-pricing-button-container {
@@ -1893,6 +1876,12 @@ button.close {
1893
  list-style-type: none;
1894
  margin: 0;
1895
  }
 
 
 
 
 
 
1896
  .premium-pricing-description-container li{
1897
  list-style-position: inside;
1898
  text-indent: -40px;
600
  }
601
 
602
  .countdown span.pre_countdown-amount {
603
+ font-size: 70px;
604
  line-height: 1;
605
  }
606
 
607
  .countdown .pre_time-mid {
608
  display: block;
609
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
610
  /************************************
611
  * Digit and unit styles
612
  *************************************/
613
  .side .pre_countdown-section .pre_countdown-period {
614
  vertical-align: bottom;
615
+
616
+ }
617
+ .countdown .pre_countdown-section .pre_countdown-period {
618
+ font-size: 17px;
619
+ line-height: 3em;
620
  }
621
  /************************************
622
  * Digit and unit side by side
756
  width: auto !important;
757
  height: auto !important;
758
  }
759
+ .premium-counter-area .premium-counter-init {
760
+ font-size: 35px;
761
+ }
762
  /**************** Premium Image Separator ****************/
763
  /*********************************************************/
764
  /*Image Separator Container Style*/
765
  .premium-image-separator-container{
766
  position: absolute;
767
  width: 100%;
768
+ z-index: 2;
769
  top: auto;
770
  }
771
  /*Link on Image Style*/
866
  -webkit-transition: -webkit-transform .3s ease-out;
867
  -o-transition: -o-transform .3s ease-out;
868
  transition: transform .3s ease-out;
 
 
 
 
 
 
 
 
 
 
869
  }
870
  .modal-open .modal {
871
  overflow-x: hidden;
873
  }
874
  .modal-dialog {
875
  position: relative;
876
+ top: 50%;
877
+ left: 50%;
878
+ -webkit-transform: translate(-50%,-50%);
879
+ transform: translate(-50%,-50%);
880
  width: auto;
881
+
882
  }
883
  .modal-content {
884
  position: relative;
947
  top: -9999px;
948
  width: 50px;
949
  height: 50px;
950
+ overflow: scroll;
951
+ }
952
+ .premium-modal-box-text-selector {
953
+ background: none !important;
954
  }
955
  @media (min-width:768px) {
956
  .modal-dialog {
957
  width: 600px;
 
958
  }
959
  .modal-content {
960
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
1245
  z-index: 1;
1246
  cursor: pointer;
1247
  transform: translate(-50%,-50%);
1248
+ background: rgba(252,252,252,0.84);
1249
  }
1250
  .premium-video-box-description-container {
1251
  position: absolute;
1804
  .premium-suffix-text,
1805
  .premium-fancy-text,
1806
  .premium-prefix-text {
1807
+ font-size: 40px;
1808
  }
1809
  /**************** Premium Pricing Table ****************/
1810
  /*******************************************************/
1812
  .premium-pricing-table-container {
1813
  text-align: center;
1814
  overflow: hidden;
1815
+ border: 1px solid #dddddd;
1816
  -webkit-transition: all 0.3s ease-in-out;
1817
  -moz-transition: all 0.3s ease-in-out;
1818
  -o-transition: all 0.3s ease-in-out;
1819
  -ms-transition: all 0.3s ease-in-out;
1820
  transition: all 0.3s ease-in-out;
1821
  }
1822
+ .premium-pricing-table-container:hover {
1823
+ box-shadow: 0 30px 65px 0 rgba(0,0,0,0.21);
1824
+ }
1825
  .premium-badge-left,
1826
  .premium-badge-right {
1827
  position:absolute;
1834
  left: 0;
1835
  }
1836
  .premium-badge-left .corner {
1837
+ width: 0;
1838
  height: 0;
1839
  border-top: 150px solid;
1840
  border-bottom: 150px solid transparent;
1856
  -webkit-transform: rotate(-45deg);
1857
  transform: rotate(-45deg);
1858
  display:block;
1859
+ text-transform: uppercase;
1860
  }
1861
  .premium-badge-right span {
1862
  -webkit-transform: rotate(45deg);
1867
  position: relative;
1868
  }
1869
  .premium-pricing-icon-container {
 
1870
  line-height: 0;
1871
  }
1872
  .premium-pricing-button-container {
1876
  list-style-type: none;
1877
  margin: 0;
1878
  }
1879
+ .premium-pricing-price-container {
1880
+ background: #eaeaea;
1881
+ }
1882
+ .premium-pricing-price-value {
1883
+ font-size: 70px;
1884
+ }
1885
  .premium-pricing-description-container li{
1886
  list-style-position: inside;
1887
  text-indent: -40px;
premium-addons.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: This Plugin Includes Elementor Page Builder’s Premium Addon Elements.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.0.1
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-leap13
@@ -32,8 +32,8 @@ define( 'PREMIUM_ADDONS_FILE', __FILE__ );
32
  add_action( 'plugins_loaded', 'premium_addons_elementor_setup');
33
  function premium_addons_elementor_setup() {
34
  // Loading .mo and.po file from the lang folder
35
- load_plugin_textdomain( 'premium_elementor', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
36
-
37
  // Requires System Info When on Dashboard
38
  if(is_admin() ){
39
  require_once(PREMIUM_ADDONS_PATH . 'includes/system-info.php');
3
  Plugin Name: Premium Addons for Elementor
4
  Description: This Plugin Includes Elementor Page Builder’s Premium Addon Elements.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.0.2
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-leap13
32
  add_action( 'plugins_loaded', 'premium_addons_elementor_setup');
33
  function premium_addons_elementor_setup() {
34
  // Loading .mo and.po file from the lang folder
35
+ load_plugin_textdomain( 'premium_elementor', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
36
+
37
  // Requires System Info When on Dashboard
38
  if(is_admin() ){
39
  require_once(PREMIUM_ADDONS_PATH . 'includes/system-info.php');
readme.txt CHANGED
@@ -73,6 +73,18 @@ Premium Addons for Elementor is light weight and we also gave you the control to
73
 
74
  == Changelog ==
75
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  = 2.0.1 =
77
 
78
  - New: Premium Image Button widget.
73
 
74
  == Changelog ==
75
 
76
+ = 2.0.2 =
77
+
78
+ - New: Plugin is now localization and translation ready.
79
+ - Tweak: Default settings for all widgets are enhanced.
80
+ - Tweak: Added responsive controls to all dimensions options.
81
+ - Tweak: Added badge text horizontal and vertical position option for Pricing Table Widget.
82
+ - Tweak: Added Icon row background option for Pricing Table widget.
83
+ - Tweak: Added video text switcher control for Video Box widget.
84
+ - Tweak: Added centered content box for Modal Box widget.
85
+ - Tweak: Added marker click disable when title and description are empty for Google Maps.
86
+ - Fix: Image Button icon slide effect icon selection bug.
87
+
88
  = 2.0.1 =
89
 
90
  - New: Premium Image Button widget.
widgets/premium-banner.php CHANGED
@@ -224,14 +224,14 @@ class Premium_Banner_Widget extends Widget_Base {
224
  'description' => esc_html__( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium_elementor' ),
225
  'type' => Controls_Manager::SELECT,
226
  'default' => 'h3',
227
- 'options' => [
228
- 'h1' => esc_html( 'H1' ),
229
- 'h2' => esc_html( 'H2' ),
230
- 'h3' => esc_html( 'H3' ),
231
- 'h4' => esc_html( 'H4' ),
232
- 'h5' => esc_html( 'H5' ),
233
- 'h6' => esc_html( 'H6' )
234
- ],
235
  'label_block' => true,
236
  ]
237
  );
224
  'description' => esc_html__( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium_elementor' ),
225
  'type' => Controls_Manager::SELECT,
226
  'default' => 'h3',
227
+ 'options' => [
228
+ 'h1' => 'H1',
229
+ 'h2' => 'H2',
230
+ 'h3' => 'H3',
231
+ 'h4' => 'H4',
232
+ 'h5' => 'H5',
233
+ 'h6' => 'H6',
234
+ ],
235
  'label_block' => true,
236
  ]
237
  );
widgets/premium-blog.php CHANGED
@@ -73,7 +73,7 @@ class Premium_Blog_Widget extends Widget_Base
73
  'bordered' => esc_html__('Bordered', 'premium_elementor'),
74
  'squares' => esc_html__('Squares', 'premium_elementor'),
75
  ],
76
- 'default' => 'none',
77
  'label_block' => true
78
  ]
79
  );
73
  'bordered' => esc_html__('Bordered', 'premium_elementor'),
74
  'squares' => esc_html__('Squares', 'premium_elementor'),
75
  ],
76
+ 'default' => 'framed',
77
  'label_block' => true
78
  ]
79
  );
widgets/premium-button.php CHANGED
@@ -43,7 +43,7 @@ class Premium_Button_Widget extends Widget_Base
43
  [
44
  'label' => esc_html__('Button Text', 'premium_elementor'),
45
  'type' => Controls_Manager::TEXT,
46
- 'default' => esc_html__('Click Here','premium_elementor'),
47
  'label_block' => true,
48
  ]
49
  );
@@ -327,7 +327,7 @@ class Premium_Button_Widget extends Widget_Base
327
  [
328
  'label' => esc_html__('Button Size', 'premium_elementor'),
329
  'type' => Controls_Manager::SELECT,
330
- 'default' => 'sm',
331
  'options' => [
332
  'sm' => esc_html__('Small'),
333
  'md' => esc_html__('Medium'),
@@ -361,7 +361,7 @@ class Premium_Button_Widget extends Widget_Base
361
  'selectors' => [
362
  '{{WRAPPER}} .premium-button-container' => 'text-align: {{VALUE}}',
363
  ],
364
- 'default' => 'left',
365
  ]
366
  );
367
 
@@ -477,7 +477,7 @@ class Premium_Button_Widget extends Widget_Base
477
  );
478
 
479
  /*Button Margin*/
480
- $this->add_control('premium_button_margin_normal',
481
  [
482
  'label' => esc_html__('Margin', 'premium_elementor'),
483
  'type' => Controls_Manager::DIMENSIONS,
@@ -488,7 +488,7 @@ class Premium_Button_Widget extends Widget_Base
488
  ]);
489
 
490
  /*Button Padding*/
491
- $this->add_control('premium_button_padding_normal',
492
  [
493
  'label' => esc_html__('Padding', 'premium_elementor'),
494
  'type' => Controls_Manager::DIMENSIONS,
@@ -579,7 +579,7 @@ class Premium_Button_Widget extends Widget_Base
579
  'type' => Controls_Manager::COLOR,
580
  'scheme' => [
581
  'type' => Scheme_Color::get_type(),
582
- 'value' => Scheme_Color::COLOR_2,
583
  ],
584
  'selectors' => [
585
  '{{WRAPPER}} .premium-button:hover .premium-button-style4-icon-wrapper' => 'color: {{VALUE}};',
@@ -646,7 +646,7 @@ class Premium_Button_Widget extends Widget_Base
646
  );
647
 
648
  /*Button Margin*/
649
- $this->add_control('premium_button_margin_hover',
650
  [
651
  'label' => esc_html__('Margin', 'premium_elementor'),
652
  'type' => Controls_Manager::DIMENSIONS,
@@ -657,7 +657,7 @@ class Premium_Button_Widget extends Widget_Base
657
  ]);
658
 
659
  /*Button Padding*/
660
- $this->add_control('premium_button_padding_hover',
661
  [
662
  'label' => esc_html__('Padding', 'premium_elementor'),
663
  'type' => Controls_Manager::DIMENSIONS,
43
  [
44
  'label' => esc_html__('Button Text', 'premium_elementor'),
45
  'type' => Controls_Manager::TEXT,
46
+ 'default' => esc_html__('Click Me','premium_elementor'),
47
  'label_block' => true,
48
  ]
49
  );
327
  [
328
  'label' => esc_html__('Button Size', 'premium_elementor'),
329
  'type' => Controls_Manager::SELECT,
330
+ 'default' => 'lg',
331
  'options' => [
332
  'sm' => esc_html__('Small'),
333
  'md' => esc_html__('Medium'),
361
  'selectors' => [
362
  '{{WRAPPER}} .premium-button-container' => 'text-align: {{VALUE}}',
363
  ],
364
+ 'default' => 'center',
365
  ]
366
  );
367
 
477
  );
478
 
479
  /*Button Margin*/
480
+ $this->add_responsive_control('premium_button_margin_normal',
481
  [
482
  'label' => esc_html__('Margin', 'premium_elementor'),
483
  'type' => Controls_Manager::DIMENSIONS,
488
  ]);
489
 
490
  /*Button Padding*/
491
+ $this->add_responsive_control('premium_button_padding_normal',
492
  [
493
  'label' => esc_html__('Padding', 'premium_elementor'),
494
  'type' => Controls_Manager::DIMENSIONS,
579
  'type' => Controls_Manager::COLOR,
580
  'scheme' => [
581
  'type' => Scheme_Color::get_type(),
582
+ 'value' => Scheme_Color::COLOR_1,
583
  ],
584
  'selectors' => [
585
  '{{WRAPPER}} .premium-button:hover .premium-button-style4-icon-wrapper' => 'color: {{VALUE}};',
646
  );
647
 
648
  /*Button Margin*/
649
+ $this->add_responsive_control('premium_button_margin_hover',
650
  [
651
  'label' => esc_html__('Margin', 'premium_elementor'),
652
  'type' => Controls_Manager::DIMENSIONS,
657
  ]);
658
 
659
  /*Button Padding*/
660
+ $this->add_responsive_control('premium_button_padding_hover',
661
  [
662
  'label' => esc_html__('Padding', 'premium_elementor'),
663
  'type' => Controls_Manager::DIMENSIONS,
widgets/premium-countdown.php CHANGED
@@ -44,7 +44,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
44
  'd-u-s' => esc_html__( 'Digit and Unit Side by Side', 'premium_elementor' ),
45
  'd-u-u' => esc_html__( 'Digit and Unit Up and Down', 'premium_elementor' ),
46
  ],
47
- 'default' => 'd-u-s'
48
  ]
49
  );
50
 
@@ -56,7 +56,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
56
  'picker_options' => [
57
  'format' => 'Y/m/d H:m:s'
58
  ],
59
- 'default' => date( "Y/m/d H:m:s", strtotime("+ 1 day") ),
60
  'description' => esc_html__( 'Date format is (yyyy/mm/dd). Time format is (hh:mm:ss). Example: 2020-01-01 09:30.', 'boosted-elements-progression' )
61
  ]
62
  );
@@ -91,7 +91,8 @@ class Premium_Counter_Down_Widget extends Widget_Base {
91
  'S' => esc_html__( 'Second', 'premium_elementor' ),
92
  ],
93
  'default' => [
94
- 'D',
 
95
  'H',
96
  'M',
97
  'S'
@@ -273,22 +274,21 @@ class Premium_Counter_Down_Widget extends Widget_Base {
273
  ]
274
  );
275
 
276
- $this->add_control(
277
- 'premium_countdown_second_plural',
278
  [
279
- 'label' => esc_html__( 'Seconds (Plural)', 'premium_elementor' ),
280
  'type' => Controls_Manager::TEXT,
281
- 'default' => 'Seconds'
282
  ]
283
  );
284
-
285
  $this->add_control(
286
- 'premium_countdown_second_singular',
287
  [
288
- 'label' => esc_html__( 'Second (Singular)', 'premium_elementor' ),
289
  'type' => Controls_Manager::TEXT,
290
- 'default' => 'Second',
291
- 'separator' => 'after'
292
  ]
293
  );
294
 
@@ -349,7 +349,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
349
  'label' => esc_html__( 'Background Size', 'premium_elementor' ),
350
  'type' => Controls_Manager::SLIDER,
351
  'default' => [
352
- 'size' => 15
353
  ],
354
  'range' => [
355
  'px' => [
@@ -421,7 +421,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
421
  'label' => esc_html__( 'Separator Width', 'premium_elementor' ),
422
  'type' => Controls_Manager::SLIDER,
423
  'default' => [
424
- 'size' => 30,
425
  ],
426
  'range' => [
427
  'px' => [
44
  'd-u-s' => esc_html__( 'Digit and Unit Side by Side', 'premium_elementor' ),
45
  'd-u-u' => esc_html__( 'Digit and Unit Up and Down', 'premium_elementor' ),
46
  ],
47
+ 'default' => 'd-u-u'
48
  ]
49
  );
50
 
56
  'picker_options' => [
57
  'format' => 'Y/m/d H:m:s'
58
  ],
59
+ 'default' => date( "Y/m/d H:m:s", strtotime("+ 1 Day") ),
60
  'description' => esc_html__( 'Date format is (yyyy/mm/dd). Time format is (hh:mm:ss). Example: 2020-01-01 09:30.', 'boosted-elements-progression' )
61
  ]
62
  );
91
  'S' => esc_html__( 'Second', 'premium_elementor' ),
92
  ],
93
  'default' => [
94
+ 'O',
95
+ 'D',
96
  'H',
97
  'M',
98
  'S'
274
  ]
275
  );
276
 
277
+ $this->add_control(
278
+ 'premium_countdown_second_singular',
279
  [
280
+ 'label' => esc_html__( 'Second (Singular)', 'premium_elementor' ),
281
  'type' => Controls_Manager::TEXT,
282
+ 'default' => 'Second',
283
  ]
284
  );
285
+
286
  $this->add_control(
287
+ 'premium_countdown_second_plural',
288
  [
289
+ 'label' => esc_html__( 'Seconds (Plural)', 'premium_elementor' ),
290
  'type' => Controls_Manager::TEXT,
291
+ 'default' => 'Seconds'
 
292
  ]
293
  );
294
 
349
  'label' => esc_html__( 'Background Size', 'premium_elementor' ),
350
  'type' => Controls_Manager::SLIDER,
351
  'default' => [
352
+ 'size' => 30
353
  ],
354
  'range' => [
355
  'px' => [
421
  'label' => esc_html__( 'Separator Width', 'premium_elementor' ),
422
  'type' => Controls_Manager::SLIDER,
423
  'default' => [
424
+ 'size' => 40,
425
  ],
426
  'range' => [
427
  'px' => [
widgets/premium-counter.php CHANGED
@@ -76,7 +76,7 @@ class Premium_Counter_Widget extends Widget_Base {
76
  'label' => esc_html__( 'Icon Size', 'premium_elementor' ),
77
  'type' => Controls_Manager::SLIDER,
78
  'default' => [
79
- 'size' => 25,
80
  ],
81
  'range' => [
82
  'px' => [
76
  'label' => esc_html__( 'Icon Size', 'premium_elementor' ),
77
  'type' => Controls_Manager::SLIDER,
78
  'default' => [
79
+ 'size' => 70,
80
  ],
81
  'range' => [
82
  'px' => [
widgets/premium-dual-header.php CHANGED
@@ -72,12 +72,12 @@ class Premium_Dual_Header_Widget extends Widget_Base
72
  'type' => Controls_Manager::SELECT,
73
  'default' => 'h2',
74
  'options' => [
75
- 'h1' => esc_html__('H1'),
76
- 'h2' => esc_html__('H2'),
77
- 'h3' => esc_html__('H3'),
78
- 'h4' => esc_html__('H4'),
79
- 'h5' => esc_html__('H5'),
80
- 'h6' => esc_html__('H6')
81
  ],
82
  'label_block' => true,
83
  ]
@@ -101,12 +101,12 @@ class Premium_Dual_Header_Widget extends Widget_Base
101
  'type' => Controls_Manager::SELECT,
102
  'default' => 'h2',
103
  'options' => [
104
- 'h1' => esc_html__('H1'),
105
- 'h2' => esc_html__('H2'),
106
- 'h3' => esc_html__('H3'),
107
- 'h4' => esc_html__('H4'),
108
- 'h5' => esc_html__('H5'),
109
- 'h6' => esc_html__('H6')
110
  ],
111
  'label_block' => true,
112
  ]
72
  'type' => Controls_Manager::SELECT,
73
  'default' => 'h2',
74
  'options' => [
75
+ 'h1' => 'H1',
76
+ 'h2' => 'H2',
77
+ 'h3' => 'H3',
78
+ 'h4' => 'H4',
79
+ 'h5' => 'H5',
80
+ 'h6' => 'H6',
81
  ],
82
  'label_block' => true,
83
  ]
101
  'type' => Controls_Manager::SELECT,
102
  'default' => 'h2',
103
  'options' => [
104
+ 'h1' => 'H1',
105
+ 'h2' => 'H2',
106
+ 'h3' => 'H3',
107
+ 'h4' => 'H4',
108
+ 'h5' => 'H5',
109
+ 'h6' => 'H6',
110
  ],
111
  'label_block' => true,
112
  ]
widgets/premium-image-button.php CHANGED
@@ -43,7 +43,7 @@ class Premium_Image_Button_Widget extends Widget_Base
43
  [
44
  'label' => esc_html__('Button Text', 'premium_elementor'),
45
  'type' => Controls_Manager::TEXT,
46
- 'default' => esc_html__('Click Here','premium_elementor'),
47
  'label_block' => true,
48
  ]
49
  );
@@ -275,7 +275,7 @@ class Premium_Image_Button_Widget extends Widget_Base
275
  [
276
  'label' => esc_html__('Button Size', 'premium_elementor'),
277
  'type' => Controls_Manager::SELECT,
278
- 'default' => 'sm',
279
  'options' => [
280
  'sm' => esc_html__('Small'),
281
  'md' => esc_html__('Medium'),
@@ -309,7 +309,7 @@ class Premium_Image_Button_Widget extends Widget_Base
309
  'selectors' => [
310
  '{{WRAPPER}} .premium-image-button-container' => 'text-align: {{VALUE}}',
311
  ],
312
- 'default' => 'left',
313
  ]
314
  );
315
 
@@ -421,7 +421,7 @@ class Premium_Image_Button_Widget extends Widget_Base
421
  );
422
 
423
  /*Button Margin*/
424
- $this->add_control('premium_image_button_margin_normal',
425
  [
426
  'label' => esc_html__('Margin', 'premium_elementor'),
427
  'type' => Controls_Manager::DIMENSIONS,
@@ -432,7 +432,7 @@ class Premium_Image_Button_Widget extends Widget_Base
432
  ]);
433
 
434
  /*Button Padding*/
435
- $this->add_control('premium_image_button_padding_normal',
436
  [
437
  'label' => esc_html__('Padding', 'premium_elementor'),
438
  'type' => Controls_Manager::DIMENSIONS,
@@ -616,7 +616,7 @@ class Premium_Image_Button_Widget extends Widget_Base
616
  );
617
 
618
  /*Button Margin*/
619
- $this->add_control('premium_image_button_margin_hover',
620
  [
621
  'label' => esc_html__('Margin', 'premium_elementor'),
622
  'type' => Controls_Manager::DIMENSIONS,
@@ -627,7 +627,7 @@ class Premium_Image_Button_Widget extends Widget_Base
627
  ]);
628
 
629
  /*Button Padding*/
630
- $this->add_control('premium_image_button_padding_hover',
631
  [
632
  'label' => esc_html__('Padding', 'premium_elementor'),
633
  'type' => Controls_Manager::DIMENSIONS,
@@ -726,7 +726,7 @@ class Premium_Image_Button_Widget extends Widget_Base
726
  ?>
727
  <div class="premium-image-button-container">
728
  <a class="premium-image-button <?php echo esc_attr($button_size); ?> <?php echo esc_attr($style_dir); ?>" href="<?php echo esc_url($image_link); ?>"<?php if(!empty($settings['premium_image_button_link']['is_external'])) : ?>target="_blank"<?php endif; ?><?php if(!empty($settings['premium_image_button_link']['nofollow'])) : ?>rel="nofollow"<?php endif; ?><?php if(!empty($settings['premium_image_button_event_function']) && $settings['premium_image_button_event_switcher']) : ?> onclick="<?php echo esc_js($image_event); ?>"<?php endif ?>><div class="premium-image-button-text-icon-wrapper"><?php if($settings['premium_image_button_icon_switcher'] && $settings['premium_image_button_hover_effect'] != 'style4' &&$settings['premium_image_button_icon_position'] == 'before' &&!empty($settings['premium_image_button_icon_selection'])) : ?><i class="fa <?php echo esc_attr($button_icon); ?>"></i><?php endif; ?><span <?php echo $this->get_render_attribute_string( 'premium_image_button_text' ); ?>><?php echo $button_text; ?></span><?php if($settings['premium_image_button_icon_switcher'] && $settings['premium_image_button_hover_effect'] != 'style4' &&$settings['premium_image_button_icon_position'] == 'after' && !empty($settings['premium_image_button_icon_selection'])) : ?><i class="fa <?php echo esc_attr($button_icon); ?>"></i><?php endif; ?></div>
729
- <?php if($settings['premium_image_button_hover_effect'] == 'style4') : ?><div class="premium-image-button-style4-icon-wrapper <?php echo esc_attr($settings['premium_image_button_style4_dir']); ?>"><i class="fa <?php echo esc_attr($button_icon); ?>"></i></div><?php endif; ?>
730
  </a>
731
 
732
  </div>
43
  [
44
  'label' => esc_html__('Button Text', 'premium_elementor'),
45
  'type' => Controls_Manager::TEXT,
46
+ 'default' => esc_html__('Click Me','premium_elementor'),
47
  'label_block' => true,
48
  ]
49
  );
275
  [
276
  'label' => esc_html__('Button Size', 'premium_elementor'),
277
  'type' => Controls_Manager::SELECT,
278
+ 'default' => 'lg',
279
  'options' => [
280
  'sm' => esc_html__('Small'),
281
  'md' => esc_html__('Medium'),
309
  'selectors' => [
310
  '{{WRAPPER}} .premium-image-button-container' => 'text-align: {{VALUE}}',
311
  ],
312
+ 'default' => 'center',
313
  ]
314
  );
315
 
421
  );
422
 
423
  /*Button Margin*/
424
+ $this->add_responsive_control('premium_image_button_margin_normal',
425
  [
426
  'label' => esc_html__('Margin', 'premium_elementor'),
427
  'type' => Controls_Manager::DIMENSIONS,
432
  ]);
433
 
434
  /*Button Padding*/
435
+ $this->add_responsive_control('premium_image_button_padding_normal',
436
  [
437
  'label' => esc_html__('Padding', 'premium_elementor'),
438
  'type' => Controls_Manager::DIMENSIONS,
616
  );
617
 
618
  /*Button Margin*/
619
+ $this->add_responsive_control('premium_image_button_margin_hover',
620
  [
621
  'label' => esc_html__('Margin', 'premium_elementor'),
622
  'type' => Controls_Manager::DIMENSIONS,
627
  ]);
628
 
629
  /*Button Padding*/
630
+ $this->add_responsive_control('premium_image_button_padding_hover',
631
  [
632
  'label' => esc_html__('Padding', 'premium_elementor'),
633
  'type' => Controls_Manager::DIMENSIONS,
726
  ?>
727
  <div class="premium-image-button-container">
728
  <a class="premium-image-button <?php echo esc_attr($button_size); ?> <?php echo esc_attr($style_dir); ?>" href="<?php echo esc_url($image_link); ?>"<?php if(!empty($settings['premium_image_button_link']['is_external'])) : ?>target="_blank"<?php endif; ?><?php if(!empty($settings['premium_image_button_link']['nofollow'])) : ?>rel="nofollow"<?php endif; ?><?php if(!empty($settings['premium_image_button_event_function']) && $settings['premium_image_button_event_switcher']) : ?> onclick="<?php echo esc_js($image_event); ?>"<?php endif ?>><div class="premium-image-button-text-icon-wrapper"><?php if($settings['premium_image_button_icon_switcher'] && $settings['premium_image_button_hover_effect'] != 'style4' &&$settings['premium_image_button_icon_position'] == 'before' &&!empty($settings['premium_image_button_icon_selection'])) : ?><i class="fa <?php echo esc_attr($button_icon); ?>"></i><?php endif; ?><span <?php echo $this->get_render_attribute_string( 'premium_image_button_text' ); ?>><?php echo $button_text; ?></span><?php if($settings['premium_image_button_icon_switcher'] && $settings['premium_image_button_hover_effect'] != 'style4' &&$settings['premium_image_button_icon_position'] == 'after' && !empty($settings['premium_image_button_icon_selection'])) : ?><i class="fa <?php echo esc_attr($button_icon); ?>"></i><?php endif; ?></div>
729
+ <?php if($settings['premium_image_button_hover_effect'] == 'style4') : ?><div class="premium-image-button-style4-icon-wrapper <?php echo esc_attr($settings['premium_image_button_style4_dir']); ?>"><i class="fa <?php echo esc_attr($settings['premium_image_button_style4_icon_selection']); ?>"></i></div><?php endif; ?>
730
  </a>
731
 
732
  </div>
widgets/premium-imageseparator.php CHANGED
@@ -52,11 +52,15 @@ class Premium_Image_Separator_Widget extends Widget_Base
52
  );
53
 
54
  /*Separator Image Size*/
55
- $this->add_control('premium_image_separator_image_size',
56
  [
57
  'label' => esc_html__('Image Size', 'premium_elementor'),
58
  'type' => Controls_Manager::SLIDER,
59
  'size_units' => ['px', '%', "em"],
 
 
 
 
60
  'range' => [
61
  'px' => [
62
  'min' => 1,
52
  );
53
 
54
  /*Separator Image Size*/
55
+ $this->add_responsive_control('premium_image_separator_image_size',
56
  [
57
  'label' => esc_html__('Image Size', 'premium_elementor'),
58
  'type' => Controls_Manager::SLIDER,
59
  'size_units' => ['px', '%', "em"],
60
+ 'default' => [
61
+ 'unit' => 'px',
62
+ 'size' => 200,
63
+ ],
64
  'range' => [
65
  'px' => [
66
  'min' => 1,
widgets/premium-maps.php CHANGED
@@ -559,12 +559,16 @@ class Premium_Maps_Widget extends Widget_Base
559
  content: "<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><p class='premium-maps-info-desc'>" + locations[i][1] + "</p></div>"
560
  });
561
  <?php if( $settings['premium_maps_marker_open'] == 'yes' ) : ?>
 
562
  infowindow.open(map, marker);
 
563
  <?php endif; ?>
564
  google.maps.event.addListener(marker, 'click', (function(marker, i) {
565
  return function() {
 
566
  infowindow.setContent("<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><p class='premium-maps-info-desc'>" + locations[i][1] + "</p></div>");
567
  infowindow.open(map, marker);
 
568
  }
569
  })(marker, i));
570
  }
559
  content: "<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><p class='premium-maps-info-desc'>" + locations[i][1] + "</p></div>"
560
  });
561
  <?php if( $settings['premium_maps_marker_open'] == 'yes' ) : ?>
562
+ if(locations[i][0] !== '' || locations[i][1] !== '') {
563
  infowindow.open(map, marker);
564
+ }
565
  <?php endif; ?>
566
  google.maps.event.addListener(marker, 'click', (function(marker, i) {
567
  return function() {
568
+ if(locations[i][0] !== '' || locations[i][1] !== '') {
569
  infowindow.setContent("<div class='premium-maps-info-container'><p class='premium-maps-info-title'>" + locations[i][0] + "</p><p class='premium-maps-info-desc'>" + locations[i][1] + "</p></div>");
570
  infowindow.open(map, marker);
571
+ }
572
  }
573
  })(marker, i));
574
  }
widgets/premium-modalbox.php CHANGED
@@ -61,7 +61,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
61
  $this->add_control('premium_modal_box_button_text',
62
  [
63
  'label' => esc_html__('Button Text', 'premium_elementor'),
64
- 'default' => 'Open Modal',
65
  'type' => Controls_Manager::TEXT,
66
  'label_block' => true,
67
  'condition' => [
@@ -82,7 +82,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
82
  'block' => esc_html('Block','premium-elementor'),
83
  ],
84
  'label_block' => true,
85
- 'default' => 'sm',
86
  'condition' => [
87
  'premium_modal_box_display_on' => 'button'
88
  ],
@@ -110,7 +110,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
110
  'label' => esc_html__('Text', 'premium_elementor'),
111
  'type' => Controls_Manager::TEXT,
112
  'label_block' => true,
113
- 'default' => esc_html__('Open Modal', 'premium_elementor'),
114
  'condition' => [
115
  'premium_modal_box_display_on' => 'text',
116
  ]
@@ -329,10 +329,10 @@ class Premium_Modal_Box_Widget extends Widget_Base
329
  'value' => Scheme_Color::COLOR_1,
330
  ],
331
  'selectors' => [
332
- '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector' => 'background-color: {{VALUE}};',
333
  ],
334
  'condition' => [
335
- 'premium_modal_box_display_on' => ['button', 'text'],
336
  ]
337
  ]
338
  );
@@ -355,6 +355,9 @@ class Premium_Modal_Box_Widget extends Widget_Base
355
  'label' => esc_html__('Border Radius', 'premium_elementor'),
356
  'type' => Controls_Manager::SLIDER,
357
  'size_units' => ['px', '%', 'em'],
 
 
 
358
  'selectors' => [
359
  '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector, {{WRAPPER}} .premium-modal-box-img-selector' => 'border-radius:{{SIZE}}{{UNIT}};',
360
  ],
@@ -371,6 +374,13 @@ class Premium_Modal_Box_Widget extends Widget_Base
371
  'label' => esc_html__('Padding', 'premium_elementor'),
372
  'type' => Controls_Manager::DIMENSIONS,
373
  'size_units' => [ 'px', 'em', '%' ],
 
 
 
 
 
 
 
374
  'selectors' => [
375
  '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
376
  ],
@@ -421,10 +431,10 @@ class Premium_Modal_Box_Widget extends Widget_Base
421
  'label' => esc_html__('Background Color', 'premium_elementor'),
422
  'type' => Controls_Manager::COLOR,
423
  'selectors' => [
424
- '{{WRAPPER}} .premium-modal-box-button-selector:hover,{{WRAPPER}} .premium-modal-box-text-selector:hover, {{WRAPPER}} .premium-modal-box-img-selector:hover' => 'background: {{VALUE}};',
425
  ],
426
  'condition' => [
427
- 'premium_modal_box_display_on' => ['button', 'text'],
428
  ]
429
  ]
430
  );
@@ -627,7 +637,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
627
  );
628
 
629
  /*Close Button Size*/
630
- $this->add_control('premium_modal_box_upper_close_button_size',
631
  [
632
  'label' => esc_html__('Size', 'premium_elementor'),
633
  'type' => Controls_Manager::SLIDER,
@@ -787,7 +797,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
787
  );
788
 
789
  /*Close Button Size*/
790
- $this->add_control('premium_modal_box_lower_close_button_width',
791
  [
792
  'label' => esc_html__('Size', 'premium_elementor'),
793
  'type' => Controls_Manager::SLIDER,
61
  $this->add_control('premium_modal_box_button_text',
62
  [
63
  'label' => esc_html__('Button Text', 'premium_elementor'),
64
+ 'default' => 'Premium Modal Box',
65
  'type' => Controls_Manager::TEXT,
66
  'label_block' => true,
67
  'condition' => [
82
  'block' => esc_html('Block','premium-elementor'),
83
  ],
84
  'label_block' => true,
85
+ 'default' => 'lg',
86
  'condition' => [
87
  'premium_modal_box_display_on' => 'button'
88
  ],
110
  'label' => esc_html__('Text', 'premium_elementor'),
111
  'type' => Controls_Manager::TEXT,
112
  'label_block' => true,
113
+ 'default' => esc_html__('Premium Modal Box', 'premium_elementor'),
114
  'condition' => [
115
  'premium_modal_box_display_on' => 'text',
116
  ]
329
  'value' => Scheme_Color::COLOR_1,
330
  ],
331
  'selectors' => [
332
+ '{{WRAPPER}} .premium-modal-box-button-selector' => 'background-color: {{VALUE}};',
333
  ],
334
  'condition' => [
335
+ 'premium_modal_box_display_on' => 'button',
336
  ]
337
  ]
338
  );
355
  'label' => esc_html__('Border Radius', 'premium_elementor'),
356
  'type' => Controls_Manager::SLIDER,
357
  'size_units' => ['px', '%', 'em'],
358
+ 'default' => [
359
+ 'size' => 0
360
+ ],
361
  'selectors' => [
362
  '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector, {{WRAPPER}} .premium-modal-box-img-selector' => 'border-radius:{{SIZE}}{{UNIT}};',
363
  ],
374
  'label' => esc_html__('Padding', 'premium_elementor'),
375
  'type' => Controls_Manager::DIMENSIONS,
376
  'size_units' => [ 'px', 'em', '%' ],
377
+ 'default' => [
378
+ 'unit' => 'px',
379
+ 'top' => 20,
380
+ 'right' => 30,
381
+ 'bottom'=> 20,
382
+ 'left' => 30,
383
+ ],
384
  'selectors' => [
385
  '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
386
  ],
431
  'label' => esc_html__('Background Color', 'premium_elementor'),
432
  'type' => Controls_Manager::COLOR,
433
  'selectors' => [
434
+ '{{WRAPPER}} .premium-modal-box-button-selector:hover' => 'background: {{VALUE}};',
435
  ],
436
  'condition' => [
437
+ 'premium_modal_box_display_on' => 'button',
438
  ]
439
  ]
440
  );
637
  );
638
 
639
  /*Close Button Size*/
640
+ $this->add_responsive_control('premium_modal_box_upper_close_button_size',
641
  [
642
  'label' => esc_html__('Size', 'premium_elementor'),
643
  'type' => Controls_Manager::SLIDER,
797
  );
798
 
799
  /*Close Button Size*/
800
+ $this->add_responsive_control('premium_modal_box_lower_close_button_width',
801
  [
802
  'label' => esc_html__('Size', 'premium_elementor'),
803
  'type' => Controls_Manager::SLIDER,
widgets/premium-person.php CHANGED
@@ -50,7 +50,7 @@ class Premium_Person_Widget extends Widget_Base
50
  ]
51
  );
52
 
53
- $this->add_control('premium_person_image_width',
54
  [
55
  'label' => esc_html__('Image Width', 'premium_elementor'),
56
  'type' => Controls_Manager::SLIDER,
@@ -77,7 +77,7 @@ class Premium_Person_Widget extends Widget_Base
77
  ]
78
  );
79
 
80
- $this->add_control('premium_person_image_height',
81
  [
82
  'label' => esc_html__('Image Height', 'premium_elementor'),
83
  'type' => Controls_Manager::SLIDER,
@@ -144,12 +144,12 @@ class Premium_Person_Widget extends Widget_Base
144
  'type' => Controls_Manager::SELECT,
145
  'default' => 'h2',
146
  'options' => [
147
- 'h1' => esc_html__('H1'),
148
- 'h2' => esc_html__('H2'),
149
- 'h3' => esc_html__('H3'),
150
- 'h4' => esc_html__('H4'),
151
- 'h5' => esc_html__('H5'),
152
- 'h6' => esc_html__('H6')
153
  ],
154
  'label_block' => true,
155
  ]
@@ -170,7 +170,7 @@ class Premium_Person_Widget extends Widget_Base
170
  [
171
  'label' => esc_html__('Job Title Tag', 'premium_elementor'),
172
  'type' => Controls_Manager::SELECT,
173
- 'default' => 'h3',
174
  'options' => [
175
  'h1' => esc_html__('H1'),
176
  'h2' => esc_html__('H2'),
@@ -315,7 +315,7 @@ class Premium_Person_Widget extends Widget_Base
315
  [
316
  'label' => esc_html__('Content Background Color', 'premium_elementor'),
317
  'type' => Controls_Manager::COLOR,
318
- 'default' => '#f5f5f5',
319
  'selectors' => [
320
  '{{WRAPPER}} .premium-person-info' => 'background-color: {{VALUE}};',
321
  ]
50
  ]
51
  );
52
 
53
+ $this->add_responsive_control('premium_person_image_width',
54
  [
55
  'label' => esc_html__('Image Width', 'premium_elementor'),
56
  'type' => Controls_Manager::SLIDER,
77
  ]
78
  );
79
 
80
+ $this->add_responsive_control('premium_person_image_height',
81
  [
82
  'label' => esc_html__('Image Height', 'premium_elementor'),
83
  'type' => Controls_Manager::SLIDER,
144
  'type' => Controls_Manager::SELECT,
145
  'default' => 'h2',
146
  'options' => [
147
+ 'h1' => 'H1',
148
+ 'h2' => 'H2',
149
+ 'h3' => 'H3',
150
+ 'h4' => 'H4',
151
+ 'h5' => 'H5',
152
+ 'h6' => 'H6',
153
  ],
154
  'label_block' => true,
155
  ]
170
  [
171
  'label' => esc_html__('Job Title Tag', 'premium_elementor'),
172
  'type' => Controls_Manager::SELECT,
173
+ 'default' => 'h4',
174
  'options' => [
175
  'h1' => esc_html__('H1'),
176
  'h2' => esc_html__('H2'),
315
  [
316
  'label' => esc_html__('Content Background Color', 'premium_elementor'),
317
  'type' => Controls_Manager::COLOR,
318
+ 'default' => 'rgba(245,245,245,0.97)',
319
  'selectors' => [
320
  '{{WRAPPER}} .premium-person-info' => 'background-color: {{VALUE}};',
321
  ]
widgets/premium-pricing-table.php CHANGED
@@ -89,6 +89,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
89
  [
90
  'label' => esc_html__('Badge', 'premium_elementor'),
91
  'type' => Controls_Manager::SWITCHER,
 
92
  ]
93
  );
94
 
@@ -128,7 +129,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
128
  $this->add_control('premium_pricing_table_title_text',
129
  [
130
  'label' => esc_html__('Title', 'premium_elementor'),
131
- 'default' => 'Classic',
132
  'type' => Controls_Manager::TEXT,
133
  'label_block' => true,
134
  ]
@@ -140,14 +141,14 @@ class Premium_Pricing_Table_Widget extends Widget_Base
140
  'label' => esc_html__('Title HTML Tag', 'premium_elementor'),
141
  'description' => esc_html__( 'Select HTML tag for the title', 'premium_elementor' ),
142
  'type' => Controls_Manager::SELECT,
143
- 'default' => 'h2',
144
  'options' => [
145
- 'h1' => esc_html('H1'),
146
- 'h2' => esc_html('H2'),
147
- 'h3' => esc_html('H3'),
148
- 'h4' => esc_html('H4'),
149
- 'h5' => esc_html('H5'),
150
- 'h6' => esc_html('H6'),
151
  ],
152
  'label_block' => true,
153
  ]
@@ -200,7 +201,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
200
  $this->add_control('premium_pricing_table_price_duration',
201
  [
202
  'label' => esc_html__('Duration', 'premium_elementor'),
203
- 'default' => 'month',
204
  'type' => Controls_Manager::TEXT,
205
  'label_block' => true,
206
  ]
@@ -225,15 +226,15 @@ class Premium_Pricing_Table_Widget extends Widget_Base
225
  'default' => [
226
  [
227
  'premium_pricing_list_item_icon' => 'fa fa-check',
228
- 'premium_pricing_list_item_text' => esc_html__( 'Item 1', 'premium_elementor' ),
229
  ],
230
  [
231
  'premium_pricing_list_item_icon' => 'fa fa-check',
232
- 'premium_pricing_list_item_text' => esc_html__( 'Item 2', 'premium_elementor' ),
233
  ],
234
  [
235
  'premium_pricing_list_item_icon' => 'fa fa-check',
236
- 'premium_pricing_list_item_text' => esc_html__( 'Item 3', 'premium_elementor' ),
237
  ],
238
  ],
239
  'fields' => [
@@ -316,7 +317,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
316
  $this->add_control('premium_pricing_table_button_text',
317
  [
318
  'label' => esc_html__('Text', 'premium_elementor'),
319
- 'default' => esc_html__('Buy Now' , 'premium_elementor'),
320
  'type' => Controls_Manager::TEXT,
321
  'label_block' => true,
322
  ]
@@ -408,13 +409,13 @@ class Premium_Pricing_Table_Widget extends Widget_Base
408
  $this->add_control('premium_pricing_table_badge_text',
409
  [
410
  'label' => esc_html__('Badge Text', 'premium_elementor'),
411
- 'default' => esc_html__('20% Offer', 'premium_elementor'),
412
  'type' => Controls_Manager::TEXT,
413
  'label_block' => true,
414
  ]
415
  );
416
 
417
- $this->add_control('premium_pricing_table_badge_left_size',
418
  [
419
  'label' => esc_html__('Badge Size', 'premium_elementor'),
420
  'type' => Controls_Manager::SLIDER,
@@ -512,7 +513,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
512
  );
513
 
514
  /*Box Margin*/
515
- $this->add_control('premium_pricing_box_margin',
516
  [
517
  'label' => esc_html__('Margin', 'premium_elementor'),
518
  'type' => Controls_Manager::DIMENSIONS,
@@ -523,16 +524,16 @@ class Premium_Pricing_Table_Widget extends Widget_Base
523
  ]);
524
 
525
  /*Box Padding*/
526
- $this->add_control('premium_pricing_box_padding',
527
  [
528
  'label' => esc_html__('Padding', 'premium_elementor'),
529
  'type' => Controls_Manager::DIMENSIONS,
530
  'size_units' => ['px', 'em', '%'],
531
  'default' => [
532
- 'top' => 0,
533
- 'right' => 64,
534
- 'bottom'=> 64,
535
- 'left' => 64,
536
  'unit' => 'px',
537
  ],
538
  'selectors' => [
@@ -589,7 +590,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
589
  );
590
 
591
  /*Box Margin*/
592
- $this->add_control('premium_pricing_box_margin_hover',
593
  [
594
  'label' => esc_html__('Margin', 'premium_elementor'),
595
  'type' => Controls_Manager::DIMENSIONS,
@@ -600,16 +601,16 @@ class Premium_Pricing_Table_Widget extends Widget_Base
600
  ]);
601
 
602
  /*Box Padding*/
603
- $this->add_control('premium_pricing_box_padding_hover',
604
  [
605
  'label' => esc_html__('Padding', 'premium_elementor'),
606
  'type' => Controls_Manager::DIMENSIONS,
607
  'size_units' => ['px', 'em', '%'],
608
  'default' => [
609
- 'top' => 0,
610
- 'right' => 64,
611
- 'bottom'=> 64,
612
- 'left' => 64,
613
  'unit' => 'px',
614
  ],
615
  'selectors' => [
@@ -646,7 +647,21 @@ class Premium_Pricing_Table_Widget extends Widget_Base
646
  'value' => Scheme_Color::COLOR_1,
647
  ],
648
  'selectors' => [
649
- '{{WRAPPER}} .premium-pricing-icon-container' => 'color: {{VALUE}};'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
650
  ]
651
  ]
652
  );
@@ -696,7 +711,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
696
  );
697
 
698
  /*Icon Margin*/
699
- $this->add_control('premium_pricing_icon_margin',
700
  [
701
  'label' => esc_html__('Margin', 'premium_elementor'),
702
  'type' => Controls_Manager::DIMENSIONS,
@@ -715,7 +730,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
715
  );
716
 
717
  /*Icon Padding*/
718
- $this->add_control('premium_pricing_icon_padding',
719
  [
720
  'label' => esc_html__('Padding', 'premium_elementor'),
721
  'type' => Controls_Manager::DIMENSIONS,
@@ -784,7 +799,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
784
  );
785
 
786
  /*Title Margin*/
787
- $this->add_control('premium_pricing_title_margin',
788
  [
789
  'label' => esc_html__('Margin', 'premium_elementor'),
790
  'type' => Controls_Manager::DIMENSIONS,
@@ -803,7 +818,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
803
  );
804
 
805
  /*Title Padding*/
806
- $this->add_control('premium_pricing_title_padding',
807
  [
808
  'label' => esc_html__('Padding', 'premium_elementor'),
809
  'type' => Controls_Manager::DIMENSIONS,
@@ -811,7 +826,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
811
  'default' => [
812
  'top' => 0,
813
  'right' => 0,
814
- 'bottom'=> 0,
815
  'left' => 0,
816
  'unit' => 'px',
817
  ],
@@ -888,7 +903,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
888
  ]
889
  );
890
 
891
- $this->add_control('premium_pricing_currency_margin',
892
  [
893
  'label' => esc_html__('Currency Margin', 'premium_elementor'),
894
  'type' => Controls_Manager::DIMENSIONS,
@@ -927,7 +942,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
927
  ]
928
  );
929
 
930
- $this->add_control('premium_pricing_price_margin',
931
  [
932
  'label' => esc_html__('Price Margin', 'premium_elementor'),
933
  'type' => Controls_Manager::DIMENSIONS,
@@ -965,11 +980,18 @@ class Premium_Pricing_Table_Widget extends Widget_Base
965
  ]
966
  );
967
 
968
- $this->add_control('premium_pricing_sep_margin',
969
  [
970
  'label' => esc_html__('Divider Margin', 'premium_elementor'),
971
  'type' => Controls_Manager::DIMENSIONS,
972
  'size_units' => ['px', 'em', '%'],
 
 
 
 
 
 
 
973
  'selectors' => [
974
  '{{WRAPPER}} .premium-pricing-price-separator' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
975
  ]
@@ -1003,7 +1025,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1003
  ]
1004
  );
1005
 
1006
- $this->add_control('premium_pricing_dur_margin',
1007
  [
1008
  'label' => esc_html__('Duration Margin', 'premium_elementor'),
1009
  'type' => Controls_Manager::DIMENSIONS,
@@ -1027,7 +1049,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1027
  );
1028
 
1029
  /*Price Margin*/
1030
- $this->add_control('premium_pricing_price_container_margin',
1031
  [
1032
  'label' => esc_html__('Margin', 'premium_elementor'),
1033
  'type' => Controls_Manager::DIMENSIONS,
@@ -1047,7 +1069,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1047
 
1048
 
1049
  /*Price Padding*/
1050
- $this->add_control('premium_pricing_price_padding',
1051
  [
1052
  'label' => esc_html__('Padding', 'premium_elementor'),
1053
  'type' => Controls_Manager::DIMENSIONS,
@@ -1174,15 +1196,15 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1174
  );
1175
 
1176
  /*List Margin*/
1177
- $this->add_control('premium_pricing_list_margin',
1178
  [
1179
  'label' => esc_html__('Margin', 'premium_elementor'),
1180
  'type' => Controls_Manager::DIMENSIONS,
1181
  'size_units' => ['px', 'em', '%'],
1182
  'default' => [
1183
- 'top' => 16,
1184
  'right' => 0,
1185
- 'bottom' => 16,
1186
  'left' => 0,
1187
  'unit' => 'px',
1188
  ],
@@ -1192,7 +1214,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1192
  ]);
1193
 
1194
  /*List Padding*/
1195
- $this->add_control('premium_pricing_list_padding',
1196
  [
1197
  'label' => esc_html__('Padding', 'premium_elementor'),
1198
  'type' => Controls_Manager::DIMENSIONS,
@@ -1252,7 +1274,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1252
  );
1253
 
1254
  /*Description Margin*/
1255
- $this->add_control('premium_pricing_desc_margin',
1256
  [
1257
  'label' => esc_html__('Margin', 'premium_elementor'),
1258
  'type' => Controls_Manager::DIMENSIONS,
@@ -1272,7 +1294,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1272
 
1273
 
1274
  /*Description Padding*/
1275
- $this->add_control('premium_pricing_desc_padding',
1276
  [
1277
  'label' => esc_html__('Padding', 'premium_elementor'),
1278
  'type' => Controls_Manager::DIMENSIONS,
@@ -1371,7 +1393,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1371
  );
1372
 
1373
  /*Button Margin*/
1374
- $this->add_control('premium_pricing_button_margin',
1375
  [
1376
  'label' => esc_html__('Margin', 'premium_elementor'),
1377
  'type' => Controls_Manager::DIMENSIONS,
@@ -1382,11 +1404,18 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1382
  ]);
1383
 
1384
  /*Button Padding*/
1385
- $this->add_control('premium_pricing_button_padding',
1386
  [
1387
  'label' => esc_html__('Padding', 'premium_elementor'),
1388
  'type' => Controls_Manager::DIMENSIONS,
1389
  'size_units' => ['px', 'em', '%'],
 
 
 
 
 
 
 
1390
  'selectors' => [
1391
  '{{WRAPPER}} .premium-pricing-price-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1392
  ]
@@ -1441,7 +1470,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1441
  );
1442
 
1443
  /*Button Margin*/
1444
- $this->add_control('premium_pricing_button_margin_hover',
1445
  [
1446
  'label' => esc_html__('Margin', 'premium_elementor'),
1447
  'type' => Controls_Manager::DIMENSIONS,
@@ -1452,10 +1481,17 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1452
  ]);
1453
 
1454
  /*Button Padding*/
1455
- $this->add_control('premium_pricing_button_padding_hover',
1456
  [
1457
  'label' => esc_html__('Padding', 'premium_elementor'),
1458
  'type' => Controls_Manager::DIMENSIONS,
 
 
 
 
 
 
 
1459
  'size_units' => ['px', 'em', '%'],
1460
  'selectors' => [
1461
  '{{WRAPPER}} .premium-pricing-price-button:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
@@ -1539,6 +1575,54 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1539
  ]
1540
  );
1541
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1542
  $this->end_controls_section();
1543
 
1544
 
89
  [
90
  'label' => esc_html__('Badge', 'premium_elementor'),
91
  'type' => Controls_Manager::SWITCHER,
92
+ 'default' => 'yes',
93
  ]
94
  );
95
 
129
  $this->add_control('premium_pricing_table_title_text',
130
  [
131
  'label' => esc_html__('Title', 'premium_elementor'),
132
+ 'default' => 'Pricing Table',
133
  'type' => Controls_Manager::TEXT,
134
  'label_block' => true,
135
  ]
141
  'label' => esc_html__('Title HTML Tag', 'premium_elementor'),
142
  'description' => esc_html__( 'Select HTML tag for the title', 'premium_elementor' ),
143
  'type' => Controls_Manager::SELECT,
144
+ 'default' => 'h3',
145
  'options' => [
146
+ 'h1' => 'H1',
147
+ 'h2' => 'H2',
148
+ 'h3' => 'H3',
149
+ 'h4' => 'H4',
150
+ 'h5' => 'H5',
151
+ 'h6' => 'H6',
152
  ],
153
  'label_block' => true,
154
  ]
201
  $this->add_control('premium_pricing_table_price_duration',
202
  [
203
  'label' => esc_html__('Duration', 'premium_elementor'),
204
+ 'default' => 'm',
205
  'type' => Controls_Manager::TEXT,
206
  'label_block' => true,
207
  ]
226
  'default' => [
227
  [
228
  'premium_pricing_list_item_icon' => 'fa fa-check',
229
+ 'premium_pricing_list_item_text' => esc_html__( 'List Item #1', 'premium_elementor' ),
230
  ],
231
  [
232
  'premium_pricing_list_item_icon' => 'fa fa-check',
233
+ 'premium_pricing_list_item_text' => esc_html__( 'List Item #2', 'premium_elementor' ),
234
  ],
235
  [
236
  'premium_pricing_list_item_icon' => 'fa fa-check',
237
+ 'premium_pricing_list_item_text' => esc_html__( 'List Item #3', 'premium_elementor' ),
238
  ],
239
  ],
240
  'fields' => [
317
  $this->add_control('premium_pricing_table_button_text',
318
  [
319
  'label' => esc_html__('Text', 'premium_elementor'),
320
+ 'default' => esc_html__('Get Started' , 'premium_elementor'),
321
  'type' => Controls_Manager::TEXT,
322
  'label_block' => true,
323
  ]
409
  $this->add_control('premium_pricing_table_badge_text',
410
  [
411
  'label' => esc_html__('Badge Text', 'premium_elementor'),
412
+ 'default' => esc_html__('Popular', 'premium_elementor'),
413
  'type' => Controls_Manager::TEXT,
414
  'label_block' => true,
415
  ]
416
  );
417
 
418
+ $this->add_responsive_control('premium_pricing_table_badge_left_size',
419
  [
420
  'label' => esc_html__('Badge Size', 'premium_elementor'),
421
  'type' => Controls_Manager::SLIDER,
513
  );
514
 
515
  /*Box Margin*/
516
+ $this->add_responsive_control('premium_pricing_box_margin',
517
  [
518
  'label' => esc_html__('Margin', 'premium_elementor'),
519
  'type' => Controls_Manager::DIMENSIONS,
524
  ]);
525
 
526
  /*Box Padding*/
527
+ $this->add_responsive_control('premium_pricing_box_padding',
528
  [
529
  'label' => esc_html__('Padding', 'premium_elementor'),
530
  'type' => Controls_Manager::DIMENSIONS,
531
  'size_units' => ['px', 'em', '%'],
532
  'default' => [
533
+ 'top' => 40,
534
+ 'right' => 0,
535
+ 'bottom'=> 0,
536
+ 'left' => 0,
537
  'unit' => 'px',
538
  ],
539
  'selectors' => [
590
  );
591
 
592
  /*Box Margin*/
593
+ $this->add_responsive_control('premium_pricing_box_margin_hover',
594
  [
595
  'label' => esc_html__('Margin', 'premium_elementor'),
596
  'type' => Controls_Manager::DIMENSIONS,
601
  ]);
602
 
603
  /*Box Padding*/
604
+ $this->add_responsive_control('premium_pricing_box_padding_hover',
605
  [
606
  'label' => esc_html__('Padding', 'premium_elementor'),
607
  'type' => Controls_Manager::DIMENSIONS,
608
  'size_units' => ['px', 'em', '%'],
609
  'default' => [
610
+ 'top' => 40,
611
+ 'right' => 0,
612
+ 'bottom'=> 0,
613
+ 'left' => 0,
614
  'unit' => 'px',
615
  ],
616
  'selectors' => [
647
  'value' => Scheme_Color::COLOR_1,
648
  ],
649
  'selectors' => [
650
+ '{{WRAPPER}} .premium-pricing-icon-container i' => 'color: {{VALUE}};'
651
+ ]
652
+ ]
653
+ );
654
+
655
+ $this->add_control('premium_pricing_icon_back_color',
656
+ [
657
+ 'label' => esc_html__('Icon Background Color', 'premium_elementor'),
658
+ 'type' => Controls_Manager::COLOR,
659
+ 'scheme' => [
660
+ 'type' => Scheme_Color::get_type(),
661
+ 'value' => Scheme_Color::COLOR_2,
662
+ ],
663
+ 'selectors' => [
664
+ '{{WRAPPER}} .premium-pricing-icon-container i' => 'background-color: {{VALUE}};'
665
  ]
666
  ]
667
  );
711
  );
712
 
713
  /*Icon Margin*/
714
+ $this->add_responsive_control('premium_pricing_icon_margin',
715
  [
716
  'label' => esc_html__('Margin', 'premium_elementor'),
717
  'type' => Controls_Manager::DIMENSIONS,
730
  );
731
 
732
  /*Icon Padding*/
733
+ $this->add_responsive_control('premium_pricing_icon_padding',
734
  [
735
  'label' => esc_html__('Padding', 'premium_elementor'),
736
  'type' => Controls_Manager::DIMENSIONS,
799
  );
800
 
801
  /*Title Margin*/
802
+ $this->add_responsive_control('premium_pricing_title_margin',
803
  [
804
  'label' => esc_html__('Margin', 'premium_elementor'),
805
  'type' => Controls_Manager::DIMENSIONS,
818
  );
819
 
820
  /*Title Padding*/
821
+ $this->add_responsive_control('premium_pricing_title_padding',
822
  [
823
  'label' => esc_html__('Padding', 'premium_elementor'),
824
  'type' => Controls_Manager::DIMENSIONS,
826
  'default' => [
827
  'top' => 0,
828
  'right' => 0,
829
+ 'bottom'=> 20,
830
  'left' => 0,
831
  'unit' => 'px',
832
  ],
903
  ]
904
  );
905
 
906
+ $this->add_responsive_control('premium_pricing_currency_margin',
907
  [
908
  'label' => esc_html__('Currency Margin', 'premium_elementor'),
909
  'type' => Controls_Manager::DIMENSIONS,
942
  ]
943
  );
944
 
945
+ $this->add_responsive_control('premium_pricing_price_margin',
946
  [
947
  'label' => esc_html__('Price Margin', 'premium_elementor'),
948
  'type' => Controls_Manager::DIMENSIONS,
980
  ]
981
  );
982
 
983
+ $this->add_responsive_control('premium_pricing_sep_margin',
984
  [
985
  'label' => esc_html__('Divider Margin', 'premium_elementor'),
986
  'type' => Controls_Manager::DIMENSIONS,
987
  'size_units' => ['px', 'em', '%'],
988
+ 'default' => [
989
+ 'top' => 0,
990
+ 'right' => 0,
991
+ 'bottom'=> 20,
992
+ 'left' => -15,
993
+ 'unit' => 'px',
994
+ ],
995
  'selectors' => [
996
  '{{WRAPPER}} .premium-pricing-price-separator' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
997
  ]
1025
  ]
1026
  );
1027
 
1028
+ $this->add_responsive_control('premium_pricing_dur_margin',
1029
  [
1030
  'label' => esc_html__('Duration Margin', 'premium_elementor'),
1031
  'type' => Controls_Manager::DIMENSIONS,
1049
  );
1050
 
1051
  /*Price Margin*/
1052
+ $this->add_responsive_control('premium_pricing_price_container_margin',
1053
  [
1054
  'label' => esc_html__('Margin', 'premium_elementor'),
1055
  'type' => Controls_Manager::DIMENSIONS,
1069
 
1070
 
1071
  /*Price Padding*/
1072
+ $this->add_responsive_control('premium_pricing_price_padding',
1073
  [
1074
  'label' => esc_html__('Padding', 'premium_elementor'),
1075
  'type' => Controls_Manager::DIMENSIONS,
1196
  );
1197
 
1198
  /*List Margin*/
1199
+ $this->add_responsive_control('premium_pricing_list_margin',
1200
  [
1201
  'label' => esc_html__('Margin', 'premium_elementor'),
1202
  'type' => Controls_Manager::DIMENSIONS,
1203
  'size_units' => ['px', 'em', '%'],
1204
  'default' => [
1205
+ 'top' => 30,
1206
  'right' => 0,
1207
+ 'bottom' => 30,
1208
  'left' => 0,
1209
  'unit' => 'px',
1210
  ],
1214
  ]);
1215
 
1216
  /*List Padding*/
1217
+ $this->add_responsive_control('premium_pricing_list_padding',
1218
  [
1219
  'label' => esc_html__('Padding', 'premium_elementor'),
1220
  'type' => Controls_Manager::DIMENSIONS,
1274
  );
1275
 
1276
  /*Description Margin*/
1277
+ $this->add_responsive_control('premium_pricing_desc_margin',
1278
  [
1279
  'label' => esc_html__('Margin', 'premium_elementor'),
1280
  'type' => Controls_Manager::DIMENSIONS,
1294
 
1295
 
1296
  /*Description Padding*/
1297
+ $this->add_responsive_control('premium_pricing_desc_padding',
1298
  [
1299
  'label' => esc_html__('Padding', 'premium_elementor'),
1300
  'type' => Controls_Manager::DIMENSIONS,
1393
  );
1394
 
1395
  /*Button Margin*/
1396
+ $this->add_responsive_control('premium_pricing_button_margin',
1397
  [
1398
  'label' => esc_html__('Margin', 'premium_elementor'),
1399
  'type' => Controls_Manager::DIMENSIONS,
1404
  ]);
1405
 
1406
  /*Button Padding*/
1407
+ $this->add_responsive_control('premium_pricing_button_padding',
1408
  [
1409
  'label' => esc_html__('Padding', 'premium_elementor'),
1410
  'type' => Controls_Manager::DIMENSIONS,
1411
  'size_units' => ['px', 'em', '%'],
1412
+ 'default' => [
1413
+ 'top' => 20,
1414
+ 'right' => 0,
1415
+ 'bottom' => 20,
1416
+ 'left' => 0,
1417
+ 'unit' => 'px',
1418
+ ],
1419
  'selectors' => [
1420
  '{{WRAPPER}} .premium-pricing-price-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1421
  ]
1470
  );
1471
 
1472
  /*Button Margin*/
1473
+ $this->add_responsive_control('premium_pricing_button_margin_hover',
1474
  [
1475
  'label' => esc_html__('Margin', 'premium_elementor'),
1476
  'type' => Controls_Manager::DIMENSIONS,
1481
  ]);
1482
 
1483
  /*Button Padding*/
1484
+ $this->add_responsive_control('premium_pricing_button_padding_hover',
1485
  [
1486
  'label' => esc_html__('Padding', 'premium_elementor'),
1487
  'type' => Controls_Manager::DIMENSIONS,
1488
+ 'default' => [
1489
+ 'top' => 20,
1490
+ 'right' => 0,
1491
+ 'bottom' => 20,
1492
+ 'left' => 0,
1493
+ 'unit' => 'px',
1494
+ ],
1495
  'size_units' => ['px', 'em', '%'],
1496
  'selectors' => [
1497
  '{{WRAPPER}} .premium-pricing-price-button:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1575
  ]
1576
  );
1577
 
1578
+ $this->add_responsive_control('premium_pricing_table_badge_right_top',
1579
+ [
1580
+ 'label' => esc_html__('Vertical Position', 'premium_elementor'),
1581
+ 'type' => Controls_Manager::SLIDER,
1582
+ 'range' => [
1583
+ 'px'=> [
1584
+ 'min' => 1,
1585
+ 'max' => 200,
1586
+ ]
1587
+ ],
1588
+ 'selectors' => [
1589
+ '{{WRAPPER}} .premium-pricing-badge-container .corner span' => 'top: {{SIZE}}px;'
1590
+ ],
1591
+ ]
1592
+ );
1593
+
1594
+ $this->add_responsive_control('premium_pricing_table_badge_right_right',
1595
+ [
1596
+ 'label' => esc_html__('Horizontal Position', 'premium_elementor'),
1597
+ 'type' => Controls_Manager::SLIDER,
1598
+ 'range' => [
1599
+ 'px'=> [
1600
+ 'min' => 1,
1601
+ 'max' => 170,
1602
+ ]
1603
+ ],
1604
+ 'selectors' => [
1605
+ '{{WRAPPER}} .premium-badge-right .corner span' => 'right: {{SIZE}}px;'
1606
+ ],
1607
+ 'condition' => [
1608
+ 'premium_pricing_table_badge_position' => 'right'
1609
+ ]
1610
+ ]
1611
+ );
1612
+
1613
+ $this->add_responsive_control('premium_pricing_table_badge_right_left',
1614
+ [
1615
+ 'label' => esc_html__('Horizontal Position', 'premium_elementor'),
1616
+ 'type' => Controls_Manager::SLIDER,
1617
+ 'selectors' => [
1618
+ '{{WRAPPER}} .premium-badge-left .corner span' => 'left: {{SIZE}}px;'
1619
+ ],
1620
+ 'condition' => [
1621
+ 'premium_pricing_table_badge_position' => 'left'
1622
+ ]
1623
+ ]
1624
+ );
1625
+
1626
  $this->end_controls_section();
1627
 
1628
 
widgets/premium-progressbar.php CHANGED
@@ -104,7 +104,7 @@ class Premium_Progressbar_Widget extends Widget_Base
104
  /*Start progressbar Settings*/
105
  $this->start_controls_section('premium_progressbar_progress_bar_settings',
106
  [
107
- 'label' => esc_html__('Progress Bar Style', 'premium_elementor'),
108
  'tab' => Controls_Manager::TAB_STYLE,
109
  ]
110
  );
@@ -115,7 +115,7 @@ class Premium_Progressbar_Widget extends Widget_Base
115
  'label' => esc_html__('Height (Pixels)', 'premium_elementor'),
116
  'type' => Controls_Manager::SLIDER,
117
  'default' => [
118
- 'size' => '20',
119
  ],
120
  'label_block' => true,
121
  'selectors' => [
@@ -198,7 +198,6 @@ class Premium_Progressbar_Widget extends Widget_Base
198
  [
199
  'label' => esc_html__('Left Label', 'premium_elementor'),
200
  'type' => Controls_Manager::HEADING,
201
- 'separator' => 'after',
202
  ]
203
  );
204
 
@@ -228,7 +227,7 @@ class Premium_Progressbar_Widget extends Widget_Base
228
  );
229
 
230
  /*Left Label Margin*/
231
- $this->add_control('premium_progressbar_left_label_margin',
232
  [
233
  'label' => esc_html__('Margin', 'premium_elementor'),
234
  'type' => Controls_Manager::DIMENSIONS,
@@ -243,6 +242,7 @@ class Premium_Progressbar_Widget extends Widget_Base
243
  [
244
  'label' => esc_html__('Right Label', 'premium_elementor'),
245
  'type' => Controls_Manager::HEADING,
 
246
  ]
247
  );
248
 
@@ -272,7 +272,7 @@ class Premium_Progressbar_Widget extends Widget_Base
272
  );
273
 
274
  /*Right Label Margin*/
275
- $this->add_control('premium_progressbar_right_label_margin',
276
  [
277
  'label' => esc_html__('Margin', 'premium_elementor'),
278
  'type' => Controls_Manager::DIMENSIONS,
104
  /*Start progressbar Settings*/
105
  $this->start_controls_section('premium_progressbar_progress_bar_settings',
106
  [
107
+ 'label' => esc_html__('Progress Bar', 'premium_elementor'),
108
  'tab' => Controls_Manager::TAB_STYLE,
109
  ]
110
  );
115
  'label' => esc_html__('Height (Pixels)', 'premium_elementor'),
116
  'type' => Controls_Manager::SLIDER,
117
  'default' => [
118
+ 'size' => 25,
119
  ],
120
  'label_block' => true,
121
  'selectors' => [
198
  [
199
  'label' => esc_html__('Left Label', 'premium_elementor'),
200
  'type' => Controls_Manager::HEADING,
 
201
  ]
202
  );
203
 
227
  );
228
 
229
  /*Left Label Margin*/
230
+ $this->add_responsive_control('premium_progressbar_left_label_margin',
231
  [
232
  'label' => esc_html__('Margin', 'premium_elementor'),
233
  'type' => Controls_Manager::DIMENSIONS,
242
  [
243
  'label' => esc_html__('Right Label', 'premium_elementor'),
244
  'type' => Controls_Manager::HEADING,
245
+ 'separator' => 'before'
246
  ]
247
  );
248
 
272
  );
273
 
274
  /*Right Label Margin*/
275
+ $this->add_responsive_control('premium_progressbar_right_label_margin',
276
  [
277
  'label' => esc_html__('Margin', 'premium_elementor'),
278
  'type' => Controls_Manager::DIMENSIONS,
widgets/premium-testimonials.php CHANGED
@@ -82,15 +82,15 @@ class Premium_Testimonials_Widget extends Widget_Base
82
  'label' => esc_html__('Name Tag', 'premium_elementor'),
83
  'type' => Controls_Manager::SELECT,
84
  'description' => esc_html__( 'Select a heading tag for author name', 'premium_elementor' ),
85
- 'options' => [
86
- 'h1' => esc_html('H1'),
87
- 'h2' => esc_html('H2'),
88
- 'h3' => esc_html('H3'),
89
- 'h4' => esc_html('H4'),
90
- 'h5' => esc_html('H5'),
91
- 'h6' => esc_html('H6'),
92
  ],
93
- 'default' => 'h4',
94
  'label_block' => true,
95
  ]
96
  );
@@ -201,7 +201,7 @@ class Premium_Testimonials_Widget extends Widget_Base
201
  'size_units' => ['px', 'em'],
202
  'default' => [
203
  'unit' => 'px',
204
- 'size' => 75,
205
  ],
206
  'range' => [
207
  'px'=> [
@@ -374,7 +374,7 @@ class Premium_Testimonials_Widget extends Widget_Base
374
 
375
 
376
  /*Testimonial Text Margin*/
377
- $this->add_control('premium_testimonial_margin',
378
  [
379
  'label' => esc_html__('Testimonial Text Margin', 'premium_elementor'),
380
  'type' => Controls_Manager::DIMENSIONS,
@@ -408,7 +408,7 @@ class Premium_Testimonials_Widget extends Widget_Base
408
  [
409
  'label' => esc_html__('Quotes Color','premium_elementor'),
410
  'type' => Controls_Manager::COLOR,
411
- 'default' => 'rgba(110,193,228,0.5)',
412
  'selectors' => [
413
  '{{WRAPPER}} .fa' => 'color: {{VALUE}};',
414
  ]
@@ -438,13 +438,13 @@ class Premium_Testimonials_Widget extends Widget_Base
438
  );
439
 
440
  /*Upper Quote Position*/
441
- $this->add_control('premium_testimonial_upper_quote_position',
442
  [
443
  'label' => esc_html__('Upper Quote Position', 'premium_elementor'),
444
  'type' => Controls_Manager::DIMENSIONS,
445
  'size_units' => ['px', 'em', '%'],
446
  'default' =>[
447
- 'top' => 50,
448
  'left' => 12 ,
449
  'unit' => 'px',
450
  ],
@@ -455,7 +455,7 @@ class Premium_Testimonials_Widget extends Widget_Base
455
  );
456
 
457
  /*Lower Quote Position*/
458
- $this->add_control('premium_testimonial_lower_quote_position',
459
  [
460
  'label' => esc_html__('Lower Quote Position', 'premium_elementor'),
461
  'type' => Controls_Manager::DIMENSIONS,
82
  'label' => esc_html__('Name Tag', 'premium_elementor'),
83
  'type' => Controls_Manager::SELECT,
84
  'description' => esc_html__( 'Select a heading tag for author name', 'premium_elementor' ),
85
+ 'options' => [
86
+ 'h1' => 'H1',
87
+ 'h2' => 'H2',
88
+ 'h3' => 'H3',
89
+ 'h4' => 'H4',
90
+ 'h5' => 'H5',
91
+ 'h6' => 'H6',
92
  ],
93
+ 'default' => 'h3',
94
  'label_block' => true,
95
  ]
96
  );
201
  'size_units' => ['px', 'em'],
202
  'default' => [
203
  'unit' => 'px',
204
+ 'size' => 110,
205
  ],
206
  'range' => [
207
  'px'=> [
374
 
375
 
376
  /*Testimonial Text Margin*/
377
+ $this->add_responsive_control('premium_testimonial_margin',
378
  [
379
  'label' => esc_html__('Testimonial Text Margin', 'premium_elementor'),
380
  'type' => Controls_Manager::DIMENSIONS,
408
  [
409
  'label' => esc_html__('Quotes Color','premium_elementor'),
410
  'type' => Controls_Manager::COLOR,
411
+ 'default' => 'rgba(110,193,228,0.2)',
412
  'selectors' => [
413
  '{{WRAPPER}} .fa' => 'color: {{VALUE}};',
414
  ]
438
  );
439
 
440
  /*Upper Quote Position*/
441
+ $this->add_responsive_control('premium_testimonial_upper_quote_position',
442
  [
443
  'label' => esc_html__('Upper Quote Position', 'premium_elementor'),
444
  'type' => Controls_Manager::DIMENSIONS,
445
  'size_units' => ['px', 'em', '%'],
446
  'default' =>[
447
+ 'top' => 70,
448
  'left' => 12 ,
449
  'unit' => 'px',
450
  ],
455
  );
456
 
457
  /*Lower Quote Position*/
458
+ $this->add_responsive_control('premium_testimonial_lower_quote_position',
459
  [
460
  'label' => esc_html__('Lower Quote Position', 'premium_elementor'),
461
  'type' => Controls_Manager::DIMENSIONS,
widgets/premium-title.php CHANGED
@@ -94,12 +94,12 @@ class Premium_Title_Widget extends Widget_Base
94
  'type' => Controls_Manager::SELECT,
95
  'default' => esc_html__('h2','premium_elementor'),
96
  'options' => [
97
- 'h1' => esc_html__('H1','premium_elementor'),
98
- 'h2' => esc_html__('H2','premium_elementor'),
99
- 'h3' => esc_html__('H3','premium_elementor'),
100
- 'h4' => esc_html__('H4','premium_elementor'),
101
- 'h5' => esc_html__('H5','premium_elementor'),
102
- 'h6' => esc_html__('H6','premium_elementor'),
103
  ],
104
  ]
105
  );
@@ -415,7 +415,7 @@ class Premium_Title_Widget extends Widget_Base
415
  );
416
 
417
  /*Title Margin*/
418
- $this->add_control('premium_title_margin',
419
  [
420
  'label' => esc_html__('Margin', 'premium_elementor'),
421
  'type' => Controls_Manager::DIMENSIONS,
94
  'type' => Controls_Manager::SELECT,
95
  'default' => esc_html__('h2','premium_elementor'),
96
  'options' => [
97
+ 'h1' => 'H1',
98
+ 'h2' => 'H2',
99
+ 'h3' => 'H3',
100
+ 'h4' => 'H4',
101
+ 'h5' => 'H5',
102
+ 'h6' => 'H6',
103
  ],
104
  ]
105
  );
415
  );
416
 
417
  /*Title Margin*/
418
+ $this->add_responsive_control('premium_title_margin',
419
  [
420
  'label' => esc_html__('Margin', 'premium_elementor'),
421
  'type' => Controls_Manager::DIMENSIONS,
widgets/premium-videobox.php CHANGED
@@ -73,7 +73,7 @@ class Premium_Video_Box_Widget extends Widget_Base
73
 
74
  $this->add_control('premium_video_box_icon_ver_position',
75
  [
76
- 'label' => esc_html__('Vertical Position', 'premium_elementor'),
77
  'type' => Controls_Manager::SLIDER,
78
  'label_block' => true,
79
  'default' => [
@@ -90,7 +90,7 @@ class Premium_Video_Box_Widget extends Widget_Base
90
 
91
  $this->add_control('premium_video_box_icon_hor_position',
92
  [
93
- 'label' => esc_html__('Horizontal Position', 'premium_elementor'),
94
  'type' => Controls_Manager::SLIDER,
95
  'label_block' => true,
96
  'default' => [
@@ -112,14 +112,24 @@ class Premium_Video_Box_Widget extends Widget_Base
112
  $this->start_controls_section('premium_video_box_description_text_section',
113
  [
114
  'label' => esc_html__('Video Text', 'premium_elementor'),
115
- ]
116
  );
117
 
 
 
 
 
 
 
 
118
  /*Description Text*/
119
  $this->add_control('premium_video_box_description_text',
120
  [
121
  'label' => esc_html__('Text', 'premium_elementor'),
122
  'type' => Controls_Manager::TEXTAREA,
 
 
 
123
  'label_block' => true,
124
  ]
125
  );
@@ -127,12 +137,15 @@ class Premium_Video_Box_Widget extends Widget_Base
127
  /*Description Top Position*/
128
  $this->add_control('premium_video_box_description_ver_position',
129
  [
130
- 'label' => esc_html__('Vertical Position', 'premium_elementor'),
131
  'type' => Controls_Manager::SLIDER,
132
  'label_block' => true,
133
  'default' => [
134
  'size' => 60,
135
  ],
 
 
 
136
  'selectors' => [
137
  '{{WRAPPER}} .premium-video-box-description-container' => 'top: {{SIZE}}%;',
138
  ]
@@ -141,12 +154,15 @@ class Premium_Video_Box_Widget extends Widget_Base
141
 
142
  $this->add_control('premium_video_box_description_hor_position',
143
  [
144
- 'label' => esc_html__('Horizontal Position', 'premium_elementor'),
145
  'type' => Controls_Manager::SLIDER,
146
  'label_block' => true,
147
  'default' => [
148
  'size' => 50,
149
  ],
 
 
 
150
  'selectors' => [
151
  '{{WRAPPER}} .premium-video-box-description-container' => 'left: {{SIZE}}%;',
152
  ]
@@ -304,6 +320,10 @@ class Premium_Video_Box_Widget extends Widget_Base
304
  [
305
  'label' => esc_html__('Icon Size', 'premium_elementor'),
306
  'type' => Controls_Manager::SLIDER,
 
 
 
 
307
  'size_units' => ['px', '%', 'em'],
308
  'selectors' => [
309
  '{{WRAPPER}} .premium-video-box-play-icon' => 'font-size: {{SIZE}}{{UNIT}};',
@@ -335,6 +355,10 @@ class Premium_Video_Box_Widget extends Widget_Base
335
  [
336
  'label' => esc_html__('Border Radius', 'premium_elementor'),
337
  'type' => Controls_Manager::SLIDER,
 
 
 
 
338
  'size_units' => ['px', '%', 'em'],
339
  'selectors' => [
340
  '{{WRAPPER}} .premium-video-box-play-icon-container' => 'border-radius: {{SIZE}}{{UNIT}};',
@@ -347,6 +371,13 @@ class Premium_Video_Box_Widget extends Widget_Base
347
  [
348
  'label' => esc_html__('Padding', 'premium_elementor'),
349
  'type' => Controls_Manager::DIMENSIONS,
 
 
 
 
 
 
 
350
  'size_units' => [ 'px', 'em', '%' ],
351
  'selectors' => [
352
  '{{WRAPPER}} .premium-video-box-play-icon ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
@@ -389,6 +420,9 @@ class Premium_Video_Box_Widget extends Widget_Base
389
  [
390
  'label' => esc_html__('Video Text', 'premium_elementor'),
391
  'tab' => Controls_Manager::TAB_STYLE,
 
 
 
392
  ]
393
  );
394
 
73
 
74
  $this->add_control('premium_video_box_icon_ver_position',
75
  [
76
+ 'label' => esc_html__('Vertical Position (%)', 'premium_elementor'),
77
  'type' => Controls_Manager::SLIDER,
78
  'label_block' => true,
79
  'default' => [
90
 
91
  $this->add_control('premium_video_box_icon_hor_position',
92
  [
93
+ 'label' => esc_html__('Horizontal Position (%)', 'premium_elementor'),
94
  'type' => Controls_Manager::SLIDER,
95
  'label_block' => true,
96
  'default' => [
112
  $this->start_controls_section('premium_video_box_description_text_section',
113
  [
114
  'label' => esc_html__('Video Text', 'premium_elementor'),
115
+ ]
116
  );
117
 
118
+ $this->add_control('premium_video_box_video_text_switcher',
119
+ [
120
+ 'label' => esc_html__('Video Text', 'premium_elementor'),
121
+ 'type' => Controls_Manager::SWITCHER,
122
+ ]
123
+ );
124
+
125
  /*Description Text*/
126
  $this->add_control('premium_video_box_description_text',
127
  [
128
  'label' => esc_html__('Text', 'premium_elementor'),
129
  'type' => Controls_Manager::TEXTAREA,
130
+ 'condition' => [
131
+ 'premium_video_box_video_text_switcher' => 'yes'
132
+ ],
133
  'label_block' => true,
134
  ]
135
  );
137
  /*Description Top Position*/
138
  $this->add_control('premium_video_box_description_ver_position',
139
  [
140
+ 'label' => esc_html__('Vertical Position (%)', 'premium_elementor'),
141
  'type' => Controls_Manager::SLIDER,
142
  'label_block' => true,
143
  'default' => [
144
  'size' => 60,
145
  ],
146
+ 'condition' => [
147
+ 'premium_video_box_video_text_switcher' => 'yes'
148
+ ],
149
  'selectors' => [
150
  '{{WRAPPER}} .premium-video-box-description-container' => 'top: {{SIZE}}%;',
151
  ]
154
 
155
  $this->add_control('premium_video_box_description_hor_position',
156
  [
157
+ 'label' => esc_html__('Horizontal Position (%)', 'premium_elementor'),
158
  'type' => Controls_Manager::SLIDER,
159
  'label_block' => true,
160
  'default' => [
161
  'size' => 50,
162
  ],
163
+ 'condition' => [
164
+ 'premium_video_box_video_text_switcher' => 'yes'
165
+ ],
166
  'selectors' => [
167
  '{{WRAPPER}} .premium-video-box-description-container' => 'left: {{SIZE}}%;',
168
  ]
320
  [
321
  'label' => esc_html__('Icon Size', 'premium_elementor'),
322
  'type' => Controls_Manager::SLIDER,
323
+ 'default' => [
324
+ 'unit' => 'px',
325
+ 'size' => 30,
326
+ ],
327
  'size_units' => ['px', '%', 'em'],
328
  'selectors' => [
329
  '{{WRAPPER}} .premium-video-box-play-icon' => 'font-size: {{SIZE}}{{UNIT}};',
355
  [
356
  'label' => esc_html__('Border Radius', 'premium_elementor'),
357
  'type' => Controls_Manager::SLIDER,
358
+ 'default' => [
359
+ 'unit' => 'px',
360
+ 'size' => 100,
361
+ ],
362
  'size_units' => ['px', '%', 'em'],
363
  'selectors' => [
364
  '{{WRAPPER}} .premium-video-box-play-icon-container' => 'border-radius: {{SIZE}}{{UNIT}};',
371
  [
372
  'label' => esc_html__('Padding', 'premium_elementor'),
373
  'type' => Controls_Manager::DIMENSIONS,
374
+ 'default' => [
375
+ 'top' => 40,
376
+ 'right' => 40,
377
+ 'bottom'=> 40,
378
+ 'left' => 40,
379
+ 'unit' => 'px'
380
+ ],
381
  'size_units' => [ 'px', 'em', '%' ],
382
  'selectors' => [
383
  '{{WRAPPER}} .premium-video-box-play-icon ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
420
  [
421
  'label' => esc_html__('Video Text', 'premium_elementor'),
422
  'tab' => Controls_Manager::TAB_STYLE,
423
+ 'condition' => [
424
+ 'premium_video_box_video_text_switcher' => 'yes'
425
+ ]
426
  ]
427
  );
428