Premium Addons for Elementor - Version 4.3.8

Version Description

  • Fixed: Video thumbnails not showing in Media Grid widget.
Download this release

Release Info

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

Code changes from version 4.3.7 to 4.3.8

premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 4.3.7
7
  Elementor tested up to: 3.2.4
8
  Elementor Pro tested up to: 3.3.0
9
  Author: Leap13
@@ -18,12 +18,12 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  }
19
 
20
  // Define Constants.
21
- define( 'PREMIUM_ADDONS_VERSION', '4.3.7' );
22
  define( 'PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
23
  define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
24
  define( 'PREMIUM_ADDONS_FILE', __FILE__ );
25
  define( 'PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
26
- define( 'PREMIUM_ADDONS_STABLE_VERSION', '3.21.6' );
27
 
28
  /*
29
  * Load plugin core file
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 4.3.8
7
  Elementor tested up to: 3.2.4
8
  Elementor Pro tested up to: 3.3.0
9
  Author: Leap13
18
  }
19
 
20
  // Define Constants.
21
+ define( 'PREMIUM_ADDONS_VERSION', '4.3.8' );
22
  define( 'PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
23
  define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
24
  define( 'PREMIUM_ADDONS_FILE', __FILE__ );
25
  define( 'PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
26
+ define( 'PREMIUM_ADDONS_STABLE_VERSION', '4.3.6' );
27
 
28
  /*
29
  * Load plugin core file
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
5
  Requires at least: 5.0
6
  Tested Up To: 5.7.2
7
  Requires PHP: 5.4
8
- Stable Tag: 4.3.7
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -192,6 +192,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
192
 
193
  == Changelog ==
194
 
 
 
 
 
195
  = 4.3.7 =
196
 
197
  - Tweak: Added Show Video Title option for Playlist in Videobox widget.
5
  Requires at least: 5.0
6
  Tested Up To: 5.7.2
7
  Requires PHP: 5.4
8
+ Stable Tag: 4.3.8
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
192
 
193
  == Changelog ==
194
 
195
+ = 4.3.8 =
196
+
197
+ - Fixed: Video thumbnails not showing in Media Grid widget.
198
+
199
  = 4.3.7 =
200
 
201
  - Tweak: Added Show Video Title option for Playlist in Videobox widget.
widgets/premium-grid.php CHANGED
@@ -2835,11 +2835,6 @@ class Premium_Grid extends Widget_Base {
2835
 
2836
  $key = 'image_' . $index;
2837
 
2838
- // $image_src = $item['premium_gallery_img'];
2839
- // $image_src_size = Group_Control_Image_Size::get_attachment_image_src( $image_src['id'], 'thumbnail', $settings );
2840
-
2841
- // $image_src = empty( $image_src_size ) ? $image_src['url'] : $image_src_size;
2842
-
2843
  $image_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'thumbnail', 'image_data' );
2844
 
2845
  if ( $is_video ) {
@@ -2850,7 +2845,8 @@ class Premium_Grid extends Widget_Base {
2850
  $embed_params = $this->get_embed_params( $item );
2851
  $link = Embed::get_embed_url( $item['premium_gallery_video_url'], $embed_params );
2852
 
2853
- if ( empty( $image_src ) ) {
 
2854
  $video_props = Embed::get_video_properties( $link );
2855
  $id = $video_props['video_id'];
2856
  $type = $video_props['provider'];
@@ -2859,6 +2855,8 @@ class Premium_Grid extends Widget_Base {
2859
  $size = $settings['premium_gallery_yt_thumbnail_size'];
2860
  }
2861
  $image_src = Helper_Functions::get_video_thumbnail( $id, $type, $size );
 
 
2862
  }
2863
  } else {
2864
  $video_params = $this->get_hosted_params( $item );
2835
 
2836
  $key = 'image_' . $index;
2837
 
 
 
 
 
 
2838
  $image_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'thumbnail', 'image_data' );
2839
 
2840
  if ( $is_video ) {
2845
  $embed_params = $this->get_embed_params( $item );
2846
  $link = Embed::get_embed_url( $item['premium_gallery_video_url'], $embed_params );
2847
 
2848
+ if ( empty( $image_html ) ) {
2849
+
2850
  $video_props = Embed::get_video_properties( $link );
2851
  $id = $video_props['video_id'];
2852
  $type = $video_props['provider'];
2855
  $size = $settings['premium_gallery_yt_thumbnail_size'];
2856
  }
2857
  $image_src = Helper_Functions::get_video_thumbnail( $id, $type, $size );
2858
+
2859
+ $image_html = '<img src="' . esc_url( $image_src ) . '">';
2860
  }
2861
  } else {
2862
  $video_params = $this->get_hosted_params( $item );