AccessPress Instagram Feed - Version 4.0.1

Version Description

  • Code refinement to solve design issue
  • WordPress latest version compatibility checked
Download this release

Release Info

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

Code changes from version 4.0.0 to 4.0.1

accesspress-instagram-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin name: AccessPress iFeeds
4
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
5
  Description: Display feeds of your instagram using shortcode and widgets.
6
- Version: 4.0.0
7
  Author: AccessPress Themes
8
  Author URI: http://accesspressthemes.com
9
  Text Domain: accesspress-instagram-feed
@@ -13,7 +13,7 @@ License: GPLv2 or later
13
 
14
  //Decleration of the necessary constants for plugin
15
  if( !defined( 'APIF_VERSION' ) ) {
16
- define( 'APIF_VERSION', '4.0.0' );
17
  }
18
 
19
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
3
  Plugin name: AccessPress iFeeds
4
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
5
  Description: Display feeds of your instagram using shortcode and widgets.
6
+ Version: 4.0.1
7
  Author: AccessPress Themes
8
  Author URI: http://accesspressthemes.com
9
  Text Domain: accesspress-instagram-feed
13
 
14
  //Decleration of the necessary constants for plugin
15
  if( !defined( 'APIF_VERSION' ) ) {
16
+ define( 'APIF_VERSION', '4.0.1' );
17
  }
18
 
19
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
css/frontend.css CHANGED
@@ -350,3 +350,6 @@ span.instagram_like_count {
350
  }*/
351
  /* reset css */
352
  .widget_apif_sidewidget ul{ padding: 0; margin: 0;}
 
 
 
350
  }*/
351
  /* reset css */
352
  .widget_apif_sidewidget ul{ padding: 0; margin: 0;}
353
+ ul.instagram-widget.clear{
354
+ overflow:hidden;
355
+ }
inc/backend/boards/about.php CHANGED
@@ -1,17 +1,17 @@
1
  <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
  <div class="apsc-boards-tabs" id="apsc-board-about-settings" style="display: none;">
3
  <div class="apsc-tab-wrapper">
4
- <strong> ★ Important Note: This plugin is replacement of AccessPress Instagram Feeds. Only Plugin Name has been changed.</strong>
5
- <p><strong>AccessPress iFeeds </strong> - is a FREE WordPress Plugin by AccessPress Themes. </p>
6
 
7
- <p>AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. </p>
8
 
9
- <p><strong>AccessPress iFeeds</strong> is a <strong>Free WordPress plugin</strong> to display your instagram post image in mosaic view.
10
  A perfect plugin to show your instagram feed and encourage more to join your network.
11
 
12
- You can enter details of your instagram and select one of the designs from beautifully designed 3 design layouts.
13
 
14
- All you have to do is either use a widget or shortcode to display your instagram feed right on your website in your chosen location.
15
  </p>
16
  <p><strong><?php _e('Please visit our product page for more details here:', 'accesspress-instagram-feed'); ?></strong>
17
  <br />
@@ -38,8 +38,8 @@
38
 
39
  <div class="seperator"></div><div class="dottedline"></div><div class="seperator"></div>
40
 
41
- <h3>Get in touch</h3>
42
- <p>If you've any question/feedback, please get in touch: <br />
43
  <strong>General enquiries:</strong> <a href="mailto:info@accesspressthemes.com">info@accesspressthemes.com</a><br />
44
  <strong>Support:</strong> <a href="mailto:support@accesspressthemes.com">support@accesspressthemes.com</a><br />
45
  <strong>Sales:</strong> <a href="mailto:sales@accesspressthemes.com">sales@accesspressthemes.com</a>
1
  <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" ); ?>
2
  <div class="apsc-boards-tabs" id="apsc-board-about-settings" style="display: none;">
3
  <div class="apsc-tab-wrapper">
4
+ <?php _e('<strong> ★ Important Note: This plugin is replacement of AccessPress Instagram Feeds. Only Plugin Name has been changed.</strong>', 'accesspress-instagram-feed'); ?>
5
+ <p><?php _e('<strong>AccessPress iFeeds </strong> - is a FREE WordPress Plugin by AccessPress Themes. ', 'accesspress-instagram-feed'); ?></p>
6
 
7
+ <p><?php _e('AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. ', 'accesspress-instagram-feed'); ?></p>
8
 
9
+ <p><?php _e('<strong>AccessPress iFeeds</strong> is a <strong>Free WordPress plugin</strong> to display your instagram post image in mosaic view.
10
  A perfect plugin to show your instagram feed and encourage more to join your network.
11
 
12
+ You can enter details of your instagram and select one of the designs from beautifully designed 4 design layouts.
13
 
14
+ All you have to do is either use a widget or shortcode to display your instagram feed right on your website in your chosen location.', 'accesspress-instagram-feed'); ?>
15
  </p>
16
  <p><strong><?php _e('Please visit our product page for more details here:', 'accesspress-instagram-feed'); ?></strong>
17
  <br />
38
 
39
  <div class="seperator"></div><div class="dottedline"></div><div class="seperator"></div>
40
 
41
+ <h3><?php _e('Get in touch', 'accesspress-instagram-feed'); ?></h3>
42
+ <p><?php _e("If you've any question/feedback, please get in touch: ", 'accesspress-instagram-feed'); ?><br />
43
  <strong>General enquiries:</strong> <a href="mailto:info@accesspressthemes.com">info@accesspressthemes.com</a><br />
44
  <strong>Support:</strong> <a href="mailto:support@accesspressthemes.com">support@accesspressthemes.com</a><br />
45
  <strong>Sales:</strong> <a href="mailto:sales@accesspressthemes.com">sales@accesspressthemes.com</a>
inc/backend/boards/instagram-profiles.php CHANGED
@@ -17,41 +17,56 @@ if(isset($apif_settings['app_secret']) && $apif_settings['app_secret'] !=''){
17
  else{
18
  $app_secret='5eab5bf8ad269da35069be8e0f2db96e';
19
  }
20
- if (isset($_GET['access_token'])) {
21
- $access_token = $_GET['access_token'];
22
- $url = 'https://api.instagram.com/v1/users/self/?access_token=' . $_GET['access_token'];
23
- $content = wp_remote_get($url);
24
- if (!isset($content->errors)) {
25
- $response = wp_remote_retrieve_body($content);
26
- $json = json_decode($response, true);
27
- if (!empty($json['data'])) {
28
- $username = $json['data']['username'];
29
- $user_id = $json['data']['id'];
30
- }
31
- }
32
- } else {
33
- if (isset($apif_settings['username']) && $apif_settings['username'] != '') {
 
 
 
 
 
 
 
 
 
 
34
  $username = $apif_settings['username'];
35
  }
 
 
 
36
  if (isset($apif_settings['user_id']) && $apif_settings['user_id'] != '') {
37
  $user_id = $apif_settings['user_id'];
38
  }
 
 
 
39
  if (isset($apif_settings['access_token']) && $apif_settings['access_token'] != '') {
40
  $access_token = $apif_settings['access_token'];
41
  }
42
- }
 
 
43
  ?>
44
  <!--Instagram-->
45
  <div class="apsc-option-outer-wrapper">
46
  <h4><?php _e('Plugin Settings', 'accesspress-instagram-feed') ?></h4>
47
  <div class="updated settings-error notice is-dismissible">
48
  <p><b><?php _e("Note: After the latest changes in instagram api,you either need to create instagram or facebook app.In this plugin, we have used instagram basic display api for which you need have instagram app.On using basic display api, you can fetch normal feeds and get your profile's username and media count.Basic display api has provided only few of these criteria to fetch.But if you want to get more data such as get instagram likes count,comments count,your profile picture and hashtag based search,please upgrade to pro version of this plugin where we have used instagram graph api.", 'accesspress-instagram-feed'); ?></b></p></br>
49
- <hr><p><b><?php _e("In order to get instagram app id and app secret, you need to first go to developers.facebook.com then create new app.In settings page add your site url.Setup instagram basic display api from products list.You will see option to create app there inside basic display api page.Create app then go to basic display of instagram basic display scroll, down a little you should see button that says add/remove instagram tester inside user token generator, click on it then you will be redirected to user roles page, go to the bottom of page.There will see button that says add instagram tester click on it.A popup will come that will ask you to enter your instagram username, find your account and click on submit.Then,open your instagram profile in another tab.Go to your profile click on settings icon.Go to apps and websites.Go to tester invites tab and you will see request from the app you created.Accept the request and again go to basic display page.Put redirect url as 'https://demo.accesspressthemes.com/wordpress-plugins/insta-feed/basic-api/index.php' , then paste it into Valid oauth redirect url. Enter url of homepage of your website in Deauthorize callback url and enter url of privacy policy of your website that states how you will use instagram profile data of user in Data deletion request url fields and save it.Finally copy your instagram app id and app secret and then paste them in their respective field in plugin's backend.First of all, save the settings and then click on get access token button.You should now be redirected to instagram auhtorize page where it says your app will access your profile info and media.Click on authorize button and now you should be redirected to plugins backend with your username,user id and access token field filled already.Now,save settings.", 'accesspress-instagram-feed'); ?>
50
  </b></p>
51
  </div>
52
- <div class="apsc-option-note">
53
- <p>
54
- </div>
55
  <br/>
56
  <div class="apsc-option-extra">
57
  <div class='apsc-option-inner-wrapper'>
@@ -84,10 +99,11 @@ echo esc_attr($username);}?>"/>
84
  </div>
85
  </div>
86
  <div class="apsc-option-inner-wrapper">
87
- <label for='instagram_user_id'><?php _e('Your instagram user ID(Optional)', 'accesspress-instagram-feed'); ?></label>
88
  <div class="apsc-option-field">
89
  <input type="text" name="instagram[user_id]" id='instagram_user_id' value="<?php if(isset($_GET["userid"])){
90
- echo $_GET["userid"];}else{
 
91
  echo esc_attr($user_id);}?>"/><?php //var_dump($user_id);?>
92
  <div class="apsc-option-note"><?php _e('Note: If not loaded automatically after clicking <strong>Get Access Token</strong> button provided above, please check if you have followed every step mentioned above properly.', 'accesspress-instagram-feed'); ?></div>
93
  </div>
17
  else{
18
  $app_secret='5eab5bf8ad269da35069be8e0f2db96e';
19
  }
20
+ // if (isset($_GET['access_token'])) {
21
+ // $access_token = $_GET['access_token'];
22
+ // $url = 'https://api.instagram.com/v1/users/self/?access_token=' . $_GET['access_token'];
23
+ // $content = wp_remote_get($url);
24
+ // if (!isset($content->errors)) {
25
+ // $response = wp_remote_retrieve_body($content);
26
+ // $json = json_decode($response, true);
27
+ // if (!empty($json['data'])) {
28
+ // $username = $json['data']['username'];
29
+ // $user_id = $json['data']['id'];
30
+ // }
31
+ // }
32
+ // } else {
33
+ // if (isset($apif_settings['username']) && $apif_settings['username'] != '') {
34
+ // $username = $apif_settings['username'];
35
+ // }
36
+ // if (isset($apif_settings['user_id']) && $apif_settings['user_id'] != '') {
37
+ // $user_id = $apif_settings['user_id'];
38
+ // }
39
+ // if (isset($apif_settings['access_token']) && $apif_settings['access_token'] != '') {
40
+ // $access_token = $apif_settings['access_token'];
41
+ // }
42
+ // }
43
+ if (isset($apif_settings['username']) && $apif_settings['username'] != '') {
44
  $username = $apif_settings['username'];
45
  }
46
+ else{
47
+ $username='';
48
+ }
49
  if (isset($apif_settings['user_id']) && $apif_settings['user_id'] != '') {
50
  $user_id = $apif_settings['user_id'];
51
  }
52
+ else{
53
+ $user_id='';
54
+ }
55
  if (isset($apif_settings['access_token']) && $apif_settings['access_token'] != '') {
56
  $access_token = $apif_settings['access_token'];
57
  }
58
+ else{
59
+ $access_token='';
60
+ }
61
  ?>
62
  <!--Instagram-->
63
  <div class="apsc-option-outer-wrapper">
64
  <h4><?php _e('Plugin Settings', 'accesspress-instagram-feed') ?></h4>
65
  <div class="updated settings-error notice is-dismissible">
66
  <p><b><?php _e("Note: After the latest changes in instagram api,you either need to create instagram or facebook app.In this plugin, we have used instagram basic display api for which you need have instagram app.On using basic display api, you can fetch normal feeds and get your profile's username and media count.Basic display api has provided only few of these criteria to fetch.But if you want to get more data such as get instagram likes count,comments count,your profile picture and hashtag based search,please upgrade to pro version of this plugin where we have used instagram graph api.", 'accesspress-instagram-feed'); ?></b></p></br>
67
+ <hr><p><b><?php _e("In order to get instagram app id and app secret, you need to first go to developers.facebook.com then create new app.In settings page add your site url.Setup instagram basic display api from products list.You will see option to create app there inside basic display api page.Create app then go to basic display of instagram basic display scroll, down a little you should see button that says add/remove instagram tester inside user token generator, click on it then you will be redirected to user roles page, go to the bottom of page.There will see button that says add instagram tester click on it.A popup will come that will ask you to enter your instagram username, find your account and click on submit.Then,open your instagram profile in another tab.Go to your profile click on settings icon.Go to apps and websites.Go to tester invites tab and you will see request from the app you created.Accept the request and again go to basic display page.Put redirect url as 'https://demo.accesspressthemes.com/wordpress-plugins/insta-feed/basic-api/index.php' , then paste it into Valid oauth redirect url. Enter url of homepage of your website in Deauthorize callback url and enter url of privacy policy of your website that states how you will use instagram profile data of user in Data deletion request url fields and save it.Finally copy your instagram app id and app secret and then paste them in their respective field in plugin's backend.First of all, save the settings and then click on get access token button.You should now be redirected to instagram authorize page where it says your app will access your profile info and media.Click on authorize button and now you should be redirected to plugins backend with your username,user id and access token field filled already.Now,save settings.", 'accesspress-instagram-feed'); ?>
68
  </b></p>
69
  </div>
 
 
 
70
  <br/>
71
  <div class="apsc-option-extra">
72
  <div class='apsc-option-inner-wrapper'>
99
  </div>
100
  </div>
101
  <div class="apsc-option-inner-wrapper">
102
+ <label for='instagram_user_id'><?php _e('Your instagram user ID', 'accesspress-instagram-feed'); ?></label>
103
  <div class="apsc-option-field">
104
  <input type="text" name="instagram[user_id]" id='instagram_user_id' value="<?php if(isset($_GET["userid"])){
105
+ echo $_GET["userid"];}
106
+ else{
107
  echo esc_attr($user_id);}?>"/><?php //var_dump($user_id);?>
108
  <div class="apsc-option-note"><?php _e('Note: If not loaded automatically after clicking <strong>Get Access Token</strong> button provided above, please check if you have followed every step mentioned above properly.', 'accesspress-instagram-feed'); ?></div>
109
  </div>
inc/backend/save-settings.php CHANGED
@@ -14,7 +14,7 @@ $apif_settings['cache_period'] = $cache_period;
14
  $apif_settings['instagram_mosaic'] = isset($instagram_mosaic) ? $instagram_mosaic:'mosaic';
15
  $apif_settings['followmetext'] = isset($followmetext) ? $followmetext:'';
16
  $apif_settings['followmefontsize'] = isset($followmefontsize) ? intval($followmefontsize):'';
17
- $apif_settings['user_id'] = $user_id;
18
  $apif_settings['active'] = isset($active) ? $active : ' ';
19
  update_option( 'apif_settings', $apif_settings);
20
  wp_redirect(admin_url('admin.php?page=if-instagram-feed&message=1'));
14
  $apif_settings['instagram_mosaic'] = isset($instagram_mosaic) ? $instagram_mosaic:'mosaic';
15
  $apif_settings['followmetext'] = isset($followmetext) ? $followmetext:'';
16
  $apif_settings['followmefontsize'] = isset($followmefontsize) ? intval($followmefontsize):'';
17
+ //$apif_settings['user_id'] = $user_id;
18
  $apif_settings['active'] = isset($active) ? $active : ' ';
19
  update_option( 'apif_settings', $apif_settings);
20
  wp_redirect(admin_url('admin.php?page=if-instagram-feed&message=1'));
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
3
  Tags: instagram, instagram feed, instagram tag, instagram slider, instagarm mosaic view, instagarm mosaic layout, instagram lightbox, social media instagram, social network, masonry layout, masonry lightbox, instagarm masonry view, grid rotator, grid rotatory
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
- Tested up to: 5.4.2
7
- Stable tag: 4.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -130,6 +130,10 @@ Once you install the plugin , you can check some general documentation about how
130
  4. Backend Display Settings Section
131
 
132
  == Changelog ==
 
 
 
 
133
  = 4.0.0 =
134
  * Made plugin compatible with latest changes in instagram api.
135
  * Fixed slider issue and added setting to display videos
3
  Tags: instagram, instagram feed, instagram tag, instagram slider, instagarm mosaic view, instagarm mosaic layout, instagram lightbox, social media instagram, social network, masonry layout, masonry lightbox, instagarm masonry view, grid rotator, grid rotatory
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
+ Tested up to: 5.5
7
+ Stable tag: 4.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
130
  4. Backend Display Settings Section
131
 
132
  == Changelog ==
133
+ = 4.0.1 =
134
+ * Code refinement to solve design issue
135
+ * WordPress latest version compatibility checked
136
+
137
  = 4.0.0 =
138
  * Made plugin compatible with latest changes in instagram api.
139
  * Fixed slider issue and added setting to display videos