BlossomThemes Social Feed - Version 1.0.9

Version Description

Download this release

Release Info

Developer blossomthemes
Plugin Icon 128x128 BlossomThemes Social Feed
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8 to 1.0.9

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://blossomthemes.com
4
  Tags: comments, spam
5
  Requires at least: 4.3
6
  Tested up to: 4.9
7
- Stable tag: 1.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -70,4 +70,7 @@ If you do not enter the Instagram username in the widget, the username assigned
70
 
71
  = 1.0.8 =
72
  * Resource Minification
73
- * Image size load smaller
 
 
 
4
  Tags: comments, spam
5
  Requires at least: 4.3
6
  Tested up to: 4.9
7
+ Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
70
 
71
  = 1.0.8 =
72
  * Resource Minification
73
+ * Image size load smaller
74
+
75
+ = 1.0.9 =
76
+ * Image size for shortcode
blossomthemes-instagram-feed.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: BlossomThemes Instagram Feed
16
  * Plugin URI: https://wordpress.org/plugins/blossomthemes-instagram-feed
17
  * Description: Show instagram feed on your website using shortcode and widget.
18
- * Version: 1.0.8
19
  * Author: blossomthemes
20
  * Author URI: https://blossomthemes.com
21
  * License: GPL-2.0+
15
  * Plugin Name: BlossomThemes Instagram Feed
16
  * Plugin URI: https://wordpress.org/plugins/blossomthemes-instagram-feed
17
  * Description: Show instagram feed on your website using shortcode and widget.
18
+ * Version: 1.0.9
19
  * Author: blossomthemes
20
  * Author URI: https://blossomthemes.com
21
  * License: GPL-2.0+
includes/class-blossomthemes-instagram-feed-settings.php CHANGED
@@ -31,6 +31,7 @@ class BlossomThemes_Instagram_Feed_Settings
31
  <form method="post" action="options.php" class="btif-settings-form">
32
  <?php
33
  $options = get_option( 'blossomthemes_instagram_feed_settings', true );
 
34
  ?>
35
  <div class="blossomthemes-instagram-feed-settings general" id="blossomthemes-instagram-feed-settings-general">
36
  <div class="btif-option-field-wrap">
@@ -41,6 +42,14 @@ class BlossomThemes_Instagram_Feed_Settings
41
  <label for="blossomthemes_instagram_feed_settings[photos]"><?php _e('Number of Photos', 'blossomthemes-instagram-feed'); ?></label>
42
  <input min="1" max="20" id="blossomthemes_instagram_feed_settings[photos]" name="blossomthemes_instagram_feed_settings[photos]" type="number" value="<?php echo isset( $options['photos'] ) ? esc_attr( $options['photos'] ):'10'; ?>">
43
  </div>
 
 
 
 
 
 
 
 
44
  <div class="btif-option-field-wrap">
45
  <label for="blossomthemes_instagram_feed_settings[follow_me]"><?php _e('Profile Link Text', 'blossomthemes-instagram-feed'); ?></label>
46
  <input id="blossomthemes_instagram_feed_settings[follow_me]" name="blossomthemes_instagram_feed_settings[follow_me]" type="text" value="<?php echo isset( $options['follow_me'] ) ? esc_attr( $options['follow_me'] ):'Follow Me!'; ?>">
31
  <form method="post" action="options.php" class="btif-settings-form">
32
  <?php
33
  $options = get_option( 'blossomthemes_instagram_feed_settings', true );
34
+ $size = isset( $options['photo_size'] ) ? esc_attr( $options['photo_size'] ):'img_thumb';
35
  ?>
36
  <div class="blossomthemes-instagram-feed-settings general" id="blossomthemes-instagram-feed-settings-general">
37
  <div class="btif-option-field-wrap">
42
  <label for="blossomthemes_instagram_feed_settings[photos]"><?php _e('Number of Photos', 'blossomthemes-instagram-feed'); ?></label>
43
  <input min="1" max="20" id="blossomthemes_instagram_feed_settings[photos]" name="blossomthemes_instagram_feed_settings[photos]" type="number" value="<?php echo isset( $options['photos'] ) ? esc_attr( $options['photos'] ):'10'; ?>">
44
  </div>
45
+ <div class="btif-option-field-wrap">
46
+ <label for="blossomthemes_instagram_feed_settings[photo_size]"><?php esc_html_e( 'Photo size', 'blossomthemes-instagram-feed' ); ?></label>
47
+ <select id="blossomthemes_instagram_feed_settings[photo_size]" name="blossomthemes_instagram_feed_settings[photo_size]">
48
+ <option value="img_thumb" <?php selected( 'img_thumb', $size ) ?>><?php esc_html_e( 'Thumbnail', 'blossomthemes-instagram-feed' ); ?></option>
49
+ <option value="img_low" <?php selected( 'img_low', $size ) ?>><?php esc_html_e( 'Small', 'blossomthemes-instagram-feed' ); ?></option>
50
+ <option value="img_standard" <?php selected( 'img_standard', $size ) ?>><?php esc_html_e( 'Large', 'blossomthemes-instagram-feed' ); ?></option>
51
+ </select>
52
+ </div>
53
  <div class="btif-option-field-wrap">
54
  <label for="blossomthemes_instagram_feed_settings[follow_me]"><?php _e('Profile Link Text', 'blossomthemes-instagram-feed'); ?></label>
55
  <input id="blossomthemes_instagram_feed_settings[follow_me]" name="blossomthemes_instagram_feed_settings[follow_me]" type="text" value="<?php echo isset( $options['follow_me'] ) ? esc_attr( $options['follow_me'] ):'Follow Me!'; ?>">
includes/class-blossomthemes-instagram-feed-shortcodes.php CHANGED
@@ -24,6 +24,7 @@ class BlossomThemes_Instagram_Feed_Shortcodes
24
 
25
  $obj = new InstagramSpider;
26
  $photos = absint($options['photos']);
 
27
  $photos_row = isset( $options['photos_row'] ) ? esc_attr( $options['photos_row'] ) :'5';
28
  $instaUrl = 'https://www.instagram.com/';
29
  $instaUrl .= $options['username'];
@@ -37,7 +38,7 @@ class BlossomThemes_Instagram_Feed_Shortcodes
37
  foreach ($instaItems as $key) {
38
  if( $i<$photos )
39
  {
40
- echo '<li><a href="'.esc_url($key['img_standard']).'"><img src="'.esc_url($key['img_thumb']).'"></a>';
41
  if( isset( $options['meta'] ) )
42
  {
43
  echo '<div class="instagram-meta"><span class="like"><i class="fa fa-heart"></i>'.$key['likes'].'</span>'.'<span class="comment"><i class="fa fa-comment"></i>'.$key['comments'].'</span>'.'</div>';
24
 
25
  $obj = new InstagramSpider;
26
  $photos = absint($options['photos']);
27
+ $photo_size = isset( $options['photo_size'] ) ? esc_attr( $options['photo_size'] ) :'img_thumb';
28
  $photos_row = isset( $options['photos_row'] ) ? esc_attr( $options['photos_row'] ) :'5';
29
  $instaUrl = 'https://www.instagram.com/';
30
  $instaUrl .= $options['username'];
38
  foreach ($instaItems as $key) {
39
  if( $i<$photos )
40
  {
41
+ echo '<li><a href="'.esc_url($key['img_standard']).'"><img src="'.esc_url($key[$photo_size]).'"></a>';
42
  if( isset( $options['meta'] ) )
43
  {
44
  echo '<div class="instagram-meta"><span class="like"><i class="fa fa-heart"></i>'.$key['likes'].'</span>'.'<span class="comment"><i class="fa fa-comment"></i>'.$key['comments'].'</span>'.'</div>';