Premium Addons for Elementor - Version 2.7.2

Version Description

  • Tweak: Added Padding Option in Premium Modal Box widget.
  • Tweak: Added Close Button text option in Premium Modal Box widget.
  • Fixed: Grid images conflict with LiteSpeed plugin.
Download this release

Release Info

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

Code changes from version 2.7.1 to 2.7.2

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.7.0</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.7.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>
assets/js/premium-addons.js CHANGED
@@ -82,8 +82,14 @@
82
  queue: false
83
  }
84
  });
85
- htmlContent.imagesLoaded(function () {
86
  htmlContent.isotope({layoutMode: 'fitRows'});
 
 
 
 
 
 
87
  });
88
  }
89
  $scope.find('.premium-gallery-cats-container li a').click(function(e){
82
  queue: false
83
  }
84
  });
85
+ setTimeout(function() {
86
  htmlContent.isotope({layoutMode: 'fitRows'});
87
+ }, 1000);
88
+ // htmlContent.isotope({layoutMode: 'fitRows'});
89
+ $(window).on('load', function(){
90
+ setTimeout(function() {
91
+ htmlContent.isotope({layoutMode: 'fitRows'});
92
+ }, 1000);
93
  });
94
  }
95
  $scope.find('.premium-gallery-cats-container li a').click(function(e){
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.7.1
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.7.1');
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.7.0');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
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.7.2
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.7.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.7.1');
31
 
32
  if( ! class_exists('Premium_Addons_Elementor') ) {
33
  /*
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.7.1
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -136,6 +136,12 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
136
 
137
  == Changelog ==
138
 
 
 
 
 
 
 
139
  = 2.7.1 =
140
 
141
  - Tweak: Added Max Height option in Premium Modal Box widget.
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.7.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
136
 
137
  == Changelog ==
138
 
139
+ = 2.7.2 =
140
+
141
+ - Tweak: Added Padding Option in Premium Modal Box widget.
142
+ - Tweak: Added Close Button text option in Premium Modal Box widget.
143
+ - Fixed: Grid images conflict with LiteSpeed plugin.
144
+
145
  = 2.7.1 =
146
 
147
  - Tweak: Added Max Height option in Premium Modal Box widget.
widgets/premium-grid.php CHANGED
@@ -583,7 +583,7 @@ class Premium_Grid extends Widget_Base {
583
  'value' => Scheme_Color::COLOR_2,
584
  ],
585
  'selectors' => [
586
- '{{WRAPPER}} .premium-gallery-img-name' => 'color: {{VALUE}};',
587
  ]
588
  ]
589
  );
@@ -594,7 +594,7 @@ class Premium_Grid extends Widget_Base {
594
  [
595
  'name' => 'premium_gallery_title_typo',
596
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
597
- 'selector' => '{{WRAPPER}} .premium-gallery-img-name',
598
  ]
599
  );
600
 
@@ -615,7 +615,7 @@ class Premium_Grid extends Widget_Base {
615
  'value' => Scheme_Color::COLOR_3,
616
  ],
617
  'selectors' => [
618
- '{{WRAPPER}} .premium-gallery-img-desc' => 'color: {{VALUE}};',
619
  ]
620
  ]
621
  );
@@ -625,7 +625,7 @@ class Premium_Grid extends Widget_Base {
625
  [
626
  'name' => 'premium_gallery_description_typo',
627
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
628
- 'selector' => '{{WRAPPER}} .premium-gallery-img-desc',
629
  ]
630
  );
631
 
@@ -1149,10 +1149,10 @@ class Premium_Grid extends Widget_Base {
1149
  </div>
1150
  <div class="premium-gallery-caption">
1151
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1152
- <span class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></span>
1153
  <?php endif; ?>
1154
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1155
- <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1156
  <?php endif; ?>
1157
  </div>
1158
  <?php elseif( $layout == 'style1' ) : ?>
@@ -1175,10 +1175,10 @@ class Premium_Grid extends Widget_Base {
1175
  </div>
1176
  <div class="premium-gallery-caption">
1177
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1178
- <span class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></span>
1179
  <?php endif; ?>
1180
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1181
- <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1182
  <?php endif; ?>
1183
  </div>
1184
  <?php else: ?>
@@ -1199,10 +1199,10 @@ class Premium_Grid extends Widget_Base {
1199
  <?php endif; ?>
1200
  <div class="premium-gallery-caption">
1201
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1202
- <span class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></span>
1203
  <?php endif; ?>
1204
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1205
- <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1206
  <?php endif; ?>
1207
  </div>
1208
  </div>
@@ -1247,10 +1247,10 @@ class Premium_Grid extends Widget_Base {
1247
  </div>
1248
  <div class="premium-gallery-caption">
1249
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1250
- <span class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></span>
1251
  <?php endif; ?>
1252
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1253
- <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1254
  <?php endif; ?>
1255
  </div>
1256
  <?php elseif( $layout == 'style1' ) : ?>
@@ -1273,10 +1273,10 @@ class Premium_Grid extends Widget_Base {
1273
  </div>
1274
  <div class="premium-gallery-caption">
1275
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1276
- <span class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></span>
1277
  <?php endif; ?>
1278
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1279
- <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1280
  <?php endif; ?>
1281
  </div>
1282
  <?php else: ?>
@@ -1297,10 +1297,10 @@ class Premium_Grid extends Widget_Base {
1297
  <?php endif; ?>
1298
  <div class="premium-gallery-caption">
1299
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1300
- <span class="premium-gallery-img-name"><?php echo esc_html__($image['premium_gallery_img_name']); ?></span>
1301
  <?php endif; ?>
1302
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1303
- <p class="premium-gallery-img-desc"><?php echo esc_html__($image['premium_gallery_img_desc']); ?></p>
1304
  <?php endif; ?>
1305
  </div>
1306
  </div>
583
  'value' => Scheme_Color::COLOR_2,
584
  ],
585
  'selectors' => [
586
+ '{{WRAPPER}} .premium-gallery-img-name, {{WRAPPER}} .premium-gallery-img-name a' => 'color: {{VALUE}};',
587
  ]
588
  ]
589
  );
594
  [
595
  'name' => 'premium_gallery_title_typo',
596
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
597
+ 'selector' => '{{WRAPPER}} .premium-gallery-img-name, {{WRAPPER}} .premium-gallery-img-name a',
598
  ]
599
  );
600
 
615
  'value' => Scheme_Color::COLOR_3,
616
  ],
617
  'selectors' => [
618
+ '{{WRAPPER}} .premium-gallery-img-desc, {{WRAPPER}} .premium-gallery-img-desc a' => 'color: {{VALUE}};',
619
  ]
620
  ]
621
  );
625
  [
626
  'name' => 'premium_gallery_description_typo',
627
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
628
+ 'selector' => '{{WRAPPER}} .premium-gallery-img-desc, {{WRAPPER}} .premium-gallery-img-desc a',
629
  ]
630
  );
631
 
1149
  </div>
1150
  <div class="premium-gallery-caption">
1151
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1152
+ <span class="premium-gallery-img-name"><?php echo $image['premium_gallery_img_name']; ?></span>
1153
  <?php endif; ?>
1154
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1155
+ <p class="premium-gallery-img-desc"><?php echo $image['premium_gallery_img_desc']; ?></p>
1156
  <?php endif; ?>
1157
  </div>
1158
  <?php elseif( $layout == 'style1' ) : ?>
1175
  </div>
1176
  <div class="premium-gallery-caption">
1177
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1178
+ <span class="premium-gallery-img-name"><?php echo $image['premium_gallery_img_name']; ?></span>
1179
  <?php endif; ?>
1180
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1181
+ <p class="premium-gallery-img-desc"><?php echo $image['premium_gallery_img_desc']; ?></p>
1182
  <?php endif; ?>
1183
  </div>
1184
  <?php else: ?>
1199
  <?php endif; ?>
1200
  <div class="premium-gallery-caption">
1201
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1202
+ <span class="premium-gallery-img-name"><?php echo $image['premium_gallery_img_name']; ?></span>
1203
  <?php endif; ?>
1204
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1205
+ <p class="premium-gallery-img-desc"><?php echo $image['premium_gallery_img_desc']; ?></p>
1206
  <?php endif; ?>
1207
  </div>
1208
  </div>
1247
  </div>
1248
  <div class="premium-gallery-caption">
1249
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1250
+ <span class="premium-gallery-img-name"><?php echo $image['premium_gallery_img_name']; ?></span>
1251
  <?php endif; ?>
1252
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1253
+ <p class="premium-gallery-img-desc"><?php echo $image['premium_gallery_img_desc']; ?></p>
1254
  <?php endif; ?>
1255
  </div>
1256
  <?php elseif( $layout == 'style1' ) : ?>
1273
  </div>
1274
  <div class="premium-gallery-caption">
1275
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1276
+ <span class="premium-gallery-img-name"><?php echo $image['premium_gallery_img_name']; ?></span>
1277
  <?php endif; ?>
1278
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1279
+ <p class="premium-gallery-img-desc"><?php echo $image['premium_gallery_img_desc']; ?></p>
1280
  <?php endif; ?>
1281
  </div>
1282
  <?php else: ?>
1297
  <?php endif; ?>
1298
  <div class="premium-gallery-caption">
1299
  <?php if(!empty($image['premium_gallery_img_name'])):?>
1300
+ <span class="premium-gallery-img-name"><?php echo $image['premium_gallery_img_name']; ?></span>
1301
  <?php endif; ?>
1302
  <?php if(!empty($image['premium_gallery_img_desc'])):?>
1303
+ <p class="premium-gallery-img-desc"><?php echo $image['premium_gallery_img_desc']; ?></p>
1304
  <?php endif; ?>
1305
  </div>
1306
  </div>
widgets/premium-modalbox.php CHANGED
@@ -190,6 +190,19 @@ class Premium_Modalbox extends Widget_Base {
190
  ]
191
  );
192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  $this->end_controls_section();
194
 
195
  $this->start_controls_section('premium_modal_box_content_section',
@@ -1194,6 +1207,17 @@ class Premium_Modalbox extends Widget_Base {
1194
  ]
1195
  );
1196
 
 
 
 
 
 
 
 
 
 
 
 
1197
  $this->end_controls_section();
1198
 
1199
  }
@@ -1258,7 +1282,7 @@ class Premium_Modalbox extends Widget_Base {
1258
  </div>
1259
  <?php if ( $settings['premium_modal_box_lower_close'] === 'yes' ) : ?>
1260
  <div class="premium-modal-box-modal-footer">
1261
- <button type="button" class="btn premium-modal-box-modal-lower-close" data-dismiss="premium-modal"><?php echo __('Close','premium-addons-for-elementor'); ?></button>
1262
  </div>
1263
  <?php endif; ?>
1264
  </div>
190
  ]
191
  );
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,
200
+ 'condition' => [
201
+ 'premium_modal_box_lower_close' => 'yes'
202
+ ],
203
+ ]
204
+ );
205
+
206
  $this->end_controls_section();
207
 
208
  $this->start_controls_section('premium_modal_box_content_section',
1207
  ]
1208
  );
1209
 
1210
+ $this->add_responsive_control('premium_modal_box_padding',
1211
+ [
1212
+ 'label' => esc_html__('Padding', 'premium-addons-for-elementor'),
1213
+ 'type' => Controls_Manager::DIMENSIONS,
1214
+ 'size_units' => [ 'px', 'em', '%' ],
1215
+ 'selectors' => [
1216
+ '{{WRAPPER}} .premium-modal-box-modal-body' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',
1217
+ ]
1218
+ ]
1219
+ );
1220
+
1221
  $this->end_controls_section();
1222
 
1223
  }
1282
  </div>
1283
  <?php if ( $settings['premium_modal_box_lower_close'] === 'yes' ) : ?>
1284
  <div class="premium-modal-box-modal-footer">
1285
+ <button type="button" class="btn premium-modal-box-modal-lower-close" data-dismiss="premium-modal"><?php echo $settings['premium_modal_close_text']; ?></button>
1286
  </div>
1287
  <?php endif; ?>
1288
  </div>