Version Description
- Bug Fix
=
Download this release
Release Info
Developer | mediabeta |
Plugin | Enjoy Instagram feed on website with WordPress Widget and Shortcode |
Version | 1.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.6.5
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: 1.6.
|
7 |
Author: F. Prestipino, F. Di Pane - Mediabeta Srl
|
8 |
Author URI: http://www.mediabeta.com/team/
|
9 |
*/
|
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: 1.6.5
|
7 |
Author: F. Prestipino, F. Di Pane - Mediabeta Srl
|
8 |
Author URI: http://www.mediabeta.com/team/
|
9 |
*/
|
library/enjoyinstagram_shortcode.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
// Add Shortcode
|
3 |
-
function enjoyinstagram_mb_shortcode($atts) {
|
|
|
4 |
STATIC $i = 1;
|
5 |
|
6 |
|
@@ -63,9 +64,13 @@ $pre_shortcode_content = "<div id=\"owl-".$i."\" class=\"owl-example\" style=\"d
|
|
63 |
|
64 |
|
65 |
foreach ($result->data as $entry) {
|
66 |
-
|
|
|
|
|
|
|
|
|
67 |
if(get_option('enjoyinstagram_carousel_items_number')!='1'){
|
68 |
-
$shortcode_content .= "<div class=\"box\"><a title=\"{$
|
69 |
}else{
|
70 |
$shortcode_content .= "<div class=\"box\"><a title=\"{$entry->caption->text}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry->images->standard_resolution->url}\"><img style=\"width:100%;\" src=\"{$entry->images->standard_resolution->url}\"></a></div>";
|
71 |
}
|
1 |
<?php
|
2 |
// Add Shortcode
|
3 |
+
function enjoyinstagram_mb_shortcode($atts) {
|
4 |
+
$shortcode_content = '';
|
5 |
STATIC $i = 1;
|
6 |
|
7 |
|
64 |
|
65 |
|
66 |
foreach ($result->data as $entry) {
|
67 |
+
if(!empty($entry->caption)) {
|
68 |
+
$caption = $entry->caption->text;
|
69 |
+
}else{
|
70 |
+
$caption = '';
|
71 |
+
}
|
72 |
if(get_option('enjoyinstagram_carousel_items_number')!='1'){
|
73 |
+
$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>";
|
74 |
}else{
|
75 |
$shortcode_content .= "<div class=\"box\"><a title=\"{$entry->caption->text}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry->images->standard_resolution->url}\"><img style=\"width:100%;\" src=\"{$entry->images->standard_resolution->url}\"></a></div>";
|
76 |
}
|
library/enjoyinstagram_shortcode_grid.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
// Add Shortcode
|
3 |
-
function enjoyinstagram_mb_shortcode_grid() {
|
|
|
4 |
STATIC $i = 1;
|
5 |
if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
|
6 |
|
@@ -27,8 +28,12 @@ $pre_shortcode_content = "<div id=\"grid-".$i."\" class=\"ri-grid ri-grid-size-2
|
|
27 |
|
28 |
|
29 |
foreach ($result->data as $entry) {
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
|
33 |
}
|
34 |
|
1 |
<?php
|
2 |
// Add Shortcode
|
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 |
|
28 |
|
29 |
|
30 |
foreach ($result->data as $entry) {
|
31 |
+
if(!empty($entry->caption)) {
|
32 |
+
$caption = $entry->caption->text;
|
33 |
+
}else{
|
34 |
+
$caption = '';
|
35 |
+
}
|
36 |
+
$shortcode_content .= "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$entry->images->standard_resolution->url}\"><img src=\"{$entry->images->standard_resolution->url}\"></a></li>";
|
37 |
|
38 |
}
|
39 |
|
library/enjoyinstagram_shortcode_grid_widget.php
CHANGED
@@ -35,8 +35,18 @@ $result = $instagram->getUserMedia(urlencode(get_option('enjoyinstagram_user_id'
|
|
35 |
|
36 |
if($result->data){
|
37 |
foreach ($result->data as $entry) {
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
}
|
42 |
}
|
35 |
|
36 |
if($result->data){
|
37 |
foreach ($result->data as $entry) {
|
38 |
+
if(!empty($entry->caption)) {
|
39 |
+
$caption = $entry->caption->text;
|
40 |
+
}else{
|
41 |
+
$caption = '';
|
42 |
+
}
|
43 |
+
if(!empty($entry->images)) {
|
44 |
+
$image = $entry->images->standard_resolution->url;
|
45 |
+
}else{
|
46 |
+
$image = '';
|
47 |
+
}
|
48 |
+
|
49 |
+
echo "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$image}\"><img src=\"{$image}\"></a></li>";
|
50 |
|
51 |
}
|
52 |
}
|
library/enjoyinstagram_shortcode_widget.php
CHANGED
@@ -58,9 +58,13 @@ function enjoyinstagram_mb_shortcode_widget($atts) {
|
|
58 |
<?php
|
59 |
if($result->data){
|
60 |
foreach ($result->data as $entry) {
|
61 |
-
|
|
|
|
|
|
|
|
|
62 |
if(get_option('enjoyinstagram_carousel_items_number')!='1'){
|
63 |
-
echo "<div class=\"box\"><a title=\"{$
|
64 |
}else{
|
65 |
echo "<div class=\"box\"><a title=\"{$entry->caption->text}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry->images->standard_resolution->url}\"><img style=\"width:100%;\" src=\"{$entry->images->standard_resolution->url}\"></a></div>";
|
66 |
}
|
58 |
<?php
|
59 |
if($result->data){
|
60 |
foreach ($result->data as $entry) {
|
61 |
+
if(!empty($entry->caption)) {
|
62 |
+
$caption = $entry->caption->text;
|
63 |
+
}else{
|
64 |
+
$caption = '';
|
65 |
+
}
|
66 |
if(get_option('enjoyinstagram_carousel_items_number')!='1'){
|
67 |
+
echo "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry->images->standard_resolution->url}\"><img src=\"{$entry->images->thumbnail->url}\"></a></div>";
|
68 |
}else{
|
69 |
echo "<div class=\"box\"><a title=\"{$entry->caption->text}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry->images->standard_resolution->url}\"><img style=\"width:100%;\" src=\"{$entry->images->standard_resolution->url}\"></a></div>";
|
70 |
}
|
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.3
|
7 |
-
Version: 1.6.
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -129,6 +129,8 @@ Repeat Step 01 and Step 02 again.
|
|
129 |
* Bug Fix
|
130 |
= 1.6.4 =
|
131 |
* Bug Fix
|
|
|
|
|
132 |
|
133 |
== Upgrade Notice ==
|
134 |
|
@@ -161,4 +163,6 @@ Repeat Step 01 and Step 02 again.
|
|
161 |
= 1.6.3 =
|
162 |
* Bug Fix
|
163 |
= 1.6.4 =
|
|
|
|
|
164 |
* Bug Fix
|
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.3
|
7 |
+
Version: 1.6.5
|
8 |
+
Stable tag: 1.6.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
129 |
* Bug Fix
|
130 |
= 1.6.4 =
|
131 |
* Bug Fix
|
132 |
+
= 1.6.5 =
|
133 |
+
* Bug Fix
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
163 |
= 1.6.3 =
|
164 |
* Bug Fix
|
165 |
= 1.6.4 =
|
166 |
+
* Bug Fix
|
167 |
+
= 1.6.5 =
|
168 |
* Bug Fix
|