Version Description
Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
Download this release
Release Info
Developer | webdorado |
Plugin | WD Instagram Feed – Instagram Gallery |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- frontend/shortcode.php +3 -3
- js/wdi_frontend.js +4 -2
- js/wdi_responsive.js +3 -0
- readme.txt +5 -2
- wd-instagram-feed.php +2 -2
frontend/shortcode.php
CHANGED
@@ -119,11 +119,11 @@ function wdi_feed($atts,$widget_params='') {
|
|
119 |
|
120 |
function wdi_load_frontend_scripts(){
|
121 |
|
122 |
-
wp_enqueue_script('wdi_instagram',plugins_url('../js/wdi_instagram.js', __FILE__),array("jquery"), WDI_VERSION );
|
123 |
|
124 |
-
wp_enqueue_script('wdi_frontend',plugins_url('../js/wdi_frontend.js', __FILE__),array("jquery",'wdi_instagram'), WDI_VERSION);
|
125 |
|
126 |
-
wp_enqueue_script('wdi_responsive',plugins_url('../js/wdi_responsive.js', __FILE__),array("jquery","wdi_frontend"), WDI_VERSION);
|
127 |
wp_localize_script("wdi_frontend", 'wdi_ajax',array( 'ajax_url' => admin_url( 'admin-ajax.php' )), WDI_VERSION);
|
128 |
wp_localize_script("wdi_frontend", 'wdi_url',array('plugin_url'=>plugin_dir_url(__FILE__),
|
129 |
'ajax_url' => admin_url( 'admin-ajax.php' )), WDI_VERSION);
|
119 |
|
120 |
function wdi_load_frontend_scripts(){
|
121 |
|
122 |
+
wp_enqueue_script('wdi_instagram',plugins_url('../js/wdi_instagram.js', __FILE__),array("jquery"), WDI_VERSION, true );
|
123 |
|
124 |
+
wp_enqueue_script('wdi_frontend',plugins_url('../js/wdi_frontend.js', __FILE__),array("jquery",'wdi_instagram'), WDI_VERSION, true);
|
125 |
|
126 |
+
wp_enqueue_script('wdi_responsive',plugins_url('../js/wdi_responsive.js', __FILE__),array("jquery","wdi_frontend"), WDI_VERSION, true);
|
127 |
wp_localize_script("wdi_frontend", 'wdi_ajax',array( 'ajax_url' => admin_url( 'admin-ajax.php' )), WDI_VERSION);
|
128 |
wp_localize_script("wdi_frontend", 'wdi_url',array('plugin_url'=>plugin_dir_url(__FILE__),
|
129 |
'ajax_url' => admin_url( 'admin-ajax.php' )), WDI_VERSION);
|
js/wdi_frontend.js
CHANGED
@@ -536,8 +536,10 @@ wdi_front.updateUsersImages = function(currentFeed) {
|
|
536 |
wdi_front.masonryDisplayFeedItems = function(data, currentFeed) {
|
537 |
var masonryColEnds = [];
|
538 |
var masonryColumns = [];
|
539 |
-
|
540 |
-
|
|
|
|
|
541 |
jQuery('#wdi_feed_' + currentFeed.feed_row['wdi_feed_counter'] + ' .wdi_masonry_column').each(function() {
|
542 |
|
543 |
//if resorte after load more is on then reset columns on every load more
|
536 |
wdi_front.masonryDisplayFeedItems = function(data, currentFeed) {
|
537 |
var masonryColEnds = [];
|
538 |
var masonryColumns = [];
|
539 |
+
if(jQuery('#wdi_feed_'+currentFeed.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length == 0){
|
540 |
+
//no feed in DOM, ignore
|
541 |
+
return;
|
542 |
+
}
|
543 |
jQuery('#wdi_feed_' + currentFeed.feed_row['wdi_feed_counter'] + ' .wdi_masonry_column').each(function() {
|
544 |
|
545 |
//if resorte after load more is on then reset columns on every load more
|
js/wdi_responsive.js
CHANGED
@@ -75,6 +75,9 @@ wdi_responsive.columnControl = function(currentFeed,load,customWidth){
|
|
75 |
|
76 |
|
77 |
var wrapper = jQuery('#wdi_feed_'+currentFeed.feed_row.wdi_feed_counter+" .wdi_feed_wrapper");
|
|
|
|
|
|
|
78 |
var itemWidth = jQuery('#wdi_feed_'+currentFeed.feed_row.wdi_feed_counter+" .wdi_feed_item").css('width')+'';
|
79 |
var containerWidth = wrapper.width();
|
80 |
|
75 |
|
76 |
|
77 |
var wrapper = jQuery('#wdi_feed_'+currentFeed.feed_row.wdi_feed_counter+" .wdi_feed_wrapper");
|
78 |
+
if(wrapper.length == 0){
|
79 |
+
return;
|
80 |
+
}
|
81 |
var itemWidth = jQuery('#wdi_feed_'+currentFeed.feed_row.wdi_feed_counter+" .wdi_feed_item").css('width')+'';
|
82 |
var containerWidth = wrapper.width();
|
83 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Instagram ===
|
2 |
Contributors: webdorado, progmastery
|
3 |
Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
4 |
-
Tags: : custom instagram
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -107,6 +107,9 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
110 |
= 1.1.5 =
|
111 |
Fixed: Javascript error on Firefox and Safari
|
112 |
|
1 |
=== Instagram ===
|
2 |
Contributors: webdorado, progmastery
|
3 |
Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
4 |
+
Tags: : custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, Instagram wall, lightbox, photos
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.1.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.1.6 =
|
111 |
+
Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
|
112 |
+
|
113 |
= 1.1.5 =
|
114 |
Fixed: Javascript error on Firefox and Safari
|
115 |
|
wd-instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Instagram Feed WD
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
5 |
Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
-
Version: 1.1.
|
7 |
Author: WebDorado
|
8 |
Author URI: https://web-dorado.com
|
9 |
License: GPLv2 or later
|
@@ -20,7 +20,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
|
|
20 |
//define("wdi",'wdi');
|
21 |
define('WDI_FEED_TABLE','wdi_feeds');
|
22 |
define('WDI_THEME_TABLE','wdi_themes');
|
23 |
-
define('WDI_VERSION','1.1.
|
24 |
define('WDI_IS_PRO','false');
|
25 |
|
26 |
|
3 |
Plugin Name: Instagram Feed WD
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
5 |
Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
+
Version: 1.1.6
|
7 |
Author: WebDorado
|
8 |
Author URI: https://web-dorado.com
|
9 |
License: GPLv2 or later
|
20 |
//define("wdi",'wdi');
|
21 |
define('WDI_FEED_TABLE','wdi_feeds');
|
22 |
define('WDI_THEME_TABLE','wdi_themes');
|
23 |
+
define('WDI_VERSION','1.1.6');
|
24 |
define('WDI_IS_PRO','false');
|
25 |
|
26 |
|