Instagram Gallery - Version 2.9.7

Version Description

  • Fix. instagram feed gallery widget
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 Instagram Gallery
Version 2.9.7
Comparing to
See all releases

Code changes from version 2.9.6 to 2.9.7

assets/backend/img/icon-128x128.gif ADDED
Binary file
assets/backend/img/instagram.png DELETED
Binary file
assets/backend/img/logo.jpg DELETED
Binary file
includes/notices.php CHANGED
@@ -44,7 +44,7 @@ class QLIGG_Notices
44
  <div id="qligg-admin-rating" class="qligg-notice notice is-dismissible" data-notice_id="qligg-user-rating">
45
  <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
46
  <div class="notice-image">
47
- <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/logo.jpg', QLIGG_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLIGG_PLUGIN_NAME); ?>>">
48
  </div>
49
  <div class="notice-content" style="margin-left: 15px;">
50
  <p>
@@ -68,7 +68,7 @@ class QLIGG_Notices
68
  <div id="qligg-admin-rating" class="qligg-notice notice is-dismissible error" data-notice_id="qligg-api-tag">
69
  <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
70
  <div class="notice-image">
71
- <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/logo.jpg', QLIGG_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLIGG_PLUGIN_NAME); ?>>">
72
  </div>
73
  <div class="notice-content" style="margin-left: 15px;">
74
  <p>
44
  <div id="qligg-admin-rating" class="qligg-notice notice is-dismissible" data-notice_id="qligg-user-rating">
45
  <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
46
  <div class="notice-image">
47
+ <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/icon-128x128.gif', QLIGG_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLIGG_PLUGIN_NAME); ?>>">
48
  </div>
49
  <div class="notice-content" style="margin-left: 15px;">
50
  <p>
68
  <div id="qligg-admin-rating" class="qligg-notice notice is-dismissible error" data-notice_id="qligg-api-tag">
69
  <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
70
  <div class="notice-image">
71
+ <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/icon-128x128.gif', QLIGG_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLIGG_PLUGIN_NAME); ?>>">
72
  </div>
73
  <div class="notice-content" style="margin-left: 15px;">
74
  <p>
includes/widget.php CHANGED
@@ -11,7 +11,7 @@ class QLIGG_Widget extends WP_Widget {
11
 
12
  public function widget($args, $instance) {
13
  $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
14
- $feed_id = empty($instance['feed_id']) ? @$instance['instagal_id'] : $instance['feed_id'];
15
 
16
  echo $args['before_widget'];
17
 
@@ -19,7 +19,7 @@ class QLIGG_Widget extends WP_Widget {
19
  echo $args['before_title'] . wp_kses_post($title) . $args['after_title'];
20
  }
21
 
22
- if (!empty($feed_id)) {
23
  echo do_shortcode('[insta-gallery id="' . $feed_id . '"]');
24
  }
25
 
@@ -52,11 +52,15 @@ class QLIGG_Widget extends WP_Widget {
52
  foreach ($feeds as $id => $feed) {
53
 
54
  if (isset($feed['type'])) {
55
- if ($feed['type'] == 'username') {
 
 
 
56
  $profile_info = qligg_get_user_profile($feed['username']);
57
- } else {
58
- $profile_info = qligg_get_tag_profile($feed['tag']);
59
- }
 
60
  }
61
 
62
  $label = sprintf('%s : %s', sprintf(esc_html__('Feed %s', 'insta-gallery'), $id), $profile_info['name']);
11
 
12
  public function widget($args, $instance) {
13
  $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
14
+ $feed_id = empty($instance['feed_id']) ? $instance['feed_id'] : @$instance['instagal_id'];
15
 
16
  echo $args['before_widget'];
17
 
19
  echo $args['before_title'] . wp_kses_post($title) . $args['after_title'];
20
  }
21
 
22
+ if (isset($feed_id)) {
23
  echo do_shortcode('[insta-gallery id="' . $feed_id . '"]');
24
  }
25
 
52
  foreach ($feeds as $id => $feed) {
53
 
54
  if (isset($feed['type'])) {
55
+
56
+ $profile_info = $feed['profile'];
57
+
58
+ //if ($feed['type'] == 'username') {
59
  $profile_info = qligg_get_user_profile($feed['username']);
60
+
61
+ $feed['profile'] = array_merge($profile_info, array_filter($feed['profile']));
62
+ //}
63
+
64
  }
65
 
66
  $label = sprintf('%s : %s', sprintf(esc_html__('Feed %s', 'insta-gallery'), $id), $profile_info['name']);
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: 2.9.6
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', '2.9.6');
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: 2.9.7
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', '2.9.7');
23
  }
24
  if (!defined('QLIGG_PLUGIN_FILE')) {
25
  define('QLIGG_PLUGIN_FILE', __FILE__);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/portfolio/instagram-gallery/
4
  Tags: Instagram, Instagram feed, Instagram gallery, Instagram photos, Instagram widget, Instagram pictures
5
  Requires at least: 3.4
6
  Tested up to: 5.4.2
7
- Stable tag: 2.9.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -105,6 +105,9 @@ There may be some other plugins(like: fancybox, elementor) which also uses image
105
 
106
  == Changelog ==
107
 
 
 
 
108
  = 2.9.6 =
109
  * Fix. instagram feed gallery pro compatibility
110
 
4
  Tags: Instagram, Instagram feed, Instagram gallery, Instagram photos, Instagram widget, Instagram pictures
5
  Requires at least: 3.4
6
  Tested up to: 5.4.2
7
+ Stable tag: 2.9.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
105
 
106
  == Changelog ==
107
 
108
+ = 2.9.7 =
109
+ * Fix. instagram feed gallery widget
110
+
111
  = 2.9.6 =
112
  * Fix. instagram feed gallery pro compatibility
113