Premium Addons for Elementor - Version 2.9.3

Version Description

  • Tweak: Unnecessary esc_html() function removed.
  • Tweak: Unnecessary conditions removed to enhance editor page loading speed.
Download this release

Release Info

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

Code changes from version 2.9.2 to 2.9.3

admin/settings/version-control.php CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
79
  <tr class="pa-roll-row">
80
  <th>Rollback Version</th>
81
  <td>
82
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.9.1</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
  </td>
85
  </tr>
79
  <tr class="pa-roll-row">
80
  <th>Rollback Version</th>
81
  <td>
82
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.9.2</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
  </td>
85
  </tr>
includes/class-addons-integration.php CHANGED
@@ -125,51 +125,117 @@ class Premium_Addons_Integration {
125
  * @access public
126
  */
127
  public function premium_register_frontend_scripts() {
128
-
129
- $check_component_active = PA_admin_settings::get_enabled_keys();
130
- wp_register_script('waypoints-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.waypoints.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
131
-
132
- wp_register_script('premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
133
 
134
- if ( $check_component_active['premium-counter'] ) {
135
- wp_register_script('counter-up-js', PREMIUM_ADDONS_URL . 'assets/js/lib/countUpmin.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
136
- }
 
 
 
 
137
 
138
- if ( $check_component_active['premium-grid'] ) {
139
- wp_register_script('isotope-js', PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
140
- wp_register_script('prettyPhoto-js', PREMIUM_ADDONS_URL . 'assets/js/lib/prettyPhoto.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
141
- }
 
 
 
142
 
143
- if ( $check_component_active['premium-fancytext'] ) {
144
- wp_register_script('vticker-js', PREMIUM_ADDONS_URL . 'assets/js/lib/Vticker.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
145
- wp_register_script('typed-js', PREMIUM_ADDONS_URL . 'assets/js/lib/typedmin.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
146
- }
 
 
 
147
 
148
- if ( $check_component_active['premium-countdown'] ) {
149
- wp_register_script('count-down-timer-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquerycountdown.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
150
- }
 
 
 
 
151
 
152
- if ( $check_component_active['premium-carousel'] ) {
153
- wp_register_script('slick-carousel-js', PREMIUM_ADDONS_URL . 'assets/js/lib/slickmin.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
154
- }
155
-
156
- if ( $check_component_active['premium-blog'] ) {
157
- wp_register_script('isotope-js', PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
158
- }
159
 
160
- if ( $check_component_active['premium-modalbox'] ) {
161
- wp_register_script('modal-js', PREMIUM_ADDONS_URL . 'assets/js/lib/modal.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
162
- }
 
 
 
 
 
 
 
 
 
 
 
163
 
164
- if ( $check_component_active['premium-maps'] ) {
165
- wp_register_script('premium-maps-js', PREMIUM_ADDONS_URL . 'assets/js/premium-maps.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
166
- }
 
 
 
 
167
 
168
- if ( $check_component_active['premium-vscroll'] ) {
169
- wp_register_script( 'vscroll-js', PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.visible.js', array('jquery'), PREMIUM_ADDONS_VERSION, true );
170
- wp_register_script( 'visible-js', PREMIUM_ADDONS_URL . 'assets/js/premium-vscroll.js', array('jquery'), PREMIUM_ADDONS_VERSION, true );
171
-
172
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
 
174
  }
175
 
125
  * @access public
126
  */
127
  public function premium_register_frontend_scripts() {
 
 
 
 
 
128
 
129
+ wp_register_script(
130
+ 'waypoints-js',
131
+ PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.waypoints.js',
132
+ array('jquery'),
133
+ PREMIUM_ADDONS_VERSION,
134
+ true
135
+ );
136
 
137
+ wp_register_script(
138
+ 'premium-addons-js',
139
+ PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js',
140
+ array('jquery'),
141
+ PREMIUM_ADDONS_VERSION,
142
+ true
143
+ );
144
 
145
+ wp_register_script(
146
+ 'counter-up-js',
147
+ PREMIUM_ADDONS_URL . 'assets/js/lib/countUpmin.js',
148
+ array('jquery'),
149
+ PREMIUM_ADDONS_VERSION,
150
+ true
151
+ );
152
 
153
+ wp_register_script(
154
+ 'isotope-js',
155
+ PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js',
156
+ array('jquery'),
157
+ PREMIUM_ADDONS_VERSION,
158
+ true
159
+ );
160
 
161
+ wp_register_script(
162
+ 'prettyPhoto-js',
163
+ PREMIUM_ADDONS_URL . 'assets/js/lib/prettyPhoto.js',
164
+ array('jquery'),
165
+ PREMIUM_ADDONS_VERSION,
166
+ true
167
+ );
168
 
169
+ wp_register_script(
170
+ 'vticker-js',
171
+ PREMIUM_ADDONS_URL . 'assets/js/lib/Vticker.js',
172
+ array('jquery'),
173
+ PREMIUM_ADDONS_VERSION,
174
+ true
175
+ );
176
+ wp_register_script(
177
+ 'typed-js',
178
+ PREMIUM_ADDONS_URL . 'assets/js/lib/typedmin.js',
179
+ array('jquery'),
180
+ PREMIUM_ADDONS_VERSION,
181
+ true
182
+ );
183
 
184
+ wp_register_script(
185
+ 'count-down-timer-js',
186
+ PREMIUM_ADDONS_URL . 'assets/js/lib/jquerycountdown.js',
187
+ array('jquery'),
188
+ PREMIUM_ADDONS_VERSION,
189
+ true
190
+ );
191
 
192
+ wp_register_script(
193
+ 'slick-carousel-js',
194
+ PREMIUM_ADDONS_URL . 'assets/js/lib/slickmin.js',
195
+ array('jquery'),
196
+ PREMIUM_ADDONS_VERSION,
197
+ true
198
+ );
199
+
200
+ wp_register_script(
201
+ 'isotope-js',
202
+ PREMIUM_ADDONS_URL . 'assets/js/lib/isotope.js',
203
+ array('jquery'),
204
+ PREMIUM_ADDONS_VERSION,
205
+ true
206
+ );
207
+
208
+ wp_register_script(
209
+ 'modal-js',
210
+ PREMIUM_ADDONS_URL . 'assets/js/lib/modal.js',
211
+ array('jquery'),
212
+ PREMIUM_ADDONS_VERSION,
213
+ true
214
+ );
215
+
216
+ wp_register_script(
217
+ 'premium-maps-js',
218
+ PREMIUM_ADDONS_URL . 'assets/js/premium-maps.js',
219
+ array('jquery'),
220
+ PREMIUM_ADDONS_VERSION,
221
+ true
222
+ );
223
+
224
+ wp_register_script(
225
+ 'vscroll-js',
226
+ PREMIUM_ADDONS_URL . 'assets/js/lib/jquery.visible.js',
227
+ array('jquery'),
228
+ PREMIUM_ADDONS_VERSION,
229
+ true
230
+ );
231
+
232
+ wp_register_script(
233
+ 'visible-js',
234
+ PREMIUM_ADDONS_URL . 'assets/js/premium-vscroll.js',
235
+ array('jquery'),
236
+ PREMIUM_ADDONS_VERSION,
237
+ true
238
+ );
239
 
240
  }
241
 
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.9.2
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -22,12 +22,12 @@ if (! function_exists('add_action')) {
22
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
- define('PREMIUM_ADDONS_VERSION', '2.9.2');
26
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
  define('PREMIUM_ADDONS_FILE', __FILE__);
29
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
- define('PREMIUM_ADDONS_STABLE_VERSION', '2.9.1');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.9.3
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
22
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
 
24
 
25
+ define('PREMIUM_ADDONS_VERSION', '2.9.3');
26
  define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
27
  define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
28
  define('PREMIUM_ADDONS_FILE', __FILE__);
29
  define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
+ define('PREMIUM_ADDONS_STABLE_VERSION', '2.9.2');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: leap13
3
  Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, page builder
4
  Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
- Tested up to: 5.0.1
7
  Requires PHP: 5.4
8
- Stable tag: 2.9.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -137,6 +137,11 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
 
138
  == Changelog ==
139
 
 
 
 
 
 
140
  = 2.9.2 =
141
 
142
  - Tweak: Unnecessary functions removed from Counter, Modal Box widgets to enhance performance.
3
  Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, page builder
4
  Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
+ Tested up to: 5.0.2
7
  Requires PHP: 5.4
8
+ Stable tag: 2.9.3
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.9.3 =
141
+
142
+ - Tweak: Unnecessary `esc_html()` function removed.
143
+ - Tweak: Unnecessary conditions removed to enhance editor page loading speed.
144
+
145
  = 2.9.2 =
146
 
147
  - Tweak: Unnecessary functions removed from Counter, Modal Box widgets to enhance performance.
widgets/premium-banner.php CHANGED
@@ -39,14 +39,14 @@ class Premium_Banner extends Widget_Base {
39
 
40
  $this->start_controls_section('premium_banner_global_settings',
41
  [
42
- 'label' => esc_html__( 'Image', 'premium-addons-for-elementor' )
43
  ]
44
  );
45
 
46
  $this->add_control('premium_banner_image',
47
  [
48
- 'label' => esc_html__( 'Upload Image', 'premium-addons-for-elementor' ),
49
- 'description' => esc_html__( 'Select an image for the Banner', 'premium-addons-for-elementor' ),
50
  'type' => Controls_Manager::MEDIA,
51
  'dynamic' => [ 'active' => true ],
52
  'default' => [
@@ -58,16 +58,16 @@ class Premium_Banner extends Widget_Base {
58
 
59
  $this->add_control('premium_banner_link_url_switch',
60
  [
61
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
62
  'type' => Controls_Manager::SWITCHER
63
  ]
64
  );
65
 
66
  $this->add_control('premium_banner_image_link_switcher',
67
  [
68
- 'label' => esc_html__( 'Custom Link', 'premium-addons-for-elementor' ),
69
  'type' => Controls_Manager::SWITCHER,
70
- 'description' => esc_html__( 'Add a custom link to the banner', 'premium-addons-for-elementor' ),
71
  'condition' => [
72
  'premium_banner_link_url_switch' => 'yes',
73
  ],
@@ -76,9 +76,9 @@ class Premium_Banner extends Widget_Base {
76
 
77
  $this->add_control('premium_banner_image_custom_link',
78
  [
79
- 'label' => esc_html__( 'Set custom Link', 'premium-addons-for-elementor' ),
80
  'type' => Controls_Manager::URL,
81
- 'description' => esc_html__( 'What custom link you want to set to banner?', 'premium-addons-for-elementor' ),
82
  'condition' => [
83
  'premium_banner_image_link_switcher' => 'yes',
84
  'premium_banner_link_url_switch' => 'yes'
@@ -89,9 +89,9 @@ class Premium_Banner extends Widget_Base {
89
 
90
  $this->add_control('premium_banner_image_existing_page_link',
91
  [
92
- 'label' => esc_html__( 'Existing Page', 'premium-addons-for-elementor' ),
93
  'type' => Controls_Manager::SELECT2,
94
- 'description' => esc_html__( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
95
  'condition' => [
96
  'premium_banner_image_link_switcher!' => 'yes',
97
  'premium_banner_link_url_switch' => 'yes'
@@ -103,9 +103,9 @@ class Premium_Banner extends Widget_Base {
103
 
104
  $this->add_control('premium_banner_image_link_open_new_tab',
105
  [
106
- 'label' => esc_html__( 'New Tab', 'premium-addons-for-elementor' ),
107
  'type' => Controls_Manager::SWITCHER,
108
- 'description' => esc_html__( 'Choose if you want the link be opened in a new tab or not', 'premium-addons-for-elementor' ),
109
  'condition' => [
110
  'premium_banner_link_url_switch' => 'yes'
111
  ]
@@ -114,9 +114,9 @@ class Premium_Banner extends Widget_Base {
114
 
115
  $this->add_control('premium_banner_image_link_add_nofollow',
116
  [
117
- 'label' => esc_html__( 'Nofollow Option', 'premium-addons-for-elementor' ),
118
  'type' => Controls_Manager::SWITCHER,
119
- 'description' => esc_html__('if you choose yes, the link will not be counted in search engines', 'premium-addons-for-elementor' ),
120
  'condition' => [
121
  'premium_banner_link_url_switch' => 'yes'
122
  ]
@@ -125,10 +125,10 @@ class Premium_Banner extends Widget_Base {
125
 
126
  $this->add_control('premium_banner_image_animation',
127
  [
128
- 'label' => esc_html__( 'Effect', 'premium-addons-for-elementor' ),
129
  'type' => Controls_Manager::SELECT,
130
  'default' => 'premium_banner_animation1',
131
- 'description' => esc_html__( 'Choose a hover effect for the banner', 'premium-addons-for-elementor' ),
132
  'options' => [
133
  'premium_banner_animation1' => 'Effect 1',
134
  'premium_banner_animation5' => 'Effect 2',
@@ -142,25 +142,25 @@ class Premium_Banner extends Widget_Base {
142
 
143
  $this->add_control('premium_banner_active',
144
  [
145
- 'label' => esc_html__( 'Always Hovered', 'premium-addons-for-elementor' ),
146
  'type' => Controls_Manager::SWITCHER,
147
- 'description' => esc_html__( 'Choose if you want the effect to be always triggered', 'premium-addons-for-elementor' )
148
  ]
149
  );
150
 
151
  $this->add_control('premium_banner_hover_effect',
152
  [
153
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
154
  'type' => Controls_Manager::SELECT,
155
  'options' => [
156
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
157
- 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
158
- 'zoomout' => esc_html__('Zoom Out', 'premium-addons-for-elementor'),
159
- 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
160
- 'grayscale' => esc_html__('Grayscale', 'premium-addons-for-elementor'),
161
- 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
162
- 'bright' => esc_html__('Bright', 'premium-addons-for-elementor'),
163
- 'sepia' => esc_html__('Sepia', 'premium-addons-for-elementor'),
164
  ],
165
  'default' => 'none',
166
  ]
@@ -168,22 +168,22 @@ class Premium_Banner extends Widget_Base {
168
 
169
  $this->add_control('premium_banner_height',
170
  [
171
- 'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
172
  'type' => Controls_Manager::SELECT,
173
  'options' => [
174
  'default' => 'Default',
175
  'custom' => 'Custom'
176
  ],
177
  'default' => 'default',
178
- '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' )
179
  ]
180
  );
181
 
182
  $this->add_responsive_control('premium_banner_custom_height',
183
  [
184
- 'label' => esc_html__( 'Min Height', 'premium-addons-for-elementor' ),
185
  'type' => Controls_Manager::NUMBER,
186
- 'description' => esc_html__( 'Set a minimum height value in pixels', 'premium-addons-for-elementor' ),
187
  'condition' => [
188
  'premium_banner_height' => 'custom'
189
  ],
@@ -195,16 +195,16 @@ class Premium_Banner extends Widget_Base {
195
 
196
  $this->add_responsive_control('premium_banner_img_vertical_align',
197
  [
198
- 'label' => esc_html__( 'Vertical Align', 'premium-addons-for-elementor' ),
199
  'type' => Controls_Manager::SELECT,
200
  'condition' => [
201
  'premium_banner_height' => 'custom'
202
  ],
203
  'options' => [
204
- 'flex-start' => esc_html__('Top', 'premium-addons-for-elementor'),
205
- 'center' => esc_html__('Middle', 'premium-addons-for-elementor'),
206
- 'flex-end' => esc_html__('Bottom', 'premium-addons-for-elementor'),
207
- 'inherit' => esc_html__('Full', 'premium-addons-for-elementor')
208
  ],
209
  'default' => 'flex-start',
210
  'selectors' => [
@@ -215,9 +215,9 @@ class Premium_Banner extends Widget_Base {
215
 
216
  $this->add_control('premium_banner_extra_class',
217
  [
218
- 'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
219
  'type' => Controls_Manager::TEXT,
220
- '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' )
221
  ]
222
  );
223
 
@@ -226,25 +226,25 @@ class Premium_Banner extends Widget_Base {
226
 
227
  $this->start_controls_section('premium_banner_image_section',
228
  [
229
- 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' )
230
  ]
231
  );
232
 
233
  $this->add_control('premium_banner_title',
234
  [
235
- 'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
236
- 'placeholder' => esc_html__( 'Give a title to this banner', 'premium-addons-for-elementor' ),
237
  'type' => Controls_Manager::TEXT,
238
  'dynamic' => [ 'active' => true ],
239
- 'default' => esc_html__( 'Premium Banner', 'premium-addons-for-elementor' ),
240
  'label_block' => false
241
  ]
242
  );
243
 
244
  $this->add_control('premium_banner_title_tag',
245
  [
246
- 'label' => esc_html__( 'HTML Tag', 'premium-addons-for-elementor' ),
247
- 'description' => esc_html__( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium-addons-for-elementor' ),
248
  'type' => Controls_Manager::SELECT,
249
  'default' => 'h3',
250
  'options' => [
@@ -262,25 +262,25 @@ class Premium_Banner extends Widget_Base {
262
 
263
  $this->add_control('premium_banner_description_hint',
264
  [
265
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
266
  'type' => Controls_Manager::HEADING,
267
  ]
268
  );
269
 
270
  $this->add_control('premium_banner_description',
271
  [
272
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
273
- 'description' => esc_html__( 'Give the description to this banner', 'premium-addons-for-elementor' ),
274
  'type' => Controls_Manager::WYSIWYG,
275
  'dynamic' => [ 'active' => true ],
276
- 'default' => esc_html__( 'Premium Banner gives you a wide range of styles and options that you will definitely fall in love with', 'premium-addons-for-elementor' ),
277
  'label_block' => true
278
  ]
279
  );
280
 
281
  $this->add_control('premium_banner_link_switcher',
282
  [
283
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
284
  'type' => Controls_Manager::SWITCHER,
285
  'condition' => [
286
  'premium_banner_link_url_switch!' => 'yes'
@@ -291,7 +291,7 @@ class Premium_Banner extends Widget_Base {
291
 
292
  $this->add_control('premium_banner_more_text',
293
  [
294
- 'label' => esc_html__('Text','premium-addons-for-elementor'),
295
  'type' => Controls_Manager::TEXT,
296
  'dynamic' => [ 'active' => true ],
297
  'default' => 'Click Here',
@@ -304,11 +304,11 @@ class Premium_Banner extends Widget_Base {
304
 
305
  $this->add_control('premium_banner_link_selection',
306
  [
307
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
308
  'type' => Controls_Manager::SELECT,
309
  'options' => [
310
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
311
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
312
  ],
313
  'default' => 'url',
314
  'label_block' => true,
@@ -321,7 +321,7 @@ class Premium_Banner extends Widget_Base {
321
 
322
  $this->add_control('premium_banner_link',
323
  [
324
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
325
  'type' => Controls_Manager::URL,
326
  'default' => [
327
  'url' => '#',
@@ -338,7 +338,7 @@ class Premium_Banner extends Widget_Base {
338
 
339
  $this->add_control('premium_banner_existing_link',
340
  [
341
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
342
  'type' => Controls_Manager::SELECT2,
343
  'options' => $this->getTemplateInstance()->get_all_post(),
344
  'multiple' => false,
@@ -354,19 +354,19 @@ class Premium_Banner extends Widget_Base {
354
 
355
  $this->add_control('premium_banner_title_text_align',
356
  [
357
- 'label' => esc_html__('Alignment', 'premium-addons-for-elementor'),
358
  'type' => Controls_Manager::CHOOSE,
359
  'options' => [
360
  'left' => [
361
- 'title' => esc_html__('Left', 'premium-addons-for-elementor'),
362
  'icon' => 'fa fa-align-left'
363
  ],
364
  'center' => [
365
- 'title' => esc_html__('Center', 'premium-addons-for-elementor'),
366
  'icon' => 'fa fa-align-center'
367
  ],
368
  'right' => [
369
- 'title' => esc_html__('Right', 'premium-addons-for-elementor'),
370
  'icon' => 'fa fa-align-right'
371
  ],
372
  ],
@@ -382,23 +382,23 @@ class Premium_Banner extends Widget_Base {
382
 
383
  $this->start_controls_section('premium_banner_responsive_section',
384
  [
385
- 'label' => esc_html__('Responsive', 'premium-addons-for-elementor'),
386
  ]
387
  );
388
 
389
  $this->add_control('premium_banner_responsive_switcher',
390
  [
391
- 'label' => esc_html__('Responsive Controls', 'premium-addons-for-elementor'),
392
  'type' => Controls_Manager::SWITCHER,
393
- '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')
394
  ]
395
  );
396
 
397
  $this->add_control('premium_banner_min_range',
398
  [
399
- 'label' => esc_html__('Minimum Size', 'premium-addons-for-elementor'),
400
  'type' => Controls_Manager::NUMBER,
401
- 'description'=> esc_html__('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
402
  'default' => 1,
403
  'condition' => [
404
  'premium_banner_responsive_switcher' => 'yes'
@@ -408,9 +408,9 @@ class Premium_Banner extends Widget_Base {
408
 
409
  $this->add_control('premium_banner_max_range',
410
  [
411
- 'label' => esc_html__('Maximum Size', 'premium-addons-for-elementor'),
412
  'type' => Controls_Manager::NUMBER,
413
- 'description'=> esc_html__('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
414
  'default' => 767,
415
  'condition' => [
416
  'premium_banner_responsive_switcher' => 'yes'
@@ -422,14 +422,14 @@ class Premium_Banner extends Widget_Base {
422
 
423
  $this->start_controls_section('premium_banner_opacity_style',
424
  [
425
- 'label' => esc_html__( 'Image', 'premium-addons-for-elementor' ),
426
  'tab' => Controls_Manager::TAB_STYLE
427
  ]
428
  );
429
 
430
  $this->add_control('premium_banner_image_bg_color',
431
  [
432
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
433
  'type' => Controls_Manager::COLOR,
434
  'selectors' => [
435
  '{{WRAPPER}} .premium_addons-banner-ib' => 'background: {{VALUE}};'
@@ -439,7 +439,7 @@ class Premium_Banner extends Widget_Base {
439
 
440
  $this->add_control('premium_banner_image_opacity',
441
  [
442
- 'label' => esc_html__( 'Image Opacity', 'premium-addons-for-elementor' ),
443
  'type' => Controls_Manager::SLIDER,
444
  'default' => [
445
  'size' => 1
@@ -460,7 +460,7 @@ class Premium_Banner extends Widget_Base {
460
 
461
  $this->add_control('premium_banner_image_hover_opacity',
462
  [
463
- 'label' => esc_html__( 'Hover Opacity', 'premium-addons-for-elementor' ),
464
  'type' => Controls_Manager::SLIDER,
465
  'default' => [
466
  'size' => 1
@@ -489,7 +489,7 @@ class Premium_Banner extends Widget_Base {
489
  $this->add_responsive_control(
490
  'premium_banner_image_border_radius',
491
  [
492
- 'label' => esc_html__( 'Border Radius', 'premium-addons-for-elementor' ),
493
  'type' => Controls_Manager::SLIDER,
494
  'size_units' => ['px', '%' ,'em'],
495
  'selectors' => [
@@ -502,14 +502,14 @@ class Premium_Banner extends Widget_Base {
502
 
503
  $this->start_controls_section('premium_banner_title_style',
504
  [
505
- 'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
506
  'tab' => Controls_Manager::TAB_STYLE
507
  ]
508
  );
509
 
510
  $this->add_control('premium_banner_color_of_title',
511
  [
512
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
513
  'type' => Controls_Manager::COLOR,
514
  'scheme' => [
515
  'type' => Scheme_Color::get_type(),
@@ -523,10 +523,10 @@ class Premium_Banner extends Widget_Base {
523
 
524
  $this->add_control('premium_banner_style2_title_bg',
525
  [
526
- 'label' => esc_html__( 'Title Background', 'premium-addons-for-elementor' ),
527
  'type' => Controls_Manager::COLOR,
528
  'default' => '#f2f2f2',
529
- 'description' => esc_html__( 'Choose a background color for the title', 'premium-addons-for-elementor' ),
530
  'condition' => [
531
  'premium_banner_image_animation' => 'premium_banner_animation5'
532
  ],
@@ -548,7 +548,7 @@ class Premium_Banner extends Widget_Base {
548
  $this->add_group_control(
549
  Group_Control_Text_Shadow::get_type(),
550
  [
551
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
552
  'name' => 'premium_banner_title_shadow',
553
  'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title'
554
  ]
@@ -558,14 +558,14 @@ class Premium_Banner extends Widget_Base {
558
 
559
  $this->start_controls_section('premium_banner_styles_of_content',
560
  [
561
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
562
  'tab' => Controls_Manager::TAB_STYLE
563
  ]
564
  );
565
 
566
  $this->add_control('premium_banner_color_of_content',
567
  [
568
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
569
  'type' => Controls_Manager::COLOR,
570
  'scheme' => [
571
  'type' => Scheme_Color::get_type(),
@@ -589,7 +589,7 @@ class Premium_Banner extends Widget_Base {
589
  $this->add_group_control(
590
  Group_Control_Text_Shadow::get_type(),
591
  [
592
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
593
  'name' => 'premium_banner_description_shadow',
594
  'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
595
  ]
@@ -599,7 +599,7 @@ class Premium_Banner extends Widget_Base {
599
 
600
  $this->start_controls_section('premium_banner_styles_of_button',
601
  [
602
- 'label' => esc_html__( 'Button', 'premium-addons-for-elementor' ),
603
  'tab' => Controls_Manager::TAB_STYLE,
604
  'condition' => [
605
  'premium_banner_link_switcher' => 'yes',
@@ -610,7 +610,7 @@ class Premium_Banner extends Widget_Base {
610
 
611
  $this->add_control('premium_banner_color_of_button',
612
  [
613
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
614
  'type' => Controls_Manager::COLOR,
615
  'scheme' => [
616
  'type' => Scheme_Color::get_type(),
@@ -624,7 +624,7 @@ class Premium_Banner extends Widget_Base {
624
 
625
  $this->add_control('premium_banner_hover_color_of_button',
626
  [
627
- 'label' => esc_html__( 'Hover Color', 'premium-addons-for-elementor' ),
628
  'type' => Controls_Manager::COLOR,
629
  'scheme' => [
630
  'type' => Scheme_Color::get_type(),
@@ -648,7 +648,7 @@ class Premium_Banner extends Widget_Base {
648
  $this->add_control(
649
  'premium_banner_backcolor_of_button',
650
  [
651
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
652
  'type' => Controls_Manager::COLOR,
653
  'selectors' => [
654
  '{{WRAPPER}} .premium_banner .premium-banner-link' => 'background-color: {{VALUE}};'
@@ -658,7 +658,7 @@ class Premium_Banner extends Widget_Base {
658
 
659
  $this->add_control('premium_banner_hover_backcolor_of_button',
660
  [
661
- 'label' => esc_html__( 'Hover Background Color', 'premium-addons-for-elementor' ),
662
  'type' => Controls_Manager::COLOR,
663
  'selectors' => [
664
  '{{WRAPPER}} .premium_banner .premium-banner-link:hover' => 'background-color: {{VALUE}};'
@@ -676,7 +676,7 @@ class Premium_Banner extends Widget_Base {
676
 
677
  $this->add_control('premium_banner_button_border_radius',
678
  [
679
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
680
  'type' => Controls_Manager::SLIDER,
681
  'size_units' => ['px', '%' ,'em'],
682
  'selectors' => [
@@ -688,7 +688,7 @@ class Premium_Banner extends Widget_Base {
688
  $this->add_group_control(
689
  Group_Control_Text_Shadow::get_type(),
690
  [
691
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
692
  'name' => 'premium_banner_button_shadow',
693
  'selector' => '{{WRAPPER}} .premium_banner .premium-banner-link',
694
  ]
@@ -696,7 +696,7 @@ class Premium_Banner extends Widget_Base {
696
 
697
  $this->add_responsive_control('premium_banner_button_padding',
698
  [
699
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
700
  'type' => Controls_Manager::DIMENSIONS,
701
  'size_units' => ['px', 'em', '%'],
702
  'selectors' => [
39
 
40
  $this->start_controls_section('premium_banner_global_settings',
41
  [
42
+ 'label' => __( 'Image', 'premium-addons-for-elementor' )
43
  ]
44
  );
45
 
46
  $this->add_control('premium_banner_image',
47
  [
48
+ 'label' => __( 'Upload Image', 'premium-addons-for-elementor' ),
49
+ 'description' => __( 'Select an image for the Banner', 'premium-addons-for-elementor' ),
50
  'type' => Controls_Manager::MEDIA,
51
  'dynamic' => [ 'active' => true ],
52
  'default' => [
58
 
59
  $this->add_control('premium_banner_link_url_switch',
60
  [
61
+ 'label' => __('Link', 'premium-addons-for-elementor'),
62
  'type' => Controls_Manager::SWITCHER
63
  ]
64
  );
65
 
66
  $this->add_control('premium_banner_image_link_switcher',
67
  [
68
+ 'label' => __( 'Custom Link', 'premium-addons-for-elementor' ),
69
  'type' => Controls_Manager::SWITCHER,
70
+ 'description' => __( 'Add a custom link to the banner', 'premium-addons-for-elementor' ),
71
  'condition' => [
72
  'premium_banner_link_url_switch' => 'yes',
73
  ],
76
 
77
  $this->add_control('premium_banner_image_custom_link',
78
  [
79
+ 'label' => __( 'Set custom Link', 'premium-addons-for-elementor' ),
80
  'type' => Controls_Manager::URL,
81
+ 'description' => __( 'What custom link you want to set to banner?', 'premium-addons-for-elementor' ),
82
  'condition' => [
83
  'premium_banner_image_link_switcher' => 'yes',
84
  'premium_banner_link_url_switch' => 'yes'
89
 
90
  $this->add_control('premium_banner_image_existing_page_link',
91
  [
92
+ 'label' => __( 'Existing Page', 'premium-addons-for-elementor' ),
93
  'type' => Controls_Manager::SELECT2,
94
+ 'description' => __( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
95
  'condition' => [
96
  'premium_banner_image_link_switcher!' => 'yes',
97
  'premium_banner_link_url_switch' => 'yes'
103
 
104
  $this->add_control('premium_banner_image_link_open_new_tab',
105
  [
106
+ 'label' => __( 'New Tab', 'premium-addons-for-elementor' ),
107
  'type' => Controls_Manager::SWITCHER,
108
+ 'description' => __( 'Choose if you want the link be opened in a new tab or not', 'premium-addons-for-elementor' ),
109
  'condition' => [
110
  'premium_banner_link_url_switch' => 'yes'
111
  ]
114
 
115
  $this->add_control('premium_banner_image_link_add_nofollow',
116
  [
117
+ 'label' => __( 'Nofollow Option', 'premium-addons-for-elementor' ),
118
  'type' => Controls_Manager::SWITCHER,
119
+ 'description' => __('if you choose yes, the link will not be counted in search engines', 'premium-addons-for-elementor' ),
120
  'condition' => [
121
  'premium_banner_link_url_switch' => 'yes'
122
  ]
125
 
126
  $this->add_control('premium_banner_image_animation',
127
  [
128
+ 'label' => __( 'Effect', 'premium-addons-for-elementor' ),
129
  'type' => Controls_Manager::SELECT,
130
  'default' => 'premium_banner_animation1',
131
+ 'description' => __( 'Choose a hover effect for the banner', 'premium-addons-for-elementor' ),
132
  'options' => [
133
  'premium_banner_animation1' => 'Effect 1',
134
  'premium_banner_animation5' => 'Effect 2',
142
 
143
  $this->add_control('premium_banner_active',
144
  [
145
+ 'label' => __( 'Always Hovered', 'premium-addons-for-elementor' ),
146
  'type' => Controls_Manager::SWITCHER,
147
+ 'description' => __( 'Choose if you want the effect to be always triggered', 'premium-addons-for-elementor' )
148
  ]
149
  );
150
 
151
  $this->add_control('premium_banner_hover_effect',
152
  [
153
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
154
  'type' => Controls_Manager::SELECT,
155
  'options' => [
156
+ 'none' => __('None', 'premium-addons-for-elementor'),
157
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
158
+ 'zoomout' => __('Zoom Out', 'premium-addons-for-elementor'),
159
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
160
+ 'grayscale' => __('Grayscale', 'premium-addons-for-elementor'),
161
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
162
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
163
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
164
  ],
165
  'default' => 'none',
166
  ]
168
 
169
  $this->add_control('premium_banner_height',
170
  [
171
+ 'label' => __( 'Height', 'premium-addons-for-elementor' ),
172
  'type' => Controls_Manager::SELECT,
173
  'options' => [
174
  'default' => 'Default',
175
  'custom' => 'Custom'
176
  ],
177
  'default' => 'default',
178
+ 'description' => __( 'Choose if you want to set a custom height for the banner or keep it as it is', 'premium-addons-for-elementor' )
179
  ]
180
  );
181
 
182
  $this->add_responsive_control('premium_banner_custom_height',
183
  [
184
+ 'label' => __( 'Min Height', 'premium-addons-for-elementor' ),
185
  'type' => Controls_Manager::NUMBER,
186
+ 'description' => __( 'Set a minimum height value in pixels', 'premium-addons-for-elementor' ),
187
  'condition' => [
188
  'premium_banner_height' => 'custom'
189
  ],
195
 
196
  $this->add_responsive_control('premium_banner_img_vertical_align',
197
  [
198
+ 'label' => __( 'Vertical Align', 'premium-addons-for-elementor' ),
199
  'type' => Controls_Manager::SELECT,
200
  'condition' => [
201
  'premium_banner_height' => 'custom'
202
  ],
203
  'options' => [
204
+ 'flex-start' => __('Top', 'premium-addons-for-elementor'),
205
+ 'center' => __('Middle', 'premium-addons-for-elementor'),
206
+ 'flex-end' => __('Bottom', 'premium-addons-for-elementor'),
207
+ 'inherit' => __('Full', 'premium-addons-for-elementor')
208
  ],
209
  'default' => 'flex-start',
210
  'selectors' => [
215
 
216
  $this->add_control('premium_banner_extra_class',
217
  [
218
+ 'label' => __( 'Extra Class', 'premium-addons-for-elementor' ),
219
  'type' => Controls_Manager::TEXT,
220
+ 'description' => __( 'Add extra class name that will be applied to the banner, and you can use this class for your customizations.', 'premium-addons-for-elementor' )
221
  ]
222
  );
223
 
226
 
227
  $this->start_controls_section('premium_banner_image_section',
228
  [
229
+ 'label' => __( 'Content', 'premium-addons-for-elementor' )
230
  ]
231
  );
232
 
233
  $this->add_control('premium_banner_title',
234
  [
235
+ 'label' => __( 'Title', 'premium-addons-for-elementor' ),
236
+ 'placeholder' => __( 'Give a title to this banner', 'premium-addons-for-elementor' ),
237
  'type' => Controls_Manager::TEXT,
238
  'dynamic' => [ 'active' => true ],
239
+ 'default' => __( 'Premium Banner', 'premium-addons-for-elementor' ),
240
  'label_block' => false
241
  ]
242
  );
243
 
244
  $this->add_control('premium_banner_title_tag',
245
  [
246
+ 'label' => __( 'HTML Tag', 'premium-addons-for-elementor' ),
247
+ 'description' => __( 'Select a heading tag for the title. Headings are defined with H1 to H6 tags', 'premium-addons-for-elementor' ),
248
  'type' => Controls_Manager::SELECT,
249
  'default' => 'h3',
250
  'options' => [
262
 
263
  $this->add_control('premium_banner_description_hint',
264
  [
265
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
266
  'type' => Controls_Manager::HEADING,
267
  ]
268
  );
269
 
270
  $this->add_control('premium_banner_description',
271
  [
272
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
273
+ 'description' => __( 'Give the description to this banner', 'premium-addons-for-elementor' ),
274
  'type' => Controls_Manager::WYSIWYG,
275
  'dynamic' => [ 'active' => true ],
276
+ 'default' => __( 'Premium Banner gives you a wide range of styles and options that you will definitely fall in love with', 'premium-addons-for-elementor' ),
277
  'label_block' => true
278
  ]
279
  );
280
 
281
  $this->add_control('premium_banner_link_switcher',
282
  [
283
+ 'label' => __('Button', 'premium-addons-for-elementor'),
284
  'type' => Controls_Manager::SWITCHER,
285
  'condition' => [
286
  'premium_banner_link_url_switch!' => 'yes'
291
 
292
  $this->add_control('premium_banner_more_text',
293
  [
294
+ 'label' => __('Text','premium-addons-for-elementor'),
295
  'type' => Controls_Manager::TEXT,
296
  'dynamic' => [ 'active' => true ],
297
  'default' => 'Click Here',
304
 
305
  $this->add_control('premium_banner_link_selection',
306
  [
307
+ 'label' => __('Link Type', 'premium-addons-for-elementor'),
308
  'type' => Controls_Manager::SELECT,
309
  'options' => [
310
+ 'url' => __('URL', 'premium-addons-for-elementor'),
311
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
312
  ],
313
  'default' => 'url',
314
  'label_block' => true,
321
 
322
  $this->add_control('premium_banner_link',
323
  [
324
+ 'label' => __('Link', 'premium-addons-for-elementor'),
325
  'type' => Controls_Manager::URL,
326
  'default' => [
327
  'url' => '#',
338
 
339
  $this->add_control('premium_banner_existing_link',
340
  [
341
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
342
  'type' => Controls_Manager::SELECT2,
343
  'options' => $this->getTemplateInstance()->get_all_post(),
344
  'multiple' => false,
354
 
355
  $this->add_control('premium_banner_title_text_align',
356
  [
357
+ 'label' => __('Alignment', 'premium-addons-for-elementor'),
358
  'type' => Controls_Manager::CHOOSE,
359
  'options' => [
360
  'left' => [
361
+ 'title' => __('Left', 'premium-addons-for-elementor'),
362
  'icon' => 'fa fa-align-left'
363
  ],
364
  'center' => [
365
+ 'title' => __('Center', 'premium-addons-for-elementor'),
366
  'icon' => 'fa fa-align-center'
367
  ],
368
  'right' => [
369
+ 'title' => __('Right', 'premium-addons-for-elementor'),
370
  'icon' => 'fa fa-align-right'
371
  ],
372
  ],
382
 
383
  $this->start_controls_section('premium_banner_responsive_section',
384
  [
385
+ 'label' => __('Responsive', 'premium-addons-for-elementor'),
386
  ]
387
  );
388
 
389
  $this->add_control('premium_banner_responsive_switcher',
390
  [
391
+ 'label' => __('Responsive Controls', 'premium-addons-for-elementor'),
392
  'type' => Controls_Manager::SWITCHER,
393
+ 'description' => __('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')
394
  ]
395
  );
396
 
397
  $this->add_control('premium_banner_min_range',
398
  [
399
+ 'label' => __('Minimum Size', 'premium-addons-for-elementor'),
400
  'type' => Controls_Manager::NUMBER,
401
+ 'description'=> __('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
402
  'default' => 1,
403
  'condition' => [
404
  'premium_banner_responsive_switcher' => 'yes'
408
 
409
  $this->add_control('premium_banner_max_range',
410
  [
411
+ 'label' => __('Maximum Size', 'premium-addons-for-elementor'),
412
  'type' => Controls_Manager::NUMBER,
413
+ 'description'=> __('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
414
  'default' => 767,
415
  'condition' => [
416
  'premium_banner_responsive_switcher' => 'yes'
422
 
423
  $this->start_controls_section('premium_banner_opacity_style',
424
  [
425
+ 'label' => __( 'Image', 'premium-addons-for-elementor' ),
426
  'tab' => Controls_Manager::TAB_STYLE
427
  ]
428
  );
429
 
430
  $this->add_control('premium_banner_image_bg_color',
431
  [
432
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
433
  'type' => Controls_Manager::COLOR,
434
  'selectors' => [
435
  '{{WRAPPER}} .premium_addons-banner-ib' => 'background: {{VALUE}};'
439
 
440
  $this->add_control('premium_banner_image_opacity',
441
  [
442
+ 'label' => __( 'Image Opacity', 'premium-addons-for-elementor' ),
443
  'type' => Controls_Manager::SLIDER,
444
  'default' => [
445
  'size' => 1
460
 
461
  $this->add_control('premium_banner_image_hover_opacity',
462
  [
463
+ 'label' => __( 'Hover Opacity', 'premium-addons-for-elementor' ),
464
  'type' => Controls_Manager::SLIDER,
465
  'default' => [
466
  'size' => 1
489
  $this->add_responsive_control(
490
  'premium_banner_image_border_radius',
491
  [
492
+ 'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
493
  'type' => Controls_Manager::SLIDER,
494
  'size_units' => ['px', '%' ,'em'],
495
  'selectors' => [
502
 
503
  $this->start_controls_section('premium_banner_title_style',
504
  [
505
+ 'label' => __( 'Title', 'premium-addons-for-elementor' ),
506
  'tab' => Controls_Manager::TAB_STYLE
507
  ]
508
  );
509
 
510
  $this->add_control('premium_banner_color_of_title',
511
  [
512
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
513
  'type' => Controls_Manager::COLOR,
514
  'scheme' => [
515
  'type' => Scheme_Color::get_type(),
523
 
524
  $this->add_control('premium_banner_style2_title_bg',
525
  [
526
+ 'label' => __( 'Title Background', 'premium-addons-for-elementor' ),
527
  'type' => Controls_Manager::COLOR,
528
  'default' => '#f2f2f2',
529
+ 'description' => __( 'Choose a background color for the title', 'premium-addons-for-elementor' ),
530
  'condition' => [
531
  'premium_banner_image_animation' => 'premium_banner_animation5'
532
  ],
548
  $this->add_group_control(
549
  Group_Control_Text_Shadow::get_type(),
550
  [
551
+ 'label' => __('Shadow','premium-addons-for-elementor'),
552
  'name' => 'premium_banner_title_shadow',
553
  'selector' => '{{WRAPPER}} .premium_addons-banner-ib-desc .premium_banner_title'
554
  ]
558
 
559
  $this->start_controls_section('premium_banner_styles_of_content',
560
  [
561
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
562
  'tab' => Controls_Manager::TAB_STYLE
563
  ]
564
  );
565
 
566
  $this->add_control('premium_banner_color_of_content',
567
  [
568
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
569
  'type' => Controls_Manager::COLOR,
570
  'scheme' => [
571
  'type' => Scheme_Color::get_type(),
589
  $this->add_group_control(
590
  Group_Control_Text_Shadow::get_type(),
591
  [
592
+ 'label' => __('Shadow','premium-addons-for-elementor'),
593
  'name' => 'premium_banner_description_shadow',
594
  'selector' => '{{WRAPPER}} .premium_banner .premium_banner_content',
595
  ]
599
 
600
  $this->start_controls_section('premium_banner_styles_of_button',
601
  [
602
+ 'label' => __( 'Button', 'premium-addons-for-elementor' ),
603
  'tab' => Controls_Manager::TAB_STYLE,
604
  'condition' => [
605
  'premium_banner_link_switcher' => 'yes',
610
 
611
  $this->add_control('premium_banner_color_of_button',
612
  [
613
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
614
  'type' => Controls_Manager::COLOR,
615
  'scheme' => [
616
  'type' => Scheme_Color::get_type(),
624
 
625
  $this->add_control('premium_banner_hover_color_of_button',
626
  [
627
+ 'label' => __( 'Hover Color', 'premium-addons-for-elementor' ),
628
  'type' => Controls_Manager::COLOR,
629
  'scheme' => [
630
  'type' => Scheme_Color::get_type(),
648
  $this->add_control(
649
  'premium_banner_backcolor_of_button',
650
  [
651
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
652
  'type' => Controls_Manager::COLOR,
653
  'selectors' => [
654
  '{{WRAPPER}} .premium_banner .premium-banner-link' => 'background-color: {{VALUE}};'
658
 
659
  $this->add_control('premium_banner_hover_backcolor_of_button',
660
  [
661
+ 'label' => __( 'Hover Background Color', 'premium-addons-for-elementor' ),
662
  'type' => Controls_Manager::COLOR,
663
  'selectors' => [
664
  '{{WRAPPER}} .premium_banner .premium-banner-link:hover' => 'background-color: {{VALUE}};'
676
 
677
  $this->add_control('premium_banner_button_border_radius',
678
  [
679
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
680
  'type' => Controls_Manager::SLIDER,
681
  'size_units' => ['px', '%' ,'em'],
682
  'selectors' => [
688
  $this->add_group_control(
689
  Group_Control_Text_Shadow::get_type(),
690
  [
691
+ 'label' => __('Shadow','premium-addons-for-elementor'),
692
  'name' => 'premium_banner_button_shadow',
693
  'selector' => '{{WRAPPER}} .premium_banner .premium-banner-link',
694
  ]
696
 
697
  $this->add_responsive_control('premium_banner_button_padding',
698
  [
699
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
700
  'type' => Controls_Manager::DIMENSIONS,
701
  'size_units' => ['px', 'em', '%'],
702
  'selectors' => [
widgets/premium-blog.php CHANGED
@@ -40,26 +40,26 @@ class Premium_Blog extends Widget_Base {
40
  /* Start Content Section */
41
  $this->start_controls_section('premium_blog_general_settings',
42
  [
43
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
44
  ]
45
  );
46
 
47
  /*Hover Image Effect*/
48
  $this->add_control('premium_blog_hover_image_effect',
49
  [
50
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
51
  'type' => Controls_Manager::SELECT,
52
- 'description' => esc_html__('Choose a hover effect for the image','premium-addons-for-elementor'),
53
  'options' => [
54
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
55
- 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
56
- 'zoomout'=> esc_html__('Zoom Out', 'premium-addons-for-elementor'),
57
- 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
58
- 'gray' => esc_html__('Grayscale', 'premium-addons-for-elementor'),
59
- 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
60
- 'bright' => esc_html__('Bright', 'premium-addons-for-elementor'),
61
- 'sepia' => esc_html__('Sepia', 'premium-addons-for-elementor'),
62
- 'trans' => esc_html__('Translate', 'premium-addons-for-elementor'),
63
  ],
64
  'default' => 'zoomin',
65
  'label_block' => true
@@ -69,15 +69,15 @@ class Premium_Blog extends Widget_Base {
69
  /*Hover Image Effect*/
70
  $this->add_control('premium_blog_hover_color_effect',
71
  [
72
- 'label' => esc_html__('Color Effect', 'premium-addons-for-elementor'),
73
  'type' => Controls_Manager::SELECT,
74
- 'description' => esc_html__('Choose an overlay color effect','premium-addons-for-elementor'),
75
  'options' => [
76
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
77
- 'framed' => esc_html__('Framed', 'premium-addons-for-elementor'),
78
- 'diagonal' => esc_html__('Diagonal', 'premium-addons-for-elementor'),
79
- 'bordered' => esc_html__('Bordered', 'premium-addons-for-elementor'),
80
- 'squares' => esc_html__('Squares', 'premium-addons-for-elementor'),
81
  ],
82
  'default' => 'framed',
83
  'label_block' => true
@@ -90,16 +90,16 @@ class Premium_Blog extends Widget_Base {
90
  /*Start Content Settings Section*/
91
  $this->start_controls_section('premium_blog_content_settings',
92
  [
93
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
94
  ]
95
  );
96
 
97
  /*Categories Filter*/
98
  $this->add_control('premium_blog_categories',
99
  [
100
- 'label' => esc_html__( 'Categories', 'essential-addons-elementor' ),
101
  'type' => Controls_Manager::SELECT2,
102
- 'description' => esc_html__('Select the categories you want to show','premium-addons-for-elementor'),
103
  'label_block' => true,
104
  'multiple' => true,
105
  'options' => premium_addons_post_type_categories(),
@@ -108,8 +108,8 @@ class Premium_Blog extends Widget_Base {
108
 
109
  $this->add_control('premium_blog_title_tag',
110
  [
111
- 'label' => esc_html__( 'Title HTML Tag', 'premium-addons-for-elementor' ),
112
- 'description' => esc_html__( 'Select a heading tag for the post title.', 'premium-addons-for-elementor' ),
113
  'type' => Controls_Manager::SELECT,
114
  'default' => 'h2',
115
  'options' => [
@@ -127,7 +127,7 @@ class Premium_Blog extends Widget_Base {
127
  /*Grid*/
128
  $this->add_control('premium_blog_grid',
129
  [
130
- 'label' => esc_html__('Grid', 'premium-addons-for-elementor'),
131
  'type' => Controls_Manager::SWITCHER,
132
  ]
133
  );
@@ -135,7 +135,7 @@ class Premium_Blog extends Widget_Base {
135
  /*Masonry*/
136
  $this->add_control('premium_blog_masonry',
137
  [
138
- 'label' => esc_html__('Masonry', 'premium-addons-for-elementor'),
139
  'type' => Controls_Manager::SWITCHER,
140
  'return_value' => 'true',
141
  'condition' => [
@@ -147,12 +147,12 @@ class Premium_Blog extends Widget_Base {
147
  /*Grid Number of Columns*/
148
  $this->add_control('premium_blog_columns_number',
149
  [
150
- 'label' => esc_html__('Number of Columns', 'premium-addons-for-elementor'),
151
  'type' => Controls_Manager::SELECT,
152
  'options' => [
153
- '50%' => esc_html__('2 Columns', 'premium-addons-for-elementor'),
154
- '33.33%'=> esc_html__('3 Columns', 'premium-addons-for-elementor'),
155
- '25%' => esc_html__('4 Columns', 'premium-addons-for-elementor'),
156
  ],
157
  'default' => '50%',
158
  'selectors' => [
@@ -167,7 +167,7 @@ class Premium_Blog extends Widget_Base {
167
  /*Grid Spacing*/
168
  $this->add_responsive_control('premium_blog_posts_spacing',
169
  [
170
- 'label' => esc_html__('Spacing', 'premium-addons-for-elementor'),
171
  'type' => Controls_Manager::SLIDER,
172
  'size_units' => ['px', '%', "em"],
173
  'range' => [
@@ -188,9 +188,9 @@ class Premium_Blog extends Widget_Base {
188
  /*Excerpt*/
189
  $this->add_control('premium_blog_excerpt',
190
  [
191
- 'label' => esc_html__('Excerpt', 'premium-addons-for-elementor'),
192
  'type' => Controls_Manager::SWITCHER,
193
- 'description' => esc_html__('Excerpt is used for article summary with a link to the whole entry. The default except length is 55','premium-addons-for-elementor'),
194
  'default' => 'yes',
195
  ]
196
  );
@@ -198,7 +198,7 @@ class Premium_Blog extends Widget_Base {
198
  /*Excerpt Length*/
199
  $this->add_control('premium_blog_excerpt_length',
200
  [
201
- 'label' => esc_html__('Excerpt Length', 'premium-addons-for-elementor'),
202
  'type' => Controls_Manager::NUMBER,
203
  'default' => 55,
204
  'label_block' => true,
@@ -211,11 +211,11 @@ class Premium_Blog extends Widget_Base {
211
  /*Excerpt Type*/
212
  $this->add_control('premium_blog_excerpt_type',
213
  [
214
- 'label' => esc_html__('Excerpt Type', 'premium-addons-for-elementor'),
215
  'type' => Controls_Manager::SELECT,
216
  'options' => [
217
- 'dots' => esc_html__('Dots', 'premium-addons-for-elementor'),
218
- 'link' => esc_html__('Link', 'premium-addons-for-elementor'),
219
  ],
220
  'default' => 'dots',
221
  'label_block' => true
@@ -225,9 +225,9 @@ class Premium_Blog extends Widget_Base {
225
  /*Excerpt Text*/
226
  $this->add_control('premium_blog_excerpt_text',
227
  [
228
- 'label' => esc_html__( 'Link Text', 'premium-addons-for-elementor' ),
229
  'type' => Controls_Manager::TEXT,
230
- 'default' => esc_html__('continue reading','premium-addons-for-elementor'),
231
  'condition' => [
232
  'premium_blog_excerpt' => 'yes',
233
  'premium_blog_excerpt_type' => 'link'
@@ -238,7 +238,7 @@ class Premium_Blog extends Widget_Base {
238
  /*Author Meta*/
239
  $this->add_control('premium_blog_author_meta',
240
  [
241
- 'label' => esc_html__('Author Meta', 'premium-addons-for-elementor'),
242
  'type' => Controls_Manager::SWITCHER,
243
  'default' => 'yes',
244
  ]
@@ -247,7 +247,7 @@ class Premium_Blog extends Widget_Base {
247
  /*Date Meta*/
248
  $this->add_control('premium_blog_date_meta',
249
  [
250
- 'label' => esc_html__('Date Meta', 'premium-addons-for-elementor'),
251
  'type' => Controls_Manager::SWITCHER,
252
  'default' => 'yes',
253
  ]
@@ -256,9 +256,9 @@ class Premium_Blog extends Widget_Base {
256
  /*Categories Meta*/
257
  $this->add_control('premium_blog_categories_meta',
258
  [
259
- 'label' => esc_html__('Categories Meta', 'premium-addons-for-elementor'),
260
  'type' => Controls_Manager::SWITCHER,
261
- 'description' => esc_html__('Display or hide categories mata','premium-addons-for-elementor'),
262
  'default' => 'yes',
263
  ]
264
  );
@@ -266,8 +266,8 @@ class Premium_Blog extends Widget_Base {
266
  /*Comments Meta*/
267
  $this->add_control('premium_blog_comments_meta',
268
  [
269
- 'label' => esc_html__('Comments Meta', 'premium-addons-for-elementor'),
270
- 'description' => esc_html__('Display or hide comments mata','premium-addons-for-elementor'),
271
  'type' => Controls_Manager::SWITCHER,
272
  'default' => 'yes',
273
  ]
@@ -276,9 +276,9 @@ class Premium_Blog extends Widget_Base {
276
  /*Tags Meta*/
277
  $this->add_control('premium_blog_tags_meta',
278
  [
279
- 'label' => esc_html__('Tags Meta', 'premium-addons-for-elementor'),
280
  'type' => Controls_Manager::SWITCHER,
281
- 'description' => esc_html__('Display or hide post tags','premium-addons-for-elementor'),
282
  'default' => 'yes',
283
  ]
284
  );
@@ -286,7 +286,7 @@ class Premium_Blog extends Widget_Base {
286
  /*Post Format Icon*/
287
  $this->add_control('premium_blog_post_format_icon',
288
  [
289
- 'label' => esc_html__( 'Post Format Icon', 'essential-addons-elementor' ),
290
  'type' => Controls_Manager::SWITCHER,
291
  'default' => 'yes',
292
  ]
@@ -295,9 +295,9 @@ class Premium_Blog extends Widget_Base {
295
  /*Edit Post Meta*/
296
  $this->add_control('premium_blog_edit_post',
297
  [
298
- 'label' => esc_html__('Edit Post Icon', 'premium-addons-for-elementor'),
299
  'type' => Controls_Manager::SWITCHER,
300
- 'description' => esc_html__('Display or hide edit post option','premium-addons-for-elementor'),
301
  'default' => 'yes',
302
  ]
303
  );
@@ -305,17 +305,17 @@ class Premium_Blog extends Widget_Base {
305
  /*Pagination*/
306
  $this->add_control('premium_blog_paging',
307
  [
308
- 'label' => esc_html__('Pagination', 'premium-addons-for-elementor'),
309
  'type' => Controls_Manager::SWITCHER,
310
- 'description' => esc_html__('Pagination is the process of dividing the posts into discrete pages','premium-addons-for-elementor'),
311
  ]
312
  );
313
 
314
  $this->add_control('premium_blog_new_tab',
315
  [
316
- 'label' => esc_html__('Links in New Tab', 'premium-addons-for-elementor'),
317
  'type' => Controls_Manager::SWITCHER,
318
- 'description' => esc_html__('Enable links to be opened in a new tab','premium-addons-for-elementor'),
319
  'default' => 'yes',
320
  ]
321
  );
@@ -323,8 +323,8 @@ class Premium_Blog extends Widget_Base {
323
  /*Number of Posts*/
324
  $this->add_control('premium_blog_number_of_posts',
325
  [
326
- 'label' => esc_html__('Posts Per Page', 'premium-addons-for-elementor'),
327
- 'description' => esc_html__('Choose how many posts do you want to be displayed per page','premium-addons-for-elementor'),
328
  'type' => Controls_Manager::NUMBER,
329
  'min' => 1,
330
  'default' => 1,
@@ -334,8 +334,8 @@ class Premium_Blog extends Widget_Base {
334
  /*Posts Offset*/
335
  $this->add_control('premium_blog_offset',
336
  [
337
- 'label' => esc_html__( 'Offset Count', 'premium-addons-for-elementor' ),
338
- 'description' => esc_html__('The index of post to start with','premium-addons-for-elementor'),
339
  'type' => Controls_Manager::NUMBER,
340
  'default' => '0',
341
  'min' => '0',
@@ -345,19 +345,19 @@ class Premium_Blog extends Widget_Base {
345
  /*Front Text Align*/
346
  $this->add_responsive_control('premium_flip_text_align',
347
  [
348
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
349
  'type' => Controls_Manager::CHOOSE,
350
  'options' => [
351
  'left' => [
352
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
353
  'icon' => 'fa fa-align-left',
354
  ],
355
  'center' => [
356
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
357
  'icon' => 'fa fa-align-center',
358
  ],
359
  'right' => [
360
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
361
  'icon' => 'fa fa-align-right',
362
  ],
363
  ],
@@ -375,7 +375,7 @@ class Premium_Blog extends Widget_Base {
375
  /*Start Color Style Section*/
376
  $this->start_controls_section('premium_blog_image_style_section',
377
  [
378
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
379
  'tab' => Controls_Manager::TAB_STYLE,
380
  ]
381
  );
@@ -383,7 +383,7 @@ class Premium_Blog extends Widget_Base {
383
  /*Plus Icon Color*/
384
  $this->add_control('premium_blog_plus_color',
385
  [
386
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
387
  'type' => Controls_Manager::COLOR,
388
  'scheme' => [
389
  'type' => Scheme_Color::get_type(),
@@ -398,7 +398,7 @@ class Premium_Blog extends Widget_Base {
398
  /*Overlay Color*/
399
  $this->add_control('premium_blog_overlay_color',
400
  [
401
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::COLOR,
403
  'scheme' => [
404
  'type' => Scheme_Color::get_type(),
@@ -413,7 +413,7 @@ class Premium_Blog extends Widget_Base {
413
  /*Bordered Effect Border Color*/
414
  $this->add_control('premium_blog_border_effect_color',
415
  [
416
- 'label' => esc_html__('Border Color', 'premium-addons-for-elementor'),
417
  'type' => Controls_Manager::COLOR,
418
  'scheme' => [
419
  'type' => Scheme_Color::get_type(),
@@ -433,7 +433,7 @@ class Premium_Blog extends Widget_Base {
433
 
434
  $this->start_controls_section('premium_blog_title_style_section',
435
  [
436
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
437
  'tab' => Controls_Manager::TAB_STYLE,
438
  ]
439
  );
@@ -441,7 +441,7 @@ class Premium_Blog extends Widget_Base {
441
  /*Titles Color*/
442
  $this->add_control('premium_blog_title_color',
443
  [
444
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
445
  'type' => Controls_Manager::COLOR,
446
  'scheme' => [
447
  'type' => Scheme_Color::get_type(),
@@ -465,7 +465,7 @@ class Premium_Blog extends Widget_Base {
465
  /*Titles Hover Color*/
466
  $this->add_control('premium_blog_title_hover_color',
467
  [
468
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
469
  'type' => Controls_Manager::COLOR,
470
  'scheme' => [
471
  'type' => Scheme_Color::get_type(),
@@ -481,7 +481,7 @@ class Premium_Blog extends Widget_Base {
481
 
482
  $this->start_controls_section('premium_blog_meta_style_section',
483
  [
484
- 'label' => esc_html__('Meta', 'premium-addons-for-elementor'),
485
  'tab' => Controls_Manager::TAB_STYLE,
486
  ]
487
  );
@@ -489,7 +489,7 @@ class Premium_Blog extends Widget_Base {
489
  /*Meta Color*/
490
  $this->add_control('premium_blog_meta_color',
491
  [
492
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
493
  'type' => Controls_Manager::COLOR,
494
  'scheme' => [
495
  'type' => Scheme_Color::get_type(),
@@ -514,7 +514,7 @@ class Premium_Blog extends Widget_Base {
514
  /*Meta Hover Color*/
515
  $this->add_control('premium_blog_meta_hover_color',
516
  [
517
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
518
  'type' => Controls_Manager::COLOR,
519
  'scheme' => [
520
  'type' => Scheme_Color::get_type(),
@@ -530,7 +530,7 @@ class Premium_Blog extends Widget_Base {
530
 
531
  $this->start_controls_section('premium_blog_content_style_section',
532
  [
533
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
534
  'tab' => Controls_Manager::TAB_STYLE,
535
  ]
536
  );
@@ -538,7 +538,7 @@ class Premium_Blog extends Widget_Base {
538
  /*Post Content Color*/
539
  $this->add_control('premium_blog_post_content_color',
540
  [
541
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
542
  'type' => Controls_Manager::COLOR,
543
  'scheme' => [
544
  'type' => Scheme_Color::get_type(),
@@ -564,7 +564,7 @@ class Premium_Blog extends Widget_Base {
564
  /*Content Background Color*/
565
  $this->add_control('premium_blog_content_background_color',
566
  [
567
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
568
  'type' => Controls_Manager::COLOR,
569
  'default' => '#f5f5f5',
570
  'selectors' => [
@@ -577,7 +577,7 @@ class Premium_Blog extends Widget_Base {
577
 
578
  $this->start_controls_section('premium_blog_tags_style_section',
579
  [
580
- 'label' => esc_html__('Tags', 'premium-addons-for-elementor'),
581
  'tab' => Controls_Manager::TAB_STYLE,
582
  ]
583
  );
@@ -585,7 +585,7 @@ class Premium_Blog extends Widget_Base {
585
  /*Tags Color*/
586
  $this->add_control('premium_blog_tags_color',
587
  [
588
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
589
  'type' => Controls_Manager::COLOR,
590
  'scheme' => [
591
  'type' => Scheme_Color::get_type(),
@@ -610,7 +610,7 @@ class Premium_Blog extends Widget_Base {
610
  /*Tags Hover Color*/
611
  $this->add_control('premium_blog_tags_hoer_color',
612
  [
613
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
614
  'type' => Controls_Manager::COLOR,
615
  'scheme' => [
616
  'type' => Scheme_Color::get_type(),
@@ -627,7 +627,7 @@ class Premium_Blog extends Widget_Base {
627
  /*Post Format Icon*/
628
  $this->start_controls_section('premium_blog_format_style_section',
629
  [
630
- 'label' => esc_html__('Post Format Icon', 'premium-addons-for-elementor'),
631
  'tab' => Controls_Manager::TAB_STYLE,
632
  'condition' => [
633
  'premium_blog_post_format_icon' => 'yes'
@@ -637,9 +637,9 @@ class Premium_Blog extends Widget_Base {
637
 
638
  $this->add_control('premium_blog_format_icon_size',
639
  [
640
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
641
  'type' => Controls_Manager::SLIDER,
642
- 'description' => esc_html__('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
643
  'range' => [
644
  'em' => [
645
  'min' => 1,
@@ -657,7 +657,7 @@ class Premium_Blog extends Widget_Base {
657
  /*Post Format Icon Color*/
658
  $this->add_control('premium_blog_format_icon_color',
659
  [
660
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
661
  'type' => Controls_Manager::COLOR,
662
  'scheme' => [
663
  'type' => Scheme_Color::get_type(),
@@ -672,7 +672,7 @@ class Premium_Blog extends Widget_Base {
672
  /*Post Format Icon Color*/
673
  $this->add_control('premium_blog_format_icon_hover_color',
674
  [
675
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
676
  'type' => Controls_Manager::COLOR,
677
  'scheme' => [
678
  'type' => Scheme_Color::get_type(),
@@ -687,7 +687,7 @@ class Premium_Blog extends Widget_Base {
687
  /*Post Format Background Color*/
688
  $this->add_control('premium_blog_format_back_color',
689
  [
690
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
691
  'type' => Controls_Manager::COLOR,
692
  'scheme' => [
693
  'type' => Scheme_Color::get_type(),
@@ -702,7 +702,7 @@ class Premium_Blog extends Widget_Base {
702
  /*Post Format Hover Background Color*/
703
  $this->add_control('premium_blog_format_back_hover_color',
704
  [
705
- 'label' => esc_html__('Hover Background Color', 'premium-addons-for-elementor'),
706
  'type' => Controls_Manager::COLOR,
707
  'scheme' => [
708
  'type' => Scheme_Color::get_type(),
@@ -720,7 +720,7 @@ class Premium_Blog extends Widget_Base {
720
  /*Pagination Style*/
721
  $this->start_controls_section('premium_blog_pagination_Style',
722
  [
723
- 'label' => esc_html__('Pagination Style', 'premium-addons-for-elementor'),
724
  'tab' => Controls_Manager::TAB_STYLE,
725
  'condition' => [
726
  'premium_blog_paging' => 'yes',
@@ -731,13 +731,13 @@ class Premium_Blog extends Widget_Base {
731
 
732
  $this->start_controls_tab('premium_blog_pagination_nomral',
733
  [
734
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
735
 
736
  ]);
737
 
738
  $this->add_control('prmeium_blog_pagination_color',
739
  [
740
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
741
  'type' => Controls_Manager::COLOR,
742
  'scheme' => [
743
  'type' => Scheme_Color::get_type(),
@@ -750,7 +750,7 @@ class Premium_Blog extends Widget_Base {
750
 
751
  $this->add_control('prmeium_blog_pagination_back_color',
752
  [
753
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
754
  'type' => Controls_Manager::COLOR,
755
  'scheme' => [
756
  'type' => Scheme_Color::get_type(),
@@ -765,13 +765,13 @@ class Premium_Blog extends Widget_Base {
765
 
766
  $this->start_controls_tab('premium_blog_pagination_hover',
767
  [
768
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
769
 
770
  ]);
771
 
772
  $this->add_control('prmeium_blog_pagination_hover_color',
773
  [
774
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
775
  'type' => Controls_Manager::COLOR,
776
  'scheme' => [
777
  'type' => Scheme_Color::get_type(),
@@ -784,7 +784,7 @@ class Premium_Blog extends Widget_Base {
784
 
785
  $this->add_control('prmeium_blog_pagination_back_hover_color',
786
  [
787
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
788
  'type' => Controls_Manager::COLOR,
789
  'scheme' => [
790
  'type' => Scheme_Color::get_type(),
@@ -839,7 +839,13 @@ class Premium_Blog extends Widget_Base {
839
 
840
  protected function render() {
841
 
842
- if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } else if ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; }
 
 
 
 
 
 
843
 
844
  // get our input from the widget settings.
845
  $settings = $this->get_settings();
@@ -879,116 +885,109 @@ class Premium_Blog extends Widget_Base {
879
  break;
880
  }
881
 
882
-
883
-
884
-
885
- ?>
886
- <div class="premium-blog-wrap <?php echo esc_attr($col_number); ?>" data-pa-masonry="<?php echo esc_attr($settings['premium_blog_masonry']); ?>">
887
- <?php
888
- if(count($posts)){
889
- global $post;
890
  ?>
 
891
  <?php
892
- foreach($posts as $post){
893
- setup_postdata($post);
 
 
894
  ?>
895
- <div class="premium-blog-post-container">
896
- <div class="premium-blog-thumb-effect-wrapper">
897
- <div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
898
- <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_post_thumbnail('full'); ?></a>
899
- </div>
900
- <div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
901
- <a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"></a>
902
- <?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
903
- <div class="premium-blog-bordered-border-container"></div>
904
- <?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
905
- <div class="premium-blog-squares-square-container"></div>
906
- <?php endif; ?>
907
- </div>
908
- </div>
909
- <div class="premium-blog-content-wrapper <?php echo (!has_post_thumbnail()) ? 'empty-thumb' : ''; ?>">
910
- <div class="premium-blog-inner-container">
911
- <?php if( $settings['premium_blog_post_format_icon'] === 'yes' ) : ?>
912
- <div class="premium-blog-format-container">
913
- <a class="premium-blog-format-link" href="<?php the_permalink(); ?>" title="<?php if( get_post_format() === ' ') : echo 'standard' ; else : echo get_post_format(); endif; ?>" target="<?php echo esc_attr($target); ?>"><i class="premium-blog-format-icon fa fa-<?php if ( get_post_format() === 'aside' ) : echo 'file-text-o'; ?>
914
- <?php elseif ( get_post_format() === 'audio' ) : echo 'music'; ?>
915
- <?php elseif ( get_post_format() === 'gallery' ) : echo 'file-image-o'; ?>
916
- <?php elseif ( get_post_format() === 'image' ) : echo 'picture-o'; ?>
917
- <?php elseif ( get_post_format() === 'link' ) : echo 'link'; ?>
918
- <?php elseif ( get_post_format() === 'quote' ) :echo 'quote-left'; ?>
919
- <?php elseif ( get_post_format() === 'video' ) : echo 'video-camera'; ?>
920
- <?php else : echo 'thumb-tack'; ?>
921
- <?php endif; ?>"></i></a>
922
- </div>
923
- <?php endif; ?>
924
- <div class="premium-blog-entry-container">
925
- <<?php echo $settings['premium_blog_title_tag']; ?> class="premium-blog-entry-title"><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_title(); ?></a></<?php echo $settings['premium_blog_title_tag']; ?>>
926
- <div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
927
- <?php if( $settings['premium_blog_author_meta'] === 'yes' ) : ?>
928
- <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
929
- <?php endif; ?>
930
- <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
931
- <span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_time($date_format); ?></a></span>
932
- <?php endif; ?>
933
- <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
934
- <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
935
- <?php endif; ?>
936
- <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
937
- <span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
938
- <?php endif; ?>
939
- <?php if( $settings['premium_blog_edit_post'] === 'yes' ) : ?>
940
- <span class="premium-blog-post-edit premium-blog-meta-data"><i class="fa fa-pencil fa-fw"></i><?php edit_post_link(); ?></span>
941
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
942
  </div>
943
- </div>
944
- </div>
945
- <div class="premium-blog-post-content" style="<?php if ( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
946
- <?php
947
- if ( $settings['premium_blog_excerpt'] === 'yes' ) :
948
- echo premium_addons_get_excerpt_by_id(get_the_ID(),$settings['premium_blog_excerpt_length'],$excerpt_type,$excerpt_text);
949
- else: the_content();
950
- endif; ?>
951
- </div>
952
- <div class="premium-blog-post-tags-container" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
953
- <?php if( $settings['premium_blog_tags_meta'] === 'yes' && the_tags() != '' ) : ?>
954
- <span class="premium-blog-post-tags"><i class="fa fa-tags fa-fw"></i><?php the_tags(' ', ', '); ?> </span>
955
- <?php endif; ?>
956
- </div>
957
- </div>
958
- </div>
959
- <?php }?>
960
- <div class="premium-blog-clear-fix"></div>
961
- </div>
962
- <?php if ( $settings['premium_blog_paging'] === 'yes' ) : ?>
963
- <div class="premium-blog-pagination-container">
964
- <?php
965
- $count_posts = wp_count_posts();
966
- $published_posts = $count_posts->publish;
967
-
968
- $page_tot = ceil( ( $published_posts - $offset ) / $settings['premium_blog_number_of_posts'] );
969
- if ( $page_tot > 1 ) {
970
- $big = 999999999;
971
- echo paginate_links( array(
972
- 'base' => str_replace( $big, '%#%',get_pagenum_link( 999999999, false ) ),
973
- 'format' => '?paged=%#%',
974
- 'current' => max( 1, $paged ),
975
- 'total' => $page_tot,
976
- 'prev_next' => true,
977
- 'prev_text' => esc_html__("&lsaquo; Previous"),
978
- 'next_text' => esc_html__("Next &rsaquo;"),
979
- 'end_size' => 1,
980
- 'mid_size' => 2,
981
- 'type' => 'list'
982
- ));
983
- }
984
- ?>
985
- </div>
986
- <?php
987
- endif;
988
- echo $this->get_blog_responsive_style();
989
- wp_reset_postdata();
990
-
991
- }
992
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
993
  }
994
  }
40
  /* Start Content Section */
41
  $this->start_controls_section('premium_blog_general_settings',
42
  [
43
+ 'label' => __('Image', 'premium-addons-for-elementor'),
44
  ]
45
  );
46
 
47
  /*Hover Image Effect*/
48
  $this->add_control('premium_blog_hover_image_effect',
49
  [
50
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
51
  'type' => Controls_Manager::SELECT,
52
+ 'description' => __('Choose a hover effect for the image','premium-addons-for-elementor'),
53
  'options' => [
54
+ 'none' => __('None', 'premium-addons-for-elementor'),
55
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
56
+ 'zoomout'=> __('Zoom Out', 'premium-addons-for-elementor'),
57
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
58
+ 'gray' => __('Grayscale', 'premium-addons-for-elementor'),
59
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
60
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
61
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
62
+ 'trans' => __('Translate', 'premium-addons-for-elementor'),
63
  ],
64
  'default' => 'zoomin',
65
  'label_block' => true
69
  /*Hover Image Effect*/
70
  $this->add_control('premium_blog_hover_color_effect',
71
  [
72
+ 'label' => __('Color Effect', 'premium-addons-for-elementor'),
73
  'type' => Controls_Manager::SELECT,
74
+ 'description' => __('Choose an overlay color effect','premium-addons-for-elementor'),
75
  'options' => [
76
+ 'none' => __('None', 'premium-addons-for-elementor'),
77
+ 'framed' => __('Framed', 'premium-addons-for-elementor'),
78
+ 'diagonal' => __('Diagonal', 'premium-addons-for-elementor'),
79
+ 'bordered' => __('Bordered', 'premium-addons-for-elementor'),
80
+ 'squares' => __('Squares', 'premium-addons-for-elementor'),
81
  ],
82
  'default' => 'framed',
83
  'label_block' => true
90
  /*Start Content Settings Section*/
91
  $this->start_controls_section('premium_blog_content_settings',
92
  [
93
+ 'label' => __('Content', 'premium-addons-for-elementor'),
94
  ]
95
  );
96
 
97
  /*Categories Filter*/
98
  $this->add_control('premium_blog_categories',
99
  [
100
+ 'label' => __( 'Categories', 'essential-addons-elementor' ),
101
  'type' => Controls_Manager::SELECT2,
102
+ 'description' => __('Select the categories you want to show','premium-addons-for-elementor'),
103
  'label_block' => true,
104
  'multiple' => true,
105
  'options' => premium_addons_post_type_categories(),
108
 
109
  $this->add_control('premium_blog_title_tag',
110
  [
111
+ 'label' => __( 'Title HTML Tag', 'premium-addons-for-elementor' ),
112
+ 'description' => __( 'Select a heading tag for the post title.', 'premium-addons-for-elementor' ),
113
  'type' => Controls_Manager::SELECT,
114
  'default' => 'h2',
115
  'options' => [
127
  /*Grid*/
128
  $this->add_control('premium_blog_grid',
129
  [
130
+ 'label' => __('Grid', 'premium-addons-for-elementor'),
131
  'type' => Controls_Manager::SWITCHER,
132
  ]
133
  );
135
  /*Masonry*/
136
  $this->add_control('premium_blog_masonry',
137
  [
138
+ 'label' => __('Masonry', 'premium-addons-for-elementor'),
139
  'type' => Controls_Manager::SWITCHER,
140
  'return_value' => 'true',
141
  'condition' => [
147
  /*Grid Number of Columns*/
148
  $this->add_control('premium_blog_columns_number',
149
  [
150
+ 'label' => __('Number of Columns', 'premium-addons-for-elementor'),
151
  'type' => Controls_Manager::SELECT,
152
  'options' => [
153
+ '50%' => __('2 Columns', 'premium-addons-for-elementor'),
154
+ '33.33%'=> __('3 Columns', 'premium-addons-for-elementor'),
155
+ '25%' => __('4 Columns', 'premium-addons-for-elementor'),
156
  ],
157
  'default' => '50%',
158
  'selectors' => [
167
  /*Grid Spacing*/
168
  $this->add_responsive_control('premium_blog_posts_spacing',
169
  [
170
+ 'label' => __('Spacing', 'premium-addons-for-elementor'),
171
  'type' => Controls_Manager::SLIDER,
172
  'size_units' => ['px', '%', "em"],
173
  'range' => [
188
  /*Excerpt*/
189
  $this->add_control('premium_blog_excerpt',
190
  [
191
+ 'label' => __('Excerpt', 'premium-addons-for-elementor'),
192
  'type' => Controls_Manager::SWITCHER,
193
+ 'description' => __('Excerpt is used for article summary with a link to the whole entry. The default except length is 55','premium-addons-for-elementor'),
194
  'default' => 'yes',
195
  ]
196
  );
198
  /*Excerpt Length*/
199
  $this->add_control('premium_blog_excerpt_length',
200
  [
201
+ 'label' => __('Excerpt Length', 'premium-addons-for-elementor'),
202
  'type' => Controls_Manager::NUMBER,
203
  'default' => 55,
204
  'label_block' => true,
211
  /*Excerpt Type*/
212
  $this->add_control('premium_blog_excerpt_type',
213
  [
214
+ 'label' => __('Excerpt Type', 'premium-addons-for-elementor'),
215
  'type' => Controls_Manager::SELECT,
216
  'options' => [
217
+ 'dots' => __('Dots', 'premium-addons-for-elementor'),
218
+ 'link' => __('Link', 'premium-addons-for-elementor'),
219
  ],
220
  'default' => 'dots',
221
  'label_block' => true
225
  /*Excerpt Text*/
226
  $this->add_control('premium_blog_excerpt_text',
227
  [
228
+ 'label' => __( 'Link Text', 'premium-addons-for-elementor' ),
229
  'type' => Controls_Manager::TEXT,
230
+ 'default' => __('continue reading','premium-addons-for-elementor'),
231
  'condition' => [
232
  'premium_blog_excerpt' => 'yes',
233
  'premium_blog_excerpt_type' => 'link'
238
  /*Author Meta*/
239
  $this->add_control('premium_blog_author_meta',
240
  [
241
+ 'label' => __('Author Meta', 'premium-addons-for-elementor'),
242
  'type' => Controls_Manager::SWITCHER,
243
  'default' => 'yes',
244
  ]
247
  /*Date Meta*/
248
  $this->add_control('premium_blog_date_meta',
249
  [
250
+ 'label' => __('Date Meta', 'premium-addons-for-elementor'),
251
  'type' => Controls_Manager::SWITCHER,
252
  'default' => 'yes',
253
  ]
256
  /*Categories Meta*/
257
  $this->add_control('premium_blog_categories_meta',
258
  [
259
+ 'label' => __('Categories Meta', 'premium-addons-for-elementor'),
260
  'type' => Controls_Manager::SWITCHER,
261
+ 'description' => __('Display or hide categories mata','premium-addons-for-elementor'),
262
  'default' => 'yes',
263
  ]
264
  );
266
  /*Comments Meta*/
267
  $this->add_control('premium_blog_comments_meta',
268
  [
269
+ 'label' => __('Comments Meta', 'premium-addons-for-elementor'),
270
+ 'description' => __('Display or hide comments mata','premium-addons-for-elementor'),
271
  'type' => Controls_Manager::SWITCHER,
272
  'default' => 'yes',
273
  ]
276
  /*Tags Meta*/
277
  $this->add_control('premium_blog_tags_meta',
278
  [
279
+ 'label' => __('Tags Meta', 'premium-addons-for-elementor'),
280
  'type' => Controls_Manager::SWITCHER,
281
+ 'description' => __('Display or hide post tags','premium-addons-for-elementor'),
282
  'default' => 'yes',
283
  ]
284
  );
286
  /*Post Format Icon*/
287
  $this->add_control('premium_blog_post_format_icon',
288
  [
289
+ 'label' => __( 'Post Format Icon', 'essential-addons-elementor' ),
290
  'type' => Controls_Manager::SWITCHER,
291
  'default' => 'yes',
292
  ]
295
  /*Edit Post Meta*/
296
  $this->add_control('premium_blog_edit_post',
297
  [
298
+ 'label' => __('Edit Post Icon', 'premium-addons-for-elementor'),
299
  'type' => Controls_Manager::SWITCHER,
300
+ 'description' => __('Display or hide edit post option','premium-addons-for-elementor'),
301
  'default' => 'yes',
302
  ]
303
  );
305
  /*Pagination*/
306
  $this->add_control('premium_blog_paging',
307
  [
308
+ 'label' => __('Pagination', 'premium-addons-for-elementor'),
309
  'type' => Controls_Manager::SWITCHER,
310
+ 'description' => __('Pagination is the process of dividing the posts into discrete pages','premium-addons-for-elementor'),
311
  ]
312
  );
313
 
314
  $this->add_control('premium_blog_new_tab',
315
  [
316
+ 'label' => __('Links in New Tab', 'premium-addons-for-elementor'),
317
  'type' => Controls_Manager::SWITCHER,
318
+ 'description' => __('Enable links to be opened in a new tab','premium-addons-for-elementor'),
319
  'default' => 'yes',
320
  ]
321
  );
323
  /*Number of Posts*/
324
  $this->add_control('premium_blog_number_of_posts',
325
  [
326
+ 'label' => __('Posts Per Page', 'premium-addons-for-elementor'),
327
+ 'description' => __('Choose how many posts do you want to be displayed per page','premium-addons-for-elementor'),
328
  'type' => Controls_Manager::NUMBER,
329
  'min' => 1,
330
  'default' => 1,
334
  /*Posts Offset*/
335
  $this->add_control('premium_blog_offset',
336
  [
337
+ 'label' => __( 'Offset Count', 'premium-addons-for-elementor' ),
338
+ 'description' => __('The index of post to start with','premium-addons-for-elementor'),
339
  'type' => Controls_Manager::NUMBER,
340
  'default' => '0',
341
  'min' => '0',
345
  /*Front Text Align*/
346
  $this->add_responsive_control('premium_flip_text_align',
347
  [
348
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
349
  'type' => Controls_Manager::CHOOSE,
350
  'options' => [
351
  'left' => [
352
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
353
  'icon' => 'fa fa-align-left',
354
  ],
355
  'center' => [
356
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
357
  'icon' => 'fa fa-align-center',
358
  ],
359
  'right' => [
360
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
361
  'icon' => 'fa fa-align-right',
362
  ],
363
  ],
375
  /*Start Color Style Section*/
376
  $this->start_controls_section('premium_blog_image_style_section',
377
  [
378
+ 'label' => __('Image', 'premium-addons-for-elementor'),
379
  'tab' => Controls_Manager::TAB_STYLE,
380
  ]
381
  );
383
  /*Plus Icon Color*/
384
  $this->add_control('premium_blog_plus_color',
385
  [
386
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
387
  'type' => Controls_Manager::COLOR,
388
  'scheme' => [
389
  'type' => Scheme_Color::get_type(),
398
  /*Overlay Color*/
399
  $this->add_control('premium_blog_overlay_color',
400
  [
401
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::COLOR,
403
  'scheme' => [
404
  'type' => Scheme_Color::get_type(),
413
  /*Bordered Effect Border Color*/
414
  $this->add_control('premium_blog_border_effect_color',
415
  [
416
+ 'label' => __('Border Color', 'premium-addons-for-elementor'),
417
  'type' => Controls_Manager::COLOR,
418
  'scheme' => [
419
  'type' => Scheme_Color::get_type(),
433
 
434
  $this->start_controls_section('premium_blog_title_style_section',
435
  [
436
+ 'label' => __('Title', 'premium-addons-for-elementor'),
437
  'tab' => Controls_Manager::TAB_STYLE,
438
  ]
439
  );
441
  /*Titles Color*/
442
  $this->add_control('premium_blog_title_color',
443
  [
444
+ 'label' => __('Color', 'premium-addons-for-elementor'),
445
  'type' => Controls_Manager::COLOR,
446
  'scheme' => [
447
  'type' => Scheme_Color::get_type(),
465
  /*Titles Hover Color*/
466
  $this->add_control('premium_blog_title_hover_color',
467
  [
468
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
469
  'type' => Controls_Manager::COLOR,
470
  'scheme' => [
471
  'type' => Scheme_Color::get_type(),
481
 
482
  $this->start_controls_section('premium_blog_meta_style_section',
483
  [
484
+ 'label' => __('Meta', 'premium-addons-for-elementor'),
485
  'tab' => Controls_Manager::TAB_STYLE,
486
  ]
487
  );
489
  /*Meta Color*/
490
  $this->add_control('premium_blog_meta_color',
491
  [
492
+ 'label' => __('Color', 'premium-addons-for-elementor'),
493
  'type' => Controls_Manager::COLOR,
494
  'scheme' => [
495
  'type' => Scheme_Color::get_type(),
514
  /*Meta Hover Color*/
515
  $this->add_control('premium_blog_meta_hover_color',
516
  [
517
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
518
  'type' => Controls_Manager::COLOR,
519
  'scheme' => [
520
  'type' => Scheme_Color::get_type(),
530
 
531
  $this->start_controls_section('premium_blog_content_style_section',
532
  [
533
+ 'label' => __('Content', 'premium-addons-for-elementor'),
534
  'tab' => Controls_Manager::TAB_STYLE,
535
  ]
536
  );
538
  /*Post Content Color*/
539
  $this->add_control('premium_blog_post_content_color',
540
  [
541
+ 'label' => __('Color', 'premium-addons-for-elementor'),
542
  'type' => Controls_Manager::COLOR,
543
  'scheme' => [
544
  'type' => Scheme_Color::get_type(),
564
  /*Content Background Color*/
565
  $this->add_control('premium_blog_content_background_color',
566
  [
567
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
568
  'type' => Controls_Manager::COLOR,
569
  'default' => '#f5f5f5',
570
  'selectors' => [
577
 
578
  $this->start_controls_section('premium_blog_tags_style_section',
579
  [
580
+ 'label' => __('Tags', 'premium-addons-for-elementor'),
581
  'tab' => Controls_Manager::TAB_STYLE,
582
  ]
583
  );
585
  /*Tags Color*/
586
  $this->add_control('premium_blog_tags_color',
587
  [
588
+ 'label' => __('Color', 'premium-addons-for-elementor'),
589
  'type' => Controls_Manager::COLOR,
590
  'scheme' => [
591
  'type' => Scheme_Color::get_type(),
610
  /*Tags Hover Color*/
611
  $this->add_control('premium_blog_tags_hoer_color',
612
  [
613
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
614
  'type' => Controls_Manager::COLOR,
615
  'scheme' => [
616
  'type' => Scheme_Color::get_type(),
627
  /*Post Format Icon*/
628
  $this->start_controls_section('premium_blog_format_style_section',
629
  [
630
+ 'label' => __('Post Format Icon', 'premium-addons-for-elementor'),
631
  'tab' => Controls_Manager::TAB_STYLE,
632
  'condition' => [
633
  'premium_blog_post_format_icon' => 'yes'
637
 
638
  $this->add_control('premium_blog_format_icon_size',
639
  [
640
+ 'label' => __('Size', 'premium-addons-for-elementor'),
641
  'type' => Controls_Manager::SLIDER,
642
+ 'description' => __('Choose icon size in (PX, EM)', 'premium-addons-for-elementor'),
643
  'range' => [
644
  'em' => [
645
  'min' => 1,
657
  /*Post Format Icon Color*/
658
  $this->add_control('premium_blog_format_icon_color',
659
  [
660
+ 'label' => __('Color', 'premium-addons-for-elementor'),
661
  'type' => Controls_Manager::COLOR,
662
  'scheme' => [
663
  'type' => Scheme_Color::get_type(),
672
  /*Post Format Icon Color*/
673
  $this->add_control('premium_blog_format_icon_hover_color',
674
  [
675
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
676
  'type' => Controls_Manager::COLOR,
677
  'scheme' => [
678
  'type' => Scheme_Color::get_type(),
687
  /*Post Format Background Color*/
688
  $this->add_control('premium_blog_format_back_color',
689
  [
690
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
691
  'type' => Controls_Manager::COLOR,
692
  'scheme' => [
693
  'type' => Scheme_Color::get_type(),
702
  /*Post Format Hover Background Color*/
703
  $this->add_control('premium_blog_format_back_hover_color',
704
  [
705
+ 'label' => __('Hover Background Color', 'premium-addons-for-elementor'),
706
  'type' => Controls_Manager::COLOR,
707
  'scheme' => [
708
  'type' => Scheme_Color::get_type(),
720
  /*Pagination Style*/
721
  $this->start_controls_section('premium_blog_pagination_Style',
722
  [
723
+ 'label' => __('Pagination Style', 'premium-addons-for-elementor'),
724
  'tab' => Controls_Manager::TAB_STYLE,
725
  'condition' => [
726
  'premium_blog_paging' => 'yes',
731
 
732
  $this->start_controls_tab('premium_blog_pagination_nomral',
733
  [
734
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
735
 
736
  ]);
737
 
738
  $this->add_control('prmeium_blog_pagination_color',
739
  [
740
+ 'label' => __('Color', 'premium-addons-for-elementor'),
741
  'type' => Controls_Manager::COLOR,
742
  'scheme' => [
743
  'type' => Scheme_Color::get_type(),
750
 
751
  $this->add_control('prmeium_blog_pagination_back_color',
752
  [
753
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
754
  'type' => Controls_Manager::COLOR,
755
  'scheme' => [
756
  'type' => Scheme_Color::get_type(),
765
 
766
  $this->start_controls_tab('premium_blog_pagination_hover',
767
  [
768
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
769
 
770
  ]);
771
 
772
  $this->add_control('prmeium_blog_pagination_hover_color',
773
  [
774
+ 'label' => __('Color', 'premium-addons-for-elementor'),
775
  'type' => Controls_Manager::COLOR,
776
  'scheme' => [
777
  'type' => Scheme_Color::get_type(),
784
 
785
  $this->add_control('prmeium_blog_pagination_back_hover_color',
786
  [
787
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
788
  'type' => Controls_Manager::COLOR,
789
  'scheme' => [
790
  'type' => Scheme_Color::get_type(),
839
 
840
  protected function render() {
841
 
842
+ if ( get_query_var('paged') ) {
843
+ $paged = get_query_var('paged');
844
+ } elseif ( get_query_var('page') ) {
845
+ $paged = get_query_var('page');
846
+ } else {
847
+ $paged = 1;
848
+ }
849
 
850
  // get our input from the widget settings.
851
  $settings = $this->get_settings();
885
  break;
886
  }
887
 
 
 
 
 
 
 
 
 
888
  ?>
889
+ <div class="premium-blog-wrap <?php echo esc_attr($col_number); ?>" data-pa-masonry="<?php echo esc_attr($settings['premium_blog_masonry']); ?>">
890
  <?php
891
+ if( count( $posts ) ){
892
+ global $post;
893
+ foreach($posts as $post){
894
+ setup_postdata($post);
895
  ?>
896
+ <div class="premium-blog-post-container">
897
+ <div class="premium-blog-thumb-effect-wrapper">
898
+ <div class="premium-blog-thumbnail-container <?php echo 'premium-blog-' . $image_effect . '-effect';?>">
899
+ <a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_post_thumbnail('full'); ?></a>
900
+ </div>
901
+ <div class="premium-blog-effect-container <?php echo 'premium-blog-'. $post_effect . '-effect'; ?>">
902
+ <a class="premium-blog-post-link" href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"></a>
903
+ <?php if( $settings['premium_blog_hover_color_effect'] === 'bordered' ) : ?>
904
+ <div class="premium-blog-bordered-border-container"></div>
905
+ <?php elseif( $settings['premium_blog_hover_color_effect'] === 'squares' ) : ?>
906
+ <div class="premium-blog-squares-square-container"></div>
907
+ <?php endif; ?>
908
+ </div>
909
+ </div>
910
+ <div class="premium-blog-content-wrapper <?php echo (!has_post_thumbnail()) ? 'empty-thumb' : ''; ?>">
911
+ <div class="premium-blog-inner-container">
912
+ <?php if( $settings['premium_blog_post_format_icon'] === 'yes' ) : ?>
913
+ <div class="premium-blog-format-container">
914
+ <a class="premium-blog-format-link" href="<?php the_permalink(); ?>" title="<?php if( get_post_format() === ' ') : echo 'standard' ; else : echo get_post_format(); endif; ?>" target="<?php echo esc_attr($target); ?>"><i class="premium-blog-format-icon fa fa-<?php if ( get_post_format() === 'aside' ) : echo 'file-text-o'; ?>
915
+ <?php elseif ( get_post_format() === 'audio' ) : echo 'music'; ?>
916
+ <?php elseif ( get_post_format() === 'gallery' ) : echo 'file-image-o'; ?>
917
+ <?php elseif ( get_post_format() === 'image' ) : echo 'picture-o'; ?>
918
+ <?php elseif ( get_post_format() === 'link' ) : echo 'link'; ?>
919
+ <?php elseif ( get_post_format() === 'quote' ) :echo 'quote-left'; ?>
920
+ <?php elseif ( get_post_format() === 'video' ) : echo 'video-camera'; ?>
921
+ <?php else : echo 'thumb-tack'; ?>
922
+ <?php endif; ?>"></i></a>
923
+ </div>
924
+ <?php endif; ?>
925
+ <div class="premium-blog-entry-container">
926
+ <<?php echo $settings['premium_blog_title_tag']; ?> class="premium-blog-entry-title"><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_title(); ?></a></<?php echo $settings['premium_blog_title_tag']; ?>>
927
+ <div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
928
+ <?php if( $settings['premium_blog_author_meta'] === 'yes' ) : ?>
929
+ <span class="premium-blog-post-author premium-blog-meta-data"><i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?></span>
930
+ <?php endif; ?>
931
+ <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
932
+ <span class="premium-blog-post-time premium-blog-meta-data"><i class="fa fa-calendar fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php the_time($date_format); ?></a></span>
933
+ <?php endif; ?>
934
+ <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
935
+ <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
936
+ <?php endif; ?>
937
+ <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
938
+ <span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i><a href="<?php the_permalink(); ?>" target="<?php echo esc_attr($target); ?>"><?php comments_number('0 Comments', '1', '%'); ?> </a></span>
939
+ <?php endif; ?>
940
+ <?php if( $settings['premium_blog_edit_post'] === 'yes' ) : ?>
941
+ <span class="premium-blog-post-edit premium-blog-meta-data"><i class="fa fa-pencil fa-fw"></i><?php edit_post_link(); ?></span>
942
+ <?php endif; ?>
943
+ </div>
944
+ </div>
945
+ </div>
946
+ <div class="premium-blog-post-content" style="<?php if ( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
947
+ <?php
948
+ if ( $settings['premium_blog_excerpt'] === 'yes' ) :
949
+ echo premium_addons_get_excerpt_by_id(get_the_ID(),$settings['premium_blog_excerpt_length'],$excerpt_type,$excerpt_text);
950
+ else: the_content();
951
+ endif; ?>
952
+ </div>
953
+ <div class="premium-blog-post-tags-container" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px;'; endif; ?>">
954
+ <?php if( $settings['premium_blog_tags_meta'] === 'yes' && the_tags() != '' ) : ?>
955
+ <span class="premium-blog-post-tags"><i class="fa fa-tags fa-fw"></i><?php the_tags(' ', ', '); ?> </span>
956
+ <?php endif; ?>
957
+ </div>
958
+ </div>
959
  </div>
960
+ <?php }?>
961
+ <div class="premium-blog-clear-fix"></div>
962
+ </div>
963
+ <?php if ( $settings['premium_blog_paging'] === 'yes' ) : ?>
964
+ <div class="premium-blog-pagination-container">
965
+ <?php
966
+ $count_posts = wp_count_posts();
967
+ $published_posts = $count_posts->publish;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
968
 
969
+ $page_tot = ceil( ( $published_posts - $offset ) / $settings['premium_blog_number_of_posts'] );
970
+ if ( $page_tot > 1 ) {
971
+ $big = 999999999;
972
+ echo paginate_links( array(
973
+ 'base' => str_replace( $big, '%#%',get_pagenum_link( 999999999, false ) ),
974
+ 'format' => '?paged=%#%',
975
+ 'current' => max( 1, $paged ),
976
+ 'total' => $page_tot,
977
+ 'prev_next' => true,
978
+ 'prev_text' => sprintf( "&lsaquo; %s", __("Previous","premium-addons-for-elementor") ),
979
+ 'next_text' => sprintf( "%s &rsaquo;", __("Next","premium-addons-for-elementor") ),
980
+ 'end_size' => 1,
981
+ 'mid_size' => 2,
982
+ 'type' => 'list'
983
+ ));
984
+ }
985
+ ?>
986
+ </div>
987
+ <?php
988
+ endif;
989
+ echo $this->get_blog_responsive_style();
990
+ wp_reset_postdata();
991
+ }
992
  }
993
  }
widgets/premium-button.php CHANGED
@@ -35,28 +35,28 @@ class Premium_Button extends Widget_Base {
35
  /*Start Button Content Section */
36
  $this->start_controls_section('premium_button_general_section',
37
  [
38
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
39
  ]
40
  );
41
 
42
  /*Button Text*/
43
  $this->add_control('premium_button_text',
44
  [
45
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::TEXT,
47
  'dynamic' => [ 'active' => true ],
48
- 'default' => esc_html__('Click Me','premium-addons-for-elementor'),
49
  'label_block' => true,
50
  ]
51
  );
52
 
53
  $this->add_control('premium_button_link_selection',
54
  [
55
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
56
  'type' => Controls_Manager::SELECT,
57
  'options' => [
58
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
59
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
60
  ],
61
  'default' => 'url',
62
  'label_block' => true,
@@ -65,7 +65,7 @@ class Premium_Button extends Widget_Base {
65
 
66
  $this->add_control('premium_button_link',
67
  [
68
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
69
  'type' => Controls_Manager::URL,
70
  'default' => [
71
  'url' => '#',
@@ -81,7 +81,7 @@ class Premium_Button extends Widget_Base {
81
 
82
  $this->add_control('premium_button_existing_link',
83
  [
84
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
85
  'type' => Controls_Manager::SELECT2,
86
  'options' => $this->getTemplateInstance()->get_all_post(),
87
  'condition' => [
@@ -96,73 +96,71 @@ class Premium_Button extends Widget_Base {
96
  /*Button Hover Effect*/
97
  $this->add_control('premium_button_hover_effect',
98
  [
99
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
100
  'type' => Controls_Manager::SELECT,
101
  'default' => 'none',
102
  'options' => [
103
- 'none' => esc_html__('None'),
104
- 'style1' => esc_html__('Slide'),
105
- 'style2' => esc_html__('Shutter'),
106
- 'style3' => esc_html__('Icon Fade'),
107
- 'style4' => esc_html__('Icon Slide'),
108
- 'style5' => esc_html__('In & Out'),
109
- ],
110
  'label_block' => true,
111
  ]
112
  );
113
 
114
  $this->add_control('premium_button_style1_dir',
115
- [
116
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
117
- 'type' => Controls_Manager::SELECT,
118
- 'default' => 'bottom',
119
- 'options' => [
120
- 'bottom' => esc_html__('Top to Bottom'),
121
- 'top' => esc_html__('Bottom to Top'),
122
- 'left' => esc_html__('Right to Left'),
123
- 'right' => esc_html__('Left to Right'),
124
- ],
125
- 'condition' => [
126
- 'premium_button_hover_effect' => 'style1',
127
- ],
128
- 'label_block' => true,
129
- ]
130
- );
131
 
132
  $this->add_control('premium_button_style2_dir',
133
  [
134
- 'label' => esc_html__('Shutter Direction', 'premium-addons-for-elementor'),
135
  'type' => Controls_Manager::SELECT,
136
  'default' => 'shutouthor',
137
  'options' => [
138
- 'shutinhor' => esc_html__('Shutter in Horizontal'),
139
- 'shutinver' => esc_html__('Shutter in Vertical'),
140
- 'shutoutver' => esc_html__('Shutter out Horizontal'),
141
- 'shutouthor' => esc_html__('Shutter out Vertical'),
142
- 'scshutoutver' => esc_html__('Scaled Shutter Vertical'),
143
- 'scshutouthor' => esc_html__('Scaled Shutter Horizontal'),
144
- 'dshutinver' => esc_html__('Tilted Left'),
145
- 'dshutinhor' => esc_html__('Tilted Right'),
146
-
147
-
148
- ],
149
  'condition' => [
150
  'premium_button_hover_effect' => 'style2',
151
- ],
152
  'label_block' => true,
153
  ]
154
  );
155
 
156
  $this->add_control('premium_button_style4_dir',
157
  [
158
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
159
  'type' => Controls_Manager::SELECT,
160
  'default' => 'bottom',
161
  'options' => [
162
- 'top' => esc_html__('Top'),
163
- 'bottom' => esc_html__('Bottom'),
164
- 'left' => esc_html__('Left'),
165
- 'right' => esc_html__('Right'),
166
  ],
167
  'condition' => [
168
  'premium_button_hover_effect' => 'style4',
@@ -173,14 +171,14 @@ class Premium_Button extends Widget_Base {
173
 
174
  $this->add_control('premium_button_style5_dir',
175
  [
176
- 'label' => esc_html__('Style', 'premium-addons-for-elementor'),
177
  'type' => Controls_Manager::SELECT,
178
  'default' => 'radialin',
179
  'options' => [
180
- 'radialin' => esc_html__('Radial In'),
181
- 'radialout' => esc_html__('Radial Out'),
182
- 'rectin' => esc_html__('Rectangle In'),
183
- 'rectout' => esc_html__('Rectangle Out'),
184
  ],
185
  'condition' => [
186
  'premium_button_hover_effect' => 'style5',
@@ -192,19 +190,19 @@ class Premium_Button extends Widget_Base {
192
  /*Button Icon Switcher*/
193
  $this->add_control('premium_button_icon_switcher',
194
  [
195
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
196
  'type' => Controls_Manager::SWITCHER,
197
  'condition' => [
198
  'premium_button_hover_effect!' => 'style4'
199
  ],
200
- 'description' => esc_html__('Enable or disable button icon','premium-addons-for-elementor'),
201
  ]
202
  );
203
 
204
  /*Button Icon Selection*/
205
  $this->add_control('premium_button_icon_selection',
206
  [
207
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
208
  'type' => Controls_Manager::ICON,
209
  'default' => 'fa fa-bars',
210
  'condition' => [
@@ -218,7 +216,7 @@ class Premium_Button extends Widget_Base {
218
  /*Style 4 Icon Selection*/
219
  $this->add_control('premium_button_style4_icon_selection',
220
  [
221
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
222
  'type' => Controls_Manager::ICON,
223
  'default' => 'fa fa-bars',
224
  'condition' => [
@@ -230,12 +228,12 @@ class Premium_Button extends Widget_Base {
230
 
231
  $this->add_control('premium_button_icon_position',
232
  [
233
- 'label' => esc_html__('Icon Position', 'premium-addons-for-elementor'),
234
  'type' => Controls_Manager::SELECT,
235
  'default' => 'before',
236
  'options' => [
237
- 'before' => esc_html__('Before', 'premium-addons-for-elementor'),
238
- 'after' => esc_html__('After', 'premium-addons-for-elementor'),
239
  ],
240
  'condition' => [
241
  'premium_button_icon_switcher' => 'yes',
@@ -247,7 +245,7 @@ class Premium_Button extends Widget_Base {
247
 
248
  $this->add_control('premium_button_icon_before_size',
249
  [
250
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
251
  'type' => Controls_Manager::SLIDER,
252
  'condition' => [
253
  'premium_button_icon_switcher' => 'yes',
@@ -261,7 +259,7 @@ class Premium_Button extends Widget_Base {
261
 
262
  $this->add_control('premium_button_icon_style4_size',
263
  [
264
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
265
  'type' => Controls_Manager::SLIDER,
266
  'condition' => [
267
  'premium_button_hover_effect' => 'style4'
@@ -275,7 +273,7 @@ class Premium_Button extends Widget_Base {
275
  if(!$this->check_rtl()){
276
  $this->add_control('premium_button_icon_before_spacing',
277
  [
278
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::SLIDER,
280
  'condition' => [
281
  'premium_button_icon_switcher' => 'yes',
@@ -296,7 +294,7 @@ class Premium_Button extends Widget_Base {
296
  if(!$this->check_rtl()){
297
  $this->add_control('premium_button_icon_after_spacing',
298
  [
299
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
300
  'type' => Controls_Manager::SLIDER,
301
  'condition' => [
302
  'premium_button_icon_switcher' => 'yes',
@@ -317,7 +315,7 @@ class Premium_Button extends Widget_Base {
317
  if($this->check_rtl()){
318
  $this->add_control('premium_button_icon_rtl_before_spacing',
319
  [
320
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
321
  'type' => Controls_Manager::SLIDER,
322
  'condition' => [
323
  'premium_button_icon_switcher' => 'yes',
@@ -338,7 +336,7 @@ class Premium_Button extends Widget_Base {
338
  if($this->check_rtl()){
339
  $this->add_control('premium_button_icon_rtl_after_spacing',
340
  [
341
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
342
  'type' => Controls_Manager::SLIDER,
343
  'condition' => [
344
  'premium_button_icon_switcher' => 'yes',
@@ -358,7 +356,7 @@ class Premium_Button extends Widget_Base {
358
 
359
  $this->add_control('premium_button_icon_style3_before_transition',
360
  [
361
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
362
  'type' => Controls_Manager::SLIDER,
363
  'condition' => [
364
  'premium_button_icon_switcher' => 'yes',
@@ -379,7 +377,7 @@ class Premium_Button extends Widget_Base {
379
 
380
  $this->add_control('premium_button_icon_style3_after_transition',
381
  [
382
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
383
  'type' => Controls_Manager::SLIDER,
384
  'condition' => [
385
  'premium_button_icon_switcher' => 'yes',
@@ -401,14 +399,14 @@ class Premium_Button extends Widget_Base {
401
  /*Button Size*/
402
  $this->add_control('premium_button_size',
403
  [
404
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
405
  'type' => Controls_Manager::SELECT,
406
  'default' => 'lg',
407
  'options' => [
408
- 'sm' => esc_html__('Small'),
409
- 'md' => esc_html__('Medium'),
410
- 'lg' => esc_html__('Large'),
411
- 'block' => esc_html__('Block'),
412
  ],
413
  'label_block' => true,
414
  'separator' => 'before',
@@ -418,7 +416,7 @@ class Premium_Button extends Widget_Base {
418
  /*Button Align*/
419
  $this->add_responsive_control('premium_button_align',
420
  [
421
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
422
  'type' => Controls_Manager::CHOOSE,
423
  'options' => [
424
  'left' => [
@@ -443,7 +441,7 @@ class Premium_Button extends Widget_Base {
443
 
444
  $this->add_control('premium_button_event_switcher',
445
  [
446
- 'label' => esc_html__('onclick Event', 'premium-addons-for-elementor'),
447
  'type' => Controls_Manager::SWITCHER,
448
  'separator' => 'before',
449
  ]
@@ -451,7 +449,7 @@ class Premium_Button extends Widget_Base {
451
 
452
  $this->add_control('premium_button_event_function',
453
  [
454
- 'label' => esc_html__('Example: myFunction();', 'premium-addons-for-elementor'),
455
  'type' => Controls_Manager::TEXTAREA,
456
  'condition' => [
457
  'premium_button_event_switcher' => 'yes',
@@ -465,7 +463,7 @@ class Premium_Button extends Widget_Base {
465
  /*Start Styling Section*/
466
  $this->start_controls_section('premium_button_style_section',
467
  [
468
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
469
  'tab' => Controls_Manager::TAB_STYLE,
470
  ]
471
  );
@@ -483,13 +481,13 @@ class Premium_Button extends Widget_Base {
483
 
484
  $this->start_controls_tab('premium_button_style_normal',
485
  [
486
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
487
  ]
488
  );
489
 
490
  $this->add_control('premium_button_text_color_normal',
491
  [
492
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
493
  'type' => Controls_Manager::COLOR,
494
  'scheme' => [
495
  'type' => Scheme_Color::get_type(),
@@ -502,7 +500,7 @@ class Premium_Button extends Widget_Base {
502
 
503
  $this->add_control('premium_button_icon_color_normal',
504
  [
505
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
506
  'type' => Controls_Manager::COLOR,
507
  'scheme' => [
508
  'type' => Scheme_Color::get_type(),
@@ -519,7 +517,7 @@ class Premium_Button extends Widget_Base {
519
 
520
  $this->add_control('premium_button_background_normal',
521
  [
522
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
523
  'type' => Controls_Manager::COLOR,
524
  'scheme' => [
525
  'type' => Scheme_Color::get_type(),
@@ -543,7 +541,7 @@ class Premium_Button extends Widget_Base {
543
  /*Button Border Radius*/
544
  $this->add_control('premium_button_border_radius_normal',
545
  [
546
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
547
  'type' => Controls_Manager::SLIDER,
548
  'size_units' => ['px', '%' ,'em'],
549
  'selectors' => [
@@ -556,7 +554,7 @@ class Premium_Button extends Widget_Base {
556
  $this->add_group_control(
557
  Group_Control_Text_Shadow::get_type(),
558
  [
559
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
560
  'name' => 'premium_button_icon_shadow_normal',
561
  'selector' => '{{WRAPPER}} .premium-button-text-icon-wrapper i',
562
  'condition' => [
@@ -570,7 +568,7 @@ class Premium_Button extends Widget_Base {
570
  $this->add_group_control(
571
  Group_Control_Text_Shadow::get_type(),
572
  [
573
- 'label' => esc_html__('Text Shadow','premium-addons-for-elementor'),
574
  'name' => 'premium_button_text_shadow_normal',
575
  'selector' => '{{WRAPPER}} .premium-button-text-icon-wrapper span',
576
  ]
@@ -580,7 +578,7 @@ class Premium_Button extends Widget_Base {
580
  $this->add_group_control(
581
  Group_Control_Box_Shadow::get_type(),
582
  [
583
- 'label' => esc_html__('Button Shadow','premium-addons-for-elementor'),
584
  'name' => 'premium_button_box_shadow_normal',
585
  'selector' => '{{WRAPPER}} .premium-button',
586
  ]
@@ -589,7 +587,7 @@ class Premium_Button extends Widget_Base {
589
  /*Button Margin*/
590
  $this->add_responsive_control('premium_button_margin_normal',
591
  [
592
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
593
  'type' => Controls_Manager::DIMENSIONS,
594
  'size_units' => ['px', 'em', '%'],
595
  'selectors' => [
@@ -600,7 +598,7 @@ class Premium_Button extends Widget_Base {
600
  /*Button Padding*/
601
  $this->add_responsive_control('premium_button_padding_normal',
602
  [
603
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
604
  'type' => Controls_Manager::DIMENSIONS,
605
  'size_units' => ['px', 'em', '%'],
606
  'selectors' => [
@@ -612,13 +610,13 @@ class Premium_Button extends Widget_Base {
612
 
613
  $this->start_controls_tab('premium_button_style_hover',
614
  [
615
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
616
  ]
617
  );
618
 
619
  $this->add_control('premium_button_text_color_hover',
620
  [
621
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
622
  'type' => Controls_Manager::COLOR,
623
  'scheme' => [
624
  'type' => Scheme_Color::get_type(),
@@ -634,7 +632,7 @@ class Premium_Button extends Widget_Base {
634
 
635
  $this->add_control('premium_button_icon_color_hover',
636
  [
637
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
638
  'type' => Controls_Manager::COLOR,
639
  'scheme' => [
640
  'type' => Scheme_Color::get_type(),
@@ -651,7 +649,7 @@ class Premium_Button extends Widget_Base {
651
 
652
  $this->add_control('premium_button_style4_icon_color',
653
  [
654
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
655
  'type' => Controls_Manager::COLOR,
656
  'scheme' => [
657
  'type' => Scheme_Color::get_type(),
@@ -667,7 +665,7 @@ class Premium_Button extends Widget_Base {
667
 
668
  $this->add_control('premium_button_background_hover',
669
  [
670
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
671
  'type' => Controls_Manager::COLOR,
672
  'scheme' => [
673
  'type' => Scheme_Color::get_type(),
@@ -692,7 +690,7 @@ class Premium_Button extends Widget_Base {
692
  /*Button Border Radius*/
693
  $this->add_control('premium_button_border_radius_hover',
694
  [
695
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
696
  'type' => Controls_Manager::SLIDER,
697
  'size_units' => ['px', '%' ,'em'],
698
  'selectors' => [
@@ -705,7 +703,7 @@ class Premium_Button extends Widget_Base {
705
  $this->add_group_control(
706
  Group_Control_Text_Shadow::get_type(),
707
  [
708
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
709
  'name' => 'premium_button_icon_shadow_hover',
710
  'selector' => '{{WRAPPER}} .premium-button:hover .premium-button-text-icon-wrapper i',
711
  'condition' => [
@@ -718,7 +716,7 @@ class Premium_Button extends Widget_Base {
718
  $this->add_group_control(
719
  Group_Control_Text_Shadow::get_type(),
720
  [
721
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
722
  'name' => 'premium_button_style4_icon_shadow_hover',
723
  'selector' => '{{WRAPPER}} .premium-button:hover .premium-button-style4-icon-wrapper',
724
  'condition' => [
@@ -731,7 +729,7 @@ class Premium_Button extends Widget_Base {
731
  $this->add_group_control(
732
  Group_Control_Text_Shadow::get_type(),
733
  [
734
- 'label' => esc_html__('Text Shadow','premium-addons-for-elementor'),
735
  'name' => 'premium_button_text_shadow_hover',
736
  'selector' => '{{WRAPPER}} .premium-button:hover .premium-button-text-icon-wrapper span',
737
  'condition' => [
@@ -744,7 +742,7 @@ class Premium_Button extends Widget_Base {
744
  $this->add_group_control(
745
  Group_Control_Box_Shadow::get_type(),
746
  [
747
- 'label' => esc_html__('Button Shadow','premium-addons-for-elementor'),
748
  'name' => 'premium_button_box_shadow_hover',
749
  'selector' => '{{WRAPPER}} .premium-button:hover',
750
  ]
@@ -753,7 +751,7 @@ class Premium_Button extends Widget_Base {
753
  /*Button Margin*/
754
  $this->add_responsive_control('premium_button_margin_hover',
755
  [
756
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
757
  'type' => Controls_Manager::DIMENSIONS,
758
  'size_units' => ['px', 'em', '%'],
759
  'selectors' => [
@@ -764,7 +762,7 @@ class Premium_Button extends Widget_Base {
764
  /*Button Padding*/
765
  $this->add_responsive_control('premium_button_padding_hover',
766
  [
767
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
768
  'type' => Controls_Manager::DIMENSIONS,
769
  'size_units' => ['px', 'em', '%'],
770
  'selectors' => [
35
  /*Start Button Content Section */
36
  $this->start_controls_section('premium_button_general_section',
37
  [
38
+ 'label' => __('Button', 'premium-addons-for-elementor'),
39
  ]
40
  );
41
 
42
  /*Button Text*/
43
  $this->add_control('premium_button_text',
44
  [
45
+ 'label' => __('Text', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::TEXT,
47
  'dynamic' => [ 'active' => true ],
48
+ 'default' => __('Click Me','premium-addons-for-elementor'),
49
  'label_block' => true,
50
  ]
51
  );
52
 
53
  $this->add_control('premium_button_link_selection',
54
  [
55
+ 'label' => __('Link Type', 'premium-addons-for-elementor'),
56
  'type' => Controls_Manager::SELECT,
57
  'options' => [
58
+ 'url' => __('URL', 'premium-addons-for-elementor'),
59
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
60
  ],
61
  'default' => 'url',
62
  'label_block' => true,
65
 
66
  $this->add_control('premium_button_link',
67
  [
68
+ 'label' => __('Link', 'premium-addons-for-elementor'),
69
  'type' => Controls_Manager::URL,
70
  'default' => [
71
  'url' => '#',
81
 
82
  $this->add_control('premium_button_existing_link',
83
  [
84
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
85
  'type' => Controls_Manager::SELECT2,
86
  'options' => $this->getTemplateInstance()->get_all_post(),
87
  'condition' => [
96
  /*Button Hover Effect*/
97
  $this->add_control('premium_button_hover_effect',
98
  [
99
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
100
  'type' => Controls_Manager::SELECT,
101
  'default' => 'none',
102
  'options' => [
103
+ 'none' => __('None', 'premium-addons-for-elementor'),
104
+ 'style1' => __('Slide', 'premium-addons-for-elementor'),
105
+ 'style2' => __('Shutter', 'premium-addons-for-elementor'),
106
+ 'style3' => __('Icon Fade', 'premium-addons-for-elementor'),
107
+ 'style4' => __('Icon Slide', 'premium-addons-for-elementor'),
108
+ 'style5' => __('In & Out', 'premium-addons-for-elementor'),
109
+ ],
110
  'label_block' => true,
111
  ]
112
  );
113
 
114
  $this->add_control('premium_button_style1_dir',
115
+ [
116
+ 'label' => __('Slide Direction', 'premium-addons-for-elementor'),
117
+ 'type' => Controls_Manager::SELECT,
118
+ 'default' => 'bottom',
119
+ 'options' => [
120
+ 'bottom' => __('Top to Bottom', 'premium-addons-for-elementor'),
121
+ 'top' => __('Bottom to Top', 'premium-addons-for-elementor'),
122
+ 'left' => __('Right to Left', 'premium-addons-for-elementor'),
123
+ 'right' => __('Left to Right', 'premium-addons-for-elementor'),
124
+ ],
125
+ 'condition' => [
126
+ 'premium_button_hover_effect' => 'style1',
127
+ ],
128
+ 'label_block' => true,
129
+ ]
130
+ );
131
 
132
  $this->add_control('premium_button_style2_dir',
133
  [
134
+ 'label' => __('Shutter Direction', 'premium-addons-for-elementor'),
135
  'type' => Controls_Manager::SELECT,
136
  'default' => 'shutouthor',
137
  'options' => [
138
+ 'shutinhor' => __('Shutter in Horizontal', 'premium-addons-for-elementor'),
139
+ 'shutinver' => __('Shutter in Vertical', 'premium-addons-for-elementor'),
140
+ 'shutoutver' => __('Shutter out Horizontal', 'premium-addons-for-elementor'),
141
+ 'shutouthor' => __('Shutter out Vertical', 'premium-addons-for-elementor'),
142
+ 'scshutoutver' => __('Scaled Shutter Vertical', 'premium-addons-for-elementor'),
143
+ 'scshutouthor' => __('Scaled Shutter Horizontal', 'premium-addons-for-elementor'),
144
+ 'dshutinver' => __('Tilted Left'),
145
+ 'dshutinhor' => __('Tilted Right'),
146
+ ],
 
 
147
  'condition' => [
148
  'premium_button_hover_effect' => 'style2',
149
+ ],
150
  'label_block' => true,
151
  ]
152
  );
153
 
154
  $this->add_control('premium_button_style4_dir',
155
  [
156
+ 'label' => __('Slide Direction', 'premium-addons-for-elementor'),
157
  'type' => Controls_Manager::SELECT,
158
  'default' => 'bottom',
159
  'options' => [
160
+ 'top' => __('Top', 'premium-addons-for-elementor'),
161
+ 'bottom' => __('Bottom', 'premium-addons-for-elementor'),
162
+ 'left' => __('Left', 'premium-addons-for-elementor'),
163
+ 'right' => __('Right', 'premium-addons-for-elementor'),
164
  ],
165
  'condition' => [
166
  'premium_button_hover_effect' => 'style4',
171
 
172
  $this->add_control('premium_button_style5_dir',
173
  [
174
+ 'label' => __('Style', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::SELECT,
176
  'default' => 'radialin',
177
  'options' => [
178
+ 'radialin' => __('Radial In', 'premium-addons-for-elementor'),
179
+ 'radialout' => __('Radial Out', 'premium-addons-for-elementor'),
180
+ 'rectin' => __('Rectangle In', 'premium-addons-for-elementor'),
181
+ 'rectout' => __('Rectangle Out', 'premium-addons-for-elementor'),
182
  ],
183
  'condition' => [
184
  'premium_button_hover_effect' => 'style5',
190
  /*Button Icon Switcher*/
191
  $this->add_control('premium_button_icon_switcher',
192
  [
193
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
194
  'type' => Controls_Manager::SWITCHER,
195
  'condition' => [
196
  'premium_button_hover_effect!' => 'style4'
197
  ],
198
+ 'description' => __('Enable or disable button icon','premium-addons-for-elementor'),
199
  ]
200
  );
201
 
202
  /*Button Icon Selection*/
203
  $this->add_control('premium_button_icon_selection',
204
  [
205
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
206
  'type' => Controls_Manager::ICON,
207
  'default' => 'fa fa-bars',
208
  'condition' => [
216
  /*Style 4 Icon Selection*/
217
  $this->add_control('premium_button_style4_icon_selection',
218
  [
219
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
220
  'type' => Controls_Manager::ICON,
221
  'default' => 'fa fa-bars',
222
  'condition' => [
228
 
229
  $this->add_control('premium_button_icon_position',
230
  [
231
+ 'label' => __('Icon Position', 'premium-addons-for-elementor'),
232
  'type' => Controls_Manager::SELECT,
233
  'default' => 'before',
234
  'options' => [
235
+ 'before' => __('Before', 'premium-addons-for-elementor'),
236
+ 'after' => __('After', 'premium-addons-for-elementor'),
237
  ],
238
  'condition' => [
239
  'premium_button_icon_switcher' => 'yes',
245
 
246
  $this->add_control('premium_button_icon_before_size',
247
  [
248
+ 'label' => __('Icon Size', 'premium-addons-for-elementor'),
249
  'type' => Controls_Manager::SLIDER,
250
  'condition' => [
251
  'premium_button_icon_switcher' => 'yes',
259
 
260
  $this->add_control('premium_button_icon_style4_size',
261
  [
262
+ 'label' => __('Icon Size', 'premium-addons-for-elementor'),
263
  'type' => Controls_Manager::SLIDER,
264
  'condition' => [
265
  'premium_button_hover_effect' => 'style4'
273
  if(!$this->check_rtl()){
274
  $this->add_control('premium_button_icon_before_spacing',
275
  [
276
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
277
  'type' => Controls_Manager::SLIDER,
278
  'condition' => [
279
  'premium_button_icon_switcher' => 'yes',
294
  if(!$this->check_rtl()){
295
  $this->add_control('premium_button_icon_after_spacing',
296
  [
297
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
298
  'type' => Controls_Manager::SLIDER,
299
  'condition' => [
300
  'premium_button_icon_switcher' => 'yes',
315
  if($this->check_rtl()){
316
  $this->add_control('premium_button_icon_rtl_before_spacing',
317
  [
318
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
319
  'type' => Controls_Manager::SLIDER,
320
  'condition' => [
321
  'premium_button_icon_switcher' => 'yes',
336
  if($this->check_rtl()){
337
  $this->add_control('premium_button_icon_rtl_after_spacing',
338
  [
339
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
340
  'type' => Controls_Manager::SLIDER,
341
  'condition' => [
342
  'premium_button_icon_switcher' => 'yes',
356
 
357
  $this->add_control('premium_button_icon_style3_before_transition',
358
  [
359
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
360
  'type' => Controls_Manager::SLIDER,
361
  'condition' => [
362
  'premium_button_icon_switcher' => 'yes',
377
 
378
  $this->add_control('premium_button_icon_style3_after_transition',
379
  [
380
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
381
  'type' => Controls_Manager::SLIDER,
382
  'condition' => [
383
  'premium_button_icon_switcher' => 'yes',
399
  /*Button Size*/
400
  $this->add_control('premium_button_size',
401
  [
402
+ 'label' => __('Size', 'premium-addons-for-elementor'),
403
  'type' => Controls_Manager::SELECT,
404
  'default' => 'lg',
405
  'options' => [
406
+ 'sm' => __('Small', 'premium-addons-for-elementor'),
407
+ 'md' => __('Medium', 'premium-addons-for-elementor'),
408
+ 'lg' => __('Large', 'premium-addons-for-elementor'),
409
+ 'block' => __('Block', 'premium-addons-for-elementor'),
410
  ],
411
  'label_block' => true,
412
  'separator' => 'before',
416
  /*Button Align*/
417
  $this->add_responsive_control('premium_button_align',
418
  [
419
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
420
  'type' => Controls_Manager::CHOOSE,
421
  'options' => [
422
  'left' => [
441
 
442
  $this->add_control('premium_button_event_switcher',
443
  [
444
+ 'label' => __('onclick Event', 'premium-addons-for-elementor'),
445
  'type' => Controls_Manager::SWITCHER,
446
  'separator' => 'before',
447
  ]
449
 
450
  $this->add_control('premium_button_event_function',
451
  [
452
+ 'label' => __('Example: myFunction();', 'premium-addons-for-elementor'),
453
  'type' => Controls_Manager::TEXTAREA,
454
  'condition' => [
455
  'premium_button_event_switcher' => 'yes',
463
  /*Start Styling Section*/
464
  $this->start_controls_section('premium_button_style_section',
465
  [
466
+ 'label' => __('Button', 'premium-addons-for-elementor'),
467
  'tab' => Controls_Manager::TAB_STYLE,
468
  ]
469
  );
481
 
482
  $this->start_controls_tab('premium_button_style_normal',
483
  [
484
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
485
  ]
486
  );
487
 
488
  $this->add_control('premium_button_text_color_normal',
489
  [
490
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
491
  'type' => Controls_Manager::COLOR,
492
  'scheme' => [
493
  'type' => Scheme_Color::get_type(),
500
 
501
  $this->add_control('premium_button_icon_color_normal',
502
  [
503
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
504
  'type' => Controls_Manager::COLOR,
505
  'scheme' => [
506
  'type' => Scheme_Color::get_type(),
517
 
518
  $this->add_control('premium_button_background_normal',
519
  [
520
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
521
  'type' => Controls_Manager::COLOR,
522
  'scheme' => [
523
  'type' => Scheme_Color::get_type(),
541
  /*Button Border Radius*/
542
  $this->add_control('premium_button_border_radius_normal',
543
  [
544
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
545
  'type' => Controls_Manager::SLIDER,
546
  'size_units' => ['px', '%' ,'em'],
547
  'selectors' => [
554
  $this->add_group_control(
555
  Group_Control_Text_Shadow::get_type(),
556
  [
557
+ 'label' => __('Icon Shadow','premium-addons-for-elementor'),
558
  'name' => 'premium_button_icon_shadow_normal',
559
  'selector' => '{{WRAPPER}} .premium-button-text-icon-wrapper i',
560
  'condition' => [
568
  $this->add_group_control(
569
  Group_Control_Text_Shadow::get_type(),
570
  [
571
+ 'label' => __('Text Shadow','premium-addons-for-elementor'),
572
  'name' => 'premium_button_text_shadow_normal',
573
  'selector' => '{{WRAPPER}} .premium-button-text-icon-wrapper span',
574
  ]
578
  $this->add_group_control(
579
  Group_Control_Box_Shadow::get_type(),
580
  [
581
+ 'label' => __('Button Shadow','premium-addons-for-elementor'),
582
  'name' => 'premium_button_box_shadow_normal',
583
  'selector' => '{{WRAPPER}} .premium-button',
584
  ]
587
  /*Button Margin*/
588
  $this->add_responsive_control('premium_button_margin_normal',
589
  [
590
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
591
  'type' => Controls_Manager::DIMENSIONS,
592
  'size_units' => ['px', 'em', '%'],
593
  'selectors' => [
598
  /*Button Padding*/
599
  $this->add_responsive_control('premium_button_padding_normal',
600
  [
601
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
602
  'type' => Controls_Manager::DIMENSIONS,
603
  'size_units' => ['px', 'em', '%'],
604
  'selectors' => [
610
 
611
  $this->start_controls_tab('premium_button_style_hover',
612
  [
613
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
614
  ]
615
  );
616
 
617
  $this->add_control('premium_button_text_color_hover',
618
  [
619
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
620
  'type' => Controls_Manager::COLOR,
621
  'scheme' => [
622
  'type' => Scheme_Color::get_type(),
632
 
633
  $this->add_control('premium_button_icon_color_hover',
634
  [
635
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
636
  'type' => Controls_Manager::COLOR,
637
  'scheme' => [
638
  'type' => Scheme_Color::get_type(),
649
 
650
  $this->add_control('premium_button_style4_icon_color',
651
  [
652
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
653
  'type' => Controls_Manager::COLOR,
654
  'scheme' => [
655
  'type' => Scheme_Color::get_type(),
665
 
666
  $this->add_control('premium_button_background_hover',
667
  [
668
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
669
  'type' => Controls_Manager::COLOR,
670
  'scheme' => [
671
  'type' => Scheme_Color::get_type(),
690
  /*Button Border Radius*/
691
  $this->add_control('premium_button_border_radius_hover',
692
  [
693
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
694
  'type' => Controls_Manager::SLIDER,
695
  'size_units' => ['px', '%' ,'em'],
696
  'selectors' => [
703
  $this->add_group_control(
704
  Group_Control_Text_Shadow::get_type(),
705
  [
706
+ 'label' => __('Icon Shadow','premium-addons-for-elementor'),
707
  'name' => 'premium_button_icon_shadow_hover',
708
  'selector' => '{{WRAPPER}} .premium-button:hover .premium-button-text-icon-wrapper i',
709
  'condition' => [
716
  $this->add_group_control(
717
  Group_Control_Text_Shadow::get_type(),
718
  [
719
+ 'label' => __('Icon Shadow','premium-addons-for-elementor'),
720
  'name' => 'premium_button_style4_icon_shadow_hover',
721
  'selector' => '{{WRAPPER}} .premium-button:hover .premium-button-style4-icon-wrapper',
722
  'condition' => [
729
  $this->add_group_control(
730
  Group_Control_Text_Shadow::get_type(),
731
  [
732
+ 'label' => __('Text Shadow','premium-addons-for-elementor'),
733
  'name' => 'premium_button_text_shadow_hover',
734
  'selector' => '{{WRAPPER}} .premium-button:hover .premium-button-text-icon-wrapper span',
735
  'condition' => [
742
  $this->add_group_control(
743
  Group_Control_Box_Shadow::get_type(),
744
  [
745
+ 'label' => __('Button Shadow','premium-addons-for-elementor'),
746
  'name' => 'premium_button_box_shadow_hover',
747
  'selector' => '{{WRAPPER}} .premium-button:hover',
748
  ]
751
  /*Button Margin*/
752
  $this->add_responsive_control('premium_button_margin_hover',
753
  [
754
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
755
  'type' => Controls_Manager::DIMENSIONS,
756
  'size_units' => ['px', 'em', '%'],
757
  'selectors' => [
762
  /*Button Padding*/
763
  $this->add_responsive_control('premium_button_padding_hover',
764
  [
765
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
766
  'type' => Controls_Manager::DIMENSIONS,
767
  'size_units' => ['px', 'em', '%'],
768
  'selectors' => [
widgets/premium-carousel.php CHANGED
@@ -44,18 +44,18 @@ class Premium_Carousel extends Widget_Base {
44
  protected function _register_controls() {
45
  $this->start_controls_section('premium_carousel_global_settings',
46
  [
47
- 'label' => esc_html__( 'Carousel' , 'premium-addons-for-elementor' )
48
  ]
49
  );
50
 
51
  $this->add_control('premium_carousel_content_type',
52
  [
53
- 'label' => esc_html__( 'Content Type', 'premium-addons-for-elementor' ),
54
- 'description' => esc_html__( 'How templates are selected', 'premium-addons-for-elementor' ),
55
  'type' => Controls_Manager::SELECT,
56
  'options' => [
57
- 'select' => esc_html__( 'Select Field', 'premium-addons-for-elementor' ),
58
- 'repeater' => esc_html__( 'Repeater', 'premium-addons-for-elementor' )
59
  ],
60
  'default' => 'select'
61
  ]
@@ -63,8 +63,8 @@ class Premium_Carousel extends Widget_Base {
63
 
64
  $this->add_control('premium_carousel_slider_content',
65
  [
66
- 'label' => esc_html__( 'Templates', 'premium-addons-for-elementor' ),
67
- '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' ),
68
  'type' => Controls_Manager::SELECT2,
69
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
70
  'multiple' => true,
@@ -78,7 +78,7 @@ class Premium_Carousel extends Widget_Base {
78
 
79
  $repeater->add_control('premium_carousel_repeater_item',
80
  [
81
- 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' ),
82
  'type' => Controls_Manager::SELECT2,
83
  'options' => $this->getTemplateInstance()->get_elementor_page_list()
84
  ]
@@ -86,7 +86,7 @@ class Premium_Carousel extends Widget_Base {
86
 
87
  $this->add_control('premium_carousel_templates_repeater',
88
  [
89
- 'label' => esc_html__('Templates', 'premium-addons-for-elementor'),
90
  'type' => Controls_Manager::REPEATER,
91
  'fields' => array_values( $repeater->get_controls() ),
92
  'condition' => [
@@ -99,12 +99,12 @@ class Premium_Carousel extends Widget_Base {
99
 
100
  $this->add_control('premium_carousel_slider_type',
101
  [
102
- 'label' => esc_html__( 'Type', 'premium-addons-for-elementor' ),
103
- 'description' => esc_html__( 'Set a navigation type', 'premium-addons-for-elementor' ),
104
  'type' => Controls_Manager::SELECT,
105
  'options' => [
106
- 'horizontal' => esc_html__( 'Horizontal', 'premium-addons-for-elementor' ),
107
- 'vertical' => esc_html__( 'Vertical', 'premium-addons-for-elementor' )
108
  ],
109
  'default' => 'horizontal'
110
  ]
@@ -112,19 +112,19 @@ class Premium_Carousel extends Widget_Base {
112
 
113
  $this->add_control('premium_carousel_slides_to_show',
114
  [
115
- 'label' => esc_html__( 'Appearance', 'premium-addons-for-elementor' ),
116
  'type' => Controls_Manager::SELECT,
117
  'default' => 'all',
118
  'options' => [
119
- 'all' => esc_html__( 'All visible', 'premium-addons-for-elementor' ),
120
- 'single' => esc_html__( 'One at a time', 'premium-addons-for-elementor' )
121
  ]
122
  ]
123
  );
124
 
125
  $this->add_control('premium_carousel_responsive_desktop',
126
  [
127
- 'label' => esc_html__( 'Desktop Slides', 'premium-addons-for-elementor' ),
128
  'type' => Controls_Manager::NUMBER,
129
  'default' => 5
130
  ]
@@ -132,7 +132,7 @@ class Premium_Carousel extends Widget_Base {
132
 
133
  $this->add_control('premium_carousel_responsive_tabs',
134
  [
135
- 'label' => esc_html__( 'Tabs Slides', 'premium-addons-for-elementor' ),
136
  'type' => Controls_Manager::NUMBER,
137
  'default' => 3
138
  ]
@@ -140,7 +140,7 @@ class Premium_Carousel extends Widget_Base {
140
 
141
  $this->add_control('premium_carousel_responsive_mobile',
142
  [
143
- 'label' => esc_html__( 'Mobile Slides', 'premium-addons-for-elementor' ),
144
  'type' => Controls_Manager::NUMBER,
145
  'default' => 2
146
  ]
@@ -150,23 +150,23 @@ class Premium_Carousel extends Widget_Base {
150
 
151
  $this->start_controls_section('premium_carousel_slides_settings',
152
  [
153
- 'label' => esc_html__( 'Slides\' Settings' , 'premium-addons-for-elementor' )
154
  ]
155
  );
156
 
157
  $this->add_control('premium_carousel_loop',
158
  [
159
- 'label' => esc_html__( 'Infinite Loop', 'premium-addons-for-elementor' ),
160
  'type' => Controls_Manager::SWITCHER,
161
- 'description' => esc_html__( 'Restart the slider automatically as it passes the last slide', 'premium-addons-for-elementor' ),
162
  'default' => 'yes'
163
  ]
164
  );
165
 
166
  $this->add_control('premium_carousel_speed',
167
  [
168
- 'label' => esc_html__( 'Transition Speed', 'premium-addons-for-elementor' ),
169
- 'description' => esc_html__( 'Set a navigation speed value. The value will be counted in milliseconds (ms)', 'premium-addons-for-elementor' ),
170
  'type' => Controls_Manager::NUMBER,
171
  'default' => 300
172
  ]
@@ -174,8 +174,8 @@ class Premium_Carousel extends Widget_Base {
174
 
175
  $this->add_control('premium_carousel_autoplay',
176
  [
177
- 'label' => esc_html__( 'Autoplay Slides‏', 'premium-addons-for-elementor' ),
178
- 'description' => esc_html__( 'Slide will start automatically', 'premium-addons-for-elementor' ),
179
  'type' => Controls_Manager::SWITCHER,
180
  'default' => 'yes'
181
  ]
@@ -183,8 +183,8 @@ class Premium_Carousel extends Widget_Base {
183
 
184
  $this->add_control('premium_carousel_autoplay_speed',
185
  [
186
- 'label' => esc_html__( 'Autoplay Speed', 'premium-addons-for-elementor' ),
187
- 'description' => esc_html__( 'Autoplay Speed means at which time the next slide should come. Set a value in milliseconds (ms)', 'premium-addons-for-elementor' ),
188
  'type' => Controls_Manager::NUMBER,
189
  'default' => 5000,
190
  'condition' => [
@@ -196,16 +196,16 @@ class Premium_Carousel extends Widget_Base {
196
 
197
  $this->add_control('premium_carousel_animation_list',
198
  [
199
- 'label' => esc_html__('Animations', 'premium-addons-for-elementor'),
200
  'type' => Controls_Manager::ANIMATION,
201
  ]
202
  );
203
 
204
  $this->add_control('premium_carousel_extra_class',
205
  [
206
- 'label' => esc_html__( 'Extra Class', 'premium-addons-for-elementor' ),
207
  'type' => Controls_Manager::TEXT,
208
- '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' ),
209
  ]
210
  );
211
 
@@ -213,22 +213,22 @@ class Premium_Carousel extends Widget_Base {
213
 
214
  $this->start_controls_section('premium_carousel_navigation',
215
  [
216
- 'label' => esc_html__( 'Navigation', 'premium-addons-for-elementor' ),
217
  'tab' => Controls_Manager::TAB_STYLE
218
  ]
219
  );
220
 
221
  $this->add_control('premium_carousel_arrow_heading',
222
  [
223
- 'label' => esc_html__('Arrows','premium-addons-for-elementor'),
224
  'type' => Controls_manager::HEADING
225
  ]
226
  );
227
 
228
  $this->add_control('premium_carousel_navigation_show',
229
  [
230
- 'label' => esc_html__( 'Arrows', 'premium-addons-for-elementor' ),
231
- 'description' => esc_html__( 'Enable or disable navigation arrows', 'premium-addons-for-elementor' ),
232
  'type' => Controls_Manager::SWITCHER,
233
  'default' => 'yes'
234
  ]
@@ -236,7 +236,7 @@ class Premium_Carousel extends Widget_Base {
236
 
237
  $this->add_control('premium_carousel_arrow_icon_next',
238
  [
239
- 'label' => esc_html__( 'Right Icon', 'premium-addons-for-elementor' ),
240
  'type' => Controls_Manager::CHOOSE,
241
  'options' => [
242
  'right_arrow_bold' => [
@@ -266,7 +266,7 @@ class Premium_Carousel extends Widget_Base {
266
  // If the carousel type vertical
267
  $this->add_control('premium_carousel_arrow_icon_next_ver',
268
  [
269
- 'label' => esc_html__( 'Bottom Icon', 'premium-addons-for-elementor' ),
270
  'type' => Controls_Manager::CHOOSE,
271
  'options' => [
272
  'right_arrow_bold' => [
@@ -296,7 +296,7 @@ class Premium_Carousel extends Widget_Base {
296
  // If carousel slider is vertical type
297
  $this->add_control('premium_carousel_arrow_icon_prev_ver',
298
  [
299
- 'label' => esc_html__( 'Top Icon', 'premium-addons-for-elementor' ),
300
  'type' => Controls_Manager::CHOOSE,
301
  'options' => [
302
  'left_arrow_bold' => [
@@ -325,7 +325,7 @@ class Premium_Carousel extends Widget_Base {
325
 
326
  $this->add_control('premium_carousel_arrow_icon_prev',
327
  [
328
- 'label' => esc_html__( 'Left Icon', 'premium-addons-for-elementor' ),
329
  'type' => Controls_Manager::CHOOSE,
330
  'options' => [
331
  'left_arrow_bold' => [
@@ -354,15 +354,15 @@ class Premium_Carousel extends Widget_Base {
354
 
355
  $this->add_control('premium_carousel_arrow_style',
356
  [
357
- 'label' => esc_html__( 'Style', 'premium-addons-for-elementor' ),
358
  'type' => Controls_Manager::SELECT,
359
  'default' => 'default',
360
  'options' => [
361
- 'default' => esc_html__( 'Default', 'premium-addons-for-elementor' ),
362
- 'circle-bg' => esc_html__( 'Circle Background', 'premium-addons-for-elementor' ),
363
- 'square-bg' => esc_html__( 'Square Background', 'premium-addons-for-elementor' ),
364
- 'circle-border' => esc_html__( 'Circle border', 'premium-addons-for-elementor' ),
365
- 'square-border' => esc_html__( 'Square border', 'premium-addons-for-elementor' ),
366
  ],
367
  'condition' => [
368
  'premium_carousel_navigation_show' => 'yes'
@@ -372,7 +372,7 @@ class Premium_Carousel extends Widget_Base {
372
 
373
  $this->add_control('premium_carousel_arrow_color',
374
  [
375
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
376
  'type' => Controls_Manager::COLOR,
377
  'scheme' => [
378
  'type' => Scheme_Color::get_type(),
@@ -389,7 +389,7 @@ class Premium_Carousel extends Widget_Base {
389
 
390
  $this->add_control('premium_carousel_arrow_size',
391
  [
392
- 'label' => esc_html__( 'Size', 'premium-addons-for-elementor' ),
393
  'type' => Controls_Manager::SLIDER,
394
  'default' => [
395
  'size' => 14,
@@ -411,7 +411,7 @@ class Premium_Carousel extends Widget_Base {
411
 
412
  $this->add_control('premium_carousel_arrow_bg_color',
413
  [
414
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
415
  'type' => Controls_Manager::COLOR,
416
  'scheme' => [
417
  'type' => Scheme_Color::get_type(),
@@ -429,7 +429,7 @@ class Premium_Carousel extends Widget_Base {
429
 
430
  $this->add_control('premium_carousel_arrow_border_color',
431
  [
432
- 'label' => esc_html__( 'Border Color', 'premium-addons-for-elementor' ),
433
  'type' => Controls_Manager::COLOR,
434
  'scheme' => [
435
  'type' => Scheme_Color::get_type(),
@@ -447,7 +447,7 @@ class Premium_Carousel extends Widget_Base {
447
 
448
  $this->add_control('premium_carousel_border_size',
449
  [
450
- 'label' => esc_html__( 'Border Size', 'premium-addons-for-elementor' ),
451
  'type' => Controls_Manager::SLIDER,
452
  'default' => [
453
  'size' => 1,
@@ -470,7 +470,7 @@ class Premium_Carousel extends Widget_Base {
470
 
471
  $this->add_control('premium_carousel_arrow_position',
472
  [
473
- 'label' => esc_html__('Position (PX)', 'premium-addons-for-elementor'),
474
  'type' => Controls_Manager::SLIDER,
475
  'range' => [
476
  'px' => [
@@ -487,14 +487,14 @@ class Premium_Carousel extends Widget_Base {
487
 
488
  $this->add_control('premium_carousel_dots_heading',
489
  [
490
- 'label' => esc_html__('Dots','premium-addons-for-elementor'),
491
  'type' => Controls_manager::HEADING,
492
  ]);
493
 
494
  $this->add_control('premium_carousel_dot_navigation_show',
495
  [
496
- 'label' => esc_html__( 'Dots', 'premium-addons-for-elementor' ),
497
- 'description' => esc_html__( 'Enable or disable navigation dots', 'premium-addons-for-elementor' ),
498
  'type' => Controls_Manager::SWITCHER,
499
  'default' => 'yes'
500
  ]
@@ -502,7 +502,7 @@ class Premium_Carousel extends Widget_Base {
502
 
503
  $this->add_control('premium_carousel_dot_icon',
504
  [
505
- 'label' => esc_html__( 'Icon', 'premium-addons-for-elementor' ),
506
  'type' => Controls_Manager::CHOOSE,
507
  'options' => [
508
  'square_white' => [
@@ -530,7 +530,7 @@ class Premium_Carousel extends Widget_Base {
530
 
531
  $this->add_control('premium_carousel_dot_navigation_color',
532
  [
533
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
534
  'type' => Controls_Manager::COLOR,
535
  'scheme' => [
536
  'type' => Scheme_Color::get_type(),
@@ -547,7 +547,7 @@ class Premium_Carousel extends Widget_Base {
547
 
548
  $this->add_control('premium_carousel_dot_navigation_active_color',
549
  [
550
- 'label' => esc_html__( 'Active Color', 'premium-addons-for-elementor' ),
551
  'type' => Controls_Manager::COLOR,
552
  'scheme' => [
553
  'type' => Scheme_Color::get_type(),
@@ -564,8 +564,8 @@ class Premium_Carousel extends Widget_Base {
564
 
565
  $this->add_control('premium_carousel_navigation_effect',
566
  [
567
- 'label' => esc_html__( 'Ripple Effect', 'premium-addons-for-elementor' ),
568
- 'description' => esc_html__( 'Enable a ripple effect when the active dot is hovered/clicked', 'premium-addons-for-elementor' ),
569
  'type' => Controls_Manager::SWITCHER,
570
  'condition' => [
571
  'premium_carousel_dot_navigation_show' => 'yes'
@@ -575,7 +575,7 @@ class Premium_Carousel extends Widget_Base {
575
 
576
  $this->add_control('premium_carousel_navigation_effect_border_color',
577
  [
578
- 'label' => esc_html__( 'Ripple Color', 'premium-addons-for-elementor' ),
579
  'type' => Controls_Manager::COLOR,
580
  'scheme' => [
581
  'type' => Scheme_Color::get_type(),
@@ -594,7 +594,7 @@ class Premium_Carousel extends Widget_Base {
594
  /*First Border Radius*/
595
  $this->add_control('premium_carousel_navigation_effect_border_radius',
596
  [
597
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
598
  'type' => Controls_Manager::SLIDER,
599
  'size_units' => ['px', '%', 'em'],
600
  'condition' => [
@@ -611,15 +611,15 @@ class Premium_Carousel extends Widget_Base {
611
 
612
  $this->start_controls_section('premium-carousel-advance-settings',
613
  [
614
- 'label' => esc_html__( 'Additional Settings' , 'premium-addons-for-elementor' ),
615
  'tab' => Controls_Manager::TAB_STYLE
616
  ]
617
  );
618
 
619
  $this->add_control('premium_carousel_draggable_effect',
620
  [
621
- 'label' => esc_html__( 'Draggable Effect', 'premium-addons-for-elementor' ),
622
- 'description' => esc_html__( 'Allow the slides to be dragged by mouse click', 'premium-addons-for-elementor' ),
623
  'type' => Controls_Manager::SWITCHER,
624
  'default' => 'yes'
625
  ]
@@ -627,8 +627,8 @@ class Premium_Carousel extends Widget_Base {
627
 
628
  $this->add_control('premium_carousel_touch_move',
629
  [
630
- 'label' => esc_html__( 'Touch Move', 'premium-addons-for-elementor' ),
631
- 'description' => esc_html__( 'Enable slide moving with touch', 'premium-addons-for-elementor' ),
632
  'type' => Controls_Manager::SWITCHER,
633
  'default' => 'yes'
634
  ]
@@ -636,8 +636,8 @@ class Premium_Carousel extends Widget_Base {
636
 
637
  $this->add_control('premium_carousel_RTL_Mode',
638
  [
639
- 'label' => esc_html__( 'RTL Mode', 'premium-addons-for-elementor' ),
640
- 'description' => esc_html__( 'Turn on RTL mode if your language starts from right to left', 'premium-addons-for-elementor' ),
641
  'type' => Controls_Manager::SWITCHER,
642
  'condition' => [
643
  'premium_carousel_slider_type!' => 'vertical'
@@ -647,32 +647,32 @@ class Premium_Carousel extends Widget_Base {
647
 
648
  $this->add_control('premium_carousel_adaptive_height',
649
  [
650
- 'label' => esc_html__( 'Adaptive Height', 'premium-addons-for-elementor' ),
651
- 'description' => esc_html__( 'Adaptive height setting gives each slide a fixed height to avoid huge white space gaps', 'premium-addons-for-elementor' ),
652
  'type' => Controls_Manager::SWITCHER,
653
  ]
654
  );
655
 
656
  $this->add_control('premium_carousel_pausehover',
657
  [
658
- 'label' => esc_html__( 'Pause on Hover', 'premium-addons-for-elementor' ),
659
- 'description' => esc_html__( 'Pause the slider when mouse hover', 'premium-addons-for-elementor' ),
660
  'type' => Controls_Manager::SWITCHER,
661
  ]
662
  );
663
 
664
  $this->add_control('premium_carousel_center_mode',
665
  [
666
- 'label' => esc_html__( 'Center Mode', 'premium-addons-for-elementor' ),
667
- 'description' => esc_html__( 'Center mode enables a centered view with partial next/previous slides. Animations and all visible scroll type doesn\'t work with this mode', 'premium-addons-for-elementor' ),
668
  'type' => Controls_Manager::SWITCHER,
669
  ]
670
  );
671
 
672
  $this->add_control('premium_carousel_space_btw_items',
673
  [
674
- 'label' => esc_html__( 'Slides\' Spacing', 'premium-addons-for-elementor' ),
675
- 'description' => esc_html__('Set a spacing value in pixels (px)', 'premium-addons-for-elementor'),
676
  'type' => Controls_Manager::NUMBER,
677
  'default' => '15'
678
  ]
44
  protected function _register_controls() {
45
  $this->start_controls_section('premium_carousel_global_settings',
46
  [
47
+ 'label' => __( 'Carousel' , 'premium-addons-for-elementor' )
48
  ]
49
  );
50
 
51
  $this->add_control('premium_carousel_content_type',
52
  [
53
+ 'label' => __( 'Content Type', 'premium-addons-for-elementor' ),
54
+ 'description' => __( 'How templates are selected', 'premium-addons-for-elementor' ),
55
  'type' => Controls_Manager::SELECT,
56
  'options' => [
57
+ 'select' => __( 'Select Field', 'premium-addons-for-elementor' ),
58
+ 'repeater' => __( 'Repeater', 'premium-addons-for-elementor' )
59
  ],
60
  'default' => 'select'
61
  ]
63
 
64
  $this->add_control('premium_carousel_slider_content',
65
  [
66
+ 'label' => __( 'Templates', 'premium-addons-for-elementor' ),
67
+ 'description' => __( 'Slider content is a template which you can choose from Elementor library. Each template will be a slider content', 'premium-addons-for-elementor' ),
68
  'type' => Controls_Manager::SELECT2,
69
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
70
  'multiple' => true,
78
 
79
  $repeater->add_control('premium_carousel_repeater_item',
80
  [
81
+ 'label' => __( 'Content', 'premium-addons-for-elementor' ),
82
  'type' => Controls_Manager::SELECT2,
83
  'options' => $this->getTemplateInstance()->get_elementor_page_list()
84
  ]
86
 
87
  $this->add_control('premium_carousel_templates_repeater',
88
  [
89
+ 'label' => __('Templates', 'premium-addons-for-elementor'),
90
  'type' => Controls_Manager::REPEATER,
91
  'fields' => array_values( $repeater->get_controls() ),
92
  'condition' => [
99
 
100
  $this->add_control('premium_carousel_slider_type',
101
  [
102
+ 'label' => __( 'Type', 'premium-addons-for-elementor' ),
103
+ 'description' => __( 'Set a navigation type', 'premium-addons-for-elementor' ),
104
  'type' => Controls_Manager::SELECT,
105
  'options' => [
106
+ 'horizontal' => __( 'Horizontal', 'premium-addons-for-elementor' ),
107
+ 'vertical' => __( 'Vertical', 'premium-addons-for-elementor' )
108
  ],
109
  'default' => 'horizontal'
110
  ]
112
 
113
  $this->add_control('premium_carousel_slides_to_show',
114
  [
115
+ 'label' => __( 'Appearance', 'premium-addons-for-elementor' ),
116
  'type' => Controls_Manager::SELECT,
117
  'default' => 'all',
118
  'options' => [
119
+ 'all' => __( 'All visible', 'premium-addons-for-elementor' ),
120
+ 'single' => __( 'One at a time', 'premium-addons-for-elementor' )
121
  ]
122
  ]
123
  );
124
 
125
  $this->add_control('premium_carousel_responsive_desktop',
126
  [
127
+ 'label' => __( 'Desktop Slides', 'premium-addons-for-elementor' ),
128
  'type' => Controls_Manager::NUMBER,
129
  'default' => 5
130
  ]
132
 
133
  $this->add_control('premium_carousel_responsive_tabs',
134
  [
135
+ 'label' => __( 'Tabs Slides', 'premium-addons-for-elementor' ),
136
  'type' => Controls_Manager::NUMBER,
137
  'default' => 3
138
  ]
140
 
141
  $this->add_control('premium_carousel_responsive_mobile',
142
  [
143
+ 'label' => __( 'Mobile Slides', 'premium-addons-for-elementor' ),
144
  'type' => Controls_Manager::NUMBER,
145
  'default' => 2
146
  ]
150
 
151
  $this->start_controls_section('premium_carousel_slides_settings',
152
  [
153
+ 'label' => __( 'Slides\' Settings' , 'premium-addons-for-elementor' )
154
  ]
155
  );
156
 
157
  $this->add_control('premium_carousel_loop',
158
  [
159
+ 'label' => __( 'Infinite Loop', 'premium-addons-for-elementor' ),
160
  'type' => Controls_Manager::SWITCHER,
161
+ 'description' => __( 'Restart the slider automatically as it passes the last slide', 'premium-addons-for-elementor' ),
162
  'default' => 'yes'
163
  ]
164
  );
165
 
166
  $this->add_control('premium_carousel_speed',
167
  [
168
+ 'label' => __( 'Transition Speed', 'premium-addons-for-elementor' ),
169
+ 'description' => __( 'Set a navigation speed value. The value will be counted in milliseconds (ms)', 'premium-addons-for-elementor' ),
170
  'type' => Controls_Manager::NUMBER,
171
  'default' => 300
172
  ]
174
 
175
  $this->add_control('premium_carousel_autoplay',
176
  [
177
+ 'label' => __( 'Autoplay Slides‏', 'premium-addons-for-elementor' ),
178
+ 'description' => __( 'Slide will start automatically', 'premium-addons-for-elementor' ),
179
  'type' => Controls_Manager::SWITCHER,
180
  'default' => 'yes'
181
  ]
183
 
184
  $this->add_control('premium_carousel_autoplay_speed',
185
  [
186
+ 'label' => __( 'Autoplay Speed', 'premium-addons-for-elementor' ),
187
+ 'description' => __( 'Autoplay Speed means at which time the next slide should come. Set a value in milliseconds (ms)', 'premium-addons-for-elementor' ),
188
  'type' => Controls_Manager::NUMBER,
189
  'default' => 5000,
190
  'condition' => [
196
 
197
  $this->add_control('premium_carousel_animation_list',
198
  [
199
+ 'label' => __('Animations', 'premium-addons-for-elementor'),
200
  'type' => Controls_Manager::ANIMATION,
201
  ]
202
  );
203
 
204
  $this->add_control('premium_carousel_extra_class',
205
  [
206
+ 'label' => __( 'Extra Class', 'premium-addons-for-elementor' ),
207
  'type' => Controls_Manager::TEXT,
208
+ 'description' => __( 'Add extra class name that will be applied to the carousel, and you can use this class for your customizations.', 'premium-addons-for-elementor' ),
209
  ]
210
  );
211
 
213
 
214
  $this->start_controls_section('premium_carousel_navigation',
215
  [
216
+ 'label' => __( 'Navigation', 'premium-addons-for-elementor' ),
217
  'tab' => Controls_Manager::TAB_STYLE
218
  ]
219
  );
220
 
221
  $this->add_control('premium_carousel_arrow_heading',
222
  [
223
+ 'label' => __('Arrows','premium-addons-for-elementor'),
224
  'type' => Controls_manager::HEADING
225
  ]
226
  );
227
 
228
  $this->add_control('premium_carousel_navigation_show',
229
  [
230
+ 'label' => __( 'Arrows', 'premium-addons-for-elementor' ),
231
+ 'description' => __( 'Enable or disable navigation arrows', 'premium-addons-for-elementor' ),
232
  'type' => Controls_Manager::SWITCHER,
233
  'default' => 'yes'
234
  ]
236
 
237
  $this->add_control('premium_carousel_arrow_icon_next',
238
  [
239
+ 'label' => __( 'Right Icon', 'premium-addons-for-elementor' ),
240
  'type' => Controls_Manager::CHOOSE,
241
  'options' => [
242
  'right_arrow_bold' => [
266
  // If the carousel type vertical
267
  $this->add_control('premium_carousel_arrow_icon_next_ver',
268
  [
269
+ 'label' => __( 'Bottom Icon', 'premium-addons-for-elementor' ),
270
  'type' => Controls_Manager::CHOOSE,
271
  'options' => [
272
  'right_arrow_bold' => [
296
  // If carousel slider is vertical type
297
  $this->add_control('premium_carousel_arrow_icon_prev_ver',
298
  [
299
+ 'label' => __( 'Top Icon', 'premium-addons-for-elementor' ),
300
  'type' => Controls_Manager::CHOOSE,
301
  'options' => [
302
  'left_arrow_bold' => [
325
 
326
  $this->add_control('premium_carousel_arrow_icon_prev',
327
  [
328
+ 'label' => __( 'Left Icon', 'premium-addons-for-elementor' ),
329
  'type' => Controls_Manager::CHOOSE,
330
  'options' => [
331
  'left_arrow_bold' => [
354
 
355
  $this->add_control('premium_carousel_arrow_style',
356
  [
357
+ 'label' => __( 'Style', 'premium-addons-for-elementor' ),
358
  'type' => Controls_Manager::SELECT,
359
  'default' => 'default',
360
  'options' => [
361
+ 'default' => __( 'Default', 'premium-addons-for-elementor' ),
362
+ 'circle-bg' => __( 'Circle Background', 'premium-addons-for-elementor' ),
363
+ 'square-bg' => __( 'Square Background', 'premium-addons-for-elementor' ),
364
+ 'circle-border' => __( 'Circle border', 'premium-addons-for-elementor' ),
365
+ 'square-border' => __( 'Square border', 'premium-addons-for-elementor' ),
366
  ],
367
  'condition' => [
368
  'premium_carousel_navigation_show' => 'yes'
372
 
373
  $this->add_control('premium_carousel_arrow_color',
374
  [
375
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
376
  'type' => Controls_Manager::COLOR,
377
  'scheme' => [
378
  'type' => Scheme_Color::get_type(),
389
 
390
  $this->add_control('premium_carousel_arrow_size',
391
  [
392
+ 'label' => __( 'Size', 'premium-addons-for-elementor' ),
393
  'type' => Controls_Manager::SLIDER,
394
  'default' => [
395
  'size' => 14,
411
 
412
  $this->add_control('premium_carousel_arrow_bg_color',
413
  [
414
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
415
  'type' => Controls_Manager::COLOR,
416
  'scheme' => [
417
  'type' => Scheme_Color::get_type(),
429
 
430
  $this->add_control('premium_carousel_arrow_border_color',
431
  [
432
+ 'label' => __( 'Border Color', 'premium-addons-for-elementor' ),
433
  'type' => Controls_Manager::COLOR,
434
  'scheme' => [
435
  'type' => Scheme_Color::get_type(),
447
 
448
  $this->add_control('premium_carousel_border_size',
449
  [
450
+ 'label' => __( 'Border Size', 'premium-addons-for-elementor' ),
451
  'type' => Controls_Manager::SLIDER,
452
  'default' => [
453
  'size' => 1,
470
 
471
  $this->add_control('premium_carousel_arrow_position',
472
  [
473
+ 'label' => __('Position (PX)', 'premium-addons-for-elementor'),
474
  'type' => Controls_Manager::SLIDER,
475
  'range' => [
476
  'px' => [
487
 
488
  $this->add_control('premium_carousel_dots_heading',
489
  [
490
+ 'label' => __('Dots','premium-addons-for-elementor'),
491
  'type' => Controls_manager::HEADING,
492
  ]);
493
 
494
  $this->add_control('premium_carousel_dot_navigation_show',
495
  [
496
+ 'label' => __( 'Dots', 'premium-addons-for-elementor' ),
497
+ 'description' => __( 'Enable or disable navigation dots', 'premium-addons-for-elementor' ),
498
  'type' => Controls_Manager::SWITCHER,
499
  'default' => 'yes'
500
  ]
502
 
503
  $this->add_control('premium_carousel_dot_icon',
504
  [
505
+ 'label' => __( 'Icon', 'premium-addons-for-elementor' ),
506
  'type' => Controls_Manager::CHOOSE,
507
  'options' => [
508
  'square_white' => [
530
 
531
  $this->add_control('premium_carousel_dot_navigation_color',
532
  [
533
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
534
  'type' => Controls_Manager::COLOR,
535
  'scheme' => [
536
  'type' => Scheme_Color::get_type(),
547
 
548
  $this->add_control('premium_carousel_dot_navigation_active_color',
549
  [
550
+ 'label' => __( 'Active Color', 'premium-addons-for-elementor' ),
551
  'type' => Controls_Manager::COLOR,
552
  'scheme' => [
553
  'type' => Scheme_Color::get_type(),
564
 
565
  $this->add_control('premium_carousel_navigation_effect',
566
  [
567
+ 'label' => __( 'Ripple Effect', 'premium-addons-for-elementor' ),
568
+ 'description' => __( 'Enable a ripple effect when the active dot is hovered/clicked', 'premium-addons-for-elementor' ),
569
  'type' => Controls_Manager::SWITCHER,
570
  'condition' => [
571
  'premium_carousel_dot_navigation_show' => 'yes'
575
 
576
  $this->add_control('premium_carousel_navigation_effect_border_color',
577
  [
578
+ 'label' => __( 'Ripple Color', 'premium-addons-for-elementor' ),
579
  'type' => Controls_Manager::COLOR,
580
  'scheme' => [
581
  'type' => Scheme_Color::get_type(),
594
  /*First Border Radius*/
595
  $this->add_control('premium_carousel_navigation_effect_border_radius',
596
  [
597
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
598
  'type' => Controls_Manager::SLIDER,
599
  'size_units' => ['px', '%', 'em'],
600
  'condition' => [
611
 
612
  $this->start_controls_section('premium-carousel-advance-settings',
613
  [
614
+ 'label' => __( 'Additional Settings' , 'premium-addons-for-elementor' ),
615
  'tab' => Controls_Manager::TAB_STYLE
616
  ]
617
  );
618
 
619
  $this->add_control('premium_carousel_draggable_effect',
620
  [
621
+ 'label' => __( 'Draggable Effect', 'premium-addons-for-elementor' ),
622
+ 'description' => __( 'Allow the slides to be dragged by mouse click', 'premium-addons-for-elementor' ),
623
  'type' => Controls_Manager::SWITCHER,
624
  'default' => 'yes'
625
  ]
627
 
628
  $this->add_control('premium_carousel_touch_move',
629
  [
630
+ 'label' => __( 'Touch Move', 'premium-addons-for-elementor' ),
631
+ 'description' => __( 'Enable slide moving with touch', 'premium-addons-for-elementor' ),
632
  'type' => Controls_Manager::SWITCHER,
633
  'default' => 'yes'
634
  ]
636
 
637
  $this->add_control('premium_carousel_RTL_Mode',
638
  [
639
+ 'label' => __( 'RTL Mode', 'premium-addons-for-elementor' ),
640
+ 'description' => __( 'Turn on RTL mode if your language starts from right to left', 'premium-addons-for-elementor' ),
641
  'type' => Controls_Manager::SWITCHER,
642
  'condition' => [
643
  'premium_carousel_slider_type!' => 'vertical'
647
 
648
  $this->add_control('premium_carousel_adaptive_height',
649
  [
650
+ 'label' => __( 'Adaptive Height', 'premium-addons-for-elementor' ),
651
+ 'description' => __( 'Adaptive height setting gives each slide a fixed height to avoid huge white space gaps', 'premium-addons-for-elementor' ),
652
  'type' => Controls_Manager::SWITCHER,
653
  ]
654
  );
655
 
656
  $this->add_control('premium_carousel_pausehover',
657
  [
658
+ 'label' => __( 'Pause on Hover', 'premium-addons-for-elementor' ),
659
+ 'description' => __( 'Pause the slider when mouse hover', 'premium-addons-for-elementor' ),
660
  'type' => Controls_Manager::SWITCHER,
661
  ]
662
  );
663
 
664
  $this->add_control('premium_carousel_center_mode',
665
  [
666
+ 'label' => __( 'Center Mode', 'premium-addons-for-elementor' ),
667
+ 'description' => __( 'Center mode enables a centered view with partial next/previous slides. Animations and all visible scroll type doesn\'t work with this mode', 'premium-addons-for-elementor' ),
668
  'type' => Controls_Manager::SWITCHER,
669
  ]
670
  );
671
 
672
  $this->add_control('premium_carousel_space_btw_items',
673
  [
674
+ 'label' => __( 'Slides\' Spacing', 'premium-addons-for-elementor' ),
675
+ 'description' => __('Set a spacing value in pixels (px)', 'premium-addons-for-elementor'),
676
  'type' => Controls_Manager::NUMBER,
677
  'default' => '15'
678
  ]
widgets/premium-contactform.php CHANGED
@@ -28,7 +28,7 @@ class Premium_Contactform extends Widget_Base {
28
  $this->start_controls_section(
29
  'premium_section_wpcf7_form',
30
  [
31
- 'label' => esc_html__( 'Contact Form', 'premium-addons-for-elementor' )
32
  ]
33
  );
34
 
@@ -36,7 +36,7 @@ class Premium_Contactform extends Widget_Base {
36
  $this->add_control(
37
  'premium_wpcf7_form',
38
  [
39
- 'label' => esc_html__( 'Select Your Contact Form', 'premium-addons-for-elementor' ),
40
  'label_block' => true,
41
  'type' => Controls_Manager::SELECT,
42
  'options' => $this->premium_contact_form(),
@@ -48,19 +48,19 @@ class Premium_Contactform extends Widget_Base {
48
 
49
  $this->start_controls_section('premium_wpcf7_fields',
50
  [
51
- 'label' => esc_html__('Fields', 'premium-addons-for-elementor'),
52
  ]);
53
 
54
  $this->add_control('premium_wpcf7_fields_heading',
55
  [
56
- 'label' => esc_html__('Width', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::HEADING
58
  ]);
59
 
60
  $this->add_responsive_control(
61
  'premium_elements_input_width',
62
  [
63
- 'label' => esc_html__( 'Input Field', 'premium-addons-for-elementor' ),
64
  'type' => Controls_Manager::SLIDER,
65
  'size_units' => [ 'px', 'em', '%' ],
66
  'range' => [
@@ -86,7 +86,7 @@ class Premium_Contactform extends Widget_Base {
86
  $this->add_responsive_control(
87
  'premium_elements_textarea_width',
88
  [
89
- 'label' => esc_html__( 'Text Area', 'premium-addons-for-elementor' ),
90
  'type' => Controls_Manager::SLIDER,
91
  'size_units' => [ 'px', 'em', '%' ],
92
  'range' => [
@@ -111,14 +111,14 @@ class Premium_Contactform extends Widget_Base {
111
 
112
  $this->add_control('premium_wpcf7_fields_height_heading',
113
  [
114
- 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
115
  'type' => Controls_Manager::HEADING
116
  ]);
117
 
118
  $this->add_responsive_control(
119
  'premium_elements_input_height',
120
  [
121
- 'label' => esc_html__( 'Input Field', 'premium-addons-for-elementor' ),
122
  'type' => Controls_Manager::SLIDER,
123
  'size_units' => [ 'px', 'em' ],
124
  'range' => [
@@ -140,7 +140,7 @@ class Premium_Contactform extends Widget_Base {
140
  $this->add_responsive_control(
141
  'premium_elements_textarea_height',
142
  [
143
- 'label' => esc_html__( 'Text Area', 'premium-addons-for-elementor' ),
144
  'type' => Controls_Manager::SLIDER,
145
  'size_units' => [ 'px', 'em' ],
146
  'range' => [
@@ -163,14 +163,14 @@ class Premium_Contactform extends Widget_Base {
163
 
164
  $this->start_controls_section('premium_wpcf7_button',
165
  [
166
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
167
  ]);
168
 
169
  /*Button Width*/
170
  $this->add_responsive_control(
171
  'premium_elements_button_width',
172
  [
173
- 'label' => esc_html__( 'Width', 'premium-addons-for-elementor' ),
174
  'type' => Controls_Manager::SLIDER,
175
  'size_units' => [ 'px', 'em', '%' ],
176
  'range' => [
@@ -193,7 +193,7 @@ class Premium_Contactform extends Widget_Base {
193
  $this->add_responsive_control(
194
  'premium_elements_button_height',
195
  [
196
- 'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
197
  'type' => Controls_Manager::SLIDER,
198
  'size_units' => [ 'px', 'em' ],
199
  'range' => [
@@ -217,14 +217,14 @@ class Premium_Contactform extends Widget_Base {
217
  $this->start_controls_section(
218
  'section_contact_form_styles',
219
  [
220
- 'label' => esc_html__( 'Form', 'premium-addons-for-elementor' ),
221
  'tab' => Controls_Manager::TAB_STYLE
222
  ]
223
  );
224
  $this->add_control(
225
  'premium_elements_input_background',
226
  [
227
- 'label' => esc_html__( 'Input Field Background', 'premium-addons-for-elementor' ),
228
  'type' => Controls_Manager::COLOR,
229
  'selectors' => [
230
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea' => 'background: {{VALUE}};',
@@ -241,7 +241,7 @@ class Premium_Contactform extends Widget_Base {
241
  $this->add_responsive_control(
242
  'premium_elements_input_padding',
243
  [
244
- 'label' => esc_html__( 'Padding', 'premium-addons-for-elementor' ),
245
  'type' => Controls_Manager::DIMENSIONS,
246
  'size_units' => [ 'px', 'em', '%' ],
247
  'selectors' => [
@@ -261,7 +261,7 @@ class Premium_Contactform extends Widget_Base {
261
  $this->add_control(
262
  'premium_elements_input_border_radius',
263
  [
264
- 'label' => esc_html__( 'Border Radius', 'premium-addons-for-elementor' ),
265
  'type' => Controls_Manager::DIMENSIONS,
266
  'separator' => 'before',
267
  'size_units' => [ 'px' ],
@@ -274,7 +274,7 @@ class Premium_Contactform extends Widget_Base {
274
  $this->add_control(
275
  'premium_elements_input_focus',
276
  [
277
- 'label' => esc_html__( 'Focus Border Color', 'premium-addons-for-elementor' ),
278
  'type' => Controls_Manager::COLOR,
279
  'selectors' => [
280
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text:focus, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea:focus' => 'border-color: {{VALUE}};',
@@ -285,7 +285,7 @@ class Premium_Contactform extends Widget_Base {
285
  $this->add_control(
286
  'premium_elements_input_focus_border_animation',
287
  [
288
- 'label' => esc_html__( 'Focus Border Animation', 'premium-addons-for-elementor' ),
289
  'type' => Controls_Manager::SELECT,
290
  'options' => array(
291
  'premium_border_animation1' => 'On',
@@ -298,7 +298,7 @@ class Premium_Contactform extends Widget_Base {
298
  $this->add_control(
299
  'premium_elements_input_focus_border_color',
300
  [
301
- 'label' => esc_html__( 'Focus Line Color', 'premium-addons-for-elementor' ),
302
  'type' => Controls_Manager::COLOR,
303
  'condition' => [
304
  'premium_elements_input_focus_border_animation' => 'premium_border_animation1'
@@ -324,7 +324,7 @@ class Premium_Contactform extends Widget_Base {
324
  $this->start_controls_section(
325
  'section_contact_form_typography',
326
  [
327
- 'label' => esc_html__( 'Labels', 'premium-addons-for-elementor' ),
328
  'tab' => Controls_Manager::TAB_STYLE
329
  ]
330
  );
@@ -334,14 +334,14 @@ class Premium_Contactform extends Widget_Base {
334
  'premium_elements_heading_default',
335
  [
336
  'type' => Controls_Manager::HEADING,
337
- 'label' => esc_html__( 'Default Typography', 'premium-addons-for-elementor' ),
338
  ]
339
  );
340
 
341
  $this->add_control(
342
  'premium_elements_contact_form_color',
343
  [
344
- 'label' => esc_html__( 'Default Font Color', 'premium-addons-for-elementor' ),
345
  'type' => Controls_Manager::COLOR,
346
  'scheme' => [
347
  'type' => Scheme_Color::get_type(),
@@ -366,7 +366,7 @@ class Premium_Contactform extends Widget_Base {
366
  'premium_elements_heading_input',
367
  [
368
  'type' => Controls_Manager::HEADING,
369
- 'label' => esc_html__( 'Input Typography', 'premium-addons-for-elementor' ),
370
  'separator' => 'before',
371
  ]
372
  );
@@ -374,7 +374,7 @@ class Premium_Contactform extends Widget_Base {
374
  $this->add_control(
375
  'premium_elements_contact_form_field_color',
376
  [
377
- 'label' => esc_html__( 'Input Text Color', 'premium-addons-for-elementor' ),
378
  'type' => Controls_Manager::COLOR,
379
  'scheme' => [
380
  'type' => Scheme_Color::get_type(),
@@ -399,7 +399,7 @@ class Premium_Contactform extends Widget_Base {
399
  $this->add_control(
400
  'premium_elements_contact_form_placeholder_color',
401
  [
402
- 'label' => esc_html__( 'Placeholder Color', 'premium-addons-for-elementor' ),
403
  'type' => Controls_Manager::COLOR,
404
  'selectors' => [
405
  '{{WRAPPER}} .premium-elements-contact-form-container ::-webkit-input-placeholder' => 'color: {{VALUE}};',
@@ -415,7 +415,7 @@ class Premium_Contactform extends Widget_Base {
415
  $this->start_controls_section(
416
  'section_contact_form_submit_button_styles',
417
  [
418
- 'label' => esc_html__( 'Button', 'premium-addons-for-elementor' ),
419
  'tab' => Controls_Manager::TAB_STYLE
420
  ]
421
  );
@@ -432,7 +432,7 @@ class Premium_Contactform extends Widget_Base {
432
  $this->add_responsive_control(
433
  'section_title_premium_btn_padding',
434
  [
435
- 'label' => esc_html__( 'Padding', 'premium-addons-for-elementor' ),
436
  'type' => Controls_Manager::DIMENSIONS,
437
  'size_units' => [ 'px', 'em', '%' ],
438
  'selectors' => [
@@ -445,12 +445,12 @@ class Premium_Contactform extends Widget_Base {
445
 
446
  $this->start_controls_tabs( 'premium_elements_button_tabs' );
447
 
448
- $this->start_controls_tab( 'normal', [ 'label' => esc_html__( 'Normal', 'premium-addons-for-elementor' ) ] );
449
 
450
  $this->add_control(
451
  'premium_elements_button_text_color',
452
  [
453
- 'label' => esc_html__( 'Text Color', 'premium-addons-for-elementor' ),
454
  'type' => Controls_Manager::COLOR,
455
  'selectors' => [
456
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit' => 'color: {{VALUE}};',
@@ -463,7 +463,7 @@ class Premium_Contactform extends Widget_Base {
463
  $this->add_control(
464
  'premium_elements_button_background_color',
465
  [
466
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
467
  'type' => Controls_Manager::COLOR,
468
  'scheme' => [
469
  'type' => Scheme_Color::get_type(),
@@ -486,7 +486,7 @@ class Premium_Contactform extends Widget_Base {
486
  $this->add_control(
487
  'premium_elements_btn_border_radius',
488
  [
489
- 'label' => esc_html__( 'Border Radius', 'premium-addons-for-elementor' ),
490
  'type' => Controls_Manager::SLIDER,
491
  'range' => [
492
  'px' => [
@@ -503,12 +503,12 @@ class Premium_Contactform extends Widget_Base {
503
 
504
  $this->end_controls_tab();
505
 
506
- $this->start_controls_tab( 'premium_elements_hover', [ 'label' => esc_html__( 'Hover', 'premium-addons-for-elementor' ) ] );
507
 
508
  $this->add_control(
509
  'premium_elements_button_hover_text_color',
510
  [
511
- 'label' => esc_html__( 'Text Color', 'premium-addons-for-elementor' ),
512
  'type' => Controls_Manager::COLOR,
513
  'selectors' => [
514
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit:hover' => 'color: {{VALUE}};',
@@ -519,7 +519,7 @@ class Premium_Contactform extends Widget_Base {
519
  $this->add_control(
520
  'premium_elements_button_hover_background_color',
521
  [
522
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
523
  'type' => Controls_Manager::COLOR,
524
  'selectors' => [
525
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit:hover' => 'background-color: {{VALUE}};',
@@ -530,7 +530,7 @@ class Premium_Contactform extends Widget_Base {
530
  $this->add_control(
531
  'premium_elements_button_hover_border_color',
532
  [
533
- 'label' => esc_html__( 'Border Color', 'premium-addons-for-elementor' ),
534
  'type' => Controls_Manager::COLOR,
535
  'selectors' => [
536
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit:hover' => 'border-color: {{VALUE}};',
28
  $this->start_controls_section(
29
  'premium_section_wpcf7_form',
30
  [
31
+ 'label' => __( 'Contact Form', 'premium-addons-for-elementor' )
32
  ]
33
  );
34
 
36
  $this->add_control(
37
  'premium_wpcf7_form',
38
  [
39
+ 'label' => __( 'Select Your Contact Form', 'premium-addons-for-elementor' ),
40
  'label_block' => true,
41
  'type' => Controls_Manager::SELECT,
42
  'options' => $this->premium_contact_form(),
48
 
49
  $this->start_controls_section('premium_wpcf7_fields',
50
  [
51
+ 'label' => __('Fields', 'premium-addons-for-elementor'),
52
  ]);
53
 
54
  $this->add_control('premium_wpcf7_fields_heading',
55
  [
56
+ 'label' => __('Width', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::HEADING
58
  ]);
59
 
60
  $this->add_responsive_control(
61
  'premium_elements_input_width',
62
  [
63
+ 'label' => __( 'Input Field', 'premium-addons-for-elementor' ),
64
  'type' => Controls_Manager::SLIDER,
65
  'size_units' => [ 'px', 'em', '%' ],
66
  'range' => [
86
  $this->add_responsive_control(
87
  'premium_elements_textarea_width',
88
  [
89
+ 'label' => __( 'Text Area', 'premium-addons-for-elementor' ),
90
  'type' => Controls_Manager::SLIDER,
91
  'size_units' => [ 'px', 'em', '%' ],
92
  'range' => [
111
 
112
  $this->add_control('premium_wpcf7_fields_height_heading',
113
  [
114
+ 'label' => __('Height', 'premium-addons-for-elementor'),
115
  'type' => Controls_Manager::HEADING
116
  ]);
117
 
118
  $this->add_responsive_control(
119
  'premium_elements_input_height',
120
  [
121
+ 'label' => __( 'Input Field', 'premium-addons-for-elementor' ),
122
  'type' => Controls_Manager::SLIDER,
123
  'size_units' => [ 'px', 'em' ],
124
  'range' => [
140
  $this->add_responsive_control(
141
  'premium_elements_textarea_height',
142
  [
143
+ 'label' => __( 'Text Area', 'premium-addons-for-elementor' ),
144
  'type' => Controls_Manager::SLIDER,
145
  'size_units' => [ 'px', 'em' ],
146
  'range' => [
163
 
164
  $this->start_controls_section('premium_wpcf7_button',
165
  [
166
+ 'label' => __('Button', 'premium-addons-for-elementor'),
167
  ]);
168
 
169
  /*Button Width*/
170
  $this->add_responsive_control(
171
  'premium_elements_button_width',
172
  [
173
+ 'label' => __( 'Width', 'premium-addons-for-elementor' ),
174
  'type' => Controls_Manager::SLIDER,
175
  'size_units' => [ 'px', 'em', '%' ],
176
  'range' => [
193
  $this->add_responsive_control(
194
  'premium_elements_button_height',
195
  [
196
+ 'label' => __( 'Height', 'premium-addons-for-elementor' ),
197
  'type' => Controls_Manager::SLIDER,
198
  'size_units' => [ 'px', 'em' ],
199
  'range' => [
217
  $this->start_controls_section(
218
  'section_contact_form_styles',
219
  [
220
+ 'label' => __( 'Form', 'premium-addons-for-elementor' ),
221
  'tab' => Controls_Manager::TAB_STYLE
222
  ]
223
  );
224
  $this->add_control(
225
  'premium_elements_input_background',
226
  [
227
+ 'label' => __( 'Input Field Background', 'premium-addons-for-elementor' ),
228
  'type' => Controls_Manager::COLOR,
229
  'selectors' => [
230
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea' => 'background: {{VALUE}};',
241
  $this->add_responsive_control(
242
  'premium_elements_input_padding',
243
  [
244
+ 'label' => __( 'Padding', 'premium-addons-for-elementor' ),
245
  'type' => Controls_Manager::DIMENSIONS,
246
  'size_units' => [ 'px', 'em', '%' ],
247
  'selectors' => [
261
  $this->add_control(
262
  'premium_elements_input_border_radius',
263
  [
264
+ 'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
265
  'type' => Controls_Manager::DIMENSIONS,
266
  'separator' => 'before',
267
  'size_units' => [ 'px' ],
274
  $this->add_control(
275
  'premium_elements_input_focus',
276
  [
277
+ 'label' => __( 'Focus Border Color', 'premium-addons-for-elementor' ),
278
  'type' => Controls_Manager::COLOR,
279
  'selectors' => [
280
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text:focus, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea:focus' => 'border-color: {{VALUE}};',
285
  $this->add_control(
286
  'premium_elements_input_focus_border_animation',
287
  [
288
+ 'label' => __( 'Focus Border Animation', 'premium-addons-for-elementor' ),
289
  'type' => Controls_Manager::SELECT,
290
  'options' => array(
291
  'premium_border_animation1' => 'On',
298
  $this->add_control(
299
  'premium_elements_input_focus_border_color',
300
  [
301
+ 'label' => __( 'Focus Line Color', 'premium-addons-for-elementor' ),
302
  'type' => Controls_Manager::COLOR,
303
  'condition' => [
304
  'premium_elements_input_focus_border_animation' => 'premium_border_animation1'
324
  $this->start_controls_section(
325
  'section_contact_form_typography',
326
  [
327
+ 'label' => __( 'Labels', 'premium-addons-for-elementor' ),
328
  'tab' => Controls_Manager::TAB_STYLE
329
  ]
330
  );
334
  'premium_elements_heading_default',
335
  [
336
  'type' => Controls_Manager::HEADING,
337
+ 'label' => __( 'Default Typography', 'premium-addons-for-elementor' ),
338
  ]
339
  );
340
 
341
  $this->add_control(
342
  'premium_elements_contact_form_color',
343
  [
344
+ 'label' => __( 'Default Font Color', 'premium-addons-for-elementor' ),
345
  'type' => Controls_Manager::COLOR,
346
  'scheme' => [
347
  'type' => Scheme_Color::get_type(),
366
  'premium_elements_heading_input',
367
  [
368
  'type' => Controls_Manager::HEADING,
369
+ 'label' => __( 'Input Typography', 'premium-addons-for-elementor' ),
370
  'separator' => 'before',
371
  ]
372
  );
374
  $this->add_control(
375
  'premium_elements_contact_form_field_color',
376
  [
377
+ 'label' => __( 'Input Text Color', 'premium-addons-for-elementor' ),
378
  'type' => Controls_Manager::COLOR,
379
  'scheme' => [
380
  'type' => Scheme_Color::get_type(),
399
  $this->add_control(
400
  'premium_elements_contact_form_placeholder_color',
401
  [
402
+ 'label' => __( 'Placeholder Color', 'premium-addons-for-elementor' ),
403
  'type' => Controls_Manager::COLOR,
404
  'selectors' => [
405
  '{{WRAPPER}} .premium-elements-contact-form-container ::-webkit-input-placeholder' => 'color: {{VALUE}};',
415
  $this->start_controls_section(
416
  'section_contact_form_submit_button_styles',
417
  [
418
+ 'label' => __( 'Button', 'premium-addons-for-elementor' ),
419
  'tab' => Controls_Manager::TAB_STYLE
420
  ]
421
  );
432
  $this->add_responsive_control(
433
  'section_title_premium_btn_padding',
434
  [
435
+ 'label' => __( 'Padding', 'premium-addons-for-elementor' ),
436
  'type' => Controls_Manager::DIMENSIONS,
437
  'size_units' => [ 'px', 'em', '%' ],
438
  'selectors' => [
445
 
446
  $this->start_controls_tabs( 'premium_elements_button_tabs' );
447
 
448
+ $this->start_controls_tab( 'normal', [ 'label' => __( 'Normal', 'premium-addons-for-elementor' ) ] );
449
 
450
  $this->add_control(
451
  'premium_elements_button_text_color',
452
  [
453
+ 'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
454
  'type' => Controls_Manager::COLOR,
455
  'selectors' => [
456
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit' => 'color: {{VALUE}};',
463
  $this->add_control(
464
  'premium_elements_button_background_color',
465
  [
466
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
467
  'type' => Controls_Manager::COLOR,
468
  'scheme' => [
469
  'type' => Scheme_Color::get_type(),
486
  $this->add_control(
487
  'premium_elements_btn_border_radius',
488
  [
489
+ 'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
490
  'type' => Controls_Manager::SLIDER,
491
  'range' => [
492
  'px' => [
503
 
504
  $this->end_controls_tab();
505
 
506
+ $this->start_controls_tab( 'premium_elements_hover', [ 'label' => __( 'Hover', 'premium-addons-for-elementor' ) ] );
507
 
508
  $this->add_control(
509
  'premium_elements_button_hover_text_color',
510
  [
511
+ 'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
512
  'type' => Controls_Manager::COLOR,
513
  'selectors' => [
514
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit:hover' => 'color: {{VALUE}};',
519
  $this->add_control(
520
  'premium_elements_button_hover_background_color',
521
  [
522
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
523
  'type' => Controls_Manager::COLOR,
524
  'selectors' => [
525
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit:hover' => 'background-color: {{VALUE}};',
530
  $this->add_control(
531
  'premium_elements_button_hover_border_color',
532
  [
533
+ 'label' => __( 'Border Color', 'premium-addons-for-elementor' ),
534
  'type' => Controls_Manager::COLOR,
535
  'selectors' => [
536
  '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-submit:hover' => 'border-color: {{VALUE}};',
widgets/premium-countdown.php CHANGED
@@ -33,18 +33,18 @@ class Premium_Countdown extends Widget_Base {
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,44 +53,44 @@ class Premium_Countdown extends Widget_Base {
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'
60
  ],
61
  'default' => date( "Y/m/d H:m:s", strtotime("+ 1 Day") ),
62
- 'description' => esc_html__( 'Date format is (yyyy/mm/dd). Time format is (hh:mm:ss). Example: 2020-01-01 09:30.', 'premium-addons-for-elementor' )
63
  ]
64
  );
65
 
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' ),
73
- 'user-time' => esc_html__('User Local Time', 'premium-addons-for-elementor' )
74
  ],
75
  'default' => 'wp-time',
76
- 'description' => esc_html__('This will set the current time of the option that you will choose.', 'premium-addons-for-elementor')
77
  ]
78
  );
79
 
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' => [
87
- 'Y' => esc_html__( 'Years', 'premium-addons-for-elementor' ),
88
- 'O' => esc_html__( 'Month', 'premium-addons-for-elementor' ),
89
- 'W' => esc_html__( 'Week', 'premium-addons-for-elementor' ),
90
- 'D' => esc_html__( 'Day', 'premium-addons-for-elementor' ),
91
- 'H' => esc_html__( 'Hours', 'premium-addons-for-elementor' ),
92
- 'M' => esc_html__( 'Minutes', 'premium-addons-for-elementor' ),
93
- 'S' => esc_html__( 'Second', 'premium-addons-for-elementor' ),
94
  ],
95
  'default' => [
96
  'O',
@@ -107,19 +107,19 @@ class Premium_Countdown extends Widget_Base {
107
  $this->add_responsive_control(
108
  'premium_countdown_align',
109
  [
110
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
111
  'type' => Controls_Manager::CHOOSE,
112
  'options' => [
113
  'left' => [
114
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
115
  'icon' => 'fa fa-align-left',
116
  ],
117
  'center' => [
118
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
119
  'icon' => 'fa fa-align-center',
120
  ],
121
  'right' => [
122
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
123
  'icon' => 'fa fa-align-right',
124
  ],
125
  ],
@@ -136,20 +136,20 @@ class Premium_Countdown extends Widget_Base {
136
  $this->start_controls_section(
137
  'premium_countdown_on_expire_settings',
138
  [
139
- 'label' => esc_html__( 'Expire' , 'premium-addons-for-elementor' )
140
  ]
141
  );
142
 
143
  $this->add_control(
144
  'premium_countdown_expire_text_url',
145
  [
146
- 'label' => esc_html__('Expire Type', 'premium-addons-for-elementor'),
147
  'label_block' => false,
148
  'type' => Controls_Manager::SELECT,
149
- 'description' => esc_html__('Choose whether if you want to set a message or a redirect link', 'premium-addons-for-elementor'),
150
  'options' => [
151
- 'text' => esc_html__('Message', 'premium-addons-for-elementor'),
152
- 'url' => esc_html__('Redirection Link', 'premium-addons-for-elementor')
153
  ],
154
  'default' => 'text'
155
  ]
@@ -158,9 +158,9 @@ class Premium_Countdown extends Widget_Base {
158
  $this->add_control(
159
  'premium_countdown_expiry_text_',
160
  [
161
- 'label' => esc_html__('On expiry Text', 'premium-addons-for-elementor'),
162
  'type' => Controls_Manager::WYSIWYG,
163
- 'default' => esc_html__('Countdown is finished!','prmeium_elementor'),
164
  'condition' => [
165
  'premium_countdown_expire_text_url' => 'text'
166
  ]
@@ -170,7 +170,7 @@ class Premium_Countdown extends Widget_Base {
170
  $this->add_control(
171
  'premium_countdown_expiry_redirection_',
172
  [
173
- 'label' => esc_html__('Redirect To', 'premium-addons-for-elementor'),
174
  'type' => Controls_Manager::TEXT,
175
  'condition' => [
176
  'premium_countdown_expire_text_url' => 'url'
@@ -184,14 +184,14 @@ class Premium_Countdown extends Widget_Base {
184
  $this->start_controls_section(
185
  'premium_countdown_transaltion',
186
  [
187
- 'label' => esc_html__( 'Strings Translation' , 'premium-addons-for-elementor' )
188
  ]
189
  );
190
 
191
  $this->add_control(
192
  'premium_countdown_day_singular',
193
  [
194
- 'label' => esc_html__( 'Day (Singular)', 'premium-addons-for-elementor' ),
195
  'type' => Controls_Manager::TEXT,
196
  'default' => 'Day'
197
  ]
@@ -200,7 +200,7 @@ class Premium_Countdown extends Widget_Base {
200
  $this->add_control(
201
  'premium_countdown_day_plural',
202
  [
203
- 'label' => esc_html__( 'Day (Plural)', 'premium-addons-for-elementor' ),
204
  'type' => Controls_Manager::TEXT,
205
  'default' => 'Days'
206
  ]
@@ -209,7 +209,7 @@ class Premium_Countdown extends Widget_Base {
209
  $this->add_control(
210
  'premium_countdown_week_singular',
211
  [
212
- 'label' => esc_html__( 'Week (Singular)', 'premium-addons-for-elementor' ),
213
  'type' => Controls_Manager::TEXT,
214
  'default' => 'Week'
215
  ]
@@ -218,7 +218,7 @@ class Premium_Countdown extends Widget_Base {
218
  $this->add_control(
219
  'premium_countdown_week_plural',
220
  [
221
- 'label' => esc_html__( 'Weeks (Plural)', 'premium-addons-for-elementor' ),
222
  'type' => Controls_Manager::TEXT,
223
  'default' => 'Weeks'
224
  ]
@@ -228,7 +228,7 @@ class Premium_Countdown extends Widget_Base {
228
  $this->add_control(
229
  'premium_countdown_month_singular',
230
  [
231
- 'label' => esc_html__( 'Month (Singular)', 'premium-addons-for-elementor' ),
232
  'type' => Controls_Manager::TEXT,
233
  'default' => 'Month'
234
  ]
@@ -238,7 +238,7 @@ class Premium_Countdown extends Widget_Base {
238
  $this->add_control(
239
  'premium_countdown_month_plural',
240
  [
241
- 'label' => esc_html__( 'Months (Plural)', 'premium-addons-for-elementor' ),
242
  'type' => Controls_Manager::TEXT,
243
  'default' => 'Months'
244
  ]
@@ -248,7 +248,7 @@ class Premium_Countdown extends Widget_Base {
248
  $this->add_control(
249
  'premium_countdown_year_singular',
250
  [
251
- 'label' => esc_html__( 'Year (Singular)', 'premium-addons-for-elementor' ),
252
  'type' => Controls_Manager::TEXT,
253
  'default' => 'Year'
254
  ]
@@ -258,7 +258,7 @@ class Premium_Countdown extends Widget_Base {
258
  $this->add_control(
259
  'premium_countdown_year_plural',
260
  [
261
- 'label' => esc_html__( 'Years (Plural)', 'premium-addons-for-elementor' ),
262
  'type' => Controls_Manager::TEXT,
263
  'default' => 'Years'
264
  ]
@@ -268,7 +268,7 @@ class Premium_Countdown extends Widget_Base {
268
  $this->add_control(
269
  'premium_countdown_hour_singular',
270
  [
271
- 'label' => esc_html__( 'Hour (Singular)', 'premium-addons-for-elementor' ),
272
  'type' => Controls_Manager::TEXT,
273
  'default' => 'Hour'
274
  ]
@@ -278,7 +278,7 @@ class Premium_Countdown extends Widget_Base {
278
  $this->add_control(
279
  'premium_countdown_hour_plural',
280
  [
281
- 'label' => esc_html__( 'Hours (Plural)', 'premium-addons-for-elementor' ),
282
  'type' => Controls_Manager::TEXT,
283
  'default' => 'Hours'
284
  ]
@@ -288,7 +288,7 @@ class Premium_Countdown extends Widget_Base {
288
  $this->add_control(
289
  'premium_countdown_minute_singular',
290
  [
291
- 'label' => esc_html__( 'Minute (Singular)', 'premium-addons-for-elementor' ),
292
  'type' => Controls_Manager::TEXT,
293
  'default' => 'Minute'
294
  ]
@@ -297,7 +297,7 @@ class Premium_Countdown extends Widget_Base {
297
  $this->add_control(
298
  'premium_countdown_minute_plural',
299
  [
300
- 'label' => esc_html__( 'Minutes (Plural)', 'premium-addons-for-elementor' ),
301
  'type' => Controls_Manager::TEXT,
302
  'default' => 'Minutes'
303
  ]
@@ -306,7 +306,7 @@ class Premium_Countdown extends Widget_Base {
306
  $this->add_control(
307
  'premium_countdown_second_singular',
308
  [
309
- 'label' => esc_html__( 'Second (Singular)', 'premium-addons-for-elementor' ),
310
  'type' => Controls_Manager::TEXT,
311
  'default' => 'Second',
312
  ]
@@ -315,7 +315,7 @@ class Premium_Countdown extends Widget_Base {
315
  $this->add_control(
316
  'premium_countdown_second_plural',
317
  [
318
- 'label' => esc_html__( 'Seconds (Plural)', 'premium-addons-for-elementor' ),
319
  'type' => Controls_Manager::TEXT,
320
  'default' => 'Seconds'
321
  ]
@@ -326,7 +326,7 @@ class Premium_Countdown extends Widget_Base {
326
  $this->start_controls_section(
327
  'premium_countdown_typhography',
328
  [
329
- 'label' => esc_html__( 'Digits' , 'premium-addons-for-elementor' ),
330
  'tab' => Controls_Manager::TAB_STYLE
331
  ]
332
  );
@@ -334,7 +334,7 @@ class Premium_Countdown extends Widget_Base {
334
  $this->add_control(
335
  'premium_countdown_digit_color',
336
  [
337
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
338
  'type' => Controls_Manager::COLOR,
339
  'scheme' => [
340
  'type' => Scheme_Color::get_type(),
@@ -360,7 +360,7 @@ class Premium_Countdown extends Widget_Base {
360
  $this->add_control(
361
  'premium_countdown_timer_digit_bg_color',
362
  [
363
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
364
  'type' => Controls_Manager::COLOR,
365
  'scheme' => [
366
  'type' => Scheme_Color::get_type(),
@@ -375,7 +375,7 @@ class Premium_Countdown extends Widget_Base {
375
  $this->add_responsive_control(
376
  'premium_countdown_digit_bg_size',
377
  [
378
- 'label' => esc_html__( 'Background Size', 'premium-addons-for-elementor' ),
379
  'type' => Controls_Manager::SLIDER,
380
  'default' => [
381
  'size' => 30
@@ -401,7 +401,7 @@ class Premium_Countdown extends Widget_Base {
401
 
402
  $this->add_control('premium_countdown_digit_border_radius',
403
  [
404
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
405
  'type' => Controls_Manager::SLIDER,
406
  'size_units' => ['px', '%', 'em'],
407
  'selectors' => [
@@ -414,7 +414,7 @@ class Premium_Countdown extends Widget_Base {
414
 
415
  $this->start_controls_section('premium_countdown_unit_style',
416
  [
417
- 'label' => esc_html__('Units', 'premium-addons-for-elementor'),
418
  'tab' => Controls_Manager::TAB_STYLE,
419
  ]
420
  );
@@ -422,7 +422,7 @@ class Premium_Countdown extends Widget_Base {
422
  $this->add_control(
423
  'premium_countdown_unit_color',
424
  [
425
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
426
  'type' => Controls_Manager::COLOR,
427
  'scheme' => [
428
  'type' => Scheme_Color::get_type(),
@@ -447,7 +447,7 @@ class Premium_Countdown extends Widget_Base {
447
  $this->add_responsive_control(
448
  'premium_countdown_separator_width',
449
  [
450
- 'label' => esc_html__( 'Spacing in Between', 'premium-addons-for-elementor' ),
451
  'type' => Controls_Manager::SLIDER,
452
  'default' => [
453
  'size' => 40,
33
  $this->start_controls_section(
34
  'premium_countdown_global_settings',
35
  [
36
+ 'label' => __( 'Countdown', 'premium-addons-for-elementor' )
37
  ]
38
  );
39
 
40
  $this->add_control(
41
  'premium_countdown_style',
42
  [
43
+ 'label' => __( 'Style', 'premium-addons-for-elementor' ),
44
  'type' => Controls_Manager::SELECT,
45
  'options' => [
46
+ 'd-u-s' => __( 'Inline', 'premium-addons-for-elementor' ),
47
+ 'd-u-u' => __( 'Block', 'premium-addons-for-elementor' ),
48
  ],
49
  'default' => 'd-u-u'
50
  ]
53
  $this->add_control(
54
  'premium_countdown_date_time',
55
  [
56
+ 'label' => __( 'Due Date', 'premium-addons-for-elementor' ),
57
  'type' => Controls_Manager::DATE_TIME,
58
  'picker_options' => [
59
  'format' => 'Ym/d H:m:s'
60
  ],
61
  'default' => date( "Y/m/d H:m:s", strtotime("+ 1 Day") ),
62
+ 'description' => __( 'Date format is (yyyy/mm/dd). Time format is (hh:mm:ss). Example: 2020-01-01 09:30.', 'premium-addons-for-elementor' )
63
  ]
64
  );
65
 
66
  $this->add_control(
67
  'premium_countdown_s_u_time',
68
  [
69
+ 'label' => __( 'Time Zone', 'premium-addons-for-elementor' ),
70
  'type' => Controls_Manager::SELECT,
71
  'options' => [
72
+ 'wp-time' => __('WordPress Default', 'premium-addons-for-elementor' ),
73
+ 'user-time' => __('User Local Time', 'premium-addons-for-elementor' )
74
  ],
75
  'default' => 'wp-time',
76
+ 'description' => __('This will set the current time of the option that you will choose.', 'premium-addons-for-elementor')
77
  ]
78
  );
79
 
80
  $this->add_control(
81
  'premium_countdown_units',
82
  [
83
+ 'label' => __( 'Time Units', 'premium-addons-for-elementor' ),
84
  'type' => Controls_Manager::SELECT2,
85
+ 'description' => __('Select the time units that you want to display in countdown timer.', 'premium-addons-for-elementor' ),
86
  'options' => [
87
+ 'Y' => __( 'Years', 'premium-addons-for-elementor' ),
88
+ 'O' => __( 'Month', 'premium-addons-for-elementor' ),
89
+ 'W' => __( 'Week', 'premium-addons-for-elementor' ),
90
+ 'D' => __( 'Day', 'premium-addons-for-elementor' ),
91
+ 'H' => __( 'Hours', 'premium-addons-for-elementor' ),
92
+ 'M' => __( 'Minutes', 'premium-addons-for-elementor' ),
93
+ 'S' => __( 'Second', 'premium-addons-for-elementor' ),
94
  ],
95
  'default' => [
96
  'O',
107
  $this->add_responsive_control(
108
  'premium_countdown_align',
109
  [
110
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
111
  'type' => Controls_Manager::CHOOSE,
112
  'options' => [
113
  'left' => [
114
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
115
  'icon' => 'fa fa-align-left',
116
  ],
117
  'center' => [
118
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
119
  'icon' => 'fa fa-align-center',
120
  ],
121
  'right' => [
122
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
123
  'icon' => 'fa fa-align-right',
124
  ],
125
  ],
136
  $this->start_controls_section(
137
  'premium_countdown_on_expire_settings',
138
  [
139
+ 'label' => __( 'Expire' , 'premium-addons-for-elementor' )
140
  ]
141
  );
142
 
143
  $this->add_control(
144
  'premium_countdown_expire_text_url',
145
  [
146
+ 'label' => __('Expire Type', 'premium-addons-for-elementor'),
147
  'label_block' => false,
148
  'type' => Controls_Manager::SELECT,
149
+ 'description' => __('Choose whether if you want to set a message or a redirect link', 'premium-addons-for-elementor'),
150
  'options' => [
151
+ 'text' => __('Message', 'premium-addons-for-elementor'),
152
+ 'url' => __('Redirection Link', 'premium-addons-for-elementor')
153
  ],
154
  'default' => 'text'
155
  ]
158
  $this->add_control(
159
  'premium_countdown_expiry_text_',
160
  [
161
+ 'label' => __('On expiry Text', 'premium-addons-for-elementor'),
162
  'type' => Controls_Manager::WYSIWYG,
163
+ 'default' => __('Countdown is finished!','prmeium_elementor'),
164
  'condition' => [
165
  'premium_countdown_expire_text_url' => 'text'
166
  ]
170
  $this->add_control(
171
  'premium_countdown_expiry_redirection_',
172
  [
173
+ 'label' => __('Redirect To', 'premium-addons-for-elementor'),
174
  'type' => Controls_Manager::TEXT,
175
  'condition' => [
176
  'premium_countdown_expire_text_url' => 'url'
184
  $this->start_controls_section(
185
  'premium_countdown_transaltion',
186
  [
187
+ 'label' => __( 'Strings Translation' , 'premium-addons-for-elementor' )
188
  ]
189
  );
190
 
191
  $this->add_control(
192
  'premium_countdown_day_singular',
193
  [
194
+ 'label' => __( 'Day (Singular)', 'premium-addons-for-elementor' ),
195
  'type' => Controls_Manager::TEXT,
196
  'default' => 'Day'
197
  ]
200
  $this->add_control(
201
  'premium_countdown_day_plural',
202
  [
203
+ 'label' => __( 'Day (Plural)', 'premium-addons-for-elementor' ),
204
  'type' => Controls_Manager::TEXT,
205
  'default' => 'Days'
206
  ]
209
  $this->add_control(
210
  'premium_countdown_week_singular',
211
  [
212
+ 'label' => __( 'Week (Singular)', 'premium-addons-for-elementor' ),
213
  'type' => Controls_Manager::TEXT,
214
  'default' => 'Week'
215
  ]
218
  $this->add_control(
219
  'premium_countdown_week_plural',
220
  [
221
+ 'label' => __( 'Weeks (Plural)', 'premium-addons-for-elementor' ),
222
  'type' => Controls_Manager::TEXT,
223
  'default' => 'Weeks'
224
  ]
228
  $this->add_control(
229
  'premium_countdown_month_singular',
230
  [
231
+ 'label' => __( 'Month (Singular)', 'premium-addons-for-elementor' ),
232
  'type' => Controls_Manager::TEXT,
233
  'default' => 'Month'
234
  ]
238
  $this->add_control(
239
  'premium_countdown_month_plural',
240
  [
241
+ 'label' => __( 'Months (Plural)', 'premium-addons-for-elementor' ),
242
  'type' => Controls_Manager::TEXT,
243
  'default' => 'Months'
244
  ]
248
  $this->add_control(
249
  'premium_countdown_year_singular',
250
  [
251
+ 'label' => __( 'Year (Singular)', 'premium-addons-for-elementor' ),
252
  'type' => Controls_Manager::TEXT,
253
  'default' => 'Year'
254
  ]
258
  $this->add_control(
259
  'premium_countdown_year_plural',
260
  [
261
+ 'label' => __( 'Years (Plural)', 'premium-addons-for-elementor' ),
262
  'type' => Controls_Manager::TEXT,
263
  'default' => 'Years'
264
  ]
268
  $this->add_control(
269
  'premium_countdown_hour_singular',
270
  [
271
+ 'label' => __( 'Hour (Singular)', 'premium-addons-for-elementor' ),
272
  'type' => Controls_Manager::TEXT,
273
  'default' => 'Hour'
274
  ]
278
  $this->add_control(
279
  'premium_countdown_hour_plural',
280
  [
281
+ 'label' => __( 'Hours (Plural)', 'premium-addons-for-elementor' ),
282
  'type' => Controls_Manager::TEXT,
283
  'default' => 'Hours'
284
  ]
288
  $this->add_control(
289
  'premium_countdown_minute_singular',
290
  [
291
+ 'label' => __( 'Minute (Singular)', 'premium-addons-for-elementor' ),
292
  'type' => Controls_Manager::TEXT,
293
  'default' => 'Minute'
294
  ]
297
  $this->add_control(
298
  'premium_countdown_minute_plural',
299
  [
300
+ 'label' => __( 'Minutes (Plural)', 'premium-addons-for-elementor' ),
301
  'type' => Controls_Manager::TEXT,
302
  'default' => 'Minutes'
303
  ]
306
  $this->add_control(
307
  'premium_countdown_second_singular',
308
  [
309
+ 'label' => __( 'Second (Singular)', 'premium-addons-for-elementor' ),
310
  'type' => Controls_Manager::TEXT,
311
  'default' => 'Second',
312
  ]
315
  $this->add_control(
316
  'premium_countdown_second_plural',
317
  [
318
+ 'label' => __( 'Seconds (Plural)', 'premium-addons-for-elementor' ),
319
  'type' => Controls_Manager::TEXT,
320
  'default' => 'Seconds'
321
  ]
326
  $this->start_controls_section(
327
  'premium_countdown_typhography',
328
  [
329
+ 'label' => __( 'Digits' , 'premium-addons-for-elementor' ),
330
  'tab' => Controls_Manager::TAB_STYLE
331
  ]
332
  );
334
  $this->add_control(
335
  'premium_countdown_digit_color',
336
  [
337
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
338
  'type' => Controls_Manager::COLOR,
339
  'scheme' => [
340
  'type' => Scheme_Color::get_type(),
360
  $this->add_control(
361
  'premium_countdown_timer_digit_bg_color',
362
  [
363
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
364
  'type' => Controls_Manager::COLOR,
365
  'scheme' => [
366
  'type' => Scheme_Color::get_type(),
375
  $this->add_responsive_control(
376
  'premium_countdown_digit_bg_size',
377
  [
378
+ 'label' => __( 'Background Size', 'premium-addons-for-elementor' ),
379
  'type' => Controls_Manager::SLIDER,
380
  'default' => [
381
  'size' => 30
401
 
402
  $this->add_control('premium_countdown_digit_border_radius',
403
  [
404
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
405
  'type' => Controls_Manager::SLIDER,
406
  'size_units' => ['px', '%', 'em'],
407
  'selectors' => [
414
 
415
  $this->start_controls_section('premium_countdown_unit_style',
416
  [
417
+ 'label' => __('Units', 'premium-addons-for-elementor'),
418
  'tab' => Controls_Manager::TAB_STYLE,
419
  ]
420
  );
422
  $this->add_control(
423
  'premium_countdown_unit_color',
424
  [
425
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
426
  'type' => Controls_Manager::COLOR,
427
  'scheme' => [
428
  'type' => Scheme_Color::get_type(),
447
  $this->add_responsive_control(
448
  'premium_countdown_separator_width',
449
  [
450
+ 'label' => __( 'Spacing in Between', 'premium-addons-for-elementor' ),
451
  'type' => Controls_Manager::SLIDER,
452
  'default' => [
453
  'size' => 40,
widgets/premium-counter.php CHANGED
@@ -34,49 +34,49 @@ class Premium_Counter extends Widget_Base {
34
  protected function _register_controls() {
35
  $this->start_controls_section('premium_counter_global_settings',
36
  [
37
- 'label' => esc_html__( 'Counter', 'premium-addons-for-elementor' )
38
  ]
39
  );
40
 
41
  $this->add_control('premium_counter_title',
42
  [
43
- 'label' => esc_html__( 'Title', 'premium-addons-for-elementor' ),
44
  'type' => Controls_Manager::TEXT,
45
  'dynamic' => [ 'active' => true ],
46
- 'description' => esc_html__( 'Enter title for stats counter block', 'premium-addons-for-elementor'),
47
  ]
48
  );
49
 
50
  $this->add_control('premium_counter_value',
51
  [
52
- 'label' => esc_html__( 'Value', 'premium-addons-for-elementor' ),
53
  'type' => Controls_Manager::NUMBER,
54
- 'description' => esc_html__( 'Enter Counter Value', 'premium-addons-for-elementor' ),
55
  'default' => 500
56
  ]
57
  );
58
 
59
  $this->add_control('premium_counter_t_separator',
60
  [
61
- 'label' => esc_html__( 'Thousands Separator', 'premium-addons-for-elementor' ),
62
  'type' => Controls_Manager::TEXT,
63
- 'description' => esc_html__( 'Separate coverts 125000 into 125,000', 'premium-addons-for-elementor' ),
64
  'default' => ','
65
  ]
66
  );
67
 
68
  $this->add_control('premium_counter_d_separator',
69
  [
70
- 'label' => esc_html__( 'Decimal Point', 'premium-addons-for-elementor' ),
71
  'type' => Controls_Manager::TEXT,
72
- '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' ),
73
  'default' => '.'
74
  ]
75
  );
76
 
77
  $this->add_control('premium_counter_d_after',
78
  [
79
- 'label' => esc_html__( 'Digits After Decimal Point', 'premium-addons-for-elementor' ),
80
  'type' => Controls_Manager::NUMBER,
81
  'default' => 0
82
  ]
@@ -84,27 +84,27 @@ class Premium_Counter extends Widget_Base {
84
 
85
  $this->add_control('premium_counter_preffix',
86
  [
87
- 'label' => esc_html__( 'Value Prefix', 'premium-addons-for-elementor' ),
88
  'type' => Controls_Manager::TEXT,
89
  'dynamic' => [ 'active' => true ],
90
- 'description' => esc_html__( 'Enter prefix for counter value', 'premium-addons-for-elementor' )
91
  ]
92
  );
93
 
94
  $this->add_control('premium_counter_suffix',
95
  [
96
- 'label' => esc_html__( 'Value suffix', 'premium-addons-for-elementor' ),
97
  'type' => Controls_Manager::TEXT,
98
  'dynamic' => [ 'active' => true ],
99
- 'description' => esc_html__( 'Enter suffix for counter value', 'premium-addons-for-elementor' )
100
  ]
101
  );
102
 
103
  $this->add_control('premium_counter_speed',
104
  [
105
- 'label' => esc_html__( 'Rolling Time', 'premium-addons-for-elementor' ),
106
  'type' => Controls_Manager::NUMBER,
107
- 'description' => esc_html__( 'How long should it take to complete the digit?', 'premium-addons-for-elementor' ),
108
  'default' => 3
109
  ]
110
  );
@@ -113,18 +113,18 @@ class Premium_Counter extends Widget_Base {
113
 
114
  $this->start_controls_section('premium_counter_display_options',
115
  [
116
- 'label' => esc_html__( 'Display Options', 'premium-addons-for-elementor' )
117
  ]
118
  );
119
 
120
  $this->add_control('premium_counter_icon_image',
121
  [
122
- 'label' => esc_html__( 'Icon Type', 'premium-addons-for-elementor' ),
123
  'type' => Controls_Manager::SELECT,
124
- 'description' => esc_html__('Use a font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
125
  'options' => [
126
- 'icon' => esc_html__('Font Awesome', 'premium-addons-for-elementor'),
127
- 'custom'=> esc_html__( 'Custom Image', 'premium-addons-for-elementor')
128
  ],
129
  'default' => 'icon'
130
  ]
@@ -132,7 +132,7 @@ class Premium_Counter extends Widget_Base {
132
 
133
  $this->add_control('premium_counter_icon',
134
  [
135
- 'label' => esc_html__( 'Select an Icon', 'premium-addons-for-elementor' ),
136
  'type' => Controls_Manager::ICON,
137
  'default' => 'fa fa-clock-o',
138
  'condition' => [
@@ -143,7 +143,7 @@ class Premium_Counter extends Widget_Base {
143
 
144
  $this->add_control('premium_counter_image_upload',
145
  [
146
- 'label' => esc_html__( 'Upload Image', 'premium-addons-for-elementor' ),
147
  'type' => Controls_Manager::MEDIA,
148
  'condition' => [
149
  'premium_counter_icon_image' => 'custom'
@@ -156,14 +156,14 @@ class Premium_Counter extends Widget_Base {
156
 
157
  $this->add_control('premium_counter_icon_position',
158
  [
159
- 'label' => esc_html__( 'Icon Position', 'premium-addons-for-elementor' ),
160
  'type' => Controls_Manager::SELECT,
161
- 'description' => esc_html__( 'Choose a position for your icon', 'premium-addons-for-elementor'),
162
  'default' => 'no-animation',
163
  'options' => [
164
- 'top' => esc_html__( 'Top', 'premium-addons-for-elementor' ),
165
- 'right' => esc_html__( 'Right', 'premium-addons-for-elementor' ),
166
- 'left' => esc_html__( 'Left', 'premium-addons-for-elementor' ),
167
 
168
  ],
169
  'default' => 'top',
@@ -173,7 +173,7 @@ class Premium_Counter extends Widget_Base {
173
 
174
  $this->add_control('premium_counter_icon_animation',
175
  [
176
- 'label' => esc_html__('Animations', 'premium-addons-for-elementor'),
177
  'type' => Controls_Manager::ANIMATION,
178
  ]
179
  );
@@ -183,14 +183,14 @@ class Premium_Counter extends Widget_Base {
183
 
184
  $this->start_controls_section('premium_counter_icon_style_tab',
185
  [
186
- 'label' => esc_html__( 'Icon' , 'premium-addons-for-elementor' ),
187
  'tab' => Controls_Manager::TAB_STYLE
188
  ]
189
  );
190
 
191
  $this->add_control('premium_counter_icon_color',
192
  [
193
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
194
  'type' => Controls_Manager::COLOR,
195
  'scheme' => [
196
  'type' => Scheme_Color::get_type(),
@@ -207,7 +207,7 @@ class Premium_Counter extends Widget_Base {
207
 
208
  $this->add_responsive_control('premium_counter_icon_size',
209
  [
210
- 'label' => esc_html__( 'Size', 'premium-addons-for-elementor' ),
211
  'type' => Controls_Manager::SLIDER,
212
  'default' => [
213
  'size' => 70,
@@ -229,7 +229,7 @@ class Premium_Counter extends Widget_Base {
229
 
230
  $this->add_responsive_control('premium_counter_image_size',
231
  [
232
- 'label' => esc_html__( 'Size', 'premium-addons-for-elementor' ),
233
  'type' => Controls_Manager::SLIDER,
234
  'default' => [
235
  'size' => 60,
@@ -251,14 +251,14 @@ class Premium_Counter extends Widget_Base {
251
 
252
  $this->add_control('premium_counter_icon_style',
253
  [
254
- 'label' => esc_html__( 'Style', 'premium-addons-for-elementor' ),
255
  'type' => Controls_Manager::SELECT,
256
- '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'),
257
  'options' => [
258
- 'simple'=> esc_html__( 'Simple', 'premium-addons-for-elementor' ),
259
- 'circle'=> esc_html__( 'Circle Background', 'premium-addons-for-elementor' ),
260
- 'square'=> esc_html__( 'Square Background', 'premium-addons-for-elementor' ),
261
- 'design'=> esc_html__( 'Design Your Own', 'premium-addons-for-elementor' )
262
  ],
263
  'default' => 'simple'
264
  ]
@@ -266,7 +266,7 @@ class Premium_Counter extends Widget_Base {
266
 
267
  $this->add_control('premium_counter_icon_bg',
268
  [
269
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
270
  'type' => Controls_Manager::COLOR,
271
  'scheme' => [
272
  'type' => Scheme_Color::get_type(),
@@ -283,7 +283,7 @@ class Premium_Counter extends Widget_Base {
283
 
284
  $this->add_responsive_control('premium_counter_icon_bg_size',
285
  [
286
- 'label' => esc_html__( 'Background size', 'premium-addons-for-elementor' ),
287
  'type' => Controls_Manager::SLIDER,
288
  'default' => [
289
  'size' => 150,
@@ -305,7 +305,7 @@ class Premium_Counter extends Widget_Base {
305
 
306
  $this->add_responsive_control('premium_counter_icon_v_align',
307
  [
308
- 'label' => esc_html__( 'Vertical Alignment', 'premium-addons-for-elementor' ),
309
  'type' => Controls_Manager::SLIDER,
310
  'default' => [
311
  'size' => 150,
@@ -339,7 +339,7 @@ class Premium_Counter extends Widget_Base {
339
 
340
  $this->add_control('premium_icon_border_radius',
341
  [
342
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
343
  'type' => Controls_Manager::SLIDER,
344
  'size_units'=> ['px', '%' ,'em'],
345
  'default' => [
@@ -360,14 +360,14 @@ class Premium_Counter extends Widget_Base {
360
 
361
  $this->start_controls_section('premium_counter_title_style',
362
  [
363
- 'label' => esc_html__( 'Title' , 'premium-addons-for-elementor' ),
364
  'tab' => Controls_Manager::TAB_STYLE
365
  ]
366
  );
367
 
368
  $this->add_control('premium_counter_title_color',
369
  [
370
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
371
  'type' => Controls_Manager::COLOR,
372
  'scheme' => [
373
  'type' => Scheme_Color::get_type(),
@@ -393,14 +393,14 @@ class Premium_Counter extends Widget_Base {
393
 
394
  $this->start_controls_section('premium_counter_value_style',
395
  [
396
- 'label' => esc_html__('Value', 'premium-addons-for-elementor'),
397
  'tab' => Controls_Manager::TAB_STYLE,
398
  ]
399
  );
400
 
401
  $this->add_control('premium_counter_value_color',
402
  [
403
- 'label' => esc_html__( 'Color', 'premium-addons-for-elementor' ),
404
  'type' => Controls_Manager::COLOR,
405
  'scheme' => [
406
  'type' => Scheme_Color::get_type(),
@@ -426,14 +426,14 @@ class Premium_Counter extends Widget_Base {
426
 
427
  $this->start_controls_section('premium_counter_suffix_prefix_style',
428
  [
429
- 'label' => esc_html__('Prefix & Suffix', 'premium-addons-for-elementor'),
430
  'tab' => Controls_Manager::TAB_STYLE,
431
  ]
432
  );
433
 
434
  $this->add_control('premium_counter_prefix_color',
435
  [
436
- 'label' => esc_html__( 'Prefix Color', 'premium-addons-for-elementor' ),
437
  'type' => Controls_Manager::COLOR,
438
  'scheme' => [
439
  'type' => Scheme_Color::get_type(),
@@ -457,7 +457,7 @@ class Premium_Counter extends Widget_Base {
457
 
458
  $this->add_control('premium_counter_suffix_color',
459
  [
460
- 'label' => esc_html__( 'Suffix Color', 'premium-addons-for-elementor' ),
461
  'type' => Controls_Manager::COLOR,
462
  'scheme' => [
463
  'type' => Scheme_Color::get_type(),
34
  protected function _register_controls() {
35
  $this->start_controls_section('premium_counter_global_settings',
36
  [
37
+ 'label' => __( 'Counter', 'premium-addons-for-elementor' )
38
  ]
39
  );
40
 
41
  $this->add_control('premium_counter_title',
42
  [
43
+ 'label' => __( 'Title', 'premium-addons-for-elementor' ),
44
  'type' => Controls_Manager::TEXT,
45
  'dynamic' => [ 'active' => true ],
46
+ 'description' => __( 'Enter title for stats counter block', 'premium-addons-for-elementor'),
47
  ]
48
  );
49
 
50
  $this->add_control('premium_counter_value',
51
  [
52
+ 'label' => __( 'Value', 'premium-addons-for-elementor' ),
53
  'type' => Controls_Manager::NUMBER,
54
+ 'description' => __( 'Enter Counter Value', 'premium-addons-for-elementor' ),
55
  'default' => 500
56
  ]
57
  );
58
 
59
  $this->add_control('premium_counter_t_separator',
60
  [
61
+ 'label' => __( 'Thousands Separator', 'premium-addons-for-elementor' ),
62
  'type' => Controls_Manager::TEXT,
63
+ 'description' => __( 'Separate coverts 125000 into 125,000', 'premium-addons-for-elementor' ),
64
  'default' => ','
65
  ]
66
  );
67
 
68
  $this->add_control('premium_counter_d_separator',
69
  [
70
+ 'label' => __( 'Decimal Point', 'premium-addons-for-elementor' ),
71
  'type' => Controls_Manager::TEXT,
72
+ 'description' => __( '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' ),
73
  'default' => '.'
74
  ]
75
  );
76
 
77
  $this->add_control('premium_counter_d_after',
78
  [
79
+ 'label' => __( 'Digits After Decimal Point', 'premium-addons-for-elementor' ),
80
  'type' => Controls_Manager::NUMBER,
81
  'default' => 0
82
  ]
84
 
85
  $this->add_control('premium_counter_preffix',
86
  [
87
+ 'label' => __( 'Value Prefix', 'premium-addons-for-elementor' ),
88
  'type' => Controls_Manager::TEXT,
89
  'dynamic' => [ 'active' => true ],
90
+ 'description' => __( 'Enter prefix for counter value', 'premium-addons-for-elementor' )
91
  ]
92
  );
93
 
94
  $this->add_control('premium_counter_suffix',
95
  [
96
+ 'label' => __( 'Value suffix', 'premium-addons-for-elementor' ),
97
  'type' => Controls_Manager::TEXT,
98
  'dynamic' => [ 'active' => true ],
99
+ 'description' => __( 'Enter suffix for counter value', 'premium-addons-for-elementor' )
100
  ]
101
  );
102
 
103
  $this->add_control('premium_counter_speed',
104
  [
105
+ 'label' => __( 'Rolling Time', 'premium-addons-for-elementor' ),
106
  'type' => Controls_Manager::NUMBER,
107
+ 'description' => __( 'How long should it take to complete the digit?', 'premium-addons-for-elementor' ),
108
  'default' => 3
109
  ]
110
  );
113
 
114
  $this->start_controls_section('premium_counter_display_options',
115
  [
116
+ 'label' => __( 'Display Options', 'premium-addons-for-elementor' )
117
  ]
118
  );
119
 
120
  $this->add_control('premium_counter_icon_image',
121
  [
122
+ 'label' => __( 'Icon Type', 'premium-addons-for-elementor' ),
123
  'type' => Controls_Manager::SELECT,
124
+ 'description' => __('Use a font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
125
  'options' => [
126
+ 'icon' => __('Font Awesome', 'premium-addons-for-elementor'),
127
+ 'custom'=> __( 'Custom Image', 'premium-addons-for-elementor')
128
  ],
129
  'default' => 'icon'
130
  ]
132
 
133
  $this->add_control('premium_counter_icon',
134
  [
135
+ 'label' => __( 'Select an Icon', 'premium-addons-for-elementor' ),
136
  'type' => Controls_Manager::ICON,
137
  'default' => 'fa fa-clock-o',
138
  'condition' => [
143
 
144
  $this->add_control('premium_counter_image_upload',
145
  [
146
+ 'label' => __( 'Upload Image', 'premium-addons-for-elementor' ),
147
  'type' => Controls_Manager::MEDIA,
148
  'condition' => [
149
  'premium_counter_icon_image' => 'custom'
156
 
157
  $this->add_control('premium_counter_icon_position',
158
  [
159
+ 'label' => __( 'Icon Position', 'premium-addons-for-elementor' ),
160
  'type' => Controls_Manager::SELECT,
161
+ 'description' => __( 'Choose a position for your icon', 'premium-addons-for-elementor'),
162
  'default' => 'no-animation',
163
  'options' => [
164
+ 'top' => __( 'Top', 'premium-addons-for-elementor' ),
165
+ 'right' => __( 'Right', 'premium-addons-for-elementor' ),
166
+ 'left' => __( 'Left', 'premium-addons-for-elementor' ),
167
 
168
  ],
169
  'default' => 'top',
173
 
174
  $this->add_control('premium_counter_icon_animation',
175
  [
176
+ 'label' => __('Animations', 'premium-addons-for-elementor'),
177
  'type' => Controls_Manager::ANIMATION,
178
  ]
179
  );
183
 
184
  $this->start_controls_section('premium_counter_icon_style_tab',
185
  [
186
+ 'label' => __( 'Icon' , 'premium-addons-for-elementor' ),
187
  'tab' => Controls_Manager::TAB_STYLE
188
  ]
189
  );
190
 
191
  $this->add_control('premium_counter_icon_color',
192
  [
193
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
194
  'type' => Controls_Manager::COLOR,
195
  'scheme' => [
196
  'type' => Scheme_Color::get_type(),
207
 
208
  $this->add_responsive_control('premium_counter_icon_size',
209
  [
210
+ 'label' => __( 'Size', 'premium-addons-for-elementor' ),
211
  'type' => Controls_Manager::SLIDER,
212
  'default' => [
213
  'size' => 70,
229
 
230
  $this->add_responsive_control('premium_counter_image_size',
231
  [
232
+ 'label' => __( 'Size', 'premium-addons-for-elementor' ),
233
  'type' => Controls_Manager::SLIDER,
234
  'default' => [
235
  'size' => 60,
251
 
252
  $this->add_control('premium_counter_icon_style',
253
  [
254
+ 'label' => __( 'Style', 'premium-addons-for-elementor' ),
255
  'type' => Controls_Manager::SELECT,
256
+ 'description' => __('We are giving you three quick preset if you are in a hurry. Otherwise, create your own with various options', 'premium-addons-for-elementor'),
257
  'options' => [
258
+ 'simple'=> __( 'Simple', 'premium-addons-for-elementor' ),
259
+ 'circle'=> __( 'Circle Background', 'premium-addons-for-elementor' ),
260
+ 'square'=> __( 'Square Background', 'premium-addons-for-elementor' ),
261
+ 'design'=> __( 'Design Your Own', 'premium-addons-for-elementor' )
262
  ],
263
  'default' => 'simple'
264
  ]
266
 
267
  $this->add_control('premium_counter_icon_bg',
268
  [
269
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
270
  'type' => Controls_Manager::COLOR,
271
  'scheme' => [
272
  'type' => Scheme_Color::get_type(),
283
 
284
  $this->add_responsive_control('premium_counter_icon_bg_size',
285
  [
286
+ 'label' => __( 'Background size', 'premium-addons-for-elementor' ),
287
  'type' => Controls_Manager::SLIDER,
288
  'default' => [
289
  'size' => 150,
305
 
306
  $this->add_responsive_control('premium_counter_icon_v_align',
307
  [
308
+ 'label' => __( 'Vertical Alignment', 'premium-addons-for-elementor' ),
309
  'type' => Controls_Manager::SLIDER,
310
  'default' => [
311
  'size' => 150,
339
 
340
  $this->add_control('premium_icon_border_radius',
341
  [
342
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
343
  'type' => Controls_Manager::SLIDER,
344
  'size_units'=> ['px', '%' ,'em'],
345
  'default' => [
360
 
361
  $this->start_controls_section('premium_counter_title_style',
362
  [
363
+ 'label' => __( 'Title' , 'premium-addons-for-elementor' ),
364
  'tab' => Controls_Manager::TAB_STYLE
365
  ]
366
  );
367
 
368
  $this->add_control('premium_counter_title_color',
369
  [
370
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
371
  'type' => Controls_Manager::COLOR,
372
  'scheme' => [
373
  'type' => Scheme_Color::get_type(),
393
 
394
  $this->start_controls_section('premium_counter_value_style',
395
  [
396
+ 'label' => __('Value', 'premium-addons-for-elementor'),
397
  'tab' => Controls_Manager::TAB_STYLE,
398
  ]
399
  );
400
 
401
  $this->add_control('premium_counter_value_color',
402
  [
403
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
404
  'type' => Controls_Manager::COLOR,
405
  'scheme' => [
406
  'type' => Scheme_Color::get_type(),
426
 
427
  $this->start_controls_section('premium_counter_suffix_prefix_style',
428
  [
429
+ 'label' => __('Prefix & Suffix', 'premium-addons-for-elementor'),
430
  'tab' => Controls_Manager::TAB_STYLE,
431
  ]
432
  );
433
 
434
  $this->add_control('premium_counter_prefix_color',
435
  [
436
+ 'label' => __( 'Prefix Color', 'premium-addons-for-elementor' ),
437
  'type' => Controls_Manager::COLOR,
438
  'scheme' => [
439
  'type' => Scheme_Color::get_type(),
457
 
458
  $this->add_control('premium_counter_suffix_color',
459
  [
460
+ 'label' => __( 'Suffix Color', 'premium-addons-for-elementor' ),
461
  'type' => Controls_Manager::COLOR,
462
  'scheme' => [
463
  'type' => Scheme_Color::get_type(),
widgets/premium-dual-header.php CHANGED
@@ -35,17 +35,17 @@ class Premium_Dual_Header extends Widget_Base {
35
  /*Start General Section*/
36
  $this->start_controls_section('premium_dual_header_general_settings',
37
  [
38
- 'label' => esc_html__('Dual Heading', 'premium-addons-for-elementor')
39
  ]
40
  );
41
 
42
  /*First Header*/
43
  $this->add_control('premium_dual_header_first_header_text',
44
  [
45
- 'label' => esc_html__('First Heading', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::TEXT,
47
  'dynamic' => [ 'active' => true ],
48
- 'default' => esc_html__('Premium', 'premium-addons-for-elementor'),
49
  'label_block' => true,
50
  ]
51
  );
@@ -53,10 +53,10 @@ class Premium_Dual_Header extends Widget_Base {
53
  /*Second Header*/
54
  $this->add_control('premium_dual_header_second_header_text',
55
  [
56
- 'label' => esc_html__('Second Heading', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::TEXT,
58
  'dynamic' => [ 'active' => true ],
59
- 'default' => esc_html__('Addons', 'premium-addons-for-elementor'),
60
  'label_block' => true,
61
  ]
62
  );
@@ -64,7 +64,7 @@ class Premium_Dual_Header extends Widget_Base {
64
  /*Title Tag*/
65
  $this->add_control('premium_dual_header_first_header_tag',
66
  [
67
- 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
68
  'type' => Controls_Manager::SELECT,
69
  'default' => 'h2',
70
  'options' => [
@@ -84,11 +84,11 @@ class Premium_Dual_Header extends Widget_Base {
84
  /*Text Align*/
85
  $this->add_control('premium_dual_header_position',
86
  [
87
- 'label' => esc_html__( 'Display', 'premium-addons-for-elementor' ),
88
  'type' => Controls_Manager::SELECT,
89
  'options' => [
90
- 'inline'=> esc_html__('Inline', 'premium-addons-for-elementor'),
91
- 'block' => esc_html__('Block', 'premium-addons-for-elementor'),
92
  ],
93
  'default' => 'inline',
94
  'selectors' => [
@@ -100,19 +100,19 @@ class Premium_Dual_Header extends Widget_Base {
100
 
101
  $this->add_control('premium_dual_header_link_switcher',
102
  [
103
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
104
  'type' => Controls_Manager::SWITCHER,
105
- 'description' => esc_html__('Enable or disable link','premium-addons-for-elementor'),
106
  ]
107
  );
108
 
109
  $this->add_control('premium_dual_heading_link_selection',
110
  [
111
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
112
  'type' => Controls_Manager::SELECT,
113
  'options' => [
114
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
115
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
116
  ],
117
  'default' => 'url',
118
  'label_block' => true,
@@ -124,7 +124,7 @@ class Premium_Dual_Header extends Widget_Base {
124
 
125
  $this->add_control('premium_dual_heading_link',
126
  [
127
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
128
  'type' => Controls_Manager::URL,
129
  'default' => [
130
  'url' => '#',
@@ -141,7 +141,7 @@ class Premium_Dual_Header extends Widget_Base {
141
 
142
  $this->add_control('premium_dual_heading_existing_link',
143
  [
144
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
145
  'type' => Controls_Manager::SELECT2,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
@@ -157,19 +157,19 @@ class Premium_Dual_Header extends Widget_Base {
157
  /*Text Align*/
158
  $this->add_responsive_control('premium_dual_header_text_align',
159
  [
160
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
161
  'type' => Controls_Manager::CHOOSE,
162
  'options' => [
163
  'left' => [
164
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
165
  'icon' => 'fa fa-align-left',
166
  ],
167
  'center' => [
168
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
169
  'icon' => 'fa fa-align-center',
170
  ],
171
  'right' => [
172
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
173
  'icon' => 'fa fa-align-right'
174
  ]
175
  ],
@@ -186,7 +186,7 @@ class Premium_Dual_Header extends Widget_Base {
186
  /*Start First Header Styling Section*/
187
  $this->start_controls_section('premium_dual_header_first_style',
188
  [
189
- 'label' => esc_html__('First Heading', 'premium-addons-for-elementor'),
190
  'tab' => Controls_Manager::TAB_STYLE
191
  ]
192
  );
@@ -203,7 +203,7 @@ class Premium_Dual_Header extends Widget_Base {
203
 
204
  $this->add_control('premium_dual_header_first_animated',
205
  [
206
- 'label' => esc_html__('Animated Background', 'premium-addons-for-elementor'),
207
  'type' => Controls_Manager::SWITCHER
208
  ]
209
  );
@@ -211,13 +211,13 @@ class Premium_Dual_Header extends Widget_Base {
211
  /*First Coloring Style*/
212
  $this->add_control('premium_dual_header_first_back_clip',
213
  [
214
- 'label' => esc_html__('Background Style', 'premium-addons-for-elementor'),
215
  'type' => Controls_Manager::SELECT,
216
  'default' => 'color',
217
- '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'),
218
  'options' => [
219
- 'color' => esc_html__('Normal Background', 'premium-addons-for-elementor'),
220
- 'clipped' => esc_html__('Clipped Background', 'premium-addons-for-elementor'),
221
  ],
222
  'label_block' => true
223
  ]
@@ -226,7 +226,7 @@ class Premium_Dual_Header extends Widget_Base {
226
  /*First Color*/
227
  $this->add_control('premium_dual_header_first_color',
228
  [
229
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
230
  'type' => Controls_Manager::COLOR,
231
  'scheme' => [
232
  'type' => Scheme_Color::get_type(),
@@ -279,7 +279,7 @@ class Premium_Dual_Header extends Widget_Base {
279
  /*First Border Radius*/
280
  $this->add_control('premium_dual_header_first_border_radius',
281
  [
282
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
283
  'type' => Controls_Manager::SLIDER,
284
  'size_units' => ['px', '%', 'em'],
285
  'selectors' => [
@@ -292,7 +292,7 @@ class Premium_Dual_Header extends Widget_Base {
292
  $this->add_group_control(
293
  Group_Control_Text_Shadow::get_type(),
294
  [
295
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
296
  'name' => 'premium_dual_header_first_text_shadow',
297
  'selector' => '{{WRAPPER}} .premium-dual-header-first-span'
298
  ]
@@ -301,7 +301,7 @@ class Premium_Dual_Header extends Widget_Base {
301
  /*First Margin*/
302
  $this->add_responsive_control('premium_dual_header_first_margin',
303
  [
304
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
305
  'type' => Controls_Manager::DIMENSIONS,
306
  'size_units' => [ 'px', 'em', '%' ],
307
  'selectors' => [
@@ -313,7 +313,7 @@ class Premium_Dual_Header extends Widget_Base {
313
  /*First Padding*/
314
  $this->add_responsive_control('premium_dual_header_first_padding',
315
  [
316
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
317
  'type' => Controls_Manager::DIMENSIONS,
318
  'size_units' => [ 'px', 'em', '%' ],
319
  'selectors' => [
@@ -328,7 +328,7 @@ class Premium_Dual_Header extends Widget_Base {
328
  /*Start First Header Styling Section*/
329
  $this->start_controls_section('premium_dual_header_second_style',
330
  [
331
- 'label' => esc_html__('Second Heading', 'premium-addons-for-elementor'),
332
  'tab' => Controls_Manager::TAB_STYLE
333
  ]
334
  );
@@ -345,7 +345,7 @@ class Premium_Dual_Header extends Widget_Base {
345
 
346
  $this->add_control('premium_dual_header_second_animated',
347
  [
348
- 'label' => esc_html__('Animated Background', 'premium-addons-for-elementor'),
349
  'type' => Controls_Manager::SWITCHER
350
  ]
351
  );
@@ -353,13 +353,13 @@ class Premium_Dual_Header extends Widget_Base {
353
  /*Second Coloring Style*/
354
  $this->add_control('premium_dual_header_second_back_clip',
355
  [
356
- 'label' => esc_html__('Background Style', 'premium-addons-for-elementor'),
357
  'type' => Controls_Manager::SELECT,
358
  'default' => 'color',
359
- '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'),
360
  'options' => [
361
- 'color' => esc_html__('Normal Background', 'premium-addons-for-elementor'),
362
- 'clipped' => esc_html__('Clipped Background', 'premium-addons-for-elementor')
363
  ],
364
  'label_block' => true
365
  ]
@@ -368,7 +368,7 @@ class Premium_Dual_Header extends Widget_Base {
368
  /*Second Color*/
369
  $this->add_control('premium_dual_header_second_color',
370
  [
371
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
372
  'type' => Controls_Manager::COLOR,
373
  'scheme' => [
374
  'type' => Scheme_Color::get_type(),
@@ -421,7 +421,7 @@ class Premium_Dual_Header extends Widget_Base {
421
  /*Second Border Radius*/
422
  $this->add_control('premium_dual_header_second_border_radius',
423
  [
424
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
425
  'type' => Controls_Manager::SLIDER,
426
  'size_units' => ['px', '%', 'em'],
427
  'selectors' => [
@@ -434,7 +434,7 @@ class Premium_Dual_Header extends Widget_Base {
434
  $this->add_group_control(
435
  Group_Control_Text_Shadow::get_type(),
436
  [
437
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
438
  'name' => 'premium_dual_header_second_text_shadow',
439
  'selector' => '{{WRAPPER}} .premium-dual-header-second-header'
440
  ]
@@ -443,7 +443,7 @@ class Premium_Dual_Header extends Widget_Base {
443
  /*Second Margin*/
444
  $this->add_responsive_control('premium_dual_header_second_margin',
445
  [
446
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
447
  'type' => Controls_Manager::DIMENSIONS,
448
  'size_units' => [ 'px', 'em', '%' ],
449
  'selectors' => [
@@ -455,7 +455,7 @@ class Premium_Dual_Header extends Widget_Base {
455
  /*Second Padding*/
456
  $this->add_responsive_control('premium_dual_header_second_padding',
457
  [
458
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
459
  'type' => Controls_Manager::DIMENSIONS,
460
  'size_units' => [ 'px', 'em', '%' ],
461
  'selectors' => [
35
  /*Start General Section*/
36
  $this->start_controls_section('premium_dual_header_general_settings',
37
  [
38
+ 'label' => __('Dual Heading', 'premium-addons-for-elementor')
39
  ]
40
  );
41
 
42
  /*First Header*/
43
  $this->add_control('premium_dual_header_first_header_text',
44
  [
45
+ 'label' => __('First Heading', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::TEXT,
47
  'dynamic' => [ 'active' => true ],
48
+ 'default' => __('Premium', 'premium-addons-for-elementor'),
49
  'label_block' => true,
50
  ]
51
  );
53
  /*Second Header*/
54
  $this->add_control('premium_dual_header_second_header_text',
55
  [
56
+ 'label' => __('Second Heading', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::TEXT,
58
  'dynamic' => [ 'active' => true ],
59
+ 'default' => __('Addons', 'premium-addons-for-elementor'),
60
  'label_block' => true,
61
  ]
62
  );
64
  /*Title Tag*/
65
  $this->add_control('premium_dual_header_first_header_tag',
66
  [
67
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
68
  'type' => Controls_Manager::SELECT,
69
  'default' => 'h2',
70
  'options' => [
84
  /*Text Align*/
85
  $this->add_control('premium_dual_header_position',
86
  [
87
+ 'label' => __( 'Display', 'premium-addons-for-elementor' ),
88
  'type' => Controls_Manager::SELECT,
89
  'options' => [
90
+ 'inline'=> __('Inline', 'premium-addons-for-elementor'),
91
+ 'block' => __('Block', 'premium-addons-for-elementor'),
92
  ],
93
  'default' => 'inline',
94
  'selectors' => [
100
 
101
  $this->add_control('premium_dual_header_link_switcher',
102
  [
103
+ 'label' => __('Link', 'premium-addons-for-elementor'),
104
  'type' => Controls_Manager::SWITCHER,
105
+ 'description' => __('Enable or disable link','premium-addons-for-elementor'),
106
  ]
107
  );
108
 
109
  $this->add_control('premium_dual_heading_link_selection',
110
  [
111
+ 'label' => __('Link Type', 'premium-addons-for-elementor'),
112
  'type' => Controls_Manager::SELECT,
113
  'options' => [
114
+ 'url' => __('URL', 'premium-addons-for-elementor'),
115
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
116
  ],
117
  'default' => 'url',
118
  'label_block' => true,
124
 
125
  $this->add_control('premium_dual_heading_link',
126
  [
127
+ 'label' => __('Link', 'premium-addons-for-elementor'),
128
  'type' => Controls_Manager::URL,
129
  'default' => [
130
  'url' => '#',
141
 
142
  $this->add_control('premium_dual_heading_existing_link',
143
  [
144
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
145
  'type' => Controls_Manager::SELECT2,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
157
  /*Text Align*/
158
  $this->add_responsive_control('premium_dual_header_text_align',
159
  [
160
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
161
  'type' => Controls_Manager::CHOOSE,
162
  'options' => [
163
  'left' => [
164
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
165
  'icon' => 'fa fa-align-left',
166
  ],
167
  'center' => [
168
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
169
  'icon' => 'fa fa-align-center',
170
  ],
171
  'right' => [
172
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
173
  'icon' => 'fa fa-align-right'
174
  ]
175
  ],
186
  /*Start First Header Styling Section*/
187
  $this->start_controls_section('premium_dual_header_first_style',
188
  [
189
+ 'label' => __('First Heading', 'premium-addons-for-elementor'),
190
  'tab' => Controls_Manager::TAB_STYLE
191
  ]
192
  );
203
 
204
  $this->add_control('premium_dual_header_first_animated',
205
  [
206
+ 'label' => __('Animated Background', 'premium-addons-for-elementor'),
207
  'type' => Controls_Manager::SWITCHER
208
  ]
209
  );
211
  /*First Coloring Style*/
212
  $this->add_control('premium_dual_header_first_back_clip',
213
  [
214
+ 'label' => __('Background Style', 'premium-addons-for-elementor'),
215
  'type' => Controls_Manager::SELECT,
216
  'default' => 'color',
217
+ 'description' => __('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'),
218
  'options' => [
219
+ 'color' => __('Normal Background', 'premium-addons-for-elementor'),
220
+ 'clipped' => __('Clipped Background', 'premium-addons-for-elementor'),
221
  ],
222
  'label_block' => true
223
  ]
226
  /*First Color*/
227
  $this->add_control('premium_dual_header_first_color',
228
  [
229
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
230
  'type' => Controls_Manager::COLOR,
231
  'scheme' => [
232
  'type' => Scheme_Color::get_type(),
279
  /*First Border Radius*/
280
  $this->add_control('premium_dual_header_first_border_radius',
281
  [
282
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
283
  'type' => Controls_Manager::SLIDER,
284
  'size_units' => ['px', '%', 'em'],
285
  'selectors' => [
292
  $this->add_group_control(
293
  Group_Control_Text_Shadow::get_type(),
294
  [
295
+ 'label' => __('Shadow','premium-addons-for-elementor'),
296
  'name' => 'premium_dual_header_first_text_shadow',
297
  'selector' => '{{WRAPPER}} .premium-dual-header-first-span'
298
  ]
301
  /*First Margin*/
302
  $this->add_responsive_control('premium_dual_header_first_margin',
303
  [
304
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
305
  'type' => Controls_Manager::DIMENSIONS,
306
  'size_units' => [ 'px', 'em', '%' ],
307
  'selectors' => [
313
  /*First Padding*/
314
  $this->add_responsive_control('premium_dual_header_first_padding',
315
  [
316
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
317
  'type' => Controls_Manager::DIMENSIONS,
318
  'size_units' => [ 'px', 'em', '%' ],
319
  'selectors' => [
328
  /*Start First Header Styling Section*/
329
  $this->start_controls_section('premium_dual_header_second_style',
330
  [
331
+ 'label' => __('Second Heading', 'premium-addons-for-elementor'),
332
  'tab' => Controls_Manager::TAB_STYLE
333
  ]
334
  );
345
 
346
  $this->add_control('premium_dual_header_second_animated',
347
  [
348
+ 'label' => __('Animated Background', 'premium-addons-for-elementor'),
349
  'type' => Controls_Manager::SWITCHER
350
  ]
351
  );
353
  /*Second Coloring Style*/
354
  $this->add_control('premium_dual_header_second_back_clip',
355
  [
356
+ 'label' => __('Background Style', 'premium-addons-for-elementor'),
357
  'type' => Controls_Manager::SELECT,
358
  'default' => 'color',
359
+ 'description' => __('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'),
360
  'options' => [
361
+ 'color' => __('Normal Background', 'premium-addons-for-elementor'),
362
+ 'clipped' => __('Clipped Background', 'premium-addons-for-elementor')
363
  ],
364
  'label_block' => true
365
  ]
368
  /*Second Color*/
369
  $this->add_control('premium_dual_header_second_color',
370
  [
371
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
372
  'type' => Controls_Manager::COLOR,
373
  'scheme' => [
374
  'type' => Scheme_Color::get_type(),
421
  /*Second Border Radius*/
422
  $this->add_control('premium_dual_header_second_border_radius',
423
  [
424
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
425
  'type' => Controls_Manager::SLIDER,
426
  'size_units' => ['px', '%', 'em'],
427
  'selectors' => [
434
  $this->add_group_control(
435
  Group_Control_Text_Shadow::get_type(),
436
  [
437
+ 'label' => __('Shadow','premium-addons-for-elementor'),
438
  'name' => 'premium_dual_header_second_text_shadow',
439
  'selector' => '{{WRAPPER}} .premium-dual-header-second-header'
440
  ]
443
  /*Second Margin*/
444
  $this->add_responsive_control('premium_dual_header_second_margin',
445
  [
446
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
447
  'type' => Controls_Manager::DIMENSIONS,
448
  'size_units' => [ 'px', 'em', '%' ],
449
  'selectors' => [
455
  /*Second Padding*/
456
  $this->add_responsive_control('premium_dual_header_second_padding',
457
  [
458
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
459
  'type' => Controls_Manager::DIMENSIONS,
460
  'size_units' => [ 'px', 'em', '%' ],
461
  'selectors' => [
widgets/premium-fancytext.php CHANGED
@@ -32,18 +32,18 @@ class Premium_Fancytext extends Widget_Base {
32
  /*Start Text Content Section*/
33
  $this->start_controls_section('premium_fancy_text_content',
34
  [
35
- 'label' => esc_html__('Fancy Text', 'premium-addons-for-elementor'),
36
  ]
37
  );
38
 
39
  /*Prefix Text*/
40
  $this->add_control('premium_fancy_prefix_text',
41
  [
42
- 'label' => esc_html__('Prefix', 'premium-addons-for-elementor'),
43
  'type' => Controls_Manager::TEXT,
44
  'dynamic' => [ 'active' => true ],
45
- 'default' => esc_html__('This is', 'premium-addons-for-elementor'),
46
- 'description' => esc_html__( 'Text before Fancy text', 'premium-addons-for-elementor' ),
47
  'label_block' => true,
48
  ]
49
  );
@@ -52,7 +52,7 @@ class Premium_Fancytext extends Widget_Base {
52
 
53
  $repeater->add_control('premium_text_strings_text_field',
54
  [
55
- 'label' => esc_html__( 'Fancy String', 'premium-addons-for-elementor' ),
56
  'dynamic' => [ 'active' => true ],
57
  'type' => Controls_Manager::TEXT,
58
  'label_block' => true,
@@ -62,17 +62,17 @@ class Premium_Fancytext extends Widget_Base {
62
  /*Fancy Text Strings*/
63
  $this->add_control('premium_fancy_text_strings',
64
  [
65
- 'label' => esc_html__( 'Fancy Text', 'premium-addons-for-elementor' ),
66
  'type' => Controls_Manager::REPEATER,
67
  'default' => [
68
  [
69
- 'premium_text_strings_text_field' => esc_html__( 'Designer', 'premium-addons-for-elementor' ),
70
  ],
71
  [
72
- 'premium_text_strings_text_field' => esc_html__( 'Developer', 'premium-addons-for-elementor' ),
73
  ],
74
  [
75
- 'premium_text_strings_text_field' => esc_html__( 'Awesome', 'premium-addons-for-elementor' ),
76
  ],
77
  ],
78
  'fields' => array_values( $repeater->get_controls() ),
@@ -83,11 +83,11 @@ class Premium_Fancytext extends Widget_Base {
83
  /*Prefix Text*/
84
  $this->add_control('premium_fancy_suffix_text',
85
  [
86
- 'label' => esc_html__('Suffix', 'premium-addons-for-elementor'),
87
  'type' => Controls_Manager::TEXT,
88
  'dynamic' => [ 'active' => true ],
89
- 'default' => esc_html__('Text', 'premium-addons-for-elementor'),
90
- 'description' => esc_html__( 'Text after Fancy text', 'premium-addons-for-elementor' ),
91
  'label_block' => true,
92
  ]
93
  );
@@ -95,19 +95,19 @@ class Premium_Fancytext extends Widget_Base {
95
  /*Front Text Align*/
96
  $this->add_responsive_control('premium_fancy_text_align',
97
  [
98
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
99
  'type' => Controls_Manager::CHOOSE,
100
  'options' => [
101
  'left' => [
102
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
103
  'icon' => 'fa fa-align-left',
104
  ],
105
  'center' => [
106
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
107
  'icon' => 'fa fa-align-center',
108
  ],
109
  'right' => [
110
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
111
  'icon' => 'fa fa-align-right',
112
  ],
113
  ],
@@ -122,18 +122,18 @@ class Premium_Fancytext extends Widget_Base {
122
 
123
  $this->start_controls_section('premium_fancy_additional_settings',
124
  [
125
- 'label' => esc_html__('Additional Settings', 'premium-addons-for-elementor'),
126
  ]
127
  );
128
 
129
  /*Text Effect*/
130
  $this->add_control('premium_fancy_text_effect',
131
  [
132
- 'label' => esc_html__('Effect', 'premium-addons-for-elementor'),
133
  'type' => Controls_Manager::SELECT,
134
  'options' => [
135
- 'typing'=> esc_html__('Typing'),
136
- 'slide' => esc_html__('Slide Up'),
137
  ],
138
  'default' => 'typing',
139
  'label_block' => true,
@@ -143,10 +143,10 @@ class Premium_Fancytext extends Widget_Base {
143
  /*Type Speed*/
144
  $this->add_control('premium_fancy_text_type_speed',
145
  [
146
- 'label' => esc_html__('Type Speed', 'premium-addons-for-elementor'),
147
  'type' => Controls_Manager::NUMBER,
148
  'default' => 30,
149
- 'description' => esc_html__( 'Set typing effect speed in milliseconds.', 'premium-addons-for-elementor' ),
150
  'condition' => [
151
  'premium_fancy_text_effect' => 'typing',
152
  ],
@@ -157,10 +157,10 @@ class Premium_Fancytext extends Widget_Base {
157
  /*Back Speed*/
158
  $this->add_control('premium_fancy_text_back_speed',
159
  [
160
- 'label' => esc_html__('Back Speed', 'premium-addons-for-elementor'),
161
  'type' => Controls_Manager::NUMBER,
162
  'default' => 30,
163
- 'description' => esc_html__( 'Set a speed for backspace effect in milliseconds.', 'premium-addons-for-elementor' ),
164
  'condition' => [
165
  'premium_fancy_text_effect' => 'typing',
166
  ],
@@ -171,10 +171,10 @@ class Premium_Fancytext extends Widget_Base {
171
  /*Start Delay*/
172
  $this->add_control('premium_fancy_text_start_delay',
173
  [
174
- 'label' => esc_html__('Start Delay', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::NUMBER,
176
  'default' => 30,
177
- 'description' => esc_html__( 'If you set it on 5000 milliseconds, the first word/string will appear after 5 seconds.', 'premium-addons-for-elementor' ),
178
  'condition' => [
179
  'premium_fancy_text_effect' => 'typing',
180
  ],
@@ -185,10 +185,10 @@ class Premium_Fancytext extends Widget_Base {
185
  /*Back Delay*/
186
  $this->add_control('premium_fancy_text_back_delay',
187
  [
188
- 'label' => esc_html__('Back Delay', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::NUMBER,
190
  'default' => 30,
191
- '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' ),
192
  'condition' => [
193
  'premium_fancy_text_effect' => 'typing',
194
  ],
@@ -199,7 +199,7 @@ class Premium_Fancytext extends Widget_Base {
199
  /*Type Loop*/
200
  $this->add_control('premium_fancy_text_type_loop',
201
  [
202
- 'label' => esc_html__('Loop','premium-addons-for-elementor'),
203
  'type' => Controls_Manager::SWITCHER,
204
  'default' => 'yes',
205
  'condition' => [
@@ -211,7 +211,7 @@ class Premium_Fancytext extends Widget_Base {
211
  /*Show Cursor*/
212
  $this->add_control('premium_fancy_text_show_cursor',
213
  [
214
- 'label' => esc_html__('Show Cursor','premium-addons-for-elementor'),
215
  'type' => Controls_Manager::SWITCHER,
216
  'default' => 'yes',
217
  'condition' => [
@@ -223,7 +223,7 @@ class Premium_Fancytext extends Widget_Base {
223
  /*Cursor Text*/
224
  $this->add_control('premium_fancy_text_cursor_text',
225
  [
226
- 'label' => esc_html__('Cursor Mark', 'premium-addons-for-elementor'),
227
  'type' => Controls_Manager::TEXT,
228
  'default' => '|',
229
  'condition' => [
@@ -236,10 +236,10 @@ class Premium_Fancytext extends Widget_Base {
236
  /*Slide Up Speed*/
237
  $this->add_control('premium_slide_up_speed',
238
  [
239
- 'label' => esc_html__('Animation Speed', 'premium-addons-for-elementor'),
240
  'type' => Controls_Manager::NUMBER,
241
  'default' => 200,
242
- 'description' => esc_html__( 'Set a duration value in milliseconds for slide up effect.', 'premium-addons-for-elementor' ),
243
  'condition' => [
244
  'premium_fancy_text_effect' => 'slide',
245
  ],
@@ -250,10 +250,10 @@ class Premium_Fancytext extends Widget_Base {
250
  /*Slide Up Pause Time*/
251
  $this->add_control('premium_slide_up_pause_time',
252
  [
253
- 'label' => esc_html__('Pause Time (Milliseconds)', 'premium-addons-for-elementor'),
254
  'type' => Controls_Manager::NUMBER,
255
  'default' => 3000,
256
- 'description' => esc_html__( 'How long should the word/string stay visible? Set a value in milliseconds.', 'premium-addons-for-elementor' ),
257
  'condition' => [
258
  'premium_fancy_text_effect' => 'slide',
259
  ],
@@ -264,10 +264,10 @@ class Premium_Fancytext extends Widget_Base {
264
  /*Slide Up Shown Items*/
265
  $this->add_control('premium_slide_up_shown_items',
266
  [
267
- 'label' => esc_html__('Show Items', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::NUMBER,
269
  'default' => 1,
270
- 'description' => esc_html__( 'How many items should be visible at a time?', 'premium-addons-for-elementor' ),
271
  'condition' => [
272
  'premium_fancy_text_effect' => 'slide',
273
  ],
@@ -278,9 +278,9 @@ class Premium_Fancytext extends Widget_Base {
278
  /*Pause on Hover*/
279
  $this->add_control('premium_slide_up_hover_pause',
280
  [
281
- 'label' => esc_html__('Pause on Hover','premium-addons-for-elementor'),
282
  'type' => Controls_Manager::SWITCHER,
283
- 'description' => esc_html__( 'If you enabled this option, the slide will be paused when mouseover.', 'premium-addons-for-elementor' ),
284
  'default' => 'no',
285
  'condition' => [
286
  'premium_fancy_text_effect' => 'slide',
@@ -293,7 +293,7 @@ class Premium_Fancytext extends Widget_Base {
293
  /*Start Fancy Text Settings Tab*/
294
  $this->start_controls_section('premium_fancy_text_style_tab',
295
  [
296
- 'label' => esc_html__('Fancy Text', 'premium-addons-for-elementor'),
297
  'tab' => Controls_Manager::TAB_STYLE,
298
  ]
299
  );
@@ -301,7 +301,7 @@ class Premium_Fancytext extends Widget_Base {
301
  /*Fancy Text Color*/
302
  $this->add_control('premium_fancy_text_color',
303
  [
304
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
305
  'type' => Controls_Manager::COLOR,
306
  'scheme' => [
307
  'type' => Scheme_Color::get_type(),
@@ -326,7 +326,7 @@ class Premium_Fancytext extends Widget_Base {
326
  /*Fancy Text Background Color*/
327
  $this->add_control('premium_fancy_text_background_color',
328
  [
329
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
330
  'type' => Controls_Manager::COLOR,
331
  'selectors' => [
332
  '{{WRAPPER}} .premium-fancy-text' => 'background-color: {{VALUE}};',
@@ -340,7 +340,7 @@ class Premium_Fancytext extends Widget_Base {
340
  /*Start Cursor Settings Tab*/
341
  $this->start_controls_section('premium_fancy_cursor_text_style_tab',
342
  [
343
- 'label' => esc_html__('Cursor Text', 'premium-addons-for-elementor'),
344
  'tab' => Controls_Manager::TAB_STYLE,
345
  'condition' => [
346
  'premium_fancy_text_cursor_text!' => ''
@@ -351,7 +351,7 @@ class Premium_Fancytext extends Widget_Base {
351
  /*Cursor Color*/
352
  $this->add_control('premium_fancy_text_cursor_color',
353
  [
354
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
355
  'type' => Controls_Manager::COLOR,
356
  'scheme' => [
357
  'type' => Scheme_Color::get_type(),
@@ -376,7 +376,7 @@ class Premium_Fancytext extends Widget_Base {
376
  /*Cursor Background Color*/
377
  $this->add_control('premium_fancy_text_cursor_background',
378
  [
379
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
380
  'type' => Controls_Manager::COLOR,
381
  'selectors' => [
382
  '{{WRAPPER}} .typed-cursor' => 'background-color: {{VALUE}};',
@@ -390,7 +390,7 @@ class Premium_Fancytext extends Widget_Base {
390
  /*Start Prefix Suffix Text Settings Tab*/
391
  $this->start_controls_section('premium_prefix_suffix_style_tab',
392
  [
393
- 'label' => esc_html__('Prefix & Suffix', 'premium-addons-for-elementor'),
394
  'tab' => Controls_Manager::TAB_STYLE,
395
  ]
396
  );
@@ -398,7 +398,7 @@ class Premium_Fancytext extends Widget_Base {
398
  /*Prefix Suffix Text Color*/
399
  $this->add_control('premium_prefix_suffix_text_color',
400
  [
401
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::COLOR,
403
  'scheme' => [
404
  'type' => Scheme_Color::get_type(),
@@ -423,7 +423,7 @@ class Premium_Fancytext extends Widget_Base {
423
  /*Prefix Suffix Text Background Color*/
424
  $this->add_control('premium_prefix_suffix_text_background_color',
425
  [
426
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
427
  'type' => Controls_Manager::COLOR,
428
  'selectors' => [
429
  '{{WRAPPER}} .premium-prefix-text, {{WRAPPER}} .premium-suffix-text' => 'background-color: {{VALUE}};',
32
  /*Start Text Content Section*/
33
  $this->start_controls_section('premium_fancy_text_content',
34
  [
35
+ 'label' => __('Fancy Text', 'premium-addons-for-elementor'),
36
  ]
37
  );
38
 
39
  /*Prefix Text*/
40
  $this->add_control('premium_fancy_prefix_text',
41
  [
42
+ 'label' => __('Prefix', 'premium-addons-for-elementor'),
43
  'type' => Controls_Manager::TEXT,
44
  'dynamic' => [ 'active' => true ],
45
+ 'default' => __('This is', 'premium-addons-for-elementor'),
46
+ 'description' => __( 'Text before Fancy text', 'premium-addons-for-elementor' ),
47
  'label_block' => true,
48
  ]
49
  );
52
 
53
  $repeater->add_control('premium_text_strings_text_field',
54
  [
55
+ 'label' => __( 'Fancy String', 'premium-addons-for-elementor' ),
56
  'dynamic' => [ 'active' => true ],
57
  'type' => Controls_Manager::TEXT,
58
  'label_block' => true,
62
  /*Fancy Text Strings*/
63
  $this->add_control('premium_fancy_text_strings',
64
  [
65
+ 'label' => __( 'Fancy Text', 'premium-addons-for-elementor' ),
66
  'type' => Controls_Manager::REPEATER,
67
  'default' => [
68
  [
69
+ 'premium_text_strings_text_field' => __( 'Designer', 'premium-addons-for-elementor' ),
70
  ],
71
  [
72
+ 'premium_text_strings_text_field' => __( 'Developer', 'premium-addons-for-elementor' ),
73
  ],
74
  [
75
+ 'premium_text_strings_text_field' => __( 'Awesome', 'premium-addons-for-elementor' ),
76
  ],
77
  ],
78
  'fields' => array_values( $repeater->get_controls() ),
83
  /*Prefix Text*/
84
  $this->add_control('premium_fancy_suffix_text',
85
  [
86
+ 'label' => __('Suffix', 'premium-addons-for-elementor'),
87
  'type' => Controls_Manager::TEXT,
88
  'dynamic' => [ 'active' => true ],
89
+ 'default' => __('Text', 'premium-addons-for-elementor'),
90
+ 'description' => __( 'Text after Fancy text', 'premium-addons-for-elementor' ),
91
  'label_block' => true,
92
  ]
93
  );
95
  /*Front Text Align*/
96
  $this->add_responsive_control('premium_fancy_text_align',
97
  [
98
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
99
  'type' => Controls_Manager::CHOOSE,
100
  'options' => [
101
  'left' => [
102
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
103
  'icon' => 'fa fa-align-left',
104
  ],
105
  'center' => [
106
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
107
  'icon' => 'fa fa-align-center',
108
  ],
109
  'right' => [
110
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
111
  'icon' => 'fa fa-align-right',
112
  ],
113
  ],
122
 
123
  $this->start_controls_section('premium_fancy_additional_settings',
124
  [
125
+ 'label' => __('Additional Settings', 'premium-addons-for-elementor'),
126
  ]
127
  );
128
 
129
  /*Text Effect*/
130
  $this->add_control('premium_fancy_text_effect',
131
  [
132
+ 'label' => __('Effect', 'premium-addons-for-elementor'),
133
  'type' => Controls_Manager::SELECT,
134
  'options' => [
135
+ 'typing'=> __('Typing'),
136
+ 'slide' => __('Slide Up'),
137
  ],
138
  'default' => 'typing',
139
  'label_block' => true,
143
  /*Type Speed*/
144
  $this->add_control('premium_fancy_text_type_speed',
145
  [
146
+ 'label' => __('Type Speed', 'premium-addons-for-elementor'),
147
  'type' => Controls_Manager::NUMBER,
148
  'default' => 30,
149
+ 'description' => __( 'Set typing effect speed in milliseconds.', 'premium-addons-for-elementor' ),
150
  'condition' => [
151
  'premium_fancy_text_effect' => 'typing',
152
  ],
157
  /*Back Speed*/
158
  $this->add_control('premium_fancy_text_back_speed',
159
  [
160
+ 'label' => __('Back Speed', 'premium-addons-for-elementor'),
161
  'type' => Controls_Manager::NUMBER,
162
  'default' => 30,
163
+ 'description' => __( 'Set a speed for backspace effect in milliseconds.', 'premium-addons-for-elementor' ),
164
  'condition' => [
165
  'premium_fancy_text_effect' => 'typing',
166
  ],
171
  /*Start Delay*/
172
  $this->add_control('premium_fancy_text_start_delay',
173
  [
174
+ 'label' => __('Start Delay', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::NUMBER,
176
  'default' => 30,
177
+ 'description' => __( 'If you set it on 5000 milliseconds, the first word/string will appear after 5 seconds.', 'premium-addons-for-elementor' ),
178
  'condition' => [
179
  'premium_fancy_text_effect' => 'typing',
180
  ],
185
  /*Back Delay*/
186
  $this->add_control('premium_fancy_text_back_delay',
187
  [
188
+ 'label' => __('Back Delay', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::NUMBER,
190
  'default' => 30,
191
+ 'description' => __( 'If you set it on 5000 milliseconds, the word/string will remain visible for 5 seconds before backspace effect.', 'premium-addons-for-elementor' ),
192
  'condition' => [
193
  'premium_fancy_text_effect' => 'typing',
194
  ],
199
  /*Type Loop*/
200
  $this->add_control('premium_fancy_text_type_loop',
201
  [
202
+ 'label' => __('Loop','premium-addons-for-elementor'),
203
  'type' => Controls_Manager::SWITCHER,
204
  'default' => 'yes',
205
  'condition' => [
211
  /*Show Cursor*/
212
  $this->add_control('premium_fancy_text_show_cursor',
213
  [
214
+ 'label' => __('Show Cursor','premium-addons-for-elementor'),
215
  'type' => Controls_Manager::SWITCHER,
216
  'default' => 'yes',
217
  'condition' => [
223
  /*Cursor Text*/
224
  $this->add_control('premium_fancy_text_cursor_text',
225
  [
226
+ 'label' => __('Cursor Mark', 'premium-addons-for-elementor'),
227
  'type' => Controls_Manager::TEXT,
228
  'default' => '|',
229
  'condition' => [
236
  /*Slide Up Speed*/
237
  $this->add_control('premium_slide_up_speed',
238
  [
239
+ 'label' => __('Animation Speed', 'premium-addons-for-elementor'),
240
  'type' => Controls_Manager::NUMBER,
241
  'default' => 200,
242
+ 'description' => __( 'Set a duration value in milliseconds for slide up effect.', 'premium-addons-for-elementor' ),
243
  'condition' => [
244
  'premium_fancy_text_effect' => 'slide',
245
  ],
250
  /*Slide Up Pause Time*/
251
  $this->add_control('premium_slide_up_pause_time',
252
  [
253
+ 'label' => __('Pause Time (Milliseconds)', 'premium-addons-for-elementor'),
254
  'type' => Controls_Manager::NUMBER,
255
  'default' => 3000,
256
+ 'description' => __( 'How long should the word/string stay visible? Set a value in milliseconds.', 'premium-addons-for-elementor' ),
257
  'condition' => [
258
  'premium_fancy_text_effect' => 'slide',
259
  ],
264
  /*Slide Up Shown Items*/
265
  $this->add_control('premium_slide_up_shown_items',
266
  [
267
+ 'label' => __('Show Items', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::NUMBER,
269
  'default' => 1,
270
+ 'description' => __( 'How many items should be visible at a time?', 'premium-addons-for-elementor' ),
271
  'condition' => [
272
  'premium_fancy_text_effect' => 'slide',
273
  ],
278
  /*Pause on Hover*/
279
  $this->add_control('premium_slide_up_hover_pause',
280
  [
281
+ 'label' => __('Pause on Hover','premium-addons-for-elementor'),
282
  'type' => Controls_Manager::SWITCHER,
283
+ 'description' => __( 'If you enabled this option, the slide will be paused when mouseover.', 'premium-addons-for-elementor' ),
284
  'default' => 'no',
285
  'condition' => [
286
  'premium_fancy_text_effect' => 'slide',
293
  /*Start Fancy Text Settings Tab*/
294
  $this->start_controls_section('premium_fancy_text_style_tab',
295
  [
296
+ 'label' => __('Fancy Text', 'premium-addons-for-elementor'),
297
  'tab' => Controls_Manager::TAB_STYLE,
298
  ]
299
  );
301
  /*Fancy Text Color*/
302
  $this->add_control('premium_fancy_text_color',
303
  [
304
+ 'label' => __('Color', 'premium-addons-for-elementor'),
305
  'type' => Controls_Manager::COLOR,
306
  'scheme' => [
307
  'type' => Scheme_Color::get_type(),
326
  /*Fancy Text Background Color*/
327
  $this->add_control('premium_fancy_text_background_color',
328
  [
329
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
330
  'type' => Controls_Manager::COLOR,
331
  'selectors' => [
332
  '{{WRAPPER}} .premium-fancy-text' => 'background-color: {{VALUE}};',
340
  /*Start Cursor Settings Tab*/
341
  $this->start_controls_section('premium_fancy_cursor_text_style_tab',
342
  [
343
+ 'label' => __('Cursor Text', 'premium-addons-for-elementor'),
344
  'tab' => Controls_Manager::TAB_STYLE,
345
  'condition' => [
346
  'premium_fancy_text_cursor_text!' => ''
351
  /*Cursor Color*/
352
  $this->add_control('premium_fancy_text_cursor_color',
353
  [
354
+ 'label' => __('Color', 'premium-addons-for-elementor'),
355
  'type' => Controls_Manager::COLOR,
356
  'scheme' => [
357
  'type' => Scheme_Color::get_type(),
376
  /*Cursor Background Color*/
377
  $this->add_control('premium_fancy_text_cursor_background',
378
  [
379
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
380
  'type' => Controls_Manager::COLOR,
381
  'selectors' => [
382
  '{{WRAPPER}} .typed-cursor' => 'background-color: {{VALUE}};',
390
  /*Start Prefix Suffix Text Settings Tab*/
391
  $this->start_controls_section('premium_prefix_suffix_style_tab',
392
  [
393
+ 'label' => __('Prefix & Suffix', 'premium-addons-for-elementor'),
394
  'tab' => Controls_Manager::TAB_STYLE,
395
  ]
396
  );
398
  /*Prefix Suffix Text Color*/
399
  $this->add_control('premium_prefix_suffix_text_color',
400
  [
401
+ 'label' => __('Color', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::COLOR,
403
  'scheme' => [
404
  'type' => Scheme_Color::get_type(),
423
  /*Prefix Suffix Text Background Color*/
424
  $this->add_control('premium_prefix_suffix_text_background_color',
425
  [
426
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
427
  'type' => Controls_Manager::COLOR,
428
  'selectors' => [
429
  '{{WRAPPER}} .premium-prefix-text, {{WRAPPER}} .premium-suffix-text' => 'background-color: {{VALUE}};',
widgets/premium-grid.php CHANGED
@@ -48,12 +48,12 @@ class Premium_Grid extends Widget_Base {
48
 
49
  $this->start_controls_section('premium_gallery_cats',
50
  [
51
- 'label' => esc_html__('Categories','premium-addons-for-elementor'),
52
  ]);
53
 
54
  $this->add_control( 'premium_gallery_first_cat_switcher',
55
  [
56
- 'label' => esc_html__( 'First Category', 'premium-addons-for-elementor' ),
57
  'type' => Controls_Manager::SWITCHER,
58
  'default' => 'yes'
59
  ]
@@ -61,9 +61,9 @@ class Premium_Grid extends Widget_Base {
61
 
62
  $this->add_control( 'premium_gallery_first_cat_label',
63
  [
64
- 'label' => esc_html__( 'First Category Label', 'premium-addons-for-elementor' ),
65
  'type' => Controls_Manager::TEXT,
66
- 'default' => esc_html__('All', 'premium-addons-for-elementor'),
67
  'dynamic' => [ 'active' => true ],
68
  'condition' => [
69
  'premium_gallery_first_cat_switcher' => 'yes'
@@ -75,7 +75,7 @@ class Premium_Grid extends Widget_Base {
75
 
76
  $repeater->add_control( 'premium_gallery_img_cat',
77
  [
78
- 'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
79
  'type' => Controls_Manager::TEXT,
80
  'dynamic' => [ 'active' => true ],
81
  ]
@@ -83,9 +83,9 @@ class Premium_Grid extends Widget_Base {
83
 
84
  $repeater->add_control( 'premium_gallery_img_cat_rotation',
85
  [
86
- 'label' => esc_html__('Rotation Degrees', 'premium-addons-for-elementor'),
87
  'type' => Controls_Manager::NUMBER,
88
- 'description' => esc_html__('Set rotation value in degress', 'premium-addons-for-elementor'),
89
  'min' => -180,
90
  'max' => 180,
91
  'selectors' => [
@@ -113,16 +113,16 @@ class Premium_Grid extends Widget_Base {
113
 
114
  $this->add_control( 'premium_gallery_active_cat',
115
  [
116
- 'label' => esc_html__('Active Category Index', 'premium-addons-for-elementor'),
117
  'type' => Controls_Manager::NUMBER,
118
- 'description' => esc_html__('Put the index of the default active category, default is 1', 'premium-addons-for-elementor'),
119
  'default' => 1,
120
  ]
121
  );
122
 
123
  $this->add_control('premium_gallery_filter',
124
  [
125
- 'label' => esc_html__( 'Filter', 'premium-addons-for-elementor' ),
126
  'type' => Controls_Manager::SWITCHER,
127
  'default' => 'yes'
128
  ]
@@ -132,14 +132,14 @@ class Premium_Grid extends Widget_Base {
132
 
133
  $this->start_controls_section('premium_gallery_content',
134
  [
135
- 'label' => esc_html__('Images','premium-addons-for-elementor'),
136
  ]);
137
 
138
  $img_repeater = new REPEATER();
139
 
140
  $img_repeater->add_control('premium_gallery_img',
141
  [
142
- 'label' => esc_html__( 'Upload Image', 'premium-addons-for-elementor' ),
143
  'type' => Controls_Manager::MEDIA,
144
  'dynamic' => [ 'active' => true ],
145
  'default' => [
@@ -149,7 +149,7 @@ class Premium_Grid extends Widget_Base {
149
 
150
  $img_repeater->add_control('premium_gallery_img_name',
151
  [
152
- 'label' => esc_html__( 'Name', 'premium-addons-for-elementor' ),
153
  'type' => Controls_Manager::TEXT,
154
  'dynamic' => [ 'active' => true ],
155
  'label_block' => true,
@@ -157,7 +157,7 @@ class Premium_Grid extends Widget_Base {
157
 
158
  $img_repeater->add_control('premium_gallery_img_desc',
159
  [
160
- 'label' => esc_html__( 'Description', 'premium-addons-for-elementor' ),
161
  'type' => Controls_Manager::TEXTAREA,
162
  'dynamic' => [ 'active' => true ],
163
  'label_block' => true,
@@ -165,18 +165,18 @@ class Premium_Grid extends Widget_Base {
165
 
166
  $img_repeater->add_control('premium_gallery_img_category',
167
  [
168
- 'label' => esc_html__( 'Category', 'premium-addons-for-elementor' ),
169
  'type' => Controls_Manager::TEXT,
170
  'dynamic' => [ 'active' => true ],
171
  ]);
172
 
173
  $img_repeater->add_control('premium_gallery_img_link_type',
174
  [
175
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
176
  'type' => Controls_Manager::SELECT,
177
  'options' => [
178
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
179
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
180
  ],
181
  'default' => 'url',
182
  'label_block' => true,
@@ -184,7 +184,7 @@ class Premium_Grid extends Widget_Base {
184
 
185
  $img_repeater->add_control('premium_gallery_img_link',
186
  [
187
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::URL,
189
  'placeholder' => 'https://premiumaddons.com/',
190
  'label_block' => true,
@@ -195,7 +195,7 @@ class Premium_Grid extends Widget_Base {
195
 
196
  $img_repeater->add_control('premium_gallery_img_existing',
197
  [
198
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
199
  'type' => Controls_Manager::SELECT2,
200
  'options' => $this->getTemplateInstance()->get_all_post(),
201
  'condition' => [
@@ -208,7 +208,7 @@ class Premium_Grid extends Widget_Base {
208
 
209
  $img_repeater->add_control('premium_gallery_link_whole',
210
  [
211
- 'label' => esc_html__( 'Whole Image Link', 'premium-addons-for-elementor' ),
212
  'type' => Controls_Manager::SWITCHER,
213
  ]
214
  );
@@ -236,25 +236,25 @@ class Premium_Grid extends Widget_Base {
236
 
237
  $this->start_controls_section('premium_gallery_grid_settings',
238
  [
239
- 'label' => esc_html__('Grid Settings','premium-addons-for-elementor'),
240
 
241
  ]);
242
 
243
  $this->add_responsive_control('premium_gallery_column_number',
244
  [
245
- 'label' => esc_html__( 'Columns', 'premium-addons-for-elementor' ),
246
  'label_block' => true,
247
  'type' => Controls_Manager::SELECT,
248
  'desktop_default' => '50%',
249
  'tablet_default' => '100%',
250
  'mobile_default' => '100%',
251
  'options' => [
252
- '100%' => esc_html__( '1 Column', 'premium-addons-for-elementor' ),
253
- '50%' => esc_html__( '2 Columns', 'premium-addons-for-elementor' ),
254
- '33.330%' => esc_html__( '3 Columns', 'premium-addons-for-elementor' ),
255
- '25%' => esc_html__( '4 Columns', 'premium-addons-for-elementor' ),
256
- '20%' => esc_html__( '5 Columns', 'premium-addons-for-elementor' ),
257
- '16.66%' => esc_html__( '6 Columns', 'premium-addons-for-elementor' ),
258
  ],
259
  'selectors' => [
260
  '{{WRAPPER}} .premium-gallery-container .premium-gallery-item' => 'width: {{VALUE}};',
@@ -265,11 +265,11 @@ class Premium_Grid extends Widget_Base {
265
 
266
  $this->add_control('premium_gallery_img_size_select',
267
  [
268
- 'label' => esc_html__('Grid Layout', 'premium-addons-for-elementor'),
269
  'type' => Controls_Manager::SELECT,
270
  'options' => [
271
- 'one_size' => esc_html__('Even', 'premium-addons-for-elementor'),
272
- 'original' => esc_html__('Masonry', 'premium-addons-for-elementor'),
273
  ],
274
  'default' => 'one_size',
275
  ]
@@ -288,7 +288,7 @@ class Premium_Grid extends Widget_Base {
288
 
289
  $this->add_responsive_control('premium_gallery_gap',
290
  [
291
- 'label' => esc_html__('Image Gap', 'premium-addons-for-elementor'),
292
  'type' => Controls_Manager::SLIDER,
293
  'size_units' => ['px', '%', "em"],
294
  'range' => [
@@ -305,13 +305,13 @@ class Premium_Grid extends Widget_Base {
305
 
306
  $this->add_control('premium_gallery_img_style',
307
  [
308
- 'label' => esc_html__('Skin', 'premium-addons-for-elementor'),
309
  'type' => Controls_Manager::SELECT,
310
- 'description' => esc_html__('Choose a layout style for the gallery','premium-addons-for-elementor'),
311
  'options' => [
312
- 'default' => esc_html__('Style 1', 'premium-addons-for-elementor'),
313
- 'style1' => esc_html__('Style 2', 'premium-addons-for-elementor'),
314
- 'style2' => esc_html__('Style 3', 'premium-addons-for-elementor'),
315
  ],
316
  'default' => 'default',
317
  'label_block' => true
@@ -320,7 +320,7 @@ class Premium_Grid extends Widget_Base {
320
 
321
  $this->add_responsive_control('premium_gallery_style1_border_border',
322
  [
323
- 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
324
  'type' => Controls_Manager::SLIDER,
325
  'range' => [
326
  'px' => [
@@ -340,19 +340,19 @@ class Premium_Grid extends Widget_Base {
340
 
341
  $this->add_control('premium_gallery_img_effect',
342
  [
343
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
344
  'type' => Controls_Manager::SELECT,
345
- 'description' => esc_html__('Choose a hover effect for the image','premium-addons-for-elementor'),
346
  'options' => [
347
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
348
- 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
349
- 'zoomout' => esc_html__('Zoom Out', 'premium-addons-for-elementor'),
350
- 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
351
- 'gray' => esc_html__('Grayscale', 'premium-addons-for-elementor'),
352
- 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
353
- 'bright' => esc_html__('Bright', 'premium-addons-for-elementor'),
354
- 'sepia' => esc_html__('Sepia', 'premium-addons-for-elementor'),
355
- 'trans' => esc_html__('Translate', 'premium-addons-for-elementor'),
356
  ],
357
  'default' => 'zoomin',
358
  'label_block' => true
@@ -361,7 +361,7 @@ class Premium_Grid extends Widget_Base {
361
 
362
  $this->add_control('premium_gallery_light_box',
363
  [
364
- 'label' => esc_html__( 'Lightbox', 'premium-addons-for-elementor' ),
365
  'type' => Controls_Manager::SWITCHER,
366
  'default' => 'yes'
367
  ]
@@ -369,19 +369,19 @@ class Premium_Grid extends Widget_Base {
369
 
370
  $this->add_responsive_control('premium_gallery_content_align',
371
  [
372
- 'label' => esc_html__( 'Content Alignment', 'premium-addons-for-elementor' ),
373
  'type' => Controls_Manager::CHOOSE,
374
  'options' => [
375
  'left' => [
376
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
377
  'icon' => 'fa fa-align-left',
378
  ],
379
  'center' => [
380
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
381
  'icon' => 'fa fa-align-center',
382
  ],
383
  'right' => [
384
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
385
  'icon' => 'fa fa-align-right',
386
  ],
387
  ],
@@ -396,21 +396,21 @@ class Premium_Grid extends Widget_Base {
396
 
397
  $this->start_controls_section('premium_gallery_responsive_section',
398
  [
399
- 'label' => esc_html__('Responsive', 'premium-addons-for-elementor'),
400
  ]);
401
 
402
  $this->add_control('premium_gallery_responsive_switcher',
403
  [
404
- 'label' => esc_html__('Responsive Controls', 'premium-addons-for-elementor'),
405
  'type' => Controls_Manager::SWITCHER,
406
- 'description' => esc_html__('If the content text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor')
407
  ]);
408
 
409
  $this->add_control('premium_gallery_min_range',
410
  [
411
- 'label' => esc_html__('Minimum Size', 'premium-addons-for-elementor'),
412
  'type' => Controls_Manager::NUMBER,
413
- 'description'=> esc_html__('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
414
  'default' => 1,
415
  'condition' => [
416
  'premium_gallery_responsive_switcher' => 'yes'
@@ -419,9 +419,9 @@ class Premium_Grid extends Widget_Base {
419
 
420
  $this->add_control('premium_gallery_max_range',
421
  [
422
- 'label' => esc_html__('Maximum Size', 'premium-addons-for-elementor'),
423
  'type' => Controls_Manager::NUMBER,
424
- 'description'=> esc_html__('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
425
  'default' => 767,
426
  'condition' => [
427
  'premium_gallery_responsive_switcher' => 'yes'
@@ -432,7 +432,7 @@ class Premium_Grid extends Widget_Base {
432
 
433
  $this->start_controls_section('premium_gallery_general_style',
434
  [
435
- 'label' => esc_html__('General','premium-addons-for-elementor'),
436
  'tab' => Controls_Manager::TAB_STYLE,
437
  ]);
438
 
@@ -456,7 +456,7 @@ class Premium_Grid extends Widget_Base {
456
  /*First Border Radius*/
457
  $this->add_control('premium_gallery_general_border_radius',
458
  [
459
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
460
  'type' => Controls_Manager::SLIDER,
461
  'size_units' => ['px', '%', 'em'],
462
  'selectors' => [
@@ -475,7 +475,7 @@ class Premium_Grid extends Widget_Base {
475
 
476
  $this->add_responsive_control('premium_gallery_general_margin',
477
  [
478
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
479
  'type' => Controls_Manager::DIMENSIONS,
480
  'size_units' => [ 'px', 'em', '%' ],
481
  'selectors' => [
@@ -486,7 +486,7 @@ class Premium_Grid extends Widget_Base {
486
 
487
  $this->add_responsive_control('premium_gallery_general_padding',
488
  [
489
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
490
  'type' => Controls_Manager::DIMENSIONS,
491
  'size_units' => [ 'px', 'em', '%' ],
492
  'selectors' => [
@@ -499,7 +499,7 @@ class Premium_Grid extends Widget_Base {
499
 
500
  $this->start_controls_section('premium_gallery_img_style_section',
501
  [
502
- 'label' => esc_html__('Image','premium-addons-for-elementor'),
503
  'tab' => Controls_Manager::TAB_STYLE,
504
  ]);
505
 
@@ -514,7 +514,7 @@ class Premium_Grid extends Widget_Base {
514
  /*First Border Radius*/
515
  $this->add_control('premium_gallery_img_border_radius',
516
  [
517
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
518
  'type' => Controls_Manager::SLIDER,
519
  'size_units' => ['px', '%', 'em'],
520
  'selectors' => [
@@ -526,7 +526,7 @@ class Premium_Grid extends Widget_Base {
526
  $this->add_group_control(
527
  Group_Control_Box_Shadow::get_type(),
528
  [
529
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
530
  'name' => 'premium_gallery_img_box_shadow',
531
  'selector' => '{{WRAPPER}} .pa-gallery-img-container',
532
  'condition' => [
@@ -538,7 +538,7 @@ class Premium_Grid extends Widget_Base {
538
  /*First Margin*/
539
  $this->add_responsive_control('premium_gallery_img_margin',
540
  [
541
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
542
  'type' => Controls_Manager::DIMENSIONS,
543
  'size_units' => [ 'px', 'em', '%' ],
544
  'selectors' => [
@@ -550,7 +550,7 @@ class Premium_Grid extends Widget_Base {
550
  /*First Padding*/
551
  $this->add_responsive_control('premium_gallery_img_padding',
552
  [
553
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
554
  'type' => Controls_Manager::DIMENSIONS,
555
  'size_units' => [ 'px', 'em', '%' ],
556
  'selectors' => [
@@ -563,20 +563,20 @@ class Premium_Grid extends Widget_Base {
563
 
564
  $this->start_controls_section('premium_gallery_content_style',
565
  [
566
- 'label' => esc_html__('Content','premium-addons-for-elementor'),
567
  'tab' => Controls_Manager::TAB_STYLE,
568
  ]);
569
 
570
  $this->add_control('premium_gallery_title_heading',
571
  [
572
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
573
  'type' => Controls_Manager::HEADING,
574
  ]
575
  );
576
 
577
  $this->add_control('premium_gallery_title_color',
578
  [
579
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
580
  'type' => Controls_Manager::COLOR,
581
  'scheme' => [
582
  'type' => Scheme_Color::get_type(),
@@ -600,7 +600,7 @@ class Premium_Grid extends Widget_Base {
600
 
601
  $this->add_control('premium_gallery_description_heading',
602
  [
603
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
604
  'type' => Controls_Manager::HEADING,
605
  'separator' => 'before',
606
  ]
@@ -608,7 +608,7 @@ class Premium_Grid extends Widget_Base {
608
 
609
  $this->add_control('premium_gallery_description_color',
610
  [
611
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
612
  'type' => Controls_Manager::COLOR,
613
  'scheme' => [
614
  'type' => Scheme_Color::get_type(),
@@ -650,7 +650,7 @@ class Premium_Grid extends Widget_Base {
650
  /*First Border Radius*/
651
  $this->add_control('premium_gallery_content_border_radius',
652
  [
653
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
654
  'type' => Controls_Manager::SLIDER,
655
  'size_units' => ['px', '%', 'em'],
656
  'selectors' => [
@@ -663,7 +663,7 @@ class Premium_Grid extends Widget_Base {
663
  $this->add_group_control(
664
  Group_Control_Text_Shadow::get_type(),
665
  [
666
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
667
  'name' => 'premium_gallery_content_shadow',
668
  'selector' => '{{WRAPPER}} .premium-gallery-caption',
669
  ]
@@ -680,7 +680,7 @@ class Premium_Grid extends Widget_Base {
680
  /*First Margin*/
681
  $this->add_responsive_control('premium_gallery_content_margin',
682
  [
683
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
684
  'type' => Controls_Manager::DIMENSIONS,
685
  'size_units' => [ 'px', 'em', '%' ],
686
  'selectors' => [
@@ -692,7 +692,7 @@ class Premium_Grid extends Widget_Base {
692
  /*First Padding*/
693
  $this->add_responsive_control('premium_gallery_content_padding',
694
  [
695
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
696
  'type' => Controls_Manager::DIMENSIONS,
697
  'size_units' => [ 'px', 'em', '%' ],
698
  'selectors' => [
@@ -705,13 +705,13 @@ class Premium_Grid extends Widget_Base {
705
 
706
  $this->start_controls_section('premium_gallery_icons_style',
707
  [
708
- 'label' => esc_html__('Icons','premium-addons-for-elementor'),
709
  'tab' => Controls_Manager::TAB_STYLE,
710
  ]);
711
 
712
  $this->add_responsive_control('premium_gallery_style1_icons_position',
713
  [
714
- 'label' => esc_html__('Position', 'premium-addons-for-elementor'),
715
  'type' => Controls_Manager::SLIDER,
716
  'size_units' => ['px', '%', 'em'],
717
  'range' => [
@@ -734,13 +734,13 @@ class Premium_Grid extends Widget_Base {
734
 
735
  $this->start_controls_tab('premium_gallery_icons_style_normal',
736
  [
737
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
738
  ]
739
  );
740
 
741
  $this->add_control('premium_gallery_icons_style_color',
742
  [
743
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
744
  'type' => Controls_Manager::COLOR,
745
  'scheme' => [
746
  'type' => Scheme_Color::get_type(),
@@ -754,7 +754,7 @@ class Premium_Grid extends Widget_Base {
754
 
755
  $this->add_control('premium_gallery_icons_style_background',
756
  [
757
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
758
  'type' => Controls_Manager::COLOR,
759
  'scheme' => [
760
  'type' => Scheme_Color::get_type(),
@@ -778,7 +778,7 @@ class Premium_Grid extends Widget_Base {
778
  /*Button Border Radius*/
779
  $this->add_control('premium_gallery_icons_style_border_radius',
780
  [
781
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
782
  'type' => Controls_Manager::SLIDER,
783
  'size_units' => ['px', 'em' , '%'],
784
  'selectors' => [
@@ -791,7 +791,7 @@ class Premium_Grid extends Widget_Base {
791
  $this->add_group_control(
792
  Group_Control_Box_Shadow::get_type(),
793
  [
794
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
795
  'name' => 'premium_gallery_icons_style_shadow',
796
  'selector' => '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span',
797
  ]
@@ -800,7 +800,7 @@ class Premium_Grid extends Widget_Base {
800
  /*Button Margin*/
801
  $this->add_responsive_control('premium_gallery_icons_style_margin',
802
  [
803
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
804
  'type' => Controls_Manager::DIMENSIONS,
805
  'size_units' => ['px', 'em', '%'],
806
  'selectors' => [
@@ -811,7 +811,7 @@ class Premium_Grid extends Widget_Base {
811
  /*Button Padding*/
812
  $this->add_responsive_control('premium_gallery_icons_style_padding',
813
  [
814
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
815
  'type' => Controls_Manager::DIMENSIONS,
816
  'size_units' => ['px', 'em', '%'],
817
  'selectors' => [
@@ -823,13 +823,13 @@ class Premium_Grid extends Widget_Base {
823
 
824
  $this->start_controls_tab('premium_gallery_icons_style_hover',
825
  [
826
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
827
  ]
828
  );
829
 
830
  $this->add_control('premium_gallery_icons_style_overlay',
831
  [
832
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
833
  'type' => Controls_Manager::COLOR,
834
  'selectors' => [
835
  '{{WRAPPER}} .pa-gallery-img.default:hover .pa-gallery-icons-wrapper, {{WRAPPER}} .pa-gallery-img .pa-gallery-icons-caption-container, {{WRAPPER}} .pa-gallery-img:hover .pa-gallery-icons-caption-container, {{WRAPPER}} .pa-gallery-img.style1:hover .pa-gallery-icons-wrapper' => 'background-color: {{VALUE}};',
@@ -839,7 +839,7 @@ class Premium_Grid extends Widget_Base {
839
 
840
  $this->add_control('premium_gallery_icons_style_color_hover',
841
  [
842
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
843
  'type' => Controls_Manager::COLOR,
844
  'scheme' => [
845
  'type' => Scheme_Color::get_type(),
@@ -853,7 +853,7 @@ class Premium_Grid extends Widget_Base {
853
 
854
  $this->add_control('premium_gallery_icons_style_background_hover',
855
  [
856
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
857
  'type' => Controls_Manager::COLOR,
858
  'scheme' => [
859
  'type' => Scheme_Color::get_type(),
@@ -877,7 +877,7 @@ class Premium_Grid extends Widget_Base {
877
  /*Button Border Radius*/
878
  $this->add_control('premium_gallery_icons_style_border_radius_hover',
879
  [
880
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
881
  'type' => Controls_Manager::SLIDER,
882
  'size_units' => ['px', 'em' , '%' ],
883
  'selectors' => [
@@ -890,7 +890,7 @@ class Premium_Grid extends Widget_Base {
890
  $this->add_group_control(
891
  Group_Control_Box_Shadow::get_type(),
892
  [
893
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
894
  'name' => 'premium_gallery_icons_style_shadow_hover',
895
  'selector' => '{{WRAPPER}} {{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span',
896
  ]
@@ -899,7 +899,7 @@ class Premium_Grid extends Widget_Base {
899
  /*Button Margin*/
900
  $this->add_responsive_control('premium_gallery_icons_style_margin_hover',
901
  [
902
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
903
  'type' => Controls_Manager::DIMENSIONS,
904
  'size_units' => ['px', 'em', '%'],
905
  'selectors' => [
@@ -910,7 +910,7 @@ class Premium_Grid extends Widget_Base {
910
  /*Button Padding*/
911
  $this->add_responsive_control('premium_gallery_icons_style_padding_hover',
912
  [
913
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
914
  'type' => Controls_Manager::DIMENSIONS,
915
  'size_units' => ['px', 'em', '%'],
916
  'selectors' => [
@@ -922,7 +922,7 @@ class Premium_Grid extends Widget_Base {
922
 
923
  $this->start_controls_section('premium_gallery_filter_style',
924
  [
925
- 'label' => esc_html__('Filter','premium-addons-for-elementor'),
926
  'tab' => Controls_Manager::TAB_STYLE,
927
  'condition' => [
928
  'premium_gallery_filter' => 'yes'
@@ -931,7 +931,7 @@ class Premium_Grid extends Widget_Base {
931
 
932
  $this->add_control('premium_gallery_filter_color',
933
  [
934
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
935
  'type' => Controls_Manager::COLOR,
936
  'scheme' => [
937
  'type' => Scheme_Color::get_type(),
@@ -945,7 +945,7 @@ class Premium_Grid extends Widget_Base {
945
 
946
  $this->add_control('premium_gallery_filter_active_color',
947
  [
948
- 'label' => esc_html__('Active Color', 'premium-addons-for-elementor'),
949
  'type' => Controls_Manager::COLOR,
950
  'scheme' => [
951
  'type' => Scheme_Color::get_type(),
@@ -968,7 +968,7 @@ class Premium_Grid extends Widget_Base {
968
 
969
  $this->add_control('premium_gallery_background',
970
  [
971
- 'label' => esc_html__( 'Background', 'premium-addons-for-elementor' ),
972
  'type' => Controls_Manager::SWITCHER,
973
  'default' => 'yes'
974
  ]
@@ -976,7 +976,7 @@ class Premium_Grid extends Widget_Base {
976
 
977
  $this->add_control('premium_gallery_background_color',
978
  [
979
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
980
  'type' => Controls_Manager::COLOR,
981
  'default' => '#6ec1e4',
982
  'selectors' => [
@@ -990,7 +990,7 @@ class Premium_Grid extends Widget_Base {
990
 
991
  $this->add_control('premium_gallery_background_active_color',
992
  [
993
- 'label' => esc_html__('Background Active Color', 'premium-addons-for-elementor'),
994
  'type' => Controls_Manager::COLOR,
995
  'default' => '#54595f',
996
  'selectors' => [
@@ -1013,7 +1013,7 @@ class Premium_Grid extends Widget_Base {
1013
  /*Border Radius*/
1014
  $this->add_control('premium_gallery_filter_border_radius',
1015
  [
1016
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1017
  'type' => Controls_Manager::SLIDER,
1018
  'size_units' => ['px','em','%'],
1019
  'selectors' => [
@@ -1032,7 +1032,7 @@ class Premium_Grid extends Widget_Base {
1032
 
1033
  $this->add_responsive_control('premium_gallery_filter_margin',
1034
  [
1035
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1036
  'type' => Controls_Manager::DIMENSIONS,
1037
  'size_units' => ['px', 'em', '%'],
1038
  'selectors' => [
@@ -1044,7 +1044,7 @@ class Premium_Grid extends Widget_Base {
1044
  /*Front Icon Padding*/
1045
  $this->add_responsive_control('premium_gallery_filter_padding',
1046
  [
1047
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1048
  'type' => Controls_Manager::DIMENSIONS,
1049
  'size_units' => ['px', 'em', '%'],
1050
  'selectors' => [
48
 
49
  $this->start_controls_section('premium_gallery_cats',
50
  [
51
+ 'label' => __('Categories','premium-addons-for-elementor'),
52
  ]);
53
 
54
  $this->add_control( 'premium_gallery_first_cat_switcher',
55
  [
56
+ 'label' => __( 'First Category', 'premium-addons-for-elementor' ),
57
  'type' => Controls_Manager::SWITCHER,
58
  'default' => 'yes'
59
  ]
61
 
62
  $this->add_control( 'premium_gallery_first_cat_label',
63
  [
64
+ 'label' => __( 'First Category Label', 'premium-addons-for-elementor' ),
65
  'type' => Controls_Manager::TEXT,
66
+ 'default' => __('All', 'premium-addons-for-elementor'),
67
  'dynamic' => [ 'active' => true ],
68
  'condition' => [
69
  'premium_gallery_first_cat_switcher' => 'yes'
75
 
76
  $repeater->add_control( 'premium_gallery_img_cat',
77
  [
78
+ 'label' => __( 'Category', 'premium-addons-for-elementor' ),
79
  'type' => Controls_Manager::TEXT,
80
  'dynamic' => [ 'active' => true ],
81
  ]
83
 
84
  $repeater->add_control( 'premium_gallery_img_cat_rotation',
85
  [
86
+ 'label' => __('Rotation Degrees', 'premium-addons-for-elementor'),
87
  'type' => Controls_Manager::NUMBER,
88
+ 'description' => __('Set rotation value in degress', 'premium-addons-for-elementor'),
89
  'min' => -180,
90
  'max' => 180,
91
  'selectors' => [
113
 
114
  $this->add_control( 'premium_gallery_active_cat',
115
  [
116
+ 'label' => __('Active Category Index', 'premium-addons-for-elementor'),
117
  'type' => Controls_Manager::NUMBER,
118
+ 'description' => __('Put the index of the default active category, default is 1', 'premium-addons-for-elementor'),
119
  'default' => 1,
120
  ]
121
  );
122
 
123
  $this->add_control('premium_gallery_filter',
124
  [
125
+ 'label' => __( 'Filter', 'premium-addons-for-elementor' ),
126
  'type' => Controls_Manager::SWITCHER,
127
  'default' => 'yes'
128
  ]
132
 
133
  $this->start_controls_section('premium_gallery_content',
134
  [
135
+ 'label' => __('Images','premium-addons-for-elementor'),
136
  ]);
137
 
138
  $img_repeater = new REPEATER();
139
 
140
  $img_repeater->add_control('premium_gallery_img',
141
  [
142
+ 'label' => __( 'Upload Image', 'premium-addons-for-elementor' ),
143
  'type' => Controls_Manager::MEDIA,
144
  'dynamic' => [ 'active' => true ],
145
  'default' => [
149
 
150
  $img_repeater->add_control('premium_gallery_img_name',
151
  [
152
+ 'label' => __( 'Name', 'premium-addons-for-elementor' ),
153
  'type' => Controls_Manager::TEXT,
154
  'dynamic' => [ 'active' => true ],
155
  'label_block' => true,
157
 
158
  $img_repeater->add_control('premium_gallery_img_desc',
159
  [
160
+ 'label' => __( 'Description', 'premium-addons-for-elementor' ),
161
  'type' => Controls_Manager::TEXTAREA,
162
  'dynamic' => [ 'active' => true ],
163
  'label_block' => true,
165
 
166
  $img_repeater->add_control('premium_gallery_img_category',
167
  [
168
+ 'label' => __( 'Category', 'premium-addons-for-elementor' ),
169
  'type' => Controls_Manager::TEXT,
170
  'dynamic' => [ 'active' => true ],
171
  ]);
172
 
173
  $img_repeater->add_control('premium_gallery_img_link_type',
174
  [
175
+ 'label' => __('Link Type', 'premium-addons-for-elementor'),
176
  'type' => Controls_Manager::SELECT,
177
  'options' => [
178
+ 'url' => __('URL', 'premium-addons-for-elementor'),
179
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
180
  ],
181
  'default' => 'url',
182
  'label_block' => true,
184
 
185
  $img_repeater->add_control('premium_gallery_img_link',
186
  [
187
+ 'label' => __('Link', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::URL,
189
  'placeholder' => 'https://premiumaddons.com/',
190
  'label_block' => true,
195
 
196
  $img_repeater->add_control('premium_gallery_img_existing',
197
  [
198
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
199
  'type' => Controls_Manager::SELECT2,
200
  'options' => $this->getTemplateInstance()->get_all_post(),
201
  'condition' => [
208
 
209
  $img_repeater->add_control('premium_gallery_link_whole',
210
  [
211
+ 'label' => __( 'Whole Image Link', 'premium-addons-for-elementor' ),
212
  'type' => Controls_Manager::SWITCHER,
213
  ]
214
  );
236
 
237
  $this->start_controls_section('premium_gallery_grid_settings',
238
  [
239
+ 'label' => __('Grid Settings','premium-addons-for-elementor'),
240
 
241
  ]);
242
 
243
  $this->add_responsive_control('premium_gallery_column_number',
244
  [
245
+ 'label' => __( 'Columns', 'premium-addons-for-elementor' ),
246
  'label_block' => true,
247
  'type' => Controls_Manager::SELECT,
248
  'desktop_default' => '50%',
249
  'tablet_default' => '100%',
250
  'mobile_default' => '100%',
251
  'options' => [
252
+ '100%' => __( '1 Column', 'premium-addons-for-elementor' ),
253
+ '50%' => __( '2 Columns', 'premium-addons-for-elementor' ),
254
+ '33.330%' => __( '3 Columns', 'premium-addons-for-elementor' ),
255
+ '25%' => __( '4 Columns', 'premium-addons-for-elementor' ),
256
+ '20%' => __( '5 Columns', 'premium-addons-for-elementor' ),
257
+ '16.66%' => __( '6 Columns', 'premium-addons-for-elementor' ),
258
  ],
259
  'selectors' => [
260
  '{{WRAPPER}} .premium-gallery-container .premium-gallery-item' => 'width: {{VALUE}};',
265
 
266
  $this->add_control('premium_gallery_img_size_select',
267
  [
268
+ 'label' => __('Grid Layout', 'premium-addons-for-elementor'),
269
  'type' => Controls_Manager::SELECT,
270
  'options' => [
271
+ 'one_size' => __('Even', 'premium-addons-for-elementor'),
272
+ 'original' => __('Masonry', 'premium-addons-for-elementor'),
273
  ],
274
  'default' => 'one_size',
275
  ]
288
 
289
  $this->add_responsive_control('premium_gallery_gap',
290
  [
291
+ 'label' => __('Image Gap', 'premium-addons-for-elementor'),
292
  'type' => Controls_Manager::SLIDER,
293
  'size_units' => ['px', '%', "em"],
294
  'range' => [
305
 
306
  $this->add_control('premium_gallery_img_style',
307
  [
308
+ 'label' => __('Skin', 'premium-addons-for-elementor'),
309
  'type' => Controls_Manager::SELECT,
310
+ 'description' => __('Choose a layout style for the gallery','premium-addons-for-elementor'),
311
  'options' => [
312
+ 'default' => __('Style 1', 'premium-addons-for-elementor'),
313
+ 'style1' => __('Style 2', 'premium-addons-for-elementor'),
314
+ 'style2' => __('Style 3', 'premium-addons-for-elementor'),
315
  ],
316
  'default' => 'default',
317
  'label_block' => true
320
 
321
  $this->add_responsive_control('premium_gallery_style1_border_border',
322
  [
323
+ 'label' => __('Height', 'premium-addons-for-elementor'),
324
  'type' => Controls_Manager::SLIDER,
325
  'range' => [
326
  'px' => [
340
 
341
  $this->add_control('premium_gallery_img_effect',
342
  [
343
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
344
  'type' => Controls_Manager::SELECT,
345
+ 'description' => __('Choose a hover effect for the image','premium-addons-for-elementor'),
346
  'options' => [
347
+ 'none' => __('None', 'premium-addons-for-elementor'),
348
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
349
+ 'zoomout' => __('Zoom Out', 'premium-addons-for-elementor'),
350
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
351
+ 'gray' => __('Grayscale', 'premium-addons-for-elementor'),
352
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
353
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
354
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
355
+ 'trans' => __('Translate', 'premium-addons-for-elementor'),
356
  ],
357
  'default' => 'zoomin',
358
  'label_block' => true
361
 
362
  $this->add_control('premium_gallery_light_box',
363
  [
364
+ 'label' => __( 'Lightbox', 'premium-addons-for-elementor' ),
365
  'type' => Controls_Manager::SWITCHER,
366
  'default' => 'yes'
367
  ]
369
 
370
  $this->add_responsive_control('premium_gallery_content_align',
371
  [
372
+ 'label' => __( 'Content Alignment', 'premium-addons-for-elementor' ),
373
  'type' => Controls_Manager::CHOOSE,
374
  'options' => [
375
  'left' => [
376
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
377
  'icon' => 'fa fa-align-left',
378
  ],
379
  'center' => [
380
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
381
  'icon' => 'fa fa-align-center',
382
  ],
383
  'right' => [
384
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
385
  'icon' => 'fa fa-align-right',
386
  ],
387
  ],
396
 
397
  $this->start_controls_section('premium_gallery_responsive_section',
398
  [
399
+ 'label' => __('Responsive', 'premium-addons-for-elementor'),
400
  ]);
401
 
402
  $this->add_control('premium_gallery_responsive_switcher',
403
  [
404
+ 'label' => __('Responsive Controls', 'premium-addons-for-elementor'),
405
  'type' => Controls_Manager::SWITCHER,
406
+ 'description' => __('If the content text is not suiting well on specific screen sizes, you may enable this option which will hide the description text.', 'premium-addons-for-elementor')
407
  ]);
408
 
409
  $this->add_control('premium_gallery_min_range',
410
  [
411
+ 'label' => __('Minimum Size', 'premium-addons-for-elementor'),
412
  'type' => Controls_Manager::NUMBER,
413
+ 'description'=> __('Note: minimum size for extra small screens is 1px.','premium-addons-for-elementor'),
414
  'default' => 1,
415
  'condition' => [
416
  'premium_gallery_responsive_switcher' => 'yes'
419
 
420
  $this->add_control('premium_gallery_max_range',
421
  [
422
+ 'label' => __('Maximum Size', 'premium-addons-for-elementor'),
423
  'type' => Controls_Manager::NUMBER,
424
+ 'description'=> __('Note: maximum size for extra small screens is 767px.','premium-addons-for-elementor'),
425
  'default' => 767,
426
  'condition' => [
427
  'premium_gallery_responsive_switcher' => 'yes'
432
 
433
  $this->start_controls_section('premium_gallery_general_style',
434
  [
435
+ 'label' => __('General','premium-addons-for-elementor'),
436
  'tab' => Controls_Manager::TAB_STYLE,
437
  ]);
438
 
456
  /*First Border Radius*/
457
  $this->add_control('premium_gallery_general_border_radius',
458
  [
459
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
460
  'type' => Controls_Manager::SLIDER,
461
  'size_units' => ['px', '%', 'em'],
462
  'selectors' => [
475
 
476
  $this->add_responsive_control('premium_gallery_general_margin',
477
  [
478
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
479
  'type' => Controls_Manager::DIMENSIONS,
480
  'size_units' => [ 'px', 'em', '%' ],
481
  'selectors' => [
486
 
487
  $this->add_responsive_control('premium_gallery_general_padding',
488
  [
489
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
490
  'type' => Controls_Manager::DIMENSIONS,
491
  'size_units' => [ 'px', 'em', '%' ],
492
  'selectors' => [
499
 
500
  $this->start_controls_section('premium_gallery_img_style_section',
501
  [
502
+ 'label' => __('Image','premium-addons-for-elementor'),
503
  'tab' => Controls_Manager::TAB_STYLE,
504
  ]);
505
 
514
  /*First Border Radius*/
515
  $this->add_control('premium_gallery_img_border_radius',
516
  [
517
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
518
  'type' => Controls_Manager::SLIDER,
519
  'size_units' => ['px', '%', 'em'],
520
  'selectors' => [
526
  $this->add_group_control(
527
  Group_Control_Box_Shadow::get_type(),
528
  [
529
+ 'label' => __('Shadow','premium-addons-for-elementor'),
530
  'name' => 'premium_gallery_img_box_shadow',
531
  'selector' => '{{WRAPPER}} .pa-gallery-img-container',
532
  'condition' => [
538
  /*First Margin*/
539
  $this->add_responsive_control('premium_gallery_img_margin',
540
  [
541
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
542
  'type' => Controls_Manager::DIMENSIONS,
543
  'size_units' => [ 'px', 'em', '%' ],
544
  'selectors' => [
550
  /*First Padding*/
551
  $this->add_responsive_control('premium_gallery_img_padding',
552
  [
553
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
554
  'type' => Controls_Manager::DIMENSIONS,
555
  'size_units' => [ 'px', 'em', '%' ],
556
  'selectors' => [
563
 
564
  $this->start_controls_section('premium_gallery_content_style',
565
  [
566
+ 'label' => __('Content','premium-addons-for-elementor'),
567
  'tab' => Controls_Manager::TAB_STYLE,
568
  ]);
569
 
570
  $this->add_control('premium_gallery_title_heading',
571
  [
572
+ 'label' => __('Title', 'premium-addons-for-elementor'),
573
  'type' => Controls_Manager::HEADING,
574
  ]
575
  );
576
 
577
  $this->add_control('premium_gallery_title_color',
578
  [
579
+ 'label' => __('Color', 'premium-addons-for-elementor'),
580
  'type' => Controls_Manager::COLOR,
581
  'scheme' => [
582
  'type' => Scheme_Color::get_type(),
600
 
601
  $this->add_control('premium_gallery_description_heading',
602
  [
603
+ 'label' => __('Description', 'premium-addons-for-elementor'),
604
  'type' => Controls_Manager::HEADING,
605
  'separator' => 'before',
606
  ]
608
 
609
  $this->add_control('premium_gallery_description_color',
610
  [
611
+ 'label' => __('Color', 'premium-addons-for-elementor'),
612
  'type' => Controls_Manager::COLOR,
613
  'scheme' => [
614
  'type' => Scheme_Color::get_type(),
650
  /*First Border Radius*/
651
  $this->add_control('premium_gallery_content_border_radius',
652
  [
653
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
654
  'type' => Controls_Manager::SLIDER,
655
  'size_units' => ['px', '%', 'em'],
656
  'selectors' => [
663
  $this->add_group_control(
664
  Group_Control_Text_Shadow::get_type(),
665
  [
666
+ 'label' => __('Shadow','premium-addons-for-elementor'),
667
  'name' => 'premium_gallery_content_shadow',
668
  'selector' => '{{WRAPPER}} .premium-gallery-caption',
669
  ]
680
  /*First Margin*/
681
  $this->add_responsive_control('premium_gallery_content_margin',
682
  [
683
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
684
  'type' => Controls_Manager::DIMENSIONS,
685
  'size_units' => [ 'px', 'em', '%' ],
686
  'selectors' => [
692
  /*First Padding*/
693
  $this->add_responsive_control('premium_gallery_content_padding',
694
  [
695
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
696
  'type' => Controls_Manager::DIMENSIONS,
697
  'size_units' => [ 'px', 'em', '%' ],
698
  'selectors' => [
705
 
706
  $this->start_controls_section('premium_gallery_icons_style',
707
  [
708
+ 'label' => __('Icons','premium-addons-for-elementor'),
709
  'tab' => Controls_Manager::TAB_STYLE,
710
  ]);
711
 
712
  $this->add_responsive_control('premium_gallery_style1_icons_position',
713
  [
714
+ 'label' => __('Position', 'premium-addons-for-elementor'),
715
  'type' => Controls_Manager::SLIDER,
716
  'size_units' => ['px', '%', 'em'],
717
  'range' => [
734
 
735
  $this->start_controls_tab('premium_gallery_icons_style_normal',
736
  [
737
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
738
  ]
739
  );
740
 
741
  $this->add_control('premium_gallery_icons_style_color',
742
  [
743
+ 'label' => __('Color', 'premium-addons-for-elementor'),
744
  'type' => Controls_Manager::COLOR,
745
  'scheme' => [
746
  'type' => Scheme_Color::get_type(),
754
 
755
  $this->add_control('premium_gallery_icons_style_background',
756
  [
757
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
758
  'type' => Controls_Manager::COLOR,
759
  'scheme' => [
760
  'type' => Scheme_Color::get_type(),
778
  /*Button Border Radius*/
779
  $this->add_control('premium_gallery_icons_style_border_radius',
780
  [
781
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
782
  'type' => Controls_Manager::SLIDER,
783
  'size_units' => ['px', 'em' , '%'],
784
  'selectors' => [
791
  $this->add_group_control(
792
  Group_Control_Box_Shadow::get_type(),
793
  [
794
+ 'label' => __('Shadow','premium-addons-for-elementor'),
795
  'name' => 'premium_gallery_icons_style_shadow',
796
  'selector' => '{{WRAPPER}} .pa-gallery-magnific-image span, {{WRAPPER}} .pa-gallery-img-link span',
797
  ]
800
  /*Button Margin*/
801
  $this->add_responsive_control('premium_gallery_icons_style_margin',
802
  [
803
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
804
  'type' => Controls_Manager::DIMENSIONS,
805
  'size_units' => ['px', 'em', '%'],
806
  'selectors' => [
811
  /*Button Padding*/
812
  $this->add_responsive_control('premium_gallery_icons_style_padding',
813
  [
814
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
815
  'type' => Controls_Manager::DIMENSIONS,
816
  'size_units' => ['px', 'em', '%'],
817
  'selectors' => [
823
 
824
  $this->start_controls_tab('premium_gallery_icons_style_hover',
825
  [
826
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
827
  ]
828
  );
829
 
830
  $this->add_control('premium_gallery_icons_style_overlay',
831
  [
832
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
833
  'type' => Controls_Manager::COLOR,
834
  'selectors' => [
835
  '{{WRAPPER}} .pa-gallery-img.default:hover .pa-gallery-icons-wrapper, {{WRAPPER}} .pa-gallery-img .pa-gallery-icons-caption-container, {{WRAPPER}} .pa-gallery-img:hover .pa-gallery-icons-caption-container, {{WRAPPER}} .pa-gallery-img.style1:hover .pa-gallery-icons-wrapper' => 'background-color: {{VALUE}};',
839
 
840
  $this->add_control('premium_gallery_icons_style_color_hover',
841
  [
842
+ 'label' => __('Color', 'premium-addons-for-elementor'),
843
  'type' => Controls_Manager::COLOR,
844
  'scheme' => [
845
  'type' => Scheme_Color::get_type(),
853
 
854
  $this->add_control('premium_gallery_icons_style_background_hover',
855
  [
856
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
857
  'type' => Controls_Manager::COLOR,
858
  'scheme' => [
859
  'type' => Scheme_Color::get_type(),
877
  /*Button Border Radius*/
878
  $this->add_control('premium_gallery_icons_style_border_radius_hover',
879
  [
880
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
881
  'type' => Controls_Manager::SLIDER,
882
  'size_units' => ['px', 'em' , '%' ],
883
  'selectors' => [
890
  $this->add_group_control(
891
  Group_Control_Box_Shadow::get_type(),
892
  [
893
+ 'label' => __('Shadow','premium-addons-for-elementor'),
894
  'name' => 'premium_gallery_icons_style_shadow_hover',
895
  'selector' => '{{WRAPPER}} {{WRAPPER}} .pa-gallery-magnific-image:hover span, {{WRAPPER}} .pa-gallery-img-link:hover span',
896
  ]
899
  /*Button Margin*/
900
  $this->add_responsive_control('premium_gallery_icons_style_margin_hover',
901
  [
902
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
903
  'type' => Controls_Manager::DIMENSIONS,
904
  'size_units' => ['px', 'em', '%'],
905
  'selectors' => [
910
  /*Button Padding*/
911
  $this->add_responsive_control('premium_gallery_icons_style_padding_hover',
912
  [
913
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
914
  'type' => Controls_Manager::DIMENSIONS,
915
  'size_units' => ['px', 'em', '%'],
916
  'selectors' => [
922
 
923
  $this->start_controls_section('premium_gallery_filter_style',
924
  [
925
+ 'label' => __('Filter','premium-addons-for-elementor'),
926
  'tab' => Controls_Manager::TAB_STYLE,
927
  'condition' => [
928
  'premium_gallery_filter' => 'yes'
931
 
932
  $this->add_control('premium_gallery_filter_color',
933
  [
934
+ 'label' => __('Color', 'premium-addons-for-elementor'),
935
  'type' => Controls_Manager::COLOR,
936
  'scheme' => [
937
  'type' => Scheme_Color::get_type(),
945
 
946
  $this->add_control('premium_gallery_filter_active_color',
947
  [
948
+ 'label' => __('Active Color', 'premium-addons-for-elementor'),
949
  'type' => Controls_Manager::COLOR,
950
  'scheme' => [
951
  'type' => Scheme_Color::get_type(),
968
 
969
  $this->add_control('premium_gallery_background',
970
  [
971
+ 'label' => __( 'Background', 'premium-addons-for-elementor' ),
972
  'type' => Controls_Manager::SWITCHER,
973
  'default' => 'yes'
974
  ]
976
 
977
  $this->add_control('premium_gallery_background_color',
978
  [
979
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
980
  'type' => Controls_Manager::COLOR,
981
  'default' => '#6ec1e4',
982
  'selectors' => [
990
 
991
  $this->add_control('premium_gallery_background_active_color',
992
  [
993
+ 'label' => __('Background Active Color', 'premium-addons-for-elementor'),
994
  'type' => Controls_Manager::COLOR,
995
  'default' => '#54595f',
996
  'selectors' => [
1013
  /*Border Radius*/
1014
  $this->add_control('premium_gallery_filter_border_radius',
1015
  [
1016
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1017
  'type' => Controls_Manager::SLIDER,
1018
  'size_units' => ['px','em','%'],
1019
  'selectors' => [
1032
 
1033
  $this->add_responsive_control('premium_gallery_filter_margin',
1034
  [
1035
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1036
  'type' => Controls_Manager::DIMENSIONS,
1037
  'size_units' => ['px', 'em', '%'],
1038
  'selectors' => [
1044
  /*Front Icon Padding*/
1045
  $this->add_responsive_control('premium_gallery_filter_padding',
1046
  [
1047
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1048
  'type' => Controls_Manager::DIMENSIONS,
1049
  'size_units' => ['px', 'em', '%'],
1050
  'selectors' => [
widgets/premium-image-button.php CHANGED
@@ -31,28 +31,28 @@ class Premium_Image_Button extends Widget_Base {
31
  /*Start Button Content Section */
32
  $this->start_controls_section('premium_image_button_general_section',
33
  [
34
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
35
  ]
36
  );
37
 
38
  /*Button Text*/
39
  $this->add_control('premium_image_button_text',
40
  [
41
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
42
  'type' => Controls_Manager::TEXT,
43
  'dynamic' => [ 'active' => true ],
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,
@@ -61,7 +61,7 @@ class Premium_Image_Button extends Widget_Base {
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' => '#',
@@ -77,7 +77,7 @@ class Premium_Image_Button extends Widget_Base {
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::SELECT2,
82
  'options' => $this->getTemplateInstance()->get_all_post(),
83
  'condition' => [
@@ -92,15 +92,15 @@ class Premium_Image_Button extends Widget_Base {
92
  /*Button Hover Effect*/
93
  $this->add_control('premium_image_button_hover_effect',
94
  [
95
- 'label' => esc_html__('Hover Effect', 'premium-addons-for-elementor'),
96
  'type' => Controls_Manager::SELECT,
97
  'default' => 'none',
98
  'options' => [
99
- 'none' => esc_html__('None'),
100
- 'style1' => esc_html__('Background Slide'),
101
- 'style3' => esc_html__('Diagonal Slide'),
102
- 'style4' => esc_html__('Icon Slide'),
103
- 'style5' => esc_html__('Overlap'),
104
  ],
105
  'label_block' => true,
106
  ]
@@ -108,14 +108,14 @@ class Premium_Image_Button extends Widget_Base {
108
 
109
  $this->add_control('premium_image_button_style1_dir',
110
  [
111
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
112
  'type' => Controls_Manager::SELECT,
113
  'default' => 'bottom',
114
  'options' => [
115
- 'bottom' => esc_html__('Top to Bottom'),
116
- 'top' => esc_html__('Bottom to Top'),
117
- 'left' => esc_html__('Right to Left'),
118
- 'right' => esc_html__('Left to Right'),
119
  ],
120
  'condition' => [
121
  'premium_image_button_hover_effect' => 'style1',
@@ -126,14 +126,14 @@ class Premium_Image_Button extends Widget_Base {
126
 
127
  $this->add_control('premium_image_button_style3_dir',
128
  [
129
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
130
  'type' => Controls_Manager::SELECT,
131
  'default' => 'bottom',
132
  'options' => [
133
- 'top' => esc_html__('Bottom Left to Top Right'),
134
- 'bottom' => esc_html__('Top Right to Bottom Left'),
135
- 'left' => esc_html__('Top Left to Bottom Right'),
136
- 'right' => esc_html__('Bottom Right to Top Left'),
137
  ],
138
  'condition' => [
139
  'premium_image_button_hover_effect' => 'style3',
@@ -144,14 +144,14 @@ class Premium_Image_Button extends Widget_Base {
144
 
145
  $this->add_control('premium_image_button_style4_dir',
146
  [
147
- 'label' => esc_html__('Slide Direction', 'premium-addons-for-elementor'),
148
  'type' => Controls_Manager::SELECT,
149
  'default' => 'bottom',
150
  'options' => [
151
- 'top' => esc_html__('Bottom to Top'),
152
- 'bottom' => esc_html__('Top to Bottom'),
153
- 'left' => esc_html__('Left to Right'),
154
- 'right' => esc_html__('Right to Left'),
155
  ],
156
  'condition' => [
157
  'premium_image_button_hover_effect' => 'style4',
@@ -162,12 +162,12 @@ class Premium_Image_Button extends Widget_Base {
162
 
163
  $this->add_control('premium_image_button_style5_dir',
164
  [
165
- 'label' => esc_html__('Overlap Direction', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::SELECT,
167
  'default' => 'horizontal',
168
  'options' => [
169
- 'horizontal' => esc_html__('Horizontal'),
170
- 'vertical' => esc_html__('Vertical'),
171
  ],
172
  'condition' => [
173
  'premium_image_button_hover_effect' => 'style5',
@@ -179,19 +179,19 @@ class Premium_Image_Button extends Widget_Base {
179
  /*Button Icon Switcher*/
180
  $this->add_control('premium_image_button_icon_switcher',
181
  [
182
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
183
  'type' => Controls_Manager::SWITCHER,
184
  'condition' => [
185
  'premium_image_button_hover_effect!' => 'style4'
186
  ],
187
- 'description' => esc_html__('Enable or disable button icon','premium-addons-for-elementor'),
188
  ]
189
  );
190
 
191
  /*Button Icon Selection*/
192
  $this->add_control('premium_image_button_icon_selection',
193
  [
194
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
195
  'type' => Controls_Manager::ICON,
196
  'default' => 'fa fa-bars',
197
  'condition' => [
@@ -204,7 +204,7 @@ class Premium_Image_Button extends Widget_Base {
204
 
205
  $this->add_control('premium_image_button_style4_icon_selection',
206
  [
207
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
208
  'type' => Controls_Manager::ICON,
209
  'default' => 'fa fa-bars',
210
  'condition' => [
@@ -216,12 +216,12 @@ class Premium_Image_Button extends Widget_Base {
216
 
217
  $this->add_control('premium_image_button_icon_position',
218
  [
219
- 'label' => esc_html__('Icon Position', 'premium-addons-for-elementor'),
220
  'type' => Controls_Manager::SELECT,
221
  'default' => 'before',
222
  'options' => [
223
- 'before' => esc_html__('Before'),
224
- 'after' => esc_html__('After'),
225
  ],
226
  'condition' => [
227
  'premium_image_button_icon_switcher' => 'yes',
@@ -233,7 +233,7 @@ class Premium_Image_Button extends Widget_Base {
233
 
234
  $this->add_control('premium_image_button_icon_before_size',
235
  [
236
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
237
  'type' => Controls_Manager::SLIDER,
238
  'condition' => [
239
  'premium_image_button_icon_switcher' => 'yes',
@@ -247,7 +247,7 @@ class Premium_Image_Button extends Widget_Base {
247
 
248
  $this->add_control('premium_image_button_icon_style4_size',
249
  [
250
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
251
  'type' => Controls_Manager::SLIDER,
252
  'condition' => [
253
  'premium_image_button_hover_effect' => 'style4'
@@ -260,7 +260,7 @@ class Premium_Image_Button extends Widget_Base {
260
 
261
  $this->add_control('premium_image_button_icon_before_spacing',
262
  [
263
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
264
  'type' => Controls_Manager::SLIDER,
265
  'condition' => [
266
  'premium_image_button_icon_switcher' => 'yes',
@@ -279,7 +279,7 @@ class Premium_Image_Button extends Widget_Base {
279
 
280
  $this->add_control('premium_image_button_icon_after_spacing',
281
  [
282
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
283
  'type' => Controls_Manager::SLIDER,
284
  'condition' => [
285
  'premium_image_button_icon_switcher' => 'yes',
@@ -299,14 +299,14 @@ class Premium_Image_Button extends Widget_Base {
299
  /*Button Size*/
300
  $this->add_control('premium_image_button_size',
301
  [
302
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
303
  'type' => Controls_Manager::SELECT,
304
  'default' => 'lg',
305
  'options' => [
306
- 'sm' => esc_html__('Small'),
307
- 'md' => esc_html__('Medium'),
308
- 'lg' => esc_html__('Large'),
309
- 'block' => esc_html__('Block'),
310
  ],
311
  'label_block' => true,
312
  'separator' => 'before',
@@ -316,7 +316,7 @@ class Premium_Image_Button extends Widget_Base {
316
  /*Button Align*/
317
  $this->add_responsive_control('premium_image_button_align',
318
  [
319
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
320
  'type' => Controls_Manager::CHOOSE,
321
  'options' => [
322
  'left' => [
@@ -341,7 +341,7 @@ class Premium_Image_Button extends Widget_Base {
341
 
342
  $this->add_control('premium_image_button_event_switcher',
343
  [
344
- 'label' => esc_html__('onclick Event', 'premium-addons-for-elementor'),
345
  'type' => Controls_Manager::SWITCHER,
346
  'separator' => 'before',
347
  ]
@@ -349,7 +349,7 @@ class Premium_Image_Button extends Widget_Base {
349
 
350
  $this->add_control('premium_image_button_event_function',
351
  [
352
- 'label' => esc_html__('Example: myFunction();', 'premium-addons-for-elementor'),
353
  'type' => Controls_Manager::TEXTAREA,
354
  'condition' => [
355
  'premium_image_button_event_switcher' => 'yes',
@@ -363,7 +363,7 @@ class Premium_Image_Button extends Widget_Base {
363
  /*Start Styling Section*/
364
  $this->start_controls_section('premium_image_button_style_section',
365
  [
366
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
367
  'tab' => Controls_Manager::TAB_STYLE,
368
  ]
369
  );
@@ -381,13 +381,13 @@ class Premium_Image_Button extends Widget_Base {
381
 
382
  $this->start_controls_tab('premium_image_button_style_normal',
383
  [
384
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
385
  ]
386
  );
387
 
388
  $this->add_control('premium_image_button_text_color_normal',
389
  [
390
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
391
  'type' => Controls_Manager::COLOR,
392
  'scheme' => [
393
  'type' => Scheme_Color::get_type(),
@@ -400,7 +400,7 @@ class Premium_Image_Button extends Widget_Base {
400
 
401
  $this->add_control('premium_image_button_icon_color_normal',
402
  [
403
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
404
  'type' => Controls_Manager::COLOR,
405
  'scheme' => [
406
  'type' => Scheme_Color::get_type(),
@@ -437,7 +437,7 @@ class Premium_Image_Button extends Widget_Base {
437
  /*Button Border Radius*/
438
  $this->add_control('premium_image_button_border_radius_normal',
439
  [
440
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
441
  'type' => Controls_Manager::SLIDER,
442
  'size_units' => ['px', '%' ,'em'],
443
  'selectors' => [
@@ -450,7 +450,7 @@ class Premium_Image_Button extends Widget_Base {
450
  $this->add_group_control(
451
  Group_Control_Text_Shadow::get_type(),
452
  [
453
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
454
  'name' => 'premium_image_button_icon_shadow_normal',
455
  'selector' => '{{WRAPPER}} .premium-image-button-text-icon-wrapper i',
456
  'condition' => [
@@ -465,7 +465,7 @@ class Premium_Image_Button extends Widget_Base {
465
  $this->add_group_control(
466
  Group_Control_Text_Shadow::get_type(),
467
  [
468
- 'label' => esc_html__('Text Shadow','premium-addons-for-elementor'),
469
  'name' => 'premium_image_button_text_shadow_normal',
470
  'selector' => '{{WRAPPER}} .premium-image-button-text-icon-wrapper span',
471
  ]
@@ -475,7 +475,7 @@ class Premium_Image_Button extends Widget_Base {
475
  $this->add_group_control(
476
  Group_Control_Box_Shadow::get_type(),
477
  [
478
- 'label' => esc_html__('Button Shadow','premium-addons-for-elementor'),
479
  'name' => 'premium_image_button_box_shadow_normal',
480
  'selector' => '{{WRAPPER}} .premium-image-button',
481
  ]
@@ -484,7 +484,7 @@ class Premium_Image_Button extends Widget_Base {
484
  /*Button Margin*/
485
  $this->add_responsive_control('premium_image_button_margin_normal',
486
  [
487
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
488
  'type' => Controls_Manager::DIMENSIONS,
489
  'size_units' => ['px', 'em', '%'],
490
  'selectors' => [
@@ -495,7 +495,7 @@ class Premium_Image_Button extends Widget_Base {
495
  /*Button Padding*/
496
  $this->add_responsive_control('premium_image_button_padding_normal',
497
  [
498
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
499
  'type' => Controls_Manager::DIMENSIONS,
500
  'size_units' => ['px', 'em', '%'],
501
  'selectors' => [
@@ -507,13 +507,13 @@ class Premium_Image_Button extends Widget_Base {
507
 
508
  $this->start_controls_tab('premium_image_button_style_hover',
509
  [
510
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
511
  ]
512
  );
513
 
514
  $this->add_control('premium_image_button_text_color_hover',
515
  [
516
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
517
  'type' => Controls_Manager::COLOR,
518
  'scheme' => [
519
  'type' => Scheme_Color::get_type(),
@@ -529,7 +529,7 @@ class Premium_Image_Button extends Widget_Base {
529
 
530
  $this->add_control('premium_image_button_icon_color_hover',
531
  [
532
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
533
  'type' => Controls_Manager::COLOR,
534
  'scheme' => [
535
  'type' => Scheme_Color::get_type(),
@@ -546,7 +546,7 @@ class Premium_Image_Button extends Widget_Base {
546
 
547
  $this->add_control('premium_image_button_style4_icon_color',
548
  [
549
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
550
  'type' => Controls_Manager::COLOR,
551
  'scheme' => [
552
  'type' => Scheme_Color::get_type(),
@@ -562,7 +562,7 @@ class Premium_Image_Button extends Widget_Base {
562
 
563
  $this->add_control('premium_image_button_diagonal_overlay_color',
564
  [
565
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
566
  'type' => Controls_Manager::COLOR,
567
  'scheme' => [
568
  'type' => Scheme_Color::get_type(),
@@ -579,7 +579,7 @@ class Premium_Image_Button extends Widget_Base {
579
 
580
  $this->add_control('premium_image_button_overlap_overlay_color',
581
  [
582
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
583
  'type' => Controls_Manager::COLOR,
584
  'scheme' => [
585
  'type' => Scheme_Color::get_type(),
@@ -605,7 +605,7 @@ class Premium_Image_Button extends Widget_Base {
605
  /*Overlay Color*/
606
  $this->add_control('premium_image_button_overlay_color',
607
  [
608
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
609
  'type' => Controls_Manager::COLOR,
610
  'scheme' => [
611
  'type' => Scheme_Color::get_type(),
@@ -632,7 +632,7 @@ class Premium_Image_Button extends Widget_Base {
632
  /*Button Border Radius*/
633
  $this->add_control('premium_image_button_border_radius_hover',
634
  [
635
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
636
  'type' => Controls_Manager::SLIDER,
637
  'size_units' => ['px', '%' ,'em'],
638
  'selectors' => [
@@ -645,7 +645,7 @@ class Premium_Image_Button extends Widget_Base {
645
  $this->add_group_control(
646
  Group_Control_Text_Shadow::get_type(),
647
  [
648
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
649
  'name' => 'premium_image_button_icon_shadow_hover',
650
  'selector' => '{{WRAPPER}} .premium-image-button:hover .premium-image-button-text-icon-wrapper i',
651
  'condition' => [
@@ -658,7 +658,7 @@ class Premium_Image_Button extends Widget_Base {
658
  $this->add_group_control(
659
  Group_Control_Text_Shadow::get_type(),
660
  [
661
- 'label' => esc_html__('Icon Shadow','premium-addons-for-elementor'),
662
  'name' => 'premium_image_button_style4_icon_shadow_hover',
663
  'selector' => '{{WRAPPER}} .premium-image-button:hover .premium-image-button-style4-icon-wrapper i',
664
  'condition' => [
@@ -671,7 +671,7 @@ class Premium_Image_Button extends Widget_Base {
671
  $this->add_group_control(
672
  Group_Control_Text_Shadow::get_type(),
673
  [
674
- 'label' => esc_html__('Text Shadow','premium-addons-for-elementor'),
675
  'name' => 'premium_image_button_text_shadow_hover',
676
  'selector' => '{{WRAPPER}} .premium-image-button:hover .premium-image-button-text-icon-wrapper span',
677
  'condition' => [
@@ -684,7 +684,7 @@ class Premium_Image_Button extends Widget_Base {
684
  $this->add_group_control(
685
  Group_Control_Box_Shadow::get_type(),
686
  [
687
- 'label' => esc_html__('Button Shadow','premium-addons-for-elementor'),
688
  'name' => 'premium_image_button_box_shadow_hover',
689
  'selector' => '{{WRAPPER}} .premium-image-button:hover',
690
  ]
@@ -694,7 +694,7 @@ class Premium_Image_Button extends Widget_Base {
694
  /*Button Margin*/
695
  $this->add_responsive_control('premium_image_button_margin_hover',
696
  [
697
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
698
  'type' => Controls_Manager::DIMENSIONS,
699
  'size_units' => ['px', 'em', '%'],
700
  'selectors' => [
@@ -705,7 +705,7 @@ class Premium_Image_Button extends Widget_Base {
705
  /*Button Padding*/
706
  $this->add_responsive_control('premium_image_button_padding_hover',
707
  [
708
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
709
  'type' => Controls_Manager::DIMENSIONS,
710
  'size_units' => ['px', 'em', '%'],
711
  'selectors' => [
31
  /*Start Button Content Section */
32
  $this->start_controls_section('premium_image_button_general_section',
33
  [
34
+ 'label' => __('Button', 'premium-addons-for-elementor'),
35
  ]
36
  );
37
 
38
  /*Button Text*/
39
  $this->add_control('premium_image_button_text',
40
  [
41
+ 'label' => __('Text', 'premium-addons-for-elementor'),
42
  'type' => Controls_Manager::TEXT,
43
  'dynamic' => [ 'active' => true ],
44
+ 'default' => __('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' => __('Link Type', 'premium-addons-for-elementor'),
52
  'type' => Controls_Manager::SELECT,
53
  'options' => [
54
+ 'url' => __('URL', 'premium-addons-for-elementor'),
55
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
56
  ],
57
  'default' => 'url',
58
  'label_block' => true,
61
 
62
  $this->add_control('premium_image_button_link',
63
  [
64
+ 'label' => __('Link', 'premium-addons-for-elementor'),
65
  'type' => Controls_Manager::URL,
66
  'default' => [
67
  'url' => '#',
77
 
78
  $this->add_control('premium_image_button_existing_link',
79
  [
80
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
81
  'type' => Controls_Manager::SELECT2,
82
  'options' => $this->getTemplateInstance()->get_all_post(),
83
  'condition' => [
92
  /*Button Hover Effect*/
93
  $this->add_control('premium_image_button_hover_effect',
94
  [
95
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
96
  'type' => Controls_Manager::SELECT,
97
  'default' => 'none',
98
  'options' => [
99
+ 'none' => __('None','premium-addons-for-elementor'),
100
+ 'style1' => __('Background Slide','premium-addons-for-elementor'),
101
+ 'style3' => __('Diagonal Slide','premium-addons-for-elementor'),
102
+ 'style4' => __('Icon Slide','premium-addons-for-elementor'),
103
+ 'style5' => __('Overlap','premium-addons-for-elementor'),
104
  ],
105
  'label_block' => true,
106
  ]
108
 
109
  $this->add_control('premium_image_button_style1_dir',
110
  [
111
+ 'label' => __('Slide Direction', 'premium-addons-for-elementor'),
112
  'type' => Controls_Manager::SELECT,
113
  'default' => 'bottom',
114
  'options' => [
115
+ 'bottom' => __('Top to Bottom','premium-addons-for-elementor'),
116
+ 'top' => __('Bottom to Top','premium-addons-for-elementor'),
117
+ 'left' => __('Right to Left','premium-addons-for-elementor'),
118
+ 'right' => __('Left to Right','premium-addons-for-elementor'),
119
  ],
120
  'condition' => [
121
  'premium_image_button_hover_effect' => 'style1',
126
 
127
  $this->add_control('premium_image_button_style3_dir',
128
  [
129
+ 'label' => __('Slide Direction', 'premium-addons-for-elementor'),
130
  'type' => Controls_Manager::SELECT,
131
  'default' => 'bottom',
132
  'options' => [
133
+ 'top' => __('Bottom Left to Top Right','premium-addons-for-elementor'),
134
+ 'bottom' => __('Top Right to Bottom Left','premium-addons-for-elementor'),
135
+ 'left' => __('Top Left to Bottom Right','premium-addons-for-elementor'),
136
+ 'right' => __('Bottom Right to Top Left','premium-addons-for-elementor'),
137
  ],
138
  'condition' => [
139
  'premium_image_button_hover_effect' => 'style3',
144
 
145
  $this->add_control('premium_image_button_style4_dir',
146
  [
147
+ 'label' => __('Slide Direction', 'premium-addons-for-elementor'),
148
  'type' => Controls_Manager::SELECT,
149
  'default' => 'bottom',
150
  'options' => [
151
+ 'top' => __('Bottom to Top','premium-addons-for-elementor'),
152
+ 'bottom' => __('Top to Bottom','premium-addons-for-elementor'),
153
+ 'left' => __('Left to Right','premium-addons-for-elementor'),
154
+ 'right' => __('Right to Left','premium-addons-for-elementor'),
155
  ],
156
  'condition' => [
157
  'premium_image_button_hover_effect' => 'style4',
162
 
163
  $this->add_control('premium_image_button_style5_dir',
164
  [
165
+ 'label' => __('Overlap Direction', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::SELECT,
167
  'default' => 'horizontal',
168
  'options' => [
169
+ 'horizontal' => __('Horizontal','premium-addons-for-elementor'),
170
+ 'vertical' => __('Vertical','premium-addons-for-elementor'),
171
  ],
172
  'condition' => [
173
  'premium_image_button_hover_effect' => 'style5',
179
  /*Button Icon Switcher*/
180
  $this->add_control('premium_image_button_icon_switcher',
181
  [
182
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
183
  'type' => Controls_Manager::SWITCHER,
184
  'condition' => [
185
  'premium_image_button_hover_effect!' => 'style4'
186
  ],
187
+ 'description' => __('Enable or disable button icon','premium-addons-for-elementor'),
188
  ]
189
  );
190
 
191
  /*Button Icon Selection*/
192
  $this->add_control('premium_image_button_icon_selection',
193
  [
194
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
195
  'type' => Controls_Manager::ICON,
196
  'default' => 'fa fa-bars',
197
  'condition' => [
204
 
205
  $this->add_control('premium_image_button_style4_icon_selection',
206
  [
207
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
208
  'type' => Controls_Manager::ICON,
209
  'default' => 'fa fa-bars',
210
  'condition' => [
216
 
217
  $this->add_control('premium_image_button_icon_position',
218
  [
219
+ 'label' => __('Icon Position', 'premium-addons-for-elementor'),
220
  'type' => Controls_Manager::SELECT,
221
  'default' => 'before',
222
  'options' => [
223
+ 'before' => __('Before','premium-addons-for-elementor'),
224
+ 'after' => __('After','premium-addons-for-elementor'),
225
  ],
226
  'condition' => [
227
  'premium_image_button_icon_switcher' => 'yes',
233
 
234
  $this->add_control('premium_image_button_icon_before_size',
235
  [
236
+ 'label' => __('Icon Size', 'premium-addons-for-elementor'),
237
  'type' => Controls_Manager::SLIDER,
238
  'condition' => [
239
  'premium_image_button_icon_switcher' => 'yes',
247
 
248
  $this->add_control('premium_image_button_icon_style4_size',
249
  [
250
+ 'label' => __('Icon Size', 'premium-addons-for-elementor'),
251
  'type' => Controls_Manager::SLIDER,
252
  'condition' => [
253
  'premium_image_button_hover_effect' => 'style4'
260
 
261
  $this->add_control('premium_image_button_icon_before_spacing',
262
  [
263
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
264
  'type' => Controls_Manager::SLIDER,
265
  'condition' => [
266
  'premium_image_button_icon_switcher' => 'yes',
279
 
280
  $this->add_control('premium_image_button_icon_after_spacing',
281
  [
282
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
283
  'type' => Controls_Manager::SLIDER,
284
  'condition' => [
285
  'premium_image_button_icon_switcher' => 'yes',
299
  /*Button Size*/
300
  $this->add_control('premium_image_button_size',
301
  [
302
+ 'label' => __('Size', 'premium-addons-for-elementor'),
303
  'type' => Controls_Manager::SELECT,
304
  'default' => 'lg',
305
  'options' => [
306
+ 'sm' => __('Small','premium-addons-for-elementor'),
307
+ 'md' => __('Medium','premium-addons-for-elementor'),
308
+ 'lg' => __('Large','premium-addons-for-elementor'),
309
+ 'block' => __('Block','premium-addons-for-elementor'),
310
  ],
311
  'label_block' => true,
312
  'separator' => 'before',
316
  /*Button Align*/
317
  $this->add_responsive_control('premium_image_button_align',
318
  [
319
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
320
  'type' => Controls_Manager::CHOOSE,
321
  'options' => [
322
  'left' => [
341
 
342
  $this->add_control('premium_image_button_event_switcher',
343
  [
344
+ 'label' => __('onclick Event', 'premium-addons-for-elementor'),
345
  'type' => Controls_Manager::SWITCHER,
346
  'separator' => 'before',
347
  ]
349
 
350
  $this->add_control('premium_image_button_event_function',
351
  [
352
+ 'label' => __('Example: myFunction();', 'premium-addons-for-elementor'),
353
  'type' => Controls_Manager::TEXTAREA,
354
  'condition' => [
355
  'premium_image_button_event_switcher' => 'yes',
363
  /*Start Styling Section*/
364
  $this->start_controls_section('premium_image_button_style_section',
365
  [
366
+ 'label' => __('Button', 'premium-addons-for-elementor'),
367
  'tab' => Controls_Manager::TAB_STYLE,
368
  ]
369
  );
381
 
382
  $this->start_controls_tab('premium_image_button_style_normal',
383
  [
384
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
385
  ]
386
  );
387
 
388
  $this->add_control('premium_image_button_text_color_normal',
389
  [
390
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
391
  'type' => Controls_Manager::COLOR,
392
  'scheme' => [
393
  'type' => Scheme_Color::get_type(),
400
 
401
  $this->add_control('premium_image_button_icon_color_normal',
402
  [
403
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
404
  'type' => Controls_Manager::COLOR,
405
  'scheme' => [
406
  'type' => Scheme_Color::get_type(),
437
  /*Button Border Radius*/
438
  $this->add_control('premium_image_button_border_radius_normal',
439
  [
440
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
441
  'type' => Controls_Manager::SLIDER,
442
  'size_units' => ['px', '%' ,'em'],
443
  'selectors' => [
450
  $this->add_group_control(
451
  Group_Control_Text_Shadow::get_type(),
452
  [
453
+ 'label' => __('Icon Shadow','premium-addons-for-elementor'),
454
  'name' => 'premium_image_button_icon_shadow_normal',
455
  'selector' => '{{WRAPPER}} .premium-image-button-text-icon-wrapper i',
456
  'condition' => [
465
  $this->add_group_control(
466
  Group_Control_Text_Shadow::get_type(),
467
  [
468
+ 'label' => __('Text Shadow','premium-addons-for-elementor'),
469
  'name' => 'premium_image_button_text_shadow_normal',
470
  'selector' => '{{WRAPPER}} .premium-image-button-text-icon-wrapper span',
471
  ]
475
  $this->add_group_control(
476
  Group_Control_Box_Shadow::get_type(),
477
  [
478
+ 'label' => __('Button Shadow','premium-addons-for-elementor'),
479
  'name' => 'premium_image_button_box_shadow_normal',
480
  'selector' => '{{WRAPPER}} .premium-image-button',
481
  ]
484
  /*Button Margin*/
485
  $this->add_responsive_control('premium_image_button_margin_normal',
486
  [
487
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
488
  'type' => Controls_Manager::DIMENSIONS,
489
  'size_units' => ['px', 'em', '%'],
490
  'selectors' => [
495
  /*Button Padding*/
496
  $this->add_responsive_control('premium_image_button_padding_normal',
497
  [
498
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
499
  'type' => Controls_Manager::DIMENSIONS,
500
  'size_units' => ['px', 'em', '%'],
501
  'selectors' => [
507
 
508
  $this->start_controls_tab('premium_image_button_style_hover',
509
  [
510
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
511
  ]
512
  );
513
 
514
  $this->add_control('premium_image_button_text_color_hover',
515
  [
516
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
517
  'type' => Controls_Manager::COLOR,
518
  'scheme' => [
519
  'type' => Scheme_Color::get_type(),
529
 
530
  $this->add_control('premium_image_button_icon_color_hover',
531
  [
532
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
533
  'type' => Controls_Manager::COLOR,
534
  'scheme' => [
535
  'type' => Scheme_Color::get_type(),
546
 
547
  $this->add_control('premium_image_button_style4_icon_color',
548
  [
549
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
550
  'type' => Controls_Manager::COLOR,
551
  'scheme' => [
552
  'type' => Scheme_Color::get_type(),
562
 
563
  $this->add_control('premium_image_button_diagonal_overlay_color',
564
  [
565
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
566
  'type' => Controls_Manager::COLOR,
567
  'scheme' => [
568
  'type' => Scheme_Color::get_type(),
579
 
580
  $this->add_control('premium_image_button_overlap_overlay_color',
581
  [
582
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
583
  'type' => Controls_Manager::COLOR,
584
  'scheme' => [
585
  'type' => Scheme_Color::get_type(),
605
  /*Overlay Color*/
606
  $this->add_control('premium_image_button_overlay_color',
607
  [
608
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
609
  'type' => Controls_Manager::COLOR,
610
  'scheme' => [
611
  'type' => Scheme_Color::get_type(),
632
  /*Button Border Radius*/
633
  $this->add_control('premium_image_button_border_radius_hover',
634
  [
635
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
636
  'type' => Controls_Manager::SLIDER,
637
  'size_units' => ['px', '%' ,'em'],
638
  'selectors' => [
645
  $this->add_group_control(
646
  Group_Control_Text_Shadow::get_type(),
647
  [
648
+ 'label' => __('Icon Shadow','premium-addons-for-elementor'),
649
  'name' => 'premium_image_button_icon_shadow_hover',
650
  'selector' => '{{WRAPPER}} .premium-image-button:hover .premium-image-button-text-icon-wrapper i',
651
  'condition' => [
658
  $this->add_group_control(
659
  Group_Control_Text_Shadow::get_type(),
660
  [
661
+ 'label' => __('Icon Shadow','premium-addons-for-elementor'),
662
  'name' => 'premium_image_button_style4_icon_shadow_hover',
663
  'selector' => '{{WRAPPER}} .premium-image-button:hover .premium-image-button-style4-icon-wrapper i',
664
  'condition' => [
671
  $this->add_group_control(
672
  Group_Control_Text_Shadow::get_type(),
673
  [
674
+ 'label' => __('Text Shadow','premium-addons-for-elementor'),
675
  'name' => 'premium_image_button_text_shadow_hover',
676
  'selector' => '{{WRAPPER}} .premium-image-button:hover .premium-image-button-text-icon-wrapper span',
677
  'condition' => [
684
  $this->add_group_control(
685
  Group_Control_Box_Shadow::get_type(),
686
  [
687
+ 'label' => __('Button Shadow','premium-addons-for-elementor'),
688
  'name' => 'premium_image_button_box_shadow_hover',
689
  'selector' => '{{WRAPPER}} .premium-image-button:hover',
690
  ]
694
  /*Button Margin*/
695
  $this->add_responsive_control('premium_image_button_margin_hover',
696
  [
697
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
698
  'type' => Controls_Manager::DIMENSIONS,
699
  'size_units' => ['px', 'em', '%'],
700
  'selectors' => [
705
  /*Button Padding*/
706
  $this->add_responsive_control('premium_image_button_padding_hover',
707
  [
708
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
709
  'type' => Controls_Manager::DIMENSIONS,
710
  'size_units' => ['px', 'em', '%'],
711
  'selectors' => [
widgets/premium-image-separator.php CHANGED
@@ -33,20 +33,20 @@ class Premium_Image_Separator extends Widget_Base {
33
  /* Start Content Section */
34
  $this->start_controls_section('premium_image_separator_general_settings',
35
  [
36
- 'label' => esc_html__('Image Settings', 'premium-addons-for-elementor')
37
  ]
38
  );
39
 
40
  /*Separator Image*/
41
  $this->add_control('premium_image_separator_image',
42
  [
43
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
44
  'type' => Controls_Manager::MEDIA,
45
  'dynamic' => [ 'active' => true ],
46
  'default' => [
47
  'url' => Utils::get_placeholder_image_src(),
48
  ],
49
- 'description' => esc_html__('Choose the separator image', 'premium-addons-for-elementor' ),
50
  'label_block' => true
51
  ]
52
  );
@@ -54,7 +54,7 @@ class Premium_Image_Separator extends Widget_Base {
54
  /*Separator Image Size*/
55
  $this->add_responsive_control('premium_image_separator_image_size',
56
  [
57
- 'label' => esc_html__('Image Size', 'premium-addons-for-elementor'),
58
  'type' => Controls_Manager::SLIDER,
59
  'size_units' => ['px', '%', "em"],
60
  'default' => [
@@ -76,10 +76,10 @@ class Premium_Image_Separator extends Widget_Base {
76
  /*Separator Image Gutter*/
77
  $this->add_control('premium_image_separator_image_gutter',
78
  [
79
- 'label' => esc_html__('Image Gutter (%)', 'premium-addons-for-elementor'),
80
  'type' => Controls_Manager::NUMBER,
81
  'default' => -50,
82
- 'description' => esc_html__('-50% is default. Increase to push the image outside or decrease to pull the image inside.','premium-addons-for-elementor'),
83
  'label_block' => true,
84
  'selectors' => [
85
  '{{WRAPPER}} .premium-image-separator-container' => 'transform: translateY( {{VALUE}}% );'
@@ -90,19 +90,19 @@ class Premium_Image_Separator extends Widget_Base {
90
 
91
  $this->add_control('premium_image_separator_image_align',
92
  [
93
- 'label' => esc_html__('Image Alignment', 'premium-addons-for-elementor'),
94
  'type' => Controls_Manager::CHOOSE,
95
  'options' => [
96
  'left' => [
97
- 'title' => esc_html__('Left', 'premium-addons-for-elementor'),
98
  'icon' => 'fa fa-align-left'
99
  ],
100
  'center' => [
101
- 'title' => esc_html__('Center', 'premium-addons-for-elementor'),
102
  'icon' => 'fa fa-align-center'
103
  ],
104
  'right' => [
105
- 'title' => esc_html__('Right', 'premium-addons-for-elementor'),
106
  'icon' => 'fa fa-align-right'
107
  ],
108
  ],
@@ -117,19 +117,19 @@ class Premium_Image_Separator extends Widget_Base {
117
  /*Add Link Switcher*/
118
  $this->add_control('premium_image_separator_link_switcher',
119
  [
120
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
121
  'type' => Controls_Manager::SWITCHER,
122
- 'description' => esc_html__('Add a custom link or select an existing page link','premium-addons-for-elementor'),
123
  ]
124
  );
125
 
126
  $this->add_control('premium_image_separator_link_type',
127
  [
128
- 'label' => esc_html__('Link/URL', 'premium-addons-for-elementor'),
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,7 +141,7 @@ class Premium_Image_Separator extends Widget_Base {
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::SELECT2,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
@@ -156,7 +156,7 @@ class Premium_Image_Separator extends Widget_Base {
156
  /*Link Below Image*/
157
  $this->add_control('premium_image_separator_image_link',
158
  [
159
- 'label' => esc_html__('URL', 'premium-addons-for-elementor'),
160
  'type' => Controls_Manager::TEXT,
161
  'condition' => [
162
  'premium_image_separator_link_switcher' => 'yes',
@@ -170,7 +170,7 @@ class Premium_Image_Separator extends Widget_Base {
170
  /*Link Below Image*/
171
  $this->add_control('premium_image_separator_image_link_text',
172
  [
173
- 'label' => esc_html__('Image Hovering Title', 'premium-addons-for-elementor'),
174
  'type' => Controls_Manager::TEXT,
175
  'condition' => [
176
  'premium_image_separator_link_switcher' => 'yes',
@@ -182,16 +182,16 @@ class Premium_Image_Separator extends Widget_Base {
182
  /*Link Target*/
183
  $this->add_control('premium_image_separator_link_target',
184
  [
185
- 'label' => esc_html__('Link Target', 'premium-addons-for-elementor'),
186
  'type' => Controls_Manager::SELECT,
187
- 'description' => esc_html__( ' Where would you like the link be opened?', 'premium-addons-for-elementor' ),
188
  'options' => [
189
- 'blank' => esc_html('Blank'),
190
- 'parent' => esc_html('Parent'),
191
- 'self' => esc_html('Self'),
192
- 'top' => esc_html('Top'),
193
  ],
194
- 'default' => esc_html__('blank','premium-addons-for-elementor'),
195
  'condition' => [
196
  'premium_image_separator_link_switcher' => 'yes',
197
  ],
33
  /* Start Content Section */
34
  $this->start_controls_section('premium_image_separator_general_settings',
35
  [
36
+ 'label' => __('Image Settings', 'premium-addons-for-elementor')
37
  ]
38
  );
39
 
40
  /*Separator Image*/
41
  $this->add_control('premium_image_separator_image',
42
  [
43
+ 'label' => __('Image', 'premium-addons-for-elementor'),
44
  'type' => Controls_Manager::MEDIA,
45
  'dynamic' => [ 'active' => true ],
46
  'default' => [
47
  'url' => Utils::get_placeholder_image_src(),
48
  ],
49
+ 'description' => __('Choose the separator image', 'premium-addons-for-elementor' ),
50
  'label_block' => true
51
  ]
52
  );
54
  /*Separator Image Size*/
55
  $this->add_responsive_control('premium_image_separator_image_size',
56
  [
57
+ 'label' => __('Image Size', 'premium-addons-for-elementor'),
58
  'type' => Controls_Manager::SLIDER,
59
  'size_units' => ['px', '%', "em"],
60
  'default' => [
76
  /*Separator Image Gutter*/
77
  $this->add_control('premium_image_separator_image_gutter',
78
  [
79
+ 'label' => __('Image Gutter (%)', 'premium-addons-for-elementor'),
80
  'type' => Controls_Manager::NUMBER,
81
  'default' => -50,
82
+ 'description' => __('-50% is default. Increase to push the image outside or decrease to pull the image inside.','premium-addons-for-elementor'),
83
  'label_block' => true,
84
  'selectors' => [
85
  '{{WRAPPER}} .premium-image-separator-container' => 'transform: translateY( {{VALUE}}% );'
90
 
91
  $this->add_control('premium_image_separator_image_align',
92
  [
93
+ 'label' => __('Image Alignment', 'premium-addons-for-elementor'),
94
  'type' => Controls_Manager::CHOOSE,
95
  'options' => [
96
  'left' => [
97
+ 'title' => __('Left', 'premium-addons-for-elementor'),
98
  'icon' => 'fa fa-align-left'
99
  ],
100
  'center' => [
101
+ 'title' => __('Center', 'premium-addons-for-elementor'),
102
  'icon' => 'fa fa-align-center'
103
  ],
104
  'right' => [
105
+ 'title' => __('Right', 'premium-addons-for-elementor'),
106
  'icon' => 'fa fa-align-right'
107
  ],
108
  ],
117
  /*Add Link Switcher*/
118
  $this->add_control('premium_image_separator_link_switcher',
119
  [
120
+ 'label' => __('Link', 'premium-addons-for-elementor'),
121
  'type' => Controls_Manager::SWITCHER,
122
+ 'description' => __('Add a custom link or select an existing page link','premium-addons-for-elementor'),
123
  ]
124
  );
125
 
126
  $this->add_control('premium_image_separator_link_type',
127
  [
128
+ 'label' => __('Link/URL', 'premium-addons-for-elementor'),
129
  'type' => Controls_Manager::SELECT,
130
  'options' => [
131
+ 'url' => __('URL', 'premium-addons-for-elementor'),
132
+ 'link' => __('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' => __('Existing Page', 'premium-addons-for-elementor'),
145
  'type' => Controls_Manager::SELECT2,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
156
  /*Link Below Image*/
157
  $this->add_control('premium_image_separator_image_link',
158
  [
159
+ 'label' => __('URL', 'premium-addons-for-elementor'),
160
  'type' => Controls_Manager::TEXT,
161
  'condition' => [
162
  'premium_image_separator_link_switcher' => 'yes',
170
  /*Link Below Image*/
171
  $this->add_control('premium_image_separator_image_link_text',
172
  [
173
+ 'label' => __('Image Hovering Title', 'premium-addons-for-elementor'),
174
  'type' => Controls_Manager::TEXT,
175
  'condition' => [
176
  'premium_image_separator_link_switcher' => 'yes',
182
  /*Link Target*/
183
  $this->add_control('premium_image_separator_link_target',
184
  [
185
+ 'label' => __('Link Target', 'premium-addons-for-elementor'),
186
  'type' => Controls_Manager::SELECT,
187
+ 'description' => __( ' Where would you like the link be opened?', 'premium-addons-for-elementor' ),
188
  'options' => [
189
+ 'blank' => ('Blank'),
190
+ 'parent' => ('Parent'),
191
+ 'self' => ('Self'),
192
+ 'top' => ('Top'),
193
  ],
194
+ 'default' => __('blank','premium-addons-for-elementor'),
195
  'condition' => [
196
  'premium_image_separator_link_switcher' => 'yes',
197
  ],
widgets/premium-maps.php CHANGED
@@ -39,7 +39,7 @@ class Premium_Maps extends Widget_Base {
39
  /* Start Map Settings Section */
40
  $this->start_controls_section('premium_maps_map_settings',
41
  [
42
- 'label' => esc_html__('Center Location', 'premium-addons-for-elementor'),
43
  ]
44
  );
45
 
@@ -56,8 +56,8 @@ class Premium_Maps extends Widget_Base {
56
 
57
  $this->add_control('premium_map_ip_location',
58
  [
59
- 'label' => esc_html__( 'Get User Location', 'premium-addons-for-elementor' ),
60
- 'description' => esc_html__('Get center location from visitor\'s location','premium-addons-for-elementor'),
61
  'type' => Controls_Manager::SWITCHER,
62
  'return_value' => 'true'
63
  ]
@@ -65,7 +65,7 @@ class Premium_Maps extends Widget_Base {
65
 
66
  $this->add_control('premium_map_location_finder',
67
  [
68
- 'label' => esc_html__( 'Latitude & Longitude Finder', 'premium-addons-for-elementor' ),
69
  'type' => Controls_Manager::SWITCHER,
70
  'condition' => [
71
  'premium_map_ip_location!' => 'true'
@@ -89,9 +89,9 @@ class Premium_Maps extends Widget_Base {
89
 
90
  $this->add_control('premium_maps_center_lat',
91
  [
92
- 'label' => esc_html__('Center Latitude', 'premium-addons-for-elementor'),
93
  'type' => Controls_Manager::TEXT,
94
- 'description' => esc_html__('Center latitude and longitude are required to identify your location', 'premium-addons-for-elementor'),
95
  'default' => '18.591212',
96
  'label_block' => true,
97
  'condition' => [
@@ -102,9 +102,9 @@ class Premium_Maps extends Widget_Base {
102
 
103
  $this->add_control('premium_maps_center_long',
104
  [
105
- 'label' => esc_html__('Center Longitude', 'premium-addons-for-elementor'),
106
  'type' => Controls_Manager::TEXT,
107
- 'description' => esc_html__('Center latitude and longitude are required to identify your location', 'premium-addons-for-elementor'),
108
  'default' => '73.741261',
109
  'label_block' => true,
110
  'condition' => [
@@ -117,15 +117,15 @@ class Premium_Maps extends Widget_Base {
117
 
118
  $this->start_controls_section('premium_maps_map_pins_settings',
119
  [
120
- 'label' => esc_html__('Markers', 'premium-addons-for-elementor'),
121
  ]
122
  );
123
 
124
  $this->add_control('premium_maps_markers_width',
125
  [
126
- 'label' => esc_html__('Max Width', 'premium-addons-for-elementor'),
127
  'type' => Controls_Manager::NUMBER,
128
- 'title' => esc_html__('Set the Maximum width for markers description box','premium-addons-for-elementor'),
129
  ]
130
  );
131
 
@@ -133,7 +133,7 @@ class Premium_Maps extends Widget_Base {
133
 
134
  $repeater->add_control('premium_map_pin_location_finder',
135
  [
136
- 'label' => esc_html__( 'Latitude & Longitude Finder', 'premium-addons-for-elementor' ),
137
  'type' => Controls_Manager::SWITCHER,
138
  ]
139
  );
@@ -152,7 +152,7 @@ class Premium_Maps extends Widget_Base {
152
 
153
  $repeater->add_control('map_latitude',
154
  [
155
- 'label' => esc_html__('Latitude', 'premium-addons-for-elementor'),
156
  'type' => Controls_Manager::TEXT,
157
  'description' => 'Click <a href="https://www.latlong.net/" target="_blank">here</a> to get your location coordinates',
158
  'label_block' => true,
@@ -162,7 +162,7 @@ class Premium_Maps extends Widget_Base {
162
  $repeater->add_control('map_longitude',
163
  [
164
  'name' => 'map_longitude',
165
- 'label' => esc_html__('Longitude', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::TEXT,
167
  'description' => 'Click <a href="https://www.latlong.net/" target="_blank">here</a> to get your location coordinates',
168
  'label_block' => true,
@@ -171,7 +171,7 @@ class Premium_Maps extends Widget_Base {
171
 
172
  $repeater->add_control('pin_title',
173
  [
174
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::TEXT,
176
  'dynamic' => [ 'active' => true ],
177
  'label_block' => true,
@@ -180,7 +180,7 @@ class Premium_Maps extends Widget_Base {
180
 
181
  $repeater->add_control('pin_desc',
182
  [
183
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
184
  'type' => Controls_Manager::WYSIWYG,
185
  'dynamic' => [ 'active' => true ],
186
  'label_block' => true,
@@ -189,7 +189,7 @@ class Premium_Maps extends Widget_Base {
189
 
190
  $repeater->add_control('pin_icon',
191
  [
192
- 'label' => esc_html__('Custom Icon', 'premium-addons-for-elementor'),
193
  'type' => Controls_Manager::MEDIA,
194
  'dynamic' => [ 'active' => true ],
195
  ]
@@ -197,13 +197,13 @@ class Premium_Maps extends Widget_Base {
197
 
198
  $this->add_control('premium_maps_map_pins',
199
  [
200
- 'label' => esc_html__('Map Pins', 'premium-addons-for-elementor'),
201
  'type' => Controls_Manager::REPEATER,
202
  'default' => [
203
  'map_latitude' => '18.591212',
204
  'map_longitude' => '73.741261',
205
- 'pin_title' => esc_html__('Premium Google Maps', 'premium-addons-for-elementor'),
206
- 'pin_desc' => esc_html__('Add an optional description to your map pin', 'premium-addons-for-elementor'),
207
  ],
208
  'fields' => array_values( $repeater->get_controls() ),
209
  ]
@@ -213,19 +213,19 @@ class Premium_Maps extends Widget_Base {
213
 
214
  $this->start_controls_section('premium_maps_controls_section',
215
  [
216
- 'label' => esc_html__('Controls', 'premium-addons-for-elementor'),
217
  ]
218
  );
219
 
220
  $this->add_control('premium_maps_map_type',
221
  [
222
- 'label' => esc_html__( 'Map Type', 'premium-addons-for-elementor' ),
223
  'type' => Controls_Manager::SELECT,
224
  'options' => [
225
- 'roadmap' => esc_html__( 'Road Map', 'premium-addons-for-elementor' ),
226
- 'satellite' => esc_html__( 'Satellite', 'premium-addons-for-elementor' ),
227
- 'terrain' => esc_html__( 'Terrain', 'premium-addons-for-elementor' ),
228
- 'hybrid' => esc_html__( 'Hybrid', 'premium-addons-for-elementor' ),
229
  ],
230
  'default' => 'roadmap',
231
  ]
@@ -233,7 +233,7 @@ class Premium_Maps extends Widget_Base {
233
 
234
  $this->add_responsive_control('premium_maps_map_height',
235
  [
236
- 'label' => esc_html__( 'Height', 'premium-addons-for-elementor' ),
237
  'type' => Controls_Manager::SLIDER,
238
  'default' => [
239
  'size' => 500,
@@ -252,7 +252,7 @@ class Premium_Maps extends Widget_Base {
252
 
253
  $this->add_control('premium_maps_map_zoom',
254
  [
255
- 'label' => esc_html__( 'Zoom', 'premium-addons-for-elementor' ),
256
  'type' => Controls_Manager::SLIDER,
257
  'default' => [
258
  'size' => 12,
@@ -268,56 +268,56 @@ class Premium_Maps extends Widget_Base {
268
 
269
  $this->add_control('premium_maps_map_option_map_type_control',
270
  [
271
- 'label' => esc_html__( 'Map Type Controls', 'premium-addons-for-elementor' ),
272
  'type' => Controls_Manager::SWITCHER,
273
  ]
274
  );
275
 
276
  $this->add_control('premium_maps_map_option_zoom_controls',
277
  [
278
- 'label' => esc_html__( 'Zoom Controls', 'premium-addons-for-elementor' ),
279
  'type' => Controls_Manager::SWITCHER,
280
  ]
281
  );
282
 
283
  $this->add_control('premium_maps_map_option_streeview',
284
  [
285
- 'label' => esc_html__( 'Street View Control', 'premium-addons-for-elementor' ),
286
  'type' => Controls_Manager::SWITCHER,
287
  ]
288
  );
289
 
290
  $this->add_control('premium_maps_map_option_fullscreen_control',
291
  [
292
- 'label' => esc_html__( 'Fullscreen Control', 'premium-addons-for-elementor' ),
293
  'type' => Controls_Manager::SWITCHER,
294
  ]
295
  );
296
 
297
  $this->add_control('premium_maps_map_option_mapscroll',
298
  [
299
- 'label' => esc_html__( 'Scroll Wheel Zoom', 'premium-addons-for-elementor' ),
300
  'type' => Controls_Manager::SWITCHER,
301
  ]
302
  );
303
 
304
  $this->add_control('premium_maps_marker_open',
305
  [
306
- 'label' => esc_html__( 'Info Container Always Opened', 'premium-addons-for-elementor' ),
307
  'type' => Controls_Manager::SWITCHER,
308
  ]
309
  );
310
 
311
  $this->add_control('premium_maps_marker_hover_open',
312
  [
313
- 'label' => esc_html__( 'Info Container Opened when Hovered', 'premium-addons-for-elementor' ),
314
  'type' => Controls_Manager::SWITCHER,
315
  ]
316
  );
317
 
318
  $this->add_control('premium_maps_marker_mouse_out',
319
  [
320
- 'label' => esc_html__( 'Info Container Closed when Mouse Out', 'premium-addons-for-elementor' ),
321
  'type' => Controls_Manager::SWITCHER,
322
  'condition' => [
323
  'premium_maps_marker_hover_open' => 'yes'
@@ -327,7 +327,7 @@ class Premium_Maps extends Widget_Base {
327
 
328
  $this->add_control('premium_maps_map_option_cluster',
329
  [
330
- 'label' => esc_html__( 'Marker Clustering', 'premium-addons-for-elementor' ),
331
  'type' => Controls_Manager::SWITCHER,
332
  ]
333
  );
@@ -336,13 +336,13 @@ class Premium_Maps extends Widget_Base {
336
 
337
  $this->start_controls_section('premium_maps_custom_styling_section',
338
  [
339
- 'label' => esc_html__('Map Style', 'premium-addons-for-elementor'),
340
  ]
341
  );
342
 
343
  $this->add_control('premium_maps_custom_styling',
344
  [
345
- 'label' => esc_html__('JSON Code', 'premium-addons-for-elementor'),
346
  'type' => Controls_Manager::TEXTAREA,
347
  'description' => 'Get your custom styling from <a href="https://snazzymaps.com/" target="_blank">here</a>',
348
  'label_block' => true,
@@ -355,7 +355,7 @@ class Premium_Maps extends Widget_Base {
355
  /*Start Title Style Section*/
356
  $this->start_controls_section('premium_maps_pin_title_style',
357
  [
358
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
359
  'tab' => Controls_Manager::TAB_STYLE,
360
  ]
361
  );
@@ -363,7 +363,7 @@ class Premium_Maps extends Widget_Base {
363
  /*Pin Title Color*/
364
  $this->add_control('premium_maps_pin_title_color',
365
  [
366
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
367
  'type' => Controls_Manager::COLOR,
368
  'scheme' => [
369
  'type' => Scheme_Color::get_type(),
@@ -386,7 +386,7 @@ class Premium_Maps extends Widget_Base {
386
 
387
  $this->add_responsive_control('premium_maps_pin_title_margin',
388
  [
389
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
390
  'type' => Controls_Manager::DIMENSIONS,
391
  'size_units' => ['px', 'em', '%'],
392
  'selectors' => [
@@ -398,7 +398,7 @@ class Premium_Maps extends Widget_Base {
398
  /*Pin Title Padding*/
399
  $this->add_responsive_control('premium_maps_pin_title_padding',
400
  [
401
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::DIMENSIONS,
403
  'size_units' => ['px', 'em', '%'],
404
  'selectors' => [
@@ -410,19 +410,19 @@ class Premium_Maps extends Widget_Base {
410
  /*Pin Title ALign*/
411
  $this->add_responsive_control('premium_maps_pin_title_align',
412
  [
413
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
414
  'type' => Controls_Manager::CHOOSE,
415
  'options' => [
416
  'left' => [
417
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
418
  'icon' => 'fa fa-align-left',
419
  ],
420
  'center' => [
421
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
422
  'icon' => 'fa fa-align-center',
423
  ],
424
  'right' => [
425
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
426
  'icon' => 'fa fa-align-right',
427
  ],
428
  ],
@@ -439,14 +439,14 @@ class Premium_Maps extends Widget_Base {
439
  /*Start Pin Style Section*/
440
  $this->start_controls_section('premium_maps_pin_text_style',
441
  [
442
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
443
  'tab' => Controls_Manager::TAB_STYLE,
444
  ]
445
  );
446
 
447
  $this->add_control('premium_maps_pin_text_color',
448
  [
449
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
450
  'type' => Controls_Manager::COLOR,
451
  'scheme' => [
452
  'type' => Scheme_Color::get_type(),
@@ -469,7 +469,7 @@ class Premium_Maps extends Widget_Base {
469
 
470
  $this->add_responsive_control('premium_maps_pin_text_margin',
471
  [
472
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
473
  'type' => Controls_Manager::DIMENSIONS,
474
  'size_units' => ['px', 'em', '%'],
475
  'selectors' => [
@@ -480,7 +480,7 @@ class Premium_Maps extends Widget_Base {
480
 
481
  $this->add_responsive_control('premium_maps_pin_text_padding',
482
  [
483
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
484
  'type' => Controls_Manager::DIMENSIONS,
485
  'size_units' => ['px', 'em', '%'],
486
  'selectors' => [
@@ -492,19 +492,19 @@ class Premium_Maps extends Widget_Base {
492
  /*Pin Title ALign*/
493
  $this->add_responsive_control('premium_maps_pin_description_align',
494
  [
495
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
496
  'type' => Controls_Manager::CHOOSE,
497
  'options' => [
498
  'left' => [
499
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
500
  'icon' => 'fa fa-align-left',
501
  ],
502
  'center' => [
503
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
504
  'icon' => 'fa fa-align-center',
505
  ],
506
  'right' => [
507
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
508
  'icon' => 'fa fa-align-right',
509
  ],
510
  ],
@@ -521,7 +521,7 @@ class Premium_Maps extends Widget_Base {
521
  /*Start Map Style Section*/
522
  $this->start_controls_section('premium_maps_box_style',
523
  [
524
- 'label' => esc_html__('Map', 'premium-addons-for-elementor'),
525
  'tab' => Controls_Manager::TAB_STYLE,
526
  ]
527
  );
@@ -538,7 +538,7 @@ class Premium_Maps extends Widget_Base {
538
  /*First Border Radius*/
539
  $this->add_control('premium_maps_box_radius',
540
  [
541
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
542
  'type' => Controls_Manager::SLIDER,
543
  'size_units' => ['px', '%', 'em'],
544
  'selectors' => [
@@ -551,7 +551,7 @@ class Premium_Maps extends Widget_Base {
551
  $this->add_group_control(
552
  Group_Control_Box_Shadow::get_type(),
553
  [
554
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
555
  'name' => 'premium_maps_box_shadow',
556
  'selector' => '{{WRAPPER}} .premium-maps-container',
557
  ]
@@ -560,7 +560,7 @@ class Premium_Maps extends Widget_Base {
560
  /*First Margin*/
561
  $this->add_responsive_control('premium_maps_box_margin',
562
  [
563
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
564
  'type' => Controls_Manager::DIMENSIONS,
565
  'size_units' => [ 'px', 'em', '%' ],
566
  'selectors' => [
@@ -572,7 +572,7 @@ class Premium_Maps extends Widget_Base {
572
  /*First Padding*/
573
  $this->add_responsive_control('premium_maps_box_padding',
574
  [
575
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
576
  'type' => Controls_Manager::DIMENSIONS,
577
  'size_units' => [ 'px', 'em', '%' ],
578
  'selectors' => [
39
  /* Start Map Settings Section */
40
  $this->start_controls_section('premium_maps_map_settings',
41
  [
42
+ 'label' => __('Center Location', 'premium-addons-for-elementor'),
43
  ]
44
  );
45
 
56
 
57
  $this->add_control('premium_map_ip_location',
58
  [
59
+ 'label' => __( 'Get User Location', 'premium-addons-for-elementor' ),
60
+ 'description' => __('Get center location from visitor\'s location','premium-addons-for-elementor'),
61
  'type' => Controls_Manager::SWITCHER,
62
  'return_value' => 'true'
63
  ]
65
 
66
  $this->add_control('premium_map_location_finder',
67
  [
68
+ 'label' => __( 'Latitude & Longitude Finder', 'premium-addons-for-elementor' ),
69
  'type' => Controls_Manager::SWITCHER,
70
  'condition' => [
71
  'premium_map_ip_location!' => 'true'
89
 
90
  $this->add_control('premium_maps_center_lat',
91
  [
92
+ 'label' => __('Center Latitude', 'premium-addons-for-elementor'),
93
  'type' => Controls_Manager::TEXT,
94
+ 'description' => __('Center latitude and longitude are required to identify your location', 'premium-addons-for-elementor'),
95
  'default' => '18.591212',
96
  'label_block' => true,
97
  'condition' => [
102
 
103
  $this->add_control('premium_maps_center_long',
104
  [
105
+ 'label' => __('Center Longitude', 'premium-addons-for-elementor'),
106
  'type' => Controls_Manager::TEXT,
107
+ 'description' => __('Center latitude and longitude are required to identify your location', 'premium-addons-for-elementor'),
108
  'default' => '73.741261',
109
  'label_block' => true,
110
  'condition' => [
117
 
118
  $this->start_controls_section('premium_maps_map_pins_settings',
119
  [
120
+ 'label' => __('Markers', 'premium-addons-for-elementor'),
121
  ]
122
  );
123
 
124
  $this->add_control('premium_maps_markers_width',
125
  [
126
+ 'label' => __('Max Width', 'premium-addons-for-elementor'),
127
  'type' => Controls_Manager::NUMBER,
128
+ 'title' => __('Set the Maximum width for markers description box','premium-addons-for-elementor'),
129
  ]
130
  );
131
 
133
 
134
  $repeater->add_control('premium_map_pin_location_finder',
135
  [
136
+ 'label' => __( 'Latitude & Longitude Finder', 'premium-addons-for-elementor' ),
137
  'type' => Controls_Manager::SWITCHER,
138
  ]
139
  );
152
 
153
  $repeater->add_control('map_latitude',
154
  [
155
+ 'label' => __('Latitude', 'premium-addons-for-elementor'),
156
  'type' => Controls_Manager::TEXT,
157
  'description' => 'Click <a href="https://www.latlong.net/" target="_blank">here</a> to get your location coordinates',
158
  'label_block' => true,
162
  $repeater->add_control('map_longitude',
163
  [
164
  'name' => 'map_longitude',
165
+ 'label' => __('Longitude', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::TEXT,
167
  'description' => 'Click <a href="https://www.latlong.net/" target="_blank">here</a> to get your location coordinates',
168
  'label_block' => true,
171
 
172
  $repeater->add_control('pin_title',
173
  [
174
+ 'label' => __('Title', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::TEXT,
176
  'dynamic' => [ 'active' => true ],
177
  'label_block' => true,
180
 
181
  $repeater->add_control('pin_desc',
182
  [
183
+ 'label' => __('Description', 'premium-addons-for-elementor'),
184
  'type' => Controls_Manager::WYSIWYG,
185
  'dynamic' => [ 'active' => true ],
186
  'label_block' => true,
189
 
190
  $repeater->add_control('pin_icon',
191
  [
192
+ 'label' => __('Custom Icon', 'premium-addons-for-elementor'),
193
  'type' => Controls_Manager::MEDIA,
194
  'dynamic' => [ 'active' => true ],
195
  ]
197
 
198
  $this->add_control('premium_maps_map_pins',
199
  [
200
+ 'label' => __('Map Pins', 'premium-addons-for-elementor'),
201
  'type' => Controls_Manager::REPEATER,
202
  'default' => [
203
  'map_latitude' => '18.591212',
204
  'map_longitude' => '73.741261',
205
+ 'pin_title' => __('Premium Google Maps', 'premium-addons-for-elementor'),
206
+ 'pin_desc' => __('Add an optional description to your map pin', 'premium-addons-for-elementor'),
207
  ],
208
  'fields' => array_values( $repeater->get_controls() ),
209
  ]
213
 
214
  $this->start_controls_section('premium_maps_controls_section',
215
  [
216
+ 'label' => __('Controls', 'premium-addons-for-elementor'),
217
  ]
218
  );
219
 
220
  $this->add_control('premium_maps_map_type',
221
  [
222
+ 'label' => __( 'Map Type', 'premium-addons-for-elementor' ),
223
  'type' => Controls_Manager::SELECT,
224
  'options' => [
225
+ 'roadmap' => __( 'Road Map', 'premium-addons-for-elementor' ),
226
+ 'satellite' => __( 'Satellite', 'premium-addons-for-elementor' ),
227
+ 'terrain' => __( 'Terrain', 'premium-addons-for-elementor' ),
228
+ 'hybrid' => __( 'Hybrid', 'premium-addons-for-elementor' ),
229
  ],
230
  'default' => 'roadmap',
231
  ]
233
 
234
  $this->add_responsive_control('premium_maps_map_height',
235
  [
236
+ 'label' => __( 'Height', 'premium-addons-for-elementor' ),
237
  'type' => Controls_Manager::SLIDER,
238
  'default' => [
239
  'size' => 500,
252
 
253
  $this->add_control('premium_maps_map_zoom',
254
  [
255
+ 'label' => __( 'Zoom', 'premium-addons-for-elementor' ),
256
  'type' => Controls_Manager::SLIDER,
257
  'default' => [
258
  'size' => 12,
268
 
269
  $this->add_control('premium_maps_map_option_map_type_control',
270
  [
271
+ 'label' => __( 'Map Type Controls', 'premium-addons-for-elementor' ),
272
  'type' => Controls_Manager::SWITCHER,
273
  ]
274
  );
275
 
276
  $this->add_control('premium_maps_map_option_zoom_controls',
277
  [
278
+ 'label' => __( 'Zoom Controls', 'premium-addons-for-elementor' ),
279
  'type' => Controls_Manager::SWITCHER,
280
  ]
281
  );
282
 
283
  $this->add_control('premium_maps_map_option_streeview',
284
  [
285
+ 'label' => __( 'Street View Control', 'premium-addons-for-elementor' ),
286
  'type' => Controls_Manager::SWITCHER,
287
  ]
288
  );
289
 
290
  $this->add_control('premium_maps_map_option_fullscreen_control',
291
  [
292
+ 'label' => __( 'Fullscreen Control', 'premium-addons-for-elementor' ),
293
  'type' => Controls_Manager::SWITCHER,
294
  ]
295
  );
296
 
297
  $this->add_control('premium_maps_map_option_mapscroll',
298
  [
299
+ 'label' => __( 'Scroll Wheel Zoom', 'premium-addons-for-elementor' ),
300
  'type' => Controls_Manager::SWITCHER,
301
  ]
302
  );
303
 
304
  $this->add_control('premium_maps_marker_open',
305
  [
306
+ 'label' => __( 'Info Container Always Opened', 'premium-addons-for-elementor' ),
307
  'type' => Controls_Manager::SWITCHER,
308
  ]
309
  );
310
 
311
  $this->add_control('premium_maps_marker_hover_open',
312
  [
313
+ 'label' => __( 'Info Container Opened when Hovered', 'premium-addons-for-elementor' ),
314
  'type' => Controls_Manager::SWITCHER,
315
  ]
316
  );
317
 
318
  $this->add_control('premium_maps_marker_mouse_out',
319
  [
320
+ 'label' => __( 'Info Container Closed when Mouse Out', 'premium-addons-for-elementor' ),
321
  'type' => Controls_Manager::SWITCHER,
322
  'condition' => [
323
  'premium_maps_marker_hover_open' => 'yes'
327
 
328
  $this->add_control('premium_maps_map_option_cluster',
329
  [
330
+ 'label' => __( 'Marker Clustering', 'premium-addons-for-elementor' ),
331
  'type' => Controls_Manager::SWITCHER,
332
  ]
333
  );
336
 
337
  $this->start_controls_section('premium_maps_custom_styling_section',
338
  [
339
+ 'label' => __('Map Style', 'premium-addons-for-elementor'),
340
  ]
341
  );
342
 
343
  $this->add_control('premium_maps_custom_styling',
344
  [
345
+ 'label' => __('JSON Code', 'premium-addons-for-elementor'),
346
  'type' => Controls_Manager::TEXTAREA,
347
  'description' => 'Get your custom styling from <a href="https://snazzymaps.com/" target="_blank">here</a>',
348
  'label_block' => true,
355
  /*Start Title Style Section*/
356
  $this->start_controls_section('premium_maps_pin_title_style',
357
  [
358
+ 'label' => __('Title', 'premium-addons-for-elementor'),
359
  'tab' => Controls_Manager::TAB_STYLE,
360
  ]
361
  );
363
  /*Pin Title Color*/
364
  $this->add_control('premium_maps_pin_title_color',
365
  [
366
+ 'label' => __('Color', 'premium-addons-for-elementor'),
367
  'type' => Controls_Manager::COLOR,
368
  'scheme' => [
369
  'type' => Scheme_Color::get_type(),
386
 
387
  $this->add_responsive_control('premium_maps_pin_title_margin',
388
  [
389
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
390
  'type' => Controls_Manager::DIMENSIONS,
391
  'size_units' => ['px', 'em', '%'],
392
  'selectors' => [
398
  /*Pin Title Padding*/
399
  $this->add_responsive_control('premium_maps_pin_title_padding',
400
  [
401
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::DIMENSIONS,
403
  'size_units' => ['px', 'em', '%'],
404
  'selectors' => [
410
  /*Pin Title ALign*/
411
  $this->add_responsive_control('premium_maps_pin_title_align',
412
  [
413
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
414
  'type' => Controls_Manager::CHOOSE,
415
  'options' => [
416
  'left' => [
417
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
418
  'icon' => 'fa fa-align-left',
419
  ],
420
  'center' => [
421
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
422
  'icon' => 'fa fa-align-center',
423
  ],
424
  'right' => [
425
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
426
  'icon' => 'fa fa-align-right',
427
  ],
428
  ],
439
  /*Start Pin Style Section*/
440
  $this->start_controls_section('premium_maps_pin_text_style',
441
  [
442
+ 'label' => __('Description', 'premium-addons-for-elementor'),
443
  'tab' => Controls_Manager::TAB_STYLE,
444
  ]
445
  );
446
 
447
  $this->add_control('premium_maps_pin_text_color',
448
  [
449
+ 'label' => __('Color', 'premium-addons-for-elementor'),
450
  'type' => Controls_Manager::COLOR,
451
  'scheme' => [
452
  'type' => Scheme_Color::get_type(),
469
 
470
  $this->add_responsive_control('premium_maps_pin_text_margin',
471
  [
472
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
473
  'type' => Controls_Manager::DIMENSIONS,
474
  'size_units' => ['px', 'em', '%'],
475
  'selectors' => [
480
 
481
  $this->add_responsive_control('premium_maps_pin_text_padding',
482
  [
483
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
484
  'type' => Controls_Manager::DIMENSIONS,
485
  'size_units' => ['px', 'em', '%'],
486
  'selectors' => [
492
  /*Pin Title ALign*/
493
  $this->add_responsive_control('premium_maps_pin_description_align',
494
  [
495
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
496
  'type' => Controls_Manager::CHOOSE,
497
  'options' => [
498
  'left' => [
499
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
500
  'icon' => 'fa fa-align-left',
501
  ],
502
  'center' => [
503
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
504
  'icon' => 'fa fa-align-center',
505
  ],
506
  'right' => [
507
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
508
  'icon' => 'fa fa-align-right',
509
  ],
510
  ],
521
  /*Start Map Style Section*/
522
  $this->start_controls_section('premium_maps_box_style',
523
  [
524
+ 'label' => __('Map', 'premium-addons-for-elementor'),
525
  'tab' => Controls_Manager::TAB_STYLE,
526
  ]
527
  );
538
  /*First Border Radius*/
539
  $this->add_control('premium_maps_box_radius',
540
  [
541
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
542
  'type' => Controls_Manager::SLIDER,
543
  'size_units' => ['px', '%', 'em'],
544
  'selectors' => [
551
  $this->add_group_control(
552
  Group_Control_Box_Shadow::get_type(),
553
  [
554
+ 'label' => __('Shadow','premium-addons-for-elementor'),
555
  'name' => 'premium_maps_box_shadow',
556
  'selector' => '{{WRAPPER}} .premium-maps-container',
557
  ]
560
  /*First Margin*/
561
  $this->add_responsive_control('premium_maps_box_margin',
562
  [
563
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
564
  'type' => Controls_Manager::DIMENSIONS,
565
  'size_units' => [ 'px', 'em', '%' ],
566
  'selectors' => [
572
  /*First Padding*/
573
  $this->add_responsive_control('premium_maps_box_padding',
574
  [
575
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
576
  'type' => Controls_Manager::DIMENSIONS,
577
  'size_units' => [ 'px', 'em', '%' ],
578
  'selectors' => [
widgets/premium-modalbox.php CHANGED
@@ -41,31 +41,31 @@ class Premium_Modalbox extends Widget_Base {
41
 
42
  $this->start_controls_section('premium_modal_box_selector_content_section',
43
  [
44
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
45
  ]
46
  );
47
 
48
  $this->add_control('premium_modal_box_header_switcher',
49
  [
50
- 'label' => esc_html__('Header', 'premium-addons-for-elementor'),
51
  'type' => Controls_Manager::SWITCHER,
52
  'label_on' => 'show',
53
  'label_off' => 'hide',
54
  'default' => 'yes',
55
- 'description' => esc_html__('Enable or disable modal header','premium-addons-for-elementor'),
56
  ]
57
  );
58
 
59
  /*Icon To Display*/
60
  $this->add_control('premium_modal_box_icon_selection',
61
  [
62
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
63
  'type' => Controls_Manager::SELECT,
64
- 'description' => esc_html__('Use font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
65
  'options' => [
66
- 'noicon' => esc_html('None'),
67
- 'fonticon'=> esc_html('Font Awesome'),
68
- 'image' => esc_html('Custom Image'),
69
  ],
70
  'default' => 'noicon',
71
  'condition' => [
@@ -78,7 +78,7 @@ class Premium_Modalbox extends Widget_Base {
78
  /*Font Awesome Icon*/
79
  $this->add_control('premium_modal_box_font_icon',
80
  [
81
- 'label' => esc_html__('Font Awesome', 'premium-addons-for-elementor'),
82
  'type' => Controls_Manager::ICON,
83
  'condition' => [
84
  'premium_modal_box_icon_selection' => 'fonticon',
@@ -91,7 +91,7 @@ class Premium_Modalbox extends Widget_Base {
91
  /*Image Icon*/
92
  $this->add_control('premium_modal_box_image_icon',
93
  [
94
- 'label' => esc_html__('Custom Image', 'premium-addons-for-elementor'),
95
  'type' => Controls_Manager::MEDIA,
96
  'dynamic' => [ 'active' => true ],
97
  'default' => [
@@ -108,10 +108,10 @@ class Premium_Modalbox extends Widget_Base {
108
  /*Modal Box Title*/
109
  $this->add_control('premium_modal_box_title',
110
  [
111
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
112
  'type' => Controls_Manager::TEXT,
113
  'dynamic' => [ 'active' => true ],
114
- 'description' => esc_html__('Provide the modal box with a title', 'premium-addons-for-elementor'),
115
  'default' => 'Modal Box Title',
116
  'condition' => [
117
  'premium_modal_box_header_switcher' => 'yes'
@@ -123,7 +123,7 @@ class Premium_Modalbox extends Widget_Base {
123
  /*Modal Box Content Heading*/
124
  $this->add_control('premium_modal_box_content_heading',
125
  [
126
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
127
  'type' => Controls_Manager::HEADING,
128
  ]
129
  );
@@ -131,11 +131,11 @@ class Premium_Modalbox extends Widget_Base {
131
  /*Modal Box Content Type*/
132
  $this->add_control('premium_modal_box_content_type',
133
  [
134
- 'label' => esc_html__('Content to Show', 'premium-addons-for-elementor'),
135
  'type' => Controls_Manager::SELECT,
136
  'options' => [
137
- 'editor' => esc_html('Text Editor', 'premium-addons-for-elementor'),
138
- 'template' => esc_html('Elementor Template', 'premium-addons-for-elementor'),
139
  ],
140
  'default' => 'editor',
141
  'label_block' => true
@@ -145,8 +145,8 @@ class Premium_Modalbox extends Widget_Base {
145
  /*Modal Box Elementor Template*/
146
  $this->add_control('premium_modal_box_content_temp',
147
  [
148
- 'label' => esc_html__( 'Content', 'premium-addons-for-elementor' ),
149
- 'description' => esc_html__( 'Modal content is a template which you can choose from Elementor library', 'premium-addons-for-elementor' ),
150
  'type' => Controls_Manager::SELECT2,
151
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
152
  'condition' => [
@@ -172,7 +172,7 @@ class Premium_Modalbox extends Widget_Base {
172
  /*Upper Close Button*/
173
  $this->add_control('premium_modal_box_upper_close',
174
  [
175
- 'label' => esc_html__('Upper Close Button', 'premium-addons-for-elementor'),
176
  'type' => Controls_Manager::SWITCHER,
177
  'default' => 'yes',
178
  'condition' => [
@@ -184,7 +184,7 @@ class Premium_Modalbox extends Widget_Base {
184
  /*Lower Close Button*/
185
  $this->add_control('premium_modal_box_lower_close',
186
  [
187
- 'label' => esc_html__('Lower Close Button', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::SWITCHER,
189
  'default' => 'yes',
190
  ]
@@ -192,8 +192,8 @@ class Premium_Modalbox extends Widget_Base {
192
 
193
  $this->add_control('premium_modal_close_text',
194
  [
195
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
196
- 'default' => esc_html__('Close','premium-addons-for-elementor'),
197
  'type' => Controls_Manager::TEXT,
198
  'dynamic' => [ 'active' => true ],
199
  'label_block' => true,
@@ -207,21 +207,21 @@ class Premium_Modalbox extends Widget_Base {
207
 
208
  $this->start_controls_section('premium_modal_box_content_section',
209
  [
210
- 'label' => esc_html__('Display Options', 'premium-addons-for-elementor'),
211
  ]
212
  );
213
 
214
  /*Modal Box Display On*/
215
  $this->add_control('premium_modal_box_display_on',
216
  [
217
- 'label' => esc_html__('Display Style', 'premium-addons-for-elementor'),
218
  'type' => Controls_Manager::SELECT,
219
- 'description' => esc_html__('Choose where would you like the modal box appear on', 'premium-addons-for-elementor'),
220
  'options' => [
221
- 'button' => esc_html('Button','premium-elementor'),
222
- 'image' => esc_html('Image','premium-elementor'),
223
- 'text' => esc_html('Text','premium-elementor'),
224
- 'pageload'=> esc_html('Page Load','premium-elementor'),
225
  ],
226
  'label_block' => true,
227
  'default' => 'button',
@@ -231,8 +231,8 @@ class Premium_Modalbox extends Widget_Base {
231
  /*Button Text*/
232
  $this->add_control('premium_modal_box_button_text',
233
  [
234
- 'label' => esc_html__('Button Text', 'premium-addons-for-elementor'),
235
- 'default' => esc_html__('Premium Modal Box','premium-addons-for-elementor'),
236
  'type' => Controls_Manager::TEXT,
237
  'dynamic' => [ 'active' => true ],
238
  'label_block' => true,
@@ -244,18 +244,18 @@ class Premium_Modalbox extends Widget_Base {
244
 
245
  $this->add_control('premium_modal_box_icon_switcher',
246
  [
247
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
248
  'type' => Controls_Manager::SWITCHER,
249
  'condition' => [
250
  'premium_modal_box_display_on' => 'button'
251
  ],
252
- 'description' => esc_html__('Enable or disable button icon','premium-addons-for-elementor'),
253
  ]
254
  );
255
 
256
  $this->add_control('premium_modal_box_button_icon_selection',
257
  [
258
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
259
  'type' => Controls_Manager::ICON,
260
  'default' => 'fa fa-bars',
261
  'condition' => [
@@ -268,12 +268,12 @@ class Premium_Modalbox extends Widget_Base {
268
 
269
  $this->add_control('premium_modal_box_icon_position',
270
  [
271
- 'label' => esc_html__('Icon Position', 'premium-addons-for-elementor'),
272
  'type' => Controls_Manager::SELECT,
273
  'default' => 'before',
274
  'options' => [
275
- 'before' => esc_html__('Before'),
276
- 'after' => esc_html__('After'),
277
  ],
278
  'condition' => [
279
  'premium_modal_box_display_on' => 'button',
@@ -285,7 +285,7 @@ class Premium_Modalbox extends Widget_Base {
285
 
286
  $this->add_control('premium_modal_box_icon_before_size',
287
  [
288
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
289
  'type' => Controls_Manager::SLIDER,
290
  'condition' => [
291
  'premium_modal_box_display_on' => 'button',
@@ -297,10 +297,10 @@ class Premium_Modalbox extends Widget_Base {
297
  ]
298
  );
299
 
300
- if(!$this->check_rtl()){
301
  $this->add_control('premium_modal_box_icon_before_spacing',
302
  [
303
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
304
  'type' => Controls_Manager::SLIDER,
305
  'condition' => [
306
  'premium_modal_box_display_on' => 'button',
@@ -318,10 +318,10 @@ class Premium_Modalbox extends Widget_Base {
318
  );
319
  }
320
 
321
- if(!$this->check_rtl()){
322
  $this->add_control('premium_modal_box_icon_after_spacing',
323
  [
324
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
325
  'type' => Controls_Manager::SLIDER,
326
  'condition' => [
327
  'premium_modal_box_display_on' => 'button',
@@ -339,10 +339,10 @@ class Premium_Modalbox extends Widget_Base {
339
  );
340
  }
341
 
342
- if($this->check_rtl()){
343
  $this->add_control('premium_modal_box_icon_rtl_before_spacing',
344
  [
345
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
346
  'type' => Controls_Manager::SLIDER,
347
  'condition' => [
348
  'premium_modal_box_display_on' => 'button',
@@ -360,10 +360,10 @@ class Premium_Modalbox extends Widget_Base {
360
  );
361
  }
362
 
363
- if($this->check_rtl()){
364
  $this->add_control('premium_modal_box_icon_rtl_after_spacing',
365
  [
366
- 'label' => esc_html__('Icon Spacing', 'premium-addons-for-elementor'),
367
  'type' => Controls_Manager::SLIDER,
368
  'condition' => [
369
  'premium_modal_box_display_on' => 'button',
@@ -384,13 +384,13 @@ class Premium_Modalbox extends Widget_Base {
384
  /*Button Size*/
385
  $this->add_control('premium_modal_box_button_size',
386
  [
387
- 'label' => esc_html__('Button Size', 'premium-addons-for-elementor'),
388
  'type' => Controls_Manager::SELECT,
389
  'options' => [
390
- 'sm' => esc_html('Small','premium-elementor'),
391
- 'md' => esc_html('Medium','premium-elementor'),
392
- 'lg' => esc_html('Large','premium-elementor'),
393
- 'block' => esc_html('Block','premium-elementor'),
394
  ],
395
  'label_block' => true,
396
  'default' => 'lg',
@@ -403,7 +403,7 @@ class Premium_Modalbox extends Widget_Base {
403
  /*Image Source*/
404
  $this->add_control('premium_modal_box_image_src',
405
  [
406
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
407
  'type' => Controls_Manager::MEDIA,
408
  'dynamic' => [ 'active' => true ],
409
  'default' => [
@@ -419,11 +419,11 @@ class Premium_Modalbox extends Widget_Base {
419
  /*Text Selector*/
420
  $this->add_control('premium_modal_box_selector_text',
421
  [
422
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
423
  'type' => Controls_Manager::TEXT,
424
  'dynamic' => [ 'active' => true ],
425
  'label_block' => true,
426
- 'default' => esc_html__('Premium Modal Box', 'premium-addons-for-elementor'),
427
  'condition' => [
428
  'premium_modal_box_display_on' => 'text',
429
  ]
@@ -433,9 +433,9 @@ class Premium_Modalbox extends Widget_Base {
433
  /*On Load Trigger Delay*/
434
  $this->add_control('premium_modal_box_popup_delay',
435
  [
436
- 'label' => esc_html__('Delay in Popup Display (Sec)','premium-addons-for-elementor'),
437
  'type' => Controls_Manager::NUMBER,
438
- 'description' => esc_html__('When should the popup appear during page load? The value are counted in seconds', 'premium-addons-for-elementor'),
439
  'default' => 1,
440
  'label_block' => true,
441
  'condition' => [
@@ -480,7 +480,7 @@ class Premium_Modalbox extends Widget_Base {
480
  /*Selector Style*/
481
  $this->start_controls_section('premium_modal_box_selector_style_section',
482
  [
483
- 'label' => esc_html__('Trigger', 'premium-addons-for-elementor'),
484
  'tab' => Controls_Manager::TAB_STYLE,
485
  'condition' => [
486
  'premium_modal_box_display_on!' => 'pageload',
@@ -491,7 +491,7 @@ class Premium_Modalbox extends Widget_Base {
491
  /*Button Text Color*/
492
  $this->add_control('premium_modal_box_button_text_color',
493
  [
494
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
495
  'type' => Controls_Manager::COLOR,
496
  'scheme' => [
497
  'type' => Scheme_Color::get_type(),
@@ -508,7 +508,7 @@ class Premium_Modalbox extends Widget_Base {
508
 
509
  $this->add_control('premium_modal_box_button_text_color_hover',
510
  [
511
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
512
  'type' => Controls_Manager::COLOR,
513
  'scheme' => [
514
  'type' => Scheme_Color::get_type(),
@@ -525,7 +525,7 @@ class Premium_Modalbox extends Widget_Base {
525
 
526
  $this->add_control('premium_modal_box_button_icon_color',
527
  [
528
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
529
  'type' => Controls_Manager::COLOR,
530
  'scheme' => [
531
  'type' => Scheme_Color::get_type(),
@@ -542,7 +542,7 @@ class Premium_Modalbox extends Widget_Base {
542
 
543
  $this->add_control('premium_modal_box_button_icon_hover_color',
544
  [
545
- 'label' => esc_html__('Icon Hover Color', 'premium-addons-for-elementor'),
546
  'type' => Controls_Manager::COLOR,
547
  'scheme' => [
548
  'type' => Scheme_Color::get_type(),
@@ -562,7 +562,7 @@ class Premium_Modalbox extends Widget_Base {
562
  Group_Control_Typography::get_type(),
563
  [
564
  'name' => 'selectortext',
565
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
566
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
567
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector',
568
  'condition' => [
@@ -576,7 +576,7 @@ class Premium_Modalbox extends Widget_Base {
576
  /*Button Color*/
577
  $this->start_controls_tab('premium_modal_box_tab_selector_normal',
578
  [
579
- 'label' => esc_html__( 'Normal', 'premium-addons-for-elementor' ),
580
  'condition' => [
581
  'premium_modal_box_display_on' => ['button', 'text','image'],
582
  ]
@@ -586,7 +586,7 @@ class Premium_Modalbox extends Widget_Base {
586
  /*Button Background Color*/
587
  $this->add_control('premium_modal_box_selector_background',
588
  [
589
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
590
  'type' => Controls_Manager::COLOR,
591
  'scheme' => [
592
  'type' => Scheme_Color::get_type(),
@@ -616,7 +616,7 @@ class Premium_Modalbox extends Widget_Base {
616
  /*Button Border Radius*/
617
  $this->add_control('premium_modal_box_selector_border_radius',
618
  [
619
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
620
  'type' => Controls_Manager::SLIDER,
621
  'size_units' => ['px', '%', 'em'],
622
  'default' => [
@@ -635,7 +635,7 @@ class Premium_Modalbox extends Widget_Base {
635
  /*Selector Padding*/
636
  $this->add_responsive_control('premium_modal_box_selector_padding',
637
  [
638
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
639
  'type' => Controls_Manager::DIMENSIONS,
640
  'size_units' => [ 'px', 'em', '%' ],
641
  'default' => [
@@ -658,7 +658,7 @@ class Premium_Modalbox extends Widget_Base {
658
  $this->add_group_control(
659
  Group_Control_Box_Shadow::get_type(),
660
  [
661
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
662
  'name' => 'premium_modal_box_selector_box_shadow',
663
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-img-selector',
664
  'condition' => [
@@ -683,7 +683,7 @@ class Premium_Modalbox extends Widget_Base {
683
 
684
  $this->start_controls_tab('premium_modal_box_tab_selector_hover',
685
  [
686
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
687
  'condition' => [
688
  'premium_modal_box_display_on' => ['button','text','image'],
689
  ]
@@ -693,7 +693,7 @@ class Premium_Modalbox extends Widget_Base {
693
  /*Button Hover Background Color*/
694
  $this->add_control('premium_modal_box_selector_hover_background',
695
  [
696
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
697
  'type' => Controls_Manager::COLOR,
698
  'selectors' => [
699
  '{{WRAPPER}} .premium-modal-box-button-selector:hover' => 'background: {{VALUE}};',
@@ -720,7 +720,7 @@ class Premium_Modalbox extends Widget_Base {
720
  /*Button Border Radius*/
721
  $this->add_control('premium_modal_box_selector_border_radius_hover',
722
  [
723
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
724
  'type' => Controls_Manager::SLIDER,
725
  'size_units' => ['px', '%', 'em'],
726
  'selectors' => [
@@ -736,7 +736,7 @@ class Premium_Modalbox extends Widget_Base {
736
  $this->add_group_control(
737
  Group_Control_Box_Shadow::get_type(),
738
  [
739
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
740
  'name' => 'premium_modal_box_selector_box_shadow_hover',
741
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector:hover, {{WRAPPER}} .premium-modal-box-text-selector:hover, {{WRAPPER}} .premium-modal-box-img-selector:hover',
742
  'condition' => [
@@ -754,7 +754,7 @@ class Premium_Modalbox extends Widget_Base {
754
  /*Start Header Seettings Section*/
755
  $this->start_controls_section('premium_modal_box_header_settings',
756
  [
757
- 'label' => esc_html__('Heading', 'premium-addons-for-elementor'),
758
  'tab' => Controls_Manager::TAB_STYLE,
759
  'condition' => [
760
  'premium_modal_box_header_switcher' => 'yes'
@@ -765,7 +765,7 @@ class Premium_Modalbox extends Widget_Base {
765
  /*Header Text Color*/
766
  $this->add_control('premium_modal_box_header_text_color',
767
  [
768
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
769
  'type' => Controls_Manager::COLOR,
770
  'selectors' => [
771
  '{{WRAPPER}} .premium-modal-box-modal-title' => 'color: {{VALUE}};',
@@ -778,7 +778,7 @@ class Premium_Modalbox extends Widget_Base {
778
  Group_Control_Typography::get_type(),
779
  [
780
  'name' => 'headertext',
781
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
782
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
783
  'selector' => '{{WRAPPER}} .premium-modal-box-modal-title',
784
  ]
@@ -787,7 +787,7 @@ class Premium_Modalbox extends Widget_Base {
787
  /*Header Background Color*/
788
  $this->add_control('premium_modal_box_header_background',
789
  [
790
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
791
  'type' => Controls_Manager::COLOR,
792
  'selectors' => [
793
  '{{WRAPPER}} .premium-modal-box-modal-header' => 'background: {{VALUE}};',
@@ -802,7 +802,7 @@ class Premium_Modalbox extends Widget_Base {
802
  /*Start Close Button Section*/
803
  $this->start_controls_section('premium_modal_box_upper_close_button_section',
804
  [
805
- 'label' => esc_html__('Upper Close Button', 'premium-addons-for-elementor'),
806
  'tab' => Controls_Manager::TAB_STYLE,
807
  'condition' => [
808
  'premium_modal_box_upper_close' => 'yes',
@@ -814,7 +814,7 @@ class Premium_Modalbox extends Widget_Base {
814
  /*Close Button Size*/
815
  $this->add_responsive_control('premium_modal_box_upper_close_button_size',
816
  [
817
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
818
  'type' => Controls_Manager::SLIDER,
819
  'size_units' => ['px', '%' ,'em'],
820
  'selectors' => [
@@ -830,14 +830,14 @@ class Premium_Modalbox extends Widget_Base {
830
  /*Button Color*/
831
  $this->start_controls_tab('premium_modal_box_upper_close_button_normal',
832
  [
833
- 'label' => esc_html__( 'Normal', 'premium-addons-for-elementor' ),
834
  ]
835
  );
836
 
837
  /*Close Button Color*/
838
  $this->add_control('premium_modal_box_upper_close_button_normal_color',
839
  [
840
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
841
  'type' => Controls_Manager::COLOR,
842
  'selectors' => [
843
  '{{WRAPPER}} .premium-modal-box-modal-close' => 'color: {{VALUE}};',
@@ -848,7 +848,7 @@ class Premium_Modalbox extends Widget_Base {
848
  /*Close Button Background Color*/
849
  $this->add_control('premium_modal_box_upper_close_button_background_color',
850
  [
851
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
852
  'type' => Controls_Manager::COLOR,
853
  'selectors' => [
854
  '{{WRAPPER}} .premium-modal-box-modal-close' => 'background:{{VALUE}};',
@@ -868,7 +868,7 @@ class Premium_Modalbox extends Widget_Base {
868
  /*Button Border Radius*/
869
  $this->add_control('premium_modal_upper_border_radius',
870
  [
871
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
872
  'type' => Controls_Manager::SLIDER,
873
  'size_units' => ['px', '%', 'em'],
874
  'selectors' => [
@@ -882,14 +882,14 @@ class Premium_Modalbox extends Widget_Base {
882
 
883
  $this->start_controls_tab('premium_modal_box_upper_close_button_hover',
884
  [
885
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
886
  ]
887
  );
888
 
889
  /*Close Button Color*/
890
  $this->add_control('premium_modal_box_upper_close_button_hover_color',
891
  [
892
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
893
  'type' => Controls_Manager::COLOR,
894
  'selectors' => [
895
  '{{WRAPPER}} .premium-modal-box-modal-close:hover' => 'color: {{VALUE}};',
@@ -900,7 +900,7 @@ class Premium_Modalbox extends Widget_Base {
900
  /*Close Button Background Color*/
901
  $this->add_control('premium_modal_box_upper_close_button_background_color_hover',
902
  [
903
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
904
  'type' => Controls_Manager::COLOR,
905
  'selectors' => [
906
  '{{WRAPPER}} .premium-modal-box-modal-close:hover' => 'background:{{VALUE}};',
@@ -920,7 +920,7 @@ class Premium_Modalbox extends Widget_Base {
920
  /*Button Border Radius*/
921
  $this->add_control('premium_modal_upper_border_radius_hover',
922
  [
923
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
924
  'type' => Controls_Manager::SLIDER,
925
  'size_units' => ['px', '%', 'em'],
926
  'selectors' => [
@@ -937,7 +937,7 @@ class Premium_Modalbox extends Widget_Base {
937
  /*Upper Close Padding*/
938
  $this->add_responsive_control('premium_modal_box_upper_close_button_padding',
939
  [
940
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
941
  'type' => Controls_Manager::DIMENSIONS,
942
  'size_units' => [ 'px', 'em', '%' ],
943
  'selectors' => [
@@ -952,7 +952,7 @@ class Premium_Modalbox extends Widget_Base {
952
  /*Start Close Button Section*/
953
  $this->start_controls_section('premium_modal_box_lower_close_button_section',
954
  [
955
- 'label' => esc_html__('Lower Close Button', 'premium-addons-for-elementor'),
956
  'tab' => Controls_Manager::TAB_STYLE,
957
  'condition' => [
958
  'premium_modal_box_lower_close' => 'yes',
@@ -964,7 +964,7 @@ class Premium_Modalbox extends Widget_Base {
964
  $this->add_group_control(
965
  Group_Control_Typography::get_type(),
966
  [
967
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
968
  'name' => 'lowerclose',
969
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
970
  'selector' => '{{WRAPPER}} .premium-modal-box-modal-lower-close',
@@ -974,7 +974,7 @@ class Premium_Modalbox extends Widget_Base {
974
  /*Close Button Size*/
975
  $this->add_responsive_control('premium_modal_box_lower_close_button_width',
976
  [
977
- 'label' => esc_html__('Width', 'premium-addons-for-elementor'),
978
  'type' => Controls_Manager::SLIDER,
979
  'size_units' => ['px', '%', 'em'],
980
  'range' => [
@@ -999,14 +999,14 @@ class Premium_Modalbox extends Widget_Base {
999
  /*Button Color*/
1000
  $this->start_controls_tab('premium_modal_box_lower_close_button_normal',
1001
  [
1002
- 'label' => esc_html__( 'Normal', 'premium-addons-for-elementor' ),
1003
  ]
1004
  );
1005
 
1006
  /*Close Button Background Color*/
1007
  $this->add_control('premium_modal_box_lower_close_button_normal_color',
1008
  [
1009
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1010
  'type' => Controls_Manager::COLOR,
1011
  'scheme' => [
1012
  'type' => Scheme_Color::get_type(),
@@ -1021,7 +1021,7 @@ class Premium_Modalbox extends Widget_Base {
1021
  /*Close Button Background Color*/
1022
  $this->add_control('premium_modal_box_lower_close_button_background_normal_color',
1023
  [
1024
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
1025
  'type' => Controls_Manager::COLOR,
1026
  'scheme' => [
1027
  'type' => Scheme_Color::get_type(),
@@ -1045,7 +1045,7 @@ class Premium_Modalbox extends Widget_Base {
1045
  /*Lower Close Radius*/
1046
  $this->add_control('premium_modal_box_lower_close_border_radius',
1047
  [
1048
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1049
  'type' => Controls_Manager::SLIDER,
1050
  'size_units' => ['px', '%', 'em'],
1051
  'selectors' => [
@@ -1059,14 +1059,14 @@ class Premium_Modalbox extends Widget_Base {
1059
 
1060
  $this->start_controls_tab('premium_modal_box_lower_close_button_hover',
1061
  [
1062
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
1063
  ]
1064
  );
1065
 
1066
  /*Close Button Background Color*/
1067
  $this->add_control('premium_modal_box_lower_close_button_hover_color',
1068
  [
1069
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1070
  'type' => Controls_Manager::COLOR,
1071
  'scheme' => [
1072
  'type' => Scheme_Color::get_type(),
@@ -1081,7 +1081,7 @@ class Premium_Modalbox extends Widget_Base {
1081
  /*Close Button Background Color*/
1082
  $this->add_control('premium_modal_box_lower_close_button_background_hover_color',
1083
  [
1084
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
1085
  'type' => Controls_Manager::COLOR,
1086
  'scheme' => [
1087
  'type' => Scheme_Color::get_type(),
@@ -1105,7 +1105,7 @@ class Premium_Modalbox extends Widget_Base {
1105
  /*Lower Close Hover Border Radius*/
1106
  $this->add_control('premium_modal_box_lower_close_border_radius_hover',
1107
  [
1108
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1109
  'type' => Controls_Manager::SLIDER,
1110
  'size_units' => ['px', '%', 'em'],
1111
  'selectors' => [
@@ -1122,7 +1122,7 @@ class Premium_Modalbox extends Widget_Base {
1122
  /*Upper Close Padding*/
1123
  $this->add_responsive_control('premium_modal_box_lower_close_button_padding',
1124
  [
1125
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1126
  'type' => Controls_Manager::DIMENSIONS,
1127
  'size_units' => [ 'px', 'em', '%' ],
1128
  'selectors' => [
@@ -1136,7 +1136,7 @@ class Premium_Modalbox extends Widget_Base {
1136
 
1137
  $this->start_controls_section('premium_modal_box_style',
1138
  [
1139
- 'label' => esc_html__('Modal Box', 'premium-addons-for-elementor'),
1140
  'tab' => Controls_Manager::TAB_STYLE,
1141
  ]
1142
  );
@@ -1144,7 +1144,7 @@ class Premium_Modalbox extends Widget_Base {
1144
  /*Modal Size*/
1145
  $this->add_control('premium_modal_box_modal_size',
1146
  [
1147
- 'label' => esc_html__('Width', 'premium-addons-for-elementor'),
1148
  'type' => Controls_Manager::SLIDER,
1149
  'size_units' => ['px', '%', 'em'],
1150
  'range' => [
@@ -1159,7 +1159,7 @@ class Premium_Modalbox extends Widget_Base {
1159
 
1160
  $this->add_responsive_control('premium_modal_box_modal_max_height',
1161
  [
1162
- 'label' => esc_html__('Max Height', 'premium-addons-for-elementor'),
1163
  'type' => Controls_Manager::SLIDER,
1164
  'size_units' => ['px', 'em'],
1165
  'range' => [
@@ -1178,7 +1178,7 @@ class Premium_Modalbox extends Widget_Base {
1178
  /*Modal Background Color*/
1179
  $this->add_control('premium_modal_box_modal_background',
1180
  [
1181
- 'label' => esc_html__('Overlay Color', 'premium-addons-for-elementor'),
1182
  'type' => Controls_Manager::COLOR,
1183
  'selectors' => [
1184
  '{{WRAPPER}} .premium-modal-box-modal' => 'background:{{VALUE}};',
@@ -1189,7 +1189,7 @@ class Premium_Modalbox extends Widget_Base {
1189
  /*Content Background Color*/
1190
  $this->add_control('premium_modal_box_content_background',
1191
  [
1192
- 'label' => esc_html__('Content Background Color', 'premium-addons-for-elementor'),
1193
  'type' => Controls_Manager::COLOR,
1194
  'selectors' => [
1195
  '{{WRAPPER}} .premium-modal-box-modal-body' => 'background: {{VALUE}};',
@@ -1200,7 +1200,7 @@ class Premium_Modalbox extends Widget_Base {
1200
  /*Footer Background Color*/
1201
  $this->add_control('premium_modal_box_footer_background',
1202
  [
1203
- 'label' => esc_html__('Footer Background Color', 'premium-addons-for-elementor'),
1204
  'type' => Controls_Manager::COLOR,
1205
  'selectors' => [
1206
  '{{WRAPPER}} .premium-modal-box-modal-footer' => 'background: {{VALUE}};',
@@ -1220,7 +1220,7 @@ class Premium_Modalbox extends Widget_Base {
1220
  /*Border Radius*/
1221
  $this->add_control('premium_modal_box_border_radius',
1222
  [
1223
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1224
  'type' => Controls_Manager::SLIDER,
1225
  'size_units' => ['px', '%', 'em'],
1226
  'selectors' => [
@@ -1232,7 +1232,7 @@ class Premium_Modalbox extends Widget_Base {
1232
  /*Modal Box Margin*/
1233
  $this->add_responsive_control('premium_modal_box_margin',
1234
  [
1235
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1236
  'type' => Controls_Manager::DIMENSIONS,
1237
  'size_units' => [ 'px', 'em', '%' ],
1238
  'selectors' => [
@@ -1243,7 +1243,7 @@ class Premium_Modalbox extends Widget_Base {
1243
 
1244
  $this->add_responsive_control('premium_modal_box_padding',
1245
  [
1246
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1247
  'type' => Controls_Manager::DIMENSIONS,
1248
  'size_units' => [ 'px', 'em', '%' ],
1249
  'selectors' => [
41
 
42
  $this->start_controls_section('premium_modal_box_selector_content_section',
43
  [
44
+ 'label' => __('Content', 'premium-addons-for-elementor'),
45
  ]
46
  );
47
 
48
  $this->add_control('premium_modal_box_header_switcher',
49
  [
50
+ 'label' => __('Header', 'premium-addons-for-elementor'),
51
  'type' => Controls_Manager::SWITCHER,
52
  'label_on' => 'show',
53
  'label_off' => 'hide',
54
  'default' => 'yes',
55
+ 'description' => __('Enable or disable modal header','premium-addons-for-elementor'),
56
  ]
57
  );
58
 
59
  /*Icon To Display*/
60
  $this->add_control('premium_modal_box_icon_selection',
61
  [
62
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
63
  'type' => Controls_Manager::SELECT,
64
+ 'description' => __('Use font awesome icon or upload a custom image', 'premium-addons-for-elementor'),
65
  'options' => [
66
+ 'noicon' => __('None','premium-addons-for-elementor'),
67
+ 'fonticon'=> __('Font Awesome','premium-addons-for-elementor'),
68
+ 'image' => __('Custom Image','premium-addons-for-elementor'),
69
  ],
70
  'default' => 'noicon',
71
  'condition' => [
78
  /*Font Awesome Icon*/
79
  $this->add_control('premium_modal_box_font_icon',
80
  [
81
+ 'label' => __('Font Awesome', 'premium-addons-for-elementor'),
82
  'type' => Controls_Manager::ICON,
83
  'condition' => [
84
  'premium_modal_box_icon_selection' => 'fonticon',
91
  /*Image Icon*/
92
  $this->add_control('premium_modal_box_image_icon',
93
  [
94
+ 'label' => __('Custom Image', 'premium-addons-for-elementor'),
95
  'type' => Controls_Manager::MEDIA,
96
  'dynamic' => [ 'active' => true ],
97
  'default' => [
108
  /*Modal Box Title*/
109
  $this->add_control('premium_modal_box_title',
110
  [
111
+ 'label' => __('Title', 'premium-addons-for-elementor'),
112
  'type' => Controls_Manager::TEXT,
113
  'dynamic' => [ 'active' => true ],
114
+ 'description' => __('Provide the modal box with a title', 'premium-addons-for-elementor'),
115
  'default' => 'Modal Box Title',
116
  'condition' => [
117
  'premium_modal_box_header_switcher' => 'yes'
123
  /*Modal Box Content Heading*/
124
  $this->add_control('premium_modal_box_content_heading',
125
  [
126
+ 'label' => __('Content', 'premium-addons-for-elementor'),
127
  'type' => Controls_Manager::HEADING,
128
  ]
129
  );
131
  /*Modal Box Content Type*/
132
  $this->add_control('premium_modal_box_content_type',
133
  [
134
+ 'label' => __('Content to Show', 'premium-addons-for-elementor'),
135
  'type' => Controls_Manager::SELECT,
136
  'options' => [
137
+ 'editor' => __('Text Editor', 'premium-addons-for-elementor'),
138
+ 'template' => __('Elementor Template', 'premium-addons-for-elementor'),
139
  ],
140
  'default' => 'editor',
141
  'label_block' => true
145
  /*Modal Box Elementor Template*/
146
  $this->add_control('premium_modal_box_content_temp',
147
  [
148
+ 'label' => __( 'Content', 'premium-addons-for-elementor' ),
149
+ 'description' => __( 'Modal content is a template which you can choose from Elementor library', 'premium-addons-for-elementor' ),
150
  'type' => Controls_Manager::SELECT2,
151
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
152
  'condition' => [
172
  /*Upper Close Button*/
173
  $this->add_control('premium_modal_box_upper_close',
174
  [
175
+ 'label' => __('Upper Close Button', 'premium-addons-for-elementor'),
176
  'type' => Controls_Manager::SWITCHER,
177
  'default' => 'yes',
178
  'condition' => [
184
  /*Lower Close Button*/
185
  $this->add_control('premium_modal_box_lower_close',
186
  [
187
+ 'label' => __('Lower Close Button', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::SWITCHER,
189
  'default' => 'yes',
190
  ]
192
 
193
  $this->add_control('premium_modal_close_text',
194
  [
195
+ 'label' => __('Text', 'premium-addons-for-elementor'),
196
+ 'default' => __('Close','premium-addons-for-elementor'),
197
  'type' => Controls_Manager::TEXT,
198
  'dynamic' => [ 'active' => true ],
199
  'label_block' => true,
207
 
208
  $this->start_controls_section('premium_modal_box_content_section',
209
  [
210
+ 'label' => __('Display Options', 'premium-addons-for-elementor'),
211
  ]
212
  );
213
 
214
  /*Modal Box Display On*/
215
  $this->add_control('premium_modal_box_display_on',
216
  [
217
+ 'label' => __('Display Style', 'premium-addons-for-elementor'),
218
  'type' => Controls_Manager::SELECT,
219
+ 'description' => __('Choose where would you like the modal box appear on', 'premium-addons-for-elementor'),
220
  'options' => [
221
+ 'button' => __('Button','premium-addons-for-elementor'),
222
+ 'image' => __('Image','premium-addons-for-elementor'),
223
+ 'text' => __('Text','premium-addons-for-elementor'),
224
+ 'pageload'=> __('Page Load','premium-addons-for-elementor'),
225
  ],
226
  'label_block' => true,
227
  'default' => 'button',
231
  /*Button Text*/
232
  $this->add_control('premium_modal_box_button_text',
233
  [
234
+ 'label' => __('Button Text', 'premium-addons-for-elementor'),
235
+ 'default' => __('Premium Modal Box','premium-addons-for-elementor'),
236
  'type' => Controls_Manager::TEXT,
237
  'dynamic' => [ 'active' => true ],
238
  'label_block' => true,
244
 
245
  $this->add_control('premium_modal_box_icon_switcher',
246
  [
247
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
248
  'type' => Controls_Manager::SWITCHER,
249
  'condition' => [
250
  'premium_modal_box_display_on' => 'button'
251
  ],
252
+ 'description' => __('Enable or disable button icon','premium-addons-for-elementor'),
253
  ]
254
  );
255
 
256
  $this->add_control('premium_modal_box_button_icon_selection',
257
  [
258
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
259
  'type' => Controls_Manager::ICON,
260
  'default' => 'fa fa-bars',
261
  'condition' => [
268
 
269
  $this->add_control('premium_modal_box_icon_position',
270
  [
271
+ 'label' => __('Icon Position', 'premium-addons-for-elementor'),
272
  'type' => Controls_Manager::SELECT,
273
  'default' => 'before',
274
  'options' => [
275
+ 'before' => __('Before','premium-addons-for-elementor'),
276
+ 'after' => __('After','premium-addons-for-elementor'),
277
  ],
278
  'condition' => [
279
  'premium_modal_box_display_on' => 'button',
285
 
286
  $this->add_control('premium_modal_box_icon_before_size',
287
  [
288
+ 'label' => __('Icon Size', 'premium-addons-for-elementor'),
289
  'type' => Controls_Manager::SLIDER,
290
  'condition' => [
291
  'premium_modal_box_display_on' => 'button',
297
  ]
298
  );
299
 
300
+ if( ! $this->check_rtl() ){
301
  $this->add_control('premium_modal_box_icon_before_spacing',
302
  [
303
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
304
  'type' => Controls_Manager::SLIDER,
305
  'condition' => [
306
  'premium_modal_box_display_on' => 'button',
318
  );
319
  }
320
 
321
+ if( ! $this->check_rtl() ){
322
  $this->add_control('premium_modal_box_icon_after_spacing',
323
  [
324
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
325
  'type' => Controls_Manager::SLIDER,
326
  'condition' => [
327
  'premium_modal_box_display_on' => 'button',
339
  );
340
  }
341
 
342
+ if( $this->check_rtl() ){
343
  $this->add_control('premium_modal_box_icon_rtl_before_spacing',
344
  [
345
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
346
  'type' => Controls_Manager::SLIDER,
347
  'condition' => [
348
  'premium_modal_box_display_on' => 'button',
360
  );
361
  }
362
 
363
+ if( $this->check_rtl() ){
364
  $this->add_control('premium_modal_box_icon_rtl_after_spacing',
365
  [
366
+ 'label' => __('Icon Spacing', 'premium-addons-for-elementor'),
367
  'type' => Controls_Manager::SLIDER,
368
  'condition' => [
369
  'premium_modal_box_display_on' => 'button',
384
  /*Button Size*/
385
  $this->add_control('premium_modal_box_button_size',
386
  [
387
+ 'label' => __('Button Size', 'premium-addons-for-elementor'),
388
  'type' => Controls_Manager::SELECT,
389
  'options' => [
390
+ 'sm' => __('Small','premium-addons-for-elementor'),
391
+ 'md' => __('Medium','premium-addons-for-elementor'),
392
+ 'lg' => __('Large','premium-addons-for-elementor'),
393
+ 'block' => __('Block','premium-addons-for-elementor'),
394
  ],
395
  'label_block' => true,
396
  'default' => 'lg',
403
  /*Image Source*/
404
  $this->add_control('premium_modal_box_image_src',
405
  [
406
+ 'label' => __('Image', 'premium-addons-for-elementor'),
407
  'type' => Controls_Manager::MEDIA,
408
  'dynamic' => [ 'active' => true ],
409
  'default' => [
419
  /*Text Selector*/
420
  $this->add_control('premium_modal_box_selector_text',
421
  [
422
+ 'label' => __('Text', 'premium-addons-for-elementor'),
423
  'type' => Controls_Manager::TEXT,
424
  'dynamic' => [ 'active' => true ],
425
  'label_block' => true,
426
+ 'default' => __('Premium Modal Box', 'premium-addons-for-elementor'),
427
  'condition' => [
428
  'premium_modal_box_display_on' => 'text',
429
  ]
433
  /*On Load Trigger Delay*/
434
  $this->add_control('premium_modal_box_popup_delay',
435
  [
436
+ 'label' => __('Delay in Popup Display (Sec)','premium-addons-for-elementor'),
437
  'type' => Controls_Manager::NUMBER,
438
+ 'description' => __('When should the popup appear during page load? The value are counted in seconds', 'premium-addons-for-elementor'),
439
  'default' => 1,
440
  'label_block' => true,
441
  'condition' => [
480
  /*Selector Style*/
481
  $this->start_controls_section('premium_modal_box_selector_style_section',
482
  [
483
+ 'label' => __('Trigger', 'premium-addons-for-elementor'),
484
  'tab' => Controls_Manager::TAB_STYLE,
485
  'condition' => [
486
  'premium_modal_box_display_on!' => 'pageload',
491
  /*Button Text Color*/
492
  $this->add_control('premium_modal_box_button_text_color',
493
  [
494
+ 'label' => __('Color', 'premium-addons-for-elementor'),
495
  'type' => Controls_Manager::COLOR,
496
  'scheme' => [
497
  'type' => Scheme_Color::get_type(),
508
 
509
  $this->add_control('premium_modal_box_button_text_color_hover',
510
  [
511
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
512
  'type' => Controls_Manager::COLOR,
513
  'scheme' => [
514
  'type' => Scheme_Color::get_type(),
525
 
526
  $this->add_control('premium_modal_box_button_icon_color',
527
  [
528
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
529
  'type' => Controls_Manager::COLOR,
530
  'scheme' => [
531
  'type' => Scheme_Color::get_type(),
542
 
543
  $this->add_control('premium_modal_box_button_icon_hover_color',
544
  [
545
+ 'label' => __('Icon Hover Color', 'premium-addons-for-elementor'),
546
  'type' => Controls_Manager::COLOR,
547
  'scheme' => [
548
  'type' => Scheme_Color::get_type(),
562
  Group_Control_Typography::get_type(),
563
  [
564
  'name' => 'selectortext',
565
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
566
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
567
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-text-selector',
568
  'condition' => [
576
  /*Button Color*/
577
  $this->start_controls_tab('premium_modal_box_tab_selector_normal',
578
  [
579
+ 'label' => __( 'Normal', 'premium-addons-for-elementor' ),
580
  'condition' => [
581
  'premium_modal_box_display_on' => ['button', 'text','image'],
582
  ]
586
  /*Button Background Color*/
587
  $this->add_control('premium_modal_box_selector_background',
588
  [
589
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
590
  'type' => Controls_Manager::COLOR,
591
  'scheme' => [
592
  'type' => Scheme_Color::get_type(),
616
  /*Button Border Radius*/
617
  $this->add_control('premium_modal_box_selector_border_radius',
618
  [
619
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
620
  'type' => Controls_Manager::SLIDER,
621
  'size_units' => ['px', '%', 'em'],
622
  'default' => [
635
  /*Selector Padding*/
636
  $this->add_responsive_control('premium_modal_box_selector_padding',
637
  [
638
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
639
  'type' => Controls_Manager::DIMENSIONS,
640
  'size_units' => [ 'px', 'em', '%' ],
641
  'default' => [
658
  $this->add_group_control(
659
  Group_Control_Box_Shadow::get_type(),
660
  [
661
+ 'label' => __('Shadow','premium-addons-for-elementor'),
662
  'name' => 'premium_modal_box_selector_box_shadow',
663
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector, {{WRAPPER}} .premium-modal-box-img-selector',
664
  'condition' => [
683
 
684
  $this->start_controls_tab('premium_modal_box_tab_selector_hover',
685
  [
686
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
687
  'condition' => [
688
  'premium_modal_box_display_on' => ['button','text','image'],
689
  ]
693
  /*Button Hover Background Color*/
694
  $this->add_control('premium_modal_box_selector_hover_background',
695
  [
696
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
697
  'type' => Controls_Manager::COLOR,
698
  'selectors' => [
699
  '{{WRAPPER}} .premium-modal-box-button-selector:hover' => 'background: {{VALUE}};',
720
  /*Button Border Radius*/
721
  $this->add_control('premium_modal_box_selector_border_radius_hover',
722
  [
723
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
724
  'type' => Controls_Manager::SLIDER,
725
  'size_units' => ['px', '%', 'em'],
726
  'selectors' => [
736
  $this->add_group_control(
737
  Group_Control_Box_Shadow::get_type(),
738
  [
739
+ 'label' => __('Shadow','premium-addons-for-elementor'),
740
  'name' => 'premium_modal_box_selector_box_shadow_hover',
741
  'selector' => '{{WRAPPER}} .premium-modal-box-button-selector:hover, {{WRAPPER}} .premium-modal-box-text-selector:hover, {{WRAPPER}} .premium-modal-box-img-selector:hover',
742
  'condition' => [
754
  /*Start Header Seettings Section*/
755
  $this->start_controls_section('premium_modal_box_header_settings',
756
  [
757
+ 'label' => __('Heading', 'premium-addons-for-elementor'),
758
  'tab' => Controls_Manager::TAB_STYLE,
759
  'condition' => [
760
  'premium_modal_box_header_switcher' => 'yes'
765
  /*Header Text Color*/
766
  $this->add_control('premium_modal_box_header_text_color',
767
  [
768
+ 'label' => __('Color', 'premium-addons-for-elementor'),
769
  'type' => Controls_Manager::COLOR,
770
  'selectors' => [
771
  '{{WRAPPER}} .premium-modal-box-modal-title' => 'color: {{VALUE}};',
778
  Group_Control_Typography::get_type(),
779
  [
780
  'name' => 'headertext',
781
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
782
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
783
  'selector' => '{{WRAPPER}} .premium-modal-box-modal-title',
784
  ]
787
  /*Header Background Color*/
788
  $this->add_control('premium_modal_box_header_background',
789
  [
790
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
791
  'type' => Controls_Manager::COLOR,
792
  'selectors' => [
793
  '{{WRAPPER}} .premium-modal-box-modal-header' => 'background: {{VALUE}};',
802
  /*Start Close Button Section*/
803
  $this->start_controls_section('premium_modal_box_upper_close_button_section',
804
  [
805
+ 'label' => __('Upper Close Button', 'premium-addons-for-elementor'),
806
  'tab' => Controls_Manager::TAB_STYLE,
807
  'condition' => [
808
  'premium_modal_box_upper_close' => 'yes',
814
  /*Close Button Size*/
815
  $this->add_responsive_control('premium_modal_box_upper_close_button_size',
816
  [
817
+ 'label' => __('Size', 'premium-addons-for-elementor'),
818
  'type' => Controls_Manager::SLIDER,
819
  'size_units' => ['px', '%' ,'em'],
820
  'selectors' => [
830
  /*Button Color*/
831
  $this->start_controls_tab('premium_modal_box_upper_close_button_normal',
832
  [
833
+ 'label' => __( 'Normal', 'premium-addons-for-elementor' ),
834
  ]
835
  );
836
 
837
  /*Close Button Color*/
838
  $this->add_control('premium_modal_box_upper_close_button_normal_color',
839
  [
840
+ 'label' => __('Color', 'premium-addons-for-elementor'),
841
  'type' => Controls_Manager::COLOR,
842
  'selectors' => [
843
  '{{WRAPPER}} .premium-modal-box-modal-close' => 'color: {{VALUE}};',
848
  /*Close Button Background Color*/
849
  $this->add_control('premium_modal_box_upper_close_button_background_color',
850
  [
851
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
852
  'type' => Controls_Manager::COLOR,
853
  'selectors' => [
854
  '{{WRAPPER}} .premium-modal-box-modal-close' => 'background:{{VALUE}};',
868
  /*Button Border Radius*/
869
  $this->add_control('premium_modal_upper_border_radius',
870
  [
871
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
872
  'type' => Controls_Manager::SLIDER,
873
  'size_units' => ['px', '%', 'em'],
874
  'selectors' => [
882
 
883
  $this->start_controls_tab('premium_modal_box_upper_close_button_hover',
884
  [
885
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
886
  ]
887
  );
888
 
889
  /*Close Button Color*/
890
  $this->add_control('premium_modal_box_upper_close_button_hover_color',
891
  [
892
+ 'label' => __('Color', 'premium-addons-for-elementor'),
893
  'type' => Controls_Manager::COLOR,
894
  'selectors' => [
895
  '{{WRAPPER}} .premium-modal-box-modal-close:hover' => 'color: {{VALUE}};',
900
  /*Close Button Background Color*/
901
  $this->add_control('premium_modal_box_upper_close_button_background_color_hover',
902
  [
903
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
904
  'type' => Controls_Manager::COLOR,
905
  'selectors' => [
906
  '{{WRAPPER}} .premium-modal-box-modal-close:hover' => 'background:{{VALUE}};',
920
  /*Button Border Radius*/
921
  $this->add_control('premium_modal_upper_border_radius_hover',
922
  [
923
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
924
  'type' => Controls_Manager::SLIDER,
925
  'size_units' => ['px', '%', 'em'],
926
  'selectors' => [
937
  /*Upper Close Padding*/
938
  $this->add_responsive_control('premium_modal_box_upper_close_button_padding',
939
  [
940
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
941
  'type' => Controls_Manager::DIMENSIONS,
942
  'size_units' => [ 'px', 'em', '%' ],
943
  'selectors' => [
952
  /*Start Close Button Section*/
953
  $this->start_controls_section('premium_modal_box_lower_close_button_section',
954
  [
955
+ 'label' => __('Lower Close Button', 'premium-addons-for-elementor'),
956
  'tab' => Controls_Manager::TAB_STYLE,
957
  'condition' => [
958
  'premium_modal_box_lower_close' => 'yes',
964
  $this->add_group_control(
965
  Group_Control_Typography::get_type(),
966
  [
967
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
968
  'name' => 'lowerclose',
969
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
970
  'selector' => '{{WRAPPER}} .premium-modal-box-modal-lower-close',
974
  /*Close Button Size*/
975
  $this->add_responsive_control('premium_modal_box_lower_close_button_width',
976
  [
977
+ 'label' => __('Width', 'premium-addons-for-elementor'),
978
  'type' => Controls_Manager::SLIDER,
979
  'size_units' => ['px', '%', 'em'],
980
  'range' => [
999
  /*Button Color*/
1000
  $this->start_controls_tab('premium_modal_box_lower_close_button_normal',
1001
  [
1002
+ 'label' => __( 'Normal', 'premium-addons-for-elementor' ),
1003
  ]
1004
  );
1005
 
1006
  /*Close Button Background Color*/
1007
  $this->add_control('premium_modal_box_lower_close_button_normal_color',
1008
  [
1009
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1010
  'type' => Controls_Manager::COLOR,
1011
  'scheme' => [
1012
  'type' => Scheme_Color::get_type(),
1021
  /*Close Button Background Color*/
1022
  $this->add_control('premium_modal_box_lower_close_button_background_normal_color',
1023
  [
1024
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
1025
  'type' => Controls_Manager::COLOR,
1026
  'scheme' => [
1027
  'type' => Scheme_Color::get_type(),
1045
  /*Lower Close Radius*/
1046
  $this->add_control('premium_modal_box_lower_close_border_radius',
1047
  [
1048
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1049
  'type' => Controls_Manager::SLIDER,
1050
  'size_units' => ['px', '%', 'em'],
1051
  'selectors' => [
1059
 
1060
  $this->start_controls_tab('premium_modal_box_lower_close_button_hover',
1061
  [
1062
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
1063
  ]
1064
  );
1065
 
1066
  /*Close Button Background Color*/
1067
  $this->add_control('premium_modal_box_lower_close_button_hover_color',
1068
  [
1069
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1070
  'type' => Controls_Manager::COLOR,
1071
  'scheme' => [
1072
  'type' => Scheme_Color::get_type(),
1081
  /*Close Button Background Color*/
1082
  $this->add_control('premium_modal_box_lower_close_button_background_hover_color',
1083
  [
1084
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
1085
  'type' => Controls_Manager::COLOR,
1086
  'scheme' => [
1087
  'type' => Scheme_Color::get_type(),
1105
  /*Lower Close Hover Border Radius*/
1106
  $this->add_control('premium_modal_box_lower_close_border_radius_hover',
1107
  [
1108
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1109
  'type' => Controls_Manager::SLIDER,
1110
  'size_units' => ['px', '%', 'em'],
1111
  'selectors' => [
1122
  /*Upper Close Padding*/
1123
  $this->add_responsive_control('premium_modal_box_lower_close_button_padding',
1124
  [
1125
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1126
  'type' => Controls_Manager::DIMENSIONS,
1127
  'size_units' => [ 'px', 'em', '%' ],
1128
  'selectors' => [
1136
 
1137
  $this->start_controls_section('premium_modal_box_style',
1138
  [
1139
+ 'label' => __('Modal Box', 'premium-addons-for-elementor'),
1140
  'tab' => Controls_Manager::TAB_STYLE,
1141
  ]
1142
  );
1144
  /*Modal Size*/
1145
  $this->add_control('premium_modal_box_modal_size',
1146
  [
1147
+ 'label' => __('Width', 'premium-addons-for-elementor'),
1148
  'type' => Controls_Manager::SLIDER,
1149
  'size_units' => ['px', '%', 'em'],
1150
  'range' => [
1159
 
1160
  $this->add_responsive_control('premium_modal_box_modal_max_height',
1161
  [
1162
+ 'label' => __('Max Height', 'premium-addons-for-elementor'),
1163
  'type' => Controls_Manager::SLIDER,
1164
  'size_units' => ['px', 'em'],
1165
  'range' => [
1178
  /*Modal Background Color*/
1179
  $this->add_control('premium_modal_box_modal_background',
1180
  [
1181
+ 'label' => __('Overlay Color', 'premium-addons-for-elementor'),
1182
  'type' => Controls_Manager::COLOR,
1183
  'selectors' => [
1184
  '{{WRAPPER}} .premium-modal-box-modal' => 'background:{{VALUE}};',
1189
  /*Content Background Color*/
1190
  $this->add_control('premium_modal_box_content_background',
1191
  [
1192
+ 'label' => __('Content Background Color', 'premium-addons-for-elementor'),
1193
  'type' => Controls_Manager::COLOR,
1194
  'selectors' => [
1195
  '{{WRAPPER}} .premium-modal-box-modal-body' => 'background: {{VALUE}};',
1200
  /*Footer Background Color*/
1201
  $this->add_control('premium_modal_box_footer_background',
1202
  [
1203
+ 'label' => __('Footer Background Color', 'premium-addons-for-elementor'),
1204
  'type' => Controls_Manager::COLOR,
1205
  'selectors' => [
1206
  '{{WRAPPER}} .premium-modal-box-modal-footer' => 'background: {{VALUE}};',
1220
  /*Border Radius*/
1221
  $this->add_control('premium_modal_box_border_radius',
1222
  [
1223
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1224
  'type' => Controls_Manager::SLIDER,
1225
  'size_units' => ['px', '%', 'em'],
1226
  'selectors' => [
1232
  /*Modal Box Margin*/
1233
  $this->add_responsive_control('premium_modal_box_margin',
1234
  [
1235
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1236
  'type' => Controls_Manager::DIMENSIONS,
1237
  'size_units' => [ 'px', 'em', '%' ],
1238
  'selectors' => [
1243
 
1244
  $this->add_responsive_control('premium_modal_box_padding',
1245
  [
1246
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1247
  'type' => Controls_Manager::DIMENSIONS,
1248
  'size_units' => [ 'px', 'em', '%' ],
1249
  'selectors' => [
widgets/premium-person.php CHANGED
@@ -27,14 +27,14 @@ class Premium_Person extends Widget_Base {
27
  /*Start Premium Person Section*/
28
  $this->start_controls_section('premium_person_general_settings',
29
  [
30
- 'label' => esc_html__('Image', 'premium-addons-for-elementor')
31
  ]
32
  );
33
 
34
  /*Person Image*/
35
  $this->add_control('premium_person_image',
36
  [
37
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
38
  'type' => Controls_Manager::MEDIA,
39
  'dynamic' => [ 'active' => true ],
40
  'default' => [
@@ -46,9 +46,9 @@ class Premium_Person extends Widget_Base {
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'],
53
  'range' => [
54
  'px' => [
@@ -73,9 +73,9 @@ class Premium_Person extends Widget_Base {
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' => [
80
  'px' => [
81
  'min' => 1,
@@ -97,18 +97,18 @@ class Premium_Person extends Widget_Base {
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
- 'none' => esc_html__('None', 'premium-addons-for-elementor'),
104
- 'zoomin' => esc_html__('Zoom In', 'premium-addons-for-elementor'),
105
- 'zoomout'=> esc_html__('Zoom Out', 'premium-addons-for-elementor'),
106
- 'scale' => esc_html__('Scale', 'premium-addons-for-elementor'),
107
- 'grayscale'=> esc_html__('Grayscale', 'premium-addons-for-elementor'),
108
- 'blur' => esc_html__('Blur', 'premium-addons-for-elementor'),
109
- 'bright' => esc_html__('Bright', 'premium-addons-for-elementor'),
110
- 'sepia' => esc_html__('Sepia', 'premium-addons-for-elementor'),
111
- 'trans' => esc_html__('Translate', 'premium-addons-for-elementor'),
112
  ],
113
  'default' => 'zoomin',
114
  'label_block' => true
@@ -121,17 +121,17 @@ class Premium_Person extends Widget_Base {
121
  /*Start Person Details Section*/
122
  $this->start_controls_section('premium_person_person_details_section',
123
  [
124
- 'label' => esc_html__('Person', 'premium-addons-for-elementor'),
125
  ]
126
  );
127
 
128
  /*Person Name*/
129
  $this->add_control('premium_person_name',
130
  [
131
- 'label' => esc_html__('Name', 'premium-addons-for-elementor'),
132
  'type' => Controls_Manager::TEXT,
133
  'dynamic' => [ 'active' => true ],
134
- 'default' => esc_html__('John Frank', 'premium-addons-for-elementor'),
135
  'label_block' => true,
136
  ]
137
  );
@@ -139,7 +139,7 @@ class Premium_Person extends Widget_Base {
139
  /*Name Tag*/
140
  $this->add_control('premium_person_name_heading',
141
  [
142
- 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
143
  'type' => Controls_Manager::SELECT,
144
  'default' => 'h2',
145
  'options' => [
@@ -157,10 +157,10 @@ class Premium_Person extends Widget_Base {
157
  /*Person Title*/
158
  $this->add_control('premium_person_title',
159
  [
160
- 'label' => esc_html__('Job Title', 'premium-addons-for-elementor'),
161
  'type' => Controls_Manager::TEXT,
162
  'dynamic' => [ 'active' => true ],
163
- 'default' => esc_html__('Senior Developer', 'premium-addons-for-elementor'),
164
  'label_block' => true,
165
  ]
166
  );
@@ -168,16 +168,16 @@ class Premium_Person extends Widget_Base {
168
  /*Title Tag*/
169
  $this->add_control('premium_person_title_heading',
170
  [
171
- 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
172
  'type' => Controls_Manager::SELECT,
173
  'default' => 'h4',
174
  'options' => [
175
- 'h1' => esc_html__('H1'),
176
- 'h2' => esc_html__('H2'),
177
- 'h3' => esc_html__('H3'),
178
- 'h4' => esc_html__('H4'),
179
- 'h5' => esc_html__('H5'),
180
- 'h6' => esc_html__('H6')
181
  ],
182
  'label_block' => true,
183
  ]
@@ -185,29 +185,29 @@ class Premium_Person extends Widget_Base {
185
 
186
  $this->add_control('premium_person_content',
187
  [
188
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::WYSIWYG,
190
  'dynamic' => [ 'active' => true ],
191
- 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla','premium-addons-for-elementor'),
192
  ]
193
  );
194
 
195
  /*Text Align*/
196
  $this->add_responsive_control('premium_person_text_align',
197
  [
198
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
199
  'type' => Controls_Manager::CHOOSE,
200
  'options' => [
201
  'left' => [
202
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
203
  'icon' => 'fa fa-align-left',
204
  ],
205
  'center' => [
206
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
207
  'icon' => 'fa fa-align-center',
208
  ],
209
  'right' => [
210
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
211
  'icon' => 'fa fa-align-right',
212
  ],
213
  ],
@@ -224,14 +224,14 @@ class Premium_Person extends Widget_Base {
224
  /*Start Social Links Section*/
225
  $this->start_controls_section('premium_person_social_section',
226
  [
227
- 'label' => esc_html__('Social Icons', 'premium-addons-for-elementor'),
228
  ]
229
  );
230
 
231
  /*Person Facebook*/
232
  $this->add_control('premium_person_facebook',
233
  [
234
- 'label' => esc_html__('Facebook', 'premium-addons-for-elementor'),
235
  'type' => Controls_Manager::TEXT,
236
  'dynamic' => [ 'active' => true ],
237
  'default' => '#',
@@ -242,7 +242,7 @@ class Premium_Person extends Widget_Base {
242
  /*Person Twitter*/
243
  $this->add_control('premium_person_twitter',
244
  [
245
- 'label' => esc_html__('Twitter', 'premium-addons-for-elementor'),
246
  'type' => Controls_Manager::TEXT,
247
  'dynamic' => [ 'active' => true ],
248
  'default' => '#',
@@ -253,7 +253,7 @@ class Premium_Person extends Widget_Base {
253
  /*Person Linkedin*/
254
  $this->add_control('premium_person_linkedin',
255
  [
256
- 'label' => esc_html__('LinkedIn', 'premium-addons-for-elementor'),
257
  'type' => Controls_Manager::TEXT,
258
  'dynamic' => [ 'active' => true ],
259
  'default' => '#',
@@ -264,7 +264,7 @@ class Premium_Person extends Widget_Base {
264
  /*Person Google*/
265
  $this->add_control('premium_person_google',
266
  [
267
- 'label' => esc_html__('Google+', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::TEXT,
269
  'dynamic' => [ 'active' => true ],
270
  'default' => '#',
@@ -275,7 +275,7 @@ class Premium_Person extends Widget_Base {
275
  /*Person Youtube*/
276
  $this->add_control('premium_person_youtube',
277
  [
278
- 'label' => esc_html__('Youtube', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::TEXT,
280
  'dynamic' => [ 'active' => true ],
281
  'label_block' => true,
@@ -285,7 +285,7 @@ class Premium_Person extends Widget_Base {
285
  /*Person Instagram*/
286
  $this->add_control('premium_person_instagram',
287
  [
288
- 'label' => esc_html__('Instagram', 'premium-addons-for-elementor'),
289
  'type' => Controls_Manager::TEXT,
290
  'dynamic' => [ 'active' => true ],
291
  'label_block' => true,
@@ -295,7 +295,7 @@ class Premium_Person extends Widget_Base {
295
  /*Person Pinterest*/
296
  $this->add_control('premium_person_pinterest',
297
  [
298
- 'label' => esc_html__('Pinterest', 'premium-addons-for-elementor'),
299
  'type' => Controls_Manager::TEXT,
300
  'dynamic' => [ 'active' => true ],
301
  'default' => '#',
@@ -306,7 +306,7 @@ class Premium_Person extends Widget_Base {
306
  /*Person Dribble*/
307
  $this->add_control('premium_person_dribbble',
308
  [
309
- 'label' => esc_html__('Dribbble', 'premium-addons-for-elementor'),
310
  'type' => Controls_Manager::TEXT,
311
  'dynamic' => [ 'active' => true ],
312
  'default' => '#',
@@ -317,7 +317,7 @@ class Premium_Person extends Widget_Base {
317
  /*Person Dribble*/
318
  $this->add_control('premium_person_behance',
319
  [
320
- 'label' => esc_html__('Behance', 'premium-addons-for-elementor'),
321
  'type' => Controls_Manager::TEXT,
322
  'dynamic' => [ 'active' => true ],
323
  'default' => '#',
@@ -328,7 +328,7 @@ class Premium_Person extends Widget_Base {
328
  /*Person Google*/
329
  $this->add_control('premium_person_mail',
330
  [
331
- 'label' => esc_html__('Email Address', 'premium-addons-for-elementor'),
332
  'type' => Controls_Manager::TEXT,
333
  'dynamic' => [ 'active' => true ],
334
  'default' => '#',
@@ -342,7 +342,7 @@ class Premium_Person extends Widget_Base {
342
  /*Start Name Style Section*/
343
  $this->start_controls_section('premium_person_name_style',
344
  [
345
- 'label' => esc_html__('Name', 'premium-addons-for-elementor'),
346
  'tab' => Controls_Manager::TAB_STYLE,
347
  ]
348
  );
@@ -351,7 +351,7 @@ class Premium_Person extends Widget_Base {
351
  /*Name Color*/
352
  $this->add_control('premium_person_name_color',
353
  [
354
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
355
  'type' => Controls_Manager::COLOR,
356
  'scheme' => [
357
  'type' => Scheme_Color::get_type(),
@@ -379,7 +379,7 @@ class Premium_Person extends Widget_Base {
379
  /*Start Title Style Section*/
380
  $this->start_controls_section('premium_person_title_style',
381
  [
382
- 'label' => esc_html__('Job Title', 'premium-addons-for-elementor'),
383
  'tab' => Controls_Manager::TAB_STYLE,
384
  ]
385
  );
@@ -387,7 +387,7 @@ class Premium_Person extends Widget_Base {
387
  /*Title Color*/
388
  $this->add_control('premium_person_title_color',
389
  [
390
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
391
  'type' => Controls_Manager::COLOR,
392
  'scheme' => [
393
  'type' => Scheme_Color::get_type(),
@@ -415,7 +415,7 @@ class Premium_Person extends Widget_Base {
415
  /*Start Description Style Section*/
416
  $this->start_controls_section('premium_person_description_style',
417
  [
418
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
419
  'tab' => Controls_Manager::TAB_STYLE,
420
  ]
421
  );
@@ -423,7 +423,7 @@ class Premium_Person extends Widget_Base {
423
  /*Title Color*/
424
  $this->add_control('premium_person_description_color',
425
  [
426
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
427
  'type' => Controls_Manager::COLOR,
428
  'scheme' => [
429
  'type' => Scheme_Color::get_type(),
@@ -451,7 +451,7 @@ class Premium_Person extends Widget_Base {
451
  /*Start Social Icon Style Section*/
452
  $this->start_controls_section('premium_person_social_icon_style',
453
  [
454
- 'label' => esc_html__('Social Icons', 'premium-addons-for-elementor'),
455
  'tab' => Controls_Manager::TAB_STYLE,
456
  ]
457
  );
@@ -459,7 +459,7 @@ class Premium_Person extends Widget_Base {
459
  /*Social Color*/
460
  $this->add_control('premium_person_social_color',
461
  [
462
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
463
  'type' => Controls_Manager::COLOR,
464
  'scheme' => [
465
  'type' => Scheme_Color::get_type(),
@@ -474,7 +474,7 @@ class Premium_Person extends Widget_Base {
474
  /*Social Hover Color*/
475
  $this->add_control('premium_person_social_hover_color',
476
  [
477
- 'label' => esc_html__('Hover Color', 'premium-addons-for-elementor'),
478
  'type' => Controls_Manager::COLOR,
479
  'scheme' => [
480
  'type' => Scheme_Color::get_type(),
@@ -492,7 +492,7 @@ class Premium_Person extends Widget_Base {
492
  /*Start Content Style Section*/
493
  $this->start_controls_section('premium_person_general_style',
494
  [
495
- 'label' => esc_html__('Content Background', 'premium-addons-for-elementor'),
496
  'tab' => Controls_Manager::TAB_STYLE,
497
  ]
498
  );
@@ -500,7 +500,7 @@ class Premium_Person extends Widget_Base {
500
  /*Content Background Color*/
501
  $this->add_control('premium_person_content_background_color',
502
  [
503
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
504
  'type' => Controls_Manager::COLOR,
505
  'default' => 'rgba(245,245,245,0.97)',
506
  'selectors' => [
@@ -512,7 +512,7 @@ class Premium_Person extends Widget_Base {
512
  /*Border Bottom Width*/
513
  $this->add_control('premium_person_border_bottom_width',
514
  [
515
- 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
516
  'type' => Controls_Manager::SLIDER,
517
  'range' => [
518
  'px' => [
27
  /*Start Premium Person Section*/
28
  $this->start_controls_section('premium_person_general_settings',
29
  [
30
+ 'label' => __('Image', 'premium-addons-for-elementor')
31
  ]
32
  );
33
 
34
  /*Person Image*/
35
  $this->add_control('premium_person_image',
36
  [
37
+ 'label' => __('Image', 'premium-addons-for-elementor'),
38
  'type' => Controls_Manager::MEDIA,
39
  'dynamic' => [ 'active' => true ],
40
  'default' => [
46
 
47
  $this->add_responsive_control('premium_person_image_width',
48
  [
49
+ 'label' => __('Width', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::SLIDER,
51
+ 'description' => __('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
52
  'size_units' => ['px', '%', 'em'],
53
  'range' => [
54
  'px' => [
73
 
74
  $this->add_responsive_control('premium_person_image_height',
75
  [
76
+ 'label' => __('Height', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::SLIDER,
78
+ 'description' => __('Choose image height in (PX, EM)', 'premium-addons-for-elementor'),
79
  'range' => [
80
  'px' => [
81
  'min' => 1,
97
  /*Hover Image Effect*/
98
  $this->add_control('premium_person_hover_image_effect',
99
  [
100
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
101
  'type' => Controls_Manager::SELECT,
102
  'options' => [
103
+ 'none' => __('None', 'premium-addons-for-elementor'),
104
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
105
+ 'zoomout'=> __('Zoom Out', 'premium-addons-for-elementor'),
106
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
107
+ 'grayscale'=> __('Grayscale', 'premium-addons-for-elementor'),
108
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
109
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
110
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
111
+ 'trans' => __('Translate', 'premium-addons-for-elementor'),
112
  ],
113
  'default' => 'zoomin',
114
  'label_block' => true
121
  /*Start Person Details Section*/
122
  $this->start_controls_section('premium_person_person_details_section',
123
  [
124
+ 'label' => __('Person', 'premium-addons-for-elementor'),
125
  ]
126
  );
127
 
128
  /*Person Name*/
129
  $this->add_control('premium_person_name',
130
  [
131
+ 'label' => __('Name', 'premium-addons-for-elementor'),
132
  'type' => Controls_Manager::TEXT,
133
  'dynamic' => [ 'active' => true ],
134
+ 'default' => __('John Frank', 'premium-addons-for-elementor'),
135
  'label_block' => true,
136
  ]
137
  );
139
  /*Name Tag*/
140
  $this->add_control('premium_person_name_heading',
141
  [
142
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
143
  'type' => Controls_Manager::SELECT,
144
  'default' => 'h2',
145
  'options' => [
157
  /*Person Title*/
158
  $this->add_control('premium_person_title',
159
  [
160
+ 'label' => __('Job Title', 'premium-addons-for-elementor'),
161
  'type' => Controls_Manager::TEXT,
162
  'dynamic' => [ 'active' => true ],
163
+ 'default' => __('Senior Developer', 'premium-addons-for-elementor'),
164
  'label_block' => true,
165
  ]
166
  );
168
  /*Title Tag*/
169
  $this->add_control('premium_person_title_heading',
170
  [
171
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
172
  'type' => Controls_Manager::SELECT,
173
  'default' => 'h4',
174
  'options' => [
175
+ 'h1' => 'H1',
176
+ 'h2' => 'H2',
177
+ 'h3' => 'H3',
178
+ 'h4' => 'H4',
179
+ 'h5' => 'H5',
180
+ 'h6' => 'H6'
181
  ],
182
  'label_block' => true,
183
  ]
185
 
186
  $this->add_control('premium_person_content',
187
  [
188
+ 'label' => __('Description', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::WYSIWYG,
190
  'dynamic' => [ 'active' => true ],
191
+ 'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla','premium-addons-for-elementor'),
192
  ]
193
  );
194
 
195
  /*Text Align*/
196
  $this->add_responsive_control('premium_person_text_align',
197
  [
198
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
199
  'type' => Controls_Manager::CHOOSE,
200
  'options' => [
201
  'left' => [
202
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
203
  'icon' => 'fa fa-align-left',
204
  ],
205
  'center' => [
206
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
207
  'icon' => 'fa fa-align-center',
208
  ],
209
  'right' => [
210
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
211
  'icon' => 'fa fa-align-right',
212
  ],
213
  ],
224
  /*Start Social Links Section*/
225
  $this->start_controls_section('premium_person_social_section',
226
  [
227
+ 'label' => __('Social Icons', 'premium-addons-for-elementor'),
228
  ]
229
  );
230
 
231
  /*Person Facebook*/
232
  $this->add_control('premium_person_facebook',
233
  [
234
+ 'label' => __('Facebook', 'premium-addons-for-elementor'),
235
  'type' => Controls_Manager::TEXT,
236
  'dynamic' => [ 'active' => true ],
237
  'default' => '#',
242
  /*Person Twitter*/
243
  $this->add_control('premium_person_twitter',
244
  [
245
+ 'label' => __('Twitter', 'premium-addons-for-elementor'),
246
  'type' => Controls_Manager::TEXT,
247
  'dynamic' => [ 'active' => true ],
248
  'default' => '#',
253
  /*Person Linkedin*/
254
  $this->add_control('premium_person_linkedin',
255
  [
256
+ 'label' => __('LinkedIn', 'premium-addons-for-elementor'),
257
  'type' => Controls_Manager::TEXT,
258
  'dynamic' => [ 'active' => true ],
259
  'default' => '#',
264
  /*Person Google*/
265
  $this->add_control('premium_person_google',
266
  [
267
+ 'label' => __('Google+', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::TEXT,
269
  'dynamic' => [ 'active' => true ],
270
  'default' => '#',
275
  /*Person Youtube*/
276
  $this->add_control('premium_person_youtube',
277
  [
278
+ 'label' => __('Youtube', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::TEXT,
280
  'dynamic' => [ 'active' => true ],
281
  'label_block' => true,
285
  /*Person Instagram*/
286
  $this->add_control('premium_person_instagram',
287
  [
288
+ 'label' => __('Instagram', 'premium-addons-for-elementor'),
289
  'type' => Controls_Manager::TEXT,
290
  'dynamic' => [ 'active' => true ],
291
  'label_block' => true,
295
  /*Person Pinterest*/
296
  $this->add_control('premium_person_pinterest',
297
  [
298
+ 'label' => __('Pinterest', 'premium-addons-for-elementor'),
299
  'type' => Controls_Manager::TEXT,
300
  'dynamic' => [ 'active' => true ],
301
  'default' => '#',
306
  /*Person Dribble*/
307
  $this->add_control('premium_person_dribbble',
308
  [
309
+ 'label' => __('Dribbble', 'premium-addons-for-elementor'),
310
  'type' => Controls_Manager::TEXT,
311
  'dynamic' => [ 'active' => true ],
312
  'default' => '#',
317
  /*Person Dribble*/
318
  $this->add_control('premium_person_behance',
319
  [
320
+ 'label' => __('Behance', 'premium-addons-for-elementor'),
321
  'type' => Controls_Manager::TEXT,
322
  'dynamic' => [ 'active' => true ],
323
  'default' => '#',
328
  /*Person Google*/
329
  $this->add_control('premium_person_mail',
330
  [
331
+ 'label' => __('Email Address', 'premium-addons-for-elementor'),
332
  'type' => Controls_Manager::TEXT,
333
  'dynamic' => [ 'active' => true ],
334
  'default' => '#',
342
  /*Start Name Style Section*/
343
  $this->start_controls_section('premium_person_name_style',
344
  [
345
+ 'label' => __('Name', 'premium-addons-for-elementor'),
346
  'tab' => Controls_Manager::TAB_STYLE,
347
  ]
348
  );
351
  /*Name Color*/
352
  $this->add_control('premium_person_name_color',
353
  [
354
+ 'label' => __('Color', 'premium-addons-for-elementor'),
355
  'type' => Controls_Manager::COLOR,
356
  'scheme' => [
357
  'type' => Scheme_Color::get_type(),
379
  /*Start Title Style Section*/
380
  $this->start_controls_section('premium_person_title_style',
381
  [
382
+ 'label' => __('Job Title', 'premium-addons-for-elementor'),
383
  'tab' => Controls_Manager::TAB_STYLE,
384
  ]
385
  );
387
  /*Title Color*/
388
  $this->add_control('premium_person_title_color',
389
  [
390
+ 'label' => __('Color', 'premium-addons-for-elementor'),
391
  'type' => Controls_Manager::COLOR,
392
  'scheme' => [
393
  'type' => Scheme_Color::get_type(),
415
  /*Start Description Style Section*/
416
  $this->start_controls_section('premium_person_description_style',
417
  [
418
+ 'label' => __('Description', 'premium-addons-for-elementor'),
419
  'tab' => Controls_Manager::TAB_STYLE,
420
  ]
421
  );
423
  /*Title Color*/
424
  $this->add_control('premium_person_description_color',
425
  [
426
+ 'label' => __('Color', 'premium-addons-for-elementor'),
427
  'type' => Controls_Manager::COLOR,
428
  'scheme' => [
429
  'type' => Scheme_Color::get_type(),
451
  /*Start Social Icon Style Section*/
452
  $this->start_controls_section('premium_person_social_icon_style',
453
  [
454
+ 'label' => __('Social Icons', 'premium-addons-for-elementor'),
455
  'tab' => Controls_Manager::TAB_STYLE,
456
  ]
457
  );
459
  /*Social Color*/
460
  $this->add_control('premium_person_social_color',
461
  [
462
+ 'label' => __('Color', 'premium-addons-for-elementor'),
463
  'type' => Controls_Manager::COLOR,
464
  'scheme' => [
465
  'type' => Scheme_Color::get_type(),
474
  /*Social Hover Color*/
475
  $this->add_control('premium_person_social_hover_color',
476
  [
477
+ 'label' => __('Hover Color', 'premium-addons-for-elementor'),
478
  'type' => Controls_Manager::COLOR,
479
  'scheme' => [
480
  'type' => Scheme_Color::get_type(),
492
  /*Start Content Style Section*/
493
  $this->start_controls_section('premium_person_general_style',
494
  [
495
+ 'label' => __('Content Background', 'premium-addons-for-elementor'),
496
  'tab' => Controls_Manager::TAB_STYLE,
497
  ]
498
  );
500
  /*Content Background Color*/
501
  $this->add_control('premium_person_content_background_color',
502
  [
503
+ 'label' => __('Color', 'premium-addons-for-elementor'),
504
  'type' => Controls_Manager::COLOR,
505
  'default' => 'rgba(245,245,245,0.97)',
506
  'selectors' => [
512
  /*Border Bottom Width*/
513
  $this->add_control('premium_person_border_bottom_width',
514
  [
515
+ 'label' => __('Height', 'premium-addons-for-elementor'),
516
  'type' => Controls_Manager::SLIDER,
517
  'range' => [
518
  'px' => [
widgets/premium-pricing-table.php CHANGED
@@ -33,7 +33,7 @@ class Premium_Pricing_Table extends Widget_Base {
33
  /*Title Content Section*/
34
  $this->start_controls_section('premium_pricing_table_icon_section',
35
  [
36
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
37
  'condition' => [
38
  'premium_pricing_table_icon_switcher' => 'yes',
39
  ]
@@ -42,7 +42,7 @@ class Premium_Pricing_Table extends Widget_Base {
42
 
43
  $this->add_control('premium_pricing_table_icon_selection',
44
  [
45
- 'label' => esc_html__('Select an Icon', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::ICON,
47
  'default' => 'fa fa-check'
48
  ]
@@ -53,7 +53,7 @@ class Premium_Pricing_Table extends Widget_Base {
53
  /*Title Content Section*/
54
  $this->start_controls_section('premium_pricing_table_title_section',
55
  [
56
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
57
  'condition' => [
58
  'premium_pricing_table_title_switcher' => 'yes',
59
  ]
@@ -63,7 +63,7 @@ class Premium_Pricing_Table extends Widget_Base {
63
  /*Header Text*/
64
  $this->add_control('premium_pricing_table_title_text',
65
  [
66
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
67
  'default' => 'Pricing Table',
68
  'type' => Controls_Manager::TEXT,
69
  'dynamic' => [ 'active' => true ],
@@ -74,8 +74,8 @@ class Premium_Pricing_Table extends Widget_Base {
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',
81
  'options' => [
@@ -96,7 +96,7 @@ class Premium_Pricing_Table extends Widget_Base {
96
  /*Price Content Section*/
97
  $this->start_controls_section('premium_pricing_table_price_section',
98
  [
99
- 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
100
  'condition' => [
101
  'premium_pricing_table_price_switcher' => 'yes',
102
  ]
@@ -106,7 +106,7 @@ class Premium_Pricing_Table extends Widget_Base {
106
  /*Price Value*/
107
  $this->add_control('premium_pricing_table_slashed_price_value',
108
  [
109
- 'label' => esc_html__('Slashed Price', 'premium-addons-for-elementor'),
110
  'type' => Controls_Manager::TEXT,
111
  'label_block' => true,
112
  ]
@@ -115,7 +115,7 @@ class Premium_Pricing_Table extends Widget_Base {
115
  /*Price Currency*/
116
  $this->add_control('premium_pricing_table_price_currency',
117
  [
118
- 'label' => esc_html__('Currency', 'premium-addons-for-elementor'),
119
  'default' => '$',
120
  'type' => Controls_Manager::TEXT,
121
  'label_block' => true,
@@ -125,7 +125,7 @@ class Premium_Pricing_Table extends Widget_Base {
125
  /*Price Value*/
126
  $this->add_control('premium_pricing_table_price_value',
127
  [
128
- 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
129
  'default' => '25',
130
  'type' => Controls_Manager::TEXT,
131
  'label_block' => true,
@@ -135,7 +135,7 @@ class Premium_Pricing_Table extends Widget_Base {
135
  /*Price Separator*/
136
  $this->add_control('premium_pricing_table_price_separator',
137
  [
138
- 'label' => esc_html__('Divider', 'premium-addons-for-elementor'),
139
  'default' => '/',
140
  'type' => Controls_Manager::TEXT,
141
  'label_block' => true,
@@ -145,7 +145,7 @@ class Premium_Pricing_Table extends Widget_Base {
145
  /*Price Duration*/
146
  $this->add_control('premium_pricing_table_price_duration',
147
  [
148
- 'label' => esc_html__('Duration', 'premium-addons-for-elementor'),
149
  'default' => 'm',
150
  'type' => Controls_Manager::TEXT,
151
  'label_block' => true,
@@ -157,7 +157,7 @@ class Premium_Pricing_Table extends Widget_Base {
157
  /*Icon List Content Section*/
158
  $this->start_controls_section('premium_pricing_table_list_section',
159
  [
160
- 'label' => esc_html__('Icon List', 'premium-addons-for-elementor'),
161
  'condition' => [
162
  'premium_pricing_table_list_switcher' => 'yes',
163
  ]
@@ -168,7 +168,7 @@ class Premium_Pricing_Table extends Widget_Base {
168
 
169
  $repeater->add_control('premium_pricing_list_item_text',
170
  [
171
- 'label' => esc_html__( 'Text', 'premium-addons-for-elementor' ),
172
  'type' => Controls_Manager::TEXT,
173
  'dynamic' => [ 'active' => true ],
174
  'label_block' => true,
@@ -177,27 +177,27 @@ class Premium_Pricing_Table extends Widget_Base {
177
 
178
  $repeater->add_control('premium_pricing_list_item_icon',
179
  [
180
- 'label' => esc_html__( 'Icon', 'premium-addons-for-elementor' ),
181
  'type' => Controls_Manager::ICON,
182
  ]
183
  );
184
 
185
  $this->add_control('premium_fancy_text_list_items',
186
  [
187
- 'label' => esc_html__( 'Features', 'premium-addons-for-elementor' ),
188
  'type' => Controls_Manager::REPEATER,
189
  'default' => [
190
  [
191
  'premium_pricing_list_item_icon' => 'fa fa-check',
192
- 'premium_pricing_list_item_text' => esc_html__( 'List Item #1', 'premium-addons-for-elementor' ),
193
  ],
194
  [
195
  'premium_pricing_list_item_icon' => 'fa fa-check',
196
- 'premium_pricing_list_item_text' => esc_html__( 'List Item #2', 'premium-addons-for-elementor' ),
197
  ],
198
  [
199
  'premium_pricing_list_item_icon' => 'fa fa-check',
200
- 'premium_pricing_list_item_text' => esc_html__( 'List Item #3', 'premium-addons-for-elementor' ),
201
  ],
202
  ],
203
  'fields' => array_values( $repeater->get_controls() ),
@@ -235,7 +235,7 @@ class Premium_Pricing_Table extends Widget_Base {
235
  /*Description Content Section*/
236
  $this->start_controls_section('premium_pricing_table_description_section',
237
  [
238
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
239
  'condition' => [
240
  'premium_pricing_table_description_switcher' => 'yes',
241
  ]
@@ -246,9 +246,9 @@ class Premium_Pricing_Table extends Widget_Base {
246
  /*Description Text*/
247
  $this->add_control('premium_pricing_table_description_text',
248
  [
249
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
250
  'type' => Controls_Manager::WYSIWYG,
251
- 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit', 'premium-addons-for-elementor'),
252
  ]
253
  );
254
 
@@ -257,7 +257,7 @@ class Premium_Pricing_Table extends Widget_Base {
257
  /*Button Content Section*/
258
  $this->start_controls_section('premium_pricing_table_button_section',
259
  [
260
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
261
  'condition' => [
262
  'premium_pricing_table_button_switcher' => 'yes',
263
  ]
@@ -268,8 +268,8 @@ class Premium_Pricing_Table extends Widget_Base {
268
  /*Button Text*/
269
  $this->add_control('premium_pricing_table_button_text',
270
  [
271
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
272
- 'default' => esc_html__('Get Started' , 'premium-addons-for-elementor'),
273
  'type' => Controls_Manager::TEXT,
274
  'dynamic' => [ 'active' => true ],
275
  'label_block' => true,
@@ -279,11 +279,11 @@ class Premium_Pricing_Table extends Widget_Base {
279
  /*Button Url Type*/
280
  $this->add_control('premium_pricing_table_button_url_type',
281
  [
282
- 'label' => esc_html__('Link Type', 'premium-addons-for-elementor'),
283
  'type' => Controls_Manager::SELECT,
284
  'options' => [
285
- 'url' => esc_html__('URL', 'premium-addons-for-elementor'),
286
- 'link' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
287
  ],
288
  'default' => 'url',
289
  'label_block' => true,
@@ -294,7 +294,7 @@ class Premium_Pricing_Table extends Widget_Base {
294
  /*Button url*/
295
  $this->add_control('premium_pricing_table_button_link',
296
  [
297
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
298
  'type' => Controls_Manager::TEXT,
299
  'condition' => [
300
  'premium_pricing_table_button_url_type' => 'url',
@@ -306,7 +306,7 @@ class Premium_Pricing_Table extends Widget_Base {
306
  /*Button Link to existing content*/
307
  $this->add_control('premium_pricing_table_button_link_existing_content',
308
  [
309
- 'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
310
  'type' => Controls_Manager::SELECT2,
311
  'options' => $this->getTemplateInstance()->get_all_post(),
312
  'condition' => [
@@ -321,16 +321,16 @@ class Premium_Pricing_Table extends Widget_Base {
321
  /*Link Target*/
322
  $this->add_control('premium_pricing_table_button_link_target',
323
  [
324
- 'label' => esc_html__('Link Target', 'premium-addons-for-elementor'),
325
  'type' => Controls_Manager::SELECT,
326
- 'description' => esc_html__( ' Where would you like the link be opened?', 'premium-addons-for-elementor' ),
327
  'options' => [
328
- 'blank' => esc_html('Blank'),
329
- 'parent' => esc_html('Parent'),
330
- 'self' => esc_html('Self'),
331
- 'top' => esc_html('Top'),
332
  ],
333
- 'default' => esc_html__('blank','premium-addons-for-elementor'),
334
  'label_block' => true,
335
  ]
336
  );
@@ -341,7 +341,7 @@ class Premium_Pricing_Table extends Widget_Base {
341
  /*Button Content Section*/
342
  $this->start_controls_section('premium_pricing_table_bagde_section',
343
  [
344
- 'label' => esc_html__('Badge', 'premium-addons-for-elementor'),
345
  'condition' => [
346
  'premium_pricing_table_badge_switcher' => 'yes',
347
  ]
@@ -350,8 +350,8 @@ class Premium_Pricing_Table extends Widget_Base {
350
 
351
  $this->add_control('premium_pricing_table_badge_text',
352
  [
353
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
354
- 'default' => esc_html__('Popular', 'premium-addons-for-elementor'),
355
  'type' => Controls_Manager::TEXT,
356
  'dynamic' => [ 'active' => true ],
357
  'label_block' => true,
@@ -360,7 +360,7 @@ class Premium_Pricing_Table extends Widget_Base {
360
 
361
  $this->add_responsive_control('premium_pricing_table_badge_left_size',
362
  [
363
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
364
  'type' => Controls_Manager::SLIDER,
365
  'range' => [
366
  'px' => [
@@ -379,7 +379,7 @@ class Premium_Pricing_Table extends Widget_Base {
379
 
380
  $this->add_control('premium_pricing_table_badge_right_size',
381
  [
382
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
383
  'type' => Controls_Manager::SLIDER,
384
  'range' => [
385
  'px' => [
@@ -398,11 +398,11 @@ class Premium_Pricing_Table extends Widget_Base {
398
 
399
  $this->add_control('premium_pricing_table_badge_position',
400
  [
401
- 'label' => esc_html__('Position', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::SELECT,
403
  'options' => [
404
- 'right' => esc_html__('Right', 'premium-addons-for-elementor'),
405
- 'left' => esc_html__('Left', 'premium-addons-for-elementor'),
406
  ],
407
  'default' => 'right',
408
  ]
@@ -413,20 +413,20 @@ class Premium_Pricing_Table extends Widget_Base {
413
  /* Start Title Settings Section */
414
  $this->start_controls_section('premium_pricing_table_title',
415
  [
416
- 'label' => esc_html__('Display Options', 'premium-addons-for-elementor'),
417
  ]
418
  );
419
 
420
  $this->add_control('premium_pricing_table_icon_switcher',
421
  [
422
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
423
  'type' => Controls_Manager::SWITCHER,
424
  ]
425
  );
426
 
427
  $this->add_control('premium_pricing_table_title_switcher',
428
  [
429
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
430
  'type' => Controls_Manager::SWITCHER,
431
  'default' => 'yes',
432
  ]
@@ -434,7 +434,7 @@ class Premium_Pricing_Table extends Widget_Base {
434
 
435
  $this->add_control('premium_pricing_table_price_switcher',
436
  [
437
- 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
438
  'type' => Controls_Manager::SWITCHER,
439
  'default' => 'yes',
440
  ]
@@ -442,7 +442,7 @@ class Premium_Pricing_Table extends Widget_Base {
442
 
443
  $this->add_control('premium_pricing_table_list_switcher',
444
  [
445
- 'label' => esc_html__('Features', 'premium-addons-for-elementor'),
446
  'type' => Controls_Manager::SWITCHER,
447
  'default' => 'yes',
448
  ]
@@ -450,14 +450,14 @@ class Premium_Pricing_Table extends Widget_Base {
450
 
451
  $this->add_control('premium_pricing_table_description_switcher',
452
  [
453
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
454
  'type' => Controls_Manager::SWITCHER,
455
  ]
456
  );
457
 
458
  $this->add_control('premium_pricing_table_button_switcher',
459
  [
460
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
461
  'type' => Controls_Manager::SWITCHER,
462
  'default' => 'yes',
463
  ]
@@ -465,7 +465,7 @@ class Premium_Pricing_Table extends Widget_Base {
465
 
466
  $this->add_control('premium_pricing_table_badge_switcher',
467
  [
468
- 'label' => esc_html__('Badge', 'premium-addons-for-elementor'),
469
  'type' => Controls_Manager::SWITCHER,
470
  'default' => 'yes',
471
  ]
@@ -477,7 +477,7 @@ class Premium_Pricing_Table extends Widget_Base {
477
  /*Start Icon Style Settings */
478
  $this->start_controls_section('premium_pricing_icon_style_settings',
479
  [
480
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
481
  'tab' => Controls_Manager::TAB_STYLE,
482
  'condition' => [
483
  'premium_pricing_table_icon_switcher' => 'yes',
@@ -488,7 +488,7 @@ class Premium_Pricing_Table extends Widget_Base {
488
  /*Icon Color*/
489
  $this->add_control('premium_pricing_icon_color',
490
  [
491
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
492
  'type' => Controls_Manager::COLOR,
493
  'scheme' => [
494
  'type' => Scheme_Color::get_type(),
@@ -502,7 +502,7 @@ class Premium_Pricing_Table extends Widget_Base {
502
 
503
  $this->add_control('premium_pricing_icon_size',
504
  [
505
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
506
  'type' => Controls_Manager::SLIDER,
507
  'default' => [
508
  'size' => 25,
@@ -515,7 +515,7 @@ class Premium_Pricing_Table extends Widget_Base {
515
 
516
  $this->add_control('premium_pricing_icon_back_color',
517
  [
518
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
519
  'type' => Controls_Manager::COLOR,
520
  'scheme' => [
521
  'type' => Scheme_Color::get_type(),
@@ -529,7 +529,7 @@ class Premium_Pricing_Table extends Widget_Base {
529
 
530
  $this->add_responsive_control('premium_pricing_icon_inner_padding',
531
  [
532
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
533
  'type' => Controls_Manager::SLIDER,
534
  'size_units' => ['px','em'],
535
  'default' => [
@@ -552,7 +552,7 @@ class Premium_Pricing_Table extends Widget_Base {
552
 
553
  $this->add_control('premium_pricing_icon_inner_radius',
554
  [
555
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
556
  'type' => Controls_Manager::SLIDER,
557
  'size_units' => ['px', '%' , 'em'],
558
  'default' => [
@@ -568,7 +568,7 @@ class Premium_Pricing_Table extends Widget_Base {
568
 
569
  $this->add_control('premium_pricing_icon_container_heading',
570
  [
571
- 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
572
  'type' => Controls_Manager::HEADING,
573
  ]
574
  );
@@ -595,7 +595,7 @@ class Premium_Pricing_Table extends Widget_Base {
595
  /*Icon Border Radius*/
596
  $this->add_control('premium_pricing_icon_border_radius',
597
  [
598
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
599
  'type' => Controls_Manager::SLIDER,
600
  'size_units' => ['px', '%' ,'em'],
601
  'selectors' => [
@@ -607,7 +607,7 @@ class Premium_Pricing_Table extends Widget_Base {
607
  /*Icon Margin*/
608
  $this->add_responsive_control('premium_pricing_icon_margin',
609
  [
610
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
611
  'type' => Controls_Manager::DIMENSIONS,
612
  'size_units' => ['px', 'em', '%'],
613
  'default' => [
@@ -626,7 +626,7 @@ class Premium_Pricing_Table extends Widget_Base {
626
  /*Icon Padding*/
627
  $this->add_responsive_control('premium_pricing_icon_padding',
628
  [
629
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
630
  'type' => Controls_Manager::DIMENSIONS,
631
  'size_units' => ['px', 'em', '%'],
632
  'default' => [
@@ -648,7 +648,7 @@ class Premium_Pricing_Table extends Widget_Base {
648
  /*Start Title Style Settings */
649
  $this->start_controls_section('premium_pricing_title_style_settings',
650
  [
651
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
652
  'tab' => Controls_Manager::TAB_STYLE,
653
  'condition' => [
654
  'premium_pricing_table_title_switcher' => 'yes',
@@ -659,7 +659,7 @@ class Premium_Pricing_Table extends Widget_Base {
659
  /*Title Color*/
660
  $this->add_control('premium_pricing_title_color',
661
  [
662
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
663
  'type' => Controls_Manager::COLOR,
664
  'scheme' => [
665
  'type' => Scheme_Color::get_type(),
@@ -694,7 +694,7 @@ class Premium_Pricing_Table extends Widget_Base {
694
  /*Title Margin*/
695
  $this->add_responsive_control('premium_pricing_title_margin',
696
  [
697
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
698
  'type' => Controls_Manager::DIMENSIONS,
699
  'size_units' => ['px', 'em', '%'],
700
  'default' => [
@@ -713,7 +713,7 @@ class Premium_Pricing_Table extends Widget_Base {
713
  /*Title Padding*/
714
  $this->add_responsive_control('premium_pricing_title_padding',
715
  [
716
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
717
  'type' => Controls_Manager::DIMENSIONS,
718
  'size_units' => ['px', 'em', '%'],
719
  'default' => [
@@ -735,7 +735,7 @@ class Premium_Pricing_Table extends Widget_Base {
735
  /*Start Price Style Settings */
736
  $this->start_controls_section('premium_pricing_price_style_settings',
737
  [
738
- 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
739
  'tab' => Controls_Manager::TAB_STYLE,
740
  'condition' => [
741
  'premium_pricing_table_price_switcher' => 'yes',
@@ -745,7 +745,7 @@ class Premium_Pricing_Table extends Widget_Base {
745
 
746
  $this->add_control('premium_pricing_slashed_price_heading',
747
  [
748
- 'label' => esc_html__('Slashed Price', 'premium-addons-for-elementor'),
749
  'type' => Controls_Manager::HEADING,
750
  ]
751
  );
@@ -753,7 +753,7 @@ class Premium_Pricing_Table extends Widget_Base {
753
  /*Slashed Price Color*/
754
  $this->add_control('premium_pricing_slashed_price_color',
755
  [
756
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
757
  'type' => Controls_Manager::COLOR,
758
  'scheme' => [
759
  'type' => Scheme_Color::get_type(),
@@ -778,7 +778,7 @@ class Premium_Pricing_Table extends Widget_Base {
778
  /*Slashed Price Margin*/
779
  $this->add_responsive_control('premium_pricing_slashed_price_margin',
780
  [
781
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
782
  'type' => Controls_Manager::DIMENSIONS,
783
  'size_units' => ['px', 'em', '%'],
784
  'selectors' => [
@@ -789,7 +789,7 @@ class Premium_Pricing_Table extends Widget_Base {
789
 
790
  $this->add_control('premium_pricing_currency_heading',
791
  [
792
- 'label' => esc_html__('Currency', 'premium-addons-for-elementor'),
793
  'type' => Controls_Manager::HEADING,
794
  ]
795
  );
@@ -797,7 +797,7 @@ class Premium_Pricing_Table extends Widget_Base {
797
  /*Currency Color*/
798
  $this->add_control('premium_pricing_currency_color',
799
  [
800
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
801
  'type' => Controls_Manager::COLOR,
802
  'scheme' => [
803
  'type' => Scheme_Color::get_type(),
@@ -813,7 +813,7 @@ class Premium_Pricing_Table extends Widget_Base {
813
  $this->add_group_control(
814
  Group_Control_Typography::get_type(),
815
  [
816
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
817
  'name' => 'currency_typo',
818
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
819
  'selector' => '{{WRAPPER}} .premium-pricing-price-currency',
@@ -822,19 +822,19 @@ class Premium_Pricing_Table extends Widget_Base {
822
 
823
  $this->add_responsive_control('premium_pricing_currency_align',
824
  [
825
- 'label' => esc_html__( 'Vertical Align', 'premium-addons-for-elementor' ),
826
  'type' => Controls_Manager::CHOOSE,
827
  'options' => [
828
  'top' => [
829
- 'title'=> esc_html__( 'Top', 'premium-addons-for-elementor' ),
830
  'icon' => 'fa fa-long-arrow-up',
831
  ],
832
  'unset' => [
833
- 'title'=> esc_html__( 'Unset', 'premium-addons-for-elementor' ),
834
  'icon' => 'fa fa-align-justify',
835
  ],
836
  'bottom' => [
837
- 'title'=> esc_html__( 'Bottom', 'premium-addons-for-elementor' ),
838
  'icon' => 'fa fa-long-arrow-down',
839
  ],
840
  ],
@@ -848,7 +848,7 @@ class Premium_Pricing_Table extends Widget_Base {
848
 
849
  $this->add_responsive_control('premium_pricing_currency_margin',
850
  [
851
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
852
  'type' => Controls_Manager::DIMENSIONS,
853
  'size_units' => ['px', 'em', '%'],
854
  'selectors' => [
@@ -861,7 +861,7 @@ class Premium_Pricing_Table extends Widget_Base {
861
 
862
  $this->add_control('premium_pricing_price_heading',
863
  [
864
- 'label' => esc_html__('Price', 'premium-addons-for-elementor'),
865
  'type' => Controls_Manager::HEADING,
866
  ]
867
  );
@@ -869,7 +869,7 @@ class Premium_Pricing_Table extends Widget_Base {
869
  /*Price Color*/
870
  $this->add_control('premium_pricing_price_color',
871
  [
872
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
873
  'type' => Controls_Manager::COLOR,
874
  'scheme' => [
875
  'type' => Scheme_Color::get_type(),
@@ -886,7 +886,7 @@ class Premium_Pricing_Table extends Widget_Base {
886
  $this->add_group_control(
887
  Group_Control_Typography::get_type(),
888
  [
889
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
890
  'name' => 'price_typo',
891
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
892
  'selector' => '{{WRAPPER}} .premium-pricing-price-value',
@@ -895,7 +895,7 @@ class Premium_Pricing_Table extends Widget_Base {
895
 
896
  $this->add_responsive_control('premium_pricing_price_margin',
897
  [
898
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
899
  'type' => Controls_Manager::DIMENSIONS,
900
  'size_units' => ['px', 'em', '%'],
901
  'selectors' => [
@@ -906,7 +906,7 @@ class Premium_Pricing_Table extends Widget_Base {
906
 
907
  $this->add_control('premium_pricing_sep_heading',
908
  [
909
- 'label' => esc_html__('Divider', 'premium-addons-for-elementor'),
910
  'type' => Controls_Manager::HEADING,
911
  ]
912
  );
@@ -914,7 +914,7 @@ class Premium_Pricing_Table extends Widget_Base {
914
  /*Separator Color*/
915
  $this->add_control('premium_pricing_sep_color',
916
  [
917
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
918
  'type' => Controls_Manager::COLOR,
919
  'scheme' => [
920
  'type' => Scheme_Color::get_type(),
@@ -931,7 +931,7 @@ class Premium_Pricing_Table extends Widget_Base {
931
  $this->add_group_control(
932
  Group_Control_Typography::get_type(),
933
  [
934
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
935
  'name' => 'separator_typo',
936
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
937
  'selector' => '{{WRAPPER}} .premium-pricing-price-separator',
@@ -940,7 +940,7 @@ class Premium_Pricing_Table extends Widget_Base {
940
 
941
  $this->add_responsive_control('premium_pricing_sep_margin',
942
  [
943
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
944
  'type' => Controls_Manager::DIMENSIONS,
945
  'size_units' => ['px', 'em', '%'],
946
  'default' => [
@@ -958,7 +958,7 @@ class Premium_Pricing_Table extends Widget_Base {
958
 
959
  $this->add_control('premium_pricing_dur_heading',
960
  [
961
- 'label' => esc_html__('Duration', 'premium-addons-for-elementor'),
962
  'type' => Controls_Manager::HEADING,
963
  ]
964
  );
@@ -966,7 +966,7 @@ class Premium_Pricing_Table extends Widget_Base {
966
  /*Duration Color*/
967
  $this->add_control('premium_pricing_dur_color',
968
  [
969
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
970
  'type' => Controls_Manager::COLOR,
971
  'scheme' => [
972
  'type' => Scheme_Color::get_type(),
@@ -983,7 +983,7 @@ class Premium_Pricing_Table extends Widget_Base {
983
  $this->add_group_control(
984
  Group_Control_Typography::get_type(),
985
  [
986
- 'label' => esc_html__('Typography', 'premium-addons-for-elementor'),
987
  'name' => 'duration_typo',
988
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
989
  'selector' => '{{WRAPPER}} .premium-pricing-price-duration',
@@ -992,7 +992,7 @@ class Premium_Pricing_Table extends Widget_Base {
992
 
993
  $this->add_responsive_control('premium_pricing_dur_margin',
994
  [
995
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
996
  'type' => Controls_Manager::DIMENSIONS,
997
  'size_units' => ['px', 'em', '%'],
998
  'selectors' => [
@@ -1004,7 +1004,7 @@ class Premium_Pricing_Table extends Widget_Base {
1004
 
1005
  $this->add_control('premium_pricing_price_container_heading',
1006
  [
1007
- 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
1008
  'type' => Controls_Manager::HEADING,
1009
  ]
1010
  );
@@ -1022,7 +1022,7 @@ class Premium_Pricing_Table extends Widget_Base {
1022
  /*Price Margin*/
1023
  $this->add_responsive_control('premium_pricing_price_container_margin',
1024
  [
1025
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1026
  'type' => Controls_Manager::DIMENSIONS,
1027
  'size_units' => ['px', 'em', '%'],
1028
  'default' => [
@@ -1041,7 +1041,7 @@ class Premium_Pricing_Table extends Widget_Base {
1041
  /*Price Padding*/
1042
  $this->add_responsive_control('premium_pricing_price_padding',
1043
  [
1044
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1045
  'type' => Controls_Manager::DIMENSIONS,
1046
  'size_units' => ['px', 'em', '%'],
1047
  'selectors' => [
@@ -1056,7 +1056,7 @@ class Premium_Pricing_Table extends Widget_Base {
1056
  /*Start List Style Settings*/
1057
  $this->start_controls_section('premium_pricing_list_style_settings',
1058
  [
1059
- 'label' => esc_html__('Features', 'premium-addons-for-elementor'),
1060
  'tab' => Controls_Manager::TAB_STYLE,
1061
  'condition' => [
1062
  'premium_pricing_table_list_switcher' => 'yes',
@@ -1066,14 +1066,14 @@ class Premium_Pricing_Table extends Widget_Base {
1066
 
1067
  $this->add_control('premium_pricing_features_text_heading',
1068
  [
1069
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
1070
  'type' => Controls_Manager::HEADING,
1071
  ]
1072
  );
1073
 
1074
  $this->add_control('premium_pricing_list_text_color',
1075
  [
1076
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1077
  'type' => Controls_Manager::COLOR,
1078
  'scheme' => [
1079
  'type' => Scheme_Color::get_type(),
@@ -1096,7 +1096,7 @@ class Premium_Pricing_Table extends Widget_Base {
1096
 
1097
  $this->add_control('premium_pricing_features_icon_heading',
1098
  [
1099
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
1100
  'type' => Controls_Manager::HEADING,
1101
  ]
1102
  );
@@ -1104,7 +1104,7 @@ class Premium_Pricing_Table extends Widget_Base {
1104
  /*Button Color*/
1105
  $this->add_control('premium_pricing_list_icon_color',
1106
  [
1107
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1108
  'type' => Controls_Manager::COLOR,
1109
  'scheme' => [
1110
  'type' => Scheme_Color::get_type(),
@@ -1118,7 +1118,7 @@ class Premium_Pricing_Table extends Widget_Base {
1118
 
1119
  $this->add_control('premium_pricing_list_icon_size',
1120
  [
1121
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
1122
  'type' => Controls_Manager::SLIDER,
1123
  'selectors' => [
1124
  '{{WRAPPER}} .premium-pricing-list i' => 'font-size: {{SIZE}}px',
@@ -1128,7 +1128,7 @@ class Premium_Pricing_Table extends Widget_Base {
1128
 
1129
  $this->add_control('premium_pricing_list_icon_spacing',
1130
  [
1131
- 'label' => esc_html__('Spacing', 'premium-addons-for-elementor'),
1132
  'type' => Controls_Manager::SLIDER,
1133
  'default' => [
1134
  'size' => 5
@@ -1141,7 +1141,7 @@ class Premium_Pricing_Table extends Widget_Base {
1141
 
1142
  $this->add_control('premium_pricing_list_item_margin',
1143
  [
1144
- 'label' => esc_html__('Vertical Spacing', 'premium-addons-for-elementor'),
1145
  'type' => Controls_Manager::SLIDER,
1146
  'selectors' => [
1147
  '{{WRAPPER}} .premium-pricing-list li' => 'margin-bottom: {{SIZE}}px;'
@@ -1151,7 +1151,7 @@ class Premium_Pricing_Table extends Widget_Base {
1151
 
1152
  $this->add_control('premium_pricing_features_container_heading',
1153
  [
1154
- 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
1155
  'type' => Controls_Manager::HEADING,
1156
  ]
1157
  );
@@ -1177,7 +1177,7 @@ class Premium_Pricing_Table extends Widget_Base {
1177
  /*List Border Radius*/
1178
  $this->add_control('premium_pricing_list_border_radius',
1179
  [
1180
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1181
  'type' => Controls_Manager::SLIDER,
1182
  'size_units' => ['px', 'em' , '%'],
1183
  'selectors' => [
@@ -1189,7 +1189,7 @@ class Premium_Pricing_Table extends Widget_Base {
1189
  /*List Margin*/
1190
  $this->add_responsive_control('premium_pricing_list_margin',
1191
  [
1192
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1193
  'type' => Controls_Manager::DIMENSIONS,
1194
  'size_units' => ['px', 'em', '%'],
1195
  'default' => [
@@ -1207,7 +1207,7 @@ class Premium_Pricing_Table extends Widget_Base {
1207
  /*List Padding*/
1208
  $this->add_responsive_control('premium_pricing_list_padding',
1209
  [
1210
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1211
  'type' => Controls_Manager::DIMENSIONS,
1212
  'size_units' => ['px', 'em', '%'],
1213
  'selectors' => [
@@ -1220,7 +1220,7 @@ class Premium_Pricing_Table extends Widget_Base {
1220
  /*Start Description Style Settings */
1221
  $this->start_controls_section('premium_pricing_description_style_settings',
1222
  [
1223
- 'label' => esc_html__('Description', 'premium-addons-for-elementor'),
1224
  'tab' => Controls_Manager::TAB_STYLE,
1225
  'condition' => [
1226
  'premium_pricing_table_description_switcher' => 'yes',
@@ -1230,7 +1230,7 @@ class Premium_Pricing_Table extends Widget_Base {
1230
 
1231
  $this->add_control('premium_pricing_desc_text_heading',
1232
  [
1233
- 'label' => esc_html__('Text', 'premium-addons-for-elementor'),
1234
  'type' => Controls_Manager::HEADING,
1235
  ]
1236
  );
@@ -1238,7 +1238,7 @@ class Premium_Pricing_Table extends Widget_Base {
1238
  /*Description Color*/
1239
  $this->add_control('premium_pricing_desc_color',
1240
  [
1241
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1242
  'type' => Controls_Manager::COLOR,
1243
  'scheme' => [
1244
  'type' => Scheme_Color::get_type(),
@@ -1262,7 +1262,7 @@ class Premium_Pricing_Table extends Widget_Base {
1262
 
1263
  $this->add_control('premium_pricing_desc_container_heading',
1264
  [
1265
- 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
1266
  'type' => Controls_Manager::HEADING,
1267
  ]
1268
  );
@@ -1280,7 +1280,7 @@ class Premium_Pricing_Table extends Widget_Base {
1280
  /*Description Margin*/
1281
  $this->add_responsive_control('premium_pricing_desc_margin',
1282
  [
1283
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1284
  'type' => Controls_Manager::DIMENSIONS,
1285
  'size_units' => ['px', 'em', '%'],
1286
  'default' => [
@@ -1299,7 +1299,7 @@ class Premium_Pricing_Table extends Widget_Base {
1299
  /*Description Padding*/
1300
  $this->add_responsive_control('premium_pricing_desc_padding',
1301
  [
1302
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1303
  'type' => Controls_Manager::DIMENSIONS,
1304
  'size_units' => ['px', 'em', '%'],
1305
  'selectors' => [
@@ -1314,7 +1314,7 @@ class Premium_Pricing_Table extends Widget_Base {
1314
  /*Start Button Style Settings */
1315
  $this->start_controls_section('premium_pricing_button_style_settings',
1316
  [
1317
- 'label' => esc_html__('Button', 'premium-addons-for-elementor'),
1318
  'tab' => Controls_Manager::TAB_STYLE,
1319
  'condition' => [
1320
  'premium_pricing_table_button_switcher' => 'yes',
@@ -1325,7 +1325,7 @@ class Premium_Pricing_Table extends Widget_Base {
1325
  /*Button Color*/
1326
  $this->add_control('premium_pricing_button_color',
1327
  [
1328
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
1329
  'type' => Controls_Manager::COLOR,
1330
  'scheme' => [
1331
  'type' => Scheme_Color::get_type(),
@@ -1339,7 +1339,7 @@ class Premium_Pricing_Table extends Widget_Base {
1339
 
1340
  $this->add_control('premium_pricing_button_hover_color',
1341
  [
1342
- 'label' => esc_html__('Hover Text Color', 'premium-addons-for-elementor'),
1343
  'type' => Controls_Manager::COLOR,
1344
  'scheme' => [
1345
  'type' => Scheme_Color::get_type(),
@@ -1365,7 +1365,7 @@ class Premium_Pricing_Table extends Widget_Base {
1365
 
1366
  $this->start_controls_tab('premium_pricing_table_button_style_normal',
1367
  [
1368
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
1369
  ]
1370
  );
1371
 
@@ -1391,7 +1391,7 @@ class Premium_Pricing_Table extends Widget_Base {
1391
  /*Button Border Radius*/
1392
  $this->add_control('premium_pricing_table_box_button_radius',
1393
  [
1394
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1395
  'type' => Controls_Manager::SLIDER,
1396
  'size_units' => ['px', 'em' , '%'],
1397
  'selectors' => [
@@ -1404,7 +1404,7 @@ class Premium_Pricing_Table extends Widget_Base {
1404
  $this->add_group_control(
1405
  Group_Control_Box_Shadow::get_type(),
1406
  [
1407
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1408
  'name' => 'premium_pricing_table_button_box_shadow',
1409
  'selector' => '{{WRAPPER}} .premium-pricing-price-button',
1410
  ]
@@ -1413,7 +1413,7 @@ class Premium_Pricing_Table extends Widget_Base {
1413
  /*Button Margin*/
1414
  $this->add_responsive_control('premium_pricing_button_margin',
1415
  [
1416
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1417
  'type' => Controls_Manager::DIMENSIONS,
1418
  'size_units' => ['px', 'em', '%'],
1419
  'selectors' => [
@@ -1424,7 +1424,7 @@ class Premium_Pricing_Table extends Widget_Base {
1424
  /*Button Padding*/
1425
  $this->add_responsive_control('premium_pricing_button_padding',
1426
  [
1427
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1428
  'type' => Controls_Manager::DIMENSIONS,
1429
  'size_units' => ['px', 'em', '%'],
1430
  'default' => [
@@ -1443,7 +1443,7 @@ class Premium_Pricing_Table extends Widget_Base {
1443
 
1444
  $this->start_controls_tab('premium_pricing_table_button_style_hover',
1445
  [
1446
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
1447
  ]
1448
  );
1449
 
@@ -1469,7 +1469,7 @@ class Premium_Pricing_Table extends Widget_Base {
1469
  /*Button Border Radius*/
1470
  $this->add_control('premium_pricing_table_button_border_radius_hover',
1471
  [
1472
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1473
  'type' => Controls_Manager::SLIDER,
1474
  'size_units' => ['px', 'em' , '%' ],
1475
  'selectors' => [
@@ -1482,7 +1482,7 @@ class Premium_Pricing_Table extends Widget_Base {
1482
  $this->add_group_control(
1483
  Group_Control_Box_Shadow::get_type(),
1484
  [
1485
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1486
  'name' => 'premium_pricing_table_button_shadow_hover',
1487
  'selector' => '{{WRAPPER}} .premium-pricing-price-button:hover',
1488
  ]
@@ -1491,7 +1491,7 @@ class Premium_Pricing_Table extends Widget_Base {
1491
  /*Button Margin*/
1492
  $this->add_responsive_control('premium_pricing_button_margin_hover',
1493
  [
1494
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1495
  'type' => Controls_Manager::DIMENSIONS,
1496
  'size_units' => ['px', 'em', '%'],
1497
  'selectors' => [
@@ -1502,7 +1502,7 @@ class Premium_Pricing_Table extends Widget_Base {
1502
  /*Button Padding*/
1503
  $this->add_responsive_control('premium_pricing_button_padding_hover',
1504
  [
1505
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1506
  'type' => Controls_Manager::DIMENSIONS,
1507
  'default' => [
1508
  'top' => 20,
@@ -1527,7 +1527,7 @@ class Premium_Pricing_Table extends Widget_Base {
1527
 
1528
  $this->start_controls_section('premium_pricing_table_badge_style',
1529
  [
1530
- 'label' => esc_html__('Badge', 'premium-addons-for-elementor'),
1531
  'tab' => Controls_Manager::TAB_STYLE,
1532
  'condition' => [
1533
  'premium_pricing_table_badge_switcher' => 'yes'
@@ -1537,7 +1537,7 @@ class Premium_Pricing_Table extends Widget_Base {
1537
 
1538
  $this->add_control('premium_pricing_badge_text_color',
1539
  [
1540
- 'label' => esc_html__('Text Color', 'premium-addons-for-elementor'),
1541
  'type' => Controls_Manager::COLOR,
1542
  'scheme' => [
1543
  'type' => Scheme_Color::get_type(),
@@ -1561,7 +1561,7 @@ class Premium_Pricing_Table extends Widget_Base {
1561
 
1562
  $this->add_responsive_control('premium_pricing_table_badge_right_top',
1563
  [
1564
- 'label' => esc_html__('Vertical Distance', 'premium-addons-for-elementor'),
1565
  'type' => Controls_Manager::SLIDER,
1566
  'range' => [
1567
  'px'=> [
@@ -1577,7 +1577,7 @@ class Premium_Pricing_Table extends Widget_Base {
1577
 
1578
  $this->add_responsive_control('premium_pricing_table_badge_right_right',
1579
  [
1580
- 'label' => esc_html__('Horizontal Distance', 'premium-addons-for-elementor'),
1581
  'type' => Controls_Manager::SLIDER,
1582
  'range' => [
1583
  'px'=> [
@@ -1596,7 +1596,7 @@ class Premium_Pricing_Table extends Widget_Base {
1596
 
1597
  $this->add_responsive_control('premium_pricing_table_badge_right_left',
1598
  [
1599
- 'label' => esc_html__('Horizontal Distance', 'premium-addons-for-elementor'),
1600
  'type' => Controls_Manager::SLIDER,
1601
  'selectors' => [
1602
  '{{WRAPPER}} .premium-badge-left .corner span' => 'left: {{SIZE}}px;'
@@ -1610,7 +1610,7 @@ class Premium_Pricing_Table extends Widget_Base {
1610
  /*Badge Color*/
1611
  $this->add_control('premium_pricing_badge_left_color',
1612
  [
1613
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
1614
  'type' => Controls_Manager::COLOR,
1615
  'scheme' => [
1616
  'type' => Scheme_Color::get_type(),
@@ -1627,7 +1627,7 @@ class Premium_Pricing_Table extends Widget_Base {
1627
 
1628
  $this->add_control('premium_pricing_badge_right_color',
1629
  [
1630
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
1631
  'type' => Controls_Manager::COLOR,
1632
  'scheme' => [
1633
  'type' => Scheme_Color::get_type(),
@@ -1647,7 +1647,7 @@ class Premium_Pricing_Table extends Widget_Base {
1647
  /*Start Box Style Settings*/
1648
  $this->start_controls_section('premium_pricing_box_style_settings',
1649
  [
1650
- 'label' => esc_html__('Box Settings', 'premium-addons-for-elementor'),
1651
  'tab' => Controls_Manager::TAB_STYLE,
1652
  ]
1653
  );
@@ -1656,7 +1656,7 @@ class Premium_Pricing_Table extends Widget_Base {
1656
 
1657
  $this->start_controls_tab('premium_pricing_table_box_style_normal',
1658
  [
1659
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
1660
  ]
1661
  );
1662
 
@@ -1682,7 +1682,7 @@ class Premium_Pricing_Table extends Widget_Base {
1682
  /*Box Border Radius*/
1683
  $this->add_control('premium_pricing_table_box_border_radius',
1684
  [
1685
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1686
  'type' => Controls_Manager::SLIDER,
1687
  'size_units' => ['px', '%' ,'em'],
1688
  'selectors' => [
@@ -1695,7 +1695,7 @@ class Premium_Pricing_Table extends Widget_Base {
1695
  $this->add_group_control(
1696
  Group_Control_Box_Shadow::get_type(),
1697
  [
1698
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1699
  'name' => 'premium_pricing_table_box_shadow',
1700
  'selector' => '{{WRAPPER}} .premium-pricing-table-container',
1701
  ]
@@ -1704,7 +1704,7 @@ class Premium_Pricing_Table extends Widget_Base {
1704
  /*Box Margin*/
1705
  $this->add_responsive_control('premium_pricing_box_margin',
1706
  [
1707
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1708
  'type' => Controls_Manager::DIMENSIONS,
1709
  'size_units' => ['px', 'em', '%'],
1710
  'selectors' => [
@@ -1715,7 +1715,7 @@ class Premium_Pricing_Table extends Widget_Base {
1715
  /*Box Padding*/
1716
  $this->add_responsive_control('premium_pricing_box_padding',
1717
  [
1718
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1719
  'type' => Controls_Manager::DIMENSIONS,
1720
  'size_units' => ['px', 'em', '%'],
1721
  'default' => [
@@ -1734,7 +1734,7 @@ class Premium_Pricing_Table extends Widget_Base {
1734
 
1735
  $this->start_controls_tab('premium_pricing_table_box_style_hover',
1736
  [
1737
- 'label' => esc_html__('Hover', 'premium-addons-for-elementor'),
1738
  ]
1739
  );
1740
 
@@ -1760,7 +1760,7 @@ class Premium_Pricing_Table extends Widget_Base {
1760
  /*Box Border Radius*/
1761
  $this->add_control('premium_pricing_table_box_border_radius_hover',
1762
  [
1763
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
1764
  'type' => Controls_Manager::SLIDER,
1765
  'size_units' => ['px', 'em' , '%' ],
1766
  'selectors' => [
@@ -1773,7 +1773,7 @@ class Premium_Pricing_Table extends Widget_Base {
1773
  $this->add_group_control(
1774
  Group_Control_Box_Shadow::get_type(),
1775
  [
1776
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
1777
  'name' => 'premium_pricing_table_box_shadow_hover',
1778
  'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
1779
  ]
@@ -1782,7 +1782,7 @@ class Premium_Pricing_Table extends Widget_Base {
1782
  /*Box Margin*/
1783
  $this->add_responsive_control('premium_pricing_box_margin_hover',
1784
  [
1785
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
1786
  'type' => Controls_Manager::DIMENSIONS,
1787
  'size_units' => ['px', 'em', '%'],
1788
  'selectors' => [
@@ -1793,7 +1793,7 @@ class Premium_Pricing_Table extends Widget_Base {
1793
  /*Box Padding*/
1794
  $this->add_responsive_control('premium_pricing_box_padding_hover',
1795
  [
1796
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1797
  'type' => Controls_Manager::DIMENSIONS,
1798
  'size_units' => ['px', 'em', '%'],
1799
  'default' => [
33
  /*Title Content Section*/
34
  $this->start_controls_section('premium_pricing_table_icon_section',
35
  [
36
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
37
  'condition' => [
38
  'premium_pricing_table_icon_switcher' => 'yes',
39
  ]
42
 
43
  $this->add_control('premium_pricing_table_icon_selection',
44
  [
45
+ 'label' => __('Select an Icon', 'premium-addons-for-elementor'),
46
  'type' => Controls_Manager::ICON,
47
  'default' => 'fa fa-check'
48
  ]
53
  /*Title Content Section*/
54
  $this->start_controls_section('premium_pricing_table_title_section',
55
  [
56
+ 'label' => __('Title', 'premium-addons-for-elementor'),
57
  'condition' => [
58
  'premium_pricing_table_title_switcher' => 'yes',
59
  ]
63
  /*Header Text*/
64
  $this->add_control('premium_pricing_table_title_text',
65
  [
66
+ 'label' => __('Text', 'premium-addons-for-elementor'),
67
  'default' => 'Pricing Table',
68
  'type' => Controls_Manager::TEXT,
69
  'dynamic' => [ 'active' => true ],
74
  /*Header Tag*/
75
  $this->add_control('premium_pricing_table_title_size',
76
  [
77
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
78
+ 'description' => __( 'Select HTML tag for the title', 'premium-addons-for-elementor' ),
79
  'type' => Controls_Manager::SELECT,
80
  'default' => 'h3',
81
  'options' => [
96
  /*Price Content Section*/
97
  $this->start_controls_section('premium_pricing_table_price_section',
98
  [
99
+ 'label' => __('Price', 'premium-addons-for-elementor'),
100
  'condition' => [
101
  'premium_pricing_table_price_switcher' => 'yes',
102
  ]
106
  /*Price Value*/
107
  $this->add_control('premium_pricing_table_slashed_price_value',
108
  [
109
+ 'label' => __('Slashed Price', 'premium-addons-for-elementor'),
110
  'type' => Controls_Manager::TEXT,
111
  'label_block' => true,
112
  ]
115
  /*Price Currency*/
116
  $this->add_control('premium_pricing_table_price_currency',
117
  [
118
+ 'label' => __('Currency', 'premium-addons-for-elementor'),
119
  'default' => '$',
120
  'type' => Controls_Manager::TEXT,
121
  'label_block' => true,
125
  /*Price Value*/
126
  $this->add_control('premium_pricing_table_price_value',
127
  [
128
+ 'label' => __('Price', 'premium-addons-for-elementor'),
129
  'default' => '25',
130
  'type' => Controls_Manager::TEXT,
131
  'label_block' => true,
135
  /*Price Separator*/
136
  $this->add_control('premium_pricing_table_price_separator',
137
  [
138
+ 'label' => __('Divider', 'premium-addons-for-elementor'),
139
  'default' => '/',
140
  'type' => Controls_Manager::TEXT,
141
  'label_block' => true,
145
  /*Price Duration*/
146
  $this->add_control('premium_pricing_table_price_duration',
147
  [
148
+ 'label' => __('Duration', 'premium-addons-for-elementor'),
149
  'default' => 'm',
150
  'type' => Controls_Manager::TEXT,
151
  'label_block' => true,
157
  /*Icon List Content Section*/
158
  $this->start_controls_section('premium_pricing_table_list_section',
159
  [
160
+ 'label' => __('Icon List', 'premium-addons-for-elementor'),
161
  'condition' => [
162
  'premium_pricing_table_list_switcher' => 'yes',
163
  ]
168
 
169
  $repeater->add_control('premium_pricing_list_item_text',
170
  [
171
+ 'label' => __( 'Text', 'premium-addons-for-elementor' ),
172
  'type' => Controls_Manager::TEXT,
173
  'dynamic' => [ 'active' => true ],
174
  'label_block' => true,
177
 
178
  $repeater->add_control('premium_pricing_list_item_icon',
179
  [
180
+ 'label' => __( 'Icon', 'premium-addons-for-elementor' ),
181
  'type' => Controls_Manager::ICON,
182
  ]
183
  );
184
 
185
  $this->add_control('premium_fancy_text_list_items',
186
  [
187
+ 'label' => __( 'Features', 'premium-addons-for-elementor' ),
188
  'type' => Controls_Manager::REPEATER,
189
  'default' => [
190
  [
191
  'premium_pricing_list_item_icon' => 'fa fa-check',
192
+ 'premium_pricing_list_item_text' => __( 'List Item #1', 'premium-addons-for-elementor' ),
193
  ],
194
  [
195
  'premium_pricing_list_item_icon' => 'fa fa-check',
196
+ 'premium_pricing_list_item_text' => __( 'List Item #2', 'premium-addons-for-elementor' ),
197
  ],
198
  [
199
  'premium_pricing_list_item_icon' => 'fa fa-check',
200
+ 'premium_pricing_list_item_text' => __( 'List Item #3', 'premium-addons-for-elementor' ),
201
  ],
202
  ],
203
  'fields' => array_values( $repeater->get_controls() ),
235
  /*Description Content Section*/
236
  $this->start_controls_section('premium_pricing_table_description_section',
237
  [
238
+ 'label' => __('Description', 'premium-addons-for-elementor'),
239
  'condition' => [
240
  'premium_pricing_table_description_switcher' => 'yes',
241
  ]
246
  /*Description Text*/
247
  $this->add_control('premium_pricing_table_description_text',
248
  [
249
+ 'label' => __('Description', 'premium-addons-for-elementor'),
250
  'type' => Controls_Manager::WYSIWYG,
251
+ 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit'
252
  ]
253
  );
254
 
257
  /*Button Content Section*/
258
  $this->start_controls_section('premium_pricing_table_button_section',
259
  [
260
+ 'label' => __('Button', 'premium-addons-for-elementor'),
261
  'condition' => [
262
  'premium_pricing_table_button_switcher' => 'yes',
263
  ]
268
  /*Button Text*/
269
  $this->add_control('premium_pricing_table_button_text',
270
  [
271
+ 'label' => __('Text', 'premium-addons-for-elementor'),
272
+ 'default' => __('Get Started' , 'premium-addons-for-elementor'),
273
  'type' => Controls_Manager::TEXT,
274
  'dynamic' => [ 'active' => true ],
275
  'label_block' => true,
279
  /*Button Url Type*/
280
  $this->add_control('premium_pricing_table_button_url_type',
281
  [
282
+ 'label' => __('Link Type', 'premium-addons-for-elementor'),
283
  'type' => Controls_Manager::SELECT,
284
  'options' => [
285
+ 'url' => __('URL', 'premium-addons-for-elementor'),
286
+ 'link' => __('Existing Page', 'premium-addons-for-elementor'),
287
  ],
288
  'default' => 'url',
289
  'label_block' => true,
294
  /*Button url*/
295
  $this->add_control('premium_pricing_table_button_link',
296
  [
297
+ 'label' => __('Link', 'premium-addons-for-elementor'),
298
  'type' => Controls_Manager::TEXT,
299
  'condition' => [
300
  'premium_pricing_table_button_url_type' => 'url',
306
  /*Button Link to existing content*/
307
  $this->add_control('premium_pricing_table_button_link_existing_content',
308
  [
309
+ 'label' => __('Existing Page', 'premium-addons-for-elementor'),
310
  'type' => Controls_Manager::SELECT2,
311
  'options' => $this->getTemplateInstance()->get_all_post(),
312
  'condition' => [
321
  /*Link Target*/
322
  $this->add_control('premium_pricing_table_button_link_target',
323
  [
324
+ 'label' => __('Link Target', 'premium-addons-for-elementor'),
325
  'type' => Controls_Manager::SELECT,
326
+ 'description' => __( ' Where would you like the link be opened?', 'premium-addons-for-elementor' ),
327
  'options' => [
328
+ 'blank' => 'Blank',
329
+ 'parent' => 'Parent',
330
+ 'self' => 'Self',
331
+ 'top' => 'Top',
332
  ],
333
+ 'default' => 'blank' ,
334
  'label_block' => true,
335
  ]
336
  );
341
  /*Button Content Section*/
342
  $this->start_controls_section('premium_pricing_table_bagde_section',
343
  [
344
+ 'label' => __('Badge', 'premium-addons-for-elementor'),
345
  'condition' => [
346
  'premium_pricing_table_badge_switcher' => 'yes',
347
  ]
350
 
351
  $this->add_control('premium_pricing_table_badge_text',
352
  [
353
+ 'label' => __('Text', 'premium-addons-for-elementor'),
354
+ 'default' => __('Popular', 'premium-addons-for-elementor'),
355
  'type' => Controls_Manager::TEXT,
356
  'dynamic' => [ 'active' => true ],
357
  'label_block' => true,
360
 
361
  $this->add_responsive_control('premium_pricing_table_badge_left_size',
362
  [
363
+ 'label' => __('Size', 'premium-addons-for-elementor'),
364
  'type' => Controls_Manager::SLIDER,
365
  'range' => [
366
  'px' => [
379
 
380
  $this->add_control('premium_pricing_table_badge_right_size',
381
  [
382
+ 'label' => __('Size', 'premium-addons-for-elementor'),
383
  'type' => Controls_Manager::SLIDER,
384
  'range' => [
385
  'px' => [
398
 
399
  $this->add_control('premium_pricing_table_badge_position',
400
  [
401
+ 'label' => __('Position', 'premium-addons-for-elementor'),
402
  'type' => Controls_Manager::SELECT,
403
  'options' => [
404
+ 'right' => __('Right', 'premium-addons-for-elementor'),
405
+ 'left' => __('Left', 'premium-addons-for-elementor'),
406
  ],
407
  'default' => 'right',
408
  ]
413
  /* Start Title Settings Section */
414
  $this->start_controls_section('premium_pricing_table_title',
415
  [
416
+ 'label' => __('Display Options', 'premium-addons-for-elementor'),
417
  ]
418
  );
419
 
420
  $this->add_control('premium_pricing_table_icon_switcher',
421
  [
422
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
423
  'type' => Controls_Manager::SWITCHER,
424
  ]
425
  );
426
 
427
  $this->add_control('premium_pricing_table_title_switcher',
428
  [
429
+ 'label' => __('Title', 'premium-addons-for-elementor'),
430
  'type' => Controls_Manager::SWITCHER,
431
  'default' => 'yes',
432
  ]
434
 
435
  $this->add_control('premium_pricing_table_price_switcher',
436
  [
437
+ 'label' => __('Price', 'premium-addons-for-elementor'),
438
  'type' => Controls_Manager::SWITCHER,
439
  'default' => 'yes',
440
  ]
442
 
443
  $this->add_control('premium_pricing_table_list_switcher',
444
  [
445
+ 'label' => __('Features', 'premium-addons-for-elementor'),
446
  'type' => Controls_Manager::SWITCHER,
447
  'default' => 'yes',
448
  ]
450
 
451
  $this->add_control('premium_pricing_table_description_switcher',
452
  [
453
+ 'label' => __('Description', 'premium-addons-for-elementor'),
454
  'type' => Controls_Manager::SWITCHER,
455
  ]
456
  );
457
 
458
  $this->add_control('premium_pricing_table_button_switcher',
459
  [
460
+ 'label' => __('Button', 'premium-addons-for-elementor'),
461
  'type' => Controls_Manager::SWITCHER,
462
  'default' => 'yes',
463
  ]
465
 
466
  $this->add_control('premium_pricing_table_badge_switcher',
467
  [
468
+ 'label' => __('Badge', 'premium-addons-for-elementor'),
469
  'type' => Controls_Manager::SWITCHER,
470
  'default' => 'yes',
471
  ]
477
  /*Start Icon Style Settings */
478
  $this->start_controls_section('premium_pricing_icon_style_settings',
479
  [
480
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
481
  'tab' => Controls_Manager::TAB_STYLE,
482
  'condition' => [
483
  'premium_pricing_table_icon_switcher' => 'yes',
488
  /*Icon Color*/
489
  $this->add_control('premium_pricing_icon_color',
490
  [
491
+ 'label' => __('Color', 'premium-addons-for-elementor'),
492
  'type' => Controls_Manager::COLOR,
493
  'scheme' => [
494
  'type' => Scheme_Color::get_type(),
502
 
503
  $this->add_control('premium_pricing_icon_size',
504
  [
505
+ 'label' => __('Size', 'premium-addons-for-elementor'),
506
  'type' => Controls_Manager::SLIDER,
507
  'default' => [
508
  'size' => 25,
515
 
516
  $this->add_control('premium_pricing_icon_back_color',
517
  [
518
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
519
  'type' => Controls_Manager::COLOR,
520
  'scheme' => [
521
  'type' => Scheme_Color::get_type(),
529
 
530
  $this->add_responsive_control('premium_pricing_icon_inner_padding',
531
  [
532
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
533
  'type' => Controls_Manager::SLIDER,
534
  'size_units' => ['px','em'],
535
  'default' => [
552
 
553
  $this->add_control('premium_pricing_icon_inner_radius',
554
  [
555
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
556
  'type' => Controls_Manager::SLIDER,
557
  'size_units' => ['px', '%' , 'em'],
558
  'default' => [
568
 
569
  $this->add_control('premium_pricing_icon_container_heading',
570
  [
571
+ 'label' => __('Container', 'premium-addons-for-elementor'),
572
  'type' => Controls_Manager::HEADING,
573
  ]
574
  );
595
  /*Icon Border Radius*/
596
  $this->add_control('premium_pricing_icon_border_radius',
597
  [
598
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
599
  'type' => Controls_Manager::SLIDER,
600
  'size_units' => ['px', '%' ,'em'],
601
  'selectors' => [
607
  /*Icon Margin*/
608
  $this->add_responsive_control('premium_pricing_icon_margin',
609
  [
610
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
611
  'type' => Controls_Manager::DIMENSIONS,
612
  'size_units' => ['px', 'em', '%'],
613
  'default' => [
626
  /*Icon Padding*/
627
  $this->add_responsive_control('premium_pricing_icon_padding',
628
  [
629
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
630
  'type' => Controls_Manager::DIMENSIONS,
631
  'size_units' => ['px', 'em', '%'],
632
  'default' => [
648
  /*Start Title Style Settings */
649
  $this->start_controls_section('premium_pricing_title_style_settings',
650
  [
651
+ 'label' => __('Title', 'premium-addons-for-elementor'),
652
  'tab' => Controls_Manager::TAB_STYLE,
653
  'condition' => [
654
  'premium_pricing_table_title_switcher' => 'yes',
659
  /*Title Color*/
660
  $this->add_control('premium_pricing_title_color',
661
  [
662
+ 'label' => __('Color', 'premium-addons-for-elementor'),
663
  'type' => Controls_Manager::COLOR,
664
  'scheme' => [
665
  'type' => Scheme_Color::get_type(),
694
  /*Title Margin*/
695
  $this->add_responsive_control('premium_pricing_title_margin',
696
  [
697
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
698
  'type' => Controls_Manager::DIMENSIONS,
699
  'size_units' => ['px', 'em', '%'],
700
  'default' => [
713
  /*Title Padding*/
714
  $this->add_responsive_control('premium_pricing_title_padding',
715
  [
716
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
717
  'type' => Controls_Manager::DIMENSIONS,
718
  'size_units' => ['px', 'em', '%'],
719
  'default' => [
735
  /*Start Price Style Settings */
736
  $this->start_controls_section('premium_pricing_price_style_settings',
737
  [
738
+ 'label' => __('Price', 'premium-addons-for-elementor'),
739
  'tab' => Controls_Manager::TAB_STYLE,
740
  'condition' => [
741
  'premium_pricing_table_price_switcher' => 'yes',
745
 
746
  $this->add_control('premium_pricing_slashed_price_heading',
747
  [
748
+ 'label' => __('Slashed Price', 'premium-addons-for-elementor'),
749
  'type' => Controls_Manager::HEADING,
750
  ]
751
  );
753
  /*Slashed Price Color*/
754
  $this->add_control('premium_pricing_slashed_price_color',
755
  [
756
+ 'label' => __('Color', 'premium-addons-for-elementor'),
757
  'type' => Controls_Manager::COLOR,
758
  'scheme' => [
759
  'type' => Scheme_Color::get_type(),
778
  /*Slashed Price Margin*/
779
  $this->add_responsive_control('premium_pricing_slashed_price_margin',
780
  [
781
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
782
  'type' => Controls_Manager::DIMENSIONS,
783
  'size_units' => ['px', 'em', '%'],
784
  'selectors' => [
789
 
790
  $this->add_control('premium_pricing_currency_heading',
791
  [
792
+ 'label' => __('Currency', 'premium-addons-for-elementor'),
793
  'type' => Controls_Manager::HEADING,
794
  ]
795
  );
797
  /*Currency Color*/
798
  $this->add_control('premium_pricing_currency_color',
799
  [
800
+ 'label' => __('Color', 'premium-addons-for-elementor'),
801
  'type' => Controls_Manager::COLOR,
802
  'scheme' => [
803
  'type' => Scheme_Color::get_type(),
813
  $this->add_group_control(
814
  Group_Control_Typography::get_type(),
815
  [
816
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
817
  'name' => 'currency_typo',
818
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
819
  'selector' => '{{WRAPPER}} .premium-pricing-price-currency',
822
 
823
  $this->add_responsive_control('premium_pricing_currency_align',
824
  [
825
+ 'label' => __( 'Vertical Align', 'premium-addons-for-elementor' ),
826
  'type' => Controls_Manager::CHOOSE,
827
  'options' => [
828
  'top' => [
829
+ 'title'=> __( 'Top', 'premium-addons-for-elementor' ),
830
  'icon' => 'fa fa-long-arrow-up',
831
  ],
832
  'unset' => [
833
+ 'title'=> __( 'Unset', 'premium-addons-for-elementor' ),
834
  'icon' => 'fa fa-align-justify',
835
  ],
836
  'bottom' => [
837
+ 'title'=> __( 'Bottom', 'premium-addons-for-elementor' ),
838
  'icon' => 'fa fa-long-arrow-down',
839
  ],
840
  ],
848
 
849
  $this->add_responsive_control('premium_pricing_currency_margin',
850
  [
851
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
852
  'type' => Controls_Manager::DIMENSIONS,
853
  'size_units' => ['px', 'em', '%'],
854
  'selectors' => [
861
 
862
  $this->add_control('premium_pricing_price_heading',
863
  [
864
+ 'label' => __('Price', 'premium-addons-for-elementor'),
865
  'type' => Controls_Manager::HEADING,
866
  ]
867
  );
869
  /*Price Color*/
870
  $this->add_control('premium_pricing_price_color',
871
  [
872
+ 'label' => __('Color', 'premium-addons-for-elementor'),
873
  'type' => Controls_Manager::COLOR,
874
  'scheme' => [
875
  'type' => Scheme_Color::get_type(),
886
  $this->add_group_control(
887
  Group_Control_Typography::get_type(),
888
  [
889
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
890
  'name' => 'price_typo',
891
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
892
  'selector' => '{{WRAPPER}} .premium-pricing-price-value',
895
 
896
  $this->add_responsive_control('premium_pricing_price_margin',
897
  [
898
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
899
  'type' => Controls_Manager::DIMENSIONS,
900
  'size_units' => ['px', 'em', '%'],
901
  'selectors' => [
906
 
907
  $this->add_control('premium_pricing_sep_heading',
908
  [
909
+ 'label' => __('Divider', 'premium-addons-for-elementor'),
910
  'type' => Controls_Manager::HEADING,
911
  ]
912
  );
914
  /*Separator Color*/
915
  $this->add_control('premium_pricing_sep_color',
916
  [
917
+ 'label' => __('Color', 'premium-addons-for-elementor'),
918
  'type' => Controls_Manager::COLOR,
919
  'scheme' => [
920
  'type' => Scheme_Color::get_type(),
931
  $this->add_group_control(
932
  Group_Control_Typography::get_type(),
933
  [
934
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
935
  'name' => 'separator_typo',
936
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
937
  'selector' => '{{WRAPPER}} .premium-pricing-price-separator',
940
 
941
  $this->add_responsive_control('premium_pricing_sep_margin',
942
  [
943
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
944
  'type' => Controls_Manager::DIMENSIONS,
945
  'size_units' => ['px', 'em', '%'],
946
  'default' => [
958
 
959
  $this->add_control('premium_pricing_dur_heading',
960
  [
961
+ 'label' => __('Duration', 'premium-addons-for-elementor'),
962
  'type' => Controls_Manager::HEADING,
963
  ]
964
  );
966
  /*Duration Color*/
967
  $this->add_control('premium_pricing_dur_color',
968
  [
969
+ 'label' => __('Color', 'premium-addons-for-elementor'),
970
  'type' => Controls_Manager::COLOR,
971
  'scheme' => [
972
  'type' => Scheme_Color::get_type(),
983
  $this->add_group_control(
984
  Group_Control_Typography::get_type(),
985
  [
986
+ 'label' => __('Typography', 'premium-addons-for-elementor'),
987
  'name' => 'duration_typo',
988
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
989
  'selector' => '{{WRAPPER}} .premium-pricing-price-duration',
992
 
993
  $this->add_responsive_control('premium_pricing_dur_margin',
994
  [
995
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
996
  'type' => Controls_Manager::DIMENSIONS,
997
  'size_units' => ['px', 'em', '%'],
998
  'selectors' => [
1004
 
1005
  $this->add_control('premium_pricing_price_container_heading',
1006
  [
1007
+ 'label' => __('Container', 'premium-addons-for-elementor'),
1008
  'type' => Controls_Manager::HEADING,
1009
  ]
1010
  );
1022
  /*Price Margin*/
1023
  $this->add_responsive_control('premium_pricing_price_container_margin',
1024
  [
1025
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1026
  'type' => Controls_Manager::DIMENSIONS,
1027
  'size_units' => ['px', 'em', '%'],
1028
  'default' => [
1041
  /*Price Padding*/
1042
  $this->add_responsive_control('premium_pricing_price_padding',
1043
  [
1044
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1045
  'type' => Controls_Manager::DIMENSIONS,
1046
  'size_units' => ['px', 'em', '%'],
1047
  'selectors' => [
1056
  /*Start List Style Settings*/
1057
  $this->start_controls_section('premium_pricing_list_style_settings',
1058
  [
1059
+ 'label' => __('Features', 'premium-addons-for-elementor'),
1060
  'tab' => Controls_Manager::TAB_STYLE,
1061
  'condition' => [
1062
  'premium_pricing_table_list_switcher' => 'yes',
1066
 
1067
  $this->add_control('premium_pricing_features_text_heading',
1068
  [
1069
+ 'label' => __('Text', 'premium-addons-for-elementor'),
1070
  'type' => Controls_Manager::HEADING,
1071
  ]
1072
  );
1073
 
1074
  $this->add_control('premium_pricing_list_text_color',
1075
  [
1076
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1077
  'type' => Controls_Manager::COLOR,
1078
  'scheme' => [
1079
  'type' => Scheme_Color::get_type(),
1096
 
1097
  $this->add_control('premium_pricing_features_icon_heading',
1098
  [
1099
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
1100
  'type' => Controls_Manager::HEADING,
1101
  ]
1102
  );
1104
  /*Button Color*/
1105
  $this->add_control('premium_pricing_list_icon_color',
1106
  [
1107
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1108
  'type' => Controls_Manager::COLOR,
1109
  'scheme' => [
1110
  'type' => Scheme_Color::get_type(),
1118
 
1119
  $this->add_control('premium_pricing_list_icon_size',
1120
  [
1121
+ 'label' => __('Size', 'premium-addons-for-elementor'),
1122
  'type' => Controls_Manager::SLIDER,
1123
  'selectors' => [
1124
  '{{WRAPPER}} .premium-pricing-list i' => 'font-size: {{SIZE}}px',
1128
 
1129
  $this->add_control('premium_pricing_list_icon_spacing',
1130
  [
1131
+ 'label' => __('Spacing', 'premium-addons-for-elementor'),
1132
  'type' => Controls_Manager::SLIDER,
1133
  'default' => [
1134
  'size' => 5
1141
 
1142
  $this->add_control('premium_pricing_list_item_margin',
1143
  [
1144
+ 'label' => __('Vertical Spacing', 'premium-addons-for-elementor'),
1145
  'type' => Controls_Manager::SLIDER,
1146
  'selectors' => [
1147
  '{{WRAPPER}} .premium-pricing-list li' => 'margin-bottom: {{SIZE}}px;'
1151
 
1152
  $this->add_control('premium_pricing_features_container_heading',
1153
  [
1154
+ 'label' => __('Container', 'premium-addons-for-elementor'),
1155
  'type' => Controls_Manager::HEADING,
1156
  ]
1157
  );
1177
  /*List Border Radius*/
1178
  $this->add_control('premium_pricing_list_border_radius',
1179
  [
1180
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1181
  'type' => Controls_Manager::SLIDER,
1182
  'size_units' => ['px', 'em' , '%'],
1183
  'selectors' => [
1189
  /*List Margin*/
1190
  $this->add_responsive_control('premium_pricing_list_margin',
1191
  [
1192
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1193
  'type' => Controls_Manager::DIMENSIONS,
1194
  'size_units' => ['px', 'em', '%'],
1195
  'default' => [
1207
  /*List Padding*/
1208
  $this->add_responsive_control('premium_pricing_list_padding',
1209
  [
1210
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1211
  'type' => Controls_Manager::DIMENSIONS,
1212
  'size_units' => ['px', 'em', '%'],
1213
  'selectors' => [
1220
  /*Start Description Style Settings */
1221
  $this->start_controls_section('premium_pricing_description_style_settings',
1222
  [
1223
+ 'label' => __('Description', 'premium-addons-for-elementor'),
1224
  'tab' => Controls_Manager::TAB_STYLE,
1225
  'condition' => [
1226
  'premium_pricing_table_description_switcher' => 'yes',
1230
 
1231
  $this->add_control('premium_pricing_desc_text_heading',
1232
  [
1233
+ 'label' => __('Text', 'premium-addons-for-elementor'),
1234
  'type' => Controls_Manager::HEADING,
1235
  ]
1236
  );
1238
  /*Description Color*/
1239
  $this->add_control('premium_pricing_desc_color',
1240
  [
1241
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1242
  'type' => Controls_Manager::COLOR,
1243
  'scheme' => [
1244
  'type' => Scheme_Color::get_type(),
1262
 
1263
  $this->add_control('premium_pricing_desc_container_heading',
1264
  [
1265
+ 'label' => __('Container', 'premium-addons-for-elementor'),
1266
  'type' => Controls_Manager::HEADING,
1267
  ]
1268
  );
1280
  /*Description Margin*/
1281
  $this->add_responsive_control('premium_pricing_desc_margin',
1282
  [
1283
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1284
  'type' => Controls_Manager::DIMENSIONS,
1285
  'size_units' => ['px', 'em', '%'],
1286
  'default' => [
1299
  /*Description Padding*/
1300
  $this->add_responsive_control('premium_pricing_desc_padding',
1301
  [
1302
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1303
  'type' => Controls_Manager::DIMENSIONS,
1304
  'size_units' => ['px', 'em', '%'],
1305
  'selectors' => [
1314
  /*Start Button Style Settings */
1315
  $this->start_controls_section('premium_pricing_button_style_settings',
1316
  [
1317
+ 'label' => __('Button', 'premium-addons-for-elementor'),
1318
  'tab' => Controls_Manager::TAB_STYLE,
1319
  'condition' => [
1320
  'premium_pricing_table_button_switcher' => 'yes',
1325
  /*Button Color*/
1326
  $this->add_control('premium_pricing_button_color',
1327
  [
1328
+ 'label' => __('Color', 'premium-addons-for-elementor'),
1329
  'type' => Controls_Manager::COLOR,
1330
  'scheme' => [
1331
  'type' => Scheme_Color::get_type(),
1339
 
1340
  $this->add_control('premium_pricing_button_hover_color',
1341
  [
1342
+ 'label' => __('Hover Text Color', 'premium-addons-for-elementor'),
1343
  'type' => Controls_Manager::COLOR,
1344
  'scheme' => [
1345
  'type' => Scheme_Color::get_type(),
1365
 
1366
  $this->start_controls_tab('premium_pricing_table_button_style_normal',
1367
  [
1368
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
1369
  ]
1370
  );
1371
 
1391
  /*Button Border Radius*/
1392
  $this->add_control('premium_pricing_table_box_button_radius',
1393
  [
1394
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1395
  'type' => Controls_Manager::SLIDER,
1396
  'size_units' => ['px', 'em' , '%'],
1397
  'selectors' => [
1404
  $this->add_group_control(
1405
  Group_Control_Box_Shadow::get_type(),
1406
  [
1407
+ 'label' => __('Shadow','premium-addons-for-elementor'),
1408
  'name' => 'premium_pricing_table_button_box_shadow',
1409
  'selector' => '{{WRAPPER}} .premium-pricing-price-button',
1410
  ]
1413
  /*Button Margin*/
1414
  $this->add_responsive_control('premium_pricing_button_margin',
1415
  [
1416
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1417
  'type' => Controls_Manager::DIMENSIONS,
1418
  'size_units' => ['px', 'em', '%'],
1419
  'selectors' => [
1424
  /*Button Padding*/
1425
  $this->add_responsive_control('premium_pricing_button_padding',
1426
  [
1427
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1428
  'type' => Controls_Manager::DIMENSIONS,
1429
  'size_units' => ['px', 'em', '%'],
1430
  'default' => [
1443
 
1444
  $this->start_controls_tab('premium_pricing_table_button_style_hover',
1445
  [
1446
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
1447
  ]
1448
  );
1449
 
1469
  /*Button Border Radius*/
1470
  $this->add_control('premium_pricing_table_button_border_radius_hover',
1471
  [
1472
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1473
  'type' => Controls_Manager::SLIDER,
1474
  'size_units' => ['px', 'em' , '%' ],
1475
  'selectors' => [
1482
  $this->add_group_control(
1483
  Group_Control_Box_Shadow::get_type(),
1484
  [
1485
+ 'label' => __('Shadow','premium-addons-for-elementor'),
1486
  'name' => 'premium_pricing_table_button_shadow_hover',
1487
  'selector' => '{{WRAPPER}} .premium-pricing-price-button:hover',
1488
  ]
1491
  /*Button Margin*/
1492
  $this->add_responsive_control('premium_pricing_button_margin_hover',
1493
  [
1494
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1495
  'type' => Controls_Manager::DIMENSIONS,
1496
  'size_units' => ['px', 'em', '%'],
1497
  'selectors' => [
1502
  /*Button Padding*/
1503
  $this->add_responsive_control('premium_pricing_button_padding_hover',
1504
  [
1505
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1506
  'type' => Controls_Manager::DIMENSIONS,
1507
  'default' => [
1508
  'top' => 20,
1527
 
1528
  $this->start_controls_section('premium_pricing_table_badge_style',
1529
  [
1530
+ 'label' => __('Badge', 'premium-addons-for-elementor'),
1531
  'tab' => Controls_Manager::TAB_STYLE,
1532
  'condition' => [
1533
  'premium_pricing_table_badge_switcher' => 'yes'
1537
 
1538
  $this->add_control('premium_pricing_badge_text_color',
1539
  [
1540
+ 'label' => __('Text Color', 'premium-addons-for-elementor'),
1541
  'type' => Controls_Manager::COLOR,
1542
  'scheme' => [
1543
  'type' => Scheme_Color::get_type(),
1561
 
1562
  $this->add_responsive_control('premium_pricing_table_badge_right_top',
1563
  [
1564
+ 'label' => __('Vertical Distance', 'premium-addons-for-elementor'),
1565
  'type' => Controls_Manager::SLIDER,
1566
  'range' => [
1567
  'px'=> [
1577
 
1578
  $this->add_responsive_control('premium_pricing_table_badge_right_right',
1579
  [
1580
+ 'label' => __('Horizontal Distance', 'premium-addons-for-elementor'),
1581
  'type' => Controls_Manager::SLIDER,
1582
  'range' => [
1583
  'px'=> [
1596
 
1597
  $this->add_responsive_control('premium_pricing_table_badge_right_left',
1598
  [
1599
+ 'label' => __('Horizontal Distance', 'premium-addons-for-elementor'),
1600
  'type' => Controls_Manager::SLIDER,
1601
  'selectors' => [
1602
  '{{WRAPPER}} .premium-badge-left .corner span' => 'left: {{SIZE}}px;'
1610
  /*Badge Color*/
1611
  $this->add_control('premium_pricing_badge_left_color',
1612
  [
1613
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
1614
  'type' => Controls_Manager::COLOR,
1615
  'scheme' => [
1616
  'type' => Scheme_Color::get_type(),
1627
 
1628
  $this->add_control('premium_pricing_badge_right_color',
1629
  [
1630
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
1631
  'type' => Controls_Manager::COLOR,
1632
  'scheme' => [
1633
  'type' => Scheme_Color::get_type(),
1647
  /*Start Box Style Settings*/
1648
  $this->start_controls_section('premium_pricing_box_style_settings',
1649
  [
1650
+ 'label' => __('Box Settings', 'premium-addons-for-elementor'),
1651
  'tab' => Controls_Manager::TAB_STYLE,
1652
  ]
1653
  );
1656
 
1657
  $this->start_controls_tab('premium_pricing_table_box_style_normal',
1658
  [
1659
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
1660
  ]
1661
  );
1662
 
1682
  /*Box Border Radius*/
1683
  $this->add_control('premium_pricing_table_box_border_radius',
1684
  [
1685
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1686
  'type' => Controls_Manager::SLIDER,
1687
  'size_units' => ['px', '%' ,'em'],
1688
  'selectors' => [
1695
  $this->add_group_control(
1696
  Group_Control_Box_Shadow::get_type(),
1697
  [
1698
+ 'label' => __('Shadow','premium-addons-for-elementor'),
1699
  'name' => 'premium_pricing_table_box_shadow',
1700
  'selector' => '{{WRAPPER}} .premium-pricing-table-container',
1701
  ]
1704
  /*Box Margin*/
1705
  $this->add_responsive_control('premium_pricing_box_margin',
1706
  [
1707
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1708
  'type' => Controls_Manager::DIMENSIONS,
1709
  'size_units' => ['px', 'em', '%'],
1710
  'selectors' => [
1715
  /*Box Padding*/
1716
  $this->add_responsive_control('premium_pricing_box_padding',
1717
  [
1718
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1719
  'type' => Controls_Manager::DIMENSIONS,
1720
  'size_units' => ['px', 'em', '%'],
1721
  'default' => [
1734
 
1735
  $this->start_controls_tab('premium_pricing_table_box_style_hover',
1736
  [
1737
+ 'label' => __('Hover', 'premium-addons-for-elementor'),
1738
  ]
1739
  );
1740
 
1760
  /*Box Border Radius*/
1761
  $this->add_control('premium_pricing_table_box_border_radius_hover',
1762
  [
1763
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
1764
  'type' => Controls_Manager::SLIDER,
1765
  'size_units' => ['px', 'em' , '%' ],
1766
  'selectors' => [
1773
  $this->add_group_control(
1774
  Group_Control_Box_Shadow::get_type(),
1775
  [
1776
+ 'label' => __('Shadow','premium-addons-for-elementor'),
1777
  'name' => 'premium_pricing_table_box_shadow_hover',
1778
  'selector' => '{{WRAPPER}} .premium-pricing-table-container:hover',
1779
  ]
1782
  /*Box Margin*/
1783
  $this->add_responsive_control('premium_pricing_box_margin_hover',
1784
  [
1785
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
1786
  'type' => Controls_Manager::DIMENSIONS,
1787
  'size_units' => ['px', 'em', '%'],
1788
  'selectors' => [
1793
  /*Box Padding*/
1794
  $this->add_responsive_control('premium_pricing_box_padding_hover',
1795
  [
1796
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
1797
  'type' => Controls_Manager::DIMENSIONS,
1798
  'size_units' => ['px', 'em', '%'],
1799
  'default' => [
widgets/premium-progressbar.php CHANGED
@@ -35,17 +35,17 @@ class Premium_Progressbar extends Widget_Base {
35
  /* Start Progress Content Section */
36
  $this->start_controls_section('premium_progressbar_labels',
37
  [
38
- 'label' => esc_html__('Progress Bar Settings', 'premium-addons-for-elementor'),
39
  ]
40
  );
41
  $this->add_control('premium_progressbar_select_label',
42
  [
43
- 'label' => esc_html__('Number of Labels', 'premium-addons-for-elementor'),
44
  'type' => Controls_Manager::SELECT,
45
  'default' =>'left_right_labels',
46
  'options' => [
47
- 'left_right_labels' => esc_html__('Left & Right Labels', 'premium-addons-for-elementor'),
48
- 'more_labels' => esc_html__('Multiple Labels', 'premium-addons-for-elementor'),
49
  ],
50
  ]
51
  );
@@ -53,10 +53,10 @@ class Premium_Progressbar extends Widget_Base {
53
  /*Left Label*/
54
  $this->add_control('premium_progressbar_left_label',
55
  [
56
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::TEXT,
58
  'dynamic' => [ 'active' => true ],
59
- 'default' => esc_html__('My Skill','premium-addons-for-elementor'),
60
  'label_block' => true,
61
  'condition' =>[
62
  'premium_progressbar_select_label' => 'left_right_labels'
@@ -67,9 +67,9 @@ class Premium_Progressbar extends Widget_Base {
67
  /*Right Label*/
68
  $this->add_control('premium_progressbar_right_label',
69
  [
70
- 'label' => esc_html__('Percentage', 'premium-addons-for-elementor'),
71
  'type' => Controls_Manager::TEXT,
72
- 'default' => esc_html__('50%','premium-addons-for-elementor'),
73
  'label_block' => true,
74
  'condition' =>[
75
  'premium_progressbar_select_label' => 'left_right_labels'
@@ -81,12 +81,12 @@ class Premium_Progressbar extends Widget_Base {
81
 
82
  $repeater->add_control('text',
83
  [
84
- 'label' => esc_html__( 'Label','premium-addons-for-elementor' ),
85
  'type' => Controls_Manager::TEXT,
86
  'dynamic' => [ 'active' => true ],
87
  'label_block' => true,
88
- 'placeholder' => esc_html__( 'label','premium-addons-for-elementor' ),
89
- 'default' => esc_html__( 'label', 'premium-addons-for-elementor' ),
90
  ]
91
  );
92
 
@@ -95,22 +95,22 @@ class Premium_Progressbar extends Widget_Base {
95
  'label' => __( 'Percentage', 'premium-addons-for-elementor' ),
96
  'type' => Controls_Manager::NUMBER,
97
  'label_block' => true,
98
- 'default' => '50',
99
  ]
100
  );
101
 
102
  $this->add_control('premium_progressbar_multiple_label',
103
  [
104
- 'label' => esc_html__('Label','premium-addons-for-elementor'),
105
  'type' => Controls_Manager::REPEATER,
106
  'default' => [
107
  [
108
- 'text' => esc_html__( 'Label','premium-addons-for-elementor' ),
109
- 'number' => esc_html__('50','premium-addons-for-elementor')
110
  ]
111
  ],
112
  'fields' => array_values( $repeater->get_controls() ),
113
- 'condition' =>[
114
  'premium_progressbar_select_label' =>'more_labels'
115
  ]
116
  ]
@@ -118,10 +118,10 @@ class Premium_Progressbar extends Widget_Base {
118
 
119
  $this->add_control('premium_progress_bar_space_percentage_switcher',
120
  [
121
- 'label' => esc_html__('Enable Percentage', 'premium-addons-for-elementor'),
122
  'type' => Controls_Manager::SWITCHER,
123
  'default' => 'yes',
124
- 'description' => esc_html__('Enable percentage for labels','premium-addons-for-elementor'),
125
  'condition' => [
126
  'premium_progressbar_select_label'=>'more_labels',
127
  ]
@@ -130,13 +130,13 @@ class Premium_Progressbar extends Widget_Base {
130
 
131
  $this->add_control('premium_progressbar_select_label_icon',
132
  [
133
- 'label' => esc_html__('Labels Indicator', 'premium-addons-for-elementor'),
134
  'type' => Controls_Manager::SELECT,
135
  'default' =>'line_pin',
136
  'options' => [
137
- '' => esc_html__('None','premium-addons-for-elementor'),
138
- 'line_pin' => esc_html__('Pin', 'premium-addons-for-elementor'),
139
- 'arrow' => esc_html__('Arrow','premium-addons-for-elementor'),
140
  ],
141
  'condition' =>[
142
  'premium_progressbar_select_label' => 'more_labels'
@@ -146,19 +146,19 @@ class Premium_Progressbar extends Widget_Base {
146
 
147
  $this->add_control('premium_progressbar_more_labels_align',
148
  [
149
- 'label' => esc_html__('Labels Alignment','premuim-addons-for-elementor'),
150
  'type' => Controls_Manager::CHOOSE,
151
  'options' => [
152
  'left' => [
153
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
154
  'icon' => 'fa fa-align-left',
155
  ],
156
  'center' => [
157
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
158
  'icon' => 'fa fa-align-center',
159
  ],
160
  'right' => [
161
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
162
  'icon' => 'fa fa-align-right',
163
  ],
164
  ],
@@ -173,7 +173,7 @@ class Premium_Progressbar extends Widget_Base {
173
  /*Progressbar Width*/
174
  $this->add_control('premium_progressbar_progress_percentage',
175
  [
176
- 'label' => esc_html__('Value', 'premium-addons-for-elementor'),
177
  'type' => Controls_Manager::SLIDER,
178
  'default' => [
179
  'size' => 50,
@@ -185,19 +185,19 @@ class Premium_Progressbar extends Widget_Base {
185
  /*Progress Bar Style*/
186
  $this->add_control('premium_progressbar_progress_style',
187
  [
188
- 'label' => esc_html__('Type', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::SELECT,
190
  'default' => 'solid',
191
  'options' => [
192
- 'solid' => esc_html__('Solid', 'premium-addons-for-elementor'),
193
- 'stripped' => esc_html__('Stripped', 'premium-addons-for-elementor'),
194
  ],
195
  ]
196
  );
197
 
198
  $this->add_control('premium_progressbar_speed',
199
  [
200
- 'label' => esc_html__('Speed (milliseconds)', 'premium-addons-for-elementor'),
201
  'type' => Controls_Manager::NUMBER
202
  ]
203
  );
@@ -205,7 +205,7 @@ class Premium_Progressbar extends Widget_Base {
205
  /*Progress Bar Animated*/
206
  $this->add_control('premium_progressbar_progress_animation',
207
  [
208
- 'label' => esc_html__('Animated', 'premium-addons-for-elementor'),
209
  'type' => Controls_Manager::SWITCHER,
210
  'condition' => [
211
  'premium_progressbar_progress_style' => 'stripped'
@@ -220,7 +220,7 @@ class Premium_Progressbar extends Widget_Base {
220
  /*Start progressbar Settings*/
221
  $this->start_controls_section('premium_progressbar_progress_bar_settings',
222
  [
223
- 'label' => esc_html__('Progress Bar', 'premium-addons-for-elementor'),
224
  'tab' => Controls_Manager::TAB_STYLE,
225
  ]
226
  );
@@ -228,7 +228,7 @@ class Premium_Progressbar extends Widget_Base {
228
  /*Progressbar Height*/
229
  $this->add_control('premium_progressbar_progress_bar_height',
230
  [
231
- 'label' => esc_html__('Height', 'premium-addons-for-elementor'),
232
  'type' => Controls_Manager::SLIDER,
233
  'default' => [
234
  'size' => 25,
@@ -243,7 +243,7 @@ class Premium_Progressbar extends Widget_Base {
243
  /*Border Radius*/
244
  $this->add_control('premium_progressbar_progress_bar_radius',
245
  [
246
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
247
  'type' => Controls_Manager::SLIDER,
248
  'size_units' => ['px', '%', 'em'],
249
  'default' => [
@@ -264,7 +264,7 @@ class Premium_Progressbar extends Widget_Base {
264
 
265
  $this->add_control('premium_progressbar_ind_background_hint',
266
  [
267
- 'label' => esc_html__('Indicator Background', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::HEADING,
269
  ]
270
  );
@@ -284,7 +284,7 @@ class Premium_Progressbar extends Widget_Base {
284
 
285
  $this->add_control('premium_progressbar_main_background_hint',
286
  [
287
- 'label' => esc_html__('Main Background', 'premium-addons-for-elementor'),
288
  'type' => Controls_Manager::HEADING,
289
  ]
290
  );
@@ -300,7 +300,7 @@ class Premium_Progressbar extends Widget_Base {
300
  );
301
  $this->add_responsive_control('premium_progressbar_container_margin',
302
  [
303
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
304
  'type' => Controls_Manager::DIMENSIONS,
305
  'size_units' => [ 'px', 'em', '%' ],
306
  'selectors' => [
@@ -314,7 +314,7 @@ class Premium_Progressbar extends Widget_Base {
314
  /*Start Labels Settings Section*/
315
  $this->start_controls_section('premium_progressbar_labels_section',
316
  [
317
- 'label' => esc_html__('Labels', 'premium-addons-for-elementor'),
318
  'tab' => Controls_Manager::TAB_STYLE,
319
  'condition' =>[
320
  'premium_progressbar_select_label' => 'left_right_labels'
@@ -324,7 +324,7 @@ class Premium_Progressbar extends Widget_Base {
324
 
325
  $this->add_control('premium_progressbar_left_label_hint',
326
  [
327
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
328
  'type' => Controls_Manager::HEADING,
329
  ]
330
  );
@@ -332,7 +332,7 @@ class Premium_Progressbar extends Widget_Base {
332
  /*Left Label Color*/
333
  $this->add_control('premium_progressbar_left_label_color',
334
  [
335
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
336
  'type' => Controls_Manager::COLOR,
337
  'scheme' => [
338
  'type' => Scheme_Color::get_type(),
@@ -358,7 +358,7 @@ class Premium_Progressbar extends Widget_Base {
358
  /*Left Label Margin*/
359
  $this->add_responsive_control('premium_progressbar_left_label_margin',
360
  [
361
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
362
  'type' => Controls_Manager::DIMENSIONS,
363
  'size_units' => [ 'px', 'em', '%' ],
364
  'selectors' => [
@@ -369,7 +369,7 @@ class Premium_Progressbar extends Widget_Base {
369
 
370
  $this->add_control('premium_progressbar_right_label_hint',
371
  [
372
- 'label' => esc_html__('Percentage', 'premium-addons-for-elementor'),
373
  'type' => Controls_Manager::HEADING,
374
  'separator' => 'before'
375
  ]
@@ -378,7 +378,7 @@ class Premium_Progressbar extends Widget_Base {
378
  /*Right Label Color*/
379
  $this->add_control('premium_progressbar_right_label_color',
380
  [
381
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
382
  'type' => Controls_Manager::COLOR,
383
  'scheme' => [
384
  'type' => Scheme_Color::get_type(),
@@ -403,7 +403,7 @@ class Premium_Progressbar extends Widget_Base {
403
  /*Right Label Margin*/
404
  $this->add_responsive_control('premium_progressbar_right_label_margin',
405
  [
406
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
407
  'type' => Controls_Manager::DIMENSIONS,
408
  'size_units' => [ 'px', 'em', '%' ],
409
  'selectors' => [
@@ -418,7 +418,7 @@ class Premium_Progressbar extends Widget_Base {
418
 
419
  $this->start_controls_section('premium_progressbar_multiple_labels_section',
420
  [
421
- 'label' => esc_html__('Multiple Labels', 'premium-addons-for-elementor'),
422
  'tab' => Controls_Manager::TAB_STYLE,
423
  'condition' =>[
424
  'premium_progressbar_select_label' => 'more_labels'
@@ -427,7 +427,7 @@ class Premium_Progressbar extends Widget_Base {
427
  );
428
  $this->add_control('premium_progressbar_multiple_label_color',
429
  [
430
- 'label' => esc_html__('Labels\' Color', 'premium-addons-for-elementor'),
431
  'type' => Controls_Manager::COLOR,
432
  'scheme' => [
433
  'type' => Scheme_Color::get_type(),
@@ -441,7 +441,7 @@ class Premium_Progressbar extends Widget_Base {
441
  $this->add_group_control(
442
  Group_Control_Typography::get_type(),
443
  [
444
- 'label' => esc_html__('Labels\' Typography', 'premium-addons-for-elementor'),
445
  'name' => 'more_label_typography',
446
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
447
  'selector' => '{{WRAPPER}} .premium-progressbar-center-label',
@@ -467,7 +467,7 @@ class Premium_Progressbar extends Widget_Base {
467
  $this->add_group_control(
468
  Group_Control_Typography::get_type(),
469
  [
470
- 'label' => esc_html__('Percentage Typography','premium-addons-for-elementor'),
471
  'name' => 'percentage_typography',
472
  'condition' =>[
473
  'premium_progress_bar_space_percentage_switcher'=>'yes'
@@ -479,7 +479,7 @@ class Premium_Progressbar extends Widget_Base {
479
  $this->end_controls_section();
480
  $this->start_controls_section('premium_progressbar_multiple_labels_arrow_section',
481
  [
482
- 'label' => esc_html__('Arrow', 'premium-addons-for-elementor'),
483
  'tab' => Controls_Manager::TAB_STYLE,
484
  'condition' =>[
485
  'premium_progressbar_select_label' => 'more_labels',
@@ -491,7 +491,7 @@ class Premium_Progressbar extends Widget_Base {
491
  /*Arrow color*/
492
  $this->add_control('premium_progressbar_arrow_color',
493
  [
494
- 'label' => esc_html__('Color', 'premium_elementor'),
495
  'type' => Controls_Manager::COLOR,
496
  'scheme' => [
497
  'type' => Scheme_Color::get_type(),
@@ -509,7 +509,7 @@ class Premium_Progressbar extends Widget_Base {
509
  /*Arrow Size*/
510
  $this->add_responsive_control('premium_arrow_size',
511
  [
512
- 'label' =>esc_html__('Size','premium-addons-for-elementor'),
513
  'type' =>Controls_Manager::SLIDER,
514
  'size_units' => ['px', "em"],
515
  'condition' =>[
@@ -523,7 +523,7 @@ class Premium_Progressbar extends Widget_Base {
523
  $this->end_controls_section();
524
  $this->start_controls_section('premium_progressbar_multiple_labels_pin_section',
525
  [
526
- 'label' => esc_html__('Indicator', 'premium-addons-for-elementor'),
527
  'tab' => Controls_Manager::TAB_STYLE,
528
  'condition' =>[
529
  'premium_progressbar_select_label' => 'more_labels',
@@ -534,7 +534,7 @@ class Premium_Progressbar extends Widget_Base {
534
 
535
  $this->add_control('premium_progressbar_line_pin_color',
536
  [
537
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
538
  'type' => Controls_Manager::COLOR,
539
  'scheme' => [
540
  'type' => Scheme_Color::get_type(),
@@ -550,7 +550,7 @@ class Premium_Progressbar extends Widget_Base {
550
  );
551
  $this->add_responsive_control('premium_pin_size',
552
  [
553
- 'label' =>esc_html__('Size','premium-addons-for-elementor'),
554
  'type' =>Controls_Manager::SLIDER,
555
  'size_units' => ['px', "em"],
556
  'condition' =>[
@@ -563,7 +563,7 @@ class Premium_Progressbar extends Widget_Base {
563
  );
564
  $this->add_responsive_control('premium_pin_height',
565
  [
566
- 'label' =>esc_html__('Height','premium-addons-for-elementor'),
567
  'type' =>Controls_Manager::SLIDER,
568
  'size_units' => ['px', "em"],
569
  'condition' =>[
@@ -577,8 +577,7 @@ class Premium_Progressbar extends Widget_Base {
577
  $this->end_controls_section();
578
  }
579
 
580
- protected function render($instance = [])
581
- {
582
  // get our input from the widget settings.
583
  $settings = $this->get_settings_for_display();
584
  $this->add_inline_editing_attributes('premium_progressbar_left_label');
35
  /* Start Progress Content Section */
36
  $this->start_controls_section('premium_progressbar_labels',
37
  [
38
+ 'label' => __('Progress Bar Settings', 'premium-addons-for-elementor'),
39
  ]
40
  );
41
  $this->add_control('premium_progressbar_select_label',
42
  [
43
+ 'label' => __('Number of Labels', 'premium-addons-for-elementor'),
44
  'type' => Controls_Manager::SELECT,
45
  'default' =>'left_right_labels',
46
  'options' => [
47
+ 'left_right_labels' => __('Left & Right Labels', 'premium-addons-for-elementor'),
48
+ 'more_labels' => __('Multiple Labels', 'premium-addons-for-elementor'),
49
  ],
50
  ]
51
  );
53
  /*Left Label*/
54
  $this->add_control('premium_progressbar_left_label',
55
  [
56
+ 'label' => __('Title', 'premium-addons-for-elementor'),
57
  'type' => Controls_Manager::TEXT,
58
  'dynamic' => [ 'active' => true ],
59
+ 'default' => __('My Skill','premium-addons-for-elementor'),
60
  'label_block' => true,
61
  'condition' =>[
62
  'premium_progressbar_select_label' => 'left_right_labels'
67
  /*Right Label*/
68
  $this->add_control('premium_progressbar_right_label',
69
  [
70
+ 'label' => __('Percentage', 'premium-addons-for-elementor'),
71
  'type' => Controls_Manager::TEXT,
72
+ 'default' => __('50%','premium-addons-for-elementor'),
73
  'label_block' => true,
74
  'condition' =>[
75
  'premium_progressbar_select_label' => 'left_right_labels'
81
 
82
  $repeater->add_control('text',
83
  [
84
+ 'label' => __( 'Label','premium-addons-for-elementor' ),
85
  'type' => Controls_Manager::TEXT,
86
  'dynamic' => [ 'active' => true ],
87
  'label_block' => true,
88
+ 'placeholder' => __( 'label','premium-addons-for-elementor' ),
89
+ 'default' => __( 'label', 'premium-addons-for-elementor' ),
90
  ]
91
  );
92
 
95
  'label' => __( 'Percentage', 'premium-addons-for-elementor' ),
96
  'type' => Controls_Manager::NUMBER,
97
  'label_block' => true,
98
+ 'default' => 50,
99
  ]
100
  );
101
 
102
  $this->add_control('premium_progressbar_multiple_label',
103
  [
104
+ 'label' => __('Label','premium-addons-for-elementor'),
105
  'type' => Controls_Manager::REPEATER,
106
  'default' => [
107
  [
108
+ 'text' => __( 'Label','premium-addons-for-elementor' ),
109
+ 'number' => 50
110
  ]
111
  ],
112
  'fields' => array_values( $repeater->get_controls() ),
113
+ 'condition' => [
114
  'premium_progressbar_select_label' =>'more_labels'
115
  ]
116
  ]
118
 
119
  $this->add_control('premium_progress_bar_space_percentage_switcher',
120
  [
121
+ 'label' => __('Enable Percentage', 'premium-addons-for-elementor'),
122
  'type' => Controls_Manager::SWITCHER,
123
  'default' => 'yes',
124
+ 'description' => __('Enable percentage for labels','premium-addons-for-elementor'),
125
  'condition' => [
126
  'premium_progressbar_select_label'=>'more_labels',
127
  ]
130
 
131
  $this->add_control('premium_progressbar_select_label_icon',
132
  [
133
+ 'label' => __('Labels Indicator', 'premium-addons-for-elementor'),
134
  'type' => Controls_Manager::SELECT,
135
  'default' =>'line_pin',
136
  'options' => [
137
+ '' => __('None','premium-addons-for-elementor'),
138
+ 'line_pin' => __('Pin', 'premium-addons-for-elementor'),
139
+ 'arrow' => __('Arrow','premium-addons-for-elementor'),
140
  ],
141
  'condition' =>[
142
  'premium_progressbar_select_label' => 'more_labels'
146
 
147
  $this->add_control('premium_progressbar_more_labels_align',
148
  [
149
+ 'label' => __('Labels Alignment','premuim-addons-for-elementor'),
150
  'type' => Controls_Manager::CHOOSE,
151
  'options' => [
152
  'left' => [
153
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
154
  'icon' => 'fa fa-align-left',
155
  ],
156
  'center' => [
157
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
158
  'icon' => 'fa fa-align-center',
159
  ],
160
  'right' => [
161
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
162
  'icon' => 'fa fa-align-right',
163
  ],
164
  ],
173
  /*Progressbar Width*/
174
  $this->add_control('premium_progressbar_progress_percentage',
175
  [
176
+ 'label' => __('Value', 'premium-addons-for-elementor'),
177
  'type' => Controls_Manager::SLIDER,
178
  'default' => [
179
  'size' => 50,
185
  /*Progress Bar Style*/
186
  $this->add_control('premium_progressbar_progress_style',
187
  [
188
+ 'label' => __('Type', 'premium-addons-for-elementor'),
189
  'type' => Controls_Manager::SELECT,
190
  'default' => 'solid',
191
  'options' => [
192
+ 'solid' => __('Solid', 'premium-addons-for-elementor'),
193
+ 'stripped' => __('Stripped', 'premium-addons-for-elementor'),
194
  ],
195
  ]
196
  );
197
 
198
  $this->add_control('premium_progressbar_speed',
199
  [
200
+ 'label' => __('Speed (milliseconds)', 'premium-addons-for-elementor'),
201
  'type' => Controls_Manager::NUMBER
202
  ]
203
  );
205
  /*Progress Bar Animated*/
206
  $this->add_control('premium_progressbar_progress_animation',
207
  [
208
+ 'label' => __('Animated', 'premium-addons-for-elementor'),
209
  'type' => Controls_Manager::SWITCHER,
210
  'condition' => [
211
  'premium_progressbar_progress_style' => 'stripped'
220
  /*Start progressbar Settings*/
221
  $this->start_controls_section('premium_progressbar_progress_bar_settings',
222
  [
223
+ 'label' => __('Progress Bar', 'premium-addons-for-elementor'),
224
  'tab' => Controls_Manager::TAB_STYLE,
225
  ]
226
  );
228
  /*Progressbar Height*/
229
  $this->add_control('premium_progressbar_progress_bar_height',
230
  [
231
+ 'label' => __('Height', 'premium-addons-for-elementor'),
232
  'type' => Controls_Manager::SLIDER,
233
  'default' => [
234
  'size' => 25,
243
  /*Border Radius*/
244
  $this->add_control('premium_progressbar_progress_bar_radius',
245
  [
246
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
247
  'type' => Controls_Manager::SLIDER,
248
  'size_units' => ['px', '%', 'em'],
249
  'default' => [
264
 
265
  $this->add_control('premium_progressbar_ind_background_hint',
266
  [
267
+ 'label' => __('Indicator Background', 'premium-addons-for-elementor'),
268
  'type' => Controls_Manager::HEADING,
269
  ]
270
  );
284
 
285
  $this->add_control('premium_progressbar_main_background_hint',
286
  [
287
+ 'label' => __('Main Background', 'premium-addons-for-elementor'),
288
  'type' => Controls_Manager::HEADING,
289
  ]
290
  );
300
  );
301
  $this->add_responsive_control('premium_progressbar_container_margin',
302
  [
303
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
304
  'type' => Controls_Manager::DIMENSIONS,
305
  'size_units' => [ 'px', 'em', '%' ],
306
  'selectors' => [
314
  /*Start Labels Settings Section*/
315
  $this->start_controls_section('premium_progressbar_labels_section',
316
  [
317
+ 'label' => __('Labels', 'premium-addons-for-elementor'),
318
  'tab' => Controls_Manager::TAB_STYLE,
319
  'condition' =>[
320
  'premium_progressbar_select_label' => 'left_right_labels'
324
 
325
  $this->add_control('premium_progressbar_left_label_hint',
326
  [
327
+ 'label' => __('Title', 'premium-addons-for-elementor'),
328
  'type' => Controls_Manager::HEADING,
329
  ]
330
  );
332
  /*Left Label Color*/
333
  $this->add_control('premium_progressbar_left_label_color',
334
  [
335
+ 'label' => __('Color', 'premium-addons-for-elementor'),
336
  'type' => Controls_Manager::COLOR,
337
  'scheme' => [
338
  'type' => Scheme_Color::get_type(),
358
  /*Left Label Margin*/
359
  $this->add_responsive_control('premium_progressbar_left_label_margin',
360
  [
361
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
362
  'type' => Controls_Manager::DIMENSIONS,
363
  'size_units' => [ 'px', 'em', '%' ],
364
  'selectors' => [
369
 
370
  $this->add_control('premium_progressbar_right_label_hint',
371
  [
372
+ 'label' => __('Percentage', 'premium-addons-for-elementor'),
373
  'type' => Controls_Manager::HEADING,
374
  'separator' => 'before'
375
  ]
378
  /*Right Label Color*/
379
  $this->add_control('premium_progressbar_right_label_color',
380
  [
381
+ 'label' => __('Color', 'premium-addons-for-elementor'),
382
  'type' => Controls_Manager::COLOR,
383
  'scheme' => [
384
  'type' => Scheme_Color::get_type(),
403
  /*Right Label Margin*/
404
  $this->add_responsive_control('premium_progressbar_right_label_margin',
405
  [
406
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
407
  'type' => Controls_Manager::DIMENSIONS,
408
  'size_units' => [ 'px', 'em', '%' ],
409
  'selectors' => [
418
 
419
  $this->start_controls_section('premium_progressbar_multiple_labels_section',
420
  [
421
+ 'label' => __('Multiple Labels', 'premium-addons-for-elementor'),
422
  'tab' => Controls_Manager::TAB_STYLE,
423
  'condition' =>[
424
  'premium_progressbar_select_label' => 'more_labels'
427
  );
428
  $this->add_control('premium_progressbar_multiple_label_color',
429
  [
430
+ 'label' => __('Labels\' Color', 'premium-addons-for-elementor'),
431
  'type' => Controls_Manager::COLOR,
432
  'scheme' => [
433
  'type' => Scheme_Color::get_type(),
441
  $this->add_group_control(
442
  Group_Control_Typography::get_type(),
443
  [
444
+ 'label' => __('Labels\' Typography', 'premium-addons-for-elementor'),
445
  'name' => 'more_label_typography',
446
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
447
  'selector' => '{{WRAPPER}} .premium-progressbar-center-label',
467
  $this->add_group_control(
468
  Group_Control_Typography::get_type(),
469
  [
470
+ 'label' => __('Percentage Typography','premium-addons-for-elementor'),
471
  'name' => 'percentage_typography',
472
  'condition' =>[
473
  'premium_progress_bar_space_percentage_switcher'=>'yes'
479
  $this->end_controls_section();
480
  $this->start_controls_section('premium_progressbar_multiple_labels_arrow_section',
481
  [
482
+ 'label' => __('Arrow', 'premium-addons-for-elementor'),
483
  'tab' => Controls_Manager::TAB_STYLE,
484
  'condition' =>[
485
  'premium_progressbar_select_label' => 'more_labels',
491
  /*Arrow color*/
492
  $this->add_control('premium_progressbar_arrow_color',
493
  [
494
+ 'label' => __('Color', 'premium_elementor'),
495
  'type' => Controls_Manager::COLOR,
496
  'scheme' => [
497
  'type' => Scheme_Color::get_type(),
509
  /*Arrow Size*/
510
  $this->add_responsive_control('premium_arrow_size',
511
  [
512
+ 'label' => __('Size','premium-addons-for-elementor'),
513
  'type' =>Controls_Manager::SLIDER,
514
  'size_units' => ['px', "em"],
515
  'condition' =>[
523
  $this->end_controls_section();
524
  $this->start_controls_section('premium_progressbar_multiple_labels_pin_section',
525
  [
526
+ 'label' => __('Indicator', 'premium-addons-for-elementor'),
527
  'tab' => Controls_Manager::TAB_STYLE,
528
  'condition' =>[
529
  'premium_progressbar_select_label' => 'more_labels',
534
 
535
  $this->add_control('premium_progressbar_line_pin_color',
536
  [
537
+ 'label' => __('Color', 'premium-addons-for-elementor'),
538
  'type' => Controls_Manager::COLOR,
539
  'scheme' => [
540
  'type' => Scheme_Color::get_type(),
550
  );
551
  $this->add_responsive_control('premium_pin_size',
552
  [
553
+ 'label' => __('Size','premium-addons-for-elementor'),
554
  'type' =>Controls_Manager::SLIDER,
555
  'size_units' => ['px', "em"],
556
  'condition' =>[
563
  );
564
  $this->add_responsive_control('premium_pin_height',
565
  [
566
+ 'label' => __('Height','premium-addons-for-elementor'),
567
  'type' =>Controls_Manager::SLIDER,
568
  'size_units' => ['px', "em"],
569
  'condition' =>[
577
  $this->end_controls_section();
578
  }
579
 
580
+ protected function render(){
 
581
  // get our input from the widget settings.
582
  $settings = $this->get_settings_for_display();
583
  $this->add_inline_editing_attributes('premium_progressbar_left_label');
widgets/premium-testimonials.php CHANGED
@@ -26,20 +26,20 @@ class Premium_Testimonials extends Widget_Base {
26
  /*Testimonials Content Section */
27
  $this->start_controls_section('premium_testimonial_person_settings',
28
  [
29
- 'label' => esc_html__('Author', 'premium-addons-for-elementor'),
30
  ]
31
  );
32
 
33
  /*Person Image*/
34
  $this->add_control('premium_testimonial_person_image',
35
  [
36
- 'label' => esc_html__('Image','premium-addons-for-elementor'),
37
  'type' => Controls_Manager::MEDIA,
38
  'dynamic' => [ 'active' => true ],
39
  'default' => [
40
  'url' => Utils::get_placeholder_image_src()
41
  ],
42
- 'description' => esc_html__( 'Choose an image for the author', 'premium-addons-for-elementor' ),
43
  'show_label' => true,
44
  ]
45
  );
@@ -47,13 +47,13 @@ class Premium_Testimonials extends Widget_Base {
47
  /*Person Image Shape*/
48
  $this->add_control('premium_testimonial_person_image_shape',
49
  [
50
- 'label' => esc_html__('Image Style', 'premium-addons-for-elementor'),
51
  'type' => Controls_Manager::SELECT,
52
- 'description' => esc_html__( 'Choose image style', 'premium-addons-for-elementor' ),
53
  'options' => [
54
- 'square' => esc_html__('Square'),
55
- 'circle' => esc_html__('Circle'),
56
- 'rounded' => esc_html__('Rounded'),
57
  ],
58
  'default' => 'circle',
59
  ]
@@ -62,11 +62,11 @@ class Premium_Testimonials extends Widget_Base {
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
  'dynamic' => [ 'active' => true ],
68
- 'default' => esc_html__('Person Name', 'premium-addons-for-elementor'),
69
- 'description' => esc_html__( 'Enter author name', 'premium-addons-for-elementor' ),
70
  'label_block' => true
71
  ]
72
  );
@@ -74,9 +74,9 @@ class Premium_Testimonials extends Widget_Base {
74
  /*Name Title Tag*/
75
  $this->add_control('premium_testimonial_person_name_size',
76
  [
77
- 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
78
  'type' => Controls_Manager::SELECT,
79
- 'description' => esc_html__( 'Select a heading tag for author name', 'premium-addons-for-elementor' ),
80
  'options' => [
81
  'h1' => 'H1',
82
  'h2' => 'H2',
@@ -96,18 +96,18 @@ class Premium_Testimonials extends Widget_Base {
96
  /*Start Company Content Section*/
97
  $this->start_controls_section('premium_testimonial_company_settings',
98
  [
99
- 'label' => esc_html__('Company', 'premium-addons-for-elementor')
100
  ]
101
  );
102
 
103
  /*Company Name*/
104
  $this->add_control('premium_testimonial_company_name',
105
  [
106
- 'label' => esc_html__('Name', 'premium-addons-for-elementor'),
107
  'type' => Controls_Manager::TEXT,
108
  'dynamic' => [ 'active' => true ],
109
- 'default' => esc_html__('Company Name','premium-addons-for-elementor'),
110
- 'description' => esc_html__( 'Enter company name', 'premium-addons-for-elementor' ),
111
  'label_block' => true,
112
  ]
113
  );
@@ -115,16 +115,16 @@ class Premium_Testimonials extends Widget_Base {
115
  /*Company Name Tag*/
116
  $this->add_control('premium_testimonial_company_name_size',
117
  [
118
- 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
119
  'type' => Controls_Manager::SELECT,
120
- 'description' => esc_html__( 'Select a heading tag for company name', 'premium-addons-for-elementor' ),
121
  'options' => [
122
- 'h1' => esc_html('H1'),
123
- 'h2' => esc_html('H2'),
124
- 'h3' => esc_html('H3'),
125
- 'h4' => esc_html('H4'),
126
- 'h5' => esc_html('H5'),
127
- 'h6' => esc_html('H6'),
128
  ],
129
  'default' => 'h4',
130
  'label_block' => true,
@@ -133,7 +133,7 @@ class Premium_Testimonials extends Widget_Base {
133
 
134
  $this->add_control('premium_testimonial_company_link_switcher',
135
  [
136
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
137
  'type' => Controls_Manager::SWITCHER,
138
  'default' => 'yes',
139
  ]
@@ -142,9 +142,9 @@ class Premium_Testimonials extends Widget_Base {
142
  /*Company Link */
143
  $this->add_control('premium_testimonial_company_link',
144
  [
145
- 'label' => esc_html__('Link', 'premium-addons-for-elementor'),
146
  'type' => Controls_Manager::TEXT,
147
- 'description' => esc_html__( 'Add company URL', 'premium-addons-for-elementor' ),
148
  'label_block' => true,
149
  'condition' => [
150
  'premium_testimonial_company_link_switcher' => 'yes'
@@ -155,16 +155,16 @@ class Premium_Testimonials extends Widget_Base {
155
  /*Link Target*/
156
  $this->add_control('premium_testimonial_link_target',
157
  [
158
- 'label' => esc_html__('Link Target', 'premium-addons-for-elementor'),
159
  'type' => Controls_Manager::SELECT,
160
- 'description' => esc_html__( 'Select link target', 'premium-addons-for-elementor' ),
161
  'options' => [
162
- 'blank' => esc_html__('Blank'),
163
- 'parent' => esc_html__('Parent'),
164
- 'self' => esc_html__('Self'),
165
- 'top' => esc_html__('Top'),
166
  ],
167
- 'default' => esc_html__('blank','premium-addons-for-elementor'),
168
  'condition' => [
169
  'premium_testimonial_company_link_switcher' => 'yes'
170
  ]
@@ -177,17 +177,17 @@ class Premium_Testimonials extends Widget_Base {
177
  /*Start Testimonial Content Section*/
178
  $this->start_controls_section('premium_testimonial_settings',
179
  [
180
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
181
  ]
182
  );
183
 
184
  /*Testimonial Content*/
185
  $this->add_control('premium_testimonial_content',
186
  [
187
- 'label' => esc_html__('Testimonial Content', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::WYSIWYG,
189
  'dynamic' => [ 'active' => true ],
190
- 'default' => esc_html__('Donec id elit non mi porta gravida at eget metus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Cras mattis consectetur purus sit amet fermentum. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.','premium-elementor'),
191
  'label_block' => true,
192
  ]
193
  );
@@ -199,7 +199,7 @@ class Premium_Testimonials extends Widget_Base {
199
  /*Image Styling*/
200
  $this->start_controls_section('premium_testimonial_image_style',
201
  [
202
- 'label' => esc_html__('Image', 'premium-addons-for-elementor'),
203
  'tab' => Controls_Manager::TAB_STYLE,
204
  ]
205
  );
@@ -207,7 +207,7 @@ class Premium_Testimonials extends Widget_Base {
207
  /*Image Size*/
208
  $this->add_control('premium_testimonial_img_size',
209
  [
210
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
211
  'type' => Controls_Manager::SLIDER,
212
  'size_units' => ['px', 'em'],
213
  'default' => [
@@ -229,7 +229,7 @@ class Premium_Testimonials extends Widget_Base {
229
  /*Image Border Width*/
230
  $this->add_control('premium_testimonial_img_border_width',
231
  [
232
- 'label' => esc_html__('Border Width (PX)', 'premium-addons-for-elementor'),
233
  'type' => Controls_Manager::SLIDER,
234
  'default' => [
235
  'unit' => 'px',
@@ -250,7 +250,7 @@ class Premium_Testimonials extends Widget_Base {
250
  /*Image Border Color*/
251
  $this->add_control('premium_testimonial_image_border_color',
252
  [
253
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
254
  'type' => Controls_Manager::COLOR,
255
  'scheme' => [
256
  'type' => Scheme_Color::get_type(),
@@ -267,7 +267,7 @@ class Premium_Testimonials extends Widget_Base {
267
  /*Start Person Settings Section*/
268
  $this->start_controls_section('premium_testimonials_person_style',
269
  [
270
- 'label' => esc_html__('Author', 'premium-addons-for-elementor'),
271
  'tab' => Controls_Manager::TAB_STYLE,
272
  ]
273
  );
@@ -275,7 +275,7 @@ class Premium_Testimonials extends Widget_Base {
275
  /*Person Name Color*/
276
  $this->add_control('premium_testimonial_person_name_color',
277
  [
278
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::COLOR,
280
  'scheme' => [
281
  'type' => Scheme_Color::get_type(),
@@ -300,7 +300,7 @@ class Premium_Testimonials extends Widget_Base {
300
  /*Separator Color*/
301
  $this->add_control('premium_testimonial_separator_color',
302
  [
303
- 'label' => esc_html__('Divider Color', 'premium-addons-for-elementor'),
304
  'type' => Controls_Manager::COLOR,
305
  'scheme' => [
306
  'type' => Scheme_Color::get_type(),
@@ -317,7 +317,7 @@ class Premium_Testimonials extends Widget_Base {
317
  /*Start Company Settings Section*/
318
  $this->start_controls_section('premium_testimonial_company_style',
319
  [
320
- 'label' => esc_html__('Company', 'premium-addons-for-elementor'),
321
  'tab' => Controls_Manager::TAB_STYLE,
322
  ]
323
  );
@@ -325,7 +325,7 @@ class Premium_Testimonials extends Widget_Base {
325
  /*Company Name Color*/
326
  $this->add_control('premium_testimonial_company_name_color',
327
  [
328
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
329
  'type' => Controls_Manager::COLOR,
330
  'scheme' => [
331
  'type' => Scheme_Color::get_type(),
@@ -353,7 +353,7 @@ class Premium_Testimonials extends Widget_Base {
353
  /*Start Content Settings Section*/
354
  $this->start_controls_section('premium_testimonial_content_style',
355
  [
356
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
357
  'tab' => Controls_Manager::TAB_STYLE,
358
  ]
359
  );
@@ -361,7 +361,7 @@ class Premium_Testimonials extends Widget_Base {
361
  /*Content Color*/
362
  $this->add_control('premium_testimonial_content_color',
363
  [
364
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
365
  'type' => Controls_Manager::COLOR,
366
  'scheme' => [
367
  'type' => Scheme_Color::get_type(),
@@ -387,7 +387,7 @@ class Premium_Testimonials extends Widget_Base {
387
  /*Testimonial Text Margin*/
388
  $this->add_responsive_control('premium_testimonial_margin',
389
  [
390
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
391
  'type' => Controls_Manager::DIMENSIONS,
392
  'size_units' => ['px', 'em', '%'],
393
  'default' =>[
@@ -409,7 +409,7 @@ class Premium_Testimonials extends Widget_Base {
409
  /*Start Quotes Style Section*/
410
  $this->start_controls_section('premium_testimonial_quotes',
411
  [
412
- 'label' => esc_html__('Quotation Icon', 'premium-addons-for-elementor'),
413
  'tab' => Controls_Manager::TAB_STYLE,
414
  ]
415
  );
@@ -417,7 +417,7 @@ class Premium_Testimonials extends Widget_Base {
417
  /*Quotes Color*/
418
  $this->add_control('premium_testimonial_quote_icon_color',
419
  [
420
- 'label' => esc_html__('Color','premium-addons-for-elementor'),
421
  'type' => Controls_Manager::COLOR,
422
  'default' => 'rgba(110,193,228,0.2)',
423
  'selectors' => [
@@ -429,7 +429,7 @@ class Premium_Testimonials extends Widget_Base {
429
  /*Quotes Size*/
430
  $this->add_control('premium_testimonial_quotes_size',
431
  [
432
- 'label' => esc_html__('Size', 'premium-addons-for-elementor'),
433
  'type' => Controls_Manager::SLIDER,
434
  'size_units' => ['px', '%', 'em'],
435
  'default' => [
@@ -451,7 +451,7 @@ class Premium_Testimonials extends Widget_Base {
451
  /*Upper Quote Position*/
452
  $this->add_responsive_control('premium_testimonial_upper_quote_position',
453
  [
454
- 'label' => esc_html__('Top Icon Position', 'premium-addons-for-elementor'),
455
  'type' => Controls_Manager::DIMENSIONS,
456
  'size_units' => ['px', 'em', '%'],
457
  'default' =>[
@@ -468,7 +468,7 @@ class Premium_Testimonials extends Widget_Base {
468
  /*Lower Quote Position*/
469
  $this->add_responsive_control('premium_testimonial_lower_quote_position',
470
  [
471
- 'label' => esc_html__('Bottom Icon Position', 'premium-addons-for-elementor'),
472
  'type' => Controls_Manager::DIMENSIONS,
473
  'size_units' => ['px', 'em', '%'],
474
  'default' =>[
26
  /*Testimonials Content Section */
27
  $this->start_controls_section('premium_testimonial_person_settings',
28
  [
29
+ 'label' => __('Author', 'premium-addons-for-elementor'),
30
  ]
31
  );
32
 
33
  /*Person Image*/
34
  $this->add_control('premium_testimonial_person_image',
35
  [
36
+ 'label' => __('Image','premium-addons-for-elementor'),
37
  'type' => Controls_Manager::MEDIA,
38
  'dynamic' => [ 'active' => true ],
39
  'default' => [
40
  'url' => Utils::get_placeholder_image_src()
41
  ],
42
+ 'description' => __( 'Choose an image for the author', 'premium-addons-for-elementor' ),
43
  'show_label' => true,
44
  ]
45
  );
47
  /*Person Image Shape*/
48
  $this->add_control('premium_testimonial_person_image_shape',
49
  [
50
+ 'label' => __('Image Style', 'premium-addons-for-elementor'),
51
  'type' => Controls_Manager::SELECT,
52
+ 'description' => __( 'Choose image style', 'premium-addons-for-elementor' ),
53
  'options' => [
54
+ 'square' => __('Square','premium-addons-for-elementor'),
55
+ 'circle' => __('Circle','premium-addons-for-elementor'),
56
+ 'rounded' => __('Rounded','premium-addons-for-elementor'),
57
  ],
58
  'default' => 'circle',
59
  ]
62
  /*Person Name*/
63
  $this->add_control('premium_testimonial_person_name',
64
  [
65
+ 'label' => __('Name', 'premium-addons-for-elementor'),
66
  'type' => Controls_Manager::TEXT,
67
  'dynamic' => [ 'active' => true ],
68
+ 'default' => __('Person Name', 'premium-addons-for-elementor'),
69
+ 'description' => __( 'Enter author name', 'premium-addons-for-elementor' ),
70
  'label_block' => true
71
  ]
72
  );
74
  /*Name Title Tag*/
75
  $this->add_control('premium_testimonial_person_name_size',
76
  [
77
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
78
  'type' => Controls_Manager::SELECT,
79
+ 'description' => __( 'Select a heading tag for author name', 'premium-addons-for-elementor' ),
80
  'options' => [
81
  'h1' => 'H1',
82
  'h2' => 'H2',
96
  /*Start Company Content Section*/
97
  $this->start_controls_section('premium_testimonial_company_settings',
98
  [
99
+ 'label' => __('Company', 'premium-addons-for-elementor')
100
  ]
101
  );
102
 
103
  /*Company Name*/
104
  $this->add_control('premium_testimonial_company_name',
105
  [
106
+ 'label' => __('Name', 'premium-addons-for-elementor'),
107
  'type' => Controls_Manager::TEXT,
108
  'dynamic' => [ 'active' => true ],
109
+ 'default' => __('Company Name','premium-addons-for-elementor'),
110
+ 'description' => __( 'Enter company name', 'premium-addons-for-elementor' ),
111
  'label_block' => true,
112
  ]
113
  );
115
  /*Company Name Tag*/
116
  $this->add_control('premium_testimonial_company_name_size',
117
  [
118
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
119
  'type' => Controls_Manager::SELECT,
120
+ 'description' => __( 'Select a heading tag for company name', 'premium-addons-for-elementor' ),
121
  'options' => [
122
+ 'h1' => 'H1',
123
+ 'h2' => 'H2',
124
+ 'h3' => 'H3',
125
+ 'h4' => 'H4',
126
+ 'h5' => 'H5',
127
+ 'h6' => 'H6',
128
  ],
129
  'default' => 'h4',
130
  'label_block' => true,
133
 
134
  $this->add_control('premium_testimonial_company_link_switcher',
135
  [
136
+ 'label' => __('Link', 'premium-addons-for-elementor'),
137
  'type' => Controls_Manager::SWITCHER,
138
  'default' => 'yes',
139
  ]
142
  /*Company Link */
143
  $this->add_control('premium_testimonial_company_link',
144
  [
145
+ 'label' => __('Link', 'premium-addons-for-elementor'),
146
  'type' => Controls_Manager::TEXT,
147
+ 'description' => __( 'Add company URL', 'premium-addons-for-elementor' ),
148
  'label_block' => true,
149
  'condition' => [
150
  'premium_testimonial_company_link_switcher' => 'yes'
155
  /*Link Target*/
156
  $this->add_control('premium_testimonial_link_target',
157
  [
158
+ 'label' => __('Link Target', 'premium-addons-for-elementor'),
159
  'type' => Controls_Manager::SELECT,
160
+ 'description' => __( 'Select link target', 'premium-addons-for-elementor' ),
161
  'options' => [
162
+ 'blank' => __('Blank'),
163
+ 'parent' => __('Parent'),
164
+ 'self' => __('Self'),
165
+ 'top' => __('Top'),
166
  ],
167
+ 'default' => __('blank','premium-addons-for-elementor'),
168
  'condition' => [
169
  'premium_testimonial_company_link_switcher' => 'yes'
170
  ]
177
  /*Start Testimonial Content Section*/
178
  $this->start_controls_section('premium_testimonial_settings',
179
  [
180
+ 'label' => __('Content', 'premium-addons-for-elementor'),
181
  ]
182
  );
183
 
184
  /*Testimonial Content*/
185
  $this->add_control('premium_testimonial_content',
186
  [
187
+ 'label' => __('Testimonial Content', 'premium-addons-for-elementor'),
188
  'type' => Controls_Manager::WYSIWYG,
189
  'dynamic' => [ 'active' => true ],
190
+ 'default' => __('Donec id elit non mi porta gravida at eget metus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Cras mattis consectetur purus sit amet fermentum. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.','premium-elementor'),
191
  'label_block' => true,
192
  ]
193
  );
199
  /*Image Styling*/
200
  $this->start_controls_section('premium_testimonial_image_style',
201
  [
202
+ 'label' => __('Image', 'premium-addons-for-elementor'),
203
  'tab' => Controls_Manager::TAB_STYLE,
204
  ]
205
  );
207
  /*Image Size*/
208
  $this->add_control('premium_testimonial_img_size',
209
  [
210
+ 'label' => __('Size', 'premium-addons-for-elementor'),
211
  'type' => Controls_Manager::SLIDER,
212
  'size_units' => ['px', 'em'],
213
  'default' => [
229
  /*Image Border Width*/
230
  $this->add_control('premium_testimonial_img_border_width',
231
  [
232
+ 'label' => __('Border Width (PX)', 'premium-addons-for-elementor'),
233
  'type' => Controls_Manager::SLIDER,
234
  'default' => [
235
  'unit' => 'px',
250
  /*Image Border Color*/
251
  $this->add_control('premium_testimonial_image_border_color',
252
  [
253
+ 'label' => __('Color', 'premium-addons-for-elementor'),
254
  'type' => Controls_Manager::COLOR,
255
  'scheme' => [
256
  'type' => Scheme_Color::get_type(),
267
  /*Start Person Settings Section*/
268
  $this->start_controls_section('premium_testimonials_person_style',
269
  [
270
+ 'label' => __('Author', 'premium-addons-for-elementor'),
271
  'tab' => Controls_Manager::TAB_STYLE,
272
  ]
273
  );
275
  /*Person Name Color*/
276
  $this->add_control('premium_testimonial_person_name_color',
277
  [
278
+ 'label' => __('Color', 'premium-addons-for-elementor'),
279
  'type' => Controls_Manager::COLOR,
280
  'scheme' => [
281
  'type' => Scheme_Color::get_type(),
300
  /*Separator Color*/
301
  $this->add_control('premium_testimonial_separator_color',
302
  [
303
+ 'label' => __('Divider Color', 'premium-addons-for-elementor'),
304
  'type' => Controls_Manager::COLOR,
305
  'scheme' => [
306
  'type' => Scheme_Color::get_type(),
317
  /*Start Company Settings Section*/
318
  $this->start_controls_section('premium_testimonial_company_style',
319
  [
320
+ 'label' => __('Company', 'premium-addons-for-elementor'),
321
  'tab' => Controls_Manager::TAB_STYLE,
322
  ]
323
  );
325
  /*Company Name Color*/
326
  $this->add_control('premium_testimonial_company_name_color',
327
  [
328
+ 'label' => __('Color', 'premium-addons-for-elementor'),
329
  'type' => Controls_Manager::COLOR,
330
  'scheme' => [
331
  'type' => Scheme_Color::get_type(),
353
  /*Start Content Settings Section*/
354
  $this->start_controls_section('premium_testimonial_content_style',
355
  [
356
+ 'label' => __('Content', 'premium-addons-for-elementor'),
357
  'tab' => Controls_Manager::TAB_STYLE,
358
  ]
359
  );
361
  /*Content Color*/
362
  $this->add_control('premium_testimonial_content_color',
363
  [
364
+ 'label' => __('Color', 'premium-addons-for-elementor'),
365
  'type' => Controls_Manager::COLOR,
366
  'scheme' => [
367
  'type' => Scheme_Color::get_type(),
387
  /*Testimonial Text Margin*/
388
  $this->add_responsive_control('premium_testimonial_margin',
389
  [
390
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
391
  'type' => Controls_Manager::DIMENSIONS,
392
  'size_units' => ['px', 'em', '%'],
393
  'default' =>[
409
  /*Start Quotes Style Section*/
410
  $this->start_controls_section('premium_testimonial_quotes',
411
  [
412
+ 'label' => __('Quotation Icon', 'premium-addons-for-elementor'),
413
  'tab' => Controls_Manager::TAB_STYLE,
414
  ]
415
  );
417
  /*Quotes Color*/
418
  $this->add_control('premium_testimonial_quote_icon_color',
419
  [
420
+ 'label' => __('Color','premium-addons-for-elementor'),
421
  'type' => Controls_Manager::COLOR,
422
  'default' => 'rgba(110,193,228,0.2)',
423
  'selectors' => [
429
  /*Quotes Size*/
430
  $this->add_control('premium_testimonial_quotes_size',
431
  [
432
+ 'label' => __('Size', 'premium-addons-for-elementor'),
433
  'type' => Controls_Manager::SLIDER,
434
  'size_units' => ['px', '%', 'em'],
435
  'default' => [
451
  /*Upper Quote Position*/
452
  $this->add_responsive_control('premium_testimonial_upper_quote_position',
453
  [
454
+ 'label' => __('Top Icon Position', 'premium-addons-for-elementor'),
455
  'type' => Controls_Manager::DIMENSIONS,
456
  'size_units' => ['px', 'em', '%'],
457
  'default' =>[
468
  /*Lower Quote Position*/
469
  $this->add_responsive_control('premium_testimonial_lower_quote_position',
470
  [
471
+ 'label' => __('Bottom Icon Position', 'premium-addons-for-elementor'),
472
  'type' => Controls_Manager::DIMENSIONS,
473
  'size_units' => ['px', 'em', '%'],
474
  'default' =>[
widgets/premium-title.php CHANGED
@@ -28,16 +28,16 @@ class Premium_Title extends Widget_Base {
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,
42
  'dynamic' => [ 'active' => true ]
43
  ]
@@ -46,17 +46,17 @@ class Premium_Title extends Widget_Base {
46
  /*Title Style*/
47
  $this->add_control('premium_title_style',
48
  [
49
- 'label' => esc_html__('Style', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::SELECT,
51
  'default' => 'style1',
52
  'options' => [
53
- 'style1' => esc_html__('Style1'),
54
- 'style2' => esc_html__('Style2'),
55
- 'style3' => esc_html__('Style3'),
56
- 'style4' => esc_html__('Style4'),
57
- 'style5' => esc_html__('Style5'),
58
- 'style6' => esc_html__('Style6'),
59
- 'style7' => esc_html__('Style7'),
60
  ],
61
  'label_block' => true,
62
  ]
@@ -65,7 +65,7 @@ class Premium_Title extends Widget_Base {
65
  /*Icon Switcher*/
66
  $this->add_control('premium_title_icon_switcher',
67
  [
68
- 'label' => esc_html__('Icon', 'premium-addons-for-elementor'),
69
  'type' => Controls_Manager::SWITCHER,
70
  ]
71
  );
@@ -73,7 +73,7 @@ class Premium_Title extends Widget_Base {
73
  /*Icon*/
74
  $this->add_control('premium_title_icon',
75
  [
76
- 'label' => esc_html__('Font Awesome Icon', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::ICON,
78
  'label_block' => true,
79
  'condition' => [
@@ -85,9 +85,9 @@ class Premium_Title extends Widget_Base {
85
  /*Title HTML TAG*/
86
  $this->add_control('premium_title_tag',
87
  [
88
- 'label' => esc_html__('HTML Tag', 'premium-addons-for-elementor'),
89
  'type' => Controls_Manager::SELECT,
90
- 'default' => esc_html__('h2','premium-addons-for-elementor'),
91
  'options' => [
92
  'h1' => 'H1',
93
  'h2' => 'H2',
@@ -102,19 +102,19 @@ class Premium_Title extends Widget_Base {
102
  /*Title Align*/
103
  $this->add_responsive_control('premium_title_align',
104
  [
105
- 'label' => esc_html__( 'Alignment', 'premium-addons-for-elementor' ),
106
  'type' => Controls_Manager::CHOOSE,
107
  'options' => [
108
  'left' => [
109
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
110
  'icon' => 'fa fa-align-left',
111
  ],
112
  'center' => [
113
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
114
  'icon' => 'fa fa-align-center',
115
  ],
116
  'right' => [
117
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
118
  'icon' => 'fa fa-align-right',
119
  ],
120
  ],
@@ -131,7 +131,7 @@ class Premium_Title extends Widget_Base {
131
  /*Strip Width*/
132
  $this->add_control('premium_title_style7_strip_width',
133
  [
134
- 'label' => esc_html__('Strip Width (PX)', 'premium-addons-for-elementor'),
135
  'type' => Controls_Manager::SLIDER,
136
  'size_units' => ['px', '%', 'em'],
137
  'default' => [
@@ -151,7 +151,7 @@ class Premium_Title extends Widget_Base {
151
  /*Strip Height*/
152
  $this->add_control('premium_title_style7_strip_height',
153
  [
154
- 'label' => esc_html__('Strip Height (PX)', 'premium-addons-for-elementor'),
155
  'type' => Controls_Manager::SLIDER,
156
  'size_units' => ['px', 'em'],
157
  'default' => [
@@ -171,7 +171,7 @@ class Premium_Title extends Widget_Base {
171
  /*Strip Top Spacing*/
172
  $this->add_control('premium_title_style7_strip_top_spacing',
173
  [
174
- 'label' => esc_html__('Strip Top Spacing (PX)', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::SLIDER,
176
  'size_units' => ['px', '%', 'em'],
177
  'selectors' => [
@@ -187,7 +187,7 @@ class Premium_Title extends Widget_Base {
187
  /*Strip Bottom Spacing*/
188
  $this->add_control('premium_title_style7_strip_bottom_spacing',
189
  [
190
- 'label' => esc_html__('Strip Bottom Spacing (PX)', 'premium-addons-for-elementor'),
191
  'type' => Controls_Manager::SLIDER,
192
  'size_units' => ['px', '%', 'em'],
193
  'label_block' => true,
@@ -203,19 +203,19 @@ class Premium_Title extends Widget_Base {
203
  /*Title Align*/
204
  $this->add_responsive_control('premium_title_style7_strip_align',
205
  [
206
- 'label' => esc_html__( 'Align', 'premium-addons-for-elementor' ),
207
  'type' => Controls_Manager::CHOOSE,
208
  'options' => [
209
  'left' => [
210
- 'title'=> esc_html__( 'Left', 'premium-addons-for-elementor' ),
211
  'icon' => 'fa fa-align-left',
212
  ],
213
  'none' => [
214
- 'title'=> esc_html__( 'Center', 'premium-addons-for-elementor' ),
215
  'icon' => 'fa fa-align-center',
216
  ],
217
  'right' => [
218
- 'title'=> esc_html__( 'Right', 'premium-addons-for-elementor' ),
219
  'icon' => 'fa fa-align-right',
220
  ],
221
  ],
@@ -235,7 +235,7 @@ class Premium_Title extends Widget_Base {
235
  /*Start Styling Section*/
236
  $this->start_controls_section('premium_title_style_section',
237
  [
238
- 'label' => esc_html__('Title', 'premium-addons-for-elementor'),
239
  'tab' => Controls_Manager::TAB_STYLE,
240
  ]
241
  );
@@ -243,7 +243,7 @@ class Premium_Title extends Widget_Base {
243
  /*Title Color*/
244
  $this->add_control('premium_title_color',
245
  [
246
- 'label' => esc_html__('Color', 'premium-addons-for-elementor'),
247
  'type' => Controls_Manager::COLOR,
248
  'scheme' => [
249
  'type' => Scheme_Color::get_type(),
@@ -283,7 +283,7 @@ class Premium_Title extends Widget_Base {
283
  /*Background Color*/
284
  $this->add_control('premium_title_style2_background_color',
285
  [
286
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
287
  'type' => Controls_Manager::COLOR,
288
  'scheme' => [
289
  'type' => Scheme_Color::get_type(),
@@ -305,7 +305,7 @@ class Premium_Title extends Widget_Base {
305
  /*Background Color*/
306
  $this->add_control('premium_title_style3_background_color',
307
  [
308
- 'label' => esc_html__('Background Color', 'premium-addons-for-elementor'),
309
  'type' => Controls_Manager::COLOR,
310
  'scheme' => [
311
  'type' => Scheme_Color::get_type(),
@@ -325,7 +325,7 @@ class Premium_Title extends Widget_Base {
325
  /*Header Line Color*/
326
  $this->add_control('premium_title_style5_header_line_color',
327
  [
328
- 'label' => esc_html__('Line Color', 'premium-addons-for-elementor'),
329
  'type' => Controls_Manager::COLOR,
330
  'scheme' => [
331
  'type' => Scheme_Color::get_type(),
@@ -356,7 +356,7 @@ class Premium_Title extends Widget_Base {
356
  /*Header Line Color*/
357
  $this->add_control('premium_title_style6_header_line_color',
358
  [
359
- 'label' => esc_html__('Line Color', 'premium-addons-for-elementor'),
360
  'type' => Controls_Manager::COLOR,
361
  'scheme' => [
362
  'type' => Scheme_Color::get_type(),
@@ -374,7 +374,7 @@ class Premium_Title extends Widget_Base {
374
  /*Triangle Color*/
375
  $this->add_control('premium_title_style6_triangle_color',
376
  [
377
- 'label' => esc_html__('Triangle Color', 'premium-addons-for-elementor'),
378
  'type' => Controls_Manager::COLOR,
379
  'scheme' => [
380
  'type' => Scheme_Color::get_type(),
@@ -392,7 +392,7 @@ class Premium_Title extends Widget_Base {
392
  /*Strip Color*/
393
  $this->add_control('premium_title_style7_strip_color',
394
  [
395
- 'label' => esc_html__('Strip Color', 'premium-addons-for-elementor'),
396
  'type' => Controls_Manager::COLOR,
397
  'scheme' => [
398
  'type' => Scheme_Color::get_type(),
@@ -410,7 +410,7 @@ class Premium_Title extends Widget_Base {
410
  /*Title Margin*/
411
  $this->add_responsive_control('premium_title_margin',
412
  [
413
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
414
  'type' => Controls_Manager::DIMENSIONS,
415
  'size_units' => ['px', 'em', '%'],
416
  'selectors' => [
@@ -423,7 +423,7 @@ class Premium_Title extends Widget_Base {
423
  $this->add_group_control(
424
  Group_Control_Text_Shadow::get_type(),
425
  [
426
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
427
  'name' => 'premium_title_text_shadow',
428
  'selector' => '{{WRAPPER}} .premium-title-header'
429
  ]
@@ -435,7 +435,7 @@ class Premium_Title extends Widget_Base {
435
  /*Start Icon Style Section*/
436
  $this->start_controls_section('premium_title_icon_style_section',
437
  [
438
- 'label' => esc_html__('Icon Style', 'premium-addons-for-elementor'),
439
  'tab' => Controls_Manager::TAB_STYLE,
440
  'condition' => [
441
  'premium_title_icon_switcher' => 'yes'
@@ -446,7 +446,7 @@ class Premium_Title extends Widget_Base {
446
  /*Icon Color*/
447
  $this->add_control('premium_title_icon_color',
448
  [
449
- 'label' => esc_html__('Icon Color', 'premium-addons-for-elementor'),
450
  'type' => Controls_Manager::COLOR,
451
  'scheme' => [
452
  'type' => Scheme_Color::get_type(),
@@ -461,7 +461,7 @@ class Premium_Title extends Widget_Base {
461
  /*Icon Size*/
462
  $this->add_control('premium_title_icon_size',
463
  [
464
- 'label' => esc_html__('Icon Size', 'premium-addons-for-elementor'),
465
  'type' => Controls_Manager::SLIDER,
466
  'size_units' => ['px', 'em', '%'],
467
  'selectors' => [
@@ -492,7 +492,7 @@ class Premium_Title extends Widget_Base {
492
  /*Icon Border Radius*/
493
  $this->add_control('premium_title_icon_border_radius',
494
  [
495
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
496
  'type' => Controls_Manager::SLIDER,
497
  'size_units' => ['px', '%', 'em'],
498
  'selectors' => [
@@ -504,7 +504,7 @@ class Premium_Title extends Widget_Base {
504
  /*Icon Margin*/
505
  $this->add_responsive_control('premium_title_icon_margin',
506
  [
507
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
508
  'type' => Controls_Manager::DIMENSIONS,
509
  'size_units' => [ 'px', 'em', '%' ],
510
  'selectors' => [
@@ -516,7 +516,7 @@ class Premium_Title extends Widget_Base {
516
  /*Icon Padding*/
517
  $this->add_responsive_control('premium_title_icon_padding',
518
  [
519
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
520
  'type' => Controls_Manager::DIMENSIONS,
521
  'size_units' => [ 'px', 'em', '%' ],
522
  'selectors' => [
@@ -529,7 +529,7 @@ class Premium_Title extends Widget_Base {
529
  $this->add_group_control(
530
  Group_Control_Text_Shadow::get_type(),
531
  [
532
- 'label' => esc_html__('Icon Shadow', 'premium-addons-for-elementor'),
533
  'name' => 'premium_title_icon_text_shadow',
534
  'selector' => '{{WRAPPER}} .premium-title-icon'
535
  ]
28
  /* Start Title General Settings Section */
29
  $this->start_controls_section('premium_title_content',
30
  [
31
+ 'label' => __('Title', 'premium-addons-for-elementor'),
32
  ]
33
  );
34
 
35
  /*Title Text*/
36
  $this->add_control('premium_title_text',
37
  [
38
+ 'label' => __('Title', 'premium-addons-for-elementor'),
39
  'type' => Controls_Manager::TEXT,
40
+ 'default' => __('Premium Title','premium-addons-for-elementor'),
41
  'label_block' => true,
42
  'dynamic' => [ 'active' => true ]
43
  ]
46
  /*Title Style*/
47
  $this->add_control('premium_title_style',
48
  [
49
+ 'label' => __('Style', 'premium-addons-for-elementor'),
50
  'type' => Controls_Manager::SELECT,
51
  'default' => 'style1',
52
  'options' => [
53
+ 'style1' => 'Style1',
54
+ 'style2' => 'Style2',
55
+ 'style3' => 'Style3',
56
+ 'style4' => 'Style4',
57
+ 'style5' => 'Style5',
58
+ 'style6' => 'Style6',
59
+ 'style7' => 'Style7',
60
  ],
61
  'label_block' => true,
62
  ]
65
  /*Icon Switcher*/
66
  $this->add_control('premium_title_icon_switcher',
67
  [
68
+ 'label' => __('Icon', 'premium-addons-for-elementor'),
69
  'type' => Controls_Manager::SWITCHER,
70
  ]
71
  );
73
  /*Icon*/
74
  $this->add_control('premium_title_icon',
75
  [
76
+ 'label' => __('Font Awesome Icon', 'premium-addons-for-elementor'),
77
  'type' => Controls_Manager::ICON,
78
  'label_block' => true,
79
  'condition' => [
85
  /*Title HTML TAG*/
86
  $this->add_control('premium_title_tag',
87
  [
88
+ 'label' => __('HTML Tag', 'premium-addons-for-elementor'),
89
  'type' => Controls_Manager::SELECT,
90
+ 'default' => __('h2','premium-addons-for-elementor'),
91
  'options' => [
92
  'h1' => 'H1',
93
  'h2' => 'H2',
102
  /*Title Align*/
103
  $this->add_responsive_control('premium_title_align',
104
  [
105
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
106
  'type' => Controls_Manager::CHOOSE,
107
  'options' => [
108
  'left' => [
109
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
110
  'icon' => 'fa fa-align-left',
111
  ],
112
  'center' => [
113
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
114
  'icon' => 'fa fa-align-center',
115
  ],
116
  'right' => [
117
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
118
  'icon' => 'fa fa-align-right',
119
  ],
120
  ],
131
  /*Strip Width*/
132
  $this->add_control('premium_title_style7_strip_width',
133
  [
134
+ 'label' => __('Strip Width (PX)', 'premium-addons-for-elementor'),
135
  'type' => Controls_Manager::SLIDER,
136
  'size_units' => ['px', '%', 'em'],
137
  'default' => [
151
  /*Strip Height*/
152
  $this->add_control('premium_title_style7_strip_height',
153
  [
154
+ 'label' => __('Strip Height (PX)', 'premium-addons-for-elementor'),
155
  'type' => Controls_Manager::SLIDER,
156
  'size_units' => ['px', 'em'],
157
  'default' => [
171
  /*Strip Top Spacing*/
172
  $this->add_control('premium_title_style7_strip_top_spacing',
173
  [
174
+ 'label' => __('Strip Top Spacing (PX)', 'premium-addons-for-elementor'),
175
  'type' => Controls_Manager::SLIDER,
176
  'size_units' => ['px', '%', 'em'],
177
  'selectors' => [
187
  /*Strip Bottom Spacing*/
188
  $this->add_control('premium_title_style7_strip_bottom_spacing',
189
  [
190
+ 'label' => __('Strip Bottom Spacing (PX)', 'premium-addons-for-elementor'),
191
  'type' => Controls_Manager::SLIDER,
192
  'size_units' => ['px', '%', 'em'],
193
  'label_block' => true,
203
  /*Title Align*/
204
  $this->add_responsive_control('premium_title_style7_strip_align',
205
  [
206
+ 'label' => __( 'Align', 'premium-addons-for-elementor' ),
207
  'type' => Controls_Manager::CHOOSE,
208
  'options' => [
209
  'left' => [
210
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
211
  'icon' => 'fa fa-align-left',
212
  ],
213
  'none' => [
214
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
215
  'icon' => 'fa fa-align-center',
216
  ],
217
  'right' => [
218
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
219
  'icon' => 'fa fa-align-right',
220
  ],
221
  ],
235
  /*Start Styling Section*/
236
  $this->start_controls_section('premium_title_style_section',
237
  [
238
+ 'label' => __('Title', 'premium-addons-for-elementor'),
239
  'tab' => Controls_Manager::TAB_STYLE,
240
  ]
241
  );
243
  /*Title Color*/
244
  $this->add_control('premium_title_color',
245
  [
246
+ 'label' => __('Color', 'premium-addons-for-elementor'),
247
  'type' => Controls_Manager::COLOR,
248
  'scheme' => [
249
  'type' => Scheme_Color::get_type(),
283
  /*Background Color*/
284
  $this->add_control('premium_title_style2_background_color',
285
  [
286
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
287
  'type' => Controls_Manager::COLOR,
288
  'scheme' => [
289
  'type' => Scheme_Color::get_type(),
305
  /*Background Color*/
306
  $this->add_control('premium_title_style3_background_color',
307
  [
308
+ 'label' => __('Background Color', 'premium-addons-for-elementor'),
309
  'type' => Controls_Manager::COLOR,
310
  'scheme' => [
311
  'type' => Scheme_Color::get_type(),
325
  /*Header Line Color*/
326
  $this->add_control('premium_title_style5_header_line_color',
327
  [
328
+ 'label' => __('Line Color', 'premium-addons-for-elementor'),
329
  'type' => Controls_Manager::COLOR,
330
  'scheme' => [
331
  'type' => Scheme_Color::get_type(),
356
  /*Header Line Color*/
357
  $this->add_control('premium_title_style6_header_line_color',
358
  [
359
+ 'label' => __('Line Color', 'premium-addons-for-elementor'),
360
  'type' => Controls_Manager::COLOR,
361
  'scheme' => [
362
  'type' => Scheme_Color::get_type(),
374
  /*Triangle Color*/
375
  $this->add_control('premium_title_style6_triangle_color',
376
  [
377
+ 'label' => __('Triangle Color', 'premium-addons-for-elementor'),
378
  'type' => Controls_Manager::COLOR,
379
  'scheme' => [
380
  'type' => Scheme_Color::get_type(),
392
  /*Strip Color*/
393
  $this->add_control('premium_title_style7_strip_color',
394
  [
395
+ 'label' => __('Strip Color', 'premium-addons-for-elementor'),
396
  'type' => Controls_Manager::COLOR,
397
  'scheme' => [
398
  'type' => Scheme_Color::get_type(),
410
  /*Title Margin*/
411
  $this->add_responsive_control('premium_title_margin',
412
  [
413
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
414
  'type' => Controls_Manager::DIMENSIONS,
415
  'size_units' => ['px', 'em', '%'],
416
  'selectors' => [
423
  $this->add_group_control(
424
  Group_Control_Text_Shadow::get_type(),
425
  [
426
+ 'label' => __('Shadow','premium-addons-for-elementor'),
427
  'name' => 'premium_title_text_shadow',
428
  'selector' => '{{WRAPPER}} .premium-title-header'
429
  ]
435
  /*Start Icon Style Section*/
436
  $this->start_controls_section('premium_title_icon_style_section',
437
  [
438
+ 'label' => __('Icon Style', 'premium-addons-for-elementor'),
439
  'tab' => Controls_Manager::TAB_STYLE,
440
  'condition' => [
441
  'premium_title_icon_switcher' => 'yes'
446
  /*Icon Color*/
447
  $this->add_control('premium_title_icon_color',
448
  [
449
+ 'label' => __('Icon Color', 'premium-addons-for-elementor'),
450
  'type' => Controls_Manager::COLOR,
451
  'scheme' => [
452
  'type' => Scheme_Color::get_type(),
461
  /*Icon Size*/
462
  $this->add_control('premium_title_icon_size',
463
  [
464
+ 'label' => __('Icon Size', 'premium-addons-for-elementor'),
465
  'type' => Controls_Manager::SLIDER,
466
  'size_units' => ['px', 'em', '%'],
467
  'selectors' => [
492
  /*Icon Border Radius*/
493
  $this->add_control('premium_title_icon_border_radius',
494
  [
495
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
496
  'type' => Controls_Manager::SLIDER,
497
  'size_units' => ['px', '%', 'em'],
498
  'selectors' => [
504
  /*Icon Margin*/
505
  $this->add_responsive_control('premium_title_icon_margin',
506
  [
507
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
508
  'type' => Controls_Manager::DIMENSIONS,
509
  'size_units' => [ 'px', 'em', '%' ],
510
  'selectors' => [
516
  /*Icon Padding*/
517
  $this->add_responsive_control('premium_title_icon_padding',
518
  [
519
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
520
  'type' => Controls_Manager::DIMENSIONS,
521
  'size_units' => [ 'px', 'em', '%' ],
522
  'selectors' => [
529
  $this->add_group_control(
530
  Group_Control_Text_Shadow::get_type(),
531
  [
532
+ 'label' => __('Icon Shadow', 'premium-addons-for-elementor'),
533
  'name' => 'premium_title_icon_text_shadow',
534
  'selector' => '{{WRAPPER}} .premium-title-icon'
535
  ]
widgets/premium-videobox.php CHANGED
@@ -627,11 +627,11 @@ class Premium_Videobox extends Widget_Base {
627
  </div>
628
  <div class="premium-video-box-image-container" style="background-image: url('<?php echo esc_url($settings['premium_video_box_image']['url']); ?>')">
629
  </div>
630
- <div class="premium-video-box-play-icon-container">
631
- <?php if($settings['premium_video_box_play_icon_switcher'] == 'yes') : ?>
632
- <i class="premium-video-box-play-icon fa fa-play fa-lg"></i>
633
- <?php endif; ?>
634
- </div>
635
  <?php if( $settings['premium_video_box_video_text_switcher'] == 'yes' && !empty( $settings['premium_video_box_description_text'] ) ) : ?>
636
  <div class="premium-video-box-description-container">
637
  <p class="premium-video-box-text"><span <?php echo $this->get_render_attribute_string('premium_video_box_description_text'); ?>><?php echo $settings['premium_video_box_description_text']; ?></span></p>
627
  </div>
628
  <div class="premium-video-box-image-container" style="background-image: url('<?php echo esc_url($settings['premium_video_box_image']['url']); ?>')">
629
  </div>
630
+ <?php if($settings['premium_video_box_play_icon_switcher'] == 'yes') : ?>
631
+ <div class="premium-video-box-play-icon-container">
632
+ <i class="premium-video-box-play-icon fa fa-play fa-lg"></i>
633
+ </div>
634
+ <?php endif; ?>
635
  <?php if( $settings['premium_video_box_video_text_switcher'] == 'yes' && !empty( $settings['premium_video_box_description_text'] ) ) : ?>
636
  <div class="premium-video-box-description-container">
637
  <p class="premium-video-box-text"><span <?php echo $this->get_render_attribute_string('premium_video_box_description_text'); ?>><?php echo $settings['premium_video_box_description_text']; ?></span></p>
widgets/premium-vscroll.php CHANGED
@@ -43,7 +43,7 @@ class Premium_Vscroll extends Widget_Base {
43
 
44
  $this->start_controls_section('content_templates',
45
  [
46
- 'label' => esc_html__('Content', 'premium-addons-for-elementor'),
47
  ]
48
  );
49
 
@@ -57,14 +57,14 @@ class Premium_Vscroll extends Widget_Base {
57
 
58
  $this->add_control('content_type',
59
  [
60
- 'label' => esc_html__('Content Type', 'premium-addons-for-elementor'),
61
  'type' => Controls_Manager::SELECT,
62
  'options' => [
63
- 'ids' => esc_html__('Section ID', 'premium-addons-for-elementor'),
64
- 'templates' => esc_html__('Elementor Templates', 'premium-addons-for-elementor')
65
  ],
66
  'default' => 'templates',
67
- 'description' => esc_html__('Choose which method you prefer to insert sections.', 'premium-addons-for-elementor')
68
  ]
69
  );
70
 
@@ -72,7 +72,7 @@ class Premium_Vscroll extends Widget_Base {
72
 
73
  $temp_repeater->add_control('section_template',
74
  [
75
- 'label' => esc_html__( 'Elementor Template', 'premium-addons-for-elementor' ),
76
  'type' => Controls_Manager::SELECT2,
77
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
78
  'multiple' => false,
@@ -81,7 +81,7 @@ class Premium_Vscroll extends Widget_Base {
81
 
82
  $this->add_control('section_repeater',
83
  [
84
- 'label' => esc_html__( 'Sections', 'premium-addons-for-elementor' ),
85
  'type' => Controls_Manager::REPEATER,
86
  'fields' => array_values( $temp_repeater->get_controls() ),
87
  'condition' => [
@@ -94,14 +94,14 @@ class Premium_Vscroll extends Widget_Base {
94
 
95
  $id_repeater->add_control('section_id',
96
  [
97
- 'label' => esc_html__( 'Section ID', 'premium-addons-for-elementor' ),
98
  'type' => Controls_Manager::TEXT
99
  ]
100
  );
101
 
102
  $this->add_control('id_repeater',
103
  [
104
- 'label' => esc_html__( 'Sections', 'premium-addons-for-elementor' ),
105
  'type' => Controls_Manager::REPEATER,
106
  'fields' => array_values( $id_repeater->get_controls() ),
107
  'condition' => [
@@ -112,7 +112,7 @@ class Premium_Vscroll extends Widget_Base {
112
 
113
  $this->add_control('dots_tooltips_switcher',
114
  [
115
- 'label' => esc_html__('Dots Tooltips', 'premium-addons-for-elementor'),
116
  'type' => Controls_Manager::SWITCHER,
117
  'default' => 'yes'
118
  ]
@@ -120,9 +120,9 @@ class Premium_Vscroll extends Widget_Base {
120
 
121
  $this->add_control('dots_tooltips',
122
  [
123
- 'label' => esc_html__('Dots Tooltips Text', 'premium-addons-for-elementor'),
124
  'type' => Controls_Manager::TEXT,
125
- 'description' => esc_html__('Add text for each navigation dot separated by \',\'','premium-addons-for-elementor'),
126
  'condition' => [
127
  'dots_tooltips_switcher' => 'yes'
128
  ]
@@ -133,25 +133,25 @@ class Premium_Vscroll extends Widget_Base {
133
 
134
  $this->start_controls_section('nav_menu',
135
  [
136
- 'label' => esc_html__('Navigation', 'premium-addons-for-elementor'),
137
  ]
138
  );
139
 
140
  $this->add_control('nav_menu_switch',
141
  [
142
- 'label' => esc_html__('Navigation Menu', 'premium-addons-for-elementor'),
143
  'type' => Controls_Manager::SWITCHER,
144
- 'description' => esc_html__('This option works only on the frontend', 'premium-addons-for-elementor'),
145
  ]
146
  );
147
 
148
  $this->add_control('navigation_menu_pos',
149
  [
150
- 'label' => esc_html__('Position', 'premium-addons-for-elementor'),
151
  'type' => Controls_Manager::SELECT,
152
  'options' => [
153
- 'left' => esc_html__('Left', 'premium-addons-for-elementor'),
154
- 'right' => esc_html__('Right', 'premium-addons-for-elementor'),
155
  ],
156
  'default' => 'left',
157
  'condition' => [
@@ -162,7 +162,7 @@ class Premium_Vscroll extends Widget_Base {
162
 
163
  $this->add_responsive_control('navigation_menu_pos_offset_top',
164
  [
165
- 'label' => esc_html__('Offset Top', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::SLIDER,
167
  'size_units' => ['px', '%' ,'em'],
168
  'selectors' => [
@@ -176,7 +176,7 @@ class Premium_Vscroll extends Widget_Base {
176
 
177
  $this->add_responsive_control('navigation_menu_pos_offset_left',
178
  [
179
- 'label' => esc_html__('Offset Left', 'premium-addons-for-elementor'),
180
  'type' => Controls_Manager::SLIDER,
181
  'size_units' => ['px', '%' ,'em'],
182
  'selectors' => [
@@ -191,7 +191,7 @@ class Premium_Vscroll extends Widget_Base {
191
 
192
  $this->add_responsive_control('navigation_menu_pos_offset_right',
193
  [
194
- 'label' => esc_html__('Offset Right', 'premium-addons-for-elementor'),
195
  'type' => Controls_Manager::SLIDER,
196
  'size_units' => ['px', '%' ,'em'],
197
  'selectors' => [
@@ -208,14 +208,14 @@ class Premium_Vscroll extends Widget_Base {
208
 
209
  $nav_repeater->add_control('nav_menu_item',
210
  [
211
- 'label' => esc_html__( 'List Item', 'premium-addons-for-elementor' ),
212
  'type' => Controls_Manager::TEXT,
213
  ]
214
  );
215
 
216
  $this->add_control('nav_menu_repeater',
217
  [
218
- 'label' => esc_html__( 'Menu Items', 'premium-addons-for-elementor' ),
219
  'type' => Controls_Manager::REPEATER,
220
  'fields' => array_values( $nav_repeater->get_controls() ),
221
  'title_field' => '{{{ nav_menu_item }}}',
@@ -227,11 +227,11 @@ class Premium_Vscroll extends Widget_Base {
227
 
228
  $this->add_control('navigation_dots_pos',
229
  [
230
- 'label' => esc_html__('Dots Horizontal Position', 'premium-addons-for-elementor'),
231
  'type' => Controls_Manager::SELECT,
232
  'options' => [
233
- 'left' => esc_html__('Left', 'premium-addons-for-elementor'),
234
- 'right' => esc_html__('Right', 'premium-addons-for-elementor'),
235
  ],
236
  'default' => 'right'
237
  ]
@@ -239,12 +239,12 @@ class Premium_Vscroll extends Widget_Base {
239
 
240
  $this->add_control('navigation_dots_v_pos',
241
  [
242
- 'label' => esc_html__('Dots Vertical Position', 'premium-addons-for-elementor'),
243
  'type' => Controls_Manager::SELECT,
244
  'options' => [
245
- 'top' => esc_html__('Top', 'premium-addons-for-elementor'),
246
- 'middle'=> esc_html__('Middle', 'premium-addons-for-elementor'),
247
- 'bottom'=> esc_html__('Bottom', 'premium-addons-for-elementor'),
248
  ],
249
  'default' => 'middle'
250
  ]
@@ -254,21 +254,21 @@ class Premium_Vscroll extends Widget_Base {
254
 
255
  $this->start_controls_section('advanced_settings',
256
  [
257
- 'label' => esc_html__('Scroll Settings', 'premium-addons-for-elementor'),
258
  ]
259
  );
260
 
261
  $this->add_control('scroll_speed',
262
  [
263
- 'label' => esc_html__('Scroll Speed', 'premium-addons-for-elementor'),
264
  'type' => Controls_Manager::NUMBER,
265
- 'description' => esc_html__('Set scolling speed in seconds, default: 0.7', 'premium-addons-for-elementor'),
266
  ]
267
  );
268
 
269
  $this->add_control('full_section',
270
  [
271
- 'label' => esc_html__('Full Section Scroll', 'premium-addons-for-elementor'),
272
  'type' => Controls_Manager::SWITCHER,
273
  'default' => 'yes',
274
  ]
@@ -278,7 +278,7 @@ class Premium_Vscroll extends Widget_Base {
278
 
279
  $this->start_controls_section('navigation_style',
280
  [
281
- 'label' => esc_html__('Navigation Dots', 'premium-addons-for-elementor'),
282
  'tab' => CONTROLS_MANAGER::TAB_STYLE,
283
  ]
284
  );
@@ -287,7 +287,7 @@ class Premium_Vscroll extends Widget_Base {
287
 
288
  $this->start_controls_tab('tooltips_style_tab',
289
  [
290
- 'label' => esc_html__('Tooltips', 'premium-addons-for-elementor'),
291
  'condition' => [
292
  'dots_tooltips_switcher' => 'yes'
293
  ]
@@ -296,7 +296,7 @@ class Premium_Vscroll extends Widget_Base {
296
 
297
  $this->add_control('tooltips_color',
298
  [
299
- 'label' => esc_html__( 'Tooltips Text Color', 'premium-addons-for-elementor' ),
300
  'type' => Controls_Manager::COLOR,
301
  'scheme' => [
302
  'type' => Scheme_Color::get_type(),
@@ -325,7 +325,7 @@ class Premium_Vscroll extends Widget_Base {
325
 
326
  $this->add_control('tooltips_background',
327
  [
328
- 'label' => esc_html__( 'Tooltips Background', 'premium-addons-for-elementor' ),
329
  'type' => Controls_Manager::COLOR,
330
  'scheme' => [
331
  'type' => Scheme_Color::get_type(),
@@ -355,7 +355,7 @@ class Premium_Vscroll extends Widget_Base {
355
 
356
  $this->add_control('tooltips_border_radius',
357
  [
358
- 'label' => esc_html__( 'Border Radius', 'premium-addons-for-elementor' ),
359
  'type' => Controls_Manager::SLIDER,
360
  'size_units' => ['px', 'em', '%'],
361
  'selectors' => [
@@ -380,7 +380,7 @@ class Premium_Vscroll extends Widget_Base {
380
 
381
  $this->add_responsive_control('tooltips_margin',
382
  [
383
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
384
  'type' => Controls_Manager::DIMENSIONS,
385
  'size_units' => ['px', 'em', '%'],
386
  'selectors' => [
@@ -394,7 +394,7 @@ class Premium_Vscroll extends Widget_Base {
394
 
395
  $this->add_responsive_control('tooltips_padding',
396
  [
397
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
398
  'type' => Controls_Manager::DIMENSIONS,
399
  'size_units' => ['px', 'em', '%'],
400
  'selectors' => [
@@ -410,13 +410,13 @@ class Premium_Vscroll extends Widget_Base {
410
 
411
  $this->start_controls_tab('dots_style_tab',
412
  [
413
- 'label' => esc_html__('Dots', 'premium-addons-for-elementor'),
414
  ]
415
  );
416
 
417
  $this->add_control('dots_color',
418
  [
419
- 'label' => esc_html__( 'Dots Color', 'premium-addons-for-elementor' ),
420
  'type' => Controls_Manager::COLOR,
421
  'scheme' => [
422
  'type' => Scheme_Color::get_type(),
@@ -430,7 +430,7 @@ class Premium_Vscroll extends Widget_Base {
430
 
431
  $this->add_control('active_dot_color',
432
  [
433
- 'label' => esc_html__( 'Active Dot Color', 'premium-addons-for-elementor' ),
434
  'type' => Controls_Manager::COLOR,
435
  'scheme' => [
436
  'type' => Scheme_Color::get_type(),
@@ -444,7 +444,7 @@ class Premium_Vscroll extends Widget_Base {
444
 
445
  $this->add_control('dots_border_color',
446
  [
447
- 'label' => esc_html__( 'Dots Border Color', 'premium-addons-for-elementor' ),
448
  'type' => Controls_Manager::COLOR,
449
  'scheme' => [
450
  'type' => Scheme_Color::get_type(),
@@ -460,13 +460,13 @@ class Premium_Vscroll extends Widget_Base {
460
 
461
  $this->start_controls_tab('container_style_tab',
462
  [
463
- 'label' => esc_html__('Container', 'premium-addons-for-elementor'),
464
  ]
465
  );
466
 
467
  $this->add_control('navigation_background',
468
  [
469
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
470
  'type' => Controls_Manager::COLOR,
471
  'scheme' => [
472
  'type' => Scheme_Color::get_type(),
@@ -480,7 +480,7 @@ class Premium_Vscroll extends Widget_Base {
480
 
481
  $this->add_control('navigation_border_radius',
482
  [
483
- 'label' => esc_html__( 'Border Radius', 'premium-addons-for-elementor' ),
484
  'type' => Controls_Manager::SLIDER,
485
  'size_units' => ['px', 'em', '%'],
486
  'selectors' => [
@@ -492,7 +492,7 @@ class Premium_Vscroll extends Widget_Base {
492
  $this->add_group_control(
493
  Group_Control_Box_Shadow::get_type(),
494
  [
495
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
496
  'name' => 'navigation_box_shadow',
497
  'selector' => '{{WRAPPER}} .premium-vscroll-dots',
498
  ]
@@ -506,7 +506,7 @@ class Premium_Vscroll extends Widget_Base {
506
 
507
  $this->start_controls_section('navigation_menu_style',
508
  [
509
- 'label' => esc_html__('Navigation Menu', 'premium-addons-for-elementor'),
510
  'tab' => CONTROLS_MANAGER::TAB_STYLE,
511
  'condition' => [
512
  'nav_menu_switch' => 'yes'
@@ -526,13 +526,13 @@ class Premium_Vscroll extends Widget_Base {
526
 
527
  $this->start_controls_tab('normal_style_tab',
528
  [
529
- 'label' => esc_html__('Normal', 'premium-addons-for-elementor'),
530
  ]
531
  );
532
 
533
  $this->add_control('normal_color',
534
  [
535
- 'label' => esc_html__( 'Text Color', 'premium-addons-for-elementor' ),
536
  'type' => Controls_Manager::COLOR,
537
  'scheme' => [
538
  'type' => Scheme_Color::get_type(),
@@ -546,7 +546,7 @@ class Premium_Vscroll extends Widget_Base {
546
 
547
  $this->add_control('normal_hover_color',
548
  [
549
- 'label' => esc_html__( 'Text Hover Color', 'premium-addons-for-elementor' ),
550
  'type' => Controls_Manager::COLOR,
551
  'scheme' => [
552
  'type' => Scheme_Color::get_type(),
@@ -560,7 +560,7 @@ class Premium_Vscroll extends Widget_Base {
560
 
561
  $this->add_control('normal_background',
562
  [
563
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
564
  'type' => Controls_Manager::COLOR,
565
  'scheme' => [
566
  'type' => Scheme_Color::get_type(),
@@ -575,7 +575,7 @@ class Premium_Vscroll extends Widget_Base {
575
  $this->add_group_control(
576
  Group_Control_Box_Shadow::get_type(),
577
  [
578
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
579
  'name' => 'normal_shadow',
580
  'selector' => '{{WRAPPER}} .premium-vscroll-nav-menu .premium-vscroll-nav-item'
581
  ]
@@ -585,13 +585,13 @@ class Premium_Vscroll extends Widget_Base {
585
 
586
  $this->start_controls_tab('active_style_tab',
587
  [
588
- 'label' => esc_html__('Active', 'premium-addons-for-elementor'),
589
  ]
590
  );
591
 
592
  $this->add_control('active_color',
593
  [
594
- 'label' => esc_html__( 'Text Color', 'premium-addons-for-elementor' ),
595
  'type' => Controls_Manager::COLOR,
596
  'scheme' => [
597
  'type' => Scheme_Color::get_type(),
@@ -605,7 +605,7 @@ class Premium_Vscroll extends Widget_Base {
605
 
606
  $this->add_control('active_hover_color',
607
  [
608
- 'label' => esc_html__( 'Text Hover Color', 'premium-addons-for-elementor' ),
609
  'type' => Controls_Manager::COLOR,
610
  'scheme' => [
611
  'type' => Scheme_Color::get_type(),
@@ -619,7 +619,7 @@ class Premium_Vscroll extends Widget_Base {
619
 
620
  $this->add_control('active_background',
621
  [
622
- 'label' => esc_html__( 'Background Color', 'premium-addons-for-elementor' ),
623
  'type' => Controls_Manager::COLOR,
624
  'scheme' => [
625
  'type' => Scheme_Color::get_type(),
@@ -634,7 +634,7 @@ class Premium_Vscroll extends Widget_Base {
634
  $this->add_group_control(
635
  Group_Control_Box_Shadow::get_type(),
636
  [
637
- 'label' => esc_html__('Shadow','premium-addons-for-elementor'),
638
  'name' => 'active_shadow',
639
  'selector' => '{{WRAPPER}} .premium-vscroll-nav-menu .premium-vscroll-nav-item.active'
640
  ]
@@ -653,7 +653,7 @@ class Premium_Vscroll extends Widget_Base {
653
 
654
  $this->add_control('navigation_items_border_radius',
655
  [
656
- 'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
657
  'type' => Controls_Manager::SLIDER,
658
  'size_units' => ['px','em','%'],
659
  'selectors' => [
@@ -664,7 +664,7 @@ class Premium_Vscroll extends Widget_Base {
664
 
665
  $this->add_responsive_control('navigation_items_margin',
666
  [
667
- 'label' => esc_html__('Margin', 'premium-addons-for-elementor'),
668
  'type' => Controls_Manager::DIMENSIONS,
669
  'size_units' => ['px', 'em', '%'],
670
  'selectors' => [
@@ -675,7 +675,7 @@ class Premium_Vscroll extends Widget_Base {
675
 
676
  $this->add_responsive_control('navigation_items_padding',
677
  [
678
- 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
679
  'type' => Controls_Manager::DIMENSIONS,
680
  'size_units' => ['px', 'em', '%'],
681
  'selectors' => [
43
 
44
  $this->start_controls_section('content_templates',
45
  [
46
+ 'label' => __('Content', 'premium-addons-for-elementor'),
47
  ]
48
  );
49
 
57
 
58
  $this->add_control('content_type',
59
  [
60
+ 'label' => __('Content Type', 'premium-addons-for-elementor'),
61
  'type' => Controls_Manager::SELECT,
62
  'options' => [
63
+ 'ids' => __('Section ID', 'premium-addons-for-elementor'),
64
+ 'templates' => __('Elementor Templates', 'premium-addons-for-elementor')
65
  ],
66
  'default' => 'templates',
67
+ 'description' => __('Choose which method you prefer to insert sections.', 'premium-addons-for-elementor')
68
  ]
69
  );
70
 
72
 
73
  $temp_repeater->add_control('section_template',
74
  [
75
+ 'label' => __( 'Elementor Template', 'premium-addons-for-elementor' ),
76
  'type' => Controls_Manager::SELECT2,
77
  'options' => $this->getTemplateInstance()->get_elementor_page_list(),
78
  'multiple' => false,
81
 
82
  $this->add_control('section_repeater',
83
  [
84
+ 'label' => __( 'Sections', 'premium-addons-for-elementor' ),
85
  'type' => Controls_Manager::REPEATER,
86
  'fields' => array_values( $temp_repeater->get_controls() ),
87
  'condition' => [
94
 
95
  $id_repeater->add_control('section_id',
96
  [
97
+ 'label' => __( 'Section ID', 'premium-addons-for-elementor' ),
98
  'type' => Controls_Manager::TEXT
99
  ]
100
  );
101
 
102
  $this->add_control('id_repeater',
103
  [
104
+ 'label' => __( 'Sections', 'premium-addons-for-elementor' ),
105
  'type' => Controls_Manager::REPEATER,
106
  'fields' => array_values( $id_repeater->get_controls() ),
107
  'condition' => [
112
 
113
  $this->add_control('dots_tooltips_switcher',
114
  [
115
+ 'label' => __('Dots Tooltips', 'premium-addons-for-elementor'),
116
  'type' => Controls_Manager::SWITCHER,
117
  'default' => 'yes'
118
  ]
120
 
121
  $this->add_control('dots_tooltips',
122
  [
123
+ 'label' => __('Dots Tooltips Text', 'premium-addons-for-elementor'),
124
  'type' => Controls_Manager::TEXT,
125
+ 'description' => __('Add text for each navigation dot separated by \',\'','premium-addons-for-elementor'),
126
  'condition' => [
127
  'dots_tooltips_switcher' => 'yes'
128
  ]
133
 
134
  $this->start_controls_section('nav_menu',
135
  [
136
+ 'label' => __('Navigation', 'premium-addons-for-elementor'),
137
  ]
138
  );
139
 
140
  $this->add_control('nav_menu_switch',
141
  [
142
+ 'label' => __('Navigation Menu', 'premium-addons-for-elementor'),
143
  'type' => Controls_Manager::SWITCHER,
144
+ 'description' => __('This option works only on the frontend', 'premium-addons-for-elementor'),
145
  ]
146
  );
147
 
148
  $this->add_control('navigation_menu_pos',
149
  [
150
+ 'label' => __('Position', 'premium-addons-for-elementor'),
151
  'type' => Controls_Manager::SELECT,
152
  'options' => [
153
+ 'left' => __('Left', 'premium-addons-for-elementor'),
154
+ 'right' => __('Right', 'premium-addons-for-elementor'),
155
  ],
156
  'default' => 'left',
157
  'condition' => [
162
 
163
  $this->add_responsive_control('navigation_menu_pos_offset_top',
164
  [
165
+ 'label' => __('Offset Top', 'premium-addons-for-elementor'),
166
  'type' => Controls_Manager::SLIDER,
167
  'size_units' => ['px', '%' ,'em'],
168
  'selectors' => [
176
 
177
  $this->add_responsive_control('navigation_menu_pos_offset_left',
178
  [
179
+ 'label' => __('Offset Left', 'premium-addons-for-elementor'),
180
  'type' => Controls_Manager::SLIDER,
181
  'size_units' => ['px', '%' ,'em'],
182
  'selectors' => [
191
 
192
  $this->add_responsive_control('navigation_menu_pos_offset_right',
193
  [
194
+ 'label' => __('Offset Right', 'premium-addons-for-elementor'),
195
  'type' => Controls_Manager::SLIDER,
196
  'size_units' => ['px', '%' ,'em'],
197
  'selectors' => [
208
 
209
  $nav_repeater->add_control('nav_menu_item',
210
  [
211
+ 'label' => __( 'List Item', 'premium-addons-for-elementor' ),
212
  'type' => Controls_Manager::TEXT,
213
  ]
214
  );
215
 
216
  $this->add_control('nav_menu_repeater',
217
  [
218
+ 'label' => __( 'Menu Items', 'premium-addons-for-elementor' ),
219
  'type' => Controls_Manager::REPEATER,
220
  'fields' => array_values( $nav_repeater->get_controls() ),
221
  'title_field' => '{{{ nav_menu_item }}}',
227
 
228
  $this->add_control('navigation_dots_pos',
229
  [
230
+ 'label' => __('Dots Horizontal Position', 'premium-addons-for-elementor'),
231
  'type' => Controls_Manager::SELECT,
232
  'options' => [
233
+ 'left' => __('Left', 'premium-addons-for-elementor'),
234
+ 'right' => __('Right', 'premium-addons-for-elementor'),
235
  ],
236
  'default' => 'right'
237
  ]
239
 
240
  $this->add_control('navigation_dots_v_pos',
241
  [
242
+ 'label' => __('Dots Vertical Position', 'premium-addons-for-elementor'),
243
  'type' => Controls_Manager::SELECT,
244
  'options' => [
245
+ 'top' => __('Top', 'premium-addons-for-elementor'),
246
+ 'middle'=> __('Middle', 'premium-addons-for-elementor'),
247
+ 'bottom'=> __('Bottom', 'premium-addons-for-elementor'),
248
  ],
249
  'default' => 'middle'
250
  ]
254
 
255
  $this->start_controls_section('advanced_settings',
256
  [
257
+ 'label' => __('Scroll Settings', 'premium-addons-for-elementor'),
258
  ]
259
  );
260
 
261
  $this->add_control('scroll_speed',
262
  [
263
+ 'label' => __('Scroll Speed', 'premium-addons-for-elementor'),
264
  'type' => Controls_Manager::NUMBER,
265
+ 'description' => __('Set scolling speed in seconds, default: 0.7', 'premium-addons-for-elementor'),
266
  ]
267
  );
268
 
269
  $this->add_control('full_section',
270
  [
271
+ 'label' => __('Full Section Scroll', 'premium-addons-for-elementor'),
272
  'type' => Controls_Manager::SWITCHER,
273
  'default' => 'yes',
274
  ]
278
 
279
  $this->start_controls_section('navigation_style',
280
  [
281
+ 'label' => __('Navigation Dots', 'premium-addons-for-elementor'),
282
  'tab' => CONTROLS_MANAGER::TAB_STYLE,
283
  ]
284
  );
287
 
288
  $this->start_controls_tab('tooltips_style_tab',
289
  [
290
+ 'label' => __('Tooltips', 'premium-addons-for-elementor'),
291
  'condition' => [
292
  'dots_tooltips_switcher' => 'yes'
293
  ]
296
 
297
  $this->add_control('tooltips_color',
298
  [
299
+ 'label' => __( 'Tooltips Text Color', 'premium-addons-for-elementor' ),
300
  'type' => Controls_Manager::COLOR,
301
  'scheme' => [
302
  'type' => Scheme_Color::get_type(),
325
 
326
  $this->add_control('tooltips_background',
327
  [
328
+ 'label' => __( 'Tooltips Background', 'premium-addons-for-elementor' ),
329
  'type' => Controls_Manager::COLOR,
330
  'scheme' => [
331
  'type' => Scheme_Color::get_type(),
355
 
356
  $this->add_control('tooltips_border_radius',
357
  [
358
+ 'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
359
  'type' => Controls_Manager::SLIDER,
360
  'size_units' => ['px', 'em', '%'],
361
  'selectors' => [
380
 
381
  $this->add_responsive_control('tooltips_margin',
382
  [
383
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
384
  'type' => Controls_Manager::DIMENSIONS,
385
  'size_units' => ['px', 'em', '%'],
386
  'selectors' => [
394
 
395
  $this->add_responsive_control('tooltips_padding',
396
  [
397
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
398
  'type' => Controls_Manager::DIMENSIONS,
399
  'size_units' => ['px', 'em', '%'],
400
  'selectors' => [
410
 
411
  $this->start_controls_tab('dots_style_tab',
412
  [
413
+ 'label' => __('Dots', 'premium-addons-for-elementor'),
414
  ]
415
  );
416
 
417
  $this->add_control('dots_color',
418
  [
419
+ 'label' => __( 'Dots Color', 'premium-addons-for-elementor' ),
420
  'type' => Controls_Manager::COLOR,
421
  'scheme' => [
422
  'type' => Scheme_Color::get_type(),
430
 
431
  $this->add_control('active_dot_color',
432
  [
433
+ 'label' => __( 'Active Dot Color', 'premium-addons-for-elementor' ),
434
  'type' => Controls_Manager::COLOR,
435
  'scheme' => [
436
  'type' => Scheme_Color::get_type(),
444
 
445
  $this->add_control('dots_border_color',
446
  [
447
+ 'label' => __( 'Dots Border Color', 'premium-addons-for-elementor' ),
448
  'type' => Controls_Manager::COLOR,
449
  'scheme' => [
450
  'type' => Scheme_Color::get_type(),
460
 
461
  $this->start_controls_tab('container_style_tab',
462
  [
463
+ 'label' => __('Container', 'premium-addons-for-elementor'),
464
  ]
465
  );
466
 
467
  $this->add_control('navigation_background',
468
  [
469
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
470
  'type' => Controls_Manager::COLOR,
471
  'scheme' => [
472
  'type' => Scheme_Color::get_type(),
480
 
481
  $this->add_control('navigation_border_radius',
482
  [
483
+ 'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
484
  'type' => Controls_Manager::SLIDER,
485
  'size_units' => ['px', 'em', '%'],
486
  'selectors' => [
492
  $this->add_group_control(
493
  Group_Control_Box_Shadow::get_type(),
494
  [
495
+ 'label' => __('Shadow','premium-addons-for-elementor'),
496
  'name' => 'navigation_box_shadow',
497
  'selector' => '{{WRAPPER}} .premium-vscroll-dots',
498
  ]
506
 
507
  $this->start_controls_section('navigation_menu_style',
508
  [
509
+ 'label' => __('Navigation Menu', 'premium-addons-for-elementor'),
510
  'tab' => CONTROLS_MANAGER::TAB_STYLE,
511
  'condition' => [
512
  'nav_menu_switch' => 'yes'
526
 
527
  $this->start_controls_tab('normal_style_tab',
528
  [
529
+ 'label' => __('Normal', 'premium-addons-for-elementor'),
530
  ]
531
  );
532
 
533
  $this->add_control('normal_color',
534
  [
535
+ 'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
536
  'type' => Controls_Manager::COLOR,
537
  'scheme' => [
538
  'type' => Scheme_Color::get_type(),
546
 
547
  $this->add_control('normal_hover_color',
548
  [
549
+ 'label' => __( 'Text Hover Color', 'premium-addons-for-elementor' ),
550
  'type' => Controls_Manager::COLOR,
551
  'scheme' => [
552
  'type' => Scheme_Color::get_type(),
560
 
561
  $this->add_control('normal_background',
562
  [
563
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
564
  'type' => Controls_Manager::COLOR,
565
  'scheme' => [
566
  'type' => Scheme_Color::get_type(),
575
  $this->add_group_control(
576
  Group_Control_Box_Shadow::get_type(),
577
  [
578
+ 'label' => __('Shadow','premium-addons-for-elementor'),
579
  'name' => 'normal_shadow',
580
  'selector' => '{{WRAPPER}} .premium-vscroll-nav-menu .premium-vscroll-nav-item'
581
  ]
585
 
586
  $this->start_controls_tab('active_style_tab',
587
  [
588
+ 'label' => __('Active', 'premium-addons-for-elementor'),
589
  ]
590
  );
591
 
592
  $this->add_control('active_color',
593
  [
594
+ 'label' => __( 'Text Color', 'premium-addons-for-elementor' ),
595
  'type' => Controls_Manager::COLOR,
596
  'scheme' => [
597
  'type' => Scheme_Color::get_type(),
605
 
606
  $this->add_control('active_hover_color',
607
  [
608
+ 'label' => __( 'Text Hover Color', 'premium-addons-for-elementor' ),
609
  'type' => Controls_Manager::COLOR,
610
  'scheme' => [
611
  'type' => Scheme_Color::get_type(),
619
 
620
  $this->add_control('active_background',
621
  [
622
+ 'label' => __( 'Background Color', 'premium-addons-for-elementor' ),
623
  'type' => Controls_Manager::COLOR,
624
  'scheme' => [
625
  'type' => Scheme_Color::get_type(),
634
  $this->add_group_control(
635
  Group_Control_Box_Shadow::get_type(),
636
  [
637
+ 'label' => __('Shadow','premium-addons-for-elementor'),
638
  'name' => 'active_shadow',
639
  'selector' => '{{WRAPPER}} .premium-vscroll-nav-menu .premium-vscroll-nav-item.active'
640
  ]
653
 
654
  $this->add_control('navigation_items_border_radius',
655
  [
656
+ 'label' => __('Border Radius', 'premium-addons-for-elementor'),
657
  'type' => Controls_Manager::SLIDER,
658
  'size_units' => ['px','em','%'],
659
  'selectors' => [
664
 
665
  $this->add_responsive_control('navigation_items_margin',
666
  [
667
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
668
  'type' => Controls_Manager::DIMENSIONS,
669
  'size_units' => ['px', 'em', '%'],
670
  'selectors' => [
675
 
676
  $this->add_responsive_control('navigation_items_padding',
677
  [
678
+ 'label' => __('Padding', 'premium-addons-for-elementor'),
679
  'type' => Controls_Manager::DIMENSIONS,
680
  'size_units' => ['px', 'em', '%'],
681
  'selectors' => [