AccessPress Instagram Feed - Version 2.1.4

Version Description

  • Done small bug fixing for the grid rotator layout.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 AccessPress Instagram Feed
Version 2.1.4
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.4

accesspress-instagram-feed.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: AccessPress Instagram Feed
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
6
  Description: A plugin to add various instagram widgets with dynamic configuration options.
7
- Version: 2.1.3
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:accesspress-instagram-feed
@@ -14,7 +14,7 @@ License: GPLv2 or later
14
 
15
  //Decleration of the necessary constants for plugin
16
  if( !defined( 'APIF_VERSION' ) ) {
17
- define( 'APIF_VERSION', '2.1.3' );
18
  }
19
 
20
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
4
  Plugin name: AccessPress Instagram Feed
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
6
  Description: A plugin to add various instagram widgets with dynamic configuration options.
7
+ Version: 2.1.4
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:accesspress-instagram-feed
14
 
15
  //Decleration of the necessary constants for plugin
16
  if( !defined( 'APIF_VERSION' ) ) {
17
+ define( 'APIF_VERSION', '2.1.4' );
18
  }
19
 
20
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
inc/frontend/instagram-feed.php CHANGED
@@ -155,7 +155,6 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
155
  <?php } ?>
156
 
157
  <?php }else if($layout == 'grid_rotator'){ ?>
158
- var_dump($ins_media);
159
  <?php
160
  if(isset($ins_media['meta']['error_message'])){
161
  ?>
155
  <?php } ?>
156
 
157
  <?php }else if($layout == 'grid_rotator'){ ?>
 
158
  <?php
159
  if(isset($ins_media['meta']['error_message'])){
160
  ?>
inc/frontend/instagram-grid-rotator.php CHANGED
@@ -70,17 +70,17 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
70
  <div class="ri-grid ri-grid-<?php echo $rand_no; ?> apif-ri-grid">
71
  <img class="ri-loading-image" src="<?php echo APIF_IMAGE_DIR. '/ripple.gif'; ?>"/>
72
  <ul>
73
- <?php
74
  foreach ($ins_media['data'] as $vm):
75
- $img = $vm['images']['standard_resolution']['url'];
76
- $image_url = APIF_IMAGE_DIR . '/image-square.png';
77
- $image = $vm['images']['standard_resolution']['url'];
78
-
79
- $link = $vm["link"];
80
- $flow_icon = APIF_IMAGE_DIR . '/sc-icon.png';
81
- ?>
82
- <li><a href="<?php echo $link ?>" target="_blank"><img src="<?php echo esc_url($image); ?>" alt='<?php echo strip_tags(substr($vm['caption']['text'], 0, 20)); ?>'></a></li>
83
- <?php
84
  endforeach; ?>
85
  </ul>
86
  </div>
70
  <div class="ri-grid ri-grid-<?php echo $rand_no; ?> apif-ri-grid">
71
  <img class="ri-loading-image" src="<?php echo APIF_IMAGE_DIR. '/ripple.gif'; ?>"/>
72
  <ul>
73
+ <?php
74
  foreach ($ins_media['data'] as $vm):
75
+ $img = $vm['images']['standard_resolution']['url'];
76
+ $image_url = APIF_IMAGE_DIR . '/image-square.png';
77
+ $image = $vm['images']['standard_resolution']['url'];
78
+
79
+ $link = $vm["link"];
80
+ $flow_icon = APIF_IMAGE_DIR . '/sc-icon.png';
81
+ ?>
82
+ <li><a href="<?php echo $link ?>" target="_blank"><img src="<?php echo esc_url($image); ?>" alt='<?php echo strip_tags(substr($vm['caption']['text'], 0, 20)); ?>'></a></li>
83
+ <?php
84
  endforeach; ?>
85
  </ul>
86
  </div>
inc/frontend/instagram.php CHANGED
@@ -34,6 +34,10 @@ class InstaWCD{
34
  }
35
  }
36
 
 
 
 
 
37
  function userMedia(){
38
  $url = 'https://api.instagram.com/v1/users/'.$this->userID().'/media/recent/?access_token='.$this->access_token;
39
  $json = self:: get_remote_data_from_instagram_in_json( $url );
34
  }
35
  }
36
 
37
+ /**
38
+ * get the user media
39
+ * @return json
40
+ */
41
  function userMedia(){
42
  $url = 'https://api.instagram.com/v1/users/'.$this->userID().'/media/recent/?access_token='.$this->access_token;
43
  $json = self:: get_remote_data_from_instagram_in_json( $url );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: instagram, instagram feed, instagram tag, instagram slider, instagarm mosa
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.5
7
- Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,9 @@ Once you install the plugin , you can check some general documentation about how
132
  5. Backend Display Settings Section
133
 
134
  == Changelog ==
 
 
 
135
  = 2.1.3 =
136
  * Done the bug fixings for the error display mechanism.
137
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.5
7
+ Stable tag: 2.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
  5. Backend Display Settings Section
133
 
134
  == Changelog ==
135
+ = 2.1.4 =
136
+ * Done small bug fixing for the grid rotator layout.
137
+
138
  = 2.1.3 =
139
  * Done the bug fixings for the error display mechanism.
140