Premium Addons for Elementor - Version 2.9.6

Version Description

  • Tweak: Added Whole image lightbox option in Premium Grid widget.
Download this release

Release Info

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

Code changes from version 2.9.5 to 2.9.6

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.4</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.5</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-vscroll.js CHANGED
@@ -15,6 +15,7 @@
15
  $instance = $selector,
16
  checkTemps = $selector.find(".premium-vscroll-sections-wrap").length,
17
  $htmlBody = $("html, body"),
 
18
  $itemsList = $(".premium-vscroll-dot-item", $instance),
19
  $menuItems = $(".premium-vscroll-nav-item", $instance),
20
  defaultSettings = {
@@ -88,7 +89,9 @@
88
 
89
  $itemsList.on("mouseleave.premiumVerticalScroll", self.onNavDotLeave);
90
 
91
- $window.on("scroll.premiumVerticalScroll", self.onWheel);
 
 
92
  $window.on(
93
  "resize.premiumVerticalScroll orientationchange.premiumVerticalScroll",
94
  self.debounce(50, self.onResize)
@@ -312,7 +315,6 @@
312
  delta = getDirection(event),
313
  direction = 0 > delta ? "down" : "up",
314
  windowScrollTop = $window.scrollTop(),
315
- deviceType = $("body").data("elementor-device-mode"),
316
  dotIndex = $(".premium-vscroll-dot-item.active").index();
317
  if ("mobile" === deviceType || "tablet" === deviceType) {
318
  $(".premium-vscroll-tooltip").hide();
15
  $instance = $selector,
16
  checkTemps = $selector.find(".premium-vscroll-sections-wrap").length,
17
  $htmlBody = $("html, body"),
18
+ deviceType = $("body").data("elementor-device-mode"),
19
  $itemsList = $(".premium-vscroll-dot-item", $instance),
20
  $menuItems = $(".premium-vscroll-nav-item", $instance),
21
  defaultSettings = {
89
 
90
  $itemsList.on("mouseleave.premiumVerticalScroll", self.onNavDotLeave);
91
 
92
+ if (deviceType === "desktop") {
93
+ $window.on("scroll.premiumVerticalScroll", self.onWheel);
94
+ }
95
  $window.on(
96
  "resize.premiumVerticalScroll orientationchange.premiumVerticalScroll",
97
  self.debounce(50, self.onResize)
315
  delta = getDirection(event),
316
  direction = 0 > delta ? "down" : "up",
317
  windowScrollTop = $window.scrollTop(),
 
318
  dotIndex = $(".premium-vscroll-dot-item.active").index();
319
  if ("mobile" === deviceType || "tablet" === deviceType) {
320
  $(".premium-vscroll-tooltip").hide();
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.5
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
  // Define Constants
25
- define('PREMIUM_ADDONS_VERSION', '2.9.5');
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.4');
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.6
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
  // Define Constants
25
+ define('PREMIUM_ADDONS_VERSION', '2.9.6');
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.5');
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: 5.0.2
7
  Requires PHP: 5.4
8
- Stable tag: 2.9.5
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -137,6 +137,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
 
138
  == Changelog ==
139
 
 
 
 
 
140
  = 2.9.5 =
141
 
142
  - Tweak: Added `Image/Gradient` background option for modal body in Premium Modal Box widget.
5
  Requires at least: 4.5
6
  Tested up to: 5.0.2
7
  Requires PHP: 5.4
8
+ Stable tag: 2.9.6
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.9.6 =
141
+
142
+ - Tweak: Added `Whole image lightbox` option in Premium Grid widget.
143
+
144
  = 2.9.5 =
145
 
146
  - Tweak: Added `Image/Gradient` background option for modal body in Premium Modal Box widget.
widgets/premium-grid.php CHANGED
@@ -213,6 +213,13 @@ class Premium_Grid extends Widget_Base {
213
  ]
214
  );
215
 
 
 
 
 
 
 
 
216
  $this->add_control('premium_gallery_img_content',
217
  [
218
  'label' => __( 'Images', 'premium-addons-for-elementor' ),
@@ -1152,7 +1159,7 @@ class Premium_Grid extends Widget_Base {
1152
  <?php if( $layout == 'default' || $layout == 'style1' ) : ?>
1153
  <div class="pa-gallery-icons-wrapper">
1154
  <div class="pa-gallery-icons-inner-container">
1155
- <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1156
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1157
  <?php endif; ?>
1158
  <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
@@ -1164,6 +1171,8 @@ class Premium_Grid extends Widget_Base {
1164
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1165
  ?>
1166
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
 
 
1167
  <?php endif; ?>
1168
  </div>
1169
  </div>
@@ -1178,7 +1187,7 @@ class Premium_Grid extends Widget_Base {
1178
  <?php else: ?>
1179
  <div class="pa-gallery-icons-caption-container">
1180
  <div class="pa-gallery-icons-caption-cell">
1181
- <?php if( 'yes' == $settings['premium_gallery_light_box'] ) : ?>
1182
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1183
  <?php endif; ?>
1184
  <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
@@ -1210,6 +1219,8 @@ class Premium_Grid extends Widget_Base {
1210
  <?php elseif( $image['premium_gallery_link_whole'] == 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1211
  $icon_link = get_permalink($image['premium_gallery_img_existing']); ?>
1212
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-whole-link"></a>
 
 
1213
  <?php endif; ?>
1214
 
1215
  </div>
213
  ]
214
  );
215
 
216
+ $img_repeater->add_control('premium_gallery_lightbox_whole',
217
+ [
218
+ 'label' => __( 'Whole Image Lightbox', 'premium-addons-for-elementor' ),
219
+ 'type' => Controls_Manager::SWITCHER,
220
+ ]
221
+ );
222
+
223
  $this->add_control('premium_gallery_img_content',
224
  [
225
  'label' => __( 'Images', 'premium-addons-for-elementor' ),
1159
  <?php if( $layout == 'default' || $layout == 'style1' ) : ?>
1160
  <div class="pa-gallery-icons-wrapper">
1161
  <div class="pa-gallery-icons-inner-container">
1162
+ <?php if( $image['premium_gallery_lightbox_whole'] != 'yes' && $settings['premium_gallery_light_box'] == 'yes' ) : ?>
1163
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1164
  <?php endif; ?>
1165
  <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1171
  $icon_link = get_permalink($image['premium_gallery_img_existing']);
1172
  ?>
1173
  <a href="<?php echo esc_attr( $icon_link ); ?>" class="pa-gallery-img-link"><span><i class="fa fa-link"></i></span></a>
1174
+ <?php elseif( $image['premium_gallery_lightbox_whole'] == 'yes' && $settings['premium_gallery_light_box'] == 'yes' ) : ?>
1175
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-whole-link" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"></a>
1176
  <?php endif; ?>
1177
  </div>
1178
  </div>
1187
  <?php else: ?>
1188
  <div class="pa-gallery-icons-caption-container">
1189
  <div class="pa-gallery-icons-caption-cell">
1190
+ <?php if( $image['premium_gallery_lightbox_whole'] != 'yes' && $settings['premium_gallery_light_box'] == 'yes' ) : ?>
1191
  <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-magnific-image" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"><span><i class="fa fa-search-plus"></i></span></a>
1192
  <?php endif; ?>
1193
  <?php if( $image['premium_gallery_link_whole'] != 'yes' && $image['premium_gallery_img_link_type'] == 'url' && !empty($image['premium_gallery_img_link']['url']) ) :
1219
  <?php elseif( $image['premium_gallery_link_whole'] == 'yes' && $image['premium_gallery_img_link_type'] == 'link' ) :
1220
  $icon_link = get_permalink($image['premium_gallery_img_existing']); ?>
1221
  <a href="<?php echo esc_attr( $icon_link ); ?>" <?php echo $external; ?><?php echo $no_follow; ?> class="pa-gallery-whole-link"></a>
1222
+ <?php elseif( $image['premium_gallery_lightbox_whole'] == 'yes' && $settings['premium_gallery_light_box'] == 'yes' ) : ?>
1223
+ <a href="<?php echo esc_attr( $image['premium_gallery_img']['url'] ); ?>" class="pa-gallery-whole-link" data-rel="prettyPhoto[premium-grid-<?php echo esc_attr($this->get_id()); ?>]"></a>
1224
  <?php endif; ?>
1225
 
1226
  </div>