Version Description
- Compatibility check with Latest WordPress Version.
- New Feature: Added Enable Cache and cache period option on backend to resolve the issue with instagram feed API unlimited call.
- Added Feature: Added custom font size option for Follow me Text on backend.
- Few Refinement Work on Backend CSS Done
Download this release
Release Info
Developer | Access Keys |
Plugin | AccessPress Instagram Feed |
Version | 3.0.7 |
Comparing to | |
See all releases |
Code changes from version 3.0.6 to 3.0.7
- accesspress-instagram-feed.php +2 -2
- css/backend.css +13 -9
- css/frontend.css +3 -0
- inc/backend/boards/display-settings.php +14 -6
- inc/backend/boards/instagram-profiles.php +26 -1
- inc/backend/save-settings.php +3 -0
- inc/frontend/instagram-feed.php +16 -1
- readme.txt +8 -2
accesspress-instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin name: AccessPress Instagram Feed
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
|
5 |
Description: A plugin to add various instagram widgets with dynamic configuration options.
|
6 |
-
Version: 3.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', '3.0.
|
17 |
}
|
18 |
|
19 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
3 |
Plugin name: AccessPress Instagram Feed
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
|
5 |
Description: A plugin to add various instagram widgets with dynamic configuration options.
|
6 |
+
Version: 3.0.7
|
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', '3.0.7' );
|
17 |
}
|
18 |
|
19 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
css/backend.css
CHANGED
@@ -81,10 +81,10 @@ clear:both;
|
|
81 |
}
|
82 |
.apsc-option-inner-wrapper label {
|
83 |
display: inline-block;
|
84 |
-
font-size:
|
85 |
-
font-weight:
|
86 |
line-height: 1.6;
|
87 |
-
padding:
|
88 |
vertical-align: top;
|
89 |
width: 200px;
|
90 |
}
|
@@ -94,6 +94,7 @@ clear:both;
|
|
94 |
display: block;
|
95 |
height: 32px;
|
96 |
width: 320px;
|
|
|
97 |
}
|
98 |
.apsc-option-wrapper {
|
99 |
margin-bottom: 20px;
|
@@ -127,10 +128,13 @@ clear:both;
|
|
127 |
.apsc-option-note {
|
128 |
color: #666666;
|
129 |
display: inline-block;
|
130 |
-
font-style: italic;
|
131 |
line-height: 1.6;
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
.apsc-option-note.apsc-option-width,
|
136 |
.apsc-pro-notes {
|
@@ -724,13 +728,13 @@ padding: 1px 12px;
|
|
724 |
min-height: 300px;
|
725 |
}
|
726 |
|
727 |
-
#apsc-board-display-settings .apsc-option-inner-wrapper .apsc-option-field label{
|
728 |
display:block;
|
729 |
}
|
730 |
|
731 |
-
|
732 |
display:block;
|
733 |
-
}
|
734 |
.apsc-panel{
|
735 |
float:left;
|
736 |
width:100%;
|
81 |
}
|
82 |
.apsc-option-inner-wrapper label {
|
83 |
display: inline-block;
|
84 |
+
font-size: 13px;
|
85 |
+
font-weight: 500;
|
86 |
line-height: 1.6;
|
87 |
+
padding: 13px 0;
|
88 |
vertical-align: top;
|
89 |
width: 200px;
|
90 |
}
|
94 |
display: block;
|
95 |
height: 32px;
|
96 |
width: 320px;
|
97 |
+
font-weight: 500;
|
98 |
}
|
99 |
.apsc-option-wrapper {
|
100 |
margin-bottom: 20px;
|
128 |
.apsc-option-note {
|
129 |
color: #666666;
|
130 |
display: inline-block;
|
|
|
131 |
line-height: 1.6;
|
132 |
+
padding-top: 4px;
|
133 |
+
margin: 0 0 5px 0;
|
134 |
+
clear: both;
|
135 |
+
font-size: 12px;
|
136 |
+
font-weight: normal;
|
137 |
+
font-style: italic;
|
138 |
}
|
139 |
.apsc-option-note.apsc-option-width,
|
140 |
.apsc-pro-notes {
|
728 |
min-height: 300px;
|
729 |
}
|
730 |
|
731 |
+
#apsc-board-display-settings .apsc-option-inner-wrapper .apsc-option-field label.apsc-layouts-preview{
|
732 |
display:block;
|
733 |
}
|
734 |
|
735 |
+
/*#apsc-board-display-settings .apsc-option-field {
|
736 |
display:block;
|
737 |
+
}*/
|
738 |
.apsc-panel{
|
739 |
float:left;
|
740 |
width:100%;
|
css/frontend.css
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
/*******************************Mosaic View layout*************************************/
|
2 |
.clearfix:before,
|
3 |
.clearfix:after{
|
1 |
+
/*
|
2 |
+
* Frontend Style - Version 3.0.7
|
3 |
+
*/
|
4 |
/*******************************Mosaic View layout*************************************/
|
5 |
.clearfix:before,
|
6 |
.clearfix:after{
|
inc/backend/boards/display-settings.php
CHANGED
@@ -13,19 +13,19 @@
|
|
13 |
<div class="apsc-option-inner-wrapper">
|
14 |
<label style="width:30%;"><?php _e('Choose Instagram Themes Layout', 'accesspress-instagram-feed'); ?></label>
|
15 |
<div class="apsc-option-field">
|
16 |
-
<label>
|
17 |
<input type="radio" name="instagram[instagram_mosaic]" value="mosaic" <?php if(isset($apif_settings['instagram_mosaic']) && $apif_settings['instagram_mosaic']=='mosaic'){?>checked="checked"<?php }?>/><?php _e('Mosaic layout', 'accesspress-instagram-feed'); ?>
|
18 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/massonary.png';?>"/></div>
|
19 |
</label>
|
20 |
-
<label>
|
21 |
<input type="radio" name="instagram[instagram_mosaic]" value="mosaic_lightview" <?php if($apif_settings['instagram_mosaic']=='mosaic_lightview'){?>checked="checked"<?php }?>/><?php _e('Mosaic LightBox Layout', 'accesspress-instagram-feed'); ?>
|
22 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/lightbox.png';?>"/></div>
|
23 |
</label>
|
24 |
-
<label>
|
25 |
<input type="radio" name="instagram[instagram_mosaic]" value="slider" <?php if($apif_settings['instagram_mosaic']=='slider'){?>checked="checked"<?php }?>/><?php _e('Slider Layout', 'accesspress-instagram-feed'); ?>
|
26 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/slider.png';?>"/></div>
|
27 |
</label>
|
28 |
-
|
29 |
<input type="radio" name="instagram[instagram_mosaic]" value="grid_rotator" <?php if($apif_settings['instagram_mosaic']=='grid_rotator'){?>checked="checked"<?php }?>/><?php _e('Grid Rotator', 'accesspress-instagram-feed'); ?>
|
30 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/grid-rotator.png';?>"/></div>
|
31 |
</label>
|
@@ -37,14 +37,22 @@
|
|
37 |
<div class="apsc-option-inner-wrapper">
|
38 |
<div class="apsc-option-field">
|
39 |
<div class="apsc-option-inner-wrapper">
|
40 |
-
<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 |
<?php include (APIF_INST_PATH . '/inc/backend/submit-button.php'); ?>
|
49 |
</div>
|
50 |
</div>
|
13 |
<div class="apsc-option-inner-wrapper">
|
14 |
<label style="width:30%;"><?php _e('Choose Instagram Themes Layout', 'accesspress-instagram-feed'); ?></label>
|
15 |
<div class="apsc-option-field">
|
16 |
+
<label class="apsc-layouts-preview">
|
17 |
<input type="radio" name="instagram[instagram_mosaic]" value="mosaic" <?php if(isset($apif_settings['instagram_mosaic']) && $apif_settings['instagram_mosaic']=='mosaic'){?>checked="checked"<?php }?>/><?php _e('Mosaic layout', 'accesspress-instagram-feed'); ?>
|
18 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/massonary.png';?>"/></div>
|
19 |
</label>
|
20 |
+
<label class="apsc-layouts-preview">
|
21 |
<input type="radio" name="instagram[instagram_mosaic]" value="mosaic_lightview" <?php if($apif_settings['instagram_mosaic']=='mosaic_lightview'){?>checked="checked"<?php }?>/><?php _e('Mosaic LightBox Layout', 'accesspress-instagram-feed'); ?>
|
22 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/lightbox.png';?>"/></div>
|
23 |
</label>
|
24 |
+
<label class="apsc-layouts-preview">
|
25 |
<input type="radio" name="instagram[instagram_mosaic]" value="slider" <?php if($apif_settings['instagram_mosaic']=='slider'){?>checked="checked"<?php }?>/><?php _e('Slider Layout', 'accesspress-instagram-feed'); ?>
|
26 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/slider.png';?>"/></div>
|
27 |
</label>
|
28 |
+
<label class="apsc-layouts-preview">
|
29 |
<input type="radio" name="instagram[instagram_mosaic]" value="grid_rotator" <?php if($apif_settings['instagram_mosaic']=='grid_rotator'){?>checked="checked"<?php }?>/><?php _e('Grid Rotator', 'accesspress-instagram-feed'); ?>
|
30 |
<div class="apsc-theme-image"><img src="<?php echo APIF_IMAGE_DIR.'/themes/grid-rotator.png';?>"/></div>
|
31 |
</label>
|
37 |
<div class="apsc-option-inner-wrapper">
|
38 |
<div class="apsc-option-field">
|
39 |
<div class="apsc-option-inner-wrapper">
|
40 |
+
<label><?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" style="font-size: 12px;font-weight: 500;"><?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 |
+
<div class="apsc-option-inner-wrapper">
|
49 |
+
<label><?php _e('Font Size', 'accesspress-instagram-feed'); ?></label>
|
50 |
+
<div class="apsc-option-field">
|
51 |
+
<input type="number" name="instagram[followmefontsize]" value="<?php if(isset($apif_settings['followmefontsize']) && $apif_settings['followmefontsize'] != ''){ echo intval($apif_settings['followmefontsize']); } ?>" />
|
52 |
+
<div class="apsc-option-note"><?php _e('Please set custom font size for follow me text.', 'accesspress-instagram-feed'); ?></div>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
|
56 |
<?php include (APIF_INST_PATH . '/inc/backend/submit-button.php'); ?>
|
57 |
</div>
|
58 |
</div>
|
inc/backend/boards/instagram-profiles.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<div class="apsc-tab-wrapper">
|
4 |
<!--Instagram-->
|
5 |
<div class="apsc-option-outer-wrapper">
|
6 |
-
<h4><?php _e('Instagram
|
7 |
<div class="apsc-option-extra">
|
8 |
<div class="apsc-option-inner-wrapper">
|
9 |
<label for='instagram_username'><?php _e('Instagram Username', 'accesspress-instagram-feed'); ?></label>
|
@@ -42,6 +42,31 @@
|
|
42 |
</div>
|
43 |
</div>
|
44 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</div>
|
46 |
</div>
|
47 |
<!--Instagram-->
|
3 |
<div class="apsc-tab-wrapper">
|
4 |
<!--Instagram-->
|
5 |
<div class="apsc-option-outer-wrapper">
|
6 |
+
<h4><?php _e('Instagram Settings', 'accesspress-instagram-feed') ?></h4>
|
7 |
<div class="apsc-option-extra">
|
8 |
<div class="apsc-option-inner-wrapper">
|
9 |
<label for='instagram_username'><?php _e('Instagram Username', 'accesspress-instagram-feed'); ?></label>
|
42 |
</div>
|
43 |
</div>
|
44 |
</div>
|
45 |
+
|
46 |
+
<div class="apsc-option-inner-wrapper">
|
47 |
+
<label for='instagram_user_id'><?php _e('Instagram User ID(Optional)', 'accesspress-instagram-feed'); ?></label>
|
48 |
+
<div class="apsc-option-field">
|
49 |
+
<input type="text" name="instagram[user_id]" id='instagram_user_id' value="<?php echo esc_attr($apif_settings['user_id']);?>"/>
|
50 |
+
<div class="apsc-option-note"><?php _e('Please get your instagram user id from the below access token input field, after receiving access token. The first numbers before . is your instagram user id', 'accesspress-instagram-feed'); ?></div>
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
|
54 |
+
<div class="apsc-option-inner-wrapper">
|
55 |
+
<label for='enablecache'><?php _e('Enable Cache?', 'accesspress-instagram-feed'); ?></label>
|
56 |
+
<div class="apsc-option-field">
|
57 |
+
<input type="checkbox" name="instagram[enable_cache]" id="enablecache" value="1" <?php if(isset($apif_settings['enable_cache'])){ checked($apif_settings['enable_cache'], '1'); } ?> />
|
58 |
+
<div class="apsc-option-note"><?php _e('Please enable this option if you want to use the cache on the first load.', 'accesspress-instagram-feed'); ?></div>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<div class="apsc-option-inner-wrapper">
|
63 |
+
<label for='enablecache'><?php _e('Cache Period', 'accesspress-instagram-feed'); ?></label>
|
64 |
+
<div class="apsc-option-field">
|
65 |
+
<input type="number" step="0.01" min='0' max='24' name="instagram[cache_period]" value="<?php if(isset($apif_settings['cache_period']) && $apif_settings['cache_period'] != ''){ echo $apif_settings['cache_period']; } ?>" />
|
66 |
+
<div class="apsc-option-note"><?php _e('Please set the value in hours only. Default if left empty is set to 24.', 'accesspress-instagram-feed'); ?></div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
|
70 |
</div>
|
71 |
</div>
|
72 |
<!--Instagram-->
|
inc/backend/save-settings.php
CHANGED
@@ -7,8 +7,11 @@ foreach( $_POST['instagram'] as $key=>$val ){
|
|
7 |
$apif_settings = array();
|
8 |
$apif_settings['username'] = $username;
|
9 |
$apif_settings['access_token'] = $access_token;
|
|
|
|
|
10 |
$apif_settings['instagram_mosaic'] = isset($instagram_mosaic) ? $instagram_mosaic:'mosaic';
|
11 |
$apif_settings['followmetext'] = isset($followmetext) ? $followmetext:'';
|
|
|
12 |
$apif_settings['user_id'] = $user_id;
|
13 |
$apif_settings['active'] = isset($active) ? $active : ' ';
|
14 |
update_option( 'apif_settings', $apif_settings);
|
7 |
$apif_settings = array();
|
8 |
$apif_settings['username'] = $username;
|
9 |
$apif_settings['access_token'] = $access_token;
|
10 |
+
$apif_settings['enable_cache'] = $enable_cache;
|
11 |
+
$apif_settings['cache_period'] = $cache_period;
|
12 |
$apif_settings['instagram_mosaic'] = isset($instagram_mosaic) ? $instagram_mosaic:'mosaic';
|
13 |
$apif_settings['followmetext'] = isset($followmetext) ? $followmetext:'';
|
14 |
+
$apif_settings['followmefontsize'] = isset($followmefontsize) ? intval($followmefontsize):'';
|
15 |
$apif_settings['user_id'] = $user_id;
|
16 |
$apif_settings['active'] = isset($active) ? $active : ' ';
|
17 |
update_option( 'apif_settings', $apif_settings);
|
inc/frontend/instagram-feed.php
CHANGED
@@ -4,6 +4,9 @@ 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 |
$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'] : '';
|
@@ -19,7 +22,19 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
19 |
}else if ($access_token == ''){
|
20 |
$response = array('meta'=>array('error_message'=>'Access token field is empty.'));
|
21 |
}else{
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
if($response == NULL){
|
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 |
+
$enable_cache = (isset($apif_settings['enable_cache']) && $apif_settings['enable_cache'] == 1)?1:0;
|
8 |
+
$cache_period = (isset($apif_settings['cache_period']) && $apif_settings['cache_period'] == 1)?intval($apif_settings['cache_period']):'24';
|
9 |
+
|
10 |
$followmetext = !empty($apif_settings['followmetext']) ? $apif_settings['followmetext'] : __('Follow Me','accesspress-instagram-feed');
|
11 |
$layout = $apif_settings['instagram_mosaic'];
|
12 |
$image_like = isset($apif_settings['active']) ? $apif_settings['active'] : '';
|
22 |
}else if ($access_token == ''){
|
23 |
$response = array('meta'=>array('error_message'=>'Access token field is empty.'));
|
24 |
}else{
|
25 |
+
|
26 |
+
if($enable_cache){
|
27 |
+
$recent_feed_transient_name = 'recent_feed_transient';
|
28 |
+
$recent_feed_transient = get_transient($recent_feed_transient_name);
|
29 |
+
if (false === $recent_feed_transient) {
|
30 |
+
$response = $insta->userMedia();
|
31 |
+
set_transient($recent_feed_transient_name, $response, $cache_period * HOUR_IN_SECONDS );
|
32 |
+
}else{
|
33 |
+
$response = $recent_feed_transient;
|
34 |
+
}
|
35 |
+
}else{
|
36 |
+
$response = $insta->userMedia();
|
37 |
+
}
|
38 |
}
|
39 |
|
40 |
if($response == NULL){
|
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:
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -153,6 +153,12 @@ Once you install the plugin , you can check some general documentation about how
|
|
153 |
5. Backend Display Settings Section
|
154 |
|
155 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
= 3.0.6 =
|
157 |
* Few Refinement Work on CSS Done
|
158 |
|
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.0
|
7 |
+
Stable tag: 3.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
153 |
5. Backend Display Settings Section
|
154 |
|
155 |
== Changelog ==
|
156 |
+
= 3.0.7 =
|
157 |
+
* Compatibility check with Latest WordPress Version.
|
158 |
+
* New Feature: Added Enable Cache and cache period option on backend to resolve the issue with instagram feed API unlimited call.
|
159 |
+
* Added Feature: Added custom font size option for Follow me Text on backend.
|
160 |
+
* Few Refinement Work on Backend CSS Done
|
161 |
+
|
162 |
= 3.0.6 =
|
163 |
* Few Refinement Work on CSS Done
|
164 |
|