Version Description
Important: Due to the recent Instagram API changes, in order for the Instagram Feed plugin to continue working after June 1st you must update the plugin and obtain a new Access Token on the plugin's Settings page.
=
Download this release
Release Info
Developer | smashballoon |
Plugin | Instagram Feed |
Version | 1.4.6 |
Comparing to | |
See all releases |
Code changes from version 1.4.5 to 1.4.6
- README.txt +10 -1
- instagram-feed-admin.php +43 -4
- instagram-feed.php +2 -2
- js/sb-instagram-admin.js +1 -1
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
|
|
3 |
Tags: Instagram, Instagram feed, Instagram photos, Instagram plugin, Instagram stream, Custom Instagram Feed, responsive Instagram, mobile Instagram, Instagram posts, Instagram wall, Instagram account, Instagram gallery, Instagram photo, Instagram post, Instagram share, Instagram customized, Instagrams, Instagram feeds, Instagram plugins, Instagram responsive, Instagram mobile feed, Instagram accounts, public Instagram feed, Instagram photography, Instagram galleries, multiple Instagram, Instagram widget, Instagram clean, beautiful Instagram, custom Instagram design
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.5.2
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -14,6 +14,7 @@ Display beautifully clean, customizable, and responsive feeds from multiple Inst
|
|
14 |
Display Instagram photos from any non-private Instagram accounts, either in the same single feed or in multiple different ones.
|
15 |
|
16 |
= Features =
|
|
|
17 |
* Super **simple to set up**
|
18 |
* Display photos from **multiple Instagram accounts** in the same feed or in separate feeds
|
19 |
* Completely **responsive** and mobile ready - layout looks great on any screen size and in any container width
|
@@ -554,8 +555,16 @@ Relationship of the Parties: Notwithstanding any provision hereof, for all purpo
|
|
554 |
Invalidity of Specific Terms: If any provision of the Instagram API Terms is found by a court of competent jurisdiction to be invalid, the parties nevertheless agree that the court should endeavor to give effect to the parties' intentions as reflected in the provision and that the other provisions remain in full force and effect.
|
555 |
No Waiver of Rights by Instagram: Instagram's failure to exercise or enforce any right or provision of the Instagram API Terms shall not constitute a waiver of such right or provision.
|
556 |
|
|
|
|
|
|
|
|
|
|
|
557 |
== Changelog ==
|
558 |
|
|
|
|
|
|
|
559 |
= 1.4.5 =
|
560 |
* New: When you click on the name of a setting on the plugin’s Settings pages it now displays the shortcode option for that setting, making it easier to find the option that you need
|
561 |
* New: Added a setting to disable the Font Awesome icon font if needed. This can be found under the Misc tab at the bottom of the Customize page.
|
3 |
Tags: Instagram, Instagram feed, Instagram photos, Instagram plugin, Instagram stream, Custom Instagram Feed, responsive Instagram, mobile Instagram, Instagram posts, Instagram wall, Instagram account, Instagram gallery, Instagram photo, Instagram post, Instagram share, Instagram customized, Instagrams, Instagram feeds, Instagram plugins, Instagram responsive, Instagram mobile feed, Instagram accounts, public Instagram feed, Instagram photography, Instagram galleries, multiple Instagram, Instagram widget, Instagram clean, beautiful Instagram, custom Instagram design
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.5.2
|
6 |
+
Stable tag: 1.4.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
14 |
Display Instagram photos from any non-private Instagram accounts, either in the same single feed or in multiple different ones.
|
15 |
|
16 |
= Features =
|
17 |
+
* **Compatible with the June 1st Instagram API changes**
|
18 |
* Super **simple to set up**
|
19 |
* Display photos from **multiple Instagram accounts** in the same feed or in separate feeds
|
20 |
* Completely **responsive** and mobile ready - layout looks great on any screen size and in any container width
|
555 |
Invalidity of Specific Terms: If any provision of the Instagram API Terms is found by a court of competent jurisdiction to be invalid, the parties nevertheless agree that the court should endeavor to give effect to the parties' intentions as reflected in the provision and that the other provisions remain in full force and effect.
|
556 |
No Waiver of Rights by Instagram: Instagram's failure to exercise or enforce any right or provision of the Instagram API Terms shall not constitute a waiver of such right or provision.
|
557 |
|
558 |
+
== Upgrade Notice ==
|
559 |
+
|
560 |
+
= 1.4.6 =
|
561 |
+
**Important:** Due to the recent Instagram API changes, in order for the Instagram Feed plugin to continue working after **June 1st** you must update the plugin and obtain a new Access Token on the plugin's Settings page.
|
562 |
+
|
563 |
== Changelog ==
|
564 |
|
565 |
+
= 1.4.6 =
|
566 |
+
* **IMPORTANT: Due to the recent Instagram API changes, in order for the Instagram Feed plugin to continue working after June 1st you must obtain a new Access Token by using the Instagram button on the plugin's Settings page.** This is true even if you recently already obtained a new token. Apologies for any inconvenience.
|
567 |
+
|
568 |
= 1.4.5 =
|
569 |
* New: When you click on the name of a setting on the plugin’s Settings pages it now displays the shortcode option for that setting, making it easier to find the option that you need
|
570 |
* New: Added a setting to disable the Font Awesome icon font if needed. This can be found under the Misc tab at the bottom of the Customize page.
|
instagram-feed-admin.php
CHANGED
@@ -215,7 +215,7 @@ function sb_instagram_settings_page() {
|
|
215 |
|
216 |
<div id="sbi_config">
|
217 |
<!-- <a href="https://instagram.com/oauth/authorize/?client_id=1654d0c81ad04754a898d89315bec227&redirect_uri=https://smashballoon.com/instagram-feed/instagram-token-plugin/?return_uri=<?php echo admin_url('admin.php?page=sb-instagram-feed'); ?>&response_type=token" class="sbi_admin_btn"><?php _e('Log in and get my Access Token and User ID', 'instagram-feed'); ?></a> -->
|
218 |
-
<a href="https://instagram.com/oauth/authorize/?client_id=3a81a9fa2a064751b8c31385b91cc25c&redirect_uri=https://smashballoon.com/instagram-feed/instagram-token-plugin/?return_uri=<?php echo admin_url('admin.php?page=sb-instagram-feed'); ?>&response_type=token" class="sbi_admin_btn"><?php _e('Log in and get my Access Token and User ID', 'instagram-feed'); ?></a>
|
219 |
<a href="https://smashballoon.com/instagram-feed/token/" target="_blank" style="position: relative; top: 14px; left: 15px;"><?php _e('Button not working?', 'instagram-feed'); ?></a>
|
220 |
</div>
|
221 |
|
@@ -239,11 +239,11 @@ function sb_instagram_settings_page() {
|
|
239 |
<label class="sbi_radio_label" for="sb_instagram_type_user">User ID(s):</label>
|
240 |
<input name="sb_instagram_user_id" id="sb_instagram_user_id" type="text" value="<?php esc_attr_e( $sb_instagram_user_id, 'instagram-feed' ); ?>" size="25" />
|
241 |
<a class="sbi_tooltip_link" href="JavaScript:void(0);"><?php _e("What is this?", 'instagram-feed'); ?></a>
|
242 |
-
<p class="sbi_tooltip"><?php _e("These are the IDs of the Instagram accounts you want to display photos from. To get your ID simply click on the button above and log into Instagram.<br /><br />You can also display photos from other peoples Instagram accounts. To find their User ID you can use <a href='
|
243 |
</span>
|
244 |
|
245 |
<div class="sbi_notice sbi_user_id_error">
|
246 |
-
<?php _e("<p>Please be sure to enter your numeric <b>User ID</b> and not your Username. You can find your User ID by clicking the blue Instagram Login button above, or by entering your username into <a href='
|
247 |
</div>
|
248 |
|
249 |
<span class="sbi_pro sbi_row">
|
@@ -975,7 +975,7 @@ function sb_instagram_settings_page() {
|
|
975 |
<h3><?php _e('Setting up and Customizing the plugin', 'instagram-feed'); ?></h3>
|
976 |
<p><i class="fa fa-life-ring" aria-hidden="true"></i> <?php _e('<a href="https://smashballoon.com/instagram-feed/free/" target="_blank">Click here for step-by-step setup directions</a>', 'instagram-feed'); ?></p>
|
977 |
<p style="max-width: 960px;">See below for a short video demonstrating how to set up, customize and use the plugin. <b>Please note</b> that the video shows the set up and use of the <b><a href="https://smashballoon.com/instagram-feed/" target="_blank">PRO version</a></b> of the plugin, but the process is the same for this free version. The only difference is some of the features available.</p>
|
978 |
-
<iframe class="youtube-video" src="//www.youtube.com/embed/
|
979 |
|
980 |
<br />
|
981 |
<br />
|
@@ -1108,4 +1108,43 @@ function sbi_add_settings_link( $links, $file ) {
|
|
1108 |
return $links;
|
1109 |
}
|
1110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1111 |
?>
|
215 |
|
216 |
<div id="sbi_config">
|
217 |
<!-- <a href="https://instagram.com/oauth/authorize/?client_id=1654d0c81ad04754a898d89315bec227&redirect_uri=https://smashballoon.com/instagram-feed/instagram-token-plugin/?return_uri=<?php echo admin_url('admin.php?page=sb-instagram-feed'); ?>&response_type=token" class="sbi_admin_btn"><?php _e('Log in and get my Access Token and User ID', 'instagram-feed'); ?></a> -->
|
218 |
+
<a href="https://instagram.com/oauth/authorize/?client_id=3a81a9fa2a064751b8c31385b91cc25c&scope=basic+public_content&redirect_uri=https://smashballoon.com/instagram-feed/instagram-token-plugin/?return_uri=<?php echo admin_url('admin.php?page=sb-instagram-feed'); ?>&response_type=token" class="sbi_admin_btn"><?php _e('Log in and get my Access Token and User ID', 'instagram-feed'); ?></a>
|
219 |
<a href="https://smashballoon.com/instagram-feed/token/" target="_blank" style="position: relative; top: 14px; left: 15px;"><?php _e('Button not working?', 'instagram-feed'); ?></a>
|
220 |
</div>
|
221 |
|
239 |
<label class="sbi_radio_label" for="sb_instagram_type_user">User ID(s):</label>
|
240 |
<input name="sb_instagram_user_id" id="sb_instagram_user_id" type="text" value="<?php esc_attr_e( $sb_instagram_user_id, 'instagram-feed' ); ?>" size="25" />
|
241 |
<a class="sbi_tooltip_link" href="JavaScript:void(0);"><?php _e("What is this?", 'instagram-feed'); ?></a>
|
242 |
+
<p class="sbi_tooltip"><?php _e("These are the IDs of the Instagram accounts you want to display photos from. To get your ID simply click on the button above and log into Instagram.<br /><br />You can also display photos from other peoples Instagram accounts. To find their User ID you can use <a href='https://smashballoon.com/instagram-feed/find-instagram-user-id/' target='_blank'>this tool</a>. You can separate multiple IDs using commas.", 'instagram-feed'); ?></p><br />
|
243 |
</span>
|
244 |
|
245 |
<div class="sbi_notice sbi_user_id_error">
|
246 |
+
<?php _e("<p>Please be sure to enter your numeric <b>User ID</b> and not your Username. You can find your User ID by clicking the blue Instagram Login button above, or by entering your username into <a href='https://smashballoon.com/instagram-feed/find-instagram-user-id/' target='_blank'>this tool</a>.</p>", 'instagram-feed'); ?>
|
247 |
</div>
|
248 |
|
249 |
<span class="sbi_pro sbi_row">
|
975 |
<h3><?php _e('Setting up and Customizing the plugin', 'instagram-feed'); ?></h3>
|
976 |
<p><i class="fa fa-life-ring" aria-hidden="true"></i> <?php _e('<a href="https://smashballoon.com/instagram-feed/free/" target="_blank">Click here for step-by-step setup directions</a>', 'instagram-feed'); ?></p>
|
977 |
<p style="max-width: 960px;">See below for a short video demonstrating how to set up, customize and use the plugin. <b>Please note</b> that the video shows the set up and use of the <b><a href="https://smashballoon.com/instagram-feed/" target="_blank">PRO version</a></b> of the plugin, but the process is the same for this free version. The only difference is some of the features available.</p>
|
978 |
+
<iframe class="youtube-video" src="//www.youtube.com/embed/V_fJ_vhvQXM?theme=light&showinfo=0&controls=2" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen" style="border: 1px solid #ddd;"></iframe>
|
979 |
|
980 |
<br />
|
981 |
<br />
|
1108 |
return $links;
|
1109 |
}
|
1110 |
|
1111 |
+
/* Display a notice that can be dismissed regarding updating the Instagram Access Token */
|
1112 |
+
add_action('admin_notices', 'sbi_new_token_notice_2016');
|
1113 |
+
function sbi_new_token_notice_2016() {
|
1114 |
+
|
1115 |
+
//Only show to admins
|
1116 |
+
if( current_user_can('manage_options') ){
|
1117 |
+
|
1118 |
+
global $current_user;
|
1119 |
+
$user_id = $current_user->ID;
|
1120 |
+
|
1121 |
+
// Use this to show notice again
|
1122 |
+
// delete_user_meta($user_id, 'sb_instagram_ignore_notice_2016');
|
1123 |
+
|
1124 |
+
/* Check that the user hasn't already clicked to ignore the message */
|
1125 |
+
if ( ! get_user_meta($user_id, 'sb_instagram_ignore_notice_2016') ) {
|
1126 |
+
|
1127 |
+
_e("
|
1128 |
+
<div class='sb_instagram_notice'>
|
1129 |
+
<p class='sb_instagram_notice_title'><i class='fa fa-exclamation-circle' aria-hidden='true'></i> <b>Important</b></p>
|
1130 |
+
<p><b>Just installed the plugin?</b> You can ignore this notice and hide it using the 'Dismiss' button in the top right corner.</p>
|
1131 |
+
<p><b>Just updated the plugin?</b> Due to the recent Instagram API changes, in order for the Instagram Feed plugin to continue working after <b><u>June 1st</u></b> you must obtain and save a new Access Token by using the Instagram button on the plugin's <a href='".get_admin_url()."admin.php?page=sb-instagram-feed'>Settings page</a>. This is required even if you recently already obtained a new token. Apologies for any inconvenience.</p>
|
1132 |
+
<a class='sb_instagram_dismiss' href='" .esc_url( add_query_arg( 'sb_instagram_token_nag_ignore_2016', '0' ) ). "'><i class='fa fa-times-circle' aria-hidden='true'></i> Dismiss</a>
|
1133 |
+
</div>
|
1134 |
+
");
|
1135 |
+
|
1136 |
+
}
|
1137 |
+
|
1138 |
+
}
|
1139 |
+
|
1140 |
+
}
|
1141 |
+
add_action('admin_init', 'sb_instagram_token_nag_ignore_2016');
|
1142 |
+
function sb_instagram_token_nag_ignore_2016() {
|
1143 |
+
global $current_user;
|
1144 |
+
$user_id = $current_user->ID;
|
1145 |
+
if ( isset($_GET['sb_instagram_token_nag_ignore_2016']) && '0' == $_GET['sb_instagram_token_nag_ignore_2016'] ) {
|
1146 |
+
add_user_meta($user_id, 'sb_instagram_ignore_notice_2016', 'true', true);
|
1147 |
+
}
|
1148 |
+
}
|
1149 |
+
|
1150 |
?>
|
instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Instagram Feed
|
4 |
Plugin URI: http://smashballoon.com/instagram-feed
|
5 |
Description: Display beautifully clean, customizable, and responsive Instagram feeds
|
6 |
-
Version: 1.4.
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
@@ -23,7 +23,7 @@ along with this program; if not, write to the Free Software
|
|
23 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
*/
|
25 |
|
26 |
-
define( 'SBIVER', '1.4.
|
27 |
|
28 |
//Include admin
|
29 |
include dirname( __FILE__ ) .'/instagram-feed-admin.php';
|
3 |
Plugin Name: Instagram Feed
|
4 |
Plugin URI: http://smashballoon.com/instagram-feed
|
5 |
Description: Display beautifully clean, customizable, and responsive Instagram feeds
|
6 |
+
Version: 1.4.6
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
23 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
*/
|
25 |
|
26 |
+
define( 'SBIVER', '1.4.6' );
|
27 |
|
28 |
//Include admin
|
29 |
include dirname( __FILE__ ) .'/instagram-feed-admin.php';
|
js/sb-instagram-admin.js
CHANGED
@@ -6,7 +6,7 @@ jQuery(document).ready(function($) {
|
|
6 |
id = token.split('.')[0];
|
7 |
//If there's a hash then autofill the token and id
|
8 |
if(hash){
|
9 |
-
$('#sbi_config').append('<div id="sbi_config_info"><p><b>Access Token: </b><input type="text" size=58 readonly value="'+token+'" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p><p><b>User ID: </b><input type="text" size=12 readonly value="'+id+'" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p><p><i class="fa fa-clipboard" aria-hidden="true"></i> <b>Copy and paste</b> these into the fields below
|
10 |
}
|
11 |
|
12 |
//Tooltips
|
6 |
id = token.split('.')[0];
|
7 |
//If there's a hash then autofill the token and id
|
8 |
if(hash){
|
9 |
+
$('#sbi_config').append('<div id="sbi_config_info"><p><b>Access Token: </b><input type="text" size=58 readonly value="'+token+'" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p><p><b>User ID: </b><input type="text" size=12 readonly value="'+id+'" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p><p><i class="fa fa-clipboard" aria-hidden="true"></i> <b><span style="color: red;">Important:</span> Copy and paste</b> these into the fields below and click <b>"Save Changes"</b>.</p></div>');
|
10 |
}
|
11 |
|
12 |
//Tooltips
|