Version Description
- Fix. instagram carousel lazy load
Download this release
Release Info
Developer | quadlayers |
Plugin | Instagram Gallery |
Version | 3.0.8 |
Comparing to | |
See all releases |
Code changes from version 3.0.7 to 3.0.8
- insta-gallery.php +2 -2
- readme.txt +3 -0
- templates/item/item-image.php +6 -4
insta-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Feed Gallery
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/instagram-feed-gallery/
|
6 |
* Description: Display beautiful and responsive galleries on your website from your Instagram feed account.
|
7 |
-
* Version: 3.0.
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
@@ -19,7 +19,7 @@ if (!defined('QLIGG_PLUGIN_NAME')) {
|
|
19 |
define('QLIGG_PLUGIN_NAME', 'Social Feed Gallery');
|
20 |
}
|
21 |
if (!defined('QLIGG_PLUGIN_VERSION')) {
|
22 |
-
define('QLIGG_PLUGIN_VERSION', '3.0.
|
23 |
}
|
24 |
if (!defined('QLIGG_PLUGIN_FILE')) {
|
25 |
define('QLIGG_PLUGIN_FILE', __FILE__);
|
4 |
* Plugin Name: Social Feed Gallery
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/instagram-feed-gallery/
|
6 |
* Description: Display beautiful and responsive galleries on your website from your Instagram feed account.
|
7 |
+
* Version: 3.0.8
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
19 |
define('QLIGG_PLUGIN_NAME', 'Social Feed Gallery');
|
20 |
}
|
21 |
if (!defined('QLIGG_PLUGIN_VERSION')) {
|
22 |
+
define('QLIGG_PLUGIN_VERSION', '3.0.8');
|
23 |
}
|
24 |
if (!defined('QLIGG_PLUGIN_FILE')) {
|
25 |
define('QLIGG_PLUGIN_FILE', __FILE__);
|
readme.txt
CHANGED
@@ -105,6 +105,9 @@ There may be some other plugins(like: fancybox, elementor) which also uses image
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 3.0.7 =
|
109 |
* Fix. instagram masonry
|
110 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 3.0.8 =
|
109 |
+
* Fix. instagram carousel lazy load
|
110 |
+
|
111 |
= 3.0.7 =
|
112 |
* Fix. instagram masonry
|
113 |
|
templates/item/item-image.php
CHANGED
@@ -1,13 +1,15 @@
|
|
1 |
<div class="insta-gallery-image-wrap">
|
2 |
<a class="insta-gallery-link" href="<?php echo esc_url($item['link']); ?>" target="_blank">
|
3 |
-
<img <?php if($feed['lazy']): echo 'loading="lazy"';
|
4 |
-
|
|
|
|
|
5 |
<?php include($this->template_path('item/item-image-mask.php')); ?>
|
6 |
<?php endif; ?>
|
7 |
</a>
|
8 |
-
<?php if ($item['type'] == 'video'): ?>
|
9 |
<i class="insta-gallery-icon qligg-icon-video"></i>
|
10 |
-
<?php elseif ($item['type'] == 'carousel'): ?>
|
11 |
<i class="insta-gallery-icon qligg-icon-gallery"></i>
|
12 |
<?php endif; ?>
|
13 |
<a class="insta-gallery-icon qligg-icon-instagram" href="<?php echo esc_url($item['link']); ?>" target="_blank"></a>
|
1 |
<div class="insta-gallery-image-wrap">
|
2 |
<a class="insta-gallery-link" href="<?php echo esc_url($item['link']); ?>" target="_blank">
|
3 |
+
<img <?php if ($feed['layout'] != 'carousel' && $feed['lazy']) : echo 'loading="lazy"';
|
4 |
+
endif; ?> alt="Instagram" class="insta-gallery-image <?php if ($feed['lazy']) : echo 'swiper-lazy';
|
5 |
+
endif; ?>" src="<?php echo esc_url($image); ?>" />
|
6 |
+
<?php if ($feed['mask']['display']) : ?>
|
7 |
<?php include($this->template_path('item/item-image-mask.php')); ?>
|
8 |
<?php endif; ?>
|
9 |
</a>
|
10 |
+
<?php if ($item['type'] == 'video') : ?>
|
11 |
<i class="insta-gallery-icon qligg-icon-video"></i>
|
12 |
+
<?php elseif ($item['type'] == 'carousel') : ?>
|
13 |
<i class="insta-gallery-icon qligg-icon-gallery"></i>
|
14 |
<?php endif; ?>
|
15 |
<a class="insta-gallery-icon qligg-icon-instagram" href="<?php echo esc_url($item['link']); ?>" target="_blank"></a>
|