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

Version Description

  • New: pictures with squared format supported
  • Fixed: Minor issues

=

Download this release

Release Info

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

Code changes from version 3.1 to 3.2

enjoyinstagram.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enjoy Plugin for 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: 3.1
7
  Author: F. Prestipino, F. Di Pane - Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
3
  Plugin Name: Enjoy Plugin for 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: 3.2
7
  Author: F. Prestipino, F. Di Pane - Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
library/enjoyinstagram_shortcode.php CHANGED
@@ -5,7 +5,7 @@ function enjoyinstagram_mb_shortcode($atts) {
5
  STATIC $i = 1;
6
 
7
 
8
- if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
9
  extract( shortcode_atts( array(
10
  'n' => '4',
11
  ), $atts ) );
@@ -72,10 +72,11 @@ foreach ($result as $entry) {
72
  }else{
73
  $caption = '';
74
  }
 
75
  if(get_option('enjoyinstagram_carousel_items_number')!='1'){
76
- $shortcode_content .= "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\"><img src=\"{$entry['images']['standard_resolution']['url']}\"></a></div>";
77
  }else{
78
- $shortcode_content .= "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\"><img style=\"width:100%;\" src=\"{$entry['images']['standard_resolution']['url']}\"></a></div>";
79
  }
80
  }
81
  }
5
  STATIC $i = 1;
6
 
7
 
8
+ if(get_option('enjoyinstagram_client_id')!==null || get_option('enjoyinstagram_client_id') != '') {
9
  extract( shortcode_atts( array(
10
  'n' => '4',
11
  ), $atts ) );
72
  }else{
73
  $caption = '';
74
  }
75
+ $square_thumbnail = str_replace('s150x150/', 's320x320/', $entry['images']['thumbnail']['url']);
76
  if(get_option('enjoyinstagram_carousel_items_number')!='1'){
77
+ $shortcode_content .= "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\"><img src=\"{$square_thumbnail}\"></a></div>";
78
  }else{
79
+ $shortcode_content .= "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\"><img style=\"width:100%;\" src=\"{$square_thumbnail}\"></a></div>";
80
  }
81
  }
82
  }
library/enjoyinstagram_shortcode_grid.php CHANGED
@@ -3,7 +3,7 @@
3
  function enjoyinstagram_mb_shortcode_grid() {
4
  $shortcode_content = '';
5
  STATIC $i = 1;
6
- if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
7
 
8
 
9
  if(get_option('enjoyinstagram_user_or_hashtag')=='hashtag'){
@@ -17,7 +17,6 @@ if(get_option('enjoyinstagram_user_or_hashtag')=='hashtag'){
17
  $pre_shortcode_content = "<div id=\"grid-".$i."\" class=\"ri-grid ri-grid-size-2 ri-shadow\" style=\"display:none;\"><ul>";
18
 
19
 
20
-
21
  if (isHttps() && !is_null($result)) {
22
  foreach ($result as $entry) {
23
  $entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
@@ -32,7 +31,8 @@ foreach ($result as $entry) {
32
  }else{
33
  $caption = '';
34
  }
35
- $shortcode_content .= "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$entry['images']['standard_resolution']['url']}\"><img src=\"{$entry['images']['standard_resolution']['url']}\"></a></li>";
 
36
 
37
  }
38
  }
3
  function enjoyinstagram_mb_shortcode_grid() {
4
  $shortcode_content = '';
5
  STATIC $i = 1;
6
+ if(get_option('enjoyinstagram_client_id')!==null || get_option('enjoyinstagram_client_id') != '') {
7
 
8
 
9
  if(get_option('enjoyinstagram_user_or_hashtag')=='hashtag'){
17
  $pre_shortcode_content = "<div id=\"grid-".$i."\" class=\"ri-grid ri-grid-size-2 ri-shadow\" style=\"display:none;\"><ul>";
18
 
19
 
 
20
  if (isHttps() && !is_null($result)) {
21
  foreach ($result as $entry) {
22
  $entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
31
  }else{
32
  $caption = '';
33
  }
34
+ $square_thumbnail = str_replace('s150x150/', 's320x320/', $entry['images']['thumbnail']['url']);
35
+ $shortcode_content .= "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$entry['images']['standard_resolution']['url']}\"><img src=\"{$square_thumbnail}\"></a></li>";
36
 
37
  }
38
  }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: (mediabeta, frafra85, fabiodipa)
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
  Tags: Instagram,, Instagram feeds, Instagram grid, Instagram carousel, Instagram feed on website, widget instagram, embed instagram feed, responsive carousel, wordpress Instagram, wordpress carousel, 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.6.1
7
- Version: 3.1
8
- Stable tag: 3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -36,6 +36,8 @@ Everything is responsive and optimized for mobile devices.
36
  * Widgets for sidebars
37
  * Touch
38
  * Completely responsive and Optimized Mobile Devices
 
 
39
 
40
  = Very Simple Installation and Configuration =
41
  * http://www.mediabetaprojects.com/enjoy-instagram-premium/install-enjoy-instagram-wordpress-plugin/
@@ -59,7 +61,8 @@ In the premium configuration you will choose which Instagram photos display in y
59
 
60
  = See LIVE PREVIEW: = http://www.mediabetaprojects.com/enjoy-instagram-premium/
61
 
62
- Other features:
 
63
  * Polaroid View to overlay images as polaroid pictures
64
  * Album View to show your pictures organized for username and or hashtags
65
  * Badge View that will help you link to and promote your Instagram web profile
@@ -172,6 +175,9 @@ In the Setting section yon can customize grid and/or Carousel view
172
  * New Instagram Api Implementation
173
  = 3.1 =
174
  * Fixed: Minor issues
 
 
 
175
 
176
 
177
  == Upgrade Notice ==
@@ -219,4 +225,9 @@ In the Setting section yon can customize grid and/or Carousel view
219
  = 2.1.3 =
220
  * Add Shortcakes Info
221
  = 3.0 =
222
- * New Instagram Api Implementation
 
 
 
 
 
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
  Tags: Instagram,, Instagram feeds, Instagram grid, Instagram carousel, Instagram feed on website, widget instagram, embed instagram feed, responsive carousel, wordpress Instagram, wordpress carousel, 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.7
7
+ Version: 3.2
8
+ Stable tag: 3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
36
  * Widgets for sidebars
37
  * Touch
38
  * Completely responsive and Optimized Mobile Devices
39
+ * NEW: pictures with squared format supported
40
+ * NEW: standard resolution in lightbox view
41
 
42
  = Very Simple Installation and Configuration =
43
  * http://www.mediabetaprojects.com/enjoy-instagram-premium/install-enjoy-instagram-wordpress-plugin/
61
 
62
  = See LIVE PREVIEW: = http://www.mediabetaprojects.com/enjoy-instagram-premium/
63
 
64
+ = Other features: =
65
+
66
  * Polaroid View to overlay images as polaroid pictures
67
  * Album View to show your pictures organized for username and or hashtags
68
  * Badge View that will help you link to and promote your Instagram web profile
175
  * New Instagram Api Implementation
176
  = 3.1 =
177
  * Fixed: Minor issues
178
+ = 3.2 =
179
+ * New: pictures with squared format supported
180
+ * Fixed: Minor issues
181
 
182
 
183
  == Upgrade Notice ==
225
  = 2.1.3 =
226
  * Add Shortcakes Info
227
  = 3.0 =
228
+ * New Instagram Api Implementation
229
+ = 3.1 =
230
+ * Fixed: Minor issues
231
+ = 3.2 =
232
+ * New: pictures with squared format supported
233
+ * Fixed: Minor issues