Instagram Widget by WPZOOM - Version 1.9.5

Version Description

  • Fixed a bug with the lightbox not working in specific themes, including Divi
Download this release

Release Info

Developer WPZOOM
Plugin Icon 128x128 Instagram Widget by WPZOOM
Version 1.9.5
Comparing to
See all releases

Code changes from version 1.9.4 to 1.9.5

class-wpzoom-instagram-widget.php CHANGED
@@ -32,12 +32,12 @@ class Wpzoom_Instagram_Widget extends WP_Widget {
32
  'button_text' => esc_html__( 'View on Instagram', 'instagram-widget-by-wpzoom' ),
33
  'image-limit' => 9,
34
  'show-view-on-instagram-button' => true,
35
- 'show-counts-on-hover' => false,
36
  'show-user-info' => false,
37
  'show-user-bio' => false,
38
- 'lazy-load-images' => false,
39
  'disable-video-thumbs' => false,
40
- 'display-media-type-icons' => false,
41
  'lightbox' => true,
42
  'images-per-row' => 3,
43
  'image-width' => 120,
32
  'button_text' => esc_html__( 'View on Instagram', 'instagram-widget-by-wpzoom' ),
33
  'image-limit' => 9,
34
  'show-view-on-instagram-button' => true,
35
+ 'show-counts-on-hover' => true,
36
  'show-user-info' => false,
37
  'show-user-bio' => false,
38
+ 'lazy-load-images' => true,
39
  'disable-video-thumbs' => false,
40
+ 'display-media-type-icons' => true,
41
  'lightbox' => true,
42
  'images-per-row' => 3,
43
  'image-width' => 120,
instagram-widget-by-wpzoom.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WPZOOM Instagram Widget
4
  * Plugin URI: https://www.wpzoom.com/plugins/instagram-widget/
5
  * Description: Simple and lightweight widget for WordPress to display your Instagram feed. Now with a Lightbox!
6
- * Version: 1.9.4
7
  * Author: WPZOOM
8
  * Author URI: https://www.wpzoom.com/
9
  * Text Domain: instagram-widget-by-wpzoom
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
19
  }
20
 
21
  if ( ! defined( 'WPZOOM_INSTAGRAM_VERSION' ) ) {
22
- define( 'WPZOOM_INSTAGRAM_VERSION', '1.9.4' );
23
  }
24
 
25
  require_once plugin_dir_path( __FILE__ ) . 'class-wpzoom-instagram-image-uploader.php';
3
  * Plugin Name: WPZOOM Instagram Widget
4
  * Plugin URI: https://www.wpzoom.com/plugins/instagram-widget/
5
  * Description: Simple and lightweight widget for WordPress to display your Instagram feed. Now with a Lightbox!
6
+ * Version: 1.9.5
7
  * Author: WPZOOM
8
  * Author URI: https://www.wpzoom.com/
9
  * Text Domain: instagram-widget-by-wpzoom
19
  }
20
 
21
  if ( ! defined( 'WPZOOM_INSTAGRAM_VERSION' ) ) {
22
+ define( 'WPZOOM_INSTAGRAM_VERSION', '1.9.5' );
23
  }
24
 
25
  require_once plugin_dir_path( __FILE__ ) . 'class-wpzoom-instagram-image-uploader.php';
js/instagram-widget.js CHANGED
@@ -50,7 +50,7 @@ jQuery(function ($) {
50
 
51
  $.fn.zoomLightbox = function () {
52
  return $( this ).each( function () {
53
- const $swipe_el = $( this ).closest( '.widget' ).find( '.wpz-insta-lightbox-wrapper > .swiper-container' );
54
 
55
  if ( $swipe_el.length > 0 ) {
56
  const $nested = $swipe_el.find( '.image-wrapper > .swiper-container' );
@@ -98,7 +98,7 @@ jQuery(function ($) {
98
  $( this ).find( '.zoom-instagram-link' ).magnificPopup( {
99
  items: {
100
  type: 'inline',
101
- src: $( this ).closest( '.widget' ).find( '.wpz-insta-lightbox-wrapper' )
102
  },
103
  closeBtnInside: false,
104
  mainClass: 'wpzoom-lightbox',
@@ -107,7 +107,7 @@ jQuery(function ($) {
107
  open: function () {
108
  var magnificPopup = $.magnificPopup.instance,
109
  currentElement = magnificPopup.st.el;
110
- //console.log ( currentElement.data( 'mfp-src' ) );
111
  this.content.find( '> .swiper-container' ).get(0).swiper.slideTo(
112
  this.content.find( '> .swiper-container > .swiper-wrapper > .swiper-slide[data-uid="' + currentElement.data( 'mfp-src' ) + '"]' ).index()
113
  );
50
 
51
  $.fn.zoomLightbox = function () {
52
  return $( this ).each( function () {
53
+ const $swipe_el = $( this ).closest( '.zoom-instagram-widget' ).find( '.wpz-insta-lightbox-wrapper > .swiper-container' );
54
 
55
  if ( $swipe_el.length > 0 ) {
56
  const $nested = $swipe_el.find( '.image-wrapper > .swiper-container' );
98
  $( this ).find( '.zoom-instagram-link' ).magnificPopup( {
99
  items: {
100
  type: 'inline',
101
+ src: $( this ).closest( '.zoom-instagram-widget' ).find( '.wpz-insta-lightbox-wrapper' )
102
  },
103
  closeBtnInside: false,
104
  mainClass: 'wpzoom-lightbox',
107
  open: function () {
108
  var magnificPopup = $.magnificPopup.instance,
109
  currentElement = magnificPopup.st.el;
110
+ //console.log( currentElement );
111
  this.content.find( '> .swiper-container' ).get(0).swiper.slideTo(
112
  this.content.find( '> .swiper-container > .swiper-wrapper > .swiper-slide[data-uid="' + currentElement.data( 'mfp-src' ) + '"]' ).index()
113
  );
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: WPZOOM, nvartolomei, ciorici
3
  Donate link: https://www.wpzoom.com/
4
  Tags: instagram, instagram feed, instagram gallery, instagram photos, instagram widget, instagram stories, widget, timeline, social network, latest images, feed, story, stories, insta
5
- Requires at least: 4.3
6
- Tested up to: 5.8
7
- Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -71,6 +71,9 @@ Make sure to connect your Instagram account with the plugin. You can do that in
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 1.9.4 =
75
  * Minor improvements
76
 
2
  Contributors: WPZOOM, nvartolomei, ciorici
3
  Donate link: https://www.wpzoom.com/
4
  Tags: instagram, instagram feed, instagram gallery, instagram photos, instagram widget, instagram stories, widget, timeline, social network, latest images, feed, story, stories, insta
5
+ Requires at least: 5.5
6
+ Tested up to: 6.0
7
+ Requires PHP: 7.2
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
71
 
72
  == Changelog ==
73
 
74
+ = 1.9.5 =
75
+ * Fixed a bug with the lightbox not working in specific themes, including Divi
76
+
77
  = 1.9.4 =
78
  * Minor improvements
79