AccessPress Instagram Feed - Version 3.0.1

Version Description

  • Few CSS Refinement
  • Added Backend Feature on Layout Settings to fill your own custom "Follow Me" text for Masonry Layout
Download this release

Release Info

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

Code changes from version 3.0.0 to 3.0.1

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: 3.0.0
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', '3.0.0' );
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: 3.0.1
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', '3.0.1' );
18
  }
19
 
20
  if( !defined( 'APIF_IMAGE_DIR' ) ) {
inc/backend/boards/display-settings.php CHANGED
@@ -31,6 +31,20 @@
31
  </label>
32
  </div>
33
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  </div>
36
  </div>
31
  </label>
32
  </div>
33
  </div>
34
+ <?php
35
+ $followmetext = (isset($apif_settings['followmetext']) && $apif_settings['followmetext'] != '')?esc_attr($apif_settings['followmetext']):'';
36
+ ?>
37
+ <div class="apsc-option-inner-wrapper">
38
+ <div class="apsc-option-field">
39
+ <div class="apsc-option-inner-wrapper">
40
+ <label style="float:left;"><?php _e('Follow Me Text', 'accesspress-instagram-feed') ?></label>
41
+ <div class="apsc-option-field">
42
+ <input type="text" name="instagram[followmetext]" value="<?php echo $followmetext;?>"/>
43
+ <p class="description"><?php _e('Fill your own custom follow me text. Default is set as "Follow Me".', 'accesspress-instagram-feed') ?></p>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
 
49
  </div>
50
  </div>
inc/backend/save-settings.php CHANGED
@@ -7,6 +7,7 @@ $apif_settings = array();
7
  $apif_settings['username'] = $username;
8
  $apif_settings['access_token'] = $access_token;
9
  $apif_settings['instagram_mosaic'] = isset($instagram_mosaic) ? $instagram_mosaic:'mosaic';
 
10
  $apif_settings['user_id'] = $user_id;
11
  $apif_settings['active'] = isset($active) ? $active : ' ';
12
  update_option( 'apif_settings', $apif_settings);
7
  $apif_settings['username'] = $username;
8
  $apif_settings['access_token'] = $access_token;
9
  $apif_settings['instagram_mosaic'] = isset($instagram_mosaic) ? $instagram_mosaic:'mosaic';
10
+ $apif_settings['followmetext'] = isset($followmetext) ? $followmetext:'';
11
  $apif_settings['user_id'] = $user_id;
12
  $apif_settings['active'] = isset($active) ? $active : ' ';
13
  update_option( 'apif_settings', $apif_settings);
inc/frontend/instagram-feed.php CHANGED
@@ -4,6 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  $apif_settings = get_option( 'apif_settings' );
5
  $username = !empty($apif_settings['username']) ? $apif_settings['username'] : ''; // your username
6
  $access_token = !empty($apif_settings['access_token']) ? $apif_settings['access_token'] : '';
 
7
  $layout = $apif_settings['instagram_mosaic'];
8
  $image_like = isset($apif_settings['active']) ? $apif_settings['active'] : '';
9
  $count = 7; // number of images to show
@@ -76,7 +77,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
76
  </a>
77
  </div>
78
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
79
- <span class="follow">Follow Me</span>
80
  <span class="follow_icon">
81
  <img src="<?php echo $flow_icon; ?>"/>
82
  </span>
@@ -87,7 +88,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
87
  <img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
88
  </div>
89
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
90
- <span class="follow">Follow Me</span>
91
  <span class="follow_icon">
92
  <img src="<?php echo $flow_icon; ?>"/>
93
  </span>
4
  $apif_settings = get_option( 'apif_settings' );
5
  $username = !empty($apif_settings['username']) ? $apif_settings['username'] : ''; // your username
6
  $access_token = !empty($apif_settings['access_token']) ? $apif_settings['access_token'] : '';
7
+ $followmetext = !empty($apif_settings['followmetext']) ? $apif_settings['followmetext'] : __('Follow Me','accesspress-instagram-feed');
8
  $layout = $apif_settings['instagram_mosaic'];
9
  $image_like = isset($apif_settings['active']) ? $apif_settings['active'] : '';
10
  $count = 7; // number of images to show
77
  </a>
78
  </div>
79
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
80
+ <span class="follow"><?php echo esc_attr($followmetext);?></span>
81
  <span class="follow_icon">
82
  <img src="<?php echo $flow_icon; ?>"/>
83
  </span>
88
  <img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
89
  </div>
90
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
91
+ <span class="follow"><?php echo esc_attr($followmetext);?></span>
92
  <span class="follow_icon">
93
  <img src="<?php echo $flow_icon; ?>"/>
94
  </span>
inc/frontend/instagram-masaic-light.php CHANGED
@@ -4,6 +4,7 @@ global $apif_settings, $insta;
4
  $apif_settings = get_option( 'apif_settings' );
5
  $username = $apif_settings['username']; // your username
6
  $access_token = $apif_settings['access_token'];
 
7
  $image_like = $apif_settings['active'];
8
  $count = 7; // number of images to show
9
  require_once('instagram.php');
@@ -75,7 +76,7 @@ $rand_no = rand();
75
  </a>
76
  </div>
77
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
78
- <span class="follow">Follow Me</span>
79
  <span class="follow_icon">
80
  <img src="<?php echo $flow_icon; ?>" alt='Follow'/>
81
  </span>
4
  $apif_settings = get_option( 'apif_settings' );
5
  $username = $apif_settings['username']; // your username
6
  $access_token = $apif_settings['access_token'];
7
+ $followmetext = !empty($apif_settings['followmetext']) ? $apif_settings['followmetext'] : __('Follow Me','accesspress-instagram-feed');
8
  $image_like = $apif_settings['active'];
9
  $count = 7; // number of images to show
10
  require_once('instagram.php');
76
  </a>
77
  </div>
78
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
79
+ <span class="follow"><?php echo esc_attr($followmetext);?></span>
80
  <span class="follow_icon">
81
  <img src="<?php echo $flow_icon; ?>" alt='Follow'/>
82
  </span>
inc/frontend/instagram-widget.php CHANGED
@@ -5,6 +5,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
5
  $username = $apif_settings['username']; // your username
6
  $access_token = $apif_settings['access_token'];
7
  $layout = $apif_settings['instagram_mosaic'];
 
8
  $image_like = isset($apif_settings['active']) ? $apif_settings['active']: '0';
9
  $count = 7; // number of images to show
10
  require_once('instagram.php');
@@ -67,7 +68,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
67
  <img class="transparent-image" src="<?php echo esc_url($image_url); ?>" alt='Transparent Image'>
68
  </div>
69
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
70
- <span class="follow"><?php _e('Follow Me','accesspress-instagram-feed');?></span>
71
  <span class="follow_icon">
72
  <img src="<?php echo $flow_icon; ?>" alt="Follow"/>
73
  </span>
@@ -93,4 +94,4 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
93
  }
94
  ?>
95
  </div>
96
- </section>
5
  $username = $apif_settings['username']; // your username
6
  $access_token = $apif_settings['access_token'];
7
  $layout = $apif_settings['instagram_mosaic'];
8
+ $followmetext = !empty($apif_settings['followmetext']) ? $apif_settings['followmetext'] : __('Follow Me','accesspress-instagram-feed');
9
  $image_like = isset($apif_settings['active']) ? $apif_settings['active']: '0';
10
  $count = 7; // number of images to show
11
  require_once('instagram.php');
68
  <img class="transparent-image" src="<?php echo esc_url($image_url); ?>" alt='Transparent Image'>
69
  </div>
70
  <a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
71
+ <span class="follow"><?php echo esc_attr($followmetext);?></span>
72
  <span class="follow_icon">
73
  <img src="<?php echo $flow_icon; ?>" alt="Follow"/>
74
  </span>
94
  }
95
  ?>
96
  </div>
97
+ </section>
inc/frontend/instagram.php CHANGED
@@ -1,5 +1,4 @@
1
- <?php
2
- defined( 'ABSPATH' ) or die( "No script kiddies please!" );
3
  class InstaWCD{
4
  function userID(){
5
  $username = strtolower($this->username); // sanitization
1
+ <?php defined( 'ABSPATH' ) or die( "No script kiddies please!" );
 
2
  class InstaWCD{
3
  function userID(){
4
  $username = strtolower($this->username); // sanitization
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.9
7
- Stable tag: 3.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -137,6 +137,10 @@ Once you install the plugin , you can check some general documentation about how
137
  5. Backend Display Settings Section
138
 
139
  == Changelog ==
 
 
 
 
140
  = 3.0.0 =
141
  * Issue related with "User doesn't exist" resolved.
142
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
+ Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
137
  5. Backend Display Settings Section
138
 
139
  == Changelog ==
140
+ = 3.0.1 =
141
+ * Few CSS Refinement
142
+ * Added Backend Feature on Layout Settings to fill your own custom "Follow Me" text for Masonry Layout
143
+
144
  = 3.0.0 =
145
  * Issue related with "User doesn't exist" resolved.
146