Version Description
- Banner Removed
=
Download this release
Release Info
Developer | mediabeta |
Plugin | Enjoy Instagram feed on website with WordPress Widget and Shortcode |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.1.2
- enjoyinstagram.php +14 -22
- images/Thumbs.db +0 -0
- readme.txt +11 -3
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 |
*/
|
@@ -130,9 +130,10 @@ class Settings_enjoyinstagram_Plugin {
|
|
130 |
</div>
|
131 |
|
132 |
</div>
|
|
|
133 |
<div class="promo_enjoy">
|
134 |
<a target="_blank" href="http://www.mediabetaprojects.com/enjoy-instagram-premium/"><img src="<?php echo plugins_url('/img/gift2016.jpg',__FILE__); ?>" /></a>
|
135 |
-
</div>
|
136 |
</div>
|
137 |
</h2>
|
138 |
|
@@ -221,11 +222,8 @@ function get_user_info($access_token){
|
|
221 |
}
|
222 |
function get_hash($hashtag,$count){
|
223 |
|
224 |
-
|
225 |
-
|
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 +240,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 |
-
$
|
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 +262,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 |
|
@@ -658,13 +652,11 @@ function isHttps() {
|
|
658 |
return true;
|
659 |
}
|
660 |
}
|
661 |
-
|
662 |
-
add_action('admin_notices', '
|
663 |
-
|
664 |
-
function example_admin_notice() {
|
665 |
global $current_user ;
|
666 |
$user_id = $current_user->ID;
|
667 |
-
/* Check that the user hasn't already clicked to ignore the message */
|
668 |
if ( ! get_user_meta($user_id, 'ignore_enjoy_notice') ) {
|
669 |
echo '<div style="padding: 20px;border:1px solid #ccc;background: #fff;margin-top: 20px;"><div class="promo_enjoy">
|
670 |
<a target="_blank" href="http://www.mediabetaprojects.com/enjoy-instagram-premium/"><img src="'.plugins_url('/img/gift2016.jpg',__FILE__).'" /></a>
|
@@ -673,7 +665,7 @@ function example_admin_notice() {
|
|
673 |
echo '</div>';
|
674 |
}
|
675 |
}
|
676 |
-
|
677 |
add_action('admin_init', 'ignore_enjoy');
|
678 |
|
679 |
function ignore_enjoy() {
|
@@ -685,7 +677,7 @@ function ignore_enjoy() {
|
|
685 |
}
|
686 |
}
|
687 |
|
688 |
-
|
689 |
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
|
690 |
|
691 |
function my_custom_dashboard_widgets() {
|
@@ -700,7 +692,7 @@ function custom_dashboard_help() {
|
|
700 |
</div>'
|
701 |
;
|
702 |
}
|
703 |
-
|
704 |
|
705 |
|
706 |
include_once ('tinymce/tinymce.php');
|
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.2
|
7 |
Author: F. Prestipino, F. Di Pane - Mediabeta Srl
|
8 |
Author URI: http://www.mediabeta.com/team/
|
9 |
*/
|
130 |
</div>
|
131 |
|
132 |
</div>
|
133 |
+
<?php /*
|
134 |
<div class="promo_enjoy">
|
135 |
<a target="_blank" href="http://www.mediabetaprojects.com/enjoy-instagram-premium/"><img src="<?php echo plugins_url('/img/gift2016.jpg',__FILE__); ?>" /></a>
|
136 |
+
</div> */ ?>
|
137 |
</div>
|
138 |
</h2>
|
139 |
|
222 |
}
|
223 |
function get_hash($hashtag,$count){
|
224 |
|
225 |
+
|
226 |
+
$access_token = get_option('enjoyinstagram_access_token');
|
|
|
|
|
|
|
227 |
|
228 |
|
229 |
$url = 'https://api.instagram.com/v1/tags/' . $hashtag . '/media/recent?count=' . $count . '&access_token=' . $access_token;
|
240 |
} catch (Exception $e) {
|
241 |
return $e->getMessage();
|
242 |
}
|
243 |
+
|
244 |
}
|
245 |
function get_hash_code($hashtag,$count){
|
246 |
|
247 |
+
$access_token = get_option('enjoyinstagram_access_token');
|
|
|
|
|
|
|
|
|
248 |
|
249 |
|
250 |
$url = 'https://api.instagram.com/v1/tags/' . $hashtag . '/media/recent?count=' . $count . '&access_token=' . $access_token;
|
262 |
} catch (Exception $e) {
|
263 |
return $e->getMessage();
|
264 |
}
|
265 |
+
|
266 |
}
|
267 |
function get_user($user,$count){
|
268 |
|
652 |
return true;
|
653 |
}
|
654 |
}
|
655 |
+
/*
|
656 |
+
add_action('admin_notices', 'banner_admin_notice');
|
657 |
+
function banner_admin_notice() {
|
|
|
658 |
global $current_user ;
|
659 |
$user_id = $current_user->ID;
|
|
|
660 |
if ( ! get_user_meta($user_id, 'ignore_enjoy_notice') ) {
|
661 |
echo '<div style="padding: 20px;border:1px solid #ccc;background: #fff;margin-top: 20px;"><div class="promo_enjoy">
|
662 |
<a target="_blank" href="http://www.mediabetaprojects.com/enjoy-instagram-premium/"><img src="'.plugins_url('/img/gift2016.jpg',__FILE__).'" /></a>
|
665 |
echo '</div>';
|
666 |
}
|
667 |
}
|
668 |
+
*/
|
669 |
add_action('admin_init', 'ignore_enjoy');
|
670 |
|
671 |
function ignore_enjoy() {
|
677 |
}
|
678 |
}
|
679 |
|
680 |
+
/*
|
681 |
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
|
682 |
|
683 |
function my_custom_dashboard_widgets() {
|
692 |
</div>'
|
693 |
;
|
694 |
}
|
695 |
+
*/
|
696 |
|
697 |
|
698 |
include_once ('tinymce/tinymce.php');
|
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 |
|
@@ -137,6 +137,10 @@ 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 +179,8 @@ 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.2
|
8 |
+
Stable tag: 2.1.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
137 |
* New Instagram API
|
138 |
= 2.1 =
|
139 |
* Small Bug Fixed
|
140 |
+
= 2.1.1 =
|
141 |
+
* Hashtag mode fixed
|
142 |
+
= 2.1.2 =
|
143 |
+
* Banner Removed
|
144 |
|
145 |
== Upgrade Notice ==
|
146 |
|
179 |
= 2.0 =
|
180 |
* New Instagram API
|
181 |
= 2.1 =
|
182 |
+
* Small Bug Fixed
|
183 |
+
= 2.1.1 =
|
184 |
+
* Hashtag mode fixed
|
185 |
+
= 2.1.2 =
|
186 |
+
* Banner Removed
|