Premium Addons for Elementor - Version 2.0.9

Version Description

  • Tweak: Added existing page link option for Premium Pricing Table, Button and Image Button widgets.
  • Tweak: Inline Documentations and options usability.
  • Fix: Premium Banner empty URL redirection bug.
  • Fix: Misspelling CSS property corrected.
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.0.9

assets/css/premium-addons.css CHANGED
@@ -1790,7 +1790,7 @@ button.close {
1790
  bottom: 0px;
1791
  -webkit-transition: all 0.2s ease-in-out;
1792
  -moz-transition: all 0.2s ease-in-out;
1793
- -ms-transition: all 0.2x ease-in-out;
1794
  -o-transition: all 0.2s ease-in-out;
1795
  transition: all 0.2s ease-in-out;
1796
  }
1790
  bottom: 0px;
1791
  -webkit-transition: all 0.2s ease-in-out;
1792
  -moz-transition: all 0.2s ease-in-out;
1793
+ -ms-transition: all 0.2s ease-in-out;
1794
  -o-transition: all 0.2s ease-in-out;
1795
  transition: all 0.2s ease-in-out;
1796
  }
premium-addons-for-elementor.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.8
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
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.9
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
readme.txt CHANGED
@@ -79,25 +79,32 @@ Premium Addons for Elementor is light weight and we also gave you the control to
79
 
80
  == Changelog ==
81
 
 
 
 
 
 
 
 
82
  = 2.0.8 =
83
 
84
  - Tweak: Amended inline documentation.
85
  - Tweak: Changed admin icon.
86
- - Fixed: Premium Banner Custom URL/existing Page bug.
87
- - Fixed: Premium Button hover background color issue.
88
 
89
  = 2.0.7 =
90
 
91
  - Tweak: Added multiple labels option for Premium Progressbar widget.
92
  - Tweak: Added inline editing option for all widgets.
93
  - Tweak: Added text editor for marker description for Premium Maps widget.
94
- - Fixed: Premium Button empty URL redirection bug.
95
- - Fixed: Premium Image Button empty URL redirection bug.
96
 
97
  = 2.0.6 =
98
 
99
- - Fixed: Plugin row meta data bug.
100
- - Fixed: Plugin update issue.
101
 
102
  = 2.0.5 =
103
 
@@ -109,7 +116,7 @@ Premium Addons for Elementor is light weight and we also gave you the control to
109
  - Tweak: Enhanced Premium Blog layout on mobile phones.
110
  - Fix: Premium Countdown browser compatibility issue on Safari and IE11.
111
  - Fix: Premium Dual Header horizontal overflow on mobile phones.
112
- - Fix: Premium Modal Box position bug on Safari .
113
  - Fix: Premium Video Box video description text with video text switcher off bug.
114
  - Fix: Premium Video Box border radius bug on Chrome and Opera.
115
 
@@ -155,61 +162,61 @@ Premium Addons for Elementor is light weight and we also gave you the control to
155
 
156
  = 2.0 =
157
 
158
- - Added: Premium Pricing Table widget.
159
- - Added: Premium Button widget.
160
- - Added: Premium Contact Form 7 widget.
161
- - Fixed: Premium Modal Box bugs.
162
- - Fixed: Premium Carousel bugs.
163
- - Fixed: Premium Counter scrolling bug.
164
- - Fixed: Premium Fancy Text cursor text bug.
165
- - Fixed: Premium Progress Bar animation bug.
166
- - Enhanced: Premium Banner widget rewritten.
167
- - Enhanced: Map widget rewritten.
168
- - Enhanced: Premium Blog squares effect.
169
- - Enhanced: Inline Documentations and options usability.
170
 
171
  = 1.09 =
172
 
173
- - Fixed settings page save issue.
174
 
175
  = 1.08 =
176
 
177
- - Few minor bug fixes and improvements.
178
 
179
  = 1.07 =
180
 
181
- - Few minor bug fixes and improvements.
182
 
183
  = 1.06 =
184
 
185
- - Added: Enhancements in Premium Addons For Elementor Settings Page.
186
 
187
  = 1.05 =
188
 
189
- - Added: Google Maps API tab in Premium Addons For Elementor Settings Page.
190
- - Few minor bug fixes and improvements.
191
 
192
  = 1.04 =
193
 
194
- - Few minor bug fixes and improvements.
195
 
196
  = 1.03 =
197
 
198
- - Added: About tab in Premium Addons For Elementor Settings Page.
199
- - Added System Info tab in Premium Addons For Elementor Settings Page.
200
- - Fix: Google Map bug
201
- - Fix: Carousal bug
202
- - Fix: Dual Header bug
203
- - Few minor bug fixes and improvements.
204
 
205
  = 1.02 =
206
 
207
- - Few minor bug fixes and improvements.
208
 
209
  = 1.01 =
210
 
211
- - Few minor bug fixes and improvements.
212
 
213
  = 1.0 =
214
 
215
- Initial stable realese
79
 
80
  == Changelog ==
81
 
82
+ = 2.0.9 =
83
+
84
+ - Tweak: Added existing page link option for Premium Pricing Table, Button and Image Button widgets.
85
+ - Tweak: Inline Documentations and options usability.
86
+ - Fix: Premium Banner empty URL redirection bug.
87
+ - Fix: Misspelling CSS property corrected.
88
+
89
  = 2.0.8 =
90
 
91
  - Tweak: Amended inline documentation.
92
  - Tweak: Changed admin icon.
93
+ - Fix: Premium Banner Custom URL/existing Page bug.
94
+ - Fix: Premium Button hover background color issue.
95
 
96
  = 2.0.7 =
97
 
98
  - Tweak: Added multiple labels option for Premium Progressbar widget.
99
  - Tweak: Added inline editing option for all widgets.
100
  - Tweak: Added text editor for marker description for Premium Maps widget.
101
+ - Fix: Premium Button empty URL redirection bug.
102
+ - Fix: Premium Image Button empty URL redirection bug.
103
 
104
  = 2.0.6 =
105
 
106
+ - Fix: Plugin row meta data bug.
107
+ - Fix: Plugin update issue.
108
 
109
  = 2.0.5 =
110
 
116
  - Tweak: Enhanced Premium Blog layout on mobile phones.
117
  - Fix: Premium Countdown browser compatibility issue on Safari and IE11.
118
  - Fix: Premium Dual Header horizontal overflow on mobile phones.
119
+ - Fix: Premium Modal Box position bug on Safari.
120
  - Fix: Premium Video Box video description text with video text switcher off bug.
121
  - Fix: Premium Video Box border radius bug on Chrome and Opera.
122
 
162
 
163
  = 2.0 =
164
 
165
+ - New: Premium Pricing Table widget.
166
+ - New: Premium Button widget.
167
+ - New: Premium Contact Form 7 widget.
168
+ - Tweak: Premium Banner widget rewritten.
169
+ - Tweak: Map widget rewritten.
170
+ - Tweak: Premium Blog squares effect.
171
+ - Tweak: Inline Documentations and options usability.
172
+ - Fix: Premium Modal Box bugs.
173
+ - Fix: Premium Carousel bugs.
174
+ - Fix: Premium Counter scrolling bug.
175
+ - Fix: Premium Fancy Text cursor text bug.
176
+ - Fix: Premium Progress Bar animation bug.
177
 
178
  = 1.09 =
179
 
180
+ - Fix: settings page save issue.
181
 
182
  = 1.08 =
183
 
184
+ - Fix: Minor bugs and improvements.
185
 
186
  = 1.07 =
187
 
188
+ - Fix: Minor bugs and improvements.
189
 
190
  = 1.06 =
191
 
192
+ - Tweak: Enhancements in Premium Addons admin settings page.
193
 
194
  = 1.05 =
195
 
196
+ - Tweak: Google Maps API tab in Premium Addons admin settings page.
197
+ - Fix: Minor bugs and improvements.
198
 
199
  = 1.04 =
200
 
201
+ - Fix: Minor bugs and improvements.
202
 
203
  = 1.03 =
204
 
205
+ - New: About tab in Premium Addons admin settings page.
206
+ - New: System Info tab in Premium Addons admin settings page.
207
+ - Fix: Google Map bug.
208
+ - Fix: Carousal bug.
209
+ - Fix: Dual Header bug.
210
+ - Fix: Minor bugs and improvements.
211
 
212
  = 1.02 =
213
 
214
+ - Fix: Minor bugs and improvements.
215
 
216
  = 1.01 =
217
 
218
+ - Fix: Minor bugs and improvements.
219
 
220
  = 1.0 =
221
 
222
+ - Initial stable release
widgets/premium-banner.php CHANGED
@@ -34,14 +34,14 @@ class Premium_Banner_Widget extends Widget_Base {
34
  $this->start_controls_section(
35
  'premium_banner_global_settings',
36
  [
37
- 'label' => esc_html__( 'Premium Banner', 'premium-addons-for-elementor' )
38
  ]
39
  );
40
 
41
  $this->add_control(
42
  'premium_banner_image',
43
  [
44
- 'label' => esc_html__( 'Premium Banner Image', 'premium-addons-for-elementor' ),
45
  'description' => esc_html__( 'Select an image for the Banner', 'premium-addons-for-elementor' ),
46
  'type' => Controls_Manager::MEDIA,
47
  'default' => [
@@ -51,9 +51,9 @@ class Premium_Banner_Widget extends Widget_Base {
51
  ]
52
  );
53
 
54
- $this->add_control('premium_banner_link_url_switch',
55
  [
56
- 'label' => esc_html__('Banner Link/URL', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::SWITCHER,
58
  ]
59
  );
@@ -61,7 +61,7 @@ class Premium_Banner_Widget extends Widget_Base {
61
  $this->add_control(
62
  'premium_banner_image_link_switcher',
63
  [
64
- 'label' => esc_html__( 'Banner custom link', 'premium-addons-for-elementor' ),
65
  'type' => Controls_Manager::SWITCHER,
66
  'default' => '',
67
  'description' => esc_html__( 'Add a custom link to the banner', 'premium-addons-for-elementor' ),
@@ -70,39 +70,39 @@ class Premium_Banner_Widget extends Widget_Base {
70
  ],
71
  ]
72
  );
73
-
74
- $this->add_control(
75
- 'premium_banner_image_existing_page_link',
76
  [
77
- 'label' => esc_html__( 'Set Existing Page Link', 'premium-addons-for-elementor' ),
78
- 'type' => Controls_Manager::SELECT,
79
- 'description' => esc_html__( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
80
  'condition' => [
81
- 'premium_banner_image_link_switcher!' => 'yes',
82
  'premium_banner_link_url_switch' => 'yes',
83
  ],
84
- 'options' => $this->getTemplateInstance()->get_all_post()
85
  ]
86
  );
87
 
88
  $this->add_control(
89
- 'premium_banner_image_custom_link',
90
  [
91
- 'label' => esc_html__( 'Set custom Link', 'premium-addons-for-elementor' ),
92
- 'type' => Controls_Manager::URL,
93
- 'description' => esc_html__( 'What custom link you want to set to banner?', 'premium-addons-for-elementor' ),
94
  'condition' => [
95
- 'premium_banner_image_link_switcher' => 'yes',
96
  'premium_banner_link_url_switch' => 'yes',
97
  ],
98
- 'show_external' => false,
99
  ]
100
  );
101
 
102
  $this->add_control(
103
  'premium_banner_image_link_open_new_tab',
104
  [
105
- 'label' => esc_html__( 'Open in New Tab', 'premium-addons-for-elementor' ),
106
  'type' => Controls_Manager::SWITCHER,
107
  'default' => '',
108
  'description' => esc_html__( 'Choose if you want the link be opened in a new tab or not', 'premium-addons-for-elementor' ),
@@ -115,10 +115,10 @@ class Premium_Banner_Widget extends Widget_Base {
115
  $this->add_control(
116
  'premium_banner_image_link_add_nofollow',
117
  [
118
- 'label' => esc_html__( 'Add Nofollow Option to Link', 'premium-addons-for-elementor' ),
119
  'type' => Controls_Manager::SWITCHER,
120
  'default' => '',
121
- 'description' => esc_html__('if you chose yes, the link will not be counted in search engines', 'premium-addons-for-elementor' ),
122
  'condition' => [
123
  'premium_banner_link_url_switch' => 'yes',
124
  ],
@@ -128,7 +128,7 @@ class Premium_Banner_Widget extends Widget_Base {
128
  $this->add_control(
129
  'premium_banner_image_animation',
130
  [
131
- 'label' => esc_html__( 'Banner Effects', 'premium-addons-for-elementor' ),
132
  'type' => Controls_Manager::SELECT,
133
  'default' => 'premium_banner_animation1',
134
  'description' => esc_html__( 'Choose a hover effect for the banner', 'premium-addons-for-elementor' ),
@@ -146,7 +146,7 @@ class Premium_Banner_Widget extends Widget_Base {
146
  $this->add_control(
147
  'premium_banner_height',
148
  [
149
- 'label' => esc_html__( 'Banner Height', 'premium-addons-for-elementor' ),
150
  'type' => Controls_Manager::SELECT,
151
  'default' => 'default',
152
  'description' => esc_html__( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' ),
@@ -176,7 +176,8 @@ class Premium_Banner_Widget extends Widget_Base {
176
  'premium_banner_extra_class',
177
  [
178
  'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
179
- 'type' => Controls_Manager::TEXT
 
180
  ]
181
  );
182
 
@@ -186,7 +187,7 @@ class Premium_Banner_Widget extends Widget_Base {
186
  $this->start_controls_section(
187
  'premium_banner_image_section',
188
  [
189
- 'label' => esc_html__( 'Banner Content', 'premium-addons-for-elementor' )
190
  ]
191
  );
192
 
@@ -205,7 +206,7 @@ class Premium_Banner_Widget extends Widget_Base {
205
  $this->add_control(
206
  'premium_banner_title_tag',
207
  [
208
- 'label' => esc_html__( 'Title HTML Tag', 'premium-addons-for-elementor' ),
209
  'description' => esc_html__( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium-addons-for-elementor' ),
210
  'type' => Controls_Manager::SELECT,
211
  'default' => 'h3',
@@ -221,46 +222,6 @@ class Premium_Banner_Widget extends Widget_Base {
221
  ]
222
  );
223
 
224
- $this->add_control(
225
- 'premium_banner_style2_title_bg',
226
- [
227
- 'label' => esc_html__( 'Title Background', 'premium-addons-for-elementor' ),
228
- 'type' => Controls_Manager::COLOR,
229
- 'default' => '#f2f2f2',
230
- 'description' => esc_html__( 'Choose a background color for the title', 'premium-addons-for-elementor' ),
231
- 'condition' => [
232
- 'premium_banner_image_animation' => 'premium_banner_animation5'
233
- ],
234
- 'selectors' => [
235
- '{{WRAPPER}} .premium_banner_animation5 .premium_addons-banner-ib-desc' => 'background: {{VALUE}};',
236
- ],
237
- 'description_block' => true,
238
- ]
239
- );
240
-
241
- $this->add_control('premium_banner_title_text_align',
242
- [
243
- 'label' => esc_html__('Alignment', 'premium-addons-for-elementor'),
244
- 'type' => Controls_Manager::CHOOSE,
245
- 'options' => [
246
- 'left' => [
247
- 'title' => esc_html__('Left', 'premium-addons-for-elementor'),
248
- 'icon' => 'fa fa-align-left'
249
- ],
250
- 'center' => [
251
- 'title' => esc_html__('Center', 'premium-addons-for-elementor'),
252
- 'icon' => 'fa fa-align-center'
253
- ],
254
- 'right' => [
255
- 'title' => esc_html__('Right', 'premium-addons-for-elementor'),
256
- 'icon' => 'fa fa-align-right'
257
- ],
258
- ],
259
- 'selectors' => [
260
- '{{WRAPPER}} .premium_addons-banner-ib-title ' => 'text-align: {{VALUE}};',
261
- ]
262
- ]
263
- );
264
 
265
  $this->add_control(
266
  'premium_banner_description_hint',
@@ -281,9 +242,9 @@ class Premium_Banner_Widget extends Widget_Base {
281
  ]
282
  );
283
 
284
- $this->add_control('premium_banner_content_text_align',
285
  [
286
- 'label' => esc_html__('Description Alignment', 'premium-addons-for-elementor'),
287
  'type' => Controls_Manager::CHOOSE,
288
  'options' => [
289
  'left' => [
@@ -300,31 +261,30 @@ class Premium_Banner_Widget extends Widget_Base {
300
  ],
301
  ],
302
  'selectors' => [
303
- '{{WRAPPER}} .premium_addons-banner-ib-content' => 'text-align: {{VALUE}};',
304
  ]
305
  ]
306
- );
307
-
308
- $this->end_controls_section();
309
 
310
  $this->start_controls_section('premium_banner_responsive_section',
311
  [
312
- 'label' => esc_html__('Responsive Settings', 'premium-addons-for-elementor'),
313
  ]);
314
 
315
-
316
  $this->add_control('premium_banner_responsive_switcher',
317
  [
318
  'label' => esc_html__('Responsive Controls', 'premium-addons-for-elementor'),
319
  'type' => Controls_Manager::SWITCHER,
320
- 'description' => esc_html__('Enabling Responsive Controls will hide the description text for the screen size that is specified', 'premium-addons-for-elementor')
321
  ]);
322
 
323
  $this->add_control('premium_banner_min_range',
324
  [
325
- 'label' => esc_html__('Min Screen Size (PX)', 'premium-addons-for-elementor'),
326
  'type' => Controls_Manager::NUMBER,
327
- 'description'=> esc_html__('(Hint: min size for extra small screens is 1px)','premium-addons-for-elementor'),
328
  'default' => 1,
329
  'condition' => [
330
  'premium_banner_responsive_switcher' => 'yes'
@@ -333,9 +293,9 @@ class Premium_Banner_Widget extends Widget_Base {
333
 
334
  $this->add_control('premium_banner_max_range',
335
  [
336
- 'label' => esc_html__('Max Screen Size (PX)', 'premium-addons-for-elementor'),
337
  'type' => Controls_Manager::NUMBER,
338
- 'description'=> esc_html__('(Hint: max size for extra small screens is 767px)','premium-addons-for-elementor'),
339
  'default' => 767,
340
  'condition' => [
341
  'premium_banner_responsive_switcher' => 'yes'
@@ -370,7 +330,7 @@ class Premium_Banner_Widget extends Widget_Base {
370
  $this->add_control(
371
  'premium_banner_image_opacity',
372
  [
373
- 'label' => esc_html__( 'Opacity', 'premium-addons-for-elementor' ),
374
  'type' => Controls_Manager::SLIDER,
375
  'default' => [
376
  'size' => 1,
@@ -434,6 +394,22 @@ class Premium_Banner_Widget extends Widget_Base {
434
  ],
435
  ]
436
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
 
438
  $this->add_group_control(
439
  Group_Control_Typography::get_type(),
@@ -472,9 +448,9 @@ class Premium_Banner_Widget extends Widget_Base {
472
  $this->add_group_control(
473
  Group_Control_Typography::get_type(),
474
  [
475
- 'name' => 'premium_banner_content_typhography',
476
- 'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
477
- 'scheme' => Scheme_Typography::TYPOGRAPHY_3,
478
  ]
479
  );
480
 
@@ -520,7 +496,7 @@ class Premium_Banner_Widget extends Widget_Base {
520
  </div>
521
  </div>
522
  <?php
523
- if( !empty( $settings['premium_banner_image_custom_link']['url'] ) || !empty($settings['premium_banner_image_existing_page_link'] ) ) {
524
  echo $full_link;
525
  }
526
  ?>
34
  $this->start_controls_section(
35
  'premium_banner_global_settings',
36
  [
37
+ 'label' => esc_html__( 'Image', 'premium-addons-for-elementor' )
38
  ]
39
  );
40
 
41
  $this->add_control(
42
  'premium_banner_image',
43
  [
44
+ 'label' => esc_html__( 'Upload Image', 'premium-addons-for-elementor' ),
45
  'description' => esc_html__( 'Select an image for the Banner', 'premium-addons-for-elementor' ),
46
  'type' => Controls_Manager::MEDIA,
47
  'default' => [
51
  ]
52
  );
53
 
54
+ $this->add_control('premium_banner_link_url_switch',
55
  [
56
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::SWITCHER,
58
  ]
59
  );
61
  $this->add_control(
62
  'premium_banner_image_link_switcher',
63
  [
64
+ 'label' => esc_html__( 'Custom Link', 'premium-addons-for-elementor' ),
65
  'type' => Controls_Manager::SWITCHER,
66
  'default' => '',
67
  'description' => esc_html__( 'Add a custom link to the banner', 'premium-addons-for-elementor' ),
70
  ],
71
  ]
72
  );
73
+
74
+ $this->add_control(
75
+ 'premium_banner_image_custom_link',
76
  [
77
+ 'label' => esc_html__( 'Set custom Link', 'premium-addons-for-elementor' ),
78
+ 'type' => Controls_Manager::URL,
79
+ 'description' => esc_html__( 'What custom link you want to set to banner?', 'premium-addons-for-elementor' ),
80
  'condition' => [
81
+ 'premium_banner_image_link_switcher' => 'yes',
82
  'premium_banner_link_url_switch' => 'yes',
83
  ],
84
+ 'show_external' => false,
85
  ]
86
  );
87
 
88
  $this->add_control(
89
+ 'premium_banner_image_existing_page_link',
90
  [
91
+ 'label' => esc_html__( 'Existing Page', 'premium-addons-for-elementor' ),
92
+ 'type' => Controls_Manager::SELECT,
93
+ 'description' => esc_html__( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
94
  'condition' => [
95
+ 'premium_banner_image_link_switcher!' => 'yes',
96
  'premium_banner_link_url_switch' => 'yes',
97
  ],
98
+ 'options' => $this->getTemplateInstance()->get_all_post()
99
  ]
100
  );
101
 
102
  $this->add_control(
103
  'premium_banner_image_link_open_new_tab',
104
  [
105
+ 'label' => esc_html__( 'New Tab', 'premium-addons-for-elementor' ),
106
  'type' => Controls_Manager::SWITCHER,
107
  'default' => '',
108
  'description' => esc_html__( 'Choose if you want the link be opened in a new tab or not', 'premium-addons-for-elementor' ),
115
  $this->add_control(
116
  'premium_banner_image_link_add_nofollow',
117
  [
118
+ 'label' => esc_html__( 'Nofollow Option', 'premium-addons-for-elementor' ),
119
  'type' => Controls_Manager::SWITCHER,
120
  'default' => '',
121
+ 'description' => esc_html__('if you choose yes, the link will not be counted in search engines', 'premium-addons-for-elementor' ),
122
  'condition' => [
123
  'premium_banner_link_url_switch' => 'yes',
124
  ],
128
  $this->add_control(
129
  'premium_banner_image_animation',
130
  [
131
+ 'label' => esc_html__( 'Effect', 'premium-addons-for-elementor' ),
132
  'type' => Controls_Manager::SELECT,
133
  'default' => 'premium_banner_animation1',
134
  'description' => esc_html__( 'Choose a hover effect for the banner', 'premium-addons-for-elementor' ),
146
  $this->add_control(
147
  'premium_banner_height',
148
  [
149
+ 'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
150
  'type' => Controls_Manager::SELECT,
151
  'default' => 'default',
152
  'description' => esc_html__( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' ),
176
  'premium_banner_extra_class',
177
  [
178
  'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
179
+ 'type' => Controls_Manager::TEXT,
180
+ 'description' => esc_html__( 'Add extra class name that will be applied to the banner, and you can use this class for your customizations.', 'premium-addons-for-elementor' ),
181
  ]
182
  );
183
 
187
  $this->start_controls_section(
188
  'premium_banner_image_section',
189
  [
190
+ 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' )
191
  ]
192
  );
193
 
206
  $this->add_control(
207
  'premium_banner_title_tag',
208
  [
209
+ 'label' => esc_html__( 'HTML Tag', 'premium-addons-for-elementor' ),
210
  'description' => esc_html__( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium-addons-for-elementor' ),
211
  'type' => Controls_Manager::SELECT,
212
  'default' => 'h3',
222
  ]
223
  );
224
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
 
226
  $this->add_control(
227
  'premium_banner_description_hint',
242
  ]
243
  );
244
 
245
+ $this->add_control('premium_banner_title_text_align',
246
  [
247
+ 'label' => esc_html__('Alignment', 'premium-addons-for-elementor'),
248
  'type' => Controls_Manager::CHOOSE,
249
  'options' => [
250
  'left' => [
261
  ],
262
  ],
263
  'selectors' => [
264
+ '{{WRAPPER}} .premium_addons-banner-ib-title, {{WRAPPER}} .premium_addons-banner-ib-content' => 'text-align: {{VALUE}};',
265
  ]
266
  ]
267
+ );
268
+
269
+ $this->end_controls_section();
270
 
271
  $this->start_controls_section('premium_banner_responsive_section',
272
  [
273
+ 'label' => esc_html__('Responsive', 'premium-addons-for-elementor'),
274
  ]);
275
 
 
276
  $this->add_control('premium_banner_responsive_switcher',
277
  [
278
  'label' => esc_html__('Responsive Controls', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::SWITCHER,
280
+ 'description' => esc_html__('If the description text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor')
281
  ]);
282
 
283
  $this->add_control('premium_banner_min_range',
284
  [
285
+ 'label' => esc_html__('Minimum Size', 'premium-addons-for-elementor'),
286
  'type' => Controls_Manager::NUMBER,
287
+ 'description'=> esc_html__('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
288
  'default' => 1,
289
  'condition' => [
290
  'premium_banner_responsive_switcher' => 'yes'
293
 
294
  $this->add_control('premium_banner_max_range',
295
  [
296
+ 'label' => esc_html__('Maximum Size', 'premium-addons-for-elementor'),
297
  'type' => Controls_Manager::NUMBER,
298
+ 'description'=> esc_html__('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
299
  'default' => 767,
300
  'condition' => [
301
  'premium_banner_responsive_switcher' => 'yes'
330
  $this->add_control(
331
  'premium_banner_image_opacity',
332
  [
333
+ 'label' => esc_html__( 'Image Opacity', 'premium-addons-for-elementor' ),
334
  'type' => Controls_Manager::SLIDER,
335
  'default' => [
336
  'size' => 1,
394
  ],
395
  ]
396
  );
397
+
398
+ $this->add_control(
399
+ 'premium_banner_style2_title_bg',
400
+ [
401
+ 'label' => esc_html__( 'Title Background', 'premium-addons-for-elementor' ),
402
+ 'type' => Controls_Manager::COLOR,
403
+ 'default' => '#f2f2f2',
404
+ 'description' => esc_html__( 'Choose a background color for the title', 'premium-addons-for-elementor' ),
405
+ 'condition' => [
406
+ 'premium_banner_image_animation' => 'premium_banner_animation5'
407
+ ],
408
+ 'selectors' => [
409
+ '{{WRAPPER}} .premium_banner_animation5 .premium_addons-banner-ib-desc' => 'background: {{VALUE}};',
410
+ ],
411
+ ]
412
+ );
413
 
414
  $this->add_group_control(
415
  Group_Control_Typography::get_type(),
448
  $this->add_group_control(
449
  Group_Control_Typography::get_type(),
450
  [
451
+ 'name' => 'premium_banner_content_typhography',
452
+ 'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
453
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_3,
454
  ]
455
  );
456
 
496
  </div>
497
  </div>
498
  <?php
499
+ if( $settings['premium_banner_link_url_switch'] == 'yes' && (!empty( $settings['premium_banner_image_custom_link']['url'] ) || !empty($settings['premium_banner_image_existing_page_link'] )) ) {
500
  echo $full_link;
501
  }
502
  ?>
widgets/premium-blog.php CHANGED
@@ -32,14 +32,14 @@ class Premium_Blog_Widget extends Widget_Base
32
  /* Start Content Section */
33
  $this->start_controls_section('premium_blog_general_settings',
34
  [
35
- 'label' => esc_html__('Thumbnail Settings', 'premium-addons-for-elementor'),
36
  ]
37
  );
38
 
39
  /*Hover Image Effect*/
40
  $this->add_control('premium_blog_hover_image_effect',
41
  [
42
- 'label' => esc_html__('Image Hover Effect', 'premium-addons-for-elementor'),
43
  'type' => Controls_Manager::SELECT,
44
  'description' => esc_html__('Choose a hover effect for the image','premium-addons-for-elementor'),
45
  'options' => [
@@ -57,7 +57,7 @@ class Premium_Blog_Widget extends Widget_Base
57
  /*Hover Image Effect*/
58
  $this->add_control('premium_blog_hover_color_effect',
59
  [
60
- 'label' => esc_html__('Color Hover Effect', 'premium-addons-for-elementor'),
61
  'type' => Controls_Manager::SELECT,
62
  'description' => esc_html__('Choose an overlay color effect','premium-addons-for-elementor'),
63
  'options' => [
@@ -78,20 +78,10 @@ class Premium_Blog_Widget extends Widget_Base
78
  /*Start Content Settings Section*/
79
  $this->start_controls_section('premium_blog_content_settings',
80
  [
81
- 'label' => esc_html__('Content Settings', 'premium-addons-for-elementor'),
82
  ]
83
  );
84
 
85
-
86
- /*Post Format Icon*/
87
- $this->add_control('premium_blog_post_format_icon',
88
- [
89
- 'label' => esc_html__( 'Post Format Icon', 'essential-addons-elementor' ),
90
- 'type' => Controls_Manager::SWITCHER,
91
- 'default' => 'yes',
92
- ]
93
- );
94
-
95
  /*Categories Filter*/
96
  $this->add_control('premium_blog_categories',
97
  [
@@ -114,7 +104,6 @@ class Premium_Blog_Widget extends Widget_Base
114
  ]
115
  );
116
 
117
-
118
  /*Excerpt Length*/
119
  $this->add_control('premium_blog_excerpt_length',
120
  [
@@ -137,7 +126,6 @@ class Premium_Blog_Widget extends Widget_Base
137
  ]
138
  );
139
 
140
-
141
  /*Date Meta*/
142
  $this->add_control('premium_blog_date_meta',
143
  [
@@ -177,10 +165,19 @@ class Premium_Blog_Widget extends Widget_Base
177
  ]
178
  );
179
 
 
 
 
 
 
 
 
 
 
180
  /*Edit Post Meta*/
181
  $this->add_control('premium_blog_edit_post',
182
  [
183
- 'label' => esc_html__('Edit Post', 'premium-addons-for-elementor'),
184
  'type' => Controls_Manager::SWITCHER,
185
  'description' => esc_html__('Display or hide edit post option','premium-addons-for-elementor'),
186
  'default' => 'yes',
@@ -222,7 +219,7 @@ class Premium_Blog_Widget extends Widget_Base
222
  /*Front Text Align*/
223
  $this->add_responsive_control('premium_flip_text_align',
224
  [
225
- 'label' => esc_html__( 'Text Align', 'elementor' ),
226
  'type' => Controls_Manager::CHOOSE,
227
  'options' => [
228
  'left' => [
@@ -260,7 +257,7 @@ class Premium_Blog_Widget extends Widget_Base
260
  /*Plus Icon Color*/
261
  $this->add_control('premium_blog_plus_color',
262
  [
263
- 'label' => esc_html__('Plus Icon Color', 'premium-addons-for-elementor'),
264
  'type' => Controls_Manager::COLOR,
265
  'scheme' => [
266
  'type' => Scheme_Color::get_type(),
@@ -330,6 +327,15 @@ class Premium_Blog_Widget extends Widget_Base
330
  ]
331
  );
332
 
 
 
 
 
 
 
 
 
 
333
  /*Titles Hover Color*/
334
  $this->add_control('premium_blog_title_hover_color',
335
  [
@@ -345,15 +351,6 @@ class Premium_Blog_Widget extends Widget_Base
345
  ]
346
  );
347
 
348
- $this->add_group_control(
349
- Group_Control_Typography::get_type(),
350
- [
351
- 'name' => 'premium_blog_title_typo',
352
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
353
- 'selector' => '{{WRAPPER}} .premium-blog-entry-title a',
354
- ]
355
- );
356
-
357
  $this->end_controls_section();
358
 
359
  $this->start_controls_section('premium_blog_meta_style_section',
@@ -378,6 +375,16 @@ class Premium_Blog_Widget extends Widget_Base
378
  ]
379
  );
380
 
 
 
 
 
 
 
 
 
 
 
381
  /*Meta Hover Color*/
382
  $this->add_control('premium_blog_meta_hover_color',
383
  [
@@ -393,15 +400,6 @@ class Premium_Blog_Widget extends Widget_Base
393
  ]
394
  );
395
 
396
- $this->add_group_control(
397
- Group_Control_Typography::get_type(),
398
- [
399
- 'name' => 'premium_blog_meta_typo',
400
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
401
- 'selector' => '{{WRAPPER}} .premium-blog-entry-meta a',
402
- ]
403
- );
404
-
405
  $this->end_controls_section();
406
 
407
  $this->start_controls_section('premium_blog_content_style_section',
@@ -414,7 +412,7 @@ class Premium_Blog_Widget extends Widget_Base
414
  /*Post Content Color*/
415
  $this->add_control('premium_blog_post_content_color',
416
  [
417
- 'label' => esc_html__('Post Content Color', 'premium-addons-for-elementor'),
418
  'type' => Controls_Manager::COLOR,
419
  'scheme' => [
420
  'type' => Scheme_Color::get_type(),
@@ -473,6 +471,16 @@ class Premium_Blog_Widget extends Widget_Base
473
  ]
474
  );
475
 
 
 
 
 
 
 
 
 
 
 
476
  /*Tags Hover Color*/
477
  $this->add_control('premium_blog_tags_hoer_color',
478
  [
@@ -488,16 +496,6 @@ class Premium_Blog_Widget extends Widget_Base
488
  ]
489
  );
490
 
491
- /*Tags Typography*/
492
- $this->add_group_control(
493
- Group_Control_Typography::get_type(),
494
- [
495
- 'name' => 'premium_blog_tags_typo',
496
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
497
- 'selector' => '{{WRAPPER}} .premium-blog-post-tags-container a',
498
- ]
499
- );
500
-
501
  $this->end_controls_section();
502
 
503
  /*Post Format Icon*/
@@ -508,6 +506,25 @@ class Premium_Blog_Widget extends Widget_Base
508
  ]
509
  );
510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  /*Post Format Icon Color*/
512
  $this->add_control('premium_blog_format_icon_color',
513
  [
@@ -538,25 +555,6 @@ class Premium_Blog_Widget extends Widget_Base
538
  ]
539
  );
540
 
541
- $this->add_control('premium_blog_format_icon_size',
542
- [
543
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
544
- 'type' => Controls_Manager::SLIDER,
545
- 'description' => esc_html__('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
546
- 'range' => [
547
- 'em' => [
548
- 'min' => 1,
549
- 'max' => 10,
550
- ],
551
- ],
552
- 'size_units' => ['px', "em"],
553
- 'label_block' => true,
554
- 'selectors' => [
555
- '{{WRAPPER}} .premium-blog-format-icon' => 'font-size: {{SIZE}}{{UNIT}};',
556
- ]
557
- ]
558
- );
559
-
560
  /*Post Format Background Color*/
561
  $this->add_control('premium_blog_format_back_color',
562
  [
@@ -809,4 +807,4 @@ if(count($posts)){
809
  <?php
810
  }
811
  }
812
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Blog_Widget());
32
  /* Start Content Section */
33
  $this->start_controls_section('premium_blog_general_settings',
34
  [
35
+ 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
36
  ]
37
  );
38
 
39
  /*Hover Image Effect*/
40
  $this->add_control('premium_blog_hover_image_effect',
41
  [
42
+ 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
43
  'type' => Controls_Manager::SELECT,
44
  'description' => esc_html__('Choose a hover effect for the image','premium-addons-for-elementor'),
45
  'options' => [
57
  /*Hover Image Effect*/
58
  $this->add_control('premium_blog_hover_color_effect',
59
  [
60
+ 'label' => esc_html__('Color Effect', 'premium-addons-for-elementor'),
61
  'type' => Controls_Manager::SELECT,
62
  'description' => esc_html__('Choose an overlay color effect','premium-addons-for-elementor'),
63
  'options' => [
78
  /*Start Content Settings Section*/
79
  $this->start_controls_section('premium_blog_content_settings',
80
  [
81
+ 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
82
  ]
83
  );
84
 
 
 
 
 
 
 
 
 
 
 
85
  /*Categories Filter*/
86
  $this->add_control('premium_blog_categories',
87
  [
104
  ]
105
  );
106
 
 
107
  /*Excerpt Length*/
108
  $this->add_control('premium_blog_excerpt_length',
109
  [
126
  ]
127
  );
128
 
 
129
  /*Date Meta*/
130
  $this->add_control('premium_blog_date_meta',
131
  [
165
  ]
166
  );
167
 
168
+ /*Post Format Icon*/
169
+ $this->add_control('premium_blog_post_format_icon',
170
+ [
171
+ 'label' => esc_html__( 'Post Format Icon', 'essential-addons-elementor' ),
172
+ 'type' => Controls_Manager::SWITCHER,
173
+ 'default' => 'yes',
174
+ ]
175
+ );
176
+
177
  /*Edit Post Meta*/
178
  $this->add_control('premium_blog_edit_post',
179
  [
180
+ 'label' => esc_html__('Edit Post Icon', 'premium-addons-for-elementor'),
181
  'type' => Controls_Manager::SWITCHER,
182
  'description' => esc_html__('Display or hide edit post option','premium-addons-for-elementor'),
183
  'default' => 'yes',
219
  /*Front Text Align*/
220
  $this->add_responsive_control('premium_flip_text_align',
221
  [
222
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
223
  'type' => Controls_Manager::CHOOSE,
224
  'options' => [
225
  'left' => [
257
  /*Plus Icon Color*/
258
  $this->add_control('premium_blog_plus_color',
259
  [
260
+ 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
261
  'type' => Controls_Manager::COLOR,
262
  'scheme' => [
263
  'type' => Scheme_Color::get_type(),
327
  ]
328
  );
329
 
330
+ $this->add_group_control(
331
+ Group_Control_Typography::get_type(),
332
+ [
333
+ 'name' => 'premium_blog_title_typo',
334
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
335
+ 'selector' => '{{WRAPPER}} .premium-blog-entry-title a',
336
+ ]
337
+ );
338
+
339
  /*Titles Hover Color*/
340
  $this->add_control('premium_blog_title_hover_color',
341
  [
351
  ]
352
  );
353
 
 
 
 
 
 
 
 
 
 
354
  $this->end_controls_section();
355
 
356
  $this->start_controls_section('premium_blog_meta_style_section',
375
  ]
376
  );
377
 
378
+
379
+ $this->add_group_control(
380
+ Group_Control_Typography::get_type(),
381
+ [
382
+ 'name' => 'premium_blog_meta_typo',
383
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
384
+ 'selector' => '{{WRAPPER}} .premium-blog-entry-meta a',
385
+ ]
386
+ );
387
+
388
  /*Meta Hover Color*/
389
  $this->add_control('premium_blog_meta_hover_color',
390
  [
400
  ]
401
  );
402
 
 
 
 
 
 
 
 
 
 
403
  $this->end_controls_section();
404
 
405
  $this->start_controls_section('premium_blog_content_style_section',
412
  /*Post Content Color*/
413
  $this->add_control('premium_blog_post_content_color',
414
  [
415
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
416
  'type' => Controls_Manager::COLOR,
417
  'scheme' => [
418
  'type' => Scheme_Color::get_type(),
471
  ]
472
  );
473
 
474
+ /*Tags Typography*/
475
+ $this->add_group_control(
476
+ Group_Control_Typography::get_type(),
477
+ [
478
+ 'name' => 'premium_blog_tags_typo',
479
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
480
+ 'selector' => '{{WRAPPER}} .premium-blog-post-tags-container a',
481
+ ]
482
+ );
483
+
484
  /*Tags Hover Color*/
485
  $this->add_control('premium_blog_tags_hoer_color',
486
  [
496
  ]
497
  );
498
 
 
 
 
 
 
 
 
 
 
 
499
  $this->end_controls_section();
500
 
501
  /*Post Format Icon*/
506
  ]
507
  );
508
 
509
+ $this->add_control('premium_blog_format_icon_size',
510
+ [
511
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
512
+ 'type' => Controls_Manager::SLIDER,
513
+ 'description' => esc_html__('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
514
+ 'range' => [
515
+ 'em' => [
516
+ 'min' => 1,
517
+ 'max' => 10,
518
+ ],
519
+ ],
520
+ 'size_units' => ['px', "em"],
521
+ 'label_block' => true,
522
+ 'selectors' => [
523
+ '{{WRAPPER}} .premium-blog-format-icon' => 'font-size: {{SIZE}}{{UNIT}};',
524
+ ]
525
+ ]
526
+ );
527
+
528
  /*Post Format Icon Color*/
529
  $this->add_control('premium_blog_format_icon_color',
530
  [
555
  ]
556
  );
557
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  /*Post Format Background Color*/
559
  $this->add_control('premium_blog_format_back_color',
560
  [
807
  <?php
808
  }
809
  }
810
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Blog_Widget());
widgets/premium-button.php CHANGED
@@ -8,6 +8,10 @@ class Premium_Button_Widget extends Widget_Base
8
  public function get_name() {
9
  return 'premium-addon-button';
10
  }
 
 
 
 
11
 
12
  public function get_title() {
13
  return esc_html__('Premium Button', 'premium-addons-for-elementor');
@@ -28,23 +32,36 @@ class Premium_Button_Widget extends Widget_Base
28
  /*Start Button Content Section */
29
  $this->start_controls_section('premium_button_general_section',
30
  [
31
- 'label' => esc_html__('Button Settings', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
35
  /*Button Text*/
36
  $this->add_control('premium_button_text',
37
  [
38
- 'label' => esc_html__('Button Text', 'premium-addons-for-elementor'),
39
  'type' => Controls_Manager::TEXT,
40
  'default' => esc_html__('Click Me','premium-addons-for-elementor'),
41
  'label_block' => true,
42
  ]
43
  );
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  $this->add_control('premium_button_link',
46
  [
47
- 'label' => esc_html__('URL', 'premium-addons-for-elementor'),
48
  'type' => Controls_Manager::URL,
49
  'default' => [
50
  'url' => '#',
@@ -52,13 +69,29 @@ class Premium_Button_Widget extends Widget_Base
52
  'placeholder' => 'https://premiumaddons.com/',
53
  'label_block' => true,
54
  'separator' => 'after',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  ]
56
  );
57
 
58
  /*Button Hover Effect*/
59
  $this->add_control('premium_button_hover_effect',
60
  [
61
- 'label' => esc_html__('Button Hover Effect', 'premium-addons-for-elementor'),
62
  'type' => Controls_Manager::SELECT,
63
  'default' => 'none',
64
  'options' => [
@@ -154,7 +187,7 @@ class Premium_Button_Widget extends Widget_Base
154
  /*Button Icon Switcher*/
155
  $this->add_control('premium_button_icon_switcher',
156
  [
157
- 'label' => esc_html__('Button Icon', 'premium-addons-for-elementor'),
158
  'type' => Controls_Manager::SWITCHER,
159
  'condition' => [
160
  'premium_button_hover_effect!' => 'style4'
@@ -317,7 +350,7 @@ class Premium_Button_Widget extends Widget_Base
317
  /*Button Size*/
318
  $this->add_control('premium_button_size',
319
  [
320
- 'label' => esc_html__('Button Size', 'premium-addons-for-elementor'),
321
  'type' => Controls_Manager::SELECT,
322
  'default' => 'lg',
323
  'options' => [
@@ -334,7 +367,7 @@ class Premium_Button_Widget extends Widget_Base
334
  /*Button Align*/
335
  $this->add_responsive_control('premium_button_align',
336
  [
337
- 'label' => __( 'Button Alignment', 'elementor' ),
338
  'type' => Controls_Manager::CHOOSE,
339
  'options' => [
340
  'left' => [
@@ -359,7 +392,7 @@ class Premium_Button_Widget extends Widget_Base
359
 
360
  $this->add_control('premium_button_event_switcher',
361
  [
362
- 'label' => esc_html__('Button onclick Event', 'premium-addons-for-elementor'),
363
  'type' => Controls_Manager::SWITCHER,
364
  'separator' => 'before',
365
  ]
@@ -468,28 +501,6 @@ class Premium_Button_Widget extends Widget_Base
468
  ]
469
  );
470
 
471
- /*Button Margin*/
472
- $this->add_responsive_control('premium_button_margin_normal',
473
- [
474
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
475
- 'type' => Controls_Manager::DIMENSIONS,
476
- 'size_units' => ['px', 'em', '%'],
477
- 'selectors' => [
478
- '{{WRAPPER}} .premium-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
479
- ]
480
- ]);
481
-
482
- /*Button Padding*/
483
- $this->add_responsive_control('premium_button_padding_normal',
484
- [
485
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
486
- 'type' => Controls_Manager::DIMENSIONS,
487
- 'size_units' => ['px', 'em', '%'],
488
- 'selectors' => [
489
- '{{WRAPPER}} .premium-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
490
- ]
491
- ]);
492
-
493
  /*Icon Shadow*/
494
  $this->add_group_control(
495
  Group_Control_Text_Shadow::get_type(),
@@ -524,6 +535,28 @@ class Premium_Button_Widget extends Widget_Base
524
  ]
525
  );
526
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
  $this->end_controls_tab();
528
 
529
  $this->start_controls_tab('premium_button_style_hover',
@@ -617,28 +650,6 @@ class Premium_Button_Widget extends Widget_Base
617
  ]
618
  );
619
 
620
- /*Button Margin*/
621
- $this->add_responsive_control('premium_button_margin_hover',
622
- [
623
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
624
- 'type' => Controls_Manager::DIMENSIONS,
625
- 'size_units' => ['px', 'em', '%'],
626
- 'selectors' => [
627
- '{{WRAPPER}} .premium-button:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
628
- ]
629
- ]);
630
-
631
- /*Button Padding*/
632
- $this->add_responsive_control('premium_button_padding_hover',
633
- [
634
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
635
- 'type' => Controls_Manager::DIMENSIONS,
636
- 'size_units' => ['px', 'em', '%'],
637
- 'selectors' => [
638
- '{{WRAPPER}} .premium-button:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
639
- ]
640
- ]);
641
-
642
  /*Icon Shadow*/
643
  $this->add_group_control(
644
  Group_Control_Text_Shadow::get_type(),
@@ -678,7 +689,6 @@ class Premium_Button_Widget extends Widget_Base
678
  ]
679
  );
680
 
681
-
682
  /*Button Shadow*/
683
  $this->add_group_control(
684
  Group_Control_Box_Shadow::get_type(),
@@ -689,6 +699,28 @@ class Premium_Button_Widget extends Widget_Base
689
  ]
690
  );
691
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
692
  $this->end_controls_tab();
693
 
694
  $this->end_controls_tabs();
@@ -706,7 +738,12 @@ class Premium_Button_Widget extends Widget_Base
706
 
707
  $button_text = $settings['premium_button_text'];
708
 
709
- $button_url = $settings['premium_button_link']['url'];
 
 
 
 
 
710
 
711
  $button_size = 'premium-button-' . $settings['premium_button_size'];
712
 
8
  public function get_name() {
9
  return 'premium-addon-button';
10
  }
11
+
12
+ public function getTemplateInstance() {
13
+ return $this->templateInstance = premium_Template_Tags::getInstance();
14
+ }
15
 
16
  public function get_title() {
17
  return esc_html__('Premium Button', 'premium-addons-for-elementor');
32
  /*Start Button Content Section */
33
  $this->start_controls_section('premium_button_general_section',
34
  [
35
+ 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
36
  ]
37
  );
38
 
39
  /*Button Text*/
40
  $this->add_control('premium_button_text',
41
  [
42
+ 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
43
  'type' => Controls_Manager::TEXT,
44
  'default' => esc_html__('Click Me','premium-addons-for-elementor'),
45
  'label_block' => true,
46
  ]
47
  );
48
 
49
+ $this->add_control('premium_button_link_selection',
50
+ [
51
+ 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
52
+ 'type' => Controls_Manager::SELECT,
53
+ 'options' => [
54
+ 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
55
+ 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
56
+ ],
57
+ 'default' => 'url',
58
+ 'label_block' => true,
59
+ ]
60
+ );
61
+
62
  $this->add_control('premium_button_link',
63
  [
64
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
65
  'type' => Controls_Manager::URL,
66
  'default' => [
67
  'url' => '#',
69
  'placeholder' => 'https://premiumaddons.com/',
70
  'label_block' => true,
71
  'separator' => 'after',
72
+ 'condition' => [
73
+ 'premium_button_link_selection' => 'url'
74
+ ]
75
+ ]
76
+ );
77
+
78
+ $this->add_control('premium_button_existing_link',
79
+ [
80
+ 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
81
+ 'type' => Controls_Manager::SELECT,
82
+ 'options' => $this->getTemplateInstance()->get_all_post(),
83
+ 'condition' => [
84
+ 'premium_button_link_selection' => 'link',
85
+ ],
86
+ 'separator' => 'after',
87
+ 'label_block' => true,
88
  ]
89
  );
90
 
91
  /*Button Hover Effect*/
92
  $this->add_control('premium_button_hover_effect',
93
  [
94
+ 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
95
  'type' => Controls_Manager::SELECT,
96
  'default' => 'none',
97
  'options' => [
187
  /*Button Icon Switcher*/
188
  $this->add_control('premium_button_icon_switcher',
189
  [
190
+ 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
191
  'type' => Controls_Manager::SWITCHER,
192
  'condition' => [
193
  'premium_button_hover_effect!' => 'style4'
350
  /*Button Size*/
351
  $this->add_control('premium_button_size',
352
  [
353
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
354
  'type' => Controls_Manager::SELECT,
355
  'default' => 'lg',
356
  'options' => [
367
  /*Button Align*/
368
  $this->add_responsive_control('premium_button_align',
369
  [
370
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
371
  'type' => Controls_Manager::CHOOSE,
372
  'options' => [
373
  'left' => [
392
 
393
  $this->add_control('premium_button_event_switcher',
394
  [
395
+ 'label' => esc_html__('onclick Event', 'premium-addons-for-elementor'),
396
  'type' => Controls_Manager::SWITCHER,
397
  'separator' => 'before',
398
  ]
501
  ]
502
  );
503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
504
  /*Icon Shadow*/
505
  $this->add_group_control(
506
  Group_Control_Text_Shadow::get_type(),
535
  ]
536
  );
537
 
538
+ /*Button Margin*/
539
+ $this->add_responsive_control('premium_button_margin_normal',
540
+ [
541
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
542
+ 'type' => Controls_Manager::DIMENSIONS,
543
+ 'size_units' => ['px', 'em', '%'],
544
+ 'selectors' => [
545
+ '{{WRAPPER}} .premium-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
546
+ ]
547
+ ]);
548
+
549
+ /*Button Padding*/
550
+ $this->add_responsive_control('premium_button_padding_normal',
551
+ [
552
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
553
+ 'type' => Controls_Manager::DIMENSIONS,
554
+ 'size_units' => ['px', 'em', '%'],
555
+ 'selectors' => [
556
+ '{{WRAPPER}} .premium-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
557
+ ]
558
+ ]);
559
+
560
  $this->end_controls_tab();
561
 
562
  $this->start_controls_tab('premium_button_style_hover',
650
  ]
651
  );
652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
653
  /*Icon Shadow*/
654
  $this->add_group_control(
655
  Group_Control_Text_Shadow::get_type(),
689
  ]
690
  );
691
 
 
692
  /*Button Shadow*/
693
  $this->add_group_control(
694
  Group_Control_Box_Shadow::get_type(),
699
  ]
700
  );
701
 
702
+ /*Button Margin*/
703
+ $this->add_responsive_control('premium_button_margin_hover',
704
+ [
705
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
706
+ 'type' => Controls_Manager::DIMENSIONS,
707
+ 'size_units' => ['px', 'em', '%'],
708
+ 'selectors' => [
709
+ '{{WRAPPER}} .premium-button:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
710
+ ]
711
+ ]);
712
+
713
+ /*Button Padding*/
714
+ $this->add_responsive_control('premium_button_padding_hover',
715
+ [
716
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
717
+ 'type' => Controls_Manager::DIMENSIONS,
718
+ 'size_units' => ['px', 'em', '%'],
719
+ 'selectors' => [
720
+ '{{WRAPPER}} .premium-button:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
721
+ ]
722
+ ]);
723
+
724
  $this->end_controls_tab();
725
 
726
  $this->end_controls_tabs();
738
 
739
  $button_text = $settings['premium_button_text'];
740
 
741
+ if($settings['premium_button_link_selection'] == 'url'){
742
+ $button_url = $settings['premium_button_link']['url'];
743
+ } else {
744
+ $button_url = get_permalink($settings['premium_button_existing_link']);
745
+ }
746
+
747
 
748
  $button_size = 'premium-button-' . $settings['premium_button_size'];
749
 
widgets/premium-carousel.php CHANGED
@@ -40,16 +40,16 @@ class Premium_Carousel_Widget extends Widget_Base {
40
  // This will controls the animation, colors and background, dimensions etc
41
  protected function _register_controls() {
42
  $this->start_controls_section(
43
- 'premium-carousel-global-settings',
44
  [
45
- 'label' => esc_html__( 'Carousel Settings' , 'premium-addons-for-elementor' )
46
  ]
47
  );
48
 
49
  $this->add_control(
50
  'premium_carousel_slider_content',
51
  [
52
- 'label' => esc_html__( 'Slider Content', 'premium-addons-for-elementor' ),
53
  'description' => esc_html__( 'Slider content is a template which you can choose from Elementor library. Each template will be a slider content', 'premium-addons-for-elementor' ),
54
  'type' => Controls_Manager::SELECT2,
55
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
@@ -61,7 +61,7 @@ class Premium_Carousel_Widget extends Widget_Base {
61
  $this->add_control(
62
  'premium_carousel_slider_type',
63
  [
64
- 'label' => esc_html__( 'Slider Type', 'premium-addons-for-elementor' ),
65
  'description' => esc_html__( 'Set a navigation type', 'premium-addons-for-elementor' ),
66
  'type' => Controls_Manager::SELECT,
67
  'default' => 'horizontal',
@@ -75,7 +75,7 @@ class Premium_Carousel_Widget extends Widget_Base {
75
  $this->add_control(
76
  'premium_carousel_slides_to_show',
77
  [
78
- 'label' => esc_html__( 'Slides to Scroll', 'premium-addons-for-elementor' ),
79
  'type' => Controls_Manager::SELECT,
80
  'default' => 'all',
81
  'options' => [
@@ -88,7 +88,7 @@ class Premium_Carousel_Widget extends Widget_Base {
88
  $this->add_control(
89
  'premium_carousel_responsive_desktop',
90
  [
91
- 'label' => esc_html__( 'Slides on Desktop', 'premium-addons-for-elementor' ),
92
  'type' => Controls_Manager::NUMBER,
93
  'default' => 5
94
  ]
@@ -97,7 +97,7 @@ class Premium_Carousel_Widget extends Widget_Base {
97
  $this->add_control(
98
  'premium_carousel_responsive_tabs',
99
  [
100
- 'label' => esc_html__( 'Slides on Tabs', 'premium-addons-for-elementor' ),
101
  'type' => Controls_Manager::NUMBER,
102
  'default' => 3
103
  ]
@@ -106,12 +106,21 @@ class Premium_Carousel_Widget extends Widget_Base {
106
  $this->add_control(
107
  'premium_carousel_responsive_mobile',
108
  [
109
- 'label' => esc_html__( 'Slides on Mobile', 'premium-addons-for-elementor' ),
110
  'type' => Controls_Manager::NUMBER,
111
  'default' => 2
112
  ]
113
  );
114
 
 
 
 
 
 
 
 
 
 
115
  $this->add_control(
116
  'premium_carousel_loop',
117
  [
@@ -135,7 +144,7 @@ class Premium_Carousel_Widget extends Widget_Base {
135
  $this->add_control(
136
  'premium_carousel_autoplay',
137
  [
138
- 'label' => esc_html__( 'AutoPlay Slides‏', 'premium-addons-for-elementor' ),
139
  'description' => esc_html__( 'Slide will start automatically', 'premium-addons-for-elementor' ),
140
  'type' => Controls_Manager::SWITCHER,
141
  'default' => 'yes'
@@ -145,8 +154,8 @@ class Premium_Carousel_Widget extends Widget_Base {
145
  $this->add_control(
146
  'premium_carousel_autoplay_speed',
147
  [
148
- 'label' => esc_html__( 'AutoPlay Speed', 'premium-addons-for-elementor' ),
149
- 'description' => esc_html__( 'AutoPlay Speed means at which time the next slide should come. Set a value in milliseconds (ms)', 'premium-addons-for-elementor' ),
150
  'type' => Controls_Manager::NUMBER,
151
  'default' => 5000,
152
  'condition' => [
@@ -167,7 +176,8 @@ class Premium_Carousel_Widget extends Widget_Base {
167
  'premium_carousel_extra_class',
168
  [
169
  'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
170
- 'type' => Controls_Manager::TEXT
 
171
  ]
172
  );
173
 
@@ -180,160 +190,27 @@ class Premium_Carousel_Widget extends Widget_Base {
180
  'tab' => Controls_Manager::TAB_STYLE
181
  ]
182
  );
 
 
 
 
 
 
183
 
184
  $this->add_control(
185
  'premium_carousel_navigation_show',
186
  [
187
- 'label' => esc_html__( 'Navigation Arrows', 'premium-addons-for-elementor' ),
188
  'description' => esc_html__( 'Enable or disable navigation arrows', 'premium-addons-for-elementor' ),
189
  'type' => Controls_Manager::SWITCHER,
190
  'default' => 'yes'
191
  ]
192
  );
193
-
194
- $this->add_control(
195
- 'premium_carousel_arrow_style',
196
- [
197
- 'label' => esc_html__( 'Arrow Style', 'premium-addons-for-elementor' ),
198
- 'type' => Controls_Manager::SELECT,
199
- 'default' => 'default',
200
- 'options' => [
201
- 'default' => esc_html__( 'Default', 'premium-addons-for-elementor' ),
202
- 'circle-bg' => esc_html__( 'Circle Background', 'premium-addons-for-elementor' ),
203
- 'square-bg' => esc_html__( 'Square Background', 'premium-addons-for-elementor' ),
204
- 'circle-border' => esc_html__( 'Circle border', 'premium-addons-for-elementor' ),
205
- 'square-border' => esc_html__( 'Square border', 'premium-addons-for-elementor' ),
206
- ],
207
- 'condition' => [
208
- 'premium_carousel_navigation_show' => 'yes'
209
- ]
210
- ]
211
- );
212
-
213
- $this->add_control(
214
- 'premium_carousel_arrow_bg_color',
215
- [
216
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
217
- 'type' => Controls_Manager::COLOR,
218
- 'scheme' => [
219
- 'type' => Scheme_Color::get_type(),
220
- 'value' => Scheme_Color::COLOR_1,
221
- ],
222
- 'condition' => [
223
- 'premium_carousel_arrow_style' => [ 'circle-bg', 'square-bg' ]
224
- ],
225
- 'selectors' => [
226
- '{{WRAPPER}} .premium-carousel-wrapper .circle-bg' => 'background: {{VALUE}};',
227
- '{{WRAPPER}} .premium-carousel-wrapper .square-bg' => 'background: {{VALUE}};',
228
- ],
229
- ]
230
- );
231
-
232
- $this->add_control(
233
- 'premium_carousel_arrow_border_color',
234
- [
235
- 'label' => esc_html__( 'Border Color', 'premium-addons-for-elementor' ),
236
- 'type' => Controls_Manager::COLOR,
237
- 'scheme' => [
238
- 'type' => Scheme_Color::get_type(),
239
- 'value' => Scheme_Color::COLOR_1,
240
- ],
241
- 'condition' => [
242
- 'premium_carousel_arrow_style' => [ 'circle-border', 'square-border' ]
243
- ],
244
- 'selectors' => [
245
- '{{WRAPPER}} .premium-carousel-wrapper .square-border' => 'border: solid {{VALUE}};',
246
- '{{WRAPPER}} .premium-carousel-wrapper .circle-border' => 'border: solid {{VALUE}};',
247
- ],
248
- ]
249
- );
250
-
251
- $this->add_control(
252
- 'premium_carousel_border_size',
253
- [
254
- 'label' => esc_html__( 'Border Size', 'premium-addons-for-elementor' ),
255
- 'type' => Controls_Manager::SLIDER,
256
- 'default' => [
257
- 'size' => 1,
258
- ],
259
- 'range' => [
260
- 'px' => [
261
- 'min' => 0,
262
- 'max' => 60
263
- ],
264
- ],
265
- 'condition' => [
266
- 'premium_carousel_arrow_style' => [ 'circle-border', 'square-border' ]
267
- ],
268
- 'selectors' => [
269
- '{{WRAPPER}} .premium-carousel-wrapper .square-border' => 'border-width: {{SIZE}}{{UNIT}};',
270
- '{{WRAPPER}} .premium-carousel-wrapper .circle-border' => 'border-width: {{SIZE}}{{UNIT}};',
271
- ],
272
- ]
273
- );
274
-
275
- $this->add_control(
276
- 'premium_carousel_arrow_color',
277
- [
278
- 'label' => esc_html__( 'Arrow Color', 'premium-addons-for-elementor' ),
279
- 'type' => Controls_Manager::COLOR,
280
- 'scheme' => [
281
- 'type' => Scheme_Color::get_type(),
282
- 'value' => Scheme_Color::COLOR_2,
283
- ],
284
- 'condition' => [
285
- 'premium_carousel_navigation_show' => 'yes'
286
- ],
287
- 'selectors' => [
288
- '{{WRAPPER}} .premium-carousel-wrapper .slick-arrow' => 'color: {{VALUE}};',
289
- ],
290
- ]
291
- );
292
-
293
- $this->add_control(
294
- 'premium_carousel_arrow_size',
295
- [
296
- 'label' => esc_html__( 'Arrow Size', 'premium-addons-for-elementor' ),
297
- 'type' => Controls_Manager::SLIDER,
298
- 'default' => [
299
- 'size' => 14,
300
- ],
301
- 'range' => [
302
- 'px' => [
303
- 'min' => 0,
304
- 'max' => 60
305
- ],
306
- ],
307
- 'condition' => [
308
- 'premium_carousel_navigation_show' => 'yes'
309
- ],
310
- 'selectors' => [
311
- '{{WRAPPER}} .premium-carousel-wrapper .slick-arrow' => 'font-size: {{SIZE}}{{UNIT}};',
312
- ],
313
- ]
314
- );
315
 
316
- $this->add_control('premium_carousel_arrow_position',
317
- [
318
- 'label' => esc_html__('Arrows Position (PX)', 'premium-addons-for-elementor'),
319
- 'type' => Controls_Manager::SLIDER,
320
- 'range' => [
321
- 'px' => [
322
- 'min' => -50,
323
- 'max' => 1,
324
- ],
325
- ],
326
- 'condition' => [
327
- 'premium_carousel_navigation_show' => 'yes',
328
- 'premium_carousel_slider_type' => 'horizontal'
329
- ],
330
- ]
331
- );
332
-
333
- $this->add_control(
334
  'premium_carousel_arrow_icon_next',
335
  [
336
- 'label' => esc_html__( 'Select Icon for \'Next Arrow\'', 'premium-addons-for-elementor' ),
337
  'type' => Controls_Manager::CHOOSE,
338
  'options' => [
339
  'right_arrow_bold' => [
@@ -364,7 +241,7 @@ class Premium_Carousel_Widget extends Widget_Base {
364
  $this->add_control(
365
  'premium_carousel_arrow_icon_next_ver',
366
  [
367
- 'label' => esc_html__( 'Select Icon for \'Bottom Arrow\'', 'premium-addons-for-elementor' ),
368
  'type' => Controls_Manager::CHOOSE,
369
  'options' => [
370
  'right_arrow_bold' => [
@@ -391,117 +268,226 @@ class Premium_Carousel_Widget extends Widget_Base {
391
  ]
392
  );
393
 
 
394
  $this->add_control(
395
- 'premium_carousel_arrow_icon_prev',
396
  [
397
- 'label' => esc_html__( 'Select Icon for \'Prev Arrow\'', 'premium-addons-for-elementor' ),
398
  'type' => Controls_Manager::CHOOSE,
399
  'options' => [
400
  'left_arrow_bold' => [
401
- 'icon' => 'fa fa-arrow-left',
402
  ],
403
  'left_arrow_long' => [
404
- 'icon' => 'fa fa-long-arrow-left',
405
  ],
406
  'left_arrow_long_circle' => [
407
- 'icon' => 'fa fa-arrow-circle-left',
408
  ],
409
  'left_arrow_angle' => [
410
- 'icon' => 'fa fa-angle-left',
411
  ],
412
  'left_arrow_chevron' => [
413
- 'icon' => 'fa fa-chevron-left',
414
  ]
415
  ],
416
  'default' => 'left_arrow_angle',
417
  'condition' => [
418
  'premium_carousel_navigation_show' => 'yes',
419
- 'premium_carousel_slider_type!' => 'vertical',
420
  ]
421
  ]
422
  );
423
-
424
- // If carousel slider is vertical type
425
  $this->add_control(
426
- 'premium_carousel_arrow_icon_prev_ver',
427
  [
428
- 'label' => esc_html__( 'Select Icon for \'Up Arrow\'', 'premium-addons-for-elementor' ),
429
  'type' => Controls_Manager::CHOOSE,
430
  'options' => [
431
  'left_arrow_bold' => [
432
- 'icon' => 'fa fa-arrow-up',
433
  ],
434
  'left_arrow_long' => [
435
- 'icon' => 'fa fa-long-arrow-up',
436
  ],
437
  'left_arrow_long_circle' => [
438
- 'icon' => 'fa fa-arrow-circle-up',
439
  ],
440
  'left_arrow_angle' => [
441
- 'icon' => 'fa fa-angle-up',
442
  ],
443
  'left_arrow_chevron' => [
444
- 'icon' => 'fa fa-chevron-up',
445
  ]
446
  ],
447
  'default' => 'left_arrow_angle',
448
  'condition' => [
449
  'premium_carousel_navigation_show' => 'yes',
450
- 'premium_carousel_slider_type' => 'vertical',
451
  ]
452
  ]
453
  );
454
 
455
  $this->add_control(
456
- 'premium_carousel_dot_navigation_show',
457
  [
458
- 'label' => esc_html__( 'Navigation Dots', 'premium-addons-for-elementor' ),
459
- 'description' => esc_html__( 'Enable or disable navigation dots', 'premium-addons-for-elementor' ),
460
- 'type' => Controls_Manager::SWITCHER,
461
- 'default' => 'yes'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  ]
463
  );
464
 
465
  $this->add_control(
466
- 'premium_carousel_dot_navigation_color',
467
  [
468
- 'label' => esc_html__( 'Navigation Dots Color', 'premium-addons-for-elementor' ),
469
  'type' => Controls_Manager::COLOR,
470
  'scheme' => [
471
  'type' => Scheme_Color::get_type(),
472
- 'value' => Scheme_Color::COLOR_2,
473
  ],
474
  'condition' => [
475
- 'premium_carousel_dot_navigation_show' => 'yes'
 
 
 
 
476
  ],
477
- 'selectors' => [
478
- '{{WRAPPER}} ul.slick-dots li' => 'color: {{VALUE}}'
479
- ]
480
  ]
481
  );
482
 
483
  $this->add_control(
484
- 'premium_carousel_dot_navigation_active_color',
485
  [
486
- 'label' => esc_html__( 'Dot Active Color', 'premium-addons-for-elementor' ),
487
  'type' => Controls_Manager::COLOR,
488
  'scheme' => [
489
  'type' => Scheme_Color::get_type(),
490
  'value' => Scheme_Color::COLOR_1,
491
  ],
492
  'condition' => [
493
- 'premium_carousel_dot_navigation_show' => 'yes'
 
 
 
 
494
  ],
495
- 'selectors' => [
496
- '{{WRAPPER}} ul.slick-dots li.slick-active' => 'color: {{VALUE}}'
497
- ]
498
  ]
499
  );
500
 
501
  $this->add_control(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  'premium_carousel_dot_icon',
503
  [
504
- 'label' => esc_html__( 'Navigation Dots Icon', 'premium-addons-for-elementor' ),
505
  'type' => Controls_Manager::CHOOSE,
506
  'options' => [
507
  'square_white' => [
@@ -527,12 +513,48 @@ class Premium_Carousel_Widget extends Widget_Base {
527
  ]
528
  );
529
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  $this->end_controls_section();
531
 
532
  $this->start_controls_section(
533
  'premium-carousel-advance-settings',
534
  [
535
- 'label' => esc_html__( 'Advanced Settings' , 'premium-addons-for-elementor' ),
536
  'tab' => Controls_Manager::TAB_STYLE
537
  ]
538
  );
@@ -603,7 +625,7 @@ class Premium_Carousel_Widget extends Widget_Base {
603
  $this->add_control(
604
  'premium_carousel_space_btw_items',
605
  [
606
- 'label' => esc_html__( 'Space Between Two Items', 'premium-addons-for-elementor' ),
607
  'description' => esc_html__('Set a spacing value in pixels (px)', 'premium-addons-for-elementor'),
608
  'type' => Controls_Manager::NUMBER,
609
  'default' => '15'
@@ -962,4 +984,4 @@ class Premium_Carousel_Widget extends Widget_Base {
962
 
963
  }
964
  }
965
- Plugin::instance()->widgets_manager->register_widget_type( new Premium_Carousel_Widget() );
40
  // This will controls the animation, colors and background, dimensions etc
41
  protected function _register_controls() {
42
  $this->start_controls_section(
43
+ 'premium_carousel_global_settings',
44
  [
45
+ 'label' => esc_html__( 'Carousel' , 'premium-addons-for-elementor' )
46
  ]
47
  );
48
 
49
  $this->add_control(
50
  'premium_carousel_slider_content',
51
  [
52
+ 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' ),
53
  'description' => esc_html__( 'Slider content is a template which you can choose from Elementor library. Each template will be a slider content', 'premium-addons-for-elementor' ),
54
  'type' => Controls_Manager::SELECT2,
55
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
61
  $this->add_control(
62
  'premium_carousel_slider_type',
63
  [
64
+ 'label' => esc_html__( 'Type', 'premium-addons-for-elementor' ),
65
  'description' => esc_html__( 'Set a navigation type', 'premium-addons-for-elementor' ),
66
  'type' => Controls_Manager::SELECT,
67
  'default' => 'horizontal',
75
  $this->add_control(
76
  'premium_carousel_slides_to_show',
77
  [
78
+ 'label' => esc_html__( 'Appearance', 'premium-addons-for-elementor' ),
79
  'type' => Controls_Manager::SELECT,
80
  'default' => 'all',
81
  'options' => [
88
  $this->add_control(
89
  'premium_carousel_responsive_desktop',
90
  [
91
+ 'label' => esc_html__( 'Desktop Slides', 'premium-addons-for-elementor' ),
92
  'type' => Controls_Manager::NUMBER,
93
  'default' => 5
94
  ]
97
  $this->add_control(
98
  'premium_carousel_responsive_tabs',
99
  [
100
+ 'label' => esc_html__( 'Tabs Slides', 'premium-addons-for-elementor' ),
101
  'type' => Controls_Manager::NUMBER,
102
  'default' => 3
103
  ]
106
  $this->add_control(
107
  'premium_carousel_responsive_mobile',
108
  [
109
+ 'label' => esc_html__( 'Mobile Slides', 'premium-addons-for-elementor' ),
110
  'type' => Controls_Manager::NUMBER,
111
  'default' => 2
112
  ]
113
  );
114
 
115
+ $this->end_controls_section();
116
+
117
+ $this->start_controls_section(
118
+ 'premium_carousel_slides_settings',
119
+ [
120
+ 'label' => esc_html__( 'Slides\' Settings' , 'premium-addons-for-elementor' )
121
+ ]
122
+ );
123
+
124
  $this->add_control(
125
  'premium_carousel_loop',
126
  [
144
  $this->add_control(
145
  'premium_carousel_autoplay',
146
  [
147
+ 'label' => esc_html__( 'Autoplay Slides‏', 'premium-addons-for-elementor' ),
148
  'description' => esc_html__( 'Slide will start automatically', 'premium-addons-for-elementor' ),
149
  'type' => Controls_Manager::SWITCHER,
150
  'default' => 'yes'
154
  $this->add_control(
155
  'premium_carousel_autoplay_speed',
156
  [
157
+ 'label' => esc_html__( 'Autoplay Speed', 'premium-addons-for-elementor' ),
158
+ 'description' => esc_html__( 'Autoplay Speed means at which time the next slide should come. Set a value in milliseconds (ms)', 'premium-addons-for-elementor' ),
159
  'type' => Controls_Manager::NUMBER,
160
  'default' => 5000,
161
  'condition' => [
176
  'premium_carousel_extra_class',
177
  [
178
  'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
179
+ 'type' => Controls_Manager::TEXT,
180
+ 'description' => esc_html__( 'Add extra class name that will be applied to the carousel, and you can use this class for your customizations.', 'premium-addons-for-elementor' ),
181
  ]
182
  );
183
 
190
  'tab' => Controls_Manager::TAB_STYLE
191
  ]
192
  );
193
+
194
+ $this->add_control('premium_carousel_arrow_heading',
195
+ [
196
+ 'label' => esc_html__('Arrows','premium-addons-for-elementor'),
197
+ 'type' => Controls_manager::HEADING,
198
+ ]);
199
 
200
  $this->add_control(
201
  'premium_carousel_navigation_show',
202
  [
203
+ 'label' => esc_html__( 'Arrows', 'premium-addons-for-elementor' ),
204
  'description' => esc_html__( 'Enable or disable navigation arrows', 'premium-addons-for-elementor' ),
205
  'type' => Controls_Manager::SWITCHER,
206
  'default' => 'yes'
207
  ]
208
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
 
210
+ $this->add_control(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  'premium_carousel_arrow_icon_next',
212
  [
213
+ 'label' => esc_html__( 'Right Icon', 'premium-addons-for-elementor' ),
214
  'type' => Controls_Manager::CHOOSE,
215
  'options' => [
216
  'right_arrow_bold' => [
241
  $this->add_control(
242
  'premium_carousel_arrow_icon_next_ver',
243
  [
244
+ 'label' => esc_html__( 'Bottom Icon', 'premium-addons-for-elementor' ),
245
  'type' => Controls_Manager::CHOOSE,
246
  'options' => [
247
  'right_arrow_bold' => [
268
  ]
269
  );
270
 
271
+ // If carousel slider is vertical type
272
  $this->add_control(
273
+ 'premium_carousel_arrow_icon_prev_ver',
274
  [
275
+ 'label' => esc_html__( 'Top Icon', 'premium-addons-for-elementor' ),
276
  'type' => Controls_Manager::CHOOSE,
277
  'options' => [
278
  'left_arrow_bold' => [
279
+ 'icon' => 'fa fa-arrow-up',
280
  ],
281
  'left_arrow_long' => [
282
+ 'icon' => 'fa fa-long-arrow-up',
283
  ],
284
  'left_arrow_long_circle' => [
285
+ 'icon' => 'fa fa-arrow-circle-up',
286
  ],
287
  'left_arrow_angle' => [
288
+ 'icon' => 'fa fa-angle-up',
289
  ],
290
  'left_arrow_chevron' => [
291
+ 'icon' => 'fa fa-chevron-up',
292
  ]
293
  ],
294
  'default' => 'left_arrow_angle',
295
  'condition' => [
296
  'premium_carousel_navigation_show' => 'yes',
297
+ 'premium_carousel_slider_type' => 'vertical',
298
  ]
299
  ]
300
  );
301
+
 
302
  $this->add_control(
303
+ 'premium_carousel_arrow_icon_prev',
304
  [
305
+ 'label' => esc_html__( 'Left Icon', 'premium-addons-for-elementor' ),
306
  'type' => Controls_Manager::CHOOSE,
307
  'options' => [
308
  'left_arrow_bold' => [
309
+ 'icon' => 'fa fa-arrow-left',
310
  ],
311
  'left_arrow_long' => [
312
+ 'icon' => 'fa fa-long-arrow-left',
313
  ],
314
  'left_arrow_long_circle' => [
315
+ 'icon' => 'fa fa-arrow-circle-left',
316
  ],
317
  'left_arrow_angle' => [
318
+ 'icon' => 'fa fa-angle-left',
319
  ],
320
  'left_arrow_chevron' => [
321
+ 'icon' => 'fa fa-chevron-left',
322
  ]
323
  ],
324
  'default' => 'left_arrow_angle',
325
  'condition' => [
326
  'premium_carousel_navigation_show' => 'yes',
327
+ 'premium_carousel_slider_type!' => 'vertical',
328
  ]
329
  ]
330
  );
331
 
332
  $this->add_control(
333
+ 'premium_carousel_arrow_style',
334
  [
335
+ 'label' => esc_html__( 'Style', 'premium-addons-for-elementor' ),
336
+ 'type' => Controls_Manager::SELECT,
337
+ 'default' => 'default',
338
+ 'options' => [
339
+ 'default' => esc_html__( 'Default', 'premium-addons-for-elementor' ),
340
+ 'circle-bg' => esc_html__( 'Circle Background', 'premium-addons-for-elementor' ),
341
+ 'square-bg' => esc_html__( 'Square Background', 'premium-addons-for-elementor' ),
342
+ 'circle-border' => esc_html__( 'Circle border', 'premium-addons-for-elementor' ),
343
+ 'square-border' => esc_html__( 'Square border', 'premium-addons-for-elementor' ),
344
+ ],
345
+ 'condition' => [
346
+ 'premium_carousel_navigation_show' => 'yes'
347
+ ]
348
+ ]
349
+ );
350
+
351
+ $this->add_control(
352
+ 'premium_carousel_arrow_color',
353
+ [
354
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
355
+ 'type' => Controls_Manager::COLOR,
356
+ 'scheme' => [
357
+ 'type' => Scheme_Color::get_type(),
358
+ 'value' => Scheme_Color::COLOR_2,
359
+ ],
360
+ 'condition' => [
361
+ 'premium_carousel_navigation_show' => 'yes'
362
+ ],
363
+ 'selectors' => [
364
+ '{{WRAPPER}} .premium-carousel-wrapper .slick-arrow' => 'color: {{VALUE}};',
365
+ ],
366
+ ]
367
+ );
368
+
369
+ $this->add_control(
370
+ 'premium_carousel_arrow_size',
371
+ [
372
+ 'label' => esc_html__( 'Size', 'premium-addons-for-elementor' ),
373
+ 'type' => Controls_Manager::SLIDER,
374
+ 'default' => [
375
+ 'size' => 14,
376
+ ],
377
+ 'range' => [
378
+ 'px' => [
379
+ 'min' => 0,
380
+ 'max' => 60
381
+ ],
382
+ ],
383
+ 'condition' => [
384
+ 'premium_carousel_navigation_show' => 'yes'
385
+ ],
386
+ 'selectors' => [
387
+ '{{WRAPPER}} .premium-carousel-wrapper .slick-arrow' => 'font-size: {{SIZE}}{{UNIT}};',
388
+ ],
389
  ]
390
  );
391
 
392
  $this->add_control(
393
+ 'premium_carousel_arrow_bg_color',
394
  [
395
+ 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
396
  'type' => Controls_Manager::COLOR,
397
  'scheme' => [
398
  'type' => Scheme_Color::get_type(),
399
+ 'value' => Scheme_Color::COLOR_1,
400
  ],
401
  'condition' => [
402
+ 'premium_carousel_arrow_style' => [ 'circle-bg', 'square-bg' ]
403
+ ],
404
+ 'selectors' => [
405
+ '{{WRAPPER}} .premium-carousel-wrapper .circle-bg' => 'background: {{VALUE}};',
406
+ '{{WRAPPER}} .premium-carousel-wrapper .square-bg' => 'background: {{VALUE}};',
407
  ],
 
 
 
408
  ]
409
  );
410
 
411
  $this->add_control(
412
+ 'premium_carousel_arrow_border_color',
413
  [
414
+ 'label' => esc_html__( 'Border Color', 'premium-addons-for-elementor' ),
415
  'type' => Controls_Manager::COLOR,
416
  'scheme' => [
417
  'type' => Scheme_Color::get_type(),
418
  'value' => Scheme_Color::COLOR_1,
419
  ],
420
  'condition' => [
421
+ 'premium_carousel_arrow_style' => [ 'circle-border', 'square-border' ]
422
+ ],
423
+ 'selectors' => [
424
+ '{{WRAPPER}} .premium-carousel-wrapper .square-border' => 'border: solid {{VALUE}};',
425
+ '{{WRAPPER}} .premium-carousel-wrapper .circle-border' => 'border: solid {{VALUE}};',
426
  ],
 
 
 
427
  ]
428
  );
429
 
430
  $this->add_control(
431
+ 'premium_carousel_border_size',
432
+ [
433
+ 'label' => esc_html__( 'Border Size', 'premium-addons-for-elementor' ),
434
+ 'type' => Controls_Manager::SLIDER,
435
+ 'default' => [
436
+ 'size' => 1,
437
+ ],
438
+ 'range' => [
439
+ 'px' => [
440
+ 'min' => 0,
441
+ 'max' => 60
442
+ ],
443
+ ],
444
+ 'condition' => [
445
+ 'premium_carousel_arrow_style' => [ 'circle-border', 'square-border' ]
446
+ ],
447
+ 'selectors' => [
448
+ '{{WRAPPER}} .premium-carousel-wrapper .square-border' => 'border-width: {{SIZE}}{{UNIT}};',
449
+ '{{WRAPPER}} .premium-carousel-wrapper .circle-border' => 'border-width: {{SIZE}}{{UNIT}};',
450
+ ],
451
+ ]
452
+ );
453
+
454
+ $this->add_control('premium_carousel_arrow_position',
455
+ [
456
+ 'label' => esc_html__('Position (PX)', 'premium-addons-for-elementor'),
457
+ 'type' => Controls_Manager::SLIDER,
458
+ 'range' => [
459
+ 'px' => [
460
+ 'min' => -50,
461
+ 'max' => 1,
462
+ ],
463
+ ],
464
+ 'condition' => [
465
+ 'premium_carousel_navigation_show' => 'yes',
466
+ 'premium_carousel_slider_type' => 'horizontal'
467
+ ],
468
+ ]
469
+ );
470
+
471
+ $this->add_control('premium_carousel_dots_heading',
472
+ [
473
+ 'label' => esc_html__('Dots','premium-addons-for-elementor'),
474
+ 'type' => Controls_manager::HEADING,
475
+ ]);
476
+
477
+ $this->add_control(
478
+ 'premium_carousel_dot_navigation_show',
479
+ [
480
+ 'label' => esc_html__( 'Dots', 'premium-addons-for-elementor' ),
481
+ 'description' => esc_html__( 'Enable or disable navigation dots', 'premium-addons-for-elementor' ),
482
+ 'type' => Controls_Manager::SWITCHER,
483
+ 'default' => 'yes'
484
+ ]
485
+ );
486
+
487
+ $this->add_control(
488
  'premium_carousel_dot_icon',
489
  [
490
+ 'label' => esc_html__( 'Icon', 'premium-addons-for-elementor' ),
491
  'type' => Controls_Manager::CHOOSE,
492
  'options' => [
493
  'square_white' => [
513
  ]
514
  );
515
 
516
+ $this->add_control(
517
+ 'premium_carousel_dot_navigation_color',
518
+ [
519
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
520
+ 'type' => Controls_Manager::COLOR,
521
+ 'scheme' => [
522
+ 'type' => Scheme_Color::get_type(),
523
+ 'value' => Scheme_Color::COLOR_2,
524
+ ],
525
+ 'condition' => [
526
+ 'premium_carousel_dot_navigation_show' => 'yes'
527
+ ],
528
+ 'selectors' => [
529
+ '{{WRAPPER}} ul.slick-dots li' => 'color: {{VALUE}}'
530
+ ]
531
+ ]
532
+ );
533
+
534
+ $this->add_control(
535
+ 'premium_carousel_dot_navigation_active_color',
536
+ [
537
+ 'label' => esc_html__( 'Active Color', 'premium-addons-for-elementor' ),
538
+ 'type' => Controls_Manager::COLOR,
539
+ 'scheme' => [
540
+ 'type' => Scheme_Color::get_type(),
541
+ 'value' => Scheme_Color::COLOR_1,
542
+ ],
543
+ 'condition' => [
544
+ 'premium_carousel_dot_navigation_show' => 'yes'
545
+ ],
546
+ 'selectors' => [
547
+ '{{WRAPPER}} ul.slick-dots li.slick-active' => 'color: {{VALUE}}'
548
+ ]
549
+ ]
550
+ );
551
+
552
  $this->end_controls_section();
553
 
554
  $this->start_controls_section(
555
  'premium-carousel-advance-settings',
556
  [
557
+ 'label' => esc_html__( 'Additional Settings' , 'premium-addons-for-elementor' ),
558
  'tab' => Controls_Manager::TAB_STYLE
559
  ]
560
  );
625
  $this->add_control(
626
  'premium_carousel_space_btw_items',
627
  [
628
+ 'label' => esc_html__( 'Slides\' Spacing', 'premium-addons-for-elementor' ),
629
  'description' => esc_html__('Set a spacing value in pixels (px)', 'premium-addons-for-elementor'),
630
  'type' => Controls_Manager::NUMBER,
631
  'default' => '15'
984
 
985
  }
986
  }
987
+ Plugin::instance()->widgets_manager->register_widget_type( new Premium_Carousel_Widget() );
widgets/premium-countdown.php CHANGED
@@ -33,18 +33,18 @@ class Premium_Counter_Down_Widget extends Widget_Base {
33
  $this->start_controls_section(
34
  'premium_countdown_global_settings',
35
  [
36
- 'label' => esc_html__( 'Countdown Settings', 'premium-addons-for-elementor' )
37
  ]
38
  );
39
 
40
  $this->add_control(
41
  'premium_countdown_style',
42
  [
43
- 'label' => esc_html__( 'Countdown Style', 'premium-addons-for-elementor' ),
44
  'type' => Controls_Manager::SELECT,
45
  'options' => [
46
- 'd-u-s' => esc_html__( 'Digit and Unit Side by Side', 'premium-addons-for-elementor' ),
47
- 'd-u-u' => esc_html__( 'Digit and Unit Up and Down', 'premium-addons-for-elementor' ),
48
  ],
49
  'default' => 'd-u-u'
50
  ]
@@ -53,7 +53,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
53
  $this->add_control(
54
  'premium_countdown_date_time',
55
  [
56
- 'label' => esc_html__( 'Target Date and Time', 'premium-addons-for-elementor' ),
57
  'type' => Controls_Manager::DATE_TIME,
58
  'picker_options' => [
59
  'format' => 'Ym/d H:m:s'
@@ -66,7 +66,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
66
  $this->add_control(
67
  'premium_countdown_s_u_time',
68
  [
69
- 'label' => esc_html__( 'Countdown Timer Depends On', 'premium-addons-for-elementor' ),
70
  'type' => Controls_Manager::SELECT,
71
  'options' => [
72
  'wp-time' => esc_html__('WordPress Default', 'premium-addons-for-elementor' ),
@@ -80,7 +80,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
80
  $this->add_control(
81
  'premium_countdown_units',
82
  [
83
- 'label' => esc_html__( 'Select Time Units', 'premium-addons-for-elementor' ),
84
  'type' => Controls_Manager::SELECT2,
85
  'description' => esc_html__('Select the time units that you want to display in countdown timer.', 'premium-addons-for-elementor' ),
86
  'options' => [
@@ -109,20 +109,20 @@ class Premium_Counter_Down_Widget extends Widget_Base {
109
  $this->start_controls_section(
110
  'premium_countdown_on_expire_settings',
111
  [
112
- 'label' => esc_html__( 'Expire Settings' , 'premium-addons-for-elementor' )
113
  ]
114
  );
115
 
116
  $this->add_control(
117
  'premium_countdown_expire_text_url',
118
  [
119
- 'label' => esc_html__('Expire Text or Redirection Link', 'premium-addons-for-elementor'),
120
  'label_block' => false,
121
  'type' => Controls_Manager::SELECT,
122
  'description' => esc_html__('Choose whether if you want to set a message or a redirect link', 'premium-addons-for-elementor'),
123
  'options' => [
124
- 'text' => esc_html__('Text', 'premium-addons-for-elementor'),
125
- 'url' => esc_html__('URL', 'premium-addons-for-elementor')
126
  ],
127
  'default' => 'text'
128
  ]
@@ -307,7 +307,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
307
  $this->add_control(
308
  'premium_countdown_digit_color',
309
  [
310
- 'label' => esc_html__( 'Digits Color', 'premium-addons-for-elementor' ),
311
  'type' => Controls_Manager::COLOR,
312
  'scheme' => [
313
  'type' => Scheme_Color::get_type(),
@@ -387,7 +387,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
387
 
388
  $this->start_controls_section('premium_countdown_unit_style',
389
  [
390
- 'label' => esc_html__('Unit', 'premium-addons-for-elementor'),
391
  'tab' => Controls_Manager::TAB_STYLE,
392
  ]
393
  );
@@ -395,7 +395,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
395
  $this->add_control(
396
  'premium_countdown_unit_color',
397
  [
398
- 'label' => esc_html__( 'Units Color', 'premium-addons-for-elementor' ),
399
  'type' => Controls_Manager::COLOR,
400
  'scheme' => [
401
  'type' => Scheme_Color::get_type(),
@@ -420,7 +420,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
420
  $this->add_responsive_control(
421
  'premium_countdown_separator_width',
422
  [
423
- 'label' => esc_html__( 'Separator Width', 'premium-addons-for-elementor' ),
424
  'type' => Controls_Manager::SLIDER,
425
  'default' => [
426
  'size' => 40,
@@ -539,4 +539,4 @@ class Premium_Counter_Down_Widget extends Widget_Base {
539
 
540
  }
541
 
542
- Plugin::instance()->widgets_manager->register_widget_type( new Premium_Counter_Down_Widget() );
33
  $this->start_controls_section(
34
  'premium_countdown_global_settings',
35
  [
36
+ 'label' => esc_html__( 'Countdown', 'premium-addons-for-elementor' )
37
  ]
38
  );
39
 
40
  $this->add_control(
41
  'premium_countdown_style',
42
  [
43
+ 'label' => esc_html__( 'Style', 'premium-addons-for-elementor' ),
44
  'type' => Controls_Manager::SELECT,
45
  'options' => [
46
+ 'd-u-s' => esc_html__( 'Inline', 'premium-addons-for-elementor' ),
47
+ 'd-u-u' => esc_html__( 'Block', 'premium-addons-for-elementor' ),
48
  ],
49
  'default' => 'd-u-u'
50
  ]
53
  $this->add_control(
54
  'premium_countdown_date_time',
55
  [
56
+ 'label' => esc_html__( 'Due Date', 'premium-addons-for-elementor' ),
57
  'type' => Controls_Manager::DATE_TIME,
58
  'picker_options' => [
59
  'format' => 'Ym/d H:m:s'
66
  $this->add_control(
67
  'premium_countdown_s_u_time',
68
  [
69
+ 'label' => esc_html__( 'Time Zone', 'premium-addons-for-elementor' ),
70
  'type' => Controls_Manager::SELECT,
71
  'options' => [
72
  'wp-time' => esc_html__('WordPress Default', 'premium-addons-for-elementor' ),
80
  $this->add_control(
81
  'premium_countdown_units',
82
  [
83
+ 'label' => esc_html__( 'Time Units', 'premium-addons-for-elementor' ),
84
  'type' => Controls_Manager::SELECT2,
85
  'description' => esc_html__('Select the time units that you want to display in countdown timer.', 'premium-addons-for-elementor' ),
86
  'options' => [
109
  $this->start_controls_section(
110
  'premium_countdown_on_expire_settings',
111
  [
112
+ 'label' => esc_html__( 'Expire' , 'premium-addons-for-elementor' )
113
  ]
114
  );
115
 
116
  $this->add_control(
117
  'premium_countdown_expire_text_url',
118
  [
119
+ 'label' => esc_html__('Expire Type', 'premium-addons-for-elementor'),
120
  'label_block' => false,
121
  'type' => Controls_Manager::SELECT,
122
  'description' => esc_html__('Choose whether if you want to set a message or a redirect link', 'premium-addons-for-elementor'),
123
  'options' => [
124
+ 'text' => esc_html__('Message', 'premium-addons-for-elementor'),
125
+ 'url' => esc_html__('Redirection Link', 'premium-addons-for-elementor')
126
  ],
127
  'default' => 'text'
128
  ]
307
  $this->add_control(
308
  'premium_countdown_digit_color',
309
  [
310
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
311
  'type' => Controls_Manager::COLOR,
312
  'scheme' => [
313
  'type' => Scheme_Color::get_type(),
387
 
388
  $this->start_controls_section('premium_countdown_unit_style',
389
  [
390
+ 'label' => esc_html__('Units', 'premium-addons-for-elementor'),
391
  'tab' => Controls_Manager::TAB_STYLE,
392
  ]
393
  );
395
  $this->add_control(
396
  'premium_countdown_unit_color',
397
  [
398
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
399
  'type' => Controls_Manager::COLOR,
400
  'scheme' => [
401
  'type' => Scheme_Color::get_type(),
420
  $this->add_responsive_control(
421
  'premium_countdown_separator_width',
422
  [
423
+ 'label' => esc_html__( 'Spacing in Between', 'premium-addons-for-elementor' ),
424
  'type' => Controls_Manager::SLIDER,
425
  'default' => [
426
  'size' => 40,
539
 
540
  }
541
 
542
+ Plugin::instance()->widgets_manager->register_widget_type( new Premium_Counter_Down_Widget() );
widgets/premium-counter.php CHANGED
@@ -29,6 +29,82 @@ class Premium_Counter_Widget extends Widget_Base {
29
  // This will controls the animation, colors and background, dimensions etc
30
  protected function _register_controls() {
31
  $this->start_controls_section('premium_counter_global_settings',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  [
33
  'label' => esc_html__( 'Display Options', 'premium-addons-for-elementor' )
34
  ]
@@ -40,8 +116,8 @@ class Premium_Counter_Widget extends Widget_Base {
40
  'type' => Controls_Manager::SELECT,
41
  'description' => esc_html__('Use a font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
42
  'options' => [
43
- 'icon' => esc_html__('Font Awesome Icon', 'premium-addons-for-elementor'),
44
- 'custom'=> esc_html__( 'Custom Image Icon', 'premium-addons-for-elementor')
45
  ],
46
  'default' => 'icon'
47
  ]
@@ -70,10 +146,61 @@ class Premium_Counter_Widget extends Widget_Base {
70
  ]
71
  ]
72
  );
73
-
74
- $this->add_responsive_control('premium_counter_icon_size',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  [
76
- 'label' => esc_html__( 'Icon Size', 'premium-addons-for-elementor' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  'type' => Controls_Manager::SLIDER,
78
  'default' => [
79
  'size' => 70,
@@ -95,7 +222,7 @@ class Premium_Counter_Widget extends Widget_Base {
95
 
96
  $this->add_responsive_control('premium_counter_image_size',
97
  [
98
- 'label' => esc_html__( 'Image Size', 'premium-addons-for-elementor' ),
99
  'type' => Controls_Manager::SLIDER,
100
  'default' => [
101
  'size' => 60,
@@ -115,26 +242,9 @@ class Premium_Counter_Widget extends Widget_Base {
115
  ]
116
  );
117
 
118
- $this->add_control('premium_counter_icon_color',
119
- [
120
- 'label' => esc_html__( 'Icon Color', 'premium-addons-for-elementor' ),
121
- 'type' => Controls_Manager::COLOR,
122
- 'scheme' => [
123
- 'type' => Scheme_Color::get_type(),
124
- 'value' => Scheme_Color::COLOR_1,
125
- ],
126
- 'selectors' => [
127
- '{{WRAPPER}} .premium-counter-area .premium-counter-icon .icon i' => 'color: {{VALUE}};'
128
- ],
129
- 'condition' => [
130
- 'premium_counter_icon_image' => 'icon'
131
- ]
132
- ]
133
- );
134
-
135
  $this->add_control('premium_counter_icon_style',
136
  [
137
- 'label' => esc_html__( 'Icon Style', 'premium-addons-for-elementor' ),
138
  'type' => Controls_Manager::SELECT,
139
  'description' => esc_html__('We are giving you three quick preset if you are in a hurry. Otherwise, create your own with various options', 'premium-addons-for-elementor'),
140
  'options' => [
@@ -188,7 +298,7 @@ class Premium_Counter_Widget extends Widget_Base {
188
 
189
  $this->add_responsive_control('premium_counter_icon_v_align',
190
  [
191
- 'label' => esc_html__( 'Icon vertical Align', 'premium-addons-for-elementor' ),
192
  'type' => Controls_Manager::SLIDER,
193
  'default' => [
194
  'size' => 150,
@@ -238,109 +348,9 @@ class Premium_Counter_Widget extends Widget_Base {
238
  ]
239
  );
240
 
241
- $this->add_control('premium_counter_icon_animation',
242
- [
243
- 'label' => esc_html__('Animations', 'premium-addons-for-elementor'),
244
- 'type' => Controls_Manager::ANIMATION,
245
- ]
246
- );
247
 
248
- $this->add_control('premium_counter_icon_position',
249
- [
250
- 'label' => esc_html__( 'Icon Position', 'premium-addons-for-elementor' ),
251
- 'type' => Controls_Manager::SELECT,
252
- 'description' => esc_html__( 'Choose a position for your icon', 'premium-addons-for-elementor'),
253
- 'default' => 'no-animation',
254
- 'options' => [
255
- 'top' => esc_html__( 'Top', 'premium-addons-for-elementor' ),
256
- 'right' => esc_html__( 'Right', 'premium-addons-for-elementor' ),
257
- 'left' => esc_html__( 'Left', 'premium-addons-for-elementor' ),
258
-
259
- ],
260
- 'default' => 'top',
261
- 'separator' => 'after'
262
- ]
263
- );
264
-
265
-
266
- $this->end_controls_section();
267
-
268
- $this->start_controls_section('premium_counter_counter_setting',
269
- [
270
- 'label' => esc_html__( 'Counter Settings' , 'premium-addons-for-elementor' )
271
- ]
272
- );
273
-
274
- $this->add_control('premium_counter_title',
275
- [
276
- 'label' => esc_html__( 'Counter Title', 'premium-addons-for-elementor' ),
277
- 'type' => Controls_Manager::TEXT,
278
- 'description' => esc_html__( 'Enter title for stats counter block', 'premium-addons-for-elementor'),
279
- ]
280
- );
281
 
282
- $this->add_control('premium_counter_value',
283
- [
284
- 'label' => esc_html__( 'Counter Value', 'premium-addons-for-elementor' ),
285
- 'type' => Controls_Manager::NUMBER,
286
- 'description' => esc_html__( 'Enter Counter Value', 'premium-addons-for-elementor' ),
287
- 'default' => 500
288
- ]
289
- );
290
-
291
- $this->add_control('premium_counter_t_separator',
292
- [
293
- 'label' => esc_html__( 'Thousands Separator', 'premium-addons-for-elementor' ),
294
- 'type' => Controls_Manager::TEXT,
295
- 'description' => esc_html__( 'Separate coverts 125000 into 125,000', 'premium-addons-for-elementor' ),
296
- 'default' => ','
297
- ]
298
- );
299
-
300
- $this->add_control('premium_counter_d_separator',
301
- [
302
- 'label' => esc_html__( 'Replace Decimal Point', 'premium-addons-for-elementor' ),
303
- 'type' => Controls_Manager::TEXT,
304
- 'description' => esc_html__( 'Set a decimal number (Eg - 12.76). The decimal point '.' will be replaced with the value that you will enter above', 'premium-addons-for-elementor' ),
305
- 'default' => '.'
306
- ]
307
- );
308
-
309
- $this->add_control('premium_counter_d_after',
310
- [
311
- 'label' => esc_html__( 'Digits After Decimal Point', 'premium-addons-for-elementor' ),
312
- 'type' => Controls_Manager::NUMBER,
313
- 'default' => 0
314
- ]
315
- );
316
-
317
- $this->add_control('premium_counter_preffix',
318
- [
319
- 'label' => esc_html__( 'Counter Value Prefix', 'premium-addons-for-elementor' ),
320
- 'type' => Controls_Manager::TEXT,
321
- 'description' => esc_html__( 'Enter prefix for counter value', 'premium-addons-for-elementor' )
322
- ]
323
- );
324
-
325
- $this->add_control('premium_counter_suffix',
326
- [
327
- 'label' => esc_html__( 'Counter Value suffix', 'premium-addons-for-elementor' ),
328
- 'type' => Controls_Manager::TEXT,
329
- 'description' => esc_html__( 'Enter suffix for counter value', 'premium-addons-for-elementor' )
330
- ]
331
- );
332
-
333
- $this->add_control('premium_counter_speed',
334
- [
335
- 'label' => esc_html__( 'Counter Rolling Time', 'premium-addons-for-elementor' ),
336
- 'type' => Controls_Manager::NUMBER,
337
- 'description' => esc_html__( 'How long should it take to complete the digit?', 'premium-addons-for-elementor' ),
338
- 'default' => 3
339
- ]
340
- );
341
-
342
- $this->end_controls_section();
343
-
344
  $this->start_controls_section('premium_counter_title_style',
345
  [
346
  'label' => esc_html__( 'Title' , 'premium-addons-for-elementor' ),
@@ -350,7 +360,7 @@ class Premium_Counter_Widget extends Widget_Base {
350
 
351
  $this->add_control('premium_counter_title_color',
352
  [
353
- 'label' => esc_html__( 'Title Color', 'premium-addons-for-elementor' ),
354
  'type' => Controls_Manager::COLOR,
355
  'scheme' => [
356
  'type' => Scheme_Color::get_type(),
@@ -383,7 +393,7 @@ class Premium_Counter_Widget extends Widget_Base {
383
 
384
  $this->add_control('premium_counter_value_color',
385
  [
386
- 'label' => esc_html__( 'Value Color', 'premium-addons-for-elementor' ),
387
  'type' => Controls_Manager::COLOR,
388
  'scheme' => [
389
  'type' => Scheme_Color::get_type(),
@@ -409,21 +419,21 @@ class Premium_Counter_Widget extends Widget_Base {
409
 
410
  $this->start_controls_section('premium_counter_suffix_prefix_style',
411
  [
412
- 'label' => esc_html__('Suffix & Prefix', 'premium-addons-for-elementor'),
413
  'tab' => Controls_Manager::TAB_STYLE,
414
  ]
415
  );
416
-
417
- $this->add_control('premium_counter_suffix_color',
418
  [
419
- 'label' => esc_html__( 'Suffix Color', 'premium-addons-for-elementor' ),
420
  'type' => Controls_Manager::COLOR,
421
  'scheme' => [
422
  'type' => Scheme_Color::get_type(),
423
  'value' => Scheme_Color::COLOR_1,
424
  ],
425
  'selectors' => [
426
- '{{WRAPPER}} .premium-counter-area span#suffix' => 'color: {{VALUE}}'
427
  ]
428
  ]
429
  );
@@ -431,24 +441,23 @@ class Premium_Counter_Widget extends Widget_Base {
431
  $this->add_group_control(
432
  Group_Control_Typography::get_type(),
433
  [
434
- 'name' => 'premium_counter_suffix_typo',
435
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
436
- 'selector' => '{{WRAPPER}} .premium-counter-area span#suffix',
437
  'separator' => 'after',
438
  ]
439
  );
440
-
441
-
442
- $this->add_control('premium_counter_prefix_color',
443
  [
444
- 'label' => esc_html__( 'Prefix Color', 'premium-addons-for-elementor' ),
445
  'type' => Controls_Manager::COLOR,
446
  'scheme' => [
447
  'type' => Scheme_Color::get_type(),
448
  'value' => Scheme_Color::COLOR_1,
449
  ],
450
  'selectors' => [
451
- '{{WRAPPER}} .premium-counter-area span#prefix' => 'color: {{VALUE}}'
452
  ]
453
  ]
454
  );
@@ -456,9 +465,9 @@ class Premium_Counter_Widget extends Widget_Base {
456
  $this->add_group_control(
457
  Group_Control_Typography::get_type(),
458
  [
459
- 'name' => 'premium_counter_prefix_typo',
460
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
461
- 'selector' => '{{WRAPPER}} .premium-counter-area span#prefix',
462
  'separator' => 'after',
463
  ]
464
  );
29
  // This will controls the animation, colors and background, dimensions etc
30
  protected function _register_controls() {
31
  $this->start_controls_section('premium_counter_global_settings',
32
+ [
33
+ 'label' => esc_html__( 'Counter', 'premium-addons-for-elementor' )
34
+ ]
35
+ );
36
+
37
+ $this->add_control('premium_counter_title',
38
+ [
39
+ 'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
40
+ 'type' => Controls_Manager::TEXT,
41
+ 'description' => esc_html__( 'Enter title for stats counter block', 'premium-addons-for-elementor'),
42
+ ]
43
+ );
44
+
45
+ $this->add_control('premium_counter_value',
46
+ [
47
+ 'label' => esc_html__( 'Value', 'premium-addons-for-elementor' ),
48
+ 'type' => Controls_Manager::NUMBER,
49
+ 'description' => esc_html__( 'Enter Counter Value', 'premium-addons-for-elementor' ),
50
+ 'default' => 500
51
+ ]
52
+ );
53
+
54
+ $this->add_control('premium_counter_t_separator',
55
+ [
56
+ 'label' => esc_html__( 'Thousands Separator', 'premium-addons-for-elementor' ),
57
+ 'type' => Controls_Manager::TEXT,
58
+ 'description' => esc_html__( 'Separate coverts 125000 into 125,000', 'premium-addons-for-elementor' ),
59
+ 'default' => ','
60
+ ]
61
+ );
62
+
63
+ $this->add_control('premium_counter_d_separator',
64
+ [
65
+ 'label' => esc_html__( 'Decimal Point', 'premium-addons-for-elementor' ),
66
+ 'type' => Controls_Manager::TEXT,
67
+ 'description' => esc_html__( 'Set a decimal number (Eg - 12.76). The decimal point '.' will be replaced with the value that you will enter above', 'premium-addons-for-elementor' ),
68
+ 'default' => '.'
69
+ ]
70
+ );
71
+
72
+ $this->add_control('premium_counter_d_after',
73
+ [
74
+ 'label' => esc_html__( 'Digits After Decimal Point', 'premium-addons-for-elementor' ),
75
+ 'type' => Controls_Manager::NUMBER,
76
+ 'default' => 0
77
+ ]
78
+ );
79
+
80
+ $this->add_control('premium_counter_preffix',
81
+ [
82
+ 'label' => esc_html__( 'Value Prefix', 'premium-addons-for-elementor' ),
83
+ 'type' => Controls_Manager::TEXT,
84
+ 'description' => esc_html__( 'Enter prefix for counter value', 'premium-addons-for-elementor' )
85
+ ]
86
+ );
87
+
88
+ $this->add_control('premium_counter_suffix',
89
+ [
90
+ 'label' => esc_html__( 'Value suffix', 'premium-addons-for-elementor' ),
91
+ 'type' => Controls_Manager::TEXT,
92
+ 'description' => esc_html__( 'Enter suffix for counter value', 'premium-addons-for-elementor' )
93
+ ]
94
+ );
95
+
96
+ $this->add_control('premium_counter_speed',
97
+ [
98
+ 'label' => esc_html__( 'Rolling Time', 'premium-addons-for-elementor' ),
99
+ 'type' => Controls_Manager::NUMBER,
100
+ 'description' => esc_html__( 'How long should it take to complete the digit?', 'premium-addons-for-elementor' ),
101
+ 'default' => 3
102
+ ]
103
+ );
104
+
105
+ $this->end_controls_section();
106
+
107
+ $this->start_controls_section('premium_counter_display_options',
108
  [
109
  'label' => esc_html__( 'Display Options', 'premium-addons-for-elementor' )
110
  ]
116
  'type' => Controls_Manager::SELECT,
117
  'description' => esc_html__('Use a font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
118
  'options' => [
119
+ 'icon' => esc_html__('Font Awesome', 'premium-addons-for-elementor'),
120
+ 'custom'=> esc_html__( 'Custom Image', 'premium-addons-for-elementor')
121
  ],
122
  'default' => 'icon'
123
  ]
146
  ]
147
  ]
148
  );
149
+
150
+ $this->add_control('premium_counter_icon_position',
151
+ [
152
+ 'label' => esc_html__( 'Icon Position', 'premium-addons-for-elementor' ),
153
+ 'type' => Controls_Manager::SELECT,
154
+ 'description' => esc_html__( 'Choose a position for your icon', 'premium-addons-for-elementor'),
155
+ 'default' => 'no-animation',
156
+ 'options' => [
157
+ 'top' => esc_html__( 'Top', 'premium-addons-for-elementor' ),
158
+ 'right' => esc_html__( 'Right', 'premium-addons-for-elementor' ),
159
+ 'left' => esc_html__( 'Left', 'premium-addons-for-elementor' ),
160
+
161
+ ],
162
+ 'default' => 'top',
163
+ 'separator' => 'after'
164
+ ]
165
+ );
166
+
167
+ $this->add_control('premium_counter_icon_animation',
168
+ [
169
+ 'label' => esc_html__('Animations', 'premium-addons-for-elementor'),
170
+ 'type' => Controls_Manager::ANIMATION,
171
+ ]
172
+ );
173
+
174
+
175
+ $this->end_controls_section();
176
+
177
+ $this->start_controls_section('premium_counter_icon_style_tab',
178
+ [
179
+ 'label' => esc_html__( 'Icon' , 'premium-addons-for-elementor' ),
180
+ 'tab' => Controls_Manager::TAB_STYLE
181
+ ]
182
+ );
183
+
184
+ $this->add_control('premium_counter_icon_color',
185
  [
186
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
187
+ 'type' => Controls_Manager::COLOR,
188
+ 'scheme' => [
189
+ 'type' => Scheme_Color::get_type(),
190
+ 'value' => Scheme_Color::COLOR_1,
191
+ ],
192
+ 'selectors' => [
193
+ '{{WRAPPER}} .premium-counter-area .premium-counter-icon .icon i' => 'color: {{VALUE}};'
194
+ ],
195
+ 'condition' => [
196
+ 'premium_counter_icon_image' => 'icon'
197
+ ]
198
+ ]
199
+ );
200
+
201
+ $this->add_responsive_control('premium_counter_icon_size',
202
+ [
203
+ 'label' => esc_html__( 'Size', 'premium-addons-for-elementor' ),
204
  'type' => Controls_Manager::SLIDER,
205
  'default' => [
206
  'size' => 70,
222
 
223
  $this->add_responsive_control('premium_counter_image_size',
224
  [
225
+ 'label' => esc_html__( 'Size', 'premium-addons-for-elementor' ),
226
  'type' => Controls_Manager::SLIDER,
227
  'default' => [
228
  'size' => 60,
242
  ]
243
  );
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  $this->add_control('premium_counter_icon_style',
246
  [
247
+ 'label' => esc_html__( 'Style', 'premium-addons-for-elementor' ),
248
  'type' => Controls_Manager::SELECT,
249
  'description' => esc_html__('We are giving you three quick preset if you are in a hurry. Otherwise, create your own with various options', 'premium-addons-for-elementor'),
250
  'options' => [
298
 
299
  $this->add_responsive_control('premium_counter_icon_v_align',
300
  [
301
+ 'label' => esc_html__( 'Vertical Alignment', 'premium-addons-for-elementor' ),
302
  'type' => Controls_Manager::SLIDER,
303
  'default' => [
304
  'size' => 150,
348
  ]
349
  );
350
 
351
+ $this->end_controls_section();
 
 
 
 
 
352
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
354
  $this->start_controls_section('premium_counter_title_style',
355
  [
356
  'label' => esc_html__( 'Title' , 'premium-addons-for-elementor' ),
360
 
361
  $this->add_control('premium_counter_title_color',
362
  [
363
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
364
  'type' => Controls_Manager::COLOR,
365
  'scheme' => [
366
  'type' => Scheme_Color::get_type(),
393
 
394
  $this->add_control('premium_counter_value_color',
395
  [
396
+ 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
397
  'type' => Controls_Manager::COLOR,
398
  'scheme' => [
399
  'type' => Scheme_Color::get_type(),
419
 
420
  $this->start_controls_section('premium_counter_suffix_prefix_style',
421
  [
422
+ 'label' => esc_html__('Prefix & Suffix', 'premium-addons-for-elementor'),
423
  'tab' => Controls_Manager::TAB_STYLE,
424
  ]
425
  );
426
+
427
+ $this->add_control('premium_counter_prefix_color',
428
  [
429
+ 'label' => esc_html__( 'Prefix Color', 'premium-addons-for-elementor' ),
430
  'type' => Controls_Manager::COLOR,
431
  'scheme' => [
432
  'type' => Scheme_Color::get_type(),
433
  'value' => Scheme_Color::COLOR_1,
434
  ],
435
  'selectors' => [
436
+ '{{WRAPPER}} .premium-counter-area span#prefix' => 'color: {{VALUE}}'
437
  ]
438
  ]
439
  );
441
  $this->add_group_control(
442
  Group_Control_Typography::get_type(),
443
  [
444
+ 'name' => 'premium_counter_prefix_typo',
445
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
446
+ 'selector' => '{{WRAPPER}} .premium-counter-area span#prefix',
447
  'separator' => 'after',
448
  ]
449
  );
450
+
451
+ $this->add_control('premium_counter_suffix_color',
 
452
  [
453
+ 'label' => esc_html__( 'Suffix Color', 'premium-addons-for-elementor' ),
454
  'type' => Controls_Manager::COLOR,
455
  'scheme' => [
456
  'type' => Scheme_Color::get_type(),
457
  'value' => Scheme_Color::COLOR_1,
458
  ],
459
  'selectors' => [
460
+ '{{WRAPPER}} .premium-counter-area span#suffix' => 'color: {{VALUE}}'
461
  ]
462
  ]
463
  );
465
  $this->add_group_control(
466
  Group_Control_Typography::get_type(),
467
  [
468
+ 'name' => 'premium_counter_suffix_typo',
469
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
470
+ 'selector' => '{{WRAPPER}} .premium-counter-area span#suffix',
471
  'separator' => 'after',
472
  ]
473
  );
widgets/premium-dual-header.php CHANGED
@@ -10,7 +10,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
10
  }
11
 
12
  public function get_title() {
13
- return esc_html__('Premium Dual Header', 'premium-addons-for-elementor');
14
  }
15
 
16
  public function get_icon() {
@@ -28,31 +28,14 @@ class Premium_Dual_Header_Widget extends Widget_Base
28
  /*Start General Section*/
29
  $this->start_controls_section('premium_dual_header_general_settings',
30
  [
31
- 'label' => esc_html__('Content Settings', 'premium-addons-for-elementor')
32
- ]
33
- );
34
-
35
- /*Text Align*/
36
- $this->add_control('premium_dual_header_position',
37
- [
38
- 'label' => esc_html__( 'Headers Position', 'premium-addons-for-elementor' ),
39
- 'type' => Controls_Manager::SELECT,
40
- 'options' => [
41
- 'inline' => esc_html__('Next to Each Other', 'premium-addons-for-elementor'),
42
- 'block' => esc_html__('Below Each Other', 'premium-addons-for-elementor'),
43
- ],
44
- 'default' => 'inline',
45
- 'selectors' => [
46
- '{{WRAPPER}} .premium-dual-header-first-container, {{WRAPPER}} .premium-dual-header-second-container' => 'display: {{VALUE}};',
47
- ],
48
- 'label_block' => true
49
  ]
50
  );
51
 
52
  /*First Header*/
53
  $this->add_control('premium_dual_header_first_header_text',
54
  [
55
- 'label' => esc_html__('First Header', 'premium-addons-for-elementor'),
56
  'type' => Controls_Manager::TEXT,
57
  'default' => esc_html__('Premium', 'premium-addons-for-elementor'),
58
  'label_block' => true,
@@ -62,7 +45,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
62
  /*Title Tag*/
63
  $this->add_control('premium_dual_header_first_header_tag',
64
  [
65
- 'label' => esc_html__('First Header Tag', 'premium-addons-for-elementor'),
66
  'type' => Controls_Manager::SELECT,
67
  'default' => 'h2',
68
  'options' => [
@@ -77,11 +60,10 @@ class Premium_Dual_Header_Widget extends Widget_Base
77
  ]
78
  );
79
 
80
-
81
  /*Second Header*/
82
  $this->add_control('premium_dual_header_second_header_text',
83
  [
84
- 'label' => esc_html__('Second Header', 'premium-addons-for-elementor'),
85
  'type' => Controls_Manager::TEXT,
86
  'default' => esc_html__('Addons', 'premium-addons-for-elementor'),
87
  'label_block' => true,
@@ -91,7 +73,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
91
  /*Title Tag*/
92
  $this->add_control('premium_dual_header_second_header_tag',
93
  [
94
- 'label' => esc_html__('Second Header Tag', 'premium-addons-for-elementor'),
95
  'type' => Controls_Manager::SELECT,
96
  'default' => 'h2',
97
  'options' => [
@@ -106,10 +88,27 @@ class Premium_Dual_Header_Widget extends Widget_Base
106
  ]
107
  );
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  /*Text Align*/
110
  $this->add_responsive_control('premium_dual_header_text_align',
111
  [
112
- 'label' => esc_html__( 'Text Align', 'elementor' ),
113
  'type' => Controls_Manager::CHOOSE,
114
  'options' => [
115
  'left' => [
@@ -138,7 +137,7 @@ class Premium_Dual_Header_Widget extends Widget_Base
138
  /*Start First Header Styling Section*/
139
  $this->start_controls_section('premium_dual_header_first_style',
140
  [
141
- 'label' => esc_html__('First Header', 'premium-addons-for-elementor'),
142
  'tab' => Controls_Manager::TAB_STYLE,
143
  ]
144
  );
@@ -159,10 +158,10 @@ class Premium_Dual_Header_Widget extends Widget_Base
159
  'label' => esc_html__('Background Style', 'premium-addons-for-elementor'),
160
  'type' => Controls_Manager::SELECT,
161
  'default' => 'color',
162
- 'description' => esc_html__('Choose ‘Background’ style to put a background behind the text. Choose ‘Clipped’ style so the background will be clipped on the text.','premium-addons-for-elementor'),
163
  'options' => [
164
- 'color' => esc_html__('Background', 'premium-addons-for-elementor'),
165
- 'clipped' => esc_html__('Clipped', 'premium-addons-for-elementor'),
166
  ],
167
  'label_block' => true,
168
  ]
@@ -233,6 +232,16 @@ class Premium_Dual_Header_Widget extends Widget_Base
233
  ]
234
  );
235
 
 
 
 
 
 
 
 
 
 
 
236
  /*First Margin*/
237
  $this->add_responsive_control('premium_dual_header_first_margin',
238
  [
@@ -257,22 +266,13 @@ class Premium_Dual_Header_Widget extends Widget_Base
257
  ]
258
  );
259
 
260
- /*First Text Shadow*/
261
- $this->add_group_control(
262
- Group_Control_Text_Shadow::get_type(),
263
- [
264
- 'name' => 'premium_dual_header_first_text_shadow',
265
- 'selector' => '{{WRAPPER}} .premium-dual-header-first-header',
266
- ]
267
- );
268
-
269
  /*End First Header Styling Section*/
270
  $this->end_controls_section();
271
 
272
  /*Start First Header Styling Section*/
273
  $this->start_controls_section('premium_dual_header_second_style',
274
  [
275
- 'label' => esc_html__('Second Header', 'premium-addons-for-elementor'),
276
  'tab' => Controls_Manager::TAB_STYLE,
277
  ]
278
  );
@@ -293,10 +293,10 @@ class Premium_Dual_Header_Widget extends Widget_Base
293
  'label' => esc_html__('Background Style', 'premium-addons-for-elementor'),
294
  'type' => Controls_Manager::SELECT,
295
  'default' => 'color',
296
- 'description' => esc_html__('Choose ‘Background’ style to put a background behind the text. Choose ‘Clipped’ style so the background will be clipped on the text.','premium-addons-for-elementor'),
297
  'options' => [
298
- 'color' => esc_html__('Background', 'premium-addons-for-elementor'),
299
- 'clipped' => esc_html__('Clipped', 'premium-addons-for-elementor'),
300
  ],
301
  'label_block' => true,
302
  ]
@@ -367,6 +367,16 @@ class Premium_Dual_Header_Widget extends Widget_Base
367
  ]
368
  );
369
 
 
 
 
 
 
 
 
 
 
 
370
  /*Second Margin*/
371
  $this->add_responsive_control('premium_dual_header_second_margin',
372
  [
@@ -391,15 +401,6 @@ class Premium_Dual_Header_Widget extends Widget_Base
391
  ]
392
  );
393
 
394
- /*Second Text Shadow*/
395
- $this->add_group_control(
396
- Group_Control_Text_Shadow::get_type(),
397
- [
398
- 'name' => 'premium_dual_header_second_text_shadow',
399
- 'selector' => '{{WRAPPER}} .premium-dual-header-second-header',
400
- ]
401
- );
402
-
403
  /*End Second Header Styling Section*/
404
  $this->end_controls_section();
405
 
@@ -433,4 +434,4 @@ class Premium_Dual_Header_Widget extends Widget_Base
433
  <?php
434
  }
435
  }
436
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Dual_Header_Widget());
10
  }
11
 
12
  public function get_title() {
13
+ return esc_html__('Premium Dual Heading', 'premium-addons-for-elementor');
14
  }
15
 
16
  public function get_icon() {
28
  /*Start General Section*/
29
  $this->start_controls_section('premium_dual_header_general_settings',
30
  [
31
+ 'label' => esc_html__('Dual Heading', 'premium-addons-for-elementor')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ]
33
  );
34
 
35
  /*First Header*/
36
  $this->add_control('premium_dual_header_first_header_text',
37
  [
38
+ 'label' => esc_html__('First Heading', 'premium-addons-for-elementor'),
39
  'type' => Controls_Manager::TEXT,
40
  'default' => esc_html__('Premium', 'premium-addons-for-elementor'),
41
  'label_block' => true,
45
  /*Title Tag*/
46
  $this->add_control('premium_dual_header_first_header_tag',
47
  [
48
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
49
  'type' => Controls_Manager::SELECT,
50
  'default' => 'h2',
51
  'options' => [
60
  ]
61
  );
62
 
 
63
  /*Second Header*/
64
  $this->add_control('premium_dual_header_second_header_text',
65
  [
66
+ 'label' => esc_html__('Second Heading', 'premium-addons-for-elementor'),
67
  'type' => Controls_Manager::TEXT,
68
  'default' => esc_html__('Addons', 'premium-addons-for-elementor'),
69
  'label_block' => true,
73
  /*Title Tag*/
74
  $this->add_control('premium_dual_header_second_header_tag',
75
  [
76
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::SELECT,
78
  'default' => 'h2',
79
  'options' => [
88
  ]
89
  );
90
 
91
+ /*Text Align*/
92
+ $this->add_control('premium_dual_header_position',
93
+ [
94
+ 'label' => esc_html__( 'Display', 'premium-addons-for-elementor' ),
95
+ 'type' => Controls_Manager::SELECT,
96
+ 'options' => [
97
+ 'inline'=> esc_html__('Inline', 'premium-addons-for-elementor'),
98
+ 'block' => esc_html__('Block', 'premium-addons-for-elementor'),
99
+ ],
100
+ 'default' => 'inline',
101
+ 'selectors' => [
102
+ '{{WRAPPER}} .premium-dual-header-first-container, {{WRAPPER}} .premium-dual-header-second-container' => 'display: {{VALUE}};',
103
+ ],
104
+ 'label_block' => true
105
+ ]
106
+ );
107
+
108
  /*Text Align*/
109
  $this->add_responsive_control('premium_dual_header_text_align',
110
  [
111
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
112
  'type' => Controls_Manager::CHOOSE,
113
  'options' => [
114
  'left' => [
137
  /*Start First Header Styling Section*/
138
  $this->start_controls_section('premium_dual_header_first_style',
139
  [
140
+ 'label' => esc_html__('First Heading', 'premium-addons-for-elementor'),
141
  'tab' => Controls_Manager::TAB_STYLE,
142
  ]
143
  );
158
  'label' => esc_html__('Background Style', 'premium-addons-for-elementor'),
159
  'type' => Controls_Manager::SELECT,
160
  'default' => 'color',
161
+ 'description' => esc_html__('Choose ‘Normal’ style to put a background behind the text. Choose ‘Clipped’ style so the background will be clipped on the text.','premium-addons-for-elementor'),
162
  'options' => [
163
+ 'color' => esc_html__('Normal Background', 'premium-addons-for-elementor'),
164
+ 'clipped' => esc_html__('Clipped Background', 'premium-addons-for-elementor'),
165
  ],
166
  'label_block' => true,
167
  ]
232
  ]
233
  );
234
 
235
+ /*First Text Shadow*/
236
+ $this->add_group_control(
237
+ Group_Control_Text_Shadow::get_type(),
238
+ [
239
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
240
+ 'name' => 'premium_dual_header_first_text_shadow',
241
+ 'selector' => '{{WRAPPER}} .premium-dual-header-first-header',
242
+ ]
243
+ );
244
+
245
  /*First Margin*/
246
  $this->add_responsive_control('premium_dual_header_first_margin',
247
  [
266
  ]
267
  );
268
 
 
 
 
 
 
 
 
 
 
269
  /*End First Header Styling Section*/
270
  $this->end_controls_section();
271
 
272
  /*Start First Header Styling Section*/
273
  $this->start_controls_section('premium_dual_header_second_style',
274
  [
275
+ 'label' => esc_html__('Second Heading', 'premium-addons-for-elementor'),
276
  'tab' => Controls_Manager::TAB_STYLE,
277
  ]
278
  );
293
  'label' => esc_html__('Background Style', 'premium-addons-for-elementor'),
294
  'type' => Controls_Manager::SELECT,
295
  'default' => 'color',
296
+ 'description' => esc_html__('Choose ‘Normal’ style to put a background behind the text. Choose ‘Clipped’ style so the background will be clipped on the text.','premium-addons-for-elementor'),
297
  'options' => [
298
+ 'color' => esc_html__('Normal Background', 'premium-addons-for-elementor'),
299
+ 'clipped' => esc_html__('Clipped Background', 'premium-addons-for-elementor'),
300
  ],
301
  'label_block' => true,
302
  ]
367
  ]
368
  );
369
 
370
+ /*Second Text Shadow*/
371
+ $this->add_group_control(
372
+ Group_Control_Text_Shadow::get_type(),
373
+ [
374
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
375
+ 'name' => 'premium_dual_header_second_text_shadow',
376
+ 'selector' => '{{WRAPPER}} .premium-dual-header-second-header',
377
+ ]
378
+ );
379
+
380
  /*Second Margin*/
381
  $this->add_responsive_control('premium_dual_header_second_margin',
382
  [
401
  ]
402
  );
403
 
 
 
 
 
 
 
 
 
 
404
  /*End Second Header Styling Section*/
405
  $this->end_controls_section();
406
 
434
  <?php
435
  }
436
  }
437
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Dual_Header_Widget());
widgets/premium-fancytext.php CHANGED
@@ -33,14 +33,14 @@ class Premium_Fancy_Text_Widget extends Widget_Base
33
  /*Start Text Content Section*/
34
  $this->start_controls_section('premium_fancy_text_content',
35
  [
36
- 'label' => esc_html__('Text Settings', 'premium-addons-for-elementor'),
37
  ]
38
  );
39
 
40
  /*Prefix Text*/
41
  $this->add_control('premium_fancy_prefix_text',
42
  [
43
- 'label' => esc_html__('Prefix Text', 'premium-addons-for-elementor'),
44
  'type' => Controls_Manager::TEXT,
45
  'default' => esc_html__('This is', 'premium-addons-for-elementor'),
46
  'description' => esc_html__( 'Text before Fancy text', 'premium-addons-for-elementor' ),
@@ -51,7 +51,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
51
  /*Fancy Text Strings*/
52
  $this->add_control('premium_fancy_text_strings',
53
  [
54
- 'label' => esc_html__( 'Fancy Text Strings', 'premium-addons-for-elementor' ),
55
  'type' => Controls_Manager::REPEATER,
56
  'default' => [
57
  [
@@ -79,7 +79,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
79
  /*Prefix Text*/
80
  $this->add_control('premium_fancy_suffix_text',
81
  [
82
- 'label' => esc_html__('Suffix Text', 'premium-addons-for-elementor'),
83
  'type' => Controls_Manager::TEXT,
84
  'default' => esc_html__('Text', 'premium-addons-for-elementor'),
85
  'description' => esc_html__( 'Text after Fancy text', 'premium-addons-for-elementor' ),
@@ -87,14 +87,47 @@ class Premium_Fancy_Text_Widget extends Widget_Base
87
  ]
88
  );
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  /*Text Effect*/
91
  $this->add_control('premium_fancy_text_effect',
92
  [
93
  'label' => esc_html__('Effect', 'premium-addons-for-elementor'),
94
  'type' => Controls_Manager::SELECT,
95
- 'description' => esc_html__( 'Choose an Effect', 'premium-addons-for-elementor' ),
96
  'options' => [
97
- 'typing'=> esc_html__('Type Writer'),
98
  'slide' => esc_html__('Slide Up'),
99
  ],
100
  'default' => 'typing',
@@ -105,10 +138,10 @@ class Premium_Fancy_Text_Widget extends Widget_Base
105
  /*Type Speed*/
106
  $this->add_control('premium_fancy_text_type_speed',
107
  [
108
- 'label' => esc_html__('Type Speed (Milliseconds)', 'premium-addons-for-elementor'),
109
  'type' => Controls_Manager::NUMBER,
110
  'default' => 30,
111
- 'description' => esc_html__( 'Speed at which line progresses / Speed of typing effect.', 'premium-addons-for-elementor' ),
112
  'condition' => [
113
  'premium_fancy_text_effect' => 'typing',
114
  ],
@@ -119,10 +152,10 @@ class Premium_Fancy_Text_Widget extends Widget_Base
119
  /*Back Speed*/
120
  $this->add_control('premium_fancy_text_back_speed',
121
  [
122
- 'label' => esc_html__('Back Speed (Milliseconds)', 'premium-addons-for-elementor'),
123
  'type' => Controls_Manager::NUMBER,
124
  'default' => 30,
125
- 'description' => esc_html__( 'Speed of delete / backspace effect.', 'premium-addons-for-elementor' ),
126
  'condition' => [
127
  'premium_fancy_text_effect' => 'typing',
128
  ],
@@ -133,10 +166,10 @@ class Premium_Fancy_Text_Widget extends Widget_Base
133
  /*Start Delay*/
134
  $this->add_control('premium_fancy_text_start_delay',
135
  [
136
- 'label' => esc_html__('Start Delay (Milliseconds)', 'premium-addons-for-elementor'),
137
  'type' => Controls_Manager::NUMBER,
138
  'default' => 30,
139
- 'description' => esc_html__( 'Example - If set to 5000, the first string will appear after 5 seconds.', 'premium-addons-for-elementor' ),
140
  'condition' => [
141
  'premium_fancy_text_effect' => 'typing',
142
  ],
@@ -147,10 +180,10 @@ class Premium_Fancy_Text_Widget extends Widget_Base
147
  /*Back Delay*/
148
  $this->add_control('premium_fancy_text_back_delay',
149
  [
150
- 'label' => esc_html__('Back Delay (Milliseconds)', 'premium-addons-for-elementor'),
151
  'type' => Controls_Manager::NUMBER,
152
  'default' => 30,
153
- 'description' => esc_html__( 'Example - If set to 5000, the string will remain visible for 5 seconds before backspace effect.', 'premium-addons-for-elementor' ),
154
  'condition' => [
155
  'premium_fancy_text_effect' => 'typing',
156
  ],
@@ -185,7 +218,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
185
  /*Cursor Text*/
186
  $this->add_control('premium_fancy_text_cursor_text',
187
  [
188
- 'label' => esc_html__('Cursor Text', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::TEXT,
190
  'default' => '|',
191
  'condition' => [
@@ -198,10 +231,10 @@ class Premium_Fancy_Text_Widget extends Widget_Base
198
  /*Slide Up Speed*/
199
  $this->add_control('premium_slide_up_speed',
200
  [
201
- 'label' => esc_html__('Animation Speed (Milliseconds)', 'premium-addons-for-elementor'),
202
  'type' => Controls_Manager::NUMBER,
203
  'default' => 200,
204
- 'description' => esc_html__( 'Duration of Slide Up animation', 'premium-addons-for-elementor' ),
205
  'condition' => [
206
  'premium_fancy_text_effect' => 'slide',
207
  ],
@@ -215,7 +248,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
215
  'label' => esc_html__('Pause Time (Milliseconds)', 'premium-addons-for-elementor'),
216
  'type' => Controls_Manager::NUMBER,
217
  'default' => 3000,
218
- 'description' => esc_html__( 'How long the string should stay visible?', 'premium-addons-for-elementor' ),
219
  'condition' => [
220
  'premium_fancy_text_effect' => 'slide',
221
  ],
@@ -226,7 +259,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
226
  /*Slide Up Shown Items*/
227
  $this->add_control('premium_slide_up_shown_items',
228
  [
229
- 'label' => esc_html__('Show Items (Milliseconds)', 'premium-addons-for-elementor'),
230
  'type' => Controls_Manager::NUMBER,
231
  'default' => 1,
232
  'description' => esc_html__( 'How many items should be visible at a time?', 'premium-addons-for-elementor' ),
@@ -242,6 +275,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
242
  [
243
  'label' => esc_html__('Pause on Hover','premium-addons-for-elementor'),
244
  'type' => Controls_Manager::SWITCHER,
 
245
  'default' => 'no',
246
  'condition' => [
247
  'premium_fancy_text_effect' => 'slide',
@@ -249,32 +283,6 @@ class Premium_Fancy_Text_Widget extends Widget_Base
249
  ]
250
  );
251
 
252
- /*Front Text Align*/
253
- $this->add_responsive_control('premium_fancy_text_align',
254
- [
255
- 'label' => esc_html__( 'Text Align', 'elementor' ),
256
- 'type' => Controls_Manager::CHOOSE,
257
- 'options' => [
258
- 'left' => [
259
- 'title'=> esc_html__( 'Left', 'elementor' ),
260
- 'icon' => 'fa fa-align-left',
261
- ],
262
- 'center' => [
263
- 'title'=> esc_html__( 'Center', 'elementor' ),
264
- 'icon' => 'fa fa-align-center',
265
- ],
266
- 'right' => [
267
- 'title'=> esc_html__( 'Right', 'elementor' ),
268
- 'icon' => 'fa fa-align-right',
269
- ],
270
- ],
271
- 'default' => 'center',
272
- 'selectors' => [
273
- '{{WRAPPER}} .premium-fancy-text-wrapper' => 'text-align: {{VALUE}};',
274
- ],
275
- ]
276
- );
277
-
278
  $this->end_controls_section();
279
 
280
  /*Start Fancy Text Settings Tab*/
@@ -288,7 +296,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
288
  /*Fancy Text Color*/
289
  $this->add_control('premium_fancy_text_color',
290
  [
291
- 'label' => esc_html__('Fancy Text Color', 'premium-addons-for-elementor'),
292
  'type' => Controls_Manager::COLOR,
293
  'scheme' => [
294
  'type' => Scheme_Color::get_type(),
@@ -300,18 +308,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
300
  ]
301
  );
302
 
303
- /*Fancy Text Background Color*/
304
- $this->add_control('premium_fancy_text_background_color',
305
- [
306
- 'label' => esc_html__('Fancy Text Background', 'premium-addons-for-elementor'),
307
- 'type' => Controls_Manager::COLOR,
308
- 'selectors' => [
309
- '{{WRAPPER}} .premium-fancy-text' => 'background-color: {{VALUE}};',
310
- ]
311
- ]
312
- );
313
-
314
- /*Fancy Text Typography*/
315
  $this->add_group_control(
316
  Group_Control_Typography::get_type(),
317
  [
@@ -321,15 +318,24 @@ class Premium_Fancy_Text_Widget extends Widget_Base
321
  ]
322
  );
323
 
324
-
325
-
 
 
 
 
 
 
 
 
 
326
  /*End Fancy Text Settings Tab*/
327
  $this->end_controls_section();
328
 
329
  /*Start Prefix Suffix Text Settings Tab*/
330
  $this->start_controls_section('premium_prefix_suffix_style_tab',
331
  [
332
- 'label' => esc_html__('Prefix & Suffix Text', 'premium-addons-for-elementor'),
333
  'tab' => Controls_Manager::TAB_STYLE,
334
  ]
335
  );
@@ -337,7 +343,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
337
  /*Prefix Suffix Text Color*/
338
  $this->add_control('premium_prefix_suffix_text_color',
339
  [
340
- 'label' => esc_html__('Prefix & Suffix Color', 'premium-addons-for-elementor'),
341
  'type' => Controls_Manager::COLOR,
342
  'scheme' => [
343
  'type' => Scheme_Color::get_type(),
@@ -349,10 +355,20 @@ class Premium_Fancy_Text_Widget extends Widget_Base
349
  ]
350
  );
351
 
 
 
 
 
 
 
 
 
 
 
352
  /*Prefix Suffix Text Background Color*/
353
  $this->add_control('premium_prefix_suffix_text_background_color',
354
  [
355
- 'label' => esc_html__('Prefix & Suffix Background', 'premium-addons-for-elementor'),
356
  'type' => Controls_Manager::COLOR,
357
  'selectors' => [
358
  '{{WRAPPER}} .premium-prefix-text, {{WRAPPER}} .premium-suffix-text' => 'background-color: {{VALUE}};',
@@ -360,16 +376,6 @@ class Premium_Fancy_Text_Widget extends Widget_Base
360
  ]
361
  );
362
 
363
- /*Prefix Suffix Typography*/
364
- $this->add_group_control(
365
- Group_Control_Typography::get_type(),
366
- [
367
- 'name' => 'prefix_suffix_typography',
368
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
369
- 'selector' => '{{WRAPPER}} .premium-prefix-text, {{WRAPPER}} .premium-suffix-text',
370
- ]
371
- );
372
-
373
  /*End Prefix Suffix Text Settings Tab*/
374
  $this->end_controls_section();
375
  }
@@ -434,4 +440,4 @@ class Premium_Fancy_Text_Widget extends Widget_Base
434
  <?php
435
  }
436
  }
437
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Fancy_Text_Widget());
33
  /*Start Text Content Section*/
34
  $this->start_controls_section('premium_fancy_text_content',
35
  [
36
+ 'label' => esc_html__('Fancy Text', 'premium-addons-for-elementor'),
37
  ]
38
  );
39
 
40
  /*Prefix Text*/
41
  $this->add_control('premium_fancy_prefix_text',
42
  [
43
+ 'label' => esc_html__('Prefix', 'premium-addons-for-elementor'),
44
  'type' => Controls_Manager::TEXT,
45
  'default' => esc_html__('This is', 'premium-addons-for-elementor'),
46
  'description' => esc_html__( 'Text before Fancy text', 'premium-addons-for-elementor' ),
51
  /*Fancy Text Strings*/
52
  $this->add_control('premium_fancy_text_strings',
53
  [
54
+ 'label' => esc_html__( 'Fancy Text', 'premium-addons-for-elementor' ),
55
  'type' => Controls_Manager::REPEATER,
56
  'default' => [
57
  [
79
  /*Prefix Text*/
80
  $this->add_control('premium_fancy_suffix_text',
81
  [
82
+ 'label' => esc_html__('Suffix', 'premium-addons-for-elementor'),
83
  'type' => Controls_Manager::TEXT,
84
  'default' => esc_html__('Text', 'premium-addons-for-elementor'),
85
  'description' => esc_html__( 'Text after Fancy text', 'premium-addons-for-elementor' ),
87
  ]
88
  );
89
 
90
+ /*Front Text Align*/
91
+ $this->add_responsive_control('premium_fancy_text_align',
92
+ [
93
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
94
+ 'type' => Controls_Manager::CHOOSE,
95
+ 'options' => [
96
+ 'left' => [
97
+ 'title'=> esc_html__( 'Left', 'elementor' ),
98
+ 'icon' => 'fa fa-align-left',
99
+ ],
100
+ 'center' => [
101
+ 'title'=> esc_html__( 'Center', 'elementor' ),
102
+ 'icon' => 'fa fa-align-center',
103
+ ],
104
+ 'right' => [
105
+ 'title'=> esc_html__( 'Right', 'elementor' ),
106
+ 'icon' => 'fa fa-align-right',
107
+ ],
108
+ ],
109
+ 'default' => 'center',
110
+ 'selectors' => [
111
+ '{{WRAPPER}} .premium-fancy-text-wrapper' => 'text-align: {{VALUE}};',
112
+ ],
113
+ ]
114
+ );
115
+
116
+ $this->end_controls_section();
117
+
118
+ $this->start_controls_section('premium_fancy_additional_settings',
119
+ [
120
+ 'label' => esc_html__('Additional Settings', 'premium-addons-for-elementor'),
121
+ ]
122
+ );
123
+
124
  /*Text Effect*/
125
  $this->add_control('premium_fancy_text_effect',
126
  [
127
  'label' => esc_html__('Effect', 'premium-addons-for-elementor'),
128
  'type' => Controls_Manager::SELECT,
 
129
  'options' => [
130
+ 'typing'=> esc_html__('Typing'),
131
  'slide' => esc_html__('Slide Up'),
132
  ],
133
  'default' => 'typing',
138
  /*Type Speed*/
139
  $this->add_control('premium_fancy_text_type_speed',
140
  [
141
+ 'label' => esc_html__('Type Speed', 'premium-addons-for-elementor'),
142
  'type' => Controls_Manager::NUMBER,
143
  'default' => 30,
144
+ 'description' => esc_html__( 'Set typing effect speed in milliseconds.', 'premium-addons-for-elementor' ),
145
  'condition' => [
146
  'premium_fancy_text_effect' => 'typing',
147
  ],
152
  /*Back Speed*/
153
  $this->add_control('premium_fancy_text_back_speed',
154
  [
155
+ 'label' => esc_html__('Back Speed', 'premium-addons-for-elementor'),
156
  'type' => Controls_Manager::NUMBER,
157
  'default' => 30,
158
+ 'description' => esc_html__( 'Set a speed for backspace effect in milliseconds.', 'premium-addons-for-elementor' ),
159
  'condition' => [
160
  'premium_fancy_text_effect' => 'typing',
161
  ],
166
  /*Start Delay*/
167
  $this->add_control('premium_fancy_text_start_delay',
168
  [
169
+ 'label' => esc_html__('Start Delay', 'premium-addons-for-elementor'),
170
  'type' => Controls_Manager::NUMBER,
171
  'default' => 30,
172
+ 'description' => esc_html__( 'If you set it on 5000 milliseconds, the first word/string will appear after 5 seconds.', 'premium-addons-for-elementor' ),
173
  'condition' => [
174
  'premium_fancy_text_effect' => 'typing',
175
  ],
180
  /*Back Delay*/
181
  $this->add_control('premium_fancy_text_back_delay',
182
  [
183
+ 'label' => esc_html__('Back Delay', 'premium-addons-for-elementor'),
184
  'type' => Controls_Manager::NUMBER,
185
  'default' => 30,
186
+ 'description' => esc_html__( 'If you set it on 5000 milliseconds, the word/string will remain visible for 5 seconds before backspace effect.', 'premium-addons-for-elementor' ),
187
  'condition' => [
188
  'premium_fancy_text_effect' => 'typing',
189
  ],
218
  /*Cursor Text*/
219
  $this->add_control('premium_fancy_text_cursor_text',
220
  [
221
+ 'label' => esc_html__('Cursor Mark', 'premium-addons-for-elementor'),
222
  'type' => Controls_Manager::TEXT,
223
  'default' => '|',
224
  'condition' => [
231
  /*Slide Up Speed*/
232
  $this->add_control('premium_slide_up_speed',
233
  [
234
+ 'label' => esc_html__('Animation Speed', 'premium-addons-for-elementor'),
235
  'type' => Controls_Manager::NUMBER,
236
  'default' => 200,
237
+ 'description' => esc_html__( 'Set a duration value in milliseconds for slide up effect.', 'premium-addons-for-elementor' ),
238
  'condition' => [
239
  'premium_fancy_text_effect' => 'slide',
240
  ],
248
  'label' => esc_html__('Pause Time (Milliseconds)', 'premium-addons-for-elementor'),
249
  'type' => Controls_Manager::NUMBER,
250
  'default' => 3000,
251
+ 'description' => esc_html__( 'How long should the word/string stay visible? Set a value in milliseconds.', 'premium-addons-for-elementor' ),
252
  'condition' => [
253
  'premium_fancy_text_effect' => 'slide',
254
  ],
259
  /*Slide Up Shown Items*/
260
  $this->add_control('premium_slide_up_shown_items',
261
  [
262
+ 'label' => esc_html__('Show Items', 'premium-addons-for-elementor'),
263
  'type' => Controls_Manager::NUMBER,
264
  'default' => 1,
265
  'description' => esc_html__( 'How many items should be visible at a time?', 'premium-addons-for-elementor' ),
275
  [
276
  'label' => esc_html__('Pause on Hover','premium-addons-for-elementor'),
277
  'type' => Controls_Manager::SWITCHER,
278
+ 'description' => esc_html__( 'If you enabled this option, the slide will be paused when mouseover.', 'premium-addons-for-elementor' ),
279
  'default' => 'no',
280
  'condition' => [
281
  'premium_fancy_text_effect' => 'slide',
283
  ]
284
  );
285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  $this->end_controls_section();
287
 
288
  /*Start Fancy Text Settings Tab*/
296
  /*Fancy Text Color*/
297
  $this->add_control('premium_fancy_text_color',
298
  [
299
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
300
  'type' => Controls_Manager::COLOR,
301
  'scheme' => [
302
  'type' => Scheme_Color::get_type(),
308
  ]
309
  );
310
 
311
+ /*Fancy Text Typography*/
 
 
 
 
 
 
 
 
 
 
 
312
  $this->add_group_control(
313
  Group_Control_Typography::get_type(),
314
  [
318
  ]
319
  );
320
 
321
+ /*Fancy Text Background Color*/
322
+ $this->add_control('premium_fancy_text_background_color',
323
+ [
324
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
325
+ 'type' => Controls_Manager::COLOR,
326
+ 'selectors' => [
327
+ '{{WRAPPER}} .premium-fancy-text' => 'background-color: {{VALUE}};',
328
+ ]
329
+ ]
330
+ );
331
+
332
  /*End Fancy Text Settings Tab*/
333
  $this->end_controls_section();
334
 
335
  /*Start Prefix Suffix Text Settings Tab*/
336
  $this->start_controls_section('premium_prefix_suffix_style_tab',
337
  [
338
+ 'label' => esc_html__('Prefix & Suffix', 'premium-addons-for-elementor'),
339
  'tab' => Controls_Manager::TAB_STYLE,
340
  ]
341
  );
343
  /*Prefix Suffix Text Color*/
344
  $this->add_control('premium_prefix_suffix_text_color',
345
  [
346
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
347
  'type' => Controls_Manager::COLOR,
348
  'scheme' => [
349
  'type' => Scheme_Color::get_type(),
355
  ]
356
  );
357
 
358
+ /*Prefix Suffix Typography*/
359
+ $this->add_group_control(
360
+ Group_Control_Typography::get_type(),
361
+ [
362
+ 'name' => 'prefix_suffix_typography',
363
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
364
+ 'selector' => '{{WRAPPER}} .premium-prefix-text, {{WRAPPER}} .premium-suffix-text',
365
+ ]
366
+ );
367
+
368
  /*Prefix Suffix Text Background Color*/
369
  $this->add_control('premium_prefix_suffix_text_background_color',
370
  [
371
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
372
  'type' => Controls_Manager::COLOR,
373
  'selectors' => [
374
  '{{WRAPPER}} .premium-prefix-text, {{WRAPPER}} .premium-suffix-text' => 'background-color: {{VALUE}};',
376
  ]
377
  );
378
 
 
 
 
 
 
 
 
 
 
 
379
  /*End Prefix Suffix Text Settings Tab*/
380
  $this->end_controls_section();
381
  }
440
  <?php
441
  }
442
  }
443
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Fancy_Text_Widget());
widgets/premium-image-button.php CHANGED
@@ -12,6 +12,10 @@ class Premium_Image_Button_Widget extends Widget_Base
12
  public function get_title() {
13
  return esc_html__('Premium Image Button', 'premium-addons-for-elementor');
14
  }
 
 
 
 
15
 
16
  public function get_icon() {
17
  return 'pa-image-button';
@@ -28,23 +32,36 @@ class Premium_Image_Button_Widget extends Widget_Base
28
  /*Start Button Content Section */
29
  $this->start_controls_section('premium_image_button_general_section',
30
  [
31
- 'label' => esc_html__('Button Settings', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
35
  /*Button Text*/
36
  $this->add_control('premium_image_button_text',
37
  [
38
- 'label' => esc_html__('Button Text', 'premium-addons-for-elementor'),
39
  'type' => Controls_Manager::TEXT,
40
  'default' => esc_html__('Click Me','premium-addons-for-elementor'),
41
  'label_block' => true,
42
  ]
43
  );
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  $this->add_control('premium_image_button_link',
46
  [
47
- 'label' => esc_html__('URL', 'premium-addons-for-elementor'),
48
  'type' => Controls_Manager::URL,
49
  'default' => [
50
  'url' => '#',
@@ -52,13 +69,29 @@ class Premium_Image_Button_Widget extends Widget_Base
52
  'placeholder' => 'https://premiumaddons.com/',
53
  'label_block' => true,
54
  'separator' => 'after',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  ]
56
  );
57
 
58
  /*Button Hover Effect*/
59
  $this->add_control('premium_image_button_hover_effect',
60
  [
61
- 'label' => esc_html__('Button Hover Effect', 'premium-addons-for-elementor'),
62
  'type' => Controls_Manager::SELECT,
63
  'default' => 'none',
64
  'options' => [
@@ -145,7 +178,7 @@ class Premium_Image_Button_Widget extends Widget_Base
145
  /*Button Icon Switcher*/
146
  $this->add_control('premium_image_button_icon_switcher',
147
  [
148
- 'label' => esc_html__('Button Icon', 'premium-addons-for-elementor'),
149
  'type' => Controls_Manager::SWITCHER,
150
  'condition' => [
151
  'premium_image_button_hover_effect!' => 'style4'
@@ -265,7 +298,7 @@ class Premium_Image_Button_Widget extends Widget_Base
265
  /*Button Size*/
266
  $this->add_control('premium_image_button_size',
267
  [
268
- 'label' => esc_html__('Button Size', 'premium-addons-for-elementor'),
269
  'type' => Controls_Manager::SELECT,
270
  'default' => 'lg',
271
  'options' => [
@@ -282,7 +315,7 @@ class Premium_Image_Button_Widget extends Widget_Base
282
  /*Button Align*/
283
  $this->add_responsive_control('premium_image_button_align',
284
  [
285
- 'label' => __( 'Button Alignment', 'elementor' ),
286
  'type' => Controls_Manager::CHOOSE,
287
  'options' => [
288
  'left' => [
@@ -307,7 +340,7 @@ class Premium_Image_Button_Widget extends Widget_Base
307
 
308
  $this->add_control('premium_image_button_event_switcher',
309
  [
310
- 'label' => esc_html__('Image onclick Event', 'premium-addons-for-elementor'),
311
  'type' => Controls_Manager::SWITCHER,
312
  'separator' => 'before',
313
  ]
@@ -412,28 +445,6 @@ class Premium_Image_Button_Widget extends Widget_Base
412
  ]
413
  );
414
 
415
- /*Button Margin*/
416
- $this->add_responsive_control('premium_image_button_margin_normal',
417
- [
418
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
419
- 'type' => Controls_Manager::DIMENSIONS,
420
- 'size_units' => ['px', 'em', '%'],
421
- 'selectors' => [
422
- '{{WRAPPER}} .premium-image-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
423
- ]
424
- ]);
425
-
426
- /*Button Padding*/
427
- $this->add_responsive_control('premium_image_button_padding_normal',
428
- [
429
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
430
- 'type' => Controls_Manager::DIMENSIONS,
431
- 'size_units' => ['px', 'em', '%'],
432
- 'selectors' => [
433
- '{{WRAPPER}} .premium-image-button, {{WRAPPER}} .premium-image-button-effect-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
434
- ]
435
- ]);
436
-
437
  /*Icon Shadow*/
438
  $this->add_group_control(
439
  Group_Control_Text_Shadow::get_type(),
@@ -469,6 +480,28 @@ class Premium_Image_Button_Widget extends Widget_Base
469
  ]
470
  );
471
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  $this->end_controls_tab();
473
 
474
  $this->start_controls_tab('premium_image_button_style_hover',
@@ -607,28 +640,6 @@ class Premium_Image_Button_Widget extends Widget_Base
607
  ]
608
  );
609
 
610
- /*Button Margin*/
611
- $this->add_responsive_control('premium_image_button_margin_hover',
612
- [
613
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
614
- 'type' => Controls_Manager::DIMENSIONS,
615
- 'size_units' => ['px', 'em', '%'],
616
- 'selectors' => [
617
- '{{WRAPPER}} .premium-image-button:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
618
- ]
619
- ]);
620
-
621
- /*Button Padding*/
622
- $this->add_responsive_control('premium_image_button_padding_hover',
623
- [
624
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
625
- 'type' => Controls_Manager::DIMENSIONS,
626
- 'size_units' => ['px', 'em', '%'],
627
- 'selectors' => [
628
- '{{WRAPPER}} .premium-image-button:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
629
- ]
630
- ]);
631
-
632
  /*Icon Shadow*/
633
  $this->add_group_control(
634
  Group_Control_Text_Shadow::get_type(),
@@ -679,6 +690,27 @@ class Premium_Image_Button_Widget extends Widget_Base
679
  );
680
 
681
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
682
 
683
  $this->end_controls_tab();
684
 
@@ -694,7 +726,11 @@ class Premium_Image_Button_Widget extends Widget_Base
694
  $settings = $this->get_settings();
695
  $this->add_inline_editing_attributes( 'premium_image_button_text' );
696
 
697
- $image_link = $settings['premium_image_button_link']['url'];
 
 
 
 
698
 
699
  $button_text = $settings['premium_image_button_text'];
700
 
@@ -728,4 +764,4 @@ class Premium_Image_Button_Widget extends Widget_Base
728
  <?php
729
  }
730
  }
731
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Button_Widget());
12
  public function get_title() {
13
  return esc_html__('Premium Image Button', 'premium-addons-for-elementor');
14
  }
15
+
16
+ public function getTemplateInstance() {
17
+ return $this->templateInstance = premium_Template_Tags::getInstance();
18
+ }
19
 
20
  public function get_icon() {
21
  return 'pa-image-button';
32
  /*Start Button Content Section */
33
  $this->start_controls_section('premium_image_button_general_section',
34
  [
35
+ 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
36
  ]
37
  );
38
 
39
  /*Button Text*/
40
  $this->add_control('premium_image_button_text',
41
  [
42
+ 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
43
  'type' => Controls_Manager::TEXT,
44
  'default' => esc_html__('Click Me','premium-addons-for-elementor'),
45
  'label_block' => true,
46
  ]
47
  );
48
 
49
+ $this->add_control('premium_image_button_link_selection',
50
+ [
51
+ 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
52
+ 'type' => Controls_Manager::SELECT,
53
+ 'options' => [
54
+ 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
55
+ 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
56
+ ],
57
+ 'default' => 'url',
58
+ 'label_block' => true,
59
+ ]
60
+ );
61
+
62
  $this->add_control('premium_image_button_link',
63
  [
64
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
65
  'type' => Controls_Manager::URL,
66
  'default' => [
67
  'url' => '#',
69
  'placeholder' => 'https://premiumaddons.com/',
70
  'label_block' => true,
71
  'separator' => 'after',
72
+ 'condition' => [
73
+ 'premium_image_button_link_selection' => 'url'
74
+ ]
75
+ ]
76
+ );
77
+
78
+ $this->add_control('premium_image_button_existing_link',
79
+ [
80
+ 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
81
+ 'type' => Controls_Manager::SELECT,
82
+ 'options' => $this->getTemplateInstance()->get_all_post(),
83
+ 'condition' => [
84
+ 'premium_image_button_link_selection' => 'link',
85
+ ],
86
+ 'separator' => 'after',
87
+ 'label_block' => true,
88
  ]
89
  );
90
 
91
  /*Button Hover Effect*/
92
  $this->add_control('premium_image_button_hover_effect',
93
  [
94
+ 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
95
  'type' => Controls_Manager::SELECT,
96
  'default' => 'none',
97
  'options' => [
178
  /*Button Icon Switcher*/
179
  $this->add_control('premium_image_button_icon_switcher',
180
  [
181
+ 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
182
  'type' => Controls_Manager::SWITCHER,
183
  'condition' => [
184
  'premium_image_button_hover_effect!' => 'style4'
298
  /*Button Size*/
299
  $this->add_control('premium_image_button_size',
300
  [
301
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
302
  'type' => Controls_Manager::SELECT,
303
  'default' => 'lg',
304
  'options' => [
315
  /*Button Align*/
316
  $this->add_responsive_control('premium_image_button_align',
317
  [
318
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
319
  'type' => Controls_Manager::CHOOSE,
320
  'options' => [
321
  'left' => [
340
 
341
  $this->add_control('premium_image_button_event_switcher',
342
  [
343
+ 'label' => esc_html__('onclick Event', 'premium-addons-for-elementor'),
344
  'type' => Controls_Manager::SWITCHER,
345
  'separator' => 'before',
346
  ]
445
  ]
446
  );
447
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  /*Icon Shadow*/
449
  $this->add_group_control(
450
  Group_Control_Text_Shadow::get_type(),
480
  ]
481
  );
482
 
483
+ /*Button Margin*/
484
+ $this->add_responsive_control('premium_image_button_margin_normal',
485
+ [
486
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
487
+ 'type' => Controls_Manager::DIMENSIONS,
488
+ 'size_units' => ['px', 'em', '%'],
489
+ 'selectors' => [
490
+ '{{WRAPPER}} .premium-image-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
491
+ ]
492
+ ]);
493
+
494
+ /*Button Padding*/
495
+ $this->add_responsive_control('premium_image_button_padding_normal',
496
+ [
497
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
498
+ 'type' => Controls_Manager::DIMENSIONS,
499
+ 'size_units' => ['px', 'em', '%'],
500
+ 'selectors' => [
501
+ '{{WRAPPER}} .premium-image-button, {{WRAPPER}} .premium-image-button-effect-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
502
+ ]
503
+ ]);
504
+
505
  $this->end_controls_tab();
506
 
507
  $this->start_controls_tab('premium_image_button_style_hover',
640
  ]
641
  );
642
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
643
  /*Icon Shadow*/
644
  $this->add_group_control(
645
  Group_Control_Text_Shadow::get_type(),
690
  );
691
 
692
 
693
+ /*Button Margin*/
694
+ $this->add_responsive_control('premium_image_button_margin_hover',
695
+ [
696
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
697
+ 'type' => Controls_Manager::DIMENSIONS,
698
+ 'size_units' => ['px', 'em', '%'],
699
+ 'selectors' => [
700
+ '{{WRAPPER}} .premium-image-button:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
701
+ ]
702
+ ]);
703
+
704
+ /*Button Padding*/
705
+ $this->add_responsive_control('premium_image_button_padding_hover',
706
+ [
707
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
708
+ 'type' => Controls_Manager::DIMENSIONS,
709
+ 'size_units' => ['px', 'em', '%'],
710
+ 'selectors' => [
711
+ '{{WRAPPER}} .premium-image-button:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
712
+ ]
713
+ ]);
714
 
715
  $this->end_controls_tab();
716
 
726
  $settings = $this->get_settings();
727
  $this->add_inline_editing_attributes( 'premium_image_button_text' );
728
 
729
+ if($settings['premium_image_button_link_selection'] == 'url'){
730
+ $image_link = $settings['premium_image_button_link']['url'];
731
+ } else {
732
+ $image_link = get_permalink($settings['premium_image_button_existing_link']);
733
+ }
734
 
735
  $button_text = $settings['premium_image_button_text'];
736
 
764
  <?php
765
  }
766
  }
767
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Button_Widget());
widgets/premium-imageseparator.php CHANGED
@@ -129,7 +129,7 @@ class Premium_Image_Separator_Widget extends Widget_Base
129
  'type' => Controls_Manager::SELECT,
130
  'options' => [
131
  'url' => esc_html__('URL', 'premium-addons-for-elementor'),
132
- 'link' => esc_html__('Link to Existing Content', 'premium-addons-for-elementor'),
133
  ],
134
  'default' => 'url',
135
  'condition' => [
@@ -141,7 +141,7 @@ class Premium_Image_Separator_Widget extends Widget_Base
141
 
142
  $this->add_control('premium_image_separator_existing_page',
143
  [
144
- 'label' => esc_html__('Link to Existing Content', 'premium-addons-for-elementor'),
145
  'type' => Controls_Manager::SELECT,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
@@ -228,4 +228,4 @@ class Premium_Image_Separator_Widget extends Widget_Base
228
  <?php
229
  }
230
  }
231
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Separator_Widget());
129
  'type' => Controls_Manager::SELECT,
130
  'options' => [
131
  'url' => esc_html__('URL', 'premium-addons-for-elementor'),
132
+ 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
133
  ],
134
  'default' => 'url',
135
  'condition' => [
141
 
142
  $this->add_control('premium_image_separator_existing_page',
143
  [
144
+ 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
145
  'type' => Controls_Manager::SELECT,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
228
  <?php
229
  }
230
  }
231
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Separator_Widget());
widgets/premium-maps.php CHANGED
@@ -68,7 +68,7 @@ class Premium_Maps_Widget extends Widget_Base
68
 
69
  $this->start_controls_section('premium_maps_map_pins_settings',
70
  [
71
- 'label' => esc_html__('Map Markers', 'premium-addons-for-elementor'),
72
  ]
73
  );
74
 
@@ -99,19 +99,19 @@ class Premium_Maps_Widget extends Widget_Base
99
  ],
100
  [
101
  'name' => 'pin_title',
102
- 'label' => esc_html__('Pin Title', 'premium-addons-for-elementor'),
103
  'type' => Controls_Manager::TEXT,
104
  'label_block' => true,
105
  ],
106
  [
107
  'name' => 'pin_desc',
108
- 'label' => esc_html__('Pin Description', 'premium-addons-for-elementor'),
109
  'type' => Controls_Manager::WYSIWYG,
110
  'label_block' => true,
111
  ],
112
  [
113
  'name' => 'pin_icon',
114
- 'label' => esc_html__('Pin Icon', 'premium-addons-for-elementor'),
115
  'type' => Controls_Manager::MEDIA,
116
  ],
117
  ],
@@ -122,13 +122,27 @@ class Premium_Maps_Widget extends Widget_Base
122
 
123
  $this->start_controls_section('premium_maps_controls_section',
124
  [
125
- 'label' => esc_html__('Map Controls', 'premium-addons-for-elementor'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  ]
127
  );
128
 
129
  $this->add_responsive_control('premium_maps_map_height',
130
  [
131
- 'label' => esc_html__( 'Map Height', 'premium-addons-for-elementor' ),
132
  'type' => Controls_Manager::SLIDER,
133
  'default' => [
134
  'size' => 500,
@@ -147,7 +161,7 @@ class Premium_Maps_Widget extends Widget_Base
147
 
148
  $this->add_control('premium_maps_map_zoom',
149
  [
150
- 'label' => esc_html__( 'Map Zoom', 'premium-addons-for-elementor' ),
151
  'type' => Controls_Manager::SLIDER,
152
  'default' => [
153
  'size' => 12,
@@ -163,65 +177,51 @@ class Premium_Maps_Widget extends Widget_Base
163
 
164
  $this->add_control('premium_maps_map_option_map_type_control',
165
  [
166
- 'label' => esc_html__( 'Enable Map Type Controls', 'premium-addons-for-elementor' ),
167
  'type' => Controls_Manager::SWITCHER,
168
  ]
169
  );
170
 
171
  $this->add_control('premium_maps_map_option_zoom_controls',
172
  [
173
- 'label' => esc_html__( 'Enable Zoom Controls', 'premium-addons-for-elementor' ),
174
  'type' => Controls_Manager::SWITCHER,
175
  ]
176
  );
177
 
178
  $this->add_control('premium_maps_map_option_streeview',
179
  [
180
- 'label' => esc_html__( 'Enable Street View Control', 'premium-addons-for-elementor' ),
181
  'type' => Controls_Manager::SWITCHER,
182
  ]
183
  );
184
 
185
  $this->add_control('premium_maps_map_option_fullscreen_control',
186
  [
187
- 'label' => esc_html__( 'Enable Fullscreen Control', 'premium-addons-for-elementor' ),
188
  'type' => Controls_Manager::SWITCHER,
189
  ]
190
  );
191
 
192
  $this->add_control('premium_maps_map_option_mapscroll',
193
  [
194
- 'label' => esc_html__( 'Enable Scroll Wheel Zoom', 'premium-addons-for-elementor' ),
195
  'type' => Controls_Manager::SWITCHER,
196
  ]
197
  );
198
 
199
  $this->add_control('premium_maps_marker_open',
200
  [
201
- 'label' => esc_html__( 'Enable Marker Automatic Open', 'premium-addons-for-elementor' ),
202
  'type' => Controls_Manager::SWITCHER,
203
  ]
204
  );
205
 
206
- $this->add_control('premium_maps_map_type',
207
- [
208
- 'label' => esc_html__( 'Map Type', 'premium-addons-for-elementor' ),
209
- 'type' => Controls_Manager::SELECT,
210
- 'options' => [
211
- 'roadmap' => esc_html__( 'Road Map', 'premium-addons-for-elementor' ),
212
- 'satellite' => esc_html__( 'Satellite', 'premium-addons-for-elementor' ),
213
- 'terrain' => esc_html__( 'Terrain', 'premium-addons-for-elementor' ),
214
- 'hybrid' => esc_html__( 'Hybrid', 'premium-addons-for-elementor' ),
215
- ],
216
- 'default' => 'roadmap',
217
- ]
218
- );
219
-
220
  $this->end_controls_section();
221
 
222
  $this->start_controls_section('premium_maps_custom_styling_section',
223
  [
224
- 'label' => esc_html__('Map Custom Styling', 'premium-addons-for-elementor'),
225
  ]
226
  );
227
 
@@ -237,74 +237,10 @@ class Premium_Maps_Widget extends Widget_Base
237
  /*End Map Options Section*/
238
  $this->end_controls_section();
239
 
240
- /*Start Map Style Section*/
241
- $this->start_controls_section('premium_maps_box_style',
242
- [
243
- 'label' => esc_html__('Map', 'premium-addons-for-elementor'),
244
- 'tab' => Controls_Manager::TAB_STYLE,
245
- ]
246
- );
247
-
248
- /*First Border*/
249
- $this->add_group_control(
250
- Group_Control_Border::get_type(),
251
- [
252
- 'name' => 'map_border',
253
- 'selector' => '{{WRAPPER}} .premium-maps-container',
254
- ]
255
- );
256
-
257
- /*First Border Radius*/
258
- $this->add_control('premium_maps_box_radius',
259
- [
260
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
261
- 'type' => Controls_Manager::SLIDER,
262
- 'size_units' => ['px', '%', 'em'],
263
- 'selectors' => [
264
- '{{WRAPPER}} .premium-maps-container,{{WRAPPER}} .premium_maps_map_height' => 'border-radius: {{SIZE}}{{UNIT}};'
265
- ]
266
- ]
267
- );
268
-
269
- /*First Margin*/
270
- $this->add_responsive_control('premium_maps_box_margin',
271
- [
272
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
273
- 'type' => Controls_Manager::DIMENSIONS,
274
- 'size_units' => [ 'px', 'em', '%' ],
275
- 'selectors' => [
276
- '{{WRAPPER}} .premium-maps-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
277
- ]
278
- ]
279
- );
280
-
281
- /*First Padding*/
282
- $this->add_responsive_control('premium_maps_box_padding',
283
- [
284
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
285
- 'type' => Controls_Manager::DIMENSIONS,
286
- 'size_units' => [ 'px', 'em', '%' ],
287
- 'selectors' => [
288
- '{{WRAPPER}} .premium-maps-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
289
- ]
290
- ]
291
- );
292
-
293
- /*Box Shadow*/
294
- $this->add_group_control(
295
- Group_Control_Box_Shadow::get_type(),
296
- [
297
- 'name' => 'premium_maps_box_shadow',
298
- 'selector' => '{{WRAPPER}} .premium-maps-container',
299
- ]
300
- );
301
-
302
- /*End Map Style Section*/
303
- $this->end_controls_section();
304
  /*Start Title Style Section*/
305
  $this->start_controls_section('premium_maps_pin_title_style',
306
  [
307
- 'label' => esc_html__('Pin Title', 'premium-addons-for-elementor'),
308
  'tab' => Controls_Manager::TAB_STYLE,
309
  ]
310
  );
@@ -312,7 +248,7 @@ class Premium_Maps_Widget extends Widget_Base
312
  /*Pin Title Color*/
313
  $this->add_control('premium_maps_pin_title_color',
314
  [
315
- 'label' => esc_html__('Pin Title Color', 'premium-addons-for-elementor'),
316
  'type' => Controls_Manager::COLOR,
317
  'scheme' => [
318
  'type' => Scheme_Color::get_type(),
@@ -333,25 +269,25 @@ class Premium_Maps_Widget extends Widget_Base
333
  ]
334
  );
335
 
336
- /*Pin Title Padding*/
337
- $this->add_responsive_control('premium_maps_pin_title_padding',
338
  [
339
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
340
  'type' => Controls_Manager::DIMENSIONS,
341
  'size_units' => ['px', 'em', '%'],
342
  'selectors' => [
343
- '{{WRAPPER}} .premium-maps-info-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
344
  ]
345
  ]
346
  );
347
 
348
- $this->add_responsive_control('premium_maps_pin_title_margin',
 
349
  [
350
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
351
  'type' => Controls_Manager::DIMENSIONS,
352
  'size_units' => ['px', 'em', '%'],
353
  'selectors' => [
354
- '{{WRAPPER}} .premium-maps-info-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
355
  ]
356
  ]
357
  );
@@ -359,7 +295,7 @@ class Premium_Maps_Widget extends Widget_Base
359
  /*Pin Title ALign*/
360
  $this->add_responsive_control('premium_maps_pin_title_align',
361
  [
362
- 'label' => esc_html__( 'Text Align', 'elementor' ),
363
  'type' => Controls_Manager::CHOOSE,
364
  'options' => [
365
  'left' => [
@@ -388,14 +324,14 @@ class Premium_Maps_Widget extends Widget_Base
388
  /*Start Pin Style Section*/
389
  $this->start_controls_section('premium_maps_pin_text_style',
390
  [
391
- 'label' => esc_html__('Pin Content', 'premium-addons-for-elementor'),
392
  'tab' => Controls_Manager::TAB_STYLE,
393
  ]
394
  );
395
 
396
  $this->add_control('premium_maps_pin_text_color',
397
  [
398
- 'label' => esc_html__('Pin Description Color', 'premium-addons-for-elementor'),
399
  'type' => Controls_Manager::COLOR,
400
  'scheme' => [
401
  'type' => Scheme_Color::get_type(),
@@ -416,24 +352,24 @@ class Premium_Maps_Widget extends Widget_Base
416
  ]
417
  );
418
 
419
- $this->add_responsive_control('premium_maps_pin_text_padding',
420
  [
421
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
422
  'type' => Controls_Manager::DIMENSIONS,
423
  'size_units' => ['px', 'em', '%'],
424
  'selectors' => [
425
- '{{WRAPPER}} .premium-maps-info-desc' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
426
  ]
427
  ]
428
  );
429
 
430
- $this->add_responsive_control('premium_maps_pin_text_margin',
431
  [
432
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
433
  'type' => Controls_Manager::DIMENSIONS,
434
  'size_units' => ['px', 'em', '%'],
435
  'selectors' => [
436
- '{{WRAPPER}} .premium-maps-info-desc' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
437
  ]
438
  ]
439
  );
@@ -441,7 +377,7 @@ class Premium_Maps_Widget extends Widget_Base
441
  /*Pin Title ALign*/
442
  $this->add_responsive_control('premium_maps_pin_description_align',
443
  [
444
- 'label' => esc_html__( 'Text Align', 'elementor' ),
445
  'type' => Controls_Manager::CHOOSE,
446
  'options' => [
447
  'left' => [
@@ -466,6 +402,73 @@ class Premium_Maps_Widget extends Widget_Base
466
 
467
  /*End Pin Style Section*/
468
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
469
  }
470
 
471
  protected function render($instance = [])
68
 
69
  $this->start_controls_section('premium_maps_map_pins_settings',
70
  [
71
+ 'label' => esc_html__('Markers', 'premium-addons-for-elementor'),
72
  ]
73
  );
74
 
99
  ],
100
  [
101
  'name' => 'pin_title',
102
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
103
  'type' => Controls_Manager::TEXT,
104
  'label_block' => true,
105
  ],
106
  [
107
  'name' => 'pin_desc',
108
+ 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
109
  'type' => Controls_Manager::WYSIWYG,
110
  'label_block' => true,
111
  ],
112
  [
113
  'name' => 'pin_icon',
114
+ 'label' => esc_html__('Custom Icon', 'premium-addons-for-elementor'),
115
  'type' => Controls_Manager::MEDIA,
116
  ],
117
  ],
122
 
123
  $this->start_controls_section('premium_maps_controls_section',
124
  [
125
+ 'label' => esc_html__('Controls', 'premium-addons-for-elementor'),
126
+ ]
127
+ );
128
+
129
+ $this->add_control('premium_maps_map_type',
130
+ [
131
+ 'label' => esc_html__( 'Map Type', 'premium-addons-for-elementor' ),
132
+ 'type' => Controls_Manager::SELECT,
133
+ 'options' => [
134
+ 'roadmap' => esc_html__( 'Road Map', 'premium-addons-for-elementor' ),
135
+ 'satellite' => esc_html__( 'Satellite', 'premium-addons-for-elementor' ),
136
+ 'terrain' => esc_html__( 'Terrain', 'premium-addons-for-elementor' ),
137
+ 'hybrid' => esc_html__( 'Hybrid', 'premium-addons-for-elementor' ),
138
+ ],
139
+ 'default' => 'roadmap',
140
  ]
141
  );
142
 
143
  $this->add_responsive_control('premium_maps_map_height',
144
  [
145
+ 'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
146
  'type' => Controls_Manager::SLIDER,
147
  'default' => [
148
  'size' => 500,
161
 
162
  $this->add_control('premium_maps_map_zoom',
163
  [
164
+ 'label' => esc_html__( 'Zoom', 'premium-addons-for-elementor' ),
165
  'type' => Controls_Manager::SLIDER,
166
  'default' => [
167
  'size' => 12,
177
 
178
  $this->add_control('premium_maps_map_option_map_type_control',
179
  [
180
+ 'label' => esc_html__( 'Map Type Controls', 'premium-addons-for-elementor' ),
181
  'type' => Controls_Manager::SWITCHER,
182
  ]
183
  );
184
 
185
  $this->add_control('premium_maps_map_option_zoom_controls',
186
  [
187
+ 'label' => esc_html__( 'Zoom Controls', 'premium-addons-for-elementor' ),
188
  'type' => Controls_Manager::SWITCHER,
189
  ]
190
  );
191
 
192
  $this->add_control('premium_maps_map_option_streeview',
193
  [
194
+ 'label' => esc_html__( 'Street View Control', 'premium-addons-for-elementor' ),
195
  'type' => Controls_Manager::SWITCHER,
196
  ]
197
  );
198
 
199
  $this->add_control('premium_maps_map_option_fullscreen_control',
200
  [
201
+ 'label' => esc_html__( 'Fullscreen Control', 'premium-addons-for-elementor' ),
202
  'type' => Controls_Manager::SWITCHER,
203
  ]
204
  );
205
 
206
  $this->add_control('premium_maps_map_option_mapscroll',
207
  [
208
+ 'label' => esc_html__( 'Scroll Wheel Zoom', 'premium-addons-for-elementor' ),
209
  'type' => Controls_Manager::SWITCHER,
210
  ]
211
  );
212
 
213
  $this->add_control('premium_maps_marker_open',
214
  [
215
+ 'label' => esc_html__( 'Info Container Always Opened', 'premium-addons-for-elementor' ),
216
  'type' => Controls_Manager::SWITCHER,
217
  ]
218
  );
219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  $this->end_controls_section();
221
 
222
  $this->start_controls_section('premium_maps_custom_styling_section',
223
  [
224
+ 'label' => esc_html__('Map Style', 'premium-addons-for-elementor'),
225
  ]
226
  );
227
 
237
  /*End Map Options Section*/
238
  $this->end_controls_section();
239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  /*Start Title Style Section*/
241
  $this->start_controls_section('premium_maps_pin_title_style',
242
  [
243
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
244
  'tab' => Controls_Manager::TAB_STYLE,
245
  ]
246
  );
248
  /*Pin Title Color*/
249
  $this->add_control('premium_maps_pin_title_color',
250
  [
251
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
252
  'type' => Controls_Manager::COLOR,
253
  'scheme' => [
254
  'type' => Scheme_Color::get_type(),
269
  ]
270
  );
271
 
272
+ $this->add_responsive_control('premium_maps_pin_title_margin',
 
273
  [
274
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
275
  'type' => Controls_Manager::DIMENSIONS,
276
  'size_units' => ['px', 'em', '%'],
277
  'selectors' => [
278
+ '{{WRAPPER}} .premium-maps-info-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
279
  ]
280
  ]
281
  );
282
 
283
+ /*Pin Title Padding*/
284
+ $this->add_responsive_control('premium_maps_pin_title_padding',
285
  [
286
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
287
  'type' => Controls_Manager::DIMENSIONS,
288
  'size_units' => ['px', 'em', '%'],
289
  'selectors' => [
290
+ '{{WRAPPER}} .premium-maps-info-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
291
  ]
292
  ]
293
  );
295
  /*Pin Title ALign*/
296
  $this->add_responsive_control('premium_maps_pin_title_align',
297
  [
298
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
299
  'type' => Controls_Manager::CHOOSE,
300
  'options' => [
301
  'left' => [
324
  /*Start Pin Style Section*/
325
  $this->start_controls_section('premium_maps_pin_text_style',
326
  [
327
+ 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
328
  'tab' => Controls_Manager::TAB_STYLE,
329
  ]
330
  );
331
 
332
  $this->add_control('premium_maps_pin_text_color',
333
  [
334
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
335
  'type' => Controls_Manager::COLOR,
336
  'scheme' => [
337
  'type' => Scheme_Color::get_type(),
352
  ]
353
  );
354
 
355
+ $this->add_responsive_control('premium_maps_pin_text_margin',
356
  [
357
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
358
  'type' => Controls_Manager::DIMENSIONS,
359
  'size_units' => ['px', 'em', '%'],
360
  'selectors' => [
361
+ '{{WRAPPER}} .premium-maps-info-desc' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
362
  ]
363
  ]
364
  );
365
 
366
+ $this->add_responsive_control('premium_maps_pin_text_padding',
367
  [
368
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
369
  'type' => Controls_Manager::DIMENSIONS,
370
  'size_units' => ['px', 'em', '%'],
371
  'selectors' => [
372
+ '{{WRAPPER}} .premium-maps-info-desc' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
373
  ]
374
  ]
375
  );
377
  /*Pin Title ALign*/
378
  $this->add_responsive_control('premium_maps_pin_description_align',
379
  [
380
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
381
  'type' => Controls_Manager::CHOOSE,
382
  'options' => [
383
  'left' => [
402
 
403
  /*End Pin Style Section*/
404
  $this->end_controls_section();
405
+
406
+ /*Start Map Style Section*/
407
+ $this->start_controls_section('premium_maps_box_style',
408
+ [
409
+ 'label' => esc_html__('Map', 'premium-addons-for-elementor'),
410
+ 'tab' => Controls_Manager::TAB_STYLE,
411
+ ]
412
+ );
413
+
414
+ /*First Border*/
415
+ $this->add_group_control(
416
+ Group_Control_Border::get_type(),
417
+ [
418
+ 'name' => 'map_border',
419
+ 'selector' => '{{WRAPPER}} .premium-maps-container',
420
+ ]
421
+ );
422
+
423
+ /*First Border Radius*/
424
+ $this->add_control('premium_maps_box_radius',
425
+ [
426
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
427
+ 'type' => Controls_Manager::SLIDER,
428
+ 'size_units' => ['px', '%', 'em'],
429
+ 'selectors' => [
430
+ '{{WRAPPER}} .premium-maps-container,{{WRAPPER}} .premium_maps_map_height' => 'border-radius: {{SIZE}}{{UNIT}};'
431
+ ]
432
+ ]
433
+ );
434
+
435
+ /*Box Shadow*/
436
+ $this->add_group_control(
437
+ Group_Control_Box_Shadow::get_type(),
438
+ [
439
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
440
+ 'name' => 'premium_maps_box_shadow',
441
+ 'selector' => '{{WRAPPER}} .premium-maps-container',
442
+ ]
443
+ );
444
+
445
+ /*First Margin*/
446
+ $this->add_responsive_control('premium_maps_box_margin',
447
+ [
448
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
449
+ 'type' => Controls_Manager::DIMENSIONS,
450
+ 'size_units' => [ 'px', 'em', '%' ],
451
+ 'selectors' => [
452
+ '{{WRAPPER}} .premium-maps-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
453
+ ]
454
+ ]
455
+ );
456
+
457
+ /*First Padding*/
458
+ $this->add_responsive_control('premium_maps_box_padding',
459
+ [
460
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
461
+ 'type' => Controls_Manager::DIMENSIONS,
462
+ 'size_units' => [ 'px', 'em', '%' ],
463
+ 'selectors' => [
464
+ '{{WRAPPER}} .premium-maps-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
465
+ ]
466
+ ]
467
+ );
468
+
469
+ /*End Map Style Section*/
470
+ $this->end_controls_section();
471
+
472
  }
473
 
474
  protected function render($instance = [])
widgets/premium-modalbox.php CHANGED
@@ -35,14 +35,112 @@ class Premium_Modal_Box_Widget extends Widget_Base
35
 
36
  $this->start_controls_section('premium_modal_box_selector_content_section',
37
  [
38
- 'label' => esc_html__('Modal Box Settings', 'premium-addons-for-elementor'),
39
  ]
40
  );
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  /*Modal Box Display On*/
43
  $this->add_control('premium_modal_box_display_on',
44
  [
45
- 'label' => esc_html__('Display Modal Box On', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::SELECT,
47
  'description' => esc_html__('Choose where would you like the modal box appear on', 'premium-addons-for-elementor'),
48
  'options' => [
@@ -134,7 +232,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
134
  /*Alignment*/
135
  $this->add_responsive_control('premium_modal_box_selector_align',
136
  [
137
- 'label' => __( 'Selector Alignment', 'premium-addons-for-elementor' ),
138
  'type' => Controls_Manager::CHOOSE,
139
  'options' => [
140
  'left' => [
@@ -159,106 +257,6 @@ class Premium_Modal_Box_Widget extends Widget_Base
159
  ],
160
  ]
161
  );
162
-
163
-
164
- $this->end_controls_section();
165
-
166
- $this->start_controls_section('premium_modal_box_content_section',
167
- [
168
- 'label' => esc_html__('Modal Box Content', 'premium-addons-for-elementor'),
169
- ]
170
- );
171
-
172
- /*Icon To Display*/
173
- $this->add_control('premium_modal_box_icon_selection',
174
- [
175
- 'label' => esc_html__('Icon to Display', 'premium-addons-for-elementor'),
176
- 'type' => Controls_Manager::SELECT,
177
- 'description' => esc_html__('Use font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
178
- 'options' => [
179
- 'noicon' => esc_html('No Icon'),
180
- 'fonticon'=> esc_html('Font Awesome Icon'),
181
- 'image' => esc_html('Custom Image Icon'),
182
- ],
183
- 'default' => 'noicon',
184
- 'label_block' => true
185
- ]
186
- );
187
-
188
- /*Font Awesome Icon*/
189
- $this->add_control('premium_modal_box_font_icon',
190
- [
191
- 'label' => esc_html__('Font Awesome Icon', 'premium-addons-for-elementor'),
192
- 'type' => Controls_Manager::ICON,
193
- 'condition' => [
194
- 'premium_modal_box_icon_selection' => 'fonticon',
195
- ],
196
- 'label_block' => true,
197
- ]
198
- );
199
-
200
- /*Image Icon*/
201
- $this->add_control('premium_modal_box_image_icon',
202
- [
203
- 'label' => esc_html__('Custom Image Icon', 'premium-addons-for-elementor'),
204
- 'type' => Controls_Manager::MEDIA,
205
- 'default' => [
206
- 'url' => Utils::get_placeholder_image_src(),
207
- ],
208
- 'condition' => [
209
- 'premium_modal_box_icon_selection' => 'image',
210
- ],
211
- 'label_block' => true,
212
- ]
213
- );
214
-
215
- /*Modal Box Title*/
216
- $this->add_control('premium_modal_box_title',
217
- [
218
- 'label' => esc_html__('Modal Box Title', 'premium-addons-for-elementor'),
219
- 'type' => Controls_Manager::TEXT,
220
- 'description' => esc_html__('Provide the modal box with a title', 'premium-addons-for-elementor'),
221
- 'default' => 'Modal Box Title',
222
- 'label_block' => true,
223
- ]
224
- );
225
-
226
- /*Modal Box Content Heading*/
227
- $this->add_control('premium_modal_box_content_heading',
228
- [
229
- 'label' => esc_html__('Modal Box Content', 'premium-addons-for-elementor'),
230
- 'type' => Controls_Manager::HEADING,
231
- ]
232
- );
233
-
234
- /*Modal Box Content*/
235
- $this->add_control('premium_modal_box_content',
236
- [
237
- 'label' => esc_html__('Modal Box Content', 'premium-addons-for-elementoror'),
238
- 'type' => Controls_Manager::WYSIWYG,
239
- 'default' => 'Modal Box Content',
240
- 'selector' => '{{WRAPPER}} .premium-modal-box-modal-body',
241
- 'show_label' => false,
242
- ]
243
- );
244
-
245
- /*Upper Close Button*/
246
- $this->add_control('premium_modal_box_upper_close',
247
- [
248
- 'label' => esc_html__('Upper Close Button', 'premium-addons-for-elementor'),
249
- 'type' => Controls_Manager::SWITCHER,
250
- 'default' => 'yes',
251
- ]
252
- );
253
-
254
- /*Lower Close Button*/
255
- $this->add_control('premium_modal_box_lower_close',
256
- [
257
- 'label' => esc_html__('Lower Close Button', 'premium-addons-for-elementor'),
258
- 'type' => Controls_Manager::SWITCHER,
259
- 'default' => 'yes',
260
- ]
261
- );
262
 
263
  /*End Box Content Section*/
264
  $this->end_controls_section();
@@ -266,7 +264,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
266
  /*Selector Style*/
267
  $this->start_controls_section('premium_modal_box_selector_style_section',
268
  [
269
- 'label' => esc_html__('Selector', 'premium-addons-for-elementor'),
270
  'tab' => Controls_Manager::TAB_STYLE,
271
  'condition' => [
272
  'premium_modal_box_display_on!' => 'pageload',
@@ -277,7 +275,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
277
  /*Button Text Color*/
278
  $this->add_control('premium_modal_box_button_text_color',
279
  [
280
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
281
  'type' => Controls_Manager::COLOR,
282
  'scheme' => [
283
  'type' => Scheme_Color::get_type(),
@@ -393,6 +391,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
393
  $this->add_group_control(
394
  Group_Control_Box_Shadow::get_type(),
395
  [
 
396
  'name' => 'premium_modal_box_selector_box_shadow',
397
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-img-selector',
398
  'condition' => [
@@ -470,6 +469,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
470
  $this->add_group_control(
471
  Group_Control_Box_Shadow::get_type(),
472
  [
 
473
  'name' => 'premium_modal_box_selector_box_shadow_hover',
474
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector:hover, {{WRAPPER}} .premium-modal-box-text-selector:hover, {{WRAPPER}} .premium-modal-box-img-selector:hover',
475
  'condition' => [
@@ -484,109 +484,6 @@ class Premium_Modal_Box_Widget extends Widget_Base
484
 
485
  $this->end_controls_section();
486
 
487
- $this->start_controls_section('premium_modal_box_style',
488
- [
489
- 'label' => esc_html__('Modal Box', 'premium-addons-for-elementor'),
490
- 'tab' => Controls_Manager::TAB_STYLE,
491
- ]
492
- );
493
-
494
-
495
- /*Modal Size*/
496
- $this->add_control('premium_modal_box_modal_size',
497
- [
498
- 'label' => esc_html__('Modal Width', 'premium-addons-for-elementor'),
499
- 'type' => Controls_Manager::SLIDER,
500
- 'size_units' => ['px', '%', 'em'],
501
- 'range' => [
502
- 'px' => [
503
- 'min' => 50,
504
- 'max' => 1000,
505
- ]
506
- ],
507
- 'label_block' => true,
508
- ]
509
- );
510
-
511
- /*Content Box Border*/
512
- $this->add_group_control(
513
- Group_Control_Border::get_type(),
514
- [
515
- 'name' => 'contentborder',
516
- 'selector' => '{{WRAPPER}} .premium-modal-box-modal-content',
517
- ]
518
- );
519
-
520
- /*Border Radius*/
521
- $this->add_control('premium_modal_box_border_radius',
522
- [
523
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
524
- 'type' => Controls_Manager::SLIDER,
525
- 'size_units' => ['px', '%', 'em'],
526
- 'selectors' => [
527
- '{{WRAPPER}} .premium-modal-box-modal-content' => 'border-radius: {{SIZE}}{{UNIT}};',
528
- ]
529
- ]
530
- );
531
-
532
- /*Modal Background Color*/
533
- $this->add_control('premium_modal_box_modal_background',
534
- [
535
- 'label' => esc_html__('Modal Box Background Color', 'premium-addons-for-elementor'),
536
- 'type' => Controls_Manager::COLOR,
537
- 'selectors' => [
538
- '{{WRAPPER}} .premium-modal-box-modal' => 'background:{{VALUE}};',
539
- ]
540
- ]
541
- );
542
-
543
- /*Header Background Color*/
544
- $this->add_control('premium_modal_box_header_background',
545
- [
546
- 'label' => esc_html__('Header Background Color', 'premium-addons-for-elementor'),
547
- 'type' => Controls_Manager::COLOR,
548
- 'selectors' => [
549
- '{{WRAPPER}} .premium-modal-box-modal-header' => 'background: {{VALUE}};',
550
- ]
551
- ]
552
- );
553
-
554
- /*Content Background Color*/
555
- $this->add_control('premium_modal_box_content_background',
556
- [
557
- 'label' => esc_html__('Content Background Color', 'premium-addons-for-elementor'),
558
- 'type' => Controls_Manager::COLOR,
559
- 'selectors' => [
560
- '{{WRAPPER}} .premium-modal-box-modal-body' => 'background: {{VALUE}};',
561
- ]
562
- ]
563
- );
564
-
565
- /*Footer Background Color*/
566
- $this->add_control('premium_modal_box_footer_background',
567
- [
568
- 'label' => esc_html__('Footer Background Color', 'premium-addons-for-elementor'),
569
- 'type' => Controls_Manager::COLOR,
570
- 'selectors' => [
571
- '{{WRAPPER}} .premium-modal-box-modal-footer' => 'background: {{VALUE}};',
572
- ]
573
- ]
574
- );
575
-
576
- /*Modal Box Margin*/
577
- $this->add_responsive_control('premium_modal_box_margin',
578
- [
579
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
580
- 'type' => Controls_Manager::DIMENSIONS,
581
- 'size_units' => [ 'px', 'em', '%' ],
582
- 'selectors' => [
583
- '{{WRAPPER}} .premium-modal-box-modal-dialog' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
584
- ]
585
- ]
586
- );
587
-
588
- $this->end_controls_section();
589
-
590
  /*Start Header Seettings Section*/
591
  $this->start_controls_section('premium_modal_box_header_settings',
592
  [
@@ -598,7 +495,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
598
  /*Header Text Color*/
599
  $this->add_control('premium_modal_box_header_text_color',
600
  [
601
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
602
  'type' => Controls_Manager::COLOR,
603
  'selectors' => [
604
  '{{WRAPPER}} .premium-modal-box-modal-title' => 'color: {{VALUE}};',
@@ -617,6 +514,17 @@ class Premium_Modal_Box_Widget extends Widget_Base
617
  ]
618
  );
619
 
 
 
 
 
 
 
 
 
 
 
 
620
  /*End Header Settings Section*/
621
  $this->end_controls_section();
622
 
@@ -785,8 +693,8 @@ class Premium_Modal_Box_Widget extends Widget_Base
785
  $this->add_group_control(
786
  Group_Control_Typography::get_type(),
787
  [
788
- 'name' => 'lowerclose',
789
  'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
 
790
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
791
  'selector' => '{{WRAPPER}} .premium-modal-box-modal-lower-close',
792
  ]
@@ -795,7 +703,7 @@ class Premium_Modal_Box_Widget extends Widget_Base
795
  /*Close Button Size*/
796
  $this->add_responsive_control('premium_modal_box_lower_close_button_width',
797
  [
798
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
799
  'type' => Controls_Manager::SLIDER,
800
  'size_units' => ['px', '%', 'em'],
801
  'range' => [
@@ -955,6 +863,97 @@ class Premium_Modal_Box_Widget extends Widget_Base
955
  /*End Lower Close Button Style Section*/
956
  $this->end_controls_section();
957
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
958
  }
959
 
960
  protected function render($instance = [])
@@ -1040,4 +1039,4 @@ class Premium_Modal_Box_Widget extends Widget_Base
1040
  <?php
1041
  }
1042
  }
1043
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Modal_Box_Widget());
35
 
36
  $this->start_controls_section('premium_modal_box_selector_content_section',
37
  [
38
+ 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
39
  ]
40
  );
41
 
42
+ /*Icon To Display*/
43
+ $this->add_control('premium_modal_box_icon_selection',
44
+ [
45
+ 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
46
+ 'type' => Controls_Manager::SELECT,
47
+ 'description' => esc_html__('Use font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
48
+ 'options' => [
49
+ 'noicon' => esc_html('None'),
50
+ 'fonticon'=> esc_html('Font Awesome'),
51
+ 'image' => esc_html('Custom Image'),
52
+ ],
53
+ 'default' => 'noicon',
54
+ 'label_block' => true
55
+ ]
56
+ );
57
+
58
+ /*Font Awesome Icon*/
59
+ $this->add_control('premium_modal_box_font_icon',
60
+ [
61
+ 'label' => esc_html__('Font Awesome', 'premium-addons-for-elementor'),
62
+ 'type' => Controls_Manager::ICON,
63
+ 'condition' => [
64
+ 'premium_modal_box_icon_selection' => 'fonticon',
65
+ ],
66
+ 'label_block' => true,
67
+ ]
68
+ );
69
+
70
+ /*Image Icon*/
71
+ $this->add_control('premium_modal_box_image_icon',
72
+ [
73
+ 'label' => esc_html__('Custom Image', 'premium-addons-for-elementor'),
74
+ 'type' => Controls_Manager::MEDIA,
75
+ 'default' => [
76
+ 'url' => Utils::get_placeholder_image_src(),
77
+ ],
78
+ 'condition' => [
79
+ 'premium_modal_box_icon_selection' => 'image',
80
+ ],
81
+ 'label_block' => true,
82
+ ]
83
+ );
84
+
85
+ /*Modal Box Title*/
86
+ $this->add_control('premium_modal_box_title',
87
+ [
88
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
89
+ 'type' => Controls_Manager::TEXT,
90
+ 'description' => esc_html__('Provide the modal box with a title', 'premium-addons-for-elementor'),
91
+ 'default' => 'Modal Box Title',
92
+ 'label_block' => true,
93
+ ]
94
+ );
95
+
96
+ /*Modal Box Content Heading*/
97
+ $this->add_control('premium_modal_box_content_heading',
98
+ [
99
+ 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
100
+ 'type' => Controls_Manager::HEADING,
101
+ ]
102
+ );
103
+
104
+ /*Modal Box Content*/
105
+ $this->add_control('premium_modal_box_content',
106
+ [
107
+ 'type' => Controls_Manager::WYSIWYG,
108
+ 'default' => 'Modal Box Content',
109
+ 'selector' => '{{WRAPPER}} .premium-modal-box-modal-body',
110
+ 'show_label' => false,
111
+ ]
112
+ );
113
+
114
+ /*Upper Close Button*/
115
+ $this->add_control('premium_modal_box_upper_close',
116
+ [
117
+ 'label' => esc_html__('Upper Close Button', 'premium-addons-for-elementor'),
118
+ 'type' => Controls_Manager::SWITCHER,
119
+ 'default' => 'yes',
120
+ ]
121
+ );
122
+
123
+ /*Lower Close Button*/
124
+ $this->add_control('premium_modal_box_lower_close',
125
+ [
126
+ 'label' => esc_html__('Lower Close Button', 'premium-addons-for-elementor'),
127
+ 'type' => Controls_Manager::SWITCHER,
128
+ 'default' => 'yes',
129
+ ]
130
+ );
131
+
132
+ $this->end_controls_section();
133
+
134
+ $this->start_controls_section('premium_modal_box_content_section',
135
+ [
136
+ 'label' => esc_html__('Display Options', 'premium-addons-for-elementor'),
137
+ ]
138
+ );
139
+
140
  /*Modal Box Display On*/
141
  $this->add_control('premium_modal_box_display_on',
142
  [
143
+ 'label' => esc_html__('Display Style', 'premium-addons-for-elementor'),
144
  'type' => Controls_Manager::SELECT,
145
  'description' => esc_html__('Choose where would you like the modal box appear on', 'premium-addons-for-elementor'),
146
  'options' => [
232
  /*Alignment*/
233
  $this->add_responsive_control('premium_modal_box_selector_align',
234
  [
235
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
236
  'type' => Controls_Manager::CHOOSE,
237
  'options' => [
238
  'left' => [
257
  ],
258
  ]
259
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
 
261
  /*End Box Content Section*/
262
  $this->end_controls_section();
264
  /*Selector Style*/
265
  $this->start_controls_section('premium_modal_box_selector_style_section',
266
  [
267
+ 'label' => esc_html__('Trigger', 'premium-addons-for-elementor'),
268
  'tab' => Controls_Manager::TAB_STYLE,
269
  'condition' => [
270
  'premium_modal_box_display_on!' => 'pageload',
275
  /*Button Text Color*/
276
  $this->add_control('premium_modal_box_button_text_color',
277
  [
278
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::COLOR,
280
  'scheme' => [
281
  'type' => Scheme_Color::get_type(),
391
  $this->add_group_control(
392
  Group_Control_Box_Shadow::get_type(),
393
  [
394
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
395
  'name' => 'premium_modal_box_selector_box_shadow',
396
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-img-selector',
397
  'condition' => [
469
  $this->add_group_control(
470
  Group_Control_Box_Shadow::get_type(),
471
  [
472
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
473
  'name' => 'premium_modal_box_selector_box_shadow_hover',
474
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector:hover, {{WRAPPER}} .premium-modal-box-text-selector:hover, {{WRAPPER}} .premium-modal-box-img-selector:hover',
475
  'condition' => [
484
 
485
  $this->end_controls_section();
486
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
  /*Start Header Seettings Section*/
488
  $this->start_controls_section('premium_modal_box_header_settings',
489
  [
495
  /*Header Text Color*/
496
  $this->add_control('premium_modal_box_header_text_color',
497
  [
498
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
499
  'type' => Controls_Manager::COLOR,
500
  'selectors' => [
501
  '{{WRAPPER}} .premium-modal-box-modal-title' => 'color: {{VALUE}};',
514
  ]
515
  );
516
 
517
+ /*Header Background Color*/
518
+ $this->add_control('premium_modal_box_header_background',
519
+ [
520
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
521
+ 'type' => Controls_Manager::COLOR,
522
+ 'selectors' => [
523
+ '{{WRAPPER}} .premium-modal-box-modal-header' => 'background: {{VALUE}};',
524
+ ]
525
+ ]
526
+ );
527
+
528
  /*End Header Settings Section*/
529
  $this->end_controls_section();
530
 
693
  $this->add_group_control(
694
  Group_Control_Typography::get_type(),
695
  [
 
696
  'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
697
+ 'name' => 'lowerclose',
698
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
699
  'selector' => '{{WRAPPER}} .premium-modal-box-modal-lower-close',
700
  ]
703
  /*Close Button Size*/
704
  $this->add_responsive_control('premium_modal_box_lower_close_button_width',
705
  [
706
+ 'label' => esc_html__('Width', 'premium-addons-for-elementor'),
707
  'type' => Controls_Manager::SLIDER,
708
  'size_units' => ['px', '%', 'em'],
709
  'range' => [
863
  /*End Lower Close Button Style Section*/
864
  $this->end_controls_section();
865
 
866
+ $this->start_controls_section('premium_modal_box_style',
867
+ [
868
+ 'label' => esc_html__('Modal Box', 'premium-addons-for-elementor'),
869
+ 'tab' => Controls_Manager::TAB_STYLE,
870
+ ]
871
+ );
872
+
873
+ /*Modal Size*/
874
+ $this->add_control('premium_modal_box_modal_size',
875
+ [
876
+ 'label' => esc_html__('Width', 'premium-addons-for-elementor'),
877
+ 'type' => Controls_Manager::SLIDER,
878
+ 'size_units' => ['px', '%', 'em'],
879
+ 'range' => [
880
+ 'px' => [
881
+ 'min' => 50,
882
+ 'max' => 1000,
883
+ ]
884
+ ],
885
+ 'label_block' => true,
886
+ ]
887
+ );
888
+
889
+ /*Modal Background Color*/
890
+ $this->add_control('premium_modal_box_modal_background',
891
+ [
892
+ 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
893
+ 'type' => Controls_Manager::COLOR,
894
+ 'selectors' => [
895
+ '{{WRAPPER}} .premium-modal-box-modal' => 'background:{{VALUE}};',
896
+ ]
897
+ ]
898
+ );
899
+
900
+ /*Content Background Color*/
901
+ $this->add_control('premium_modal_box_content_background',
902
+ [
903
+ 'label' => esc_html__('Content Background Color', 'premium-addons-for-elementor'),
904
+ 'type' => Controls_Manager::COLOR,
905
+ 'selectors' => [
906
+ '{{WRAPPER}} .premium-modal-box-modal-body' => 'background: {{VALUE}};',
907
+ ]
908
+ ]
909
+ );
910
+
911
+ /*Footer Background Color*/
912
+ $this->add_control('premium_modal_box_footer_background',
913
+ [
914
+ 'label' => esc_html__('Footer Background Color', 'premium-addons-for-elementor'),
915
+ 'type' => Controls_Manager::COLOR,
916
+ 'selectors' => [
917
+ '{{WRAPPER}} .premium-modal-box-modal-footer' => 'background: {{VALUE}};',
918
+ ]
919
+ ]
920
+ );
921
+
922
+ /*Content Box Border*/
923
+ $this->add_group_control(
924
+ Group_Control_Border::get_type(),
925
+ [
926
+ 'name' => 'contentborder',
927
+ 'selector' => '{{WRAPPER}} .premium-modal-box-modal-content',
928
+ ]
929
+ );
930
+
931
+ /*Border Radius*/
932
+ $this->add_control('premium_modal_box_border_radius',
933
+ [
934
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
935
+ 'type' => Controls_Manager::SLIDER,
936
+ 'size_units' => ['px', '%', 'em'],
937
+ 'selectors' => [
938
+ '{{WRAPPER}} .premium-modal-box-modal-content' => 'border-radius: {{SIZE}}{{UNIT}};',
939
+ ]
940
+ ]
941
+ );
942
+
943
+ /*Modal Box Margin*/
944
+ $this->add_responsive_control('premium_modal_box_margin',
945
+ [
946
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
947
+ 'type' => Controls_Manager::DIMENSIONS,
948
+ 'size_units' => [ 'px', 'em', '%' ],
949
+ 'selectors' => [
950
+ '{{WRAPPER}} .premium-modal-box-modal-dialog' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
951
+ ]
952
+ ]
953
+ );
954
+
955
+ $this->end_controls_section();
956
+
957
  }
958
 
959
  protected function render($instance = [])
1039
  <?php
1040
  }
1041
  }
1042
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Modal_Box_Widget());
widgets/premium-person.php CHANGED
@@ -28,7 +28,7 @@ class Premium_Person_Widget extends Widget_Base
28
  /*Start Premium Person Section*/
29
  $this->start_controls_section('premium_person_general_settings',
30
  [
31
- 'label' => esc_html__('Person Image', 'premium-addons-for-elementor')
32
  ]
33
  );
34
 
@@ -46,7 +46,7 @@ class Premium_Person_Widget extends Widget_Base
46
 
47
  $this->add_responsive_control('premium_person_image_width',
48
  [
49
- 'label' => esc_html__('Image Width', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::SLIDER,
51
  'description' => esc_html__('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
52
  'size_units' => ['px', '%', 'em'],
@@ -73,7 +73,7 @@ class Premium_Person_Widget extends Widget_Base
73
 
74
  $this->add_responsive_control('premium_person_image_height',
75
  [
76
- 'label' => esc_html__('Image Height', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::SLIDER,
78
  'description' => esc_html__('Choose image height in (PX, EM)', 'premium-addons-for-elementor'),
79
  'range' => [
@@ -97,7 +97,7 @@ class Premium_Person_Widget extends Widget_Base
97
  /*Hover Image Effect*/
98
  $this->add_control('premium_person_hover_image_effect',
99
  [
100
- 'label' => esc_html__('Image Hover Effect', 'premium-addons-for-elementor'),
101
  'type' => Controls_Manager::SELECT,
102
  'options' => [
103
  'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
@@ -117,7 +117,7 @@ class Premium_Person_Widget extends Widget_Base
117
  /*Start Person Details Section*/
118
  $this->start_controls_section('premium_person_person_details_section',
119
  [
120
- 'label' => esc_html__('Person Details', 'premium-addons-for-elementor'),
121
  ]
122
  );
123
 
@@ -134,7 +134,7 @@ class Premium_Person_Widget extends Widget_Base
134
  /*Name Tag*/
135
  $this->add_control('premium_person_name_heading',
136
  [
137
- 'label' => esc_html__('Name Tag', 'premium-addons-for-elementor'),
138
  'type' => Controls_Manager::SELECT,
139
  'default' => 'h2',
140
  'options' => [
@@ -162,7 +162,7 @@ class Premium_Person_Widget extends Widget_Base
162
  /*Title Tag*/
163
  $this->add_control('premium_person_title_heading',
164
  [
165
- 'label' => esc_html__('Job Title Tag', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::SELECT,
167
  'default' => 'h4',
168
  'options' => [
@@ -177,10 +177,18 @@ class Premium_Person_Widget extends Widget_Base
177
  ]
178
  );
179
 
 
 
 
 
 
 
 
 
180
  /*Text Align*/
181
  $this->add_responsive_control('premium_person_text_align',
182
  [
183
- 'label' => esc_html__( 'Text Align', 'elementor' ),
184
  'type' => Controls_Manager::CHOOSE,
185
  'options' => [
186
  'left' => [
@@ -206,30 +214,10 @@ class Premium_Person_Widget extends Widget_Base
206
  /*End Person Details Section*/
207
  $this->end_controls_section();
208
 
209
- /*Start Description Section*/
210
- $this->start_controls_section('premium_person_description_section',
211
- [
212
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
213
- ]
214
- );
215
-
216
- /*Content*/
217
- $this->add_control('premium_person_content',
218
- [
219
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
220
- 'type' => Controls_Manager::WYSIWYG,
221
- 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla','premium-addons-for-elementor'),
222
- ]
223
- );
224
-
225
- /*End Description Section*/
226
- $this->end_controls_section();
227
-
228
-
229
  /*Start Social Links Section*/
230
  $this->start_controls_section('premium_person_social_section',
231
  [
232
- 'label' => esc_html__('Social Links', 'premium-addons-for-elementor'),
233
  ]
234
  );
235
 
@@ -263,81 +251,57 @@ class Premium_Person_Widget extends Widget_Base
263
  ]
264
  );
265
 
266
- /*Person Dribble*/
267
- $this->add_control('premium_person_dribbble',
268
  [
269
- 'label' => esc_html__('Dribbble', 'premium-addons-for-elementor'),
270
  'type' => Controls_Manager::TEXT,
271
  'default' => '#',
272
  'label_block' => true,
273
  ]
274
  );
275
 
276
- /*Person Google*/
277
- $this->add_control('premium_person_google',
278
  [
279
- 'label' => esc_html__('Google+', 'premium-addons-for-elementor'),
280
  'type' => Controls_Manager::TEXT,
281
  'default' => '#',
282
  'label_block' => true,
283
  ]
284
  );
285
 
286
- /*Person Google*/
287
- $this->add_control('premium_person_mail',
288
  [
289
- 'label' => esc_html__('Email Address', 'premium-addons-for-elementor'),
290
  'type' => Controls_Manager::TEXT,
291
  'default' => '#',
292
  'label_block' => true,
293
  ]
294
  );
295
 
296
- /*End Social Links Section*/
297
- $this->end_controls_section();
298
-
299
- /*Start Content Style Section*/
300
- $this->start_controls_section('premium_person_general_style',
301
- [
302
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
303
- 'tab' => Controls_Manager::TAB_STYLE,
304
- ]
305
- );
306
-
307
- /*Content Background Color*/
308
- $this->add_control('premium_person_content_background_color',
309
  [
310
- 'label' => esc_html__('Content Background Color', 'premium-addons-for-elementor'),
311
- 'type' => Controls_Manager::COLOR,
312
- 'default' => 'rgba(245,245,245,0.97)',
313
- 'selectors' => [
314
- '{{WRAPPER}} .premium-person-info' => 'background-color: {{VALUE}};',
315
- ]
316
  ]
317
  );
318
 
319
- /*Border Bottom Width*/
320
- $this->add_control('premium_person_border_bottom_width',
321
  [
322
- 'label' => esc_html__('Border Bottom Width (PX)', 'premium-addons-for-elementor'),
323
- 'type' => Controls_Manager::SLIDER,
324
- 'range' => [
325
- 'px' => [
326
- 'min' => 0,
327
- 'max' => 700,
328
- ]
329
- ],
330
- 'default' => [
331
- 'size' => 20,
332
- ],
333
  'label_block' => true,
334
- 'selectors' => [
335
- '{{WRAPPER}} .premium-person-info' => 'bottom: {{SIZE}}px;',
336
- ]
337
  ]
338
  );
339
 
340
- /*End Content Style Section*/
341
  $this->end_controls_section();
342
 
343
  /*Start Name Style Section*/
@@ -352,7 +316,7 @@ class Premium_Person_Widget extends Widget_Base
352
  /*Name Color*/
353
  $this->add_control('premium_person_name_color',
354
  [
355
- 'label' => esc_html__('Name Color', 'premium-addons-for-elementor'),
356
  'type' => Controls_Manager::COLOR,
357
  'scheme' => [
358
  'type' => Scheme_Color::get_type(),
@@ -388,7 +352,7 @@ class Premium_Person_Widget extends Widget_Base
388
  /*Title Color*/
389
  $this->add_control('premium_person_title_color',
390
  [
391
- 'label' => esc_html__('Job Title Color', 'premium-addons-for-elementor'),
392
  'type' => Controls_Manager::COLOR,
393
  'scheme' => [
394
  'type' => Scheme_Color::get_type(),
@@ -424,7 +388,7 @@ class Premium_Person_Widget extends Widget_Base
424
  /*Title Color*/
425
  $this->add_control('premium_person_description_color',
426
  [
427
- 'label' => esc_html__('Description Text Color', 'premium-addons-for-elementor'),
428
  'type' => Controls_Manager::COLOR,
429
  'scheme' => [
430
  'type' => Scheme_Color::get_type(),
@@ -460,7 +424,7 @@ class Premium_Person_Widget extends Widget_Base
460
  /*Social Color*/
461
  $this->add_control('premium_person_social_color',
462
  [
463
- 'label' => esc_html__('Social Icons Color', 'premium-addons-for-elementor'),
464
  'type' => Controls_Manager::COLOR,
465
  'scheme' => [
466
  'type' => Scheme_Color::get_type(),
@@ -475,7 +439,7 @@ class Premium_Person_Widget extends Widget_Base
475
  /*Social Hover Color*/
476
  $this->add_control('premium_person_social_hover_color',
477
  [
478
- 'label' => esc_html__('Social Hover Color', 'premium-addons-for-elementor'),
479
  'type' => Controls_Manager::COLOR,
480
  'scheme' => [
481
  'type' => Scheme_Color::get_type(),
@@ -490,6 +454,50 @@ class Premium_Person_Widget extends Widget_Base
490
  /*End Description Style Section*/
491
  $this->end_controls_section();
492
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  }
494
 
495
  protected function render($instance = [])
@@ -527,8 +535,10 @@ class Premium_Person_Widget extends Widget_Base
527
  <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a></li><?php endif; ?>
528
  <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fa fa-twitter"></i></a></li><?php endif; ?>
529
  <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li><?php endif; ?>
530
- <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fa fa-dribbble"></i></a></li><?php endif; ?>
531
  <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fa fa-google-plus"></i></a></li><?php endif; ?>
 
 
 
532
  <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="fa fa-envelope"></i></a></li><?php endif; ?>
533
  </ul>
534
  </div>
@@ -537,4 +547,4 @@ class Premium_Person_Widget extends Widget_Base
537
  <?php
538
  }
539
  }
540
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Person_Widget());
28
  /*Start Premium Person Section*/
29
  $this->start_controls_section('premium_person_general_settings',
30
  [
31
+ 'label' => esc_html__('Image', 'premium-addons-for-elementor')
32
  ]
33
  );
34
 
46
 
47
  $this->add_responsive_control('premium_person_image_width',
48
  [
49
+ 'label' => esc_html__('Width', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::SLIDER,
51
  'description' => esc_html__('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
52
  'size_units' => ['px', '%', 'em'],
73
 
74
  $this->add_responsive_control('premium_person_image_height',
75
  [
76
+ 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::SLIDER,
78
  'description' => esc_html__('Choose image height in (PX, EM)', 'premium-addons-for-elementor'),
79
  'range' => [
97
  /*Hover Image Effect*/
98
  $this->add_control('premium_person_hover_image_effect',
99
  [
100
+ 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
101
  'type' => Controls_Manager::SELECT,
102
  'options' => [
103
  'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
117
  /*Start Person Details Section*/
118
  $this->start_controls_section('premium_person_person_details_section',
119
  [
120
+ 'label' => esc_html__('Person', 'premium-addons-for-elementor'),
121
  ]
122
  );
123
 
134
  /*Name Tag*/
135
  $this->add_control('premium_person_name_heading',
136
  [
137
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
138
  'type' => Controls_Manager::SELECT,
139
  'default' => 'h2',
140
  'options' => [
162
  /*Title Tag*/
163
  $this->add_control('premium_person_title_heading',
164
  [
165
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::SELECT,
167
  'default' => 'h4',
168
  'options' => [
177
  ]
178
  );
179
 
180
+ $this->add_control('premium_person_content',
181
+ [
182
+ 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
183
+ 'type' => Controls_Manager::WYSIWYG,
184
+ 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla','premium-addons-for-elementor'),
185
+ ]
186
+ );
187
+
188
  /*Text Align*/
189
  $this->add_responsive_control('premium_person_text_align',
190
  [
191
+ 'label' => esc_html__( 'Alignment', 'elementor' ),
192
  'type' => Controls_Manager::CHOOSE,
193
  'options' => [
194
  'left' => [
214
  /*End Person Details Section*/
215
  $this->end_controls_section();
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  /*Start Social Links Section*/
218
  $this->start_controls_section('premium_person_social_section',
219
  [
220
+ 'label' => esc_html__('Social Icons', 'premium-addons-for-elementor'),
221
  ]
222
  );
223
 
251
  ]
252
  );
253
 
254
+ /*Person Google*/
255
+ $this->add_control('premium_person_google',
256
  [
257
+ 'label' => esc_html__('Google+', 'premium-addons-for-elementor'),
258
  'type' => Controls_Manager::TEXT,
259
  'default' => '#',
260
  'label_block' => true,
261
  ]
262
  );
263
 
264
+ /*Person Pinterest*/
265
+ $this->add_control('premium_person_pinterest',
266
  [
267
+ 'label' => esc_html__('Pinterest', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::TEXT,
269
  'default' => '#',
270
  'label_block' => true,
271
  ]
272
  );
273
 
274
+ /*Person Dribble*/
275
+ $this->add_control('premium_person_dribbble',
276
  [
277
+ 'label' => esc_html__('Dribbble', 'premium-addons-for-elementor'),
278
  'type' => Controls_Manager::TEXT,
279
  'default' => '#',
280
  'label_block' => true,
281
  ]
282
  );
283
 
284
+ /*Person Dribble*/
285
+ $this->add_control('premium_person_behance',
 
 
 
 
 
 
 
 
 
 
 
286
  [
287
+ 'label' => esc_html__('Behance', 'premium-addons-for-elementor'),
288
+ 'type' => Controls_Manager::TEXT,
289
+ 'default' => '#',
290
+ 'label_block' => true,
 
 
291
  ]
292
  );
293
 
294
+ /*Person Google*/
295
+ $this->add_control('premium_person_mail',
296
  [
297
+ 'label' => esc_html__('Email Address', 'premium-addons-for-elementor'),
298
+ 'type' => Controls_Manager::TEXT,
299
+ 'default' => '#',
 
 
 
 
 
 
 
 
300
  'label_block' => true,
 
 
 
301
  ]
302
  );
303
 
304
+ /*End Social Links Section*/
305
  $this->end_controls_section();
306
 
307
  /*Start Name Style Section*/
316
  /*Name Color*/
317
  $this->add_control('premium_person_name_color',
318
  [
319
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
320
  'type' => Controls_Manager::COLOR,
321
  'scheme' => [
322
  'type' => Scheme_Color::get_type(),
352
  /*Title Color*/
353
  $this->add_control('premium_person_title_color',
354
  [
355
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
356
  'type' => Controls_Manager::COLOR,
357
  'scheme' => [
358
  'type' => Scheme_Color::get_type(),
388
  /*Title Color*/
389
  $this->add_control('premium_person_description_color',
390
  [
391
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
392
  'type' => Controls_Manager::COLOR,
393
  'scheme' => [
394
  'type' => Scheme_Color::get_type(),
424
  /*Social Color*/
425
  $this->add_control('premium_person_social_color',
426
  [
427
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
428
  'type' => Controls_Manager::COLOR,
429
  'scheme' => [
430
  'type' => Scheme_Color::get_type(),
439
  /*Social Hover Color*/
440
  $this->add_control('premium_person_social_hover_color',
441
  [
442
+ 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
443
  'type' => Controls_Manager::COLOR,
444
  'scheme' => [
445
  'type' => Scheme_Color::get_type(),
454
  /*End Description Style Section*/
455
  $this->end_controls_section();
456
 
457
+ /*Start Content Style Section*/
458
+ $this->start_controls_section('premium_person_general_style',
459
+ [
460
+ 'label' => esc_html__('Content Background', 'premium-addons-for-elementor'),
461
+ 'tab' => Controls_Manager::TAB_STYLE,
462
+ ]
463
+ );
464
+
465
+ /*Content Background Color*/
466
+ $this->add_control('premium_person_content_background_color',
467
+ [
468
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
469
+ 'type' => Controls_Manager::COLOR,
470
+ 'default' => 'rgba(245,245,245,0.97)',
471
+ 'selectors' => [
472
+ '{{WRAPPER}} .premium-person-info' => 'background-color: {{VALUE}};',
473
+ ]
474
+ ]
475
+ );
476
+
477
+ /*Border Bottom Width*/
478
+ $this->add_control('premium_person_border_bottom_width',
479
+ [
480
+ 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
481
+ 'type' => Controls_Manager::SLIDER,
482
+ 'range' => [
483
+ 'px' => [
484
+ 'min' => 0,
485
+ 'max' => 700,
486
+ ]
487
+ ],
488
+ 'default' => [
489
+ 'size' => 20,
490
+ ],
491
+ 'label_block' => true,
492
+ 'selectors' => [
493
+ '{{WRAPPER}} .premium-person-info' => 'bottom: {{SIZE}}px;',
494
+ ]
495
+ ]
496
+ );
497
+
498
+ /*End Content Style Section*/
499
+ $this->end_controls_section();
500
+
501
  }
502
 
503
  protected function render($instance = [])
535
  <?php if( !empty( $settings['premium_person_facebook'] ) ) : ?><li class="premium-person-list-item premium-person-facebook"><a href="<?php echo $settings['premium_person_facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a></li><?php endif; ?>
536
  <?php if( !empty( $settings['premium_person_twitter'] ) ) : ?><li class="premium-person-list-item premium-person-twitter"><a href="<?php echo $settings['premium_person_twitter']; ?>" target="_blank"><i class="fa fa-twitter"></i></a></li><?php endif; ?>
537
  <?php if( !empty( $settings['premium_person_linkedin'] ) ) : ?><li class="premium-person-list-item premium-person-linkedin"><a href="<?php echo $settings['premium_person_linkedin']; ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li><?php endif; ?>
 
538
  <?php if( !empty( $settings['premium_person_google'] ) ) : ?><li class="premium-person-list-item premium-person-google"><a href="<?php echo $settings['premium_person_google']; ?>" target="_blank"><i class="fa fa-google-plus"></i></a></li><?php endif; ?>
539
+ <?php if( !empty( $settings['premium_person_pinterest'] ) ) : ?><li class="premium-person-list-item premium-person-pinterest"><a href="<?php echo $settings['premium_person_pinterest']; ?>" target="_blank"><i class="fa fa-pinterest"></i></a></li><?php endif; ?>
540
+ <?php if( !empty( $settings['premium_person_dribbble'] ) ) : ?><li class="premium-person-list-item premium-person-dribbble"><a href="<?php echo $settings['premium_person_dribbble']; ?>" target="_blank"><i class="fa fa-dribbble"></i></a></li><?php endif; ?>
541
+ <?php if( !empty( $settings['premium_person_behance'] ) ) : ?><li class="premium-person-list-item premium-person-behance"><a href="<?php echo $settings['premium_person_behance']; ?>" target="_blank"><i class="fa fa-behance"></i></a></li><?php endif; ?>
542
  <?php if( !empty( $settings['premium_person_mail'] ) ) : ?><li class="premium-person-list-item premium-person-mail"><a href="<?php echo $settings['premium_person_mail']; ?>" target="_blank"><i class="fa fa-envelope"></i></a></li><?php endif; ?>
543
  </ul>
544
  </div>
547
  <?php
548
  }
549
  }
550
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Person_Widget());
widgets/premium-pricing-table.php CHANGED
@@ -31,70 +31,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
31
  // Adding the controls fields for the premium pricing table
32
  // This will controls the animation, colors and background, dimensions etc
33
  protected function _register_controls() {
34
-
35
- /* Start Title Settings Section */
36
- $this->start_controls_section('premium_pricing_table_title',
37
- [
38
- 'label' => esc_html__('Display Options', 'premium-addons-for-elementor'),
39
- ]
40
- );
41
-
42
- $this->add_control('premium_pricing_table_icon_switcher',
43
- [
44
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
45
- 'type' => Controls_Manager::SWITCHER,
46
- ]
47
- );
48
-
49
- $this->add_control('premium_pricing_table_title_switcher',
50
- [
51
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
52
- 'type' => Controls_Manager::SWITCHER,
53
- 'default' => 'yes',
54
- ]
55
- );
56
-
57
- $this->add_control('premium_pricing_table_price_switcher',
58
- [
59
- 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
60
- 'type' => Controls_Manager::SWITCHER,
61
- 'default' => 'yes',
62
- ]
63
- );
64
-
65
- $this->add_control('premium_pricing_table_list_switcher',
66
- [
67
- 'label' => esc_html__('Icon List', 'premium-addons-for-elementor'),
68
- 'type' => Controls_Manager::SWITCHER,
69
- 'default' => 'yes',
70
- ]
71
- );
72
-
73
- $this->add_control('premium_pricing_table_description_switcher',
74
- [
75
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
76
- 'type' => Controls_Manager::SWITCHER,
77
- ]
78
- );
79
-
80
- $this->add_control('premium_pricing_table_button_switcher',
81
- [
82
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
83
- 'type' => Controls_Manager::SWITCHER,
84
- 'default' => 'yes',
85
- ]
86
- );
87
-
88
- $this->add_control('premium_pricing_table_badge_switcher',
89
- [
90
- 'label' => esc_html__('Badge', 'premium-addons-for-elementor'),
91
- 'type' => Controls_Manager::SWITCHER,
92
- 'default' => 'yes',
93
- ]
94
- );
95
-
96
- $this->end_controls_section();
97
-
98
  /*Title Content Section*/
99
  $this->start_controls_section('premium_pricing_table_icon_section',
100
  [
@@ -128,7 +64,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
128
  /*Header Text*/
129
  $this->add_control('premium_pricing_table_title_text',
130
  [
131
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
132
  'default' => 'Pricing Table',
133
  'type' => Controls_Manager::TEXT,
134
  'label_block' => true,
@@ -138,7 +74,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
138
  /*Header Tag*/
139
  $this->add_control('premium_pricing_table_title_size',
140
  [
141
- 'label' => esc_html__('Title HTML Tag', 'premium-addons-for-elementor'),
142
  'description' => esc_html__( 'Select HTML tag for the title', 'premium-addons-for-elementor' ),
143
  'type' => Controls_Manager::SELECT,
144
  'default' => 'h3',
@@ -221,7 +157,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
221
 
222
  $this->add_control('premium_fancy_text_list_items',
223
  [
224
- 'label' => esc_html__( 'Icon List Items', 'premium-addons-for-elementor' ),
225
  'type' => Controls_Manager::REPEATER,
226
  'default' => [
227
  [
@@ -238,24 +174,24 @@ class Premium_Pricing_Table_Widget extends Widget_Base
238
  ],
239
  ],
240
  'fields' => [
241
- [
242
- 'name' => 'premium_pricing_list_item_icon',
243
- 'label' => esc_html__( 'Item Icon', 'premium-addons-for-elementor' ),
244
- 'type' => Controls_Manager::ICON,
245
- ],
246
- [
247
  'name' => 'premium_pricing_list_item_text',
248
- 'label' => esc_html__( 'Item Text', 'premium-addons-for-elementor' ),
249
  'type' => Controls_Manager::TEXT,
250
  'label_block' => true,
251
  ],
 
 
 
 
 
252
  ],
253
  ]
254
  );
255
 
256
  $this->add_responsive_control('premium_pricing_table_list_align',
257
  [
258
- 'label' => __( 'List Alignment', 'elementor' ),
259
  'type' => Controls_Manager::CHOOSE,
260
  'options' => [
261
  'left' => [
@@ -326,11 +262,11 @@ class Premium_Pricing_Table_Widget extends Widget_Base
326
  /*Button Url Type*/
327
  $this->add_control('premium_pricing_table_button_url_type',
328
  [
329
- 'label' => esc_html__('Link/URL', 'premium-addons-for-elementor'),
330
  'type' => Controls_Manager::SELECT,
331
  'options' => [
332
  'url' => esc_html__('URL', 'premium-addons-for-elementor'),
333
- 'link' => esc_html__('Link to Existing Content', 'premium-addons-for-elementor'),
334
  ],
335
  'default' => 'url',
336
  'label_block' => true,
@@ -341,7 +277,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
341
  /*Button url*/
342
  $this->add_control('premium_pricing_table_button_link',
343
  [
344
- 'label' => esc_html__('URL', 'premium-addons-for-elementor'),
345
  'type' => Controls_Manager::TEXT,
346
  'condition' => [
347
  'premium_pricing_table_button_url_type' => 'url',
@@ -353,7 +289,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
353
  /*Button Link to existing content*/
354
  $this->add_control('premium_pricing_table_button_link_existing_content',
355
  [
356
- 'label' => esc_html__('Link to Existing Content', 'premium-addons-for-elementor'),
357
  'type' => Controls_Manager::SELECT,
358
  'options' => $this->getTemplateInstance()->get_all_post(),
359
  'condition' => [
@@ -394,30 +330,18 @@ class Premium_Pricing_Table_Widget extends Widget_Base
394
  ]
395
  );
396
 
397
- $this->add_control('premium_pricing_table_badge_position',
398
- [
399
- 'label' => esc_html__('Badge Position', 'premium-addons-for-elementor'),
400
- 'type' => Controls_Manager::SELECT,
401
- 'options' => [
402
- 'right' => esc_html__('Right', 'premium-addons-for-elementor'),
403
- 'left' => esc_html__('Left', 'premium-addons-for-elementor'),
404
- ],
405
- 'default' => 'right',
406
- ]
407
- );
408
-
409
  $this->add_control('premium_pricing_table_badge_text',
410
  [
411
- 'label' => esc_html__('Badge Text', 'premium-addons-for-elementor'),
412
  'default' => esc_html__('Popular', 'premium-addons-for-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-addons-for-elementor'),
421
  'type' => Controls_Manager::SLIDER,
422
  'range' => [
423
  'px' => [
@@ -436,7 +360,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
436
 
437
  $this->add_control('premium_pricing_table_badge_right_size',
438
  [
439
- 'label' => esc_html__('Badge Size', 'premium-addons-for-elementor'),
440
  'type' => Controls_Manager::SLIDER,
441
  'range' => [
442
  'px' => [
@@ -453,179 +377,84 @@ class Premium_Pricing_Table_Widget extends Widget_Base
453
  ]
454
  );
455
 
456
- $this->end_controls_section();
457
-
458
- /*Start Styling Section*/
459
- /*Start Box Style Settings*/
460
- $this->start_controls_section('premium_pricing_box_style_settings',
461
  [
462
- 'label' => esc_html__('Box', 'premium-addons-for-elementor'),
463
- 'tab' => Controls_Manager::TAB_STYLE,
 
 
 
 
 
464
  ]
465
  );
466
 
467
- $this->start_controls_tabs('premium_pricing_table_box_style_tabs');
468
-
469
- $this->start_controls_tab('premium_pricing_table_box_style_normal',
470
- [
471
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
472
- ]
473
- );
474
 
475
- /*Box Background*/
476
- $this->add_group_control(
477
- Group_Control_Background::get_type(),
478
  [
479
- 'name' => 'premium_pricing_table_box_background',
480
- 'types' => [ 'classic' , 'gradient' ],
481
- 'selector' => '{{WRAPPER}} .premium-pricing-table-container',
482
  ]
483
  );
484
 
485
- /*Box Border*/
486
- $this->add_group_control(
487
- Group_Control_Border::get_type(),
488
  [
489
- 'name' => 'premium_pricing_table_box_border',
490
- 'selector' => '{{WRAPPER}} .premium-pricing-table-container',
491
  ]
492
  );
493
 
494
- /*Box Border Radius*/
495
- $this->add_control('premium_pricing_table_box_border_radius',
496
  [
497
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
498
- 'type' => Controls_Manager::SLIDER,
499
- 'size_units' => ['px', '%' ,'em'],
500
- 'selectors' => [
501
- '{{WRAPPER}} .premium-pricing-table-container' => 'border-radius: {{SIZE}}{{UNIT}};'
502
- ]
503
  ]
504
  );
505
 
506
- /*Box Shadow*/
507
- $this->add_group_control(
508
- Group_Control_Box_Shadow::get_type(),
509
  [
510
- 'name' => 'premium_pricing_table_box_shadow',
511
- 'selector' => '{{WRAPPER}} .premium-pricing-table-container',
 
512
  ]
513
  );
514
 
515
- /*Box Margin*/
516
- $this->add_responsive_control('premium_pricing_box_margin',
517
- [
518
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
519
- 'type' => Controls_Manager::DIMENSIONS,
520
- 'size_units' => ['px', 'em', '%'],
521
- 'selectors' => [
522
- '{{WRAPPER}} .premium-pricing-table-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
523
- ]
524
- ]);
525
-
526
- /*Box Padding*/
527
- $this->add_responsive_control('premium_pricing_box_padding',
528
- [
529
- 'label' => esc_html__('Padding', 'premium-addons-for-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' => [
540
- '{{WRAPPER}} .premium-pricing-table-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
541
- ]
542
- ]);
543
-
544
- $this->end_controls_tab();
545
-
546
- $this->start_controls_tab('premium_pricing_table_box_style_hover',
547
- [
548
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
549
- ]
550
- );
551
-
552
- $this->add_group_control(
553
- Group_Control_Background::get_type(),
554
  [
555
- 'name' => 'premium_pricing_table_box_background_hover',
556
- 'types' => [ 'classic' , 'gradient' ],
557
- 'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
558
- ]
559
  );
560
 
561
-
562
- /*Box Border*/
563
- $this->add_group_control(
564
- Group_Control_Border::get_type(),
565
  [
566
- 'name' => 'premium_pricing_table_box_border_hover',
567
- 'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
568
  ]
569
  );
570
 
571
- /*Box Border Radius*/
572
- $this->add_control('premium_pricing_table_box_border_radius_hover',
573
  [
574
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
575
- 'type' => Controls_Manager::SLIDER,
576
- 'size_units' => ['px', 'em' , '%' ],
577
- 'selectors' => [
578
- '{{WRAPPER}} .premium-pricing-table-container:hover' => 'border-radius: {{SIZE}}{{UNIT}};'
579
- ]
580
  ]
581
  );
582
 
583
- /*Box Shadow*/
584
- $this->add_group_control(
585
- Group_Control_Box_Shadow::get_type(),
586
  [
587
- 'name' => 'premium_pricing_table_box_shadow_hover',
588
- 'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
 
589
  ]
590
  );
591
 
592
- /*Box Margin*/
593
- $this->add_responsive_control('premium_pricing_box_margin_hover',
594
- [
595
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
596
- 'type' => Controls_Manager::DIMENSIONS,
597
- 'size_units' => ['px', 'em', '%'],
598
- 'selectors' => [
599
- '{{WRAPPER}} .premium-pricing-table-container:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
600
- ]
601
- ]);
602
-
603
- /*Box Padding*/
604
- $this->add_responsive_control('premium_pricing_box_padding_hover',
605
- [
606
- 'label' => esc_html__('Padding', 'premium-addons-for-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' => [
617
- '{{WRAPPER}} .premium-pricing-table-container:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
618
- ]
619
- ]);
620
-
621
-
622
- $this->end_controls_tab();
623
-
624
- $this->end_controls_tabs();
625
-
626
- /*End Box Style Settings*/
627
  $this->end_controls_section();
628
 
 
629
  /*Start Icon Style Settings */
630
  $this->start_controls_section('premium_pricing_icon_style_settings',
631
  [
@@ -640,7 +469,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
640
  /*Icon Color*/
641
  $this->add_control('premium_pricing_icon_color',
642
  [
643
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
644
  'type' => Controls_Manager::COLOR,
645
  'scheme' => [
646
  'type' => Scheme_Color::get_type(),
@@ -652,20 +481,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
652
  ]
653
  );
654
 
655
- $this->add_control('premium_pricing_icon_back_color',
656
- [
657
- 'label' => esc_html__('Icon Background Color', 'premium-addons-for-elementor'),
658
- 'type' => Controls_Manager::COLOR,
659
- 'scheme' => [
660
- 'type' => Scheme_Color::get_type(),
661
- 'value' => Scheme_Color::COLOR_1,
662
- ],
663
- 'selectors' => [
664
- '{{WRAPPER}} .premium-pricing-icon-container i' => 'background-color: {{VALUE}};'
665
- ]
666
- ]
667
- );
668
-
669
  $this->add_control('premium_pricing_icon_size',
670
  [
671
  'label' => esc_html__('Size', 'premium-addons-for-elementor'),
@@ -679,9 +494,23 @@ class Premium_Pricing_Table_Widget extends Widget_Base
679
  ]
680
  );
681
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
682
  $this->add_responsive_control('premium_pricing_icon_inner_padding',
683
  [
684
- 'label' => esc_html__('Icon Padding', 'premium-addons-for-elementor'),
685
  'type' => Controls_Manager::SLIDER,
686
  'size_units' => ['px','em'],
687
  'default' => [
@@ -718,6 +547,13 @@ class Premium_Pricing_Table_Widget extends Widget_Base
718
  ]
719
  );
720
 
 
 
 
 
 
 
 
721
  /*Icon Background*/
722
  $this->add_group_control(
723
  Group_Control_Background::get_type(),
@@ -790,7 +626,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
790
  /*End Icon Style Settings */
791
  $this->end_controls_section();
792
 
793
-
794
  /*Start Title Style Settings */
795
  $this->start_controls_section('premium_pricing_title_style_settings',
796
  [
@@ -805,7 +640,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
805
  /*Title Color*/
806
  $this->add_control('premium_pricing_title_color',
807
  [
808
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
809
  'type' => Controls_Manager::COLOR,
810
  'scheme' => [
811
  'type' => Scheme_Color::get_type(),
@@ -878,7 +713,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
878
  /*End Title Style Settings */
879
  $this->end_controls_section();
880
 
881
-
882
  /*Start Price Style Settings */
883
  $this->start_controls_section('premium_pricing_price_style_settings',
884
  [
@@ -889,11 +723,18 @@ class Premium_Pricing_Table_Widget extends Widget_Base
889
  ]
890
  ]
891
  );
 
 
 
 
 
 
 
892
 
893
  /*Currency Color*/
894
  $this->add_control('premium_pricing_currency_color',
895
  [
896
- 'label' => esc_html__('Currency Color', 'premium-addons-for-elementor'),
897
  'type' => Controls_Manager::COLOR,
898
  'scheme' => [
899
  'type' => Scheme_Color::get_type(),
@@ -909,7 +750,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
909
  $this->add_group_control(
910
  Group_Control_Typography::get_type(),
911
  [
912
- 'label' => esc_html__('Currency Typography', 'premium-addons-for-elementor'),
913
  'name' => 'currency_typo',
914
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
915
  'selector' => '{{WRAPPER}} .premium-pricing-price-currency',
@@ -944,7 +785,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
944
 
945
  $this->add_responsive_control('premium_pricing_currency_margin',
946
  [
947
- 'label' => esc_html__('Currency Margin', 'premium-addons-for-elementor'),
948
  'type' => Controls_Manager::DIMENSIONS,
949
  'size_units' => ['px', 'em', '%'],
950
  'selectors' => [
@@ -954,10 +795,17 @@ class Premium_Pricing_Table_Widget extends Widget_Base
954
  ]
955
  );
956
 
 
 
 
 
 
 
 
957
  /*Price Color*/
958
  $this->add_control('premium_pricing_price_color',
959
  [
960
- 'label' => esc_html__('Price Color', 'premium-addons-for-elementor'),
961
  'type' => Controls_Manager::COLOR,
962
  'scheme' => [
963
  'type' => Scheme_Color::get_type(),
@@ -974,7 +822,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
974
  $this->add_group_control(
975
  Group_Control_Typography::get_type(),
976
  [
977
- 'label' => esc_html__('Price Typography', 'premium-addons-for-elementor'),
978
  'name' => 'price_typo',
979
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
980
  'selector' => '{{WRAPPER}} .premium-pricing-price-value',
@@ -983,7 +831,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
983
 
984
  $this->add_responsive_control('premium_pricing_price_margin',
985
  [
986
- 'label' => esc_html__('Price Margin', 'premium-addons-for-elementor'),
987
  'type' => Controls_Manager::DIMENSIONS,
988
  'size_units' => ['px', 'em', '%'],
989
  'selectors' => [
@@ -992,10 +840,17 @@ class Premium_Pricing_Table_Widget extends Widget_Base
992
  ]
993
  );
994
 
 
 
 
 
 
 
 
995
  /*Separator Color*/
996
  $this->add_control('premium_pricing_sep_color',
997
  [
998
- 'label' => esc_html__('Divider Color', 'premium-addons-for-elementor'),
999
  'type' => Controls_Manager::COLOR,
1000
  'scheme' => [
1001
  'type' => Scheme_Color::get_type(),
@@ -1012,7 +867,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1012
  $this->add_group_control(
1013
  Group_Control_Typography::get_type(),
1014
  [
1015
- 'label' => esc_html__('Divider Typography', 'premium-addons-for-elementor'),
1016
  'name' => 'separator_typo',
1017
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1018
  'selector' => '{{WRAPPER}} .premium-pricing-price-separator',
@@ -1021,7 +876,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1021
 
1022
  $this->add_responsive_control('premium_pricing_sep_margin',
1023
  [
1024
- 'label' => esc_html__('Divider Margin', 'premium-addons-for-elementor'),
1025
  'type' => Controls_Manager::DIMENSIONS,
1026
  'size_units' => ['px', 'em', '%'],
1027
  'default' => [
@@ -1037,10 +892,17 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1037
  ]
1038
  );
1039
 
 
 
 
 
 
 
 
1040
  /*Duration Color*/
1041
  $this->add_control('premium_pricing_dur_color',
1042
  [
1043
- 'label' => esc_html__('Duration Color', 'premium-addons-for-elementor'),
1044
  'type' => Controls_Manager::COLOR,
1045
  'scheme' => [
1046
  'type' => Scheme_Color::get_type(),
@@ -1057,7 +919,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1057
  $this->add_group_control(
1058
  Group_Control_Typography::get_type(),
1059
  [
1060
- 'label' => esc_html__('Duration Typography', 'premium-addons-for-elementor'),
1061
  'name' => 'duration_typo',
1062
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1063
  'selector' => '{{WRAPPER}} .premium-pricing-price-duration',
@@ -1066,7 +928,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1066
 
1067
  $this->add_responsive_control('premium_pricing_dur_margin',
1068
  [
1069
- 'label' => esc_html__('Duration Margin', 'premium-addons-for-elementor'),
1070
  'type' => Controls_Manager::DIMENSIONS,
1071
  'size_units' => ['px', 'em', '%'],
1072
  'selectors' => [
@@ -1076,6 +938,13 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1076
  ]
1077
  );
1078
 
 
 
 
 
 
 
 
1079
  /*Price Background*/
1080
  $this->add_group_control(
1081
  Group_Control_Background::get_type(),
@@ -1083,7 +952,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1083
  'name' => 'premium_pricing_table_price_background',
1084
  'types' => [ 'classic' , 'gradient' ],
1085
  'selector' => '{{WRAPPER}} .premium-pricing-price-container',
1086
- 'separator' => 'before',
1087
  ]
1088
  );
1089
 
@@ -1106,7 +974,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1106
  ]
1107
  );
1108
 
1109
-
1110
  /*Price Padding*/
1111
  $this->add_responsive_control('premium_pricing_price_padding',
1112
  [
@@ -1122,10 +989,10 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1122
  /*End Price Style Settings */
1123
  $this->end_controls_section();
1124
 
1125
- /*Start List Style Settings */
1126
  $this->start_controls_section('premium_pricing_list_style_settings',
1127
  [
1128
- 'label' => esc_html__('List', 'premium-addons-for-elementor'),
1129
  'tab' => Controls_Manager::TAB_STYLE,
1130
  'condition' => [
1131
  'premium_pricing_table_list_switcher' => 'yes',
@@ -1133,24 +1000,16 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1133
  ]
1134
  );
1135
 
1136
- /*Button Color*/
1137
- $this->add_control('premium_pricing_list_icon_color',
1138
  [
1139
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
1140
- 'type' => Controls_Manager::COLOR,
1141
- 'scheme' => [
1142
- 'type' => Scheme_Color::get_type(),
1143
- 'value' => Scheme_Color::COLOR_1,
1144
- ],
1145
- 'selectors' => [
1146
- '{{WRAPPER}} .premium-pricing-list i' => 'color: {{VALUE}};'
1147
- ]
1148
- ]
1149
  );
1150
 
1151
  $this->add_control('premium_pricing_list_text_color',
1152
  [
1153
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
1154
  'type' => Controls_Manager::COLOR,
1155
  'scheme' => [
1156
  'type' => Scheme_Color::get_type(),
@@ -1171,9 +1030,31 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1171
  ]
1172
  );
1173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1174
  $this->add_control('premium_pricing_list_icon_size',
1175
  [
1176
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
1177
  'type' => Controls_Manager::SLIDER,
1178
  'selectors' => [
1179
  '{{WRAPPER}} .premium-pricing-list i' => 'font-size: {{SIZE}}px',
@@ -1183,7 +1064,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1183
 
1184
  $this->add_control('premium_pricing_list_icon_spacing',
1185
  [
1186
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
1187
  'type' => Controls_Manager::SLIDER,
1188
  'default' => [
1189
  'size' => 5
@@ -1196,7 +1077,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1196
 
1197
  $this->add_control('premium_pricing_list_item_margin',
1198
  [
1199
- 'label' => esc_html__('Space Between', 'premium-addons-for-elementor'),
1200
  'type' => Controls_Manager::SLIDER,
1201
  'selectors' => [
1202
  '{{WRAPPER}} .premium-pricing-list li' => 'margin-bottom: {{SIZE}}px;'
@@ -1204,6 +1085,13 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1204
  'separator' => 'after'
1205
  ]);
1206
 
 
 
 
 
 
 
 
1207
  $this->add_group_control(
1208
  Group_Control_Background::get_type(),
1209
  [
@@ -1263,7 +1151,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1263
  ]
1264
  ]);
1265
 
1266
-
1267
  $this->end_controls_section();
1268
 
1269
  /*Start Description Style Settings */
@@ -1277,10 +1164,17 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1277
  ]
1278
  );
1279
 
 
 
 
 
 
 
 
1280
  /*Description Color*/
1281
  $this->add_control('premium_pricing_desc_color',
1282
  [
1283
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
1284
  'type' => Controls_Manager::COLOR,
1285
  'scheme' => [
1286
  'type' => Scheme_Color::get_type(),
@@ -1302,6 +1196,13 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1302
  ]
1303
  );
1304
 
 
 
 
 
 
 
 
1305
  /*Description Background*/
1306
  $this->add_group_control(
1307
  Group_Control_Background::get_type(),
@@ -1331,7 +1232,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1331
  ]
1332
  );
1333
 
1334
-
1335
  /*Description Padding*/
1336
  $this->add_responsive_control('premium_pricing_desc_padding',
1337
  [
@@ -1361,7 +1261,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1361
  /*Button Color*/
1362
  $this->add_control('premium_pricing_button_color',
1363
  [
1364
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
1365
  'type' => Controls_Manager::COLOR,
1366
  'scheme' => [
1367
  'type' => Scheme_Color::get_type(),
@@ -1440,6 +1340,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1440
  $this->add_group_control(
1441
  Group_Control_Box_Shadow::get_type(),
1442
  [
 
1443
  'name' => 'premium_pricing_table_button_box_shadow',
1444
  'selector' => '{{WRAPPER}} .premium-pricing-price-button',
1445
  ]
@@ -1517,6 +1418,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1517
  $this->add_group_control(
1518
  Group_Control_Box_Shadow::get_type(),
1519
  [
 
1520
  'name' => 'premium_pricing_table_button_shadow_hover',
1521
  'selector' => '{{WRAPPER}} .premium-pricing-price-button:hover',
1522
  ]
@@ -1551,7 +1453,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1551
  ]
1552
  ]);
1553
 
1554
-
1555
  $this->end_controls_tab();
1556
 
1557
  $this->end_controls_tabs();
@@ -1569,41 +1471,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1569
  ]
1570
  );
1571
 
1572
- /*Badge Color*/
1573
- $this->add_control('premium_pricing_badge_left_color',
1574
- [
1575
- 'label' => esc_html__('Badge Color', 'premium-addons-for-elementor'),
1576
- 'type' => Controls_Manager::COLOR,
1577
- 'scheme' => [
1578
- 'type' => Scheme_Color::get_type(),
1579
- 'value' => Scheme_Color::COLOR_1,
1580
- ],
1581
- 'selectors' => [
1582
- '{{WRAPPER}} .premium-badge-left .corner' => 'border-top-color: {{VALUE}};'
1583
- ],
1584
- 'condition' => [
1585
- 'premium_pricing_table_badge_position' => 'left'
1586
- ]
1587
- ]
1588
- );
1589
-
1590
- $this->add_control('premium_pricing_badge_right_color',
1591
- [
1592
- 'label' => esc_html__('Badge Color', 'premium-addons-for-elementor'),
1593
- 'type' => Controls_Manager::COLOR,
1594
- 'scheme' => [
1595
- 'type' => Scheme_Color::get_type(),
1596
- 'value' => Scheme_Color::COLOR_1,
1597
- ],
1598
- 'selectors' => [
1599
- '{{WRAPPER}} .premium-badge-right .corner' => 'border-right-color: {{VALUE}};'
1600
- ],
1601
- 'condition' => [
1602
- 'premium_pricing_table_badge_position' => 'right'
1603
- ]
1604
- ]
1605
- );
1606
-
1607
  $this->add_control('premium_pricing_badge_text_color',
1608
  [
1609
  'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
@@ -1630,7 +1497,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1630
 
1631
  $this->add_responsive_control('premium_pricing_table_badge_right_top',
1632
  [
1633
- 'label' => esc_html__('Vertical Position', 'premium-addons-for-elementor'),
1634
  'type' => Controls_Manager::SLIDER,
1635
  'range' => [
1636
  'px'=> [
@@ -1646,7 +1513,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1646
 
1647
  $this->add_responsive_control('premium_pricing_table_badge_right_right',
1648
  [
1649
- 'label' => esc_html__('Horizontal Position', 'premium-addons-for-elementor'),
1650
  'type' => Controls_Manager::SLIDER,
1651
  'range' => [
1652
  'px'=> [
@@ -1665,7 +1532,7 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1665
 
1666
  $this->add_responsive_control('premium_pricing_table_badge_right_left',
1667
  [
1668
- 'label' => esc_html__('Horizontal Position', 'premium-addons-for-elementor'),
1669
  'type' => Controls_Manager::SLIDER,
1670
  'selectors' => [
1671
  '{{WRAPPER}} .premium-badge-left .corner span' => 'left: {{SIZE}}px;'
@@ -1676,6 +1543,212 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1676
  ]
1677
  );
1678
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1679
  $this->end_controls_section();
1680
 
1681
 
@@ -1752,4 +1825,4 @@ class Premium_Pricing_Table_Widget extends Widget_Base
1752
  <?php
1753
  }
1754
  }
1755
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Pricing_Table_Widget);
31
  // Adding the controls fields for the premium pricing table
32
  // This will controls the animation, colors and background, dimensions etc
33
  protected function _register_controls() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  /*Title Content Section*/
35
  $this->start_controls_section('premium_pricing_table_icon_section',
36
  [
64
  /*Header Text*/
65
  $this->add_control('premium_pricing_table_title_text',
66
  [
67
+ 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
68
  'default' => 'Pricing Table',
69
  'type' => Controls_Manager::TEXT,
70
  'label_block' => true,
74
  /*Header Tag*/
75
  $this->add_control('premium_pricing_table_title_size',
76
  [
77
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
78
  'description' => esc_html__( 'Select HTML tag for the title', 'premium-addons-for-elementor' ),
79
  'type' => Controls_Manager::SELECT,
80
  'default' => 'h3',
157
 
158
  $this->add_control('premium_fancy_text_list_items',
159
  [
160
+ 'label' => esc_html__( 'Features', 'premium-addons-for-elementor' ),
161
  'type' => Controls_Manager::REPEATER,
162
  'default' => [
163
  [
174
  ],
175
  ],
176
  'fields' => [
177
+ [
 
 
 
 
 
178
  'name' => 'premium_pricing_list_item_text',
179
+ 'label' => esc_html__( 'Text', 'premium-addons-for-elementor' ),
180
  'type' => Controls_Manager::TEXT,
181
  'label_block' => true,
182
  ],
183
+ [
184
+ 'name' => 'premium_pricing_list_item_icon',
185
+ 'label' => esc_html__( 'Icon', 'premium-addons-for-elementor' ),
186
+ 'type' => Controls_Manager::ICON,
187
+ ],
188
  ],
189
  ]
190
  );
191
 
192
  $this->add_responsive_control('premium_pricing_table_list_align',
193
  [
194
+ 'label' => __( 'Alignment', 'elementor' ),
195
  'type' => Controls_Manager::CHOOSE,
196
  'options' => [
197
  'left' => [
262
  /*Button Url Type*/
263
  $this->add_control('premium_pricing_table_button_url_type',
264
  [
265
+ 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
266
  'type' => Controls_Manager::SELECT,
267
  'options' => [
268
  'url' => esc_html__('URL', 'premium-addons-for-elementor'),
269
+ 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
270
  ],
271
  'default' => 'url',
272
  'label_block' => true,
277
  /*Button url*/
278
  $this->add_control('premium_pricing_table_button_link',
279
  [
280
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
281
  'type' => Controls_Manager::TEXT,
282
  'condition' => [
283
  'premium_pricing_table_button_url_type' => 'url',
289
  /*Button Link to existing content*/
290
  $this->add_control('premium_pricing_table_button_link_existing_content',
291
  [
292
+ 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
293
  'type' => Controls_Manager::SELECT,
294
  'options' => $this->getTemplateInstance()->get_all_post(),
295
  'condition' => [
330
  ]
331
  );
332
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  $this->add_control('premium_pricing_table_badge_text',
334
  [
335
+ 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
336
  'default' => esc_html__('Popular', 'premium-addons-for-elementor'),
337
  'type' => Controls_Manager::TEXT,
338
  'label_block' => true,
339
  ]
340
  );
341
 
342
+ $this->add_responsive_control('premium_pricing_table_badge_left_size',
343
  [
344
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
345
  'type' => Controls_Manager::SLIDER,
346
  'range' => [
347
  'px' => [
360
 
361
  $this->add_control('premium_pricing_table_badge_right_size',
362
  [
363
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
364
  'type' => Controls_Manager::SLIDER,
365
  'range' => [
366
  'px' => [
377
  ]
378
  );
379
 
380
+ $this->add_control('premium_pricing_table_badge_position',
 
 
 
 
381
  [
382
+ 'label' => esc_html__('Position', 'premium-addons-for-elementor'),
383
+ 'type' => Controls_Manager::SELECT,
384
+ 'options' => [
385
+ 'right' => esc_html__('Right', 'premium-addons-for-elementor'),
386
+ 'left' => esc_html__('Left', 'premium-addons-for-elementor'),
387
+ ],
388
+ 'default' => 'right',
389
  ]
390
  );
391
 
392
+ $this->end_controls_section();
 
 
 
 
 
 
393
 
394
+ /* Start Title Settings Section */
395
+ $this->start_controls_section('premium_pricing_table_title',
 
396
  [
397
+ 'label' => esc_html__('Display Options', 'premium-addons-for-elementor'),
 
 
398
  ]
399
  );
400
 
401
+ $this->add_control('premium_pricing_table_icon_switcher',
 
 
402
  [
403
+ 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
404
+ 'type' => Controls_Manager::SWITCHER,
405
  ]
406
  );
407
 
408
+ $this->add_control('premium_pricing_table_title_switcher',
 
409
  [
410
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
411
+ 'type' => Controls_Manager::SWITCHER,
412
+ 'default' => 'yes',
 
 
 
413
  ]
414
  );
415
 
416
+ $this->add_control('premium_pricing_table_price_switcher',
 
 
417
  [
418
+ 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
419
+ 'type' => Controls_Manager::SWITCHER,
420
+ 'default' => 'yes',
421
  ]
422
  );
423
 
424
+ $this->add_control('premium_pricing_table_list_switcher',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  [
426
+ 'label' => esc_html__('Features', 'premium-addons-for-elementor'),
427
+ 'type' => Controls_Manager::SWITCHER,
428
+ 'default' => 'yes',
429
+ ]
430
  );
431
 
432
+ $this->add_control('premium_pricing_table_description_switcher',
 
 
 
433
  [
434
+ 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
435
+ 'type' => Controls_Manager::SWITCHER,
436
  ]
437
  );
438
 
439
+ $this->add_control('premium_pricing_table_button_switcher',
 
440
  [
441
+ 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
442
+ 'type' => Controls_Manager::SWITCHER,
443
+ 'default' => 'yes',
 
 
 
444
  ]
445
  );
446
 
447
+ $this->add_control('premium_pricing_table_badge_switcher',
 
 
448
  [
449
+ 'label' => esc_html__('Badge', 'premium-addons-for-elementor'),
450
+ 'type' => Controls_Manager::SWITCHER,
451
+ 'default' => 'yes',
452
  ]
453
  );
454
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  $this->end_controls_section();
456
 
457
+ /*Start Styling Section*/
458
  /*Start Icon Style Settings */
459
  $this->start_controls_section('premium_pricing_icon_style_settings',
460
  [
469
  /*Icon Color*/
470
  $this->add_control('premium_pricing_icon_color',
471
  [
472
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
473
  'type' => Controls_Manager::COLOR,
474
  'scheme' => [
475
  'type' => Scheme_Color::get_type(),
481
  ]
482
  );
483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
  $this->add_control('premium_pricing_icon_size',
485
  [
486
  'label' => esc_html__('Size', 'premium-addons-for-elementor'),
494
  ]
495
  );
496
 
497
+ $this->add_control('premium_pricing_icon_back_color',
498
+ [
499
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
500
+ 'type' => Controls_Manager::COLOR,
501
+ 'scheme' => [
502
+ 'type' => Scheme_Color::get_type(),
503
+ 'value' => Scheme_Color::COLOR_1,
504
+ ],
505
+ 'selectors' => [
506
+ '{{WRAPPER}} .premium-pricing-icon-container i' => 'background-color: {{VALUE}};'
507
+ ]
508
+ ]
509
+ );
510
+
511
  $this->add_responsive_control('premium_pricing_icon_inner_padding',
512
  [
513
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
514
  'type' => Controls_Manager::SLIDER,
515
  'size_units' => ['px','em'],
516
  'default' => [
547
  ]
548
  );
549
 
550
+ $this->add_control('premium_pricing_icon_container_heading',
551
+ [
552
+ 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
553
+ 'type' => Controls_Manager::HEADING,
554
+ ]
555
+ );
556
+
557
  /*Icon Background*/
558
  $this->add_group_control(
559
  Group_Control_Background::get_type(),
626
  /*End Icon Style Settings */
627
  $this->end_controls_section();
628
 
 
629
  /*Start Title Style Settings */
630
  $this->start_controls_section('premium_pricing_title_style_settings',
631
  [
640
  /*Title Color*/
641
  $this->add_control('premium_pricing_title_color',
642
  [
643
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
644
  'type' => Controls_Manager::COLOR,
645
  'scheme' => [
646
  'type' => Scheme_Color::get_type(),
713
  /*End Title Style Settings */
714
  $this->end_controls_section();
715
 
 
716
  /*Start Price Style Settings */
717
  $this->start_controls_section('premium_pricing_price_style_settings',
718
  [
723
  ]
724
  ]
725
  );
726
+
727
+ $this->add_control('premium_pricing_currency_heading',
728
+ [
729
+ 'label' => esc_html__('Currency', 'premium-addons-for-elementor'),
730
+ 'type' => Controls_Manager::HEADING,
731
+ ]
732
+ );
733
 
734
  /*Currency Color*/
735
  $this->add_control('premium_pricing_currency_color',
736
  [
737
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
738
  'type' => Controls_Manager::COLOR,
739
  'scheme' => [
740
  'type' => Scheme_Color::get_type(),
750
  $this->add_group_control(
751
  Group_Control_Typography::get_type(),
752
  [
753
+ 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
754
  'name' => 'currency_typo',
755
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
756
  'selector' => '{{WRAPPER}} .premium-pricing-price-currency',
785
 
786
  $this->add_responsive_control('premium_pricing_currency_margin',
787
  [
788
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
789
  'type' => Controls_Manager::DIMENSIONS,
790
  'size_units' => ['px', 'em', '%'],
791
  'selectors' => [
795
  ]
796
  );
797
 
798
+ $this->add_control('premium_pricing_price_heading',
799
+ [
800
+ 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
801
+ 'type' => Controls_Manager::HEADING,
802
+ ]
803
+ );
804
+
805
  /*Price Color*/
806
  $this->add_control('premium_pricing_price_color',
807
  [
808
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
809
  'type' => Controls_Manager::COLOR,
810
  'scheme' => [
811
  'type' => Scheme_Color::get_type(),
822
  $this->add_group_control(
823
  Group_Control_Typography::get_type(),
824
  [
825
+ 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
826
  'name' => 'price_typo',
827
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
828
  'selector' => '{{WRAPPER}} .premium-pricing-price-value',
831
 
832
  $this->add_responsive_control('premium_pricing_price_margin',
833
  [
834
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
835
  'type' => Controls_Manager::DIMENSIONS,
836
  'size_units' => ['px', 'em', '%'],
837
  'selectors' => [
840
  ]
841
  );
842
 
843
+ $this->add_control('premium_pricing_sep_heading',
844
+ [
845
+ 'label' => esc_html__('Divider', 'premium-addons-for-elementor'),
846
+ 'type' => Controls_Manager::HEADING,
847
+ ]
848
+ );
849
+
850
  /*Separator Color*/
851
  $this->add_control('premium_pricing_sep_color',
852
  [
853
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
854
  'type' => Controls_Manager::COLOR,
855
  'scheme' => [
856
  'type' => Scheme_Color::get_type(),
867
  $this->add_group_control(
868
  Group_Control_Typography::get_type(),
869
  [
870
+ 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
871
  'name' => 'separator_typo',
872
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
873
  'selector' => '{{WRAPPER}} .premium-pricing-price-separator',
876
 
877
  $this->add_responsive_control('premium_pricing_sep_margin',
878
  [
879
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
880
  'type' => Controls_Manager::DIMENSIONS,
881
  'size_units' => ['px', 'em', '%'],
882
  'default' => [
892
  ]
893
  );
894
 
895
+ $this->add_control('premium_pricing_dur_heading',
896
+ [
897
+ 'label' => esc_html__('Duration', 'premium-addons-for-elementor'),
898
+ 'type' => Controls_Manager::HEADING,
899
+ ]
900
+ );
901
+
902
  /*Duration Color*/
903
  $this->add_control('premium_pricing_dur_color',
904
  [
905
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
906
  'type' => Controls_Manager::COLOR,
907
  'scheme' => [
908
  'type' => Scheme_Color::get_type(),
919
  $this->add_group_control(
920
  Group_Control_Typography::get_type(),
921
  [
922
+ 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
923
  'name' => 'duration_typo',
924
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
925
  'selector' => '{{WRAPPER}} .premium-pricing-price-duration',
928
 
929
  $this->add_responsive_control('premium_pricing_dur_margin',
930
  [
931
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
932
  'type' => Controls_Manager::DIMENSIONS,
933
  'size_units' => ['px', 'em', '%'],
934
  'selectors' => [
938
  ]
939
  );
940
 
941
+ $this->add_control('premium_pricing_price_container_heading',
942
+ [
943
+ 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
944
+ 'type' => Controls_Manager::HEADING,
945
+ ]
946
+ );
947
+
948
  /*Price Background*/
949
  $this->add_group_control(
950
  Group_Control_Background::get_type(),
952
  'name' => 'premium_pricing_table_price_background',
953
  'types' => [ 'classic' , 'gradient' ],
954
  'selector' => '{{WRAPPER}} .premium-pricing-price-container',
 
955
  ]
956
  );
957
 
974
  ]
975
  );
976
 
 
977
  /*Price Padding*/
978
  $this->add_responsive_control('premium_pricing_price_padding',
979
  [
989
  /*End Price Style Settings */
990
  $this->end_controls_section();
991
 
992
+ /*Start List Style Settings*/
993
  $this->start_controls_section('premium_pricing_list_style_settings',
994
  [
995
+ 'label' => esc_html__('Features', 'premium-addons-for-elementor'),
996
  'tab' => Controls_Manager::TAB_STYLE,
997
  'condition' => [
998
  'premium_pricing_table_list_switcher' => 'yes',
1000
  ]
1001
  );
1002
 
1003
+ $this->add_control('premium_pricing_features_text_heading',
 
1004
  [
1005
+ 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
1006
+ 'type' => Controls_Manager::HEADING,
1007
+ ]
 
 
 
 
 
 
 
1008
  );
1009
 
1010
  $this->add_control('premium_pricing_list_text_color',
1011
  [
1012
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1013
  'type' => Controls_Manager::COLOR,
1014
  'scheme' => [
1015
  'type' => Scheme_Color::get_type(),
1030
  ]
1031
  );
1032
 
1033
+ $this->add_control('premium_pricing_features_icon_heading',
1034
+ [
1035
+ 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
1036
+ 'type' => Controls_Manager::HEADING,
1037
+ ]
1038
+ );
1039
+
1040
+ /*Button Color*/
1041
+ $this->add_control('premium_pricing_list_icon_color',
1042
+ [
1043
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1044
+ 'type' => Controls_Manager::COLOR,
1045
+ 'scheme' => [
1046
+ 'type' => Scheme_Color::get_type(),
1047
+ 'value' => Scheme_Color::COLOR_1,
1048
+ ],
1049
+ 'selectors' => [
1050
+ '{{WRAPPER}} .premium-pricing-list i' => 'color: {{VALUE}};'
1051
+ ]
1052
+ ]
1053
+ );
1054
+
1055
  $this->add_control('premium_pricing_list_icon_size',
1056
  [
1057
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
1058
  'type' => Controls_Manager::SLIDER,
1059
  'selectors' => [
1060
  '{{WRAPPER}} .premium-pricing-list i' => 'font-size: {{SIZE}}px',
1064
 
1065
  $this->add_control('premium_pricing_list_icon_spacing',
1066
  [
1067
+ 'label' => esc_html__('Spacing', 'premium-addons-for-elementor'),
1068
  'type' => Controls_Manager::SLIDER,
1069
  'default' => [
1070
  'size' => 5
1077
 
1078
  $this->add_control('premium_pricing_list_item_margin',
1079
  [
1080
+ 'label' => esc_html__('Vertical Spacing', 'premium-addons-for-elementor'),
1081
  'type' => Controls_Manager::SLIDER,
1082
  'selectors' => [
1083
  '{{WRAPPER}} .premium-pricing-list li' => 'margin-bottom: {{SIZE}}px;'
1085
  'separator' => 'after'
1086
  ]);
1087
 
1088
+ $this->add_control('premium_pricing_features_container_heading',
1089
+ [
1090
+ 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
1091
+ 'type' => Controls_Manager::HEADING,
1092
+ ]
1093
+ );
1094
+
1095
  $this->add_group_control(
1096
  Group_Control_Background::get_type(),
1097
  [
1151
  ]
1152
  ]);
1153
 
 
1154
  $this->end_controls_section();
1155
 
1156
  /*Start Description Style Settings */
1164
  ]
1165
  );
1166
 
1167
+ $this->add_control('premium_pricing_desc_text_heading',
1168
+ [
1169
+ 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
1170
+ 'type' => Controls_Manager::HEADING,
1171
+ ]
1172
+ );
1173
+
1174
  /*Description Color*/
1175
  $this->add_control('premium_pricing_desc_color',
1176
  [
1177
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1178
  'type' => Controls_Manager::COLOR,
1179
  'scheme' => [
1180
  'type' => Scheme_Color::get_type(),
1196
  ]
1197
  );
1198
 
1199
+ $this->add_control('premium_pricing_desc_container_heading',
1200
+ [
1201
+ 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
1202
+ 'type' => Controls_Manager::HEADING,
1203
+ ]
1204
+ );
1205
+
1206
  /*Description Background*/
1207
  $this->add_group_control(
1208
  Group_Control_Background::get_type(),
1232
  ]
1233
  );
1234
 
 
1235
  /*Description Padding*/
1236
  $this->add_responsive_control('premium_pricing_desc_padding',
1237
  [
1261
  /*Button Color*/
1262
  $this->add_control('premium_pricing_button_color',
1263
  [
1264
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1265
  'type' => Controls_Manager::COLOR,
1266
  'scheme' => [
1267
  'type' => Scheme_Color::get_type(),
1340
  $this->add_group_control(
1341
  Group_Control_Box_Shadow::get_type(),
1342
  [
1343
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1344
  'name' => 'premium_pricing_table_button_box_shadow',
1345
  'selector' => '{{WRAPPER}} .premium-pricing-price-button',
1346
  ]
1418
  $this->add_group_control(
1419
  Group_Control_Box_Shadow::get_type(),
1420
  [
1421
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1422
  'name' => 'premium_pricing_table_button_shadow_hover',
1423
  'selector' => '{{WRAPPER}} .premium-pricing-price-button:hover',
1424
  ]
1453
  ]
1454
  ]);
1455
 
1456
+
1457
  $this->end_controls_tab();
1458
 
1459
  $this->end_controls_tabs();
1471
  ]
1472
  );
1473
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1474
  $this->add_control('premium_pricing_badge_text_color',
1475
  [
1476
  'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
1497
 
1498
  $this->add_responsive_control('premium_pricing_table_badge_right_top',
1499
  [
1500
+ 'label' => esc_html__('Vertical Distance', 'premium-addons-for-elementor'),
1501
  'type' => Controls_Manager::SLIDER,
1502
  'range' => [
1503
  'px'=> [
1513
 
1514
  $this->add_responsive_control('premium_pricing_table_badge_right_right',
1515
  [
1516
+ 'label' => esc_html__('Horizontal Distance', 'premium-addons-for-elementor'),
1517
  'type' => Controls_Manager::SLIDER,
1518
  'range' => [
1519
  'px'=> [
1532
 
1533
  $this->add_responsive_control('premium_pricing_table_badge_right_left',
1534
  [
1535
+ 'label' => esc_html__('Horizontal Distance', 'premium-addons-for-elementor'),
1536
  'type' => Controls_Manager::SLIDER,
1537
  'selectors' => [
1538
  '{{WRAPPER}} .premium-badge-left .corner span' => 'left: {{SIZE}}px;'
1543
  ]
1544
  );
1545
 
1546
+ /*Badge Color*/
1547
+ $this->add_control('premium_pricing_badge_left_color',
1548
+ [
1549
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
1550
+ 'type' => Controls_Manager::COLOR,
1551
+ 'scheme' => [
1552
+ 'type' => Scheme_Color::get_type(),
1553
+ 'value' => Scheme_Color::COLOR_1,
1554
+ ],
1555
+ 'selectors' => [
1556
+ '{{WRAPPER}} .premium-badge-left .corner' => 'border-top-color: {{VALUE}};'
1557
+ ],
1558
+ 'condition' => [
1559
+ 'premium_pricing_table_badge_position' => 'left'
1560
+ ]
1561
+ ]
1562
+ );
1563
+
1564
+ $this->add_control('premium_pricing_badge_right_color',
1565
+ [
1566
+ 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
1567
+ 'type' => Controls_Manager::COLOR,
1568
+ 'scheme' => [
1569
+ 'type' => Scheme_Color::get_type(),
1570
+ 'value' => Scheme_Color::COLOR_1,
1571
+ ],
1572
+ 'selectors' => [
1573
+ '{{WRAPPER}} .premium-badge-right .corner' => 'border-right-color: {{VALUE}};'
1574
+ ],
1575
+ 'condition' => [
1576
+ 'premium_pricing_table_badge_position' => 'right'
1577
+ ]
1578
+ ]
1579
+ );
1580
+
1581
+ $this->end_controls_section();
1582
+
1583
+ /*Start Box Style Settings*/
1584
+ $this->start_controls_section('premium_pricing_box_style_settings',
1585
+ [
1586
+ 'label' => esc_html__('Box Settings', 'premium-addons-for-elementor'),
1587
+ 'tab' => Controls_Manager::TAB_STYLE,
1588
+ ]
1589
+ );
1590
+
1591
+ $this->start_controls_tabs('premium_pricing_table_box_style_tabs');
1592
+
1593
+ $this->start_controls_tab('premium_pricing_table_box_style_normal',
1594
+ [
1595
+ 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
1596
+ ]
1597
+ );
1598
+
1599
+ /*Box Background*/
1600
+ $this->add_group_control(
1601
+ Group_Control_Background::get_type(),
1602
+ [
1603
+ 'name' => 'premium_pricing_table_box_background',
1604
+ 'types' => [ 'classic' , 'gradient' ],
1605
+ 'selector' => '{{WRAPPER}} .premium-pricing-table-container',
1606
+ ]
1607
+ );
1608
+
1609
+ /*Box Border*/
1610
+ $this->add_group_control(
1611
+ Group_Control_Border::get_type(),
1612
+ [
1613
+ 'name' => 'premium_pricing_table_box_border',
1614
+ 'selector' => '{{WRAPPER}} .premium-pricing-table-container',
1615
+ ]
1616
+ );
1617
+
1618
+ /*Box Border Radius*/
1619
+ $this->add_control('premium_pricing_table_box_border_radius',
1620
+ [
1621
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1622
+ 'type' => Controls_Manager::SLIDER,
1623
+ 'size_units' => ['px', '%' ,'em'],
1624
+ 'selectors' => [
1625
+ '{{WRAPPER}} .premium-pricing-table-container' => 'border-radius: {{SIZE}}{{UNIT}};'
1626
+ ]
1627
+ ]
1628
+ );
1629
+
1630
+ /*Box Shadow*/
1631
+ $this->add_group_control(
1632
+ Group_Control_Box_Shadow::get_type(),
1633
+ [
1634
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1635
+ 'name' => 'premium_pricing_table_box_shadow',
1636
+ 'selector' => '{{WRAPPER}} .premium-pricing-table-container',
1637
+ ]
1638
+ );
1639
+
1640
+ /*Box Margin*/
1641
+ $this->add_responsive_control('premium_pricing_box_margin',
1642
+ [
1643
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1644
+ 'type' => Controls_Manager::DIMENSIONS,
1645
+ 'size_units' => ['px', 'em', '%'],
1646
+ 'selectors' => [
1647
+ '{{WRAPPER}} .premium-pricing-table-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1648
+ ]
1649
+ ]);
1650
+
1651
+ /*Box Padding*/
1652
+ $this->add_responsive_control('premium_pricing_box_padding',
1653
+ [
1654
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1655
+ 'type' => Controls_Manager::DIMENSIONS,
1656
+ 'size_units' => ['px', 'em', '%'],
1657
+ 'default' => [
1658
+ 'top' => 40,
1659
+ 'right' => 0,
1660
+ 'bottom'=> 0,
1661
+ 'left' => 0,
1662
+ 'unit' => 'px',
1663
+ ],
1664
+ 'selectors' => [
1665
+ '{{WRAPPER}} .premium-pricing-table-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1666
+ ]
1667
+ ]);
1668
+
1669
+ $this->end_controls_tab();
1670
+
1671
+ $this->start_controls_tab('premium_pricing_table_box_style_hover',
1672
+ [
1673
+ 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
1674
+ ]
1675
+ );
1676
+
1677
+ $this->add_group_control(
1678
+ Group_Control_Background::get_type(),
1679
+ [
1680
+ 'name' => 'premium_pricing_table_box_background_hover',
1681
+ 'types' => [ 'classic' , 'gradient' ],
1682
+ 'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
1683
+ ]
1684
+ );
1685
+
1686
+
1687
+ /*Box Border*/
1688
+ $this->add_group_control(
1689
+ Group_Control_Border::get_type(),
1690
+ [
1691
+ 'name' => 'premium_pricing_table_box_border_hover',
1692
+ 'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
1693
+ ]
1694
+ );
1695
+
1696
+ /*Box Border Radius*/
1697
+ $this->add_control('premium_pricing_table_box_border_radius_hover',
1698
+ [
1699
+ 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1700
+ 'type' => Controls_Manager::SLIDER,
1701
+ 'size_units' => ['px', 'em' , '%' ],
1702
+ 'selectors' => [
1703
+ '{{WRAPPER}} .premium-pricing-table-container:hover' => 'border-radius: {{SIZE}}{{UNIT}};'
1704
+ ]
1705
+ ]
1706
+ );
1707
+
1708
+ /*Box Shadow*/
1709
+ $this->add_group_control(
1710
+ Group_Control_Box_Shadow::get_type(),
1711
+ [
1712
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1713
+ 'name' => 'premium_pricing_table_box_shadow_hover',
1714
+ 'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
1715
+ ]
1716
+ );
1717
+
1718
+ /*Box Margin*/
1719
+ $this->add_responsive_control('premium_pricing_box_margin_hover',
1720
+ [
1721
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1722
+ 'type' => Controls_Manager::DIMENSIONS,
1723
+ 'size_units' => ['px', 'em', '%'],
1724
+ 'selectors' => [
1725
+ '{{WRAPPER}} .premium-pricing-table-container:hover' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1726
+ ]
1727
+ ]);
1728
+
1729
+ /*Box Padding*/
1730
+ $this->add_responsive_control('premium_pricing_box_padding_hover',
1731
+ [
1732
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1733
+ 'type' => Controls_Manager::DIMENSIONS,
1734
+ 'size_units' => ['px', 'em', '%'],
1735
+ 'default' => [
1736
+ 'top' => 40,
1737
+ 'right' => 0,
1738
+ 'bottom'=> 0,
1739
+ 'left' => 0,
1740
+ 'unit' => 'px',
1741
+ ],
1742
+ 'selectors' => [
1743
+ '{{WRAPPER}} .premium-pricing-table-container:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1744
+ ]
1745
+ ]);
1746
+
1747
+ $this->end_controls_tab();
1748
+
1749
+ $this->end_controls_tabs();
1750
+
1751
+ /*End Box Style Settings*/
1752
  $this->end_controls_section();
1753
 
1754
 
1825
  <?php
1826
  }
1827
  }
1828
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Pricing_Table_Widget);
widgets/premium-progressbar.php CHANGED
@@ -46,7 +46,7 @@ class Premium_Progressbar_Widget extends Widget_Base
46
  /*Left Label*/
47
  $this->add_control('premium_progressbar_left_label',
48
  [
49
- 'label' => esc_html__('Left Label', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::TEXT,
51
  'default' => esc_html__('My Skill','premium-addons-for-elementor'),
52
  'label_block' => true,
@@ -59,7 +59,7 @@ class Premium_Progressbar_Widget extends Widget_Base
59
  /*Right Label*/
60
  $this->add_control('premium_progressbar_right_label',
61
  [
62
- 'label' => esc_html__('Right Label', 'premium-addons-for-elementor'),
63
  'type' => Controls_Manager::TEXT,
64
  'default' => esc_html__('50%','premium-addons-for-elementor'),
65
  'label_block' => true,
@@ -156,7 +156,7 @@ class Premium_Progressbar_Widget extends Widget_Base
156
  /*Progressbar Width*/
157
  $this->add_control('premium_progressbar_progress_percentage',
158
  [
159
- 'label' => esc_html__('Progress Bar Percentage (%)', 'premium-addons-for-elementor'),
160
  'type' => Controls_Manager::SLIDER,
161
  'default' => [
162
  'size' => 50,
@@ -171,7 +171,7 @@ class Premium_Progressbar_Widget extends Widget_Base
171
  /*Progress Bar Style*/
172
  $this->add_control('premium_progressbar_progress_style',
173
  [
174
- 'label' => esc_html__('Progress Bar Style', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::SELECT,
176
  'default' => 'solid',
177
  'options' => [
@@ -184,7 +184,7 @@ class Premium_Progressbar_Widget extends Widget_Base
184
  /*Progress Bar Animated*/
185
  $this->add_control('premium_progressbar_progress_animation',
186
  [
187
- 'label' => esc_html__('Progress Bar Animation', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::SWITCHER,
189
  'condition' => [
190
  'premium_progressbar_progress_style' => 'stripped'
@@ -207,7 +207,7 @@ class Premium_Progressbar_Widget extends Widget_Base
207
  /*Progressbar Height*/
208
  $this->add_control('premium_progressbar_progress_bar_height',
209
  [
210
- 'label' => esc_html__('Height (Pixels)', 'premium-addons-for-elementor'),
211
  'type' => Controls_Manager::SLIDER,
212
  'default' => [
213
  'size' => 25,
@@ -303,7 +303,7 @@ class Premium_Progressbar_Widget extends Widget_Base
303
 
304
  $this->add_control('premium_progressbar_left_label_hint',
305
  [
306
- 'label' => esc_html__('Left Label', 'premium-addons-for-elementor'),
307
  'type' => Controls_Manager::HEADING,
308
  ]
309
  );
@@ -348,7 +348,7 @@ class Premium_Progressbar_Widget extends Widget_Base
348
 
349
  $this->add_control('premium_progressbar_right_label_hint',
350
  [
351
- 'label' => esc_html__('Right Label', 'premium-addons-for-elementor'),
352
  'type' => Controls_Manager::HEADING,
353
  'separator' => 'before'
354
  ]
46
  /*Left Label*/
47
  $this->add_control('premium_progressbar_left_label',
48
  [
49
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::TEXT,
51
  'default' => esc_html__('My Skill','premium-addons-for-elementor'),
52
  'label_block' => true,
59
  /*Right Label*/
60
  $this->add_control('premium_progressbar_right_label',
61
  [
62
+ 'label' => esc_html__('Percentage', 'premium-addons-for-elementor'),
63
  'type' => Controls_Manager::TEXT,
64
  'default' => esc_html__('50%','premium-addons-for-elementor'),
65
  'label_block' => true,
156
  /*Progressbar Width*/
157
  $this->add_control('premium_progressbar_progress_percentage',
158
  [
159
+ 'label' => esc_html__('Value', 'premium-addons-for-elementor'),
160
  'type' => Controls_Manager::SLIDER,
161
  'default' => [
162
  'size' => 50,
171
  /*Progress Bar Style*/
172
  $this->add_control('premium_progressbar_progress_style',
173
  [
174
+ 'label' => esc_html__('Type', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::SELECT,
176
  'default' => 'solid',
177
  'options' => [
184
  /*Progress Bar Animated*/
185
  $this->add_control('premium_progressbar_progress_animation',
186
  [
187
+ 'label' => esc_html__('Animated', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::SWITCHER,
189
  'condition' => [
190
  'premium_progressbar_progress_style' => 'stripped'
207
  /*Progressbar Height*/
208
  $this->add_control('premium_progressbar_progress_bar_height',
209
  [
210
+ 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
211
  'type' => Controls_Manager::SLIDER,
212
  'default' => [
213
  'size' => 25,
303
 
304
  $this->add_control('premium_progressbar_left_label_hint',
305
  [
306
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
307
  'type' => Controls_Manager::HEADING,
308
  ]
309
  );
348
 
349
  $this->add_control('premium_progressbar_right_label_hint',
350
  [
351
+ 'label' => esc_html__('Percentage', 'premium-addons-for-elementor'),
352
  'type' => Controls_Manager::HEADING,
353
  'separator' => 'before'
354
  ]
widgets/premium-testimonials.php CHANGED
@@ -27,14 +27,14 @@ class Premium_Testimonials_Widget extends Widget_Base
27
  /*Testimonials Content Section */
28
  $this->start_controls_section('premium_testimonial_person_settings',
29
  [
30
- 'label' => esc_html__('Person Details', 'premium-addons-for-elementor'),
31
  ]
32
  );
33
 
34
  /*Person Image*/
35
  $this->add_control('premium_testimonial_person_image',
36
  [
37
- 'label' => esc_html__('Person Image','premium-addons-for-elementor'),
38
  'type' => Controls_Manager::MEDIA,
39
  'default' => [
40
  'url' => PREMIUM_ADDONS_URL. 'assets/images/person-image.jpg',
@@ -62,7 +62,7 @@ class Premium_Testimonials_Widget extends Widget_Base
62
  /*Person Name*/
63
  $this->add_control('premium_testimonial_person_name',
64
  [
65
- 'label' => esc_html__('Person Name', 'premium-addons-for-elementor'),
66
  'type' => Controls_Manager::TEXT,
67
  'default' => esc_html__('Person Name', 'premium-addons-for-elementor'),
68
  'description' => esc_html__( 'Enter author name', 'premium-addons-for-elementor' ),
@@ -73,7 +73,7 @@ class Premium_Testimonials_Widget extends Widget_Base
73
  /*Name Title Tag*/
74
  $this->add_control('premium_testimonial_person_name_size',
75
  [
76
- 'label' => esc_html__('Name Tag', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::SELECT,
78
  'description' => esc_html__( 'Select a heading tag for author name', 'premium-addons-for-elementor' ),
79
  'options' => [
@@ -95,14 +95,14 @@ class Premium_Testimonials_Widget extends Widget_Base
95
  /*Start Company Content Section*/
96
  $this->start_controls_section('premium_testimonial_company_settings',
97
  [
98
- 'label' => esc_html__('Company Details', 'premium-addons-for-elementor')
99
  ]
100
  );
101
 
102
  /*Company Name*/
103
  $this->add_control('premium_testimonial_company_name',
104
  [
105
- 'label' => esc_html__('Company Name', 'premium-addons-for-elementor'),
106
  'type' => Controls_Manager::TEXT,
107
  'default' => esc_html__('Company Name','premium-addons-for-elementor'),
108
  'description' => esc_html__( 'Enter company name', 'premium-addons-for-elementor' ),
@@ -113,7 +113,7 @@ class Premium_Testimonials_Widget extends Widget_Base
113
  /*Company Name Tag*/
114
  $this->add_control('premium_testimonial_company_name_size',
115
  [
116
- 'label' => esc_html__('Company Name Tag', 'premium-addons-for-elementor'),
117
  'type' => Controls_Manager::SELECT,
118
  'description' => esc_html__( 'Select a heading tag for company name', 'premium-addons-for-elementor' ),
119
  'options' => [
@@ -129,13 +129,24 @@ class Premium_Testimonials_Widget extends Widget_Base
129
  ]
130
  );
131
 
 
 
 
 
 
 
 
 
132
  /*Company Link */
133
  $this->add_control('premium_testimonial_company_link',
134
  [
135
- 'label' => esc_html__('Company Link', 'premium-addons-for-elementor'),
136
- 'type' => Controls_Manager::TEXT,
137
- 'description' => esc_html__( 'Add company URL', 'premium-addons-for-elementor' ),
138
- 'label_block' => true,
 
 
 
139
  ]
140
  );
141
 
@@ -152,6 +163,9 @@ class Premium_Testimonials_Widget extends Widget_Base
152
  'top' => esc_html__('Top'),
153
  ],
154
  'default' => esc_html__('blank','premium-addons-for-elementor'),
 
 
 
155
  ]
156
  );
157
 
@@ -161,7 +175,7 @@ class Premium_Testimonials_Widget extends Widget_Base
161
  /*Start Testimonial Content Section*/
162
  $this->start_controls_section('premium_testimonial_settings',
163
  [
164
- 'label' => esc_html__('Testimonial Content', 'premium-addons-for-elementor'),
165
  ]
166
  );
167
 
@@ -190,7 +204,7 @@ class Premium_Testimonials_Widget extends Widget_Base
190
  /*Image Size*/
191
  $this->add_control('premium_testimonial_img_size',
192
  [
193
- 'label' => esc_html__('Image Size', 'premium-addons-for-elementor'),
194
  'type' => Controls_Manager::SLIDER,
195
  'size_units' => ['px', 'em'],
196
  'default' => [
@@ -212,7 +226,7 @@ class Premium_Testimonials_Widget extends Widget_Base
212
  /*Image Border Width*/
213
  $this->add_control('premium_testimonial_img_border_width',
214
  [
215
- 'label' => esc_html__('Image Border Width (PX)', 'premium-addons-for-elementor'),
216
  'type' => Controls_Manager::SLIDER,
217
  'default' => [
218
  'unit' => 'px',
@@ -233,7 +247,7 @@ class Premium_Testimonials_Widget extends Widget_Base
233
  /*Image Border Color*/
234
  $this->add_control('premium_testimonial_image_border_color',
235
  [
236
- 'label' => esc_html__('Image Border Color', 'premium-addons-for-elementor'),
237
  'type' => Controls_Manager::COLOR,
238
  'scheme' => [
239
  'type' => Scheme_Color::get_type(),
@@ -250,7 +264,7 @@ class Premium_Testimonials_Widget extends Widget_Base
250
  /*Start Person Settings Section*/
251
  $this->start_controls_section('premium_testimonials_person_style',
252
  [
253
- 'label' => esc_html__('Person Name', 'premium-addons-for-elementor'),
254
  'tab' => Controls_Manager::TAB_STYLE,
255
  ]
256
  );
@@ -258,7 +272,7 @@ class Premium_Testimonials_Widget extends Widget_Base
258
  /*Person Name Color*/
259
  $this->add_control('premium_testimonial_person_name_color',
260
  [
261
- 'label' => esc_html__('Person Name Color', 'premium-addons-for-elementor'),
262
  'type' => Controls_Manager::COLOR,
263
  'scheme' => [
264
  'type' => Scheme_Color::get_type(),
@@ -270,10 +284,20 @@ class Premium_Testimonials_Widget extends Widget_Base
270
  ]
271
  );
272
 
 
 
 
 
 
 
 
 
 
 
273
  /*Separator Color*/
274
  $this->add_control('premium_testimonial_separator_color',
275
  [
276
- 'label' => esc_html__('Separator Color', 'premium-addons-for-elementor'),
277
  'type' => Controls_Manager::COLOR,
278
  'scheme' => [
279
  'type' => Scheme_Color::get_type(),
@@ -285,22 +309,12 @@ class Premium_Testimonials_Widget extends Widget_Base
285
  ]
286
  );
287
 
288
- /*Authohr Name Typography*/
289
- $this->add_group_control(
290
- Group_Control_Typography::get_type(),
291
- [
292
- 'name' => 'author_name_typography',
293
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
294
- 'selector' => '{{WRAPPER}} .premium-testimonial-person-name',
295
- ]
296
- );
297
-
298
  $this->end_controls_section();
299
 
300
  /*Start Company Settings Section*/
301
  $this->start_controls_section('premium_testimonial_company_style',
302
  [
303
- 'label' => esc_html__('Company Name', 'premium-addons-for-elementor'),
304
  'tab' => Controls_Manager::TAB_STYLE,
305
  ]
306
  );
@@ -308,7 +322,7 @@ class Premium_Testimonials_Widget extends Widget_Base
308
  /*Company Name Color*/
309
  $this->add_control('premium_testimonial_company_name_color',
310
  [
311
- 'label' => esc_html__('Company Name Color', 'premium-addons-for-elementor'),
312
  'type' => Controls_Manager::COLOR,
313
  'scheme' => [
314
  'type' => Scheme_Color::get_type(),
@@ -336,7 +350,7 @@ class Premium_Testimonials_Widget extends Widget_Base
336
  /*Start Content Settings Section*/
337
  $this->start_controls_section('premium_testimonial_content_style',
338
  [
339
- 'label' => esc_html__('Testimonial Content', 'premium-addons-for-elementor'),
340
  'tab' => Controls_Manager::TAB_STYLE,
341
  ]
342
  );
@@ -344,7 +358,7 @@ class Premium_Testimonials_Widget extends Widget_Base
344
  /*Content Color*/
345
  $this->add_control('premium_testimonial_content_color',
346
  [
347
- 'label' => esc_html__('Testimonial Text Color', 'premium-addons-for-elementor'),
348
  'type' => Controls_Manager::COLOR,
349
  'scheme' => [
350
  'type' => Scheme_Color::get_type(),
@@ -370,7 +384,7 @@ class Premium_Testimonials_Widget extends Widget_Base
370
  /*Testimonial Text Margin*/
371
  $this->add_responsive_control('premium_testimonial_margin',
372
  [
373
- 'label' => esc_html__('Testimonial Text Margin', 'premium-addons-for-elementor'),
374
  'type' => Controls_Manager::DIMENSIONS,
375
  'size_units' => ['px', 'em', '%'],
376
  'default' =>[
@@ -392,7 +406,7 @@ class Premium_Testimonials_Widget extends Widget_Base
392
  /*Start Quotes Style Section*/
393
  $this->start_controls_section('premium_testimonial_quotes',
394
  [
395
- 'label' => esc_html__('Quotation Mark', 'premium-addons-for-elementor'),
396
  'tab' => Controls_Manager::TAB_STYLE,
397
  ]
398
  );
@@ -400,7 +414,7 @@ class Premium_Testimonials_Widget extends Widget_Base
400
  /*Quotes Color*/
401
  $this->add_control('premium_testimonial_quote_icon_color',
402
  [
403
- 'label' => esc_html__('Quotes Color','premium-addons-for-elementor'),
404
  'type' => Controls_Manager::COLOR,
405
  'default' => 'rgba(110,193,228,0.2)',
406
  'selectors' => [
@@ -412,7 +426,7 @@ class Premium_Testimonials_Widget extends Widget_Base
412
  /*Quotes Size*/
413
  $this->add_control('premium_testimonial_quotes_size',
414
  [
415
- 'label' => esc_html__('Quotes Size', 'premium-addons-for-elementor'),
416
  'type' => Controls_Manager::SLIDER,
417
  'size_units' => ['px', '%', 'em'],
418
  'default' => [
@@ -434,7 +448,7 @@ class Premium_Testimonials_Widget extends Widget_Base
434
  /*Upper Quote Position*/
435
  $this->add_responsive_control('premium_testimonial_upper_quote_position',
436
  [
437
- 'label' => esc_html__('Upper Quote Position', 'premium-addons-for-elementor'),
438
  'type' => Controls_Manager::DIMENSIONS,
439
  'size_units' => ['px', 'em', '%'],
440
  'default' =>[
@@ -451,7 +465,7 @@ class Premium_Testimonials_Widget extends Widget_Base
451
  /*Lower Quote Position*/
452
  $this->add_responsive_control('premium_testimonial_lower_quote_position',
453
  [
454
- 'label' => esc_html__('Lower Quote Position', 'premium-addons-for-elementor'),
455
  'type' => Controls_Manager::DIMENSIONS,
456
  'size_units' => ['px', 'em', '%'],
457
  'default' =>[
@@ -519,7 +533,7 @@ class Premium_Testimonials_Widget extends Widget_Base
519
  <span class="premium-testimonial-author-info">
520
  <<?php echo $person_title_tag; ?> class="premium-testimonial-person-name"><span <?php echo $this->get_render_attribute_string('premium_testimonial_person_name'); ?>><?php echo $settings['premium_testimonial_person_name']; ?></span></<?php echo $person_title_tag; ?>><span class="premium-testimonial-separator"> - </span>
521
 
522
- <<?php echo $company_title_tag; ?> class="premium-testimonial-company-name"><a class="premium-testimonial-company-link" href="<?php echo $settings['premium_testimonial_company_link']; ?>" target="_<?php echo $settings['premium_testimonial_link_target']; ?>"><span <?php echo $this->get_render_attribute_string('premium_testimonial_company_name'); ?>><?php echo $settings['premium_testimonial_company_name']; ?></span></a> </<?php echo $company_title_tag; ?>>
523
 
524
 
525
  </span>
@@ -531,4 +545,4 @@ class Premium_Testimonials_Widget extends Widget_Base
531
  <?php
532
  }
533
  }
534
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Testimonials_Widget());
27
  /*Testimonials Content Section */
28
  $this->start_controls_section('premium_testimonial_person_settings',
29
  [
30
+ 'label' => esc_html__('Author', 'premium-addons-for-elementor'),
31
  ]
32
  );
33
 
34
  /*Person Image*/
35
  $this->add_control('premium_testimonial_person_image',
36
  [
37
+ 'label' => esc_html__('Image','premium-addons-for-elementor'),
38
  'type' => Controls_Manager::MEDIA,
39
  'default' => [
40
  'url' => PREMIUM_ADDONS_URL. 'assets/images/person-image.jpg',
62
  /*Person Name*/
63
  $this->add_control('premium_testimonial_person_name',
64
  [
65
+ 'label' => esc_html__('Name', 'premium-addons-for-elementor'),
66
  'type' => Controls_Manager::TEXT,
67
  'default' => esc_html__('Person Name', 'premium-addons-for-elementor'),
68
  'description' => esc_html__( 'Enter author name', 'premium-addons-for-elementor' ),
73
  /*Name Title Tag*/
74
  $this->add_control('premium_testimonial_person_name_size',
75
  [
76
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::SELECT,
78
  'description' => esc_html__( 'Select a heading tag for author name', 'premium-addons-for-elementor' ),
79
  'options' => [
95
  /*Start Company Content Section*/
96
  $this->start_controls_section('premium_testimonial_company_settings',
97
  [
98
+ 'label' => esc_html__('Company', 'premium-addons-for-elementor')
99
  ]
100
  );
101
 
102
  /*Company Name*/
103
  $this->add_control('premium_testimonial_company_name',
104
  [
105
+ 'label' => esc_html__('Name', 'premium-addons-for-elementor'),
106
  'type' => Controls_Manager::TEXT,
107
  'default' => esc_html__('Company Name','premium-addons-for-elementor'),
108
  'description' => esc_html__( 'Enter company name', 'premium-addons-for-elementor' ),
113
  /*Company Name Tag*/
114
  $this->add_control('premium_testimonial_company_name_size',
115
  [
116
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
117
  'type' => Controls_Manager::SELECT,
118
  'description' => esc_html__( 'Select a heading tag for company name', 'premium-addons-for-elementor' ),
119
  'options' => [
129
  ]
130
  );
131
 
132
+ $this->add_control('premium_testimonial_company_link_switcher',
133
+ [
134
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
135
+ 'type' => Controls_Manager::SWITCHER,
136
+ 'default' => 'yes',
137
+ ]
138
+ );
139
+
140
  /*Company Link */
141
  $this->add_control('premium_testimonial_company_link',
142
  [
143
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
144
+ 'type' => Controls_Manager::TEXT,
145
+ 'description' => esc_html__( 'Add company URL', 'premium-addons-for-elementor' ),
146
+ 'label_block' => true,
147
+ 'condition' => [
148
+ 'premium_testimonial_company_link_switcher' => 'yes'
149
+ ]
150
  ]
151
  );
152
 
163
  'top' => esc_html__('Top'),
164
  ],
165
  'default' => esc_html__('blank','premium-addons-for-elementor'),
166
+ 'condition' => [
167
+ 'premium_testimonial_company_link_switcher' => 'yes'
168
+ ]
169
  ]
170
  );
171
 
175
  /*Start Testimonial Content Section*/
176
  $this->start_controls_section('premium_testimonial_settings',
177
  [
178
+ 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
179
  ]
180
  );
181
 
204
  /*Image Size*/
205
  $this->add_control('premium_testimonial_img_size',
206
  [
207
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
208
  'type' => Controls_Manager::SLIDER,
209
  'size_units' => ['px', 'em'],
210
  'default' => [
226
  /*Image Border Width*/
227
  $this->add_control('premium_testimonial_img_border_width',
228
  [
229
+ 'label' => esc_html__('Border Width (PX)', 'premium-addons-for-elementor'),
230
  'type' => Controls_Manager::SLIDER,
231
  'default' => [
232
  'unit' => 'px',
247
  /*Image Border Color*/
248
  $this->add_control('premium_testimonial_image_border_color',
249
  [
250
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
251
  'type' => Controls_Manager::COLOR,
252
  'scheme' => [
253
  'type' => Scheme_Color::get_type(),
264
  /*Start Person Settings Section*/
265
  $this->start_controls_section('premium_testimonials_person_style',
266
  [
267
+ 'label' => esc_html__('Author', 'premium-addons-for-elementor'),
268
  'tab' => Controls_Manager::TAB_STYLE,
269
  ]
270
  );
272
  /*Person Name Color*/
273
  $this->add_control('premium_testimonial_person_name_color',
274
  [
275
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
276
  'type' => Controls_Manager::COLOR,
277
  'scheme' => [
278
  'type' => Scheme_Color::get_type(),
284
  ]
285
  );
286
 
287
+ /*Authohr Name Typography*/
288
+ $this->add_group_control(
289
+ Group_Control_Typography::get_type(),
290
+ [
291
+ 'name' => 'author_name_typography',
292
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
293
+ 'selector' => '{{WRAPPER}} .premium-testimonial-person-name',
294
+ ]
295
+ );
296
+
297
  /*Separator Color*/
298
  $this->add_control('premium_testimonial_separator_color',
299
  [
300
+ 'label' => esc_html__('Divider Color', 'premium-addons-for-elementor'),
301
  'type' => Controls_Manager::COLOR,
302
  'scheme' => [
303
  'type' => Scheme_Color::get_type(),
309
  ]
310
  );
311
 
 
 
 
 
 
 
 
 
 
 
312
  $this->end_controls_section();
313
 
314
  /*Start Company Settings Section*/
315
  $this->start_controls_section('premium_testimonial_company_style',
316
  [
317
+ 'label' => esc_html__('Company', 'premium-addons-for-elementor'),
318
  'tab' => Controls_Manager::TAB_STYLE,
319
  ]
320
  );
322
  /*Company Name Color*/
323
  $this->add_control('premium_testimonial_company_name_color',
324
  [
325
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
326
  'type' => Controls_Manager::COLOR,
327
  'scheme' => [
328
  'type' => Scheme_Color::get_type(),
350
  /*Start Content Settings Section*/
351
  $this->start_controls_section('premium_testimonial_content_style',
352
  [
353
+ 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
354
  'tab' => Controls_Manager::TAB_STYLE,
355
  ]
356
  );
358
  /*Content Color*/
359
  $this->add_control('premium_testimonial_content_color',
360
  [
361
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
362
  'type' => Controls_Manager::COLOR,
363
  'scheme' => [
364
  'type' => Scheme_Color::get_type(),
384
  /*Testimonial Text Margin*/
385
  $this->add_responsive_control('premium_testimonial_margin',
386
  [
387
+ 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
388
  'type' => Controls_Manager::DIMENSIONS,
389
  'size_units' => ['px', 'em', '%'],
390
  'default' =>[
406
  /*Start Quotes Style Section*/
407
  $this->start_controls_section('premium_testimonial_quotes',
408
  [
409
+ 'label' => esc_html__('Quotation Icon', 'premium-addons-for-elementor'),
410
  'tab' => Controls_Manager::TAB_STYLE,
411
  ]
412
  );
414
  /*Quotes Color*/
415
  $this->add_control('premium_testimonial_quote_icon_color',
416
  [
417
+ 'label' => esc_html__('Color','premium-addons-for-elementor'),
418
  'type' => Controls_Manager::COLOR,
419
  'default' => 'rgba(110,193,228,0.2)',
420
  'selectors' => [
426
  /*Quotes Size*/
427
  $this->add_control('premium_testimonial_quotes_size',
428
  [
429
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
430
  'type' => Controls_Manager::SLIDER,
431
  'size_units' => ['px', '%', 'em'],
432
  'default' => [
448
  /*Upper Quote Position*/
449
  $this->add_responsive_control('premium_testimonial_upper_quote_position',
450
  [
451
+ 'label' => esc_html__('Top Icon Position', 'premium-addons-for-elementor'),
452
  'type' => Controls_Manager::DIMENSIONS,
453
  'size_units' => ['px', 'em', '%'],
454
  'default' =>[
465
  /*Lower Quote Position*/
466
  $this->add_responsive_control('premium_testimonial_lower_quote_position',
467
  [
468
+ 'label' => esc_html__('Bottom Icon Position', 'premium-addons-for-elementor'),
469
  'type' => Controls_Manager::DIMENSIONS,
470
  'size_units' => ['px', 'em', '%'],
471
  'default' =>[
533
  <span class="premium-testimonial-author-info">
534
  <<?php echo $person_title_tag; ?> class="premium-testimonial-person-name"><span <?php echo $this->get_render_attribute_string('premium_testimonial_person_name'); ?>><?php echo $settings['premium_testimonial_person_name']; ?></span></<?php echo $person_title_tag; ?>><span class="premium-testimonial-separator"> - </span>
535
 
536
+ <<?php echo $company_title_tag; ?> class="premium-testimonial-company-name"><?php if($settings['premium_testimonial_company_link_switcher'] == 'yes') : ?><a class="premium-testimonial-company-link" href="<?php echo $settings['premium_testimonial_company_link']; ?>" target="_<?php echo $settings['premium_testimonial_link_target']; ?>"><span <?php echo $this->get_render_attribute_string('premium_testimonial_company_name'); ?>><?php echo $settings['premium_testimonial_company_name']; ?></span></a><?php else: ?><span class="premium-testimonial-company-link" <?php echo $this->get_render_attribute_string('premium_testimonial_company_name'); ?>><?php echo $settings['premium_testimonial_company_name']; ?></span><?php endif;?></<?php echo $company_title_tag; ?>>
537
 
538
 
539
  </span>
545
  <?php
546
  }
547
  }
548
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Testimonials_Widget());
widgets/premium-title.php CHANGED
@@ -28,14 +28,14 @@ class Premium_Title_Widget extends Widget_Base
28
  /* Start Title General Settings Section */
29
  $this->start_controls_section('premium_title_content',
30
  [
31
- 'label' => esc_html__('Title Settings', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
35
  /*Title Text*/
36
  $this->add_control('premium_title_text',
37
  [
38
- 'label' => esc_html__('Title Content', 'premium-addons-for-elementor'),
39
  'type' => Controls_Manager::TEXT,
40
  'default' => esc_html__('Premium Title','premium-addons-for-elementor'),
41
  'label_block' => true,
@@ -45,7 +45,7 @@ class Premium_Title_Widget extends Widget_Base
45
  /*Title Style*/
46
  $this->add_control('premium_title_style',
47
  [
48
- 'label' => esc_html__('Title Style', 'premium-addons-for-elementor'),
49
  'type' => Controls_Manager::SELECT,
50
  'default' => 'style1',
51
  'options' => [
@@ -84,7 +84,7 @@ class Premium_Title_Widget extends Widget_Base
84
  /*Title HTML TAG*/
85
  $this->add_control('premium_title_tag',
86
  [
87
- 'label' => esc_html__('Title HTML Tag', 'premium-addons-for-elementor'),
88
  'type' => Controls_Manager::SELECT,
89
  'default' => esc_html__('h2','premium-addons-for-elementor'),
90
  'options' => [
@@ -101,7 +101,7 @@ class Premium_Title_Widget extends Widget_Base
101
  /*Title Align*/
102
  $this->add_responsive_control('premium_title_align',
103
  [
104
- 'label' => esc_html__( 'Align', 'premium-addons-for-elementor' ),
105
  'type' => Controls_Manager::CHOOSE,
106
  'options' => [
107
  'left' => [
@@ -242,7 +242,7 @@ class Premium_Title_Widget extends Widget_Base
242
  /*Title Color*/
243
  $this->add_control('premium_title_color',
244
  [
245
- 'label' => esc_html__('Title Color', 'premium-addons-for-elementor'),
246
  'type' => Controls_Manager::COLOR,
247
  'scheme' => [
248
  'type' => Scheme_Color::get_type(),
@@ -324,7 +324,7 @@ class Premium_Title_Widget extends Widget_Base
324
  /*Header Line Color*/
325
  $this->add_control('premium_title_style5_header_line_color',
326
  [
327
- 'label' => esc_html__('Header Line Color', 'premium-addons-for-elementor'),
328
  'type' => Controls_Manager::COLOR,
329
  'scheme' => [
330
  'type' => Scheme_Color::get_type(),
@@ -355,7 +355,7 @@ class Premium_Title_Widget extends Widget_Base
355
  /*Header Line Color*/
356
  $this->add_control('premium_title_style6_header_line_color',
357
  [
358
- 'label' => esc_html__('Header Line Color', 'premium-addons-for-elementor'),
359
  'type' => Controls_Manager::COLOR,
360
  'scheme' => [
361
  'type' => Scheme_Color::get_type(),
@@ -424,6 +424,7 @@ class Premium_Title_Widget extends Widget_Base
424
  $this->add_group_control(
425
  Group_Control_Text_Shadow::get_type(),
426
  [
 
427
  'name' => 'premium_title_text_shadow',
428
  'selector' => '{{WRAPPER}} .premium-title-header',
429
  ]
@@ -567,4 +568,4 @@ class Premium_Title_Widget extends Widget_Base
567
  <?php
568
  }
569
  }
570
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Title_Widget());
28
  /* Start Title General Settings Section */
29
  $this->start_controls_section('premium_title_content',
30
  [
31
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
35
  /*Title Text*/
36
  $this->add_control('premium_title_text',
37
  [
38
+ 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
39
  'type' => Controls_Manager::TEXT,
40
  'default' => esc_html__('Premium Title','premium-addons-for-elementor'),
41
  'label_block' => true,
45
  /*Title Style*/
46
  $this->add_control('premium_title_style',
47
  [
48
+ 'label' => esc_html__('Style', 'premium-addons-for-elementor'),
49
  'type' => Controls_Manager::SELECT,
50
  'default' => 'style1',
51
  'options' => [
84
  /*Title HTML TAG*/
85
  $this->add_control('premium_title_tag',
86
  [
87
+ 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
88
  'type' => Controls_Manager::SELECT,
89
  'default' => esc_html__('h2','premium-addons-for-elementor'),
90
  'options' => [
101
  /*Title Align*/
102
  $this->add_responsive_control('premium_title_align',
103
  [
104
+ 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
105
  'type' => Controls_Manager::CHOOSE,
106
  'options' => [
107
  'left' => [
242
  /*Title Color*/
243
  $this->add_control('premium_title_color',
244
  [
245
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
246
  'type' => Controls_Manager::COLOR,
247
  'scheme' => [
248
  'type' => Scheme_Color::get_type(),
324
  /*Header Line Color*/
325
  $this->add_control('premium_title_style5_header_line_color',
326
  [
327
+ 'label' => esc_html__('Line Color', 'premium-addons-for-elementor'),
328
  'type' => Controls_Manager::COLOR,
329
  'scheme' => [
330
  'type' => Scheme_Color::get_type(),
355
  /*Header Line Color*/
356
  $this->add_control('premium_title_style6_header_line_color',
357
  [
358
+ 'label' => esc_html__('Line Color', 'premium-addons-for-elementor'),
359
  'type' => Controls_Manager::COLOR,
360
  'scheme' => [
361
  'type' => Scheme_Color::get_type(),
424
  $this->add_group_control(
425
  Group_Control_Text_Shadow::get_type(),
426
  [
427
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
428
  'name' => 'premium_title_text_shadow',
429
  'selector' => '{{WRAPPER}} .premium-title-header',
430
  ]
568
  <?php
569
  }
570
  }
571
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Title_Widget());
widgets/premium-videobox.php CHANGED
@@ -28,7 +28,7 @@ class Premium_Video_Box_Widget extends Widget_Base
28
  /* Start Image Settings Section */
29
  $this->start_controls_section('premium_video_box_image_settings',
30
  [
31
- 'label' => esc_html__('Video Box Content', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
@@ -45,13 +45,63 @@ class Premium_Video_Box_Widget extends Widget_Base
45
  ]
46
  );
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  /*End Image Settings Section*/
49
  $this->end_controls_section();
50
 
51
  /*Start Play Icon Settings*/
52
  $this->start_controls_section('premium_video_box_play_icon_settings',
53
  [
54
- 'label' => esc_html__('Play Icon', 'premium-addons-for-elementor'),
55
  ]
56
  );
57
 
@@ -121,6 +171,7 @@ class Premium_Video_Box_Widget extends Widget_Base
121
  [
122
  'label' => esc_html__('Text', 'premium-addons-for-elementor'),
123
  'type' => Controls_Manager::TEXTAREA,
 
124
  'condition' => [
125
  'premium_video_box_video_text_switcher' => 'yes'
126
  ],
@@ -166,67 +217,6 @@ class Premium_Video_Box_Widget extends Widget_Base
166
  /*End Description Text Section*/
167
  $this->end_controls_section();
168
 
169
-
170
- /*Start Video Settings Section*/
171
- $this->start_controls_section('premium_video_box_video_settings_section',
172
- [
173
- 'label' => esc_html__('Video Type', 'premium-addons-for-elementor'),
174
- ]
175
- );
176
-
177
- /*Video Type*/
178
- $this->add_control('premium_video_box_video_type',
179
- [
180
- 'label' => esc_html__('Video Type', 'premium-addons-for-elementor'),
181
- 'type' => Controls_Manager::SELECT,
182
- 'default' => 'youtube',
183
- 'options' => [
184
- 'youtube' => esc_html__('Youtube', 'premium-addons-for-elementor'),
185
- 'vimeo' => esc_html__('Vimeo', 'premium-addons-for-elementor'),
186
- ]
187
- ]
188
- );
189
-
190
- /*Video Id or Link*/
191
- $this->add_control('premium_video_box_video_id_embed_selection',
192
- [
193
- 'label' => esc_html__('ID/URL', 'premium-addons-for-elementor'),
194
- 'type' => Controls_Manager::SELECT,
195
- 'default' => 'id',
196
- 'options' => [
197
- 'id' => esc_html__('ID', 'premium-addons-for-elementor'),
198
- 'embed' => esc_html__('Embed URL', 'premium-addons-for-elementor'),
199
- ]
200
- ]
201
- );
202
-
203
- /*Video Id*/
204
- $this->add_control('premium_video_box_video_id',
205
- [
206
- 'label' => esc_html__('Video ID', 'premium-addons-for-elementor'),
207
- 'description' => esc_html__('Enter the numbers and letters after the equal sign which located in your YouTube video link or after the slash sign in your Vimeo video link. For example, z1hQgVpfTKU', 'premium-addons-for-elementor'),
208
- 'type' => Controls_Manager::TEXT,
209
- 'condition' => [
210
- 'premium_video_box_video_id_embed_selection' => 'id',
211
- ]
212
- ]
213
- );
214
-
215
- /*Video Link*/
216
- $this->add_control('premium_video_box_video_embed',
217
- [
218
- 'label' => esc_html__('Embed URL', 'premium-addons-for-elementor'),
219
- 'description' => esc_html__('Enter your YouTube/Vimeo video link. For example, https://www.youtube.com/embed/z1hQgVpfTKU.', 'premium-addons-for-elementor'),
220
- 'type' => Controls_Manager::TEXT,
221
- 'condition' => [
222
- 'premium_video_box_video_id_embed_selection' => 'embed',
223
- ]
224
- ]
225
- );
226
-
227
- /*End Video Settings Section*/
228
- $this->end_controls_section();
229
-
230
  /*Start Text Below Icon Style Section*/
231
  $this->start_controls_section('premium_video_box_text_style_section',
232
  [
@@ -260,6 +250,7 @@ class Premium_Video_Box_Widget extends Widget_Base
260
  $this->add_group_control(
261
  Group_Control_Box_Shadow::get_type(),
262
  [
 
263
  'name' => 'box_shadow',
264
  'selector' => '{{WRAPPER}} .premium-video-box-image, {{WRAPPER}} .premium-video-box-video-container iframe',
265
  ]
@@ -271,7 +262,7 @@ class Premium_Video_Box_Widget extends Widget_Base
271
  /*Start Play Icon Style Section*/
272
  $this->start_controls_section('premium_video_box_icon_style',
273
  [
274
- 'label' => esc_html__('Play Icon Style','premium-addons-for-elementor'),
275
  'tab' => Controls_Manager::TAB_STYLE,
276
  'condition' => [
277
  'premium_video_box_play_icon_switcher' => 'yes',
@@ -282,7 +273,7 @@ class Premium_Video_Box_Widget extends Widget_Base
282
  /*Play Icon Color*/
283
  $this->add_control('premium_video_box_play_icon_color',
284
  [
285
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
286
  'type' => Controls_Manager::COLOR,
287
  'scheme' => [
288
  'type' => Scheme_Color::get_type(),
@@ -297,7 +288,7 @@ class Premium_Video_Box_Widget extends Widget_Base
297
  /*Play Icon Color*/
298
  $this->add_control('premium_video_box_play_icon_color_hover',
299
  [
300
- 'label' => esc_html__('Icon Hover Color', 'premium-addons-for-elementor'),
301
  'type' => Controls_Manager::COLOR,
302
  'scheme' => [
303
  'type' => Scheme_Color::get_type(),
@@ -312,7 +303,7 @@ class Premium_Video_Box_Widget extends Widget_Base
312
  /*Play Icon Size*/
313
  $this->add_control('premium_video_box_play_icon_size',
314
  [
315
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
316
  'type' => Controls_Manager::SLIDER,
317
  'default' => [
318
  'unit' => 'px',
@@ -438,7 +429,7 @@ class Premium_Video_Box_Widget extends Widget_Base
438
  /*Text Hover Color*/
439
  $this->add_control('premium_video_box_text_color_hover',
440
  [
441
- 'label' => esc_html__('Text Hover Color', 'premium-addons-for-elementor'),
442
  'type' => Controls_Manager::COLOR,
443
  'scheme' => [
444
  'type' => Scheme_Color::get_type(),
@@ -450,6 +441,16 @@ class Premium_Video_Box_Widget extends Widget_Base
450
  ]
451
  );
452
 
 
 
 
 
 
 
 
 
 
 
453
  /*Text Hover Color*/
454
  $this->add_control('premium_video_box_text_background_color',
455
  [
@@ -465,16 +466,6 @@ class Premium_Video_Box_Widget extends Widget_Base
465
  ]
466
  );
467
 
468
- /*Text Typography*/
469
- $this->add_group_control(
470
- Group_Control_Typography::get_type(),
471
- [
472
- 'name' => 'text_typography',
473
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
474
- 'selector' => '{{WRAPPER}} .premium-video-box-text',
475
- ]
476
- );
477
-
478
  $this->add_responsive_control('premium_video_box_text_padding',
479
  [
480
  'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
@@ -489,8 +480,9 @@ class Premium_Video_Box_Widget extends Widget_Base
489
  $this->add_group_control(
490
  Group_Control_Text_Shadow::get_type(),
491
  [
492
- 'name' => 'premium_text_shadow',
493
- 'selector' => '.premium-video-box-text'
 
494
  ]
495
  );
496
 
@@ -567,4 +559,4 @@ class Premium_Video_Box_Widget extends Widget_Base
567
  <?php
568
  }
569
  }
570
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Video_Box_Widget());
28
  /* Start Image Settings Section */
29
  $this->start_controls_section('premium_video_box_image_settings',
30
  [
31
+ 'label' => esc_html__('Video Box', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
45
  ]
46
  );
47
 
48
+ /*Video Type*/
49
+ $this->add_control('premium_video_box_video_type',
50
+ [
51
+ 'label' => esc_html__('Video Type', 'premium-addons-for-elementor'),
52
+ 'type' => Controls_Manager::SELECT,
53
+ 'default' => 'youtube',
54
+ 'options' => [
55
+ 'youtube' => esc_html__('Youtube', 'premium-addons-for-elementor'),
56
+ 'vimeo' => esc_html__('Vimeo', 'premium-addons-for-elementor'),
57
+ ]
58
+ ]
59
+ );
60
+
61
+ /*Video Id or Link*/
62
+ $this->add_control('premium_video_box_video_id_embed_selection',
63
+ [
64
+ 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
65
+ 'type' => Controls_Manager::SELECT,
66
+ 'default' => 'id',
67
+ 'options' => [
68
+ 'id' => esc_html__('ID', 'premium-addons-for-elementor'),
69
+ 'embed' => esc_html__('Embed URL', 'premium-addons-for-elementor'),
70
+ ]
71
+ ]
72
+ );
73
+
74
+ /*Video Id*/
75
+ $this->add_control('premium_video_box_video_id',
76
+ [
77
+ 'label' => esc_html__('Video ID', 'premium-addons-for-elementor'),
78
+ 'description' => esc_html__('Enter the numbers and letters after the equal sign which located in your YouTube video link or after the slash sign in your Vimeo video link. For example, z1hQgVpfTKU', 'premium-addons-for-elementor'),
79
+ 'type' => Controls_Manager::TEXT,
80
+ 'condition' => [
81
+ 'premium_video_box_video_id_embed_selection' => 'id',
82
+ ]
83
+ ]
84
+ );
85
+
86
+ /*Video Link*/
87
+ $this->add_control('premium_video_box_video_embed',
88
+ [
89
+ 'label' => esc_html__('Embed URL', 'premium-addons-for-elementor'),
90
+ 'description' => esc_html__('Enter your YouTube/Vimeo video link. For example, https://www.youtube.com/embed/z1hQgVpfTKU.', 'premium-addons-for-elementor'),
91
+ 'type' => Controls_Manager::TEXT,
92
+ 'condition' => [
93
+ 'premium_video_box_video_id_embed_selection' => 'embed',
94
+ ]
95
+ ]
96
+ );
97
+
98
  /*End Image Settings Section*/
99
  $this->end_controls_section();
100
 
101
  /*Start Play Icon Settings*/
102
  $this->start_controls_section('premium_video_box_play_icon_settings',
103
  [
104
+ 'label' => esc_html__('Additional Options', 'premium-addons-for-elementor'),
105
  ]
106
  );
107
 
171
  [
172
  'label' => esc_html__('Text', 'premium-addons-for-elementor'),
173
  'type' => Controls_Manager::TEXTAREA,
174
+ 'default' => esc_html__('Play Video','premium-addons-for-elementor'),
175
  'condition' => [
176
  'premium_video_box_video_text_switcher' => 'yes'
177
  ],
217
  /*End Description Text Section*/
218
  $this->end_controls_section();
219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  /*Start Text Below Icon Style Section*/
221
  $this->start_controls_section('premium_video_box_text_style_section',
222
  [
250
  $this->add_group_control(
251
  Group_Control_Box_Shadow::get_type(),
252
  [
253
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
254
  'name' => 'box_shadow',
255
  'selector' => '{{WRAPPER}} .premium-video-box-image, {{WRAPPER}} .premium-video-box-video-container iframe',
256
  ]
262
  /*Start Play Icon Style Section*/
263
  $this->start_controls_section('premium_video_box_icon_style',
264
  [
265
+ 'label' => esc_html__('Play Icon','premium-addons-for-elementor'),
266
  'tab' => Controls_Manager::TAB_STYLE,
267
  'condition' => [
268
  'premium_video_box_play_icon_switcher' => 'yes',
273
  /*Play Icon Color*/
274
  $this->add_control('premium_video_box_play_icon_color',
275
  [
276
+ 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
277
  'type' => Controls_Manager::COLOR,
278
  'scheme' => [
279
  'type' => Scheme_Color::get_type(),
288
  /*Play Icon Color*/
289
  $this->add_control('premium_video_box_play_icon_color_hover',
290
  [
291
+ 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
292
  'type' => Controls_Manager::COLOR,
293
  'scheme' => [
294
  'type' => Scheme_Color::get_type(),
303
  /*Play Icon Size*/
304
  $this->add_control('premium_video_box_play_icon_size',
305
  [
306
+ 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
307
  'type' => Controls_Manager::SLIDER,
308
  'default' => [
309
  'unit' => 'px',
429
  /*Text Hover Color*/
430
  $this->add_control('premium_video_box_text_color_hover',
431
  [
432
+ 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
433
  'type' => Controls_Manager::COLOR,
434
  'scheme' => [
435
  'type' => Scheme_Color::get_type(),
441
  ]
442
  );
443
 
444
+ /*Text Typography*/
445
+ $this->add_group_control(
446
+ Group_Control_Typography::get_type(),
447
+ [
448
+ 'name' => 'text_typography',
449
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
450
+ 'selector' => '{{WRAPPER}} .premium-video-box-text',
451
+ ]
452
+ );
453
+
454
  /*Text Hover Color*/
455
  $this->add_control('premium_video_box_text_background_color',
456
  [
466
  ]
467
  );
468
 
 
 
 
 
 
 
 
 
 
 
469
  $this->add_responsive_control('premium_video_box_text_padding',
470
  [
471
  'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
480
  $this->add_group_control(
481
  Group_Control_Text_Shadow::get_type(),
482
  [
483
+ 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
484
+ 'name' => 'premium_text_shadow',
485
+ 'selector' => '.premium-video-box-text'
486
  ]
487
  );
488
 
559
  <?php
560
  }
561
  }
562
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Video_Box_Widget());