Premium Addons for Elementor - Version 2.5.9

Version Description

  • Tweak: Added enable/disable default category in Premium Grid widget.
  • Tweak: Added rotate option for each category in Premium Grid widget.
  • Fixed: Back delay option issue in Premium Fancy Text widget.
  • Fixed: Primary label typography and margin issue in Premium Progress Bar widget.
  • Fixed: Longitude/Latitude finder issue in Premium Maps widget.
Download this release

Release Info

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

Code changes from version 2.5.8 to 2.5.9

admin/settings/version-control.php CHANGED
@@ -80,7 +80,7 @@ class PA_Version_Control {
80
  <tr class="pa-roll-row">
81
  <th>Rollback Version</th>
82
  <td>
83
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.5.7</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
84
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
85
  </td>
86
  </tr>
80
  <tr class="pa-roll-row">
81
  <th>Rollback Version</th>
82
  <td>
83
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.5.8</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
84
  <p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
85
  </td>
86
  </tr>
elementor-helper.php CHANGED
@@ -82,4 +82,4 @@ class premium_Template_Tags {
82
  return $options;
83
  }
84
  }
85
- }
82
  return $options;
83
  }
84
  }
85
+ }
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.5.8
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.5.8');
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.5.7');
31
 
32
  /**
33
  * Loading text domain, Including required files
@@ -107,7 +107,6 @@ class premium_Addon_Elementor {
107
  */
108
  public function __construct() {
109
  add_action('admin_init', array( $this, 'handle_get_pro_notice'));
110
- add_action('admin_init', array( $this, 'handle_get_pro_sale_notice'));
111
  add_action('admin_notices', array( $this, 'required_plugins_check' ));
112
  add_action('admin_notices', array( $this, 'get_premium_pro_notice')) ;
113
  add_action('elementor/init', array($this, 'initiate_elementor_addons'));
@@ -179,23 +178,6 @@ class premium_Addon_Elementor {
179
 
180
  }
181
 
182
- public function handle_get_pro_sale_notice(){
183
-
184
- if ( ! isset( $_GET['get_pa_pro_sale'] ) ) {
185
- return;
186
- }
187
-
188
- if ( 'opt_out' === $_GET['get_pa_pro_sale'] ) {
189
- check_admin_referer( 'opt_out' );
190
-
191
- update_option( 'get_pa_pro_sale_notice', '1' );
192
- }
193
-
194
- wp_redirect( remove_query_arg( 'get_pa_pro_sale' ) );
195
- exit;
196
-
197
- }
198
-
199
  /**
200
  * Shows a dismissible admin notice to get Premium PRO version
201
  */
@@ -210,8 +192,8 @@ class premium_Addon_Elementor {
210
  if ( ! is_plugin_installed( $pro_path ) && current_user_can( 'install_plugins' ) ) {
211
 
212
  $get_pro = get_option( 'get_pa_pro_notice' );
213
- $get_pro_sale = get_option( 'get_pa_pro_sale_notice' );
214
- if ( '1' === $get_pro && '1' === $get_pro_sale ) {
215
  return;
216
  } else if ( '1' !== $get_pro ) {
217
 
@@ -219,12 +201,6 @@ class premium_Addon_Elementor {
219
 
220
  $message = sprintf( __('<p style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;"><strong>Premium Addons PRO&nbsp</strong><span> is now available!&nbsp</span><a href="%s" target="_blank" style="flex-grow: 2;"> Check it out now.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$url );
221
 
222
- } else if ( '1' !== $get_pro_sale ) {
223
-
224
- $optout_url = wp_nonce_url( add_query_arg( 'get_pa_pro_sale', 'opt_out' ), 'opt_out' );
225
-
226
- $message = sprintf( __('<p style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;">10 Early Bird Sale on&nbsp<strong>Premium Addons PRO.&nbsp</strong><span> Don’t Miss It&nbsp</span><a href="%s" target="_blank" style="flex-grow: 2;"> Click Here To Get It.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$url );
227
-
228
  }
229
 
230
  $message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
@@ -273,21 +249,32 @@ class premium_Addon_Elementor {
273
  * Register all frontend stylesheets
274
  */
275
  public function premium_addons_register_styles(){
 
276
  wp_register_style('premium-addons', PREMIUM_ADDONS_URL . 'assets/css/premium-addons.css', array(), PREMIUM_ADDONS_VERSION, 'all');
 
277
  $check_grid_active = isset(get_option('pa_save_settings')['premium-grid']) ? get_option('pa_save_settings')['premium-grid']: true;
 
278
  if($check_grid_active){
 
279
  wp_register_style('pa-prettyphoto', PREMIUM_ADDONS_URL . 'assets/css/prettyphoto.css', array(), PREMIUM_ADDONS_VERSION, 'all');
 
280
  }
 
281
  }
282
 
283
  /*
284
  * Enqueue all frontend stylesheets
285
  */
286
  public function premium_addons_enqueue_styles(){
 
287
  wp_enqueue_style('premium-addons');
 
288
  $check_grid_active = isset(get_option('pa_save_settings')['premium-grid']) ? get_option('pa_save_settings')['premium-grid']: true;
 
289
  if($check_grid_active){
 
290
  wp_enqueue_style('pa-prettyphoto');
 
291
  }
292
  }
293
 
@@ -295,23 +282,47 @@ class premium_Addon_Elementor {
295
  * Enqueue Premium Maps API script
296
  */
297
  public function premium_maps_required_script() {
 
298
  $premium_maps_api = get_option('pa_maps_save_settings')['premium-map-api'];
 
299
  $premium_maps_disable_api = get_option('pa_maps_save_settings')['premium-map-disable-api'];
 
300
  $premium_maps_enabled = isset( get_option('pa_save_settings')['premium-maps'] ) ? get_option('pa_save_settings')['premium-maps'] : 1;
301
- if ($premium_maps_enabled == 1 && $premium_maps_disable_api == 1) {
302
- wp_enqueue_script('google-maps-cluser', 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js', array(), PREMIUM_ADDONS_VERSION, false);
303
- wp_enqueue_script('google-maps-script', 'https://maps.googleapis.com/maps/api/js?key=' . $premium_maps_api, array(), PREMIUM_ADDONS_VERSION, false);
 
 
304
  }
 
 
 
 
 
 
 
305
  }
306
 
307
  public function premium_maps_get_address() {
308
 
 
 
 
 
309
  $map_enabled = get_option('pa_save_settings')['premium-maps'];
310
 
311
  $premium_maps_enabled = isset( $map_enabled ) ? $map_enabled : 1;
312
 
 
 
 
 
 
 
313
  if( $premium_maps_enabled ) {
 
314
  wp_enqueue_script('premium-maps-address', PREMIUM_ADDONS_URL . 'assets/js/premium-maps-address.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
 
315
  }
316
 
317
  }
@@ -320,7 +331,8 @@ class premium_Addon_Elementor {
320
  * Load only the required javascript files
321
  */
322
  public function premium_addons_register_scripts() {
323
- $pa_default_settings = array_fill_keys($this->pa_elements_keys, true);
 
324
 
325
  $check_component_active = get_option('pa_save_settings', $pa_default_settings);
326
 
@@ -373,8 +385,11 @@ class premium_Addon_Elementor {
373
  * Load only the enabled widgets
374
  */
375
  public function premium_addons_widget_register() {
 
376
  $this->initiate_elementor_addons();
 
377
  $this->premium_addons_widgets_area();
 
378
  }
379
 
380
  private function premium_addons_widgets_area() {
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.5.9
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.5.9');
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.5.8');
31
 
32
  /**
33
  * Loading text domain, Including required files
107
  */
108
  public function __construct() {
109
  add_action('admin_init', array( $this, 'handle_get_pro_notice'));
 
110
  add_action('admin_notices', array( $this, 'required_plugins_check' ));
111
  add_action('admin_notices', array( $this, 'get_premium_pro_notice')) ;
112
  add_action('elementor/init', array($this, 'initiate_elementor_addons'));
178
 
179
  }
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  /**
182
  * Shows a dismissible admin notice to get Premium PRO version
183
  */
192
  if ( ! is_plugin_installed( $pro_path ) && current_user_can( 'install_plugins' ) ) {
193
 
194
  $get_pro = get_option( 'get_pa_pro_notice' );
195
+
196
+ if ( '1' === $get_pro ) {
197
  return;
198
  } else if ( '1' !== $get_pro ) {
199
 
201
 
202
  $message = sprintf( __('<p style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;"><strong>Premium Addons PRO&nbsp</strong><span> is now available!&nbsp</span><a href="%s" target="_blank" style="flex-grow: 2;"> Check it out now.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$url );
203
 
 
 
 
 
 
 
204
  }
205
 
206
  $message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
249
  * Register all frontend stylesheets
250
  */
251
  public function premium_addons_register_styles(){
252
+
253
  wp_register_style('premium-addons', PREMIUM_ADDONS_URL . 'assets/css/premium-addons.css', array(), PREMIUM_ADDONS_VERSION, 'all');
254
+
255
  $check_grid_active = isset(get_option('pa_save_settings')['premium-grid']) ? get_option('pa_save_settings')['premium-grid']: true;
256
+
257
  if($check_grid_active){
258
+
259
  wp_register_style('pa-prettyphoto', PREMIUM_ADDONS_URL . 'assets/css/prettyphoto.css', array(), PREMIUM_ADDONS_VERSION, 'all');
260
+
261
  }
262
+
263
  }
264
 
265
  /*
266
  * Enqueue all frontend stylesheets
267
  */
268
  public function premium_addons_enqueue_styles(){
269
+
270
  wp_enqueue_style('premium-addons');
271
+
272
  $check_grid_active = isset(get_option('pa_save_settings')['premium-grid']) ? get_option('pa_save_settings')['premium-grid']: true;
273
+
274
  if($check_grid_active){
275
+
276
  wp_enqueue_style('pa-prettyphoto');
277
+
278
  }
279
  }
280
 
282
  * Enqueue Premium Maps API script
283
  */
284
  public function premium_maps_required_script() {
285
+
286
  $premium_maps_api = get_option('pa_maps_save_settings')['premium-map-api'];
287
+
288
  $premium_maps_disable_api = get_option('pa_maps_save_settings')['premium-map-disable-api'];
289
+
290
  $premium_maps_enabled = isset( get_option('pa_save_settings')['premium-maps'] ) ? get_option('pa_save_settings')['premium-maps'] : 1;
291
+
292
+ if( $premium_maps_disable_api ) {
293
+
294
+ wp_enqueue_script('premium-maps-api-js', 'https://maps.googleapis.com/maps/api/js?key=' . $premium_maps_api, array(), PREMIUM_ADDONS_VERSION, false);
295
+
296
  }
297
+
298
+ if ( $premium_maps_enabled ) {
299
+
300
+ wp_enqueue_script('google-maps-cluster', 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js', array(), PREMIUM_ADDONS_VERSION, false);
301
+
302
+ }
303
+
304
  }
305
 
306
  public function premium_maps_get_address() {
307
 
308
+ $premium_maps_api = get_option('pa_maps_save_settings')['premium-map-api'];
309
+
310
+ $premium_maps_disable_api = get_option('pa_maps_save_settings')['premium-map-disable-api'];
311
+
312
  $map_enabled = get_option('pa_save_settings')['premium-maps'];
313
 
314
  $premium_maps_enabled = isset( $map_enabled ) ? $map_enabled : 1;
315
 
316
+ if ( $premium_maps_disable_api ) {
317
+
318
+ wp_enqueue_script('premium-maps-api-js', 'https://maps.googleapis.com/maps/api/js?key=' . $premium_maps_api, array(), PREMIUM_ADDONS_VERSION, false);
319
+
320
+ }
321
+
322
  if( $premium_maps_enabled ) {
323
+
324
  wp_enqueue_script('premium-maps-address', PREMIUM_ADDONS_URL . 'assets/js/premium-maps-address.js', array('jquery'), PREMIUM_ADDONS_VERSION, true);
325
+
326
  }
327
 
328
  }
331
  * Load only the required javascript files
332
  */
333
  public function premium_addons_register_scripts() {
334
+
335
+ $pa_default_settings = array_fill_keys( $this->pa_elements_keys, true );
336
 
337
  $check_component_active = get_option('pa_save_settings', $pa_default_settings);
338
 
385
  * Load only the enabled widgets
386
  */
387
  public function premium_addons_widget_register() {
388
+
389
  $this->initiate_elementor_addons();
390
+
391
  $this->premium_addons_widgets_area();
392
+
393
  }
394
 
395
  private function premium_addons_widgets_area() {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
- Stable tag: 2.5.8
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -138,6 +138,14 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
138
 
139
  == Changelog ==
140
 
 
 
 
 
 
 
 
 
141
  = 2.5.8 =
142
 
143
  - Tweak: Added border and border radius options to Premium Banner widget.
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.5.9
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
138
 
139
  == Changelog ==
140
 
141
+ = 2.5.9 =
142
+
143
+ - Tweak: Added enable/disable default category in Premium Grid widget.
144
+ - Tweak: Added rotate option for each category in Premium Grid widget.
145
+ - Fixed: Back delay option issue in Premium Fancy Text widget.
146
+ - Fixed: Primary label typography and margin issue in Premium Progress Bar widget.
147
+ - Fixed: Longitude/Latitude finder issue in Premium Maps widget.
148
+
149
  = 2.5.8 =
150
 
151
  - Tweak: Added border and border radius options to Premium Banner widget.
widgets/premium-fancytext.php CHANGED
@@ -463,6 +463,7 @@ class Premium_Fancy_Text_Widget extends Widget_Base
463
  'typeSpeed' => $settings['premium_fancy_text_type_speed'],
464
  'backSpeed' => $settings['premium_fancy_text_back_speed'],
465
  'startDelay'=> $settings['premium_fancy_text_start_delay'],
 
466
  'showCursor'=> $show_cursor,
467
  'cursorChar'=> $cursor_text,
468
  'loop' => $loop,
463
  'typeSpeed' => $settings['premium_fancy_text_type_speed'],
464
  'backSpeed' => $settings['premium_fancy_text_back_speed'],
465
  'startDelay'=> $settings['premium_fancy_text_start_delay'],
466
+ 'backDelay' => $settings['premium_fancy_text_back_delay'],
467
  'showCursor'=> $show_cursor,
468
  'cursorChar'=> $cursor_text,
469
  'loop' => $loop,
widgets/premium-grid.php CHANGED
@@ -45,12 +45,23 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
45
  'label' => esc_html__('Categories','premium-addons-for-elementor'),
46
  ]);
47
 
 
 
 
 
 
 
 
 
48
  $this->add_control( 'premium_gallery_first_cat_label',
49
  [
50
  'label' => esc_html__( 'First Category Label', 'premium-addons-for-elementor' ),
51
  'type' => Controls_Manager::TEXT,
52
  'default' => esc_html__('All', 'premium-addons-for-elementor'),
53
  'dynamic' => [ 'active' => true ],
 
 
 
54
  ]
55
  );
56
 
@@ -64,6 +75,19 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
64
  ]
65
  );
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  $this->add_control('premium_gallery_cats_content',
68
  [
69
  'label' => __( 'Categories', 'premium-addons-for-elementor' ),
@@ -80,6 +104,18 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
80
  'title_field' => '{{{ premium_gallery_img_cat }}}',
81
  ]
82
  );
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  $this->end_controls_section();
85
 
@@ -1056,12 +1092,31 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
1056
  <?php if($filter == 'yes') : ?>
1057
  <div class="premium-img-gallery-filter">
1058
  <ul class="premium-gallery-cats-container">
 
1059
  <li><a href="javascript:;" class="category active" data-filter="*"><span><?php echo $settings['premium_gallery_first_cat_label']; ?></span></a></li>
1060
- <?php foreach( $settings['premium_gallery_cats_content'] as $category ) : ?>
1061
- <?php if(!empty($category['premium_gallery_img_cat'] ) ) :
 
 
1062
  $cat_filtered = $this->filter_cats($category['premium_gallery_img_cat']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1063
  ?>
1064
- <li><a href="javascript:;" class="category" data-filter=".<?php echo esc_attr( $cat_filtered ); ?>"><span><?php echo esc_attr( $category['premium_gallery_img_cat'] ); ?></span></a></li>
1065
  <?php endif; ?>
1066
  <?php endforeach; ?>
1067
  </ul>
45
  'label' => esc_html__('Categories','premium-addons-for-elementor'),
46
  ]);
47
 
48
+ $this->add_control( 'premium_gallery_first_cat_switcher',
49
+ [
50
+ 'label' => esc_html__( 'First Category', 'premium-addons-for-elementor' ),
51
+ 'type' => Controls_Manager::SWITCHER,
52
+ 'default' => 'yes'
53
+ ]
54
+ );
55
+
56
  $this->add_control( 'premium_gallery_first_cat_label',
57
  [
58
  'label' => esc_html__( 'First Category Label', 'premium-addons-for-elementor' ),
59
  'type' => Controls_Manager::TEXT,
60
  'default' => esc_html__('All', 'premium-addons-for-elementor'),
61
  'dynamic' => [ 'active' => true ],
62
+ 'condition' => [
63
+ 'premium_gallery_first_cat_switcher' => 'yes'
64
+ ]
65
  ]
66
  );
67
 
75
  ]
76
  );
77
 
78
+ $repeater->add_control( 'premium_gallery_img_cat_rotation',
79
+ [
80
+ 'label' => esc_html__('Rotation Degrees', 'premium-addons-for-elementor'),
81
+ 'type' => Controls_Manager::NUMBER,
82
+ 'description' => esc_html__('Set rotation value in degress', 'premium-addons-for-elementor'),
83
+ 'min' => -180,
84
+ 'max' => 180,
85
+ 'selectors' => [
86
+ '{{WRAPPER}} {{CURRENT_ITEM}}' => '-webkit-transform: rotate({{VALUE}}deg); -moz-transform: rotate({{VALUE}}deg); -o-transform: rotate({{VALUE}}deg); transform: rotate({{VALUE}}deg);'
87
+ ],
88
+ ]
89
+ );
90
+
91
  $this->add_control('premium_gallery_cats_content',
92
  [
93
  'label' => __( 'Categories', 'premium-addons-for-elementor' ),
104
  'title_field' => '{{{ premium_gallery_img_cat }}}',
105
  ]
106
  );
107
+
108
+ $this->add_control( 'premium_gallery_active_cat',
109
+ [
110
+ 'label' => esc_html__('Active Category Index', 'premium-addons-for-elementor'),
111
+ 'type' => Controls_Manager::NUMBER,
112
+ 'description' => esc_html__('Put the index of the default active category, default is 1', 'premium-addons-for-elementor'),
113
+ 'default' => 1,
114
+ 'condition' => [
115
+ 'premium_gallery_first_cat_switcher!' => 'yes'
116
+ ]
117
+ ]
118
+ );
119
 
120
  $this->end_controls_section();
121
 
1092
  <?php if($filter == 'yes') : ?>
1093
  <div class="premium-img-gallery-filter">
1094
  <ul class="premium-gallery-cats-container">
1095
+ <?php if( 'yes' == $settings['premium_gallery_first_cat_switcher'] ) : ?>
1096
  <li><a href="javascript:;" class="category active" data-filter="*"><span><?php echo $settings['premium_gallery_first_cat_label']; ?></span></a></li>
1097
+ <?php endif; ?>
1098
+ <?php foreach( $settings['premium_gallery_cats_content'] as $index => $category ) : ?>
1099
+ <?php if(!empty($category['premium_gallery_img_cat'] ) ) :
1100
+
1101
  $cat_filtered = $this->filter_cats($category['premium_gallery_img_cat']);
1102
+ $cat_list_key = 'premium_grid_category_' . $index;
1103
+ if( 'yes' != $settings['premium_gallery_first_cat_switcher'] && $settings['premium_gallery_active_cat'] == $index ) {
1104
+ $this->add_render_attribute($cat_list_key,
1105
+ 'class',
1106
+ 'active'
1107
+ );
1108
+ }
1109
+
1110
+ $this->add_render_attribute($cat_list_key,
1111
+ 'class',
1112
+ array(
1113
+ 'category',
1114
+ 'elementor-repeater-item-' . $category['_id']
1115
+ )
1116
+ );
1117
+
1118
  ?>
1119
+ <li><a href="javascript:;" <?php echo $this->get_render_attribute_string($cat_list_key); ?> data-filter=".<?php echo esc_attr( $cat_filtered ); ?>"><span><?php echo esc_attr( $category['premium_gallery_img_cat'] ); ?></span></a></li>
1120
  <?php endif; ?>
1121
  <?php endforeach; ?>
1122
  </ul>
widgets/premium-maps.php CHANGED
@@ -27,7 +27,10 @@ class Premium_Maps_Widget extends Widget_Base
27
  }
28
 
29
  public function get_script_depends() {
30
- return ['premium-maps-api-js' , 'premium-maps-js'];
 
 
 
31
  }
32
 
33
  // Adding the controls fields for the premium maps
27
  }
28
 
29
  public function get_script_depends() {
30
+ return [
31
+ 'premium-maps-api-js' ,
32
+ 'premium-maps-js'
33
+ ];
34
  }
35
 
36
  // Adding the controls fields for the premium maps
widgets/premium-progressbar.php CHANGED
@@ -341,7 +341,7 @@ class Premium_Progressbar_Widget extends Widget_Base
341
  [
342
  'name' => 'left_label_typography',
343
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
344
- 'selector' => '{{WRAPPER}} .premium-progressbar-multiple-label',
345
  ]
346
  );
347
 
@@ -353,7 +353,7 @@ class Premium_Progressbar_Widget extends Widget_Base
353
  'type' => Controls_Manager::DIMENSIONS,
354
  'size_units' => [ 'px', 'em', '%' ],
355
  'selectors' => [
356
- '{{WRAPPER}} .premium-progressbar-multiple-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
357
  ]
358
  ]
359
  );
341
  [
342
  'name' => 'left_label_typography',
343
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
344
+ 'selector' => '{{WRAPPER}} .premium-progressbar-left-label',
345
  ]
346
  );
347
 
353
  'type' => Controls_Manager::DIMENSIONS,
354
  'size_units' => [ 'px', 'em', '%' ],
355
  'selectors' => [
356
+ '{{WRAPPER}} .premium-progressbar-left-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
357
  ]
358
  ]
359
  );