Instagram Feed - Version 1.1.6

Version Description

  • Fix: A maximum width is now only applied to the feed when the photos are displayed in one column
  • Added a banner to the settings page promoting our free Custom Facebook Feed plugin
Download this release

Release Info

Developer smashballoon
Plugin Icon 128x128 Instagram Feed
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

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
4
Requires at least: 3.0
5
Tested up to: 4.0
6
- Stable tag: 1.1.5
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -32,7 +32,8 @@ Display the Instagram photo feed of any non-private Instagram account.
32
= Feedback or Support =
33
We're dedicated to providing the most customizable, robust and well supported Instagram feed plugin in the world, so if you have an issue or have any feedback on how to improve the plugin then please open a ticket in the [Support forum](http://wordpress.org/support/plugin/instagram-feed 'Instagram Feed Support Forum').
34
35
- Lots more features coming soon!
36
37
== Installation ==
38
@@ -83,6 +84,10 @@ There are 2 common reasons for this:
83
84
If you're still having an issue displaying your feed then please open a ticket in the [Support forum](http://wordpress.org/support/plugin/instagram-feed 'Instagram Feed Support Forum') with a link to the page where you're trying to display the feed and, if possible, a link to your Instagram account.
85
86
= How do I embed my Instagram Feed directly into a WordPress page template? =
87
88
You can embed your Instagram feed directly into a template file by using the WordPress [do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode) function: `<?php echo do_shortcode('[instagram-feed]'); ?>`.
@@ -115,6 +120,10 @@ The below options are available on the Instagram Feed Settings page but can also
115
116
== Changelog ==
117
118
= 1.1.5 =
119
* Fix: Added a line of code which enables shortcodes to be used in widgets for themes which don't have it enabled
120
3
Tags: Instagram, Instagram feed, Instagram photos, Instagram plugin, Instagram stream, Custom Instagram Feed, responsive Instagram, mobile Instagram, Instagram posts, Instagram wall, Instagram account
4
Requires at least: 3.0
5
Tested up to: 4.0
6
+ Stable tag: 1.1.6
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
32
= Feedback or Support =
33
We're dedicated to providing the most customizable, robust and well supported Instagram feed plugin in the world, so if you have an issue or have any feedback on how to improve the plugin then please open a ticket in the [Support forum](http://wordpress.org/support/plugin/instagram-feed 'Instagram Feed Support Forum').
34
35
+ = Pro Version Available =
36
+ For a pop-up photo **lightbox**, to display posts by **hashtag**, to show photo **captions**, show photos in **random order** + more, check out the [Pro version](https://smashballoon.com/instagram-feed/demo/ 'Instagram Feed Pro').
37
38
== Installation ==
39
84
85
If you're still having an issue displaying your feed then please open a ticket in the [Support forum](http://wordpress.org/support/plugin/instagram-feed 'Instagram Feed Support Forum') with a link to the page where you're trying to display the feed and, if possible, a link to your Instagram account.
86
87
+ = Can I view the full-size photos directly on my website? =
88
+
89
+ This is a feature of the [Pro version](https://smashballoon.com/instagram-feed/demo/ 'Instagram Feed Pro') of the plugin, which allows you to view the photos in a pop-up lightbox, display captions, display photos by hashtag + more!
90
+
91
= How do I embed my Instagram Feed directly into a WordPress page template? =
92
93
You can embed your Instagram feed directly into a template file by using the WordPress [do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode) function: `<?php echo do_shortcode('[instagram-feed]'); ?>`.
120
121
== Changelog ==
122
123
+ = 1.1.6 =
124
+ * Fix: A maximum width is now only applied to the feed when the photos are displayed in one column
125
+ * Added a banner to the settings page promoting our free [Custom Facebook Feed](http://wordpress.org/plugins/custom-facebook-feed/) plugin
126
+
127
= 1.1.5 =
128
* Fix: Added a line of code which enables shortcodes to be used in widgets for themes which don't have it enabled
129
css/sb-instagram.css CHANGED
@@ -6,7 +6,6 @@
6
#sb_instagram {
7
float: left;
8
width: 100%;
9
- max-width: 612px;
10
margin: 0 auto;
11
padding: 0;
12
-webkit-box-sizing: border-box;
6
#sb_instagram {
7
float: left;
8
width: 100%;
9
margin: 0 auto;
10
padding: 0;
11
-webkit-box-sizing: border-box;
img/cff-promo.png ADDED
Binary file
instagram-feed-admin.php CHANGED
@@ -200,7 +200,7 @@ function sb_instagram_settings_page() {
200
<td>
201
202
<select name="sb_instagram_image_res">
203
- <option value="full" <?php if($sb_instagram_image_res == "full") echo 'selected="selected"' ?> ><?php _e('Full size (612x612)'); ?></option>
204
<option value="medium" <?php if($sb_instagram_image_res == "medium") echo 'selected="selected"' ?> ><?php _e('Medium (306x306)'); ?></option>
205
<option value="thumb" <?php if($sb_instagram_image_res == "thumb") echo 'selected="selected"' ?> ><?php _e('Thumbnail (150x150)'); ?></option>
206
</select>
@@ -352,6 +352,10 @@ function sb_instagram_settings_page() {
352
</tr>
353
</tbody>
354
</table>
355
</div> <!-- end #admin -->
356
357
<?php
200
<td>
201
202
<select name="sb_instagram_image_res">
203
+ <option value="full" <?php if($sb_instagram_image_res == "full") echo 'selected="selected"' ?> ><?php _e('Full size (640x640)'); ?></option>
204
<option value="medium" <?php if($sb_instagram_image_res == "medium") echo 'selected="selected"' ?> ><?php _e('Medium (306x306)'); ?></option>
205
<option value="thumb" <?php if($sb_instagram_image_res == "thumb") echo 'selected="selected"' ?> ><?php _e('Thumbnail (150x150)'); ?></option>
206
</select>
352
</tr>
353
</tbody>
354
</table>
355
+
356
+ <a href="http://wordpress.org/plugins/custom-facebook-feed/" target="_blank" style="display: block; margin: 20px 0 0 0;">
357
+ <img src="<?php echo plugins_url( 'img/cff-promo.png' , __FILE__ ) ?>" alt="The Custom Facebook Feed plugin">
358
+ </a>
359
</div> <!-- end #admin -->
360
361
<?php
instagram-feed.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Instagram Feed
4
Plugin URI: http://smashballoon.com/instagram-feed
5
Description: Add a simple customizable Instagram feed to your website
6
- Version: 1.1.5
7
Author: Smash Balloon
8
Author URI: http://smashballoon.com/
9
License: GPLv2 or later
@@ -68,7 +68,11 @@ function display_instagram($atts, $content = null) {
68
$sb_instagram_image_padding_unit = $atts['imagepaddingunit'];
69
$sb_instagram_background = $atts['background'];
70
71
$sb_instagram_styles = 'style="';
72
if ( !empty($sb_instagram_width) ) $sb_instagram_styles .= 'width:' . $sb_instagram_width . $sb_instagram_width_unit .'; ';
73
if ( !empty($sb_instagram_height) && $sb_instagram_height != '0' ) $sb_instagram_styles .= 'height:' . $sb_instagram_height . $sb_instagram_height_unit .'; ';
74
if ( !empty($sb_instagram_background) ) $sb_instagram_styles .= 'background-color: ' . $sb_instagram_background . '; ';
@@ -86,9 +90,6 @@ function display_instagram($atts, $content = null) {
86
if ( !empty($sb_instagram_btn_text_color) ) $sb_instagram_button_styles .= 'color: '.$sb_instagram_btn_text_color.';';
87
$sb_instagram_button_styles .= '"';
88
89
- //Layout options
90
- $sb_instagram_cols = $atts['cols'];
91
-
92
93
/******************* CONTENT ********************/
94
3
Plugin Name: Instagram Feed
4
Plugin URI: http://smashballoon.com/instagram-feed
5
Description: Add a simple customizable Instagram feed to your website
6
+ Version: 1.1.6
7
Author: Smash Balloon
8
Author URI: http://smashballoon.com/
9
License: GPLv2 or later
68
$sb_instagram_image_padding_unit = $atts['imagepaddingunit'];
69
$sb_instagram_background = $atts['background'];
70
71
+ //Layout options
72
+ $sb_instagram_cols = $atts['cols'];
73
+
74
$sb_instagram_styles = 'style="';
75
+ if($sb_instagram_cols == 1) $sb_instagram_styles .= 'max-width: 640px; ';
76
if ( !empty($sb_instagram_width) ) $sb_instagram_styles .= 'width:' . $sb_instagram_width . $sb_instagram_width_unit .'; ';
77
if ( !empty($sb_instagram_height) && $sb_instagram_height != '0' ) $sb_instagram_styles .= 'height:' . $sb_instagram_height . $sb_instagram_height_unit .'; ';
78
if ( !empty($sb_instagram_background) ) $sb_instagram_styles .= 'background-color: ' . $sb_instagram_background . '; ';
90
if ( !empty($sb_instagram_btn_text_color) ) $sb_instagram_button_styles .= 'color: '.$sb_instagram_btn_text_color.';';
91
$sb_instagram_button_styles .= '"';
92
93
94
/******************* CONTENT ********************/
95