Enjoy Instagram feed on website with WordPress Widget and Shortcode - Version 2.1.1

Version Description

  • Hashtag mode fixed

=

Download this release

Release Info

Developer mediabeta
Plugin Icon 128x128 Enjoy Instagram feed on website with WordPress Widget and Shortcode
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1 to 2.1.1

Files changed (3) hide show
  1. enjoyinstagram.php +6 -13
  2. images/Thumbs.db +0 -0
  3. readme.txt +7 -4
enjoyinstagram.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enjoy Instagram
4
  Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
- Version: 2.1
7
  Author: F. Prestipino, F. Di Pane - Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
@@ -221,11 +221,8 @@ function get_user_info($access_token){
221
  }
222
  function get_hash($hashtag,$count){
223
 
224
- $user_option = get_option('enjoy_instagram_options');
225
- if(is_array($user_option) && count($user_option)>0) {
226
- reset($user_option);
227
- $first_key = key($user_option);
228
- $access_token = $user_option[$first_key]['access_token'];
229
 
230
 
231
  $url = 'https://api.instagram.com/v1/tags/' . $hashtag . '/media/recent?count=' . $count . '&access_token=' . $access_token;
@@ -242,15 +239,11 @@ function get_hash($hashtag,$count){
242
  } catch (Exception $e) {
243
  return $e->getMessage();
244
  }
245
- }
246
  }
247
  function get_hash_code($hashtag,$count){
248
 
249
- $user_option = get_option('enjoy_instagram_options');
250
- if(is_array($user_option) && count($user_option)>0) {
251
- reset($user_option);
252
- $first_key = key($user_option);
253
- $access_token = $user_option[$first_key]['access_token'];
254
 
255
 
256
  $url = 'https://api.instagram.com/v1/tags/' . $hashtag . '/media/recent?count=' . $count . '&access_token=' . $access_token;
@@ -268,7 +261,7 @@ function get_hash_code($hashtag,$count){
268
  } catch (Exception $e) {
269
  return $e->getMessage();
270
  }
271
- }
272
  }
273
  function get_user($user,$count){
274
 
3
  Plugin Name: Enjoy Instagram
4
  Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
+ Version: 2.1.1
7
  Author: F. Prestipino, F. Di Pane - Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
221
  }
222
  function get_hash($hashtag,$count){
223
 
224
+
225
+ $access_token = get_option('enjoyinstagram_access_token');
 
 
 
226
 
227
 
228
  $url = 'https://api.instagram.com/v1/tags/' . $hashtag . '/media/recent?count=' . $count . '&access_token=' . $access_token;
239
  } catch (Exception $e) {
240
  return $e->getMessage();
241
  }
242
+
243
  }
244
  function get_hash_code($hashtag,$count){
245
 
246
+ $access_token = get_option('enjoyinstagram_access_token');
 
 
 
 
247
 
248
 
249
  $url = 'https://api.instagram.com/v1/tags/' . $hashtag . '/media/recent?count=' . $count . '&access_token=' . $access_token;
261
  } catch (Exception $e) {
262
  return $e->getMessage();
263
  }
264
+
265
  }
266
  function get_user($user,$count){
267
 
images/Thumbs.db ADDED
Binary file
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin
4
  Tags: Instagram plugin, Instagram, Instagram gallery, Instagram images, Lightbox Instagram,Grid Instagram view, Instagram responsive, Instagram touch, Instagram photos,Instagram posts, Instagram page, Instagram widgets
5
  Requires at least: 3.0.1
6
  Tested up to: 4.4
7
- Version: 2.1
8
- Stable tag: 2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -91,7 +91,6 @@ Repeat Step 01 and Step 02 again.
91
  == Screenshots ==
92
 
93
  1. Enjoy Instagram settings page
94
- 2. Enjoy Instagram settings page2
95
  3. Your Instagram Profile
96
  4. Control Panel for Grid View and Carousel View Settings
97
  5. Front End View Example
@@ -137,6 +136,8 @@ Repeat Step 01 and Step 02 again.
137
  * New Instagram API
138
  = 2.1 =
139
  * Small Bug Fixed
 
 
140
 
141
  == Upgrade Notice ==
142
 
@@ -175,4 +176,6 @@ Repeat Step 01 and Step 02 again.
175
  = 2.0 =
176
  * New Instagram API
177
  = 2.1 =
178
- * Small Bug Fixed
 
 
4
  Tags: Instagram plugin, Instagram, Instagram gallery, Instagram images, Lightbox Instagram,Grid Instagram view, Instagram responsive, Instagram touch, Instagram photos,Instagram posts, Instagram page, Instagram widgets
5
  Requires at least: 3.0.1
6
  Tested up to: 4.4
7
+ Version: 2.1.1
8
+ Stable tag: 2.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
91
  == Screenshots ==
92
 
93
  1. Enjoy Instagram settings page
 
94
  3. Your Instagram Profile
95
  4. Control Panel for Grid View and Carousel View Settings
96
  5. Front End View Example
136
  * New Instagram API
137
  = 2.1 =
138
  * Small Bug Fixed
139
+ = 2.1.1 =
140
+ * Hashtag mode fixed
141
 
142
  == Upgrade Notice ==
143
 
176
  = 2.0 =
177
  * New Instagram API
178
  = 2.1 =
179
+ * Small Bug Fixed
180
+ = 2.1.1 =
181
+ * Hashtag mode fixed