Version Description
- Done the bug fixing for the widgets and shortcodes not working properly.
Download this release
Release Info
Developer | Access Keys |
Plugin | AccessPress Instagram Feed |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- accesspress-instagram-feed.php +2 -2
- inc/backend/main-page.php +1 -1
- inc/backend/widgetside.php +1 -1
- inc/frontend/instagram-feed.php +1 -1
- inc/frontend/instagram-masaic-light.php +1 -1
- inc/frontend/instagram-slider.php +1 -1
- inc/frontend/instagram-widget.php +1 -1
- inc/frontend/shortcode.php +0 -374
- readme.txt +4 -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: 1.0.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:if-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', '1.0.
|
17 |
}
|
18 |
|
19 |
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: 1.0.8
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:if-feed
|
13 |
*/
|
14 |
//Decleration of the necessary constants for plugin
|
15 |
if( !defined( 'APIF_VERSION' ) ) {
|
16 |
+
define( 'APIF_VERSION', '1.0.8' );
|
17 |
}
|
18 |
|
19 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
inc/backend/main-page.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
|
4 |
-
$apif_settings =
|
5 |
//$this->print_array($apsc_settings);
|
6 |
?>
|
7 |
|
1 |
<?php
|
2 |
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
|
4 |
+
$apif_settings = get_option( 'apif_settings' );
|
5 |
//$this->print_array($apsc_settings);
|
6 |
?>
|
7 |
|
inc/backend/widgetside.php
CHANGED
@@ -39,7 +39,7 @@ class APIF_SideWidget extends WP_Widget {
|
|
39 |
|
40 |
|
41 |
global $apif_settings, $insta;
|
42 |
-
|
43 |
$username = !empty($apif_settings['username']) ? $apif_settings['username'] : '';
|
44 |
$user_id = !empty($apif_settings['user_id']) ? $apif_settings['user_id'] : '';
|
45 |
$social_profile_url = 'https://instagram.com/' . $username;
|
39 |
|
40 |
|
41 |
global $apif_settings, $insta;
|
42 |
+
$apif_settings = get_option( 'apif_settings' );
|
43 |
$username = !empty($apif_settings['username']) ? $apif_settings['username'] : '';
|
44 |
$user_id = !empty($apif_settings['user_id']) ? $apif_settings['user_id'] : '';
|
45 |
$social_profile_url = 'https://instagram.com/' . $username;
|
inc/frontend/instagram-feed.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
-
$apif_settings =
|
4 |
$username = !empty($apif_settings['username']) ? $apif_settings['username'] : ''; // your username
|
5 |
$access_token = !empty($apif_settings['access_token']) ? $apif_settings['access_token'] : '';
|
6 |
$layout = $apif_settings['instagram_mosaic'];
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
+
$apif_settings = get_option( 'apif_settings' );
|
4 |
$username = !empty($apif_settings['username']) ? $apif_settings['username'] : ''; // your username
|
5 |
$access_token = !empty($apif_settings['access_token']) ? $apif_settings['access_token'] : '';
|
6 |
$layout = $apif_settings['instagram_mosaic'];
|
inc/frontend/instagram-masaic-light.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
-
$apif_settings =
|
4 |
$username = $apif_settings['username']; // your username
|
5 |
$access_token = $apif_settings['access_token'];
|
6 |
$image_like = $apif_settings['active'];
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
+
$apif_settings = get_option( 'apif_settings' );
|
4 |
$username = $apif_settings['username']; // your username
|
5 |
$access_token = $apif_settings['access_token'];
|
6 |
$image_like = $apif_settings['active'];
|
inc/frontend/instagram-slider.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
-
$apif_settings =
|
4 |
$username = $apif_settings['username']; // your username
|
5 |
$access_token = $apif_settings['access_token'];
|
6 |
$image_like = $apif_settings['active'];
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
+
$apif_settings = get_option( 'apif_settings' );
|
4 |
$username = $apif_settings['username']; // your username
|
5 |
$access_token = $apif_settings['access_token'];
|
6 |
$image_like = $apif_settings['active'];
|
inc/frontend/instagram-widget.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
-
$apif_settings =
|
4 |
$username = $apif_settings['username']; // your username
|
5 |
$access_token = $apif_settings['access_token'];
|
6 |
$layout = $apif_settings['instagram_mosaic'];
|
1 |
<?php
|
2 |
global $apif_settings, $insta;
|
3 |
+
$apif_settings = get_option( 'apif_settings' );
|
4 |
$username = $apif_settings['username']; // your username
|
5 |
$access_token = $apif_settings['access_token'];
|
6 |
$layout = $apif_settings['instagram_mosaic'];
|
inc/frontend/shortcode.php
DELETED
@@ -1,374 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
-
|
4 |
-
global $apif_settings, $insta;
|
5 |
-
$apif_settings = $this->apif_settings;
|
6 |
-
|
7 |
-
add_shortcode('ap_instagram_feed', 'ap_instagram_feed');
|
8 |
-
|
9 |
-
function ap_instagram_feed() {
|
10 |
-
global $apif_settings, $insta;
|
11 |
-
|
12 |
-
$username = !empty($apif_settings['username']) ? $apif_settings['username'] : ''; // your username
|
13 |
-
$access_token = !empty($apif_settings['access_token']) ? $apif_settings['access_token'] : '';
|
14 |
-
$layout = $apif_settings['instagram_mosaic'];
|
15 |
-
$image_like = $apif_settings['active'];
|
16 |
-
$count = 7; // number of images to show
|
17 |
-
require_once(dirname(__FILE__) . '/instagram.php');
|
18 |
-
|
19 |
-
if ($layout == 'mosaic' || $layout == 'mosaic_lightview') {
|
20 |
-
?>
|
21 |
-
<section id="main" class="thumb-view">
|
22 |
-
<div class="row masonry for-mosaic isotope ifgrid">
|
23 |
-
<?php
|
24 |
-
$ins_media = $insta->userMedia();
|
25 |
-
$i = 1;
|
26 |
-
$j = 0;
|
27 |
-
if(isset($ins_media['meta']['error_message'])){
|
28 |
-
?>
|
29 |
-
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
30 |
-
<?php
|
31 |
-
}else if (is_array($ins_media['data']) || is_object($ins_media['data'])) {
|
32 |
-
foreach ($ins_media['data'] as $vm):
|
33 |
-
if ($count == $j) {
|
34 |
-
break;
|
35 |
-
}
|
36 |
-
$j++;
|
37 |
-
$img = $vm['images']['standard_resolution']['url'];
|
38 |
-
?>
|
39 |
-
<?php
|
40 |
-
if ($i <= 2 || $i == 6 || $i == 7) {
|
41 |
-
$masonary_class = 'grid-small';
|
42 |
-
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
43 |
-
$image = $vm['images']['low_resolution']['url'];
|
44 |
-
} elseif ($i == 4 || $i == 5) {
|
45 |
-
$masonary_class = 'grid-medium';
|
46 |
-
$image_url = APIF_IMAGE_DIR . '/image-rect.png';
|
47 |
-
$image = $vm['images']['standard_resolution']['url'];
|
48 |
-
} elseif ($i == 3) {
|
49 |
-
$masonary_class = 'grid-large';
|
50 |
-
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
51 |
-
$image = $vm['images']['standard_resolution']['url'];
|
52 |
-
}
|
53 |
-
$link = $vm["link"];
|
54 |
-
$flow_icon = APIF_IMAGE_DIR . '/sc-icon.png';
|
55 |
-
?>
|
56 |
-
<div class="masonry_elem columns isotope-item element-itemif <?php echo esc_attr($masonary_class); ?>">
|
57 |
-
<div class="thumb-elem large-mosaic-elem small-mosaic-elem hovermove large-mosaic-elem">
|
58 |
-
<header class="thumb-elem-header">
|
59 |
-
<?php
|
60 |
-
if ($layout == 'mosaic_lightview') {
|
61 |
-
?>
|
62 |
-
<div class="featimg">
|
63 |
-
<a class="example-image-link" href="<?php echo esc_url($img); ?>" data-lightbox="example-set">
|
64 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
65 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
66 |
-
</a>
|
67 |
-
</div>
|
68 |
-
<a href="<?php echo $link; ?>" target="_blank" class="image-hover">
|
69 |
-
<span class="follow">Follow Me</span>
|
70 |
-
<span class="follow_icon">
|
71 |
-
<img src="<?php echo $flow_icon; ?>"/>
|
72 |
-
</span>
|
73 |
-
</a>
|
74 |
-
<?php } if ($layout == 'mosaic') { ?>
|
75 |
-
<div class="featimg">
|
76 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
77 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
78 |
-
</div>
|
79 |
-
<a href="<?php echo $link; ?>" target="_blank" class="image-hover">
|
80 |
-
<span class="follow">Follow Me</span>
|
81 |
-
<span class="follow_icon">
|
82 |
-
<img src="<?php echo $flow_icon; ?>"/>
|
83 |
-
</span>
|
84 |
-
</a>
|
85 |
-
<?php } ?>
|
86 |
-
</header>
|
87 |
-
<?php if ($image_like == '1') : ?>
|
88 |
-
<!-- Image like cound section start -->
|
89 |
-
<span class="instagram_like_count">
|
90 |
-
<p class="instagram_imge_like">
|
91 |
-
<span class="insta like_image">
|
92 |
-
<i class="fa fa-heart-o fa-2x"></i>
|
93 |
-
</span>
|
94 |
-
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
95 |
-
</p>
|
96 |
-
</span>
|
97 |
-
<!-- Image like cound section end -->
|
98 |
-
<?php endif; ?>
|
99 |
-
</div>
|
100 |
-
</div>
|
101 |
-
<?php
|
102 |
-
$i++;
|
103 |
-
endforeach;
|
104 |
-
}
|
105 |
-
?>
|
106 |
-
</div>
|
107 |
-
</section>
|
108 |
-
<?php
|
109 |
-
} else if ($layout == 'slider') {
|
110 |
-
?>
|
111 |
-
<div id="owl-demo" class="owl-carousel">
|
112 |
-
<?php
|
113 |
-
$ins_media_slider = $insta->userMedia();
|
114 |
-
$j = 0;
|
115 |
-
if(isset($ins_media['meta']['error_message'])){
|
116 |
-
?>
|
117 |
-
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
118 |
-
<?php
|
119 |
-
} if (is_array($ins_media_slider['data']) || is_object($ins_media_slider['data'])) {
|
120 |
-
foreach ($ins_media_slider['data'] as $vm):
|
121 |
-
if ($count == $j) {
|
122 |
-
break;
|
123 |
-
}
|
124 |
-
$j++;
|
125 |
-
$imgslider = $vm['images']['standard_resolution']['url'];
|
126 |
-
?>
|
127 |
-
<div class="item">
|
128 |
-
<img src="<?php echo esc_url($imgslider); ?>" />
|
129 |
-
<?php if ($image_like == '1') : ?>
|
130 |
-
<!-- Image like cound section start -->
|
131 |
-
<span class="instagram_like_count">
|
132 |
-
<p class="instagram_imge_like">
|
133 |
-
<span class="insta like_image">
|
134 |
-
<i class="fa fa-heart-o fa-2x"></i>
|
135 |
-
</span>
|
136 |
-
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
137 |
-
</p>
|
138 |
-
</span>
|
139 |
-
<!-- Image like cound section end -->
|
140 |
-
<?php endif; ?>
|
141 |
-
</div>
|
142 |
-
<?php
|
143 |
-
endforeach;
|
144 |
-
}
|
145 |
-
?>
|
146 |
-
</div>
|
147 |
-
<?php
|
148 |
-
}
|
149 |
-
}
|
150 |
-
|
151 |
-
/* * ***********************************Default Widget Area Shortcode************************* */
|
152 |
-
|
153 |
-
add_shortcode('ap_instagram_widget', 'ap_instagram_widget');
|
154 |
-
|
155 |
-
function ap_instagram_widget() {
|
156 |
-
global $apif_settings, $insta;
|
157 |
-
|
158 |
-
$username = $apif_settings['username']; // your username
|
159 |
-
$access_token = $apif_settings['access_token'];
|
160 |
-
$layout = $apif_settings['instagram_mosaic'];
|
161 |
-
$image_like = $apif_settings['active'];
|
162 |
-
$count = 7; // number of images to show
|
163 |
-
require_once(dirname(__FILE__) . '/instagram.php');
|
164 |
-
?>
|
165 |
-
<section id="main" class="thumb-view">
|
166 |
-
<div class="row masonry for-mosaic isotope ifgrid">
|
167 |
-
<?php
|
168 |
-
$ins_media = $insta->userMedia();
|
169 |
-
$i = 1;
|
170 |
-
$j = 0;
|
171 |
-
if(isset($ins_media['meta']['error_message'])){
|
172 |
-
?>
|
173 |
-
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
174 |
-
<?php
|
175 |
-
}else if (is_array($ins_media['data']) || is_object($ins_media['data'])) {
|
176 |
-
foreach ($ins_media['data'] as $vm):
|
177 |
-
if ($count == $j) {
|
178 |
-
break;
|
179 |
-
}
|
180 |
-
$j++;
|
181 |
-
$img = $vm['images']['standard_resolution']['url'];
|
182 |
-
?>
|
183 |
-
<?php
|
184 |
-
if ($i <= 2 || $i == 6 || $i == 7) {
|
185 |
-
$masonary_class = 'grid-small';
|
186 |
-
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
187 |
-
$image = $vm['images']['low_resolution']['url'];
|
188 |
-
} elseif ($i == 4 || $i == 5) {
|
189 |
-
$masonary_class = 'grid-medium';
|
190 |
-
$image_url = APIF_IMAGE_DIR . '/image-rect.png';
|
191 |
-
$image = $vm['images']['standard_resolution']['url'];
|
192 |
-
} elseif ($i == 3) {
|
193 |
-
$masonary_class = 'grid-large';
|
194 |
-
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
195 |
-
$image = $vm['images']['standard_resolution']['url'];
|
196 |
-
}
|
197 |
-
$link = $vm["link"];
|
198 |
-
$flow_icon = APIF_IMAGE_DIR . '/sc-icon.png';
|
199 |
-
?>
|
200 |
-
<div class="masonry_elem columns isotope-item element-itemif <?php echo esc_attr($masonary_class); ?>">
|
201 |
-
<div class="thumb-elem large-mosaic-elem small-mosaic-elem hovermove large-mosaic-elem">
|
202 |
-
<header class="thumb-elem-header">
|
203 |
-
<div class="featimg">
|
204 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
205 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
206 |
-
</div>
|
207 |
-
<a href="<?php echo $link; ?>" target="_blank" class="image-hover">
|
208 |
-
<span class="follow">Follow Me</span>
|
209 |
-
<span class="follow_icon">
|
210 |
-
<img src="<?php echo $flow_icon; ?>"/>
|
211 |
-
</span>
|
212 |
-
</a>
|
213 |
-
</header>
|
214 |
-
<?php if ($image_like == '1') : ?>
|
215 |
-
<!-- Image like cound section start -->
|
216 |
-
<span class="instagram_like_count">
|
217 |
-
<p class="instagram_imge_like">
|
218 |
-
<span class="insta like_image">
|
219 |
-
<i class="fa fa-heart-o fa-2x"></i>
|
220 |
-
</span>
|
221 |
-
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
222 |
-
</p>
|
223 |
-
</span>
|
224 |
-
<!-- Image like cound section end -->
|
225 |
-
<?php endif; ?>
|
226 |
-
</div>
|
227 |
-
</div>
|
228 |
-
<?php
|
229 |
-
$i++;
|
230 |
-
endforeach;
|
231 |
-
}
|
232 |
-
?>
|
233 |
-
</div>
|
234 |
-
</section>
|
235 |
-
<?php
|
236 |
-
}
|
237 |
-
|
238 |
-
/* * **********************************Mosaic lightbox Layout Shortcode************************************* */
|
239 |
-
add_shortcode('ap_instagram_mosaic_lightview', 'ap_instagram_mosaic_light');
|
240 |
-
|
241 |
-
function ap_instagram_mosaic_light() {
|
242 |
-
global $apif_settings, $insta;
|
243 |
-
|
244 |
-
$username = $apif_settings['username']; // your username
|
245 |
-
$access_token = $apif_settings['access_token'];
|
246 |
-
$image_like = $apif_settings['active'];
|
247 |
-
$count = 7; // number of images to show
|
248 |
-
require_once(dirname(__FILE__) . '/instagram.php');
|
249 |
-
?>
|
250 |
-
<section id="main" class="thumb-view">
|
251 |
-
<div class="row masonry for-mosaic isotope ifgrid">
|
252 |
-
<?php
|
253 |
-
$ins_media_masaic = $insta->userMedia();
|
254 |
-
$i = 1;
|
255 |
-
$j = 0;
|
256 |
-
if(isset($ins_media['meta']['error_message'])){
|
257 |
-
?>
|
258 |
-
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
259 |
-
<?php
|
260 |
-
}else if (is_array($ins_media_masaic['data']) || is_object($ins_media_masaic['data'])) {
|
261 |
-
foreach ($ins_media_masaic['data'] as $vm):
|
262 |
-
if ($count == $j) {
|
263 |
-
break;
|
264 |
-
}
|
265 |
-
$j++;
|
266 |
-
$img = $vm['images']['standard_resolution']['url'];
|
267 |
-
?>
|
268 |
-
<?php
|
269 |
-
if ($i <= 2 || $i == 6 || $i == 7) {
|
270 |
-
$masonary_class = 'grid-small';
|
271 |
-
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
272 |
-
$image = $vm['images']['low_resolution']['url'];
|
273 |
-
} elseif ($i == 4 || $i == 5) {
|
274 |
-
$masonary_class = 'grid-medium';
|
275 |
-
$image_url = APIF_IMAGE_DIR . '/image-rect.png';
|
276 |
-
$image = $vm['images']['low_resolution']['url'];
|
277 |
-
} elseif ($i == 3) {
|
278 |
-
$masonary_class = 'grid-large';
|
279 |
-
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
280 |
-
$image = $vm['images']['standard_resolution']['url'];
|
281 |
-
}
|
282 |
-
$link = $vm["link"];
|
283 |
-
$flow_icon = APIF_IMAGE_DIR . '/sc-icon.png';
|
284 |
-
?>
|
285 |
-
<div class="masonry_elem columns isotope-item element-itemif <?php echo esc_attr($masonary_class); ?>">
|
286 |
-
<div class="thumb-elem large-mosaic-elem small-mosaic-elem hovermove large-mosaic-elem">
|
287 |
-
<header class="thumb-elem-header">
|
288 |
-
<div class="featimg">
|
289 |
-
<a class="example-image-link" href="<?php echo esc_url($img); ?>" data-lightbox="example-set">
|
290 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
291 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
292 |
-
</a>
|
293 |
-
</div>
|
294 |
-
<a href="<?php echo $link; ?>" target="_blank" class="image-hover">
|
295 |
-
<span class="follow">Follow Me</span>
|
296 |
-
<span class="follow_icon">
|
297 |
-
<img src="<?php echo $flow_icon; ?>"/>
|
298 |
-
</span>
|
299 |
-
</a>
|
300 |
-
</header>
|
301 |
-
<?php if ($image_like == '1') : ?>
|
302 |
-
<!-- Image like cound section start -->
|
303 |
-
<span class="instagram_like_count">
|
304 |
-
<p class="instagram_imge_like">
|
305 |
-
<span class="insta like_image">
|
306 |
-
<i class="fa fa-heart-o fa-2x"></i>
|
307 |
-
</span>
|
308 |
-
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
309 |
-
</p>
|
310 |
-
</span>
|
311 |
-
<!-- Image like cound section end -->
|
312 |
-
<?php endif; ?>
|
313 |
-
</div>
|
314 |
-
</div>
|
315 |
-
<?php
|
316 |
-
$i++;
|
317 |
-
endforeach;
|
318 |
-
}
|
319 |
-
?>
|
320 |
-
</div>
|
321 |
-
</section>
|
322 |
-
<?php
|
323 |
-
}
|
324 |
-
|
325 |
-
/* * **********************************Slider Layout Shortcode************************************* */
|
326 |
-
add_shortcode('ap_instagram_slider', 'ap_instagram_slider');
|
327 |
-
|
328 |
-
function ap_instagram_slider() {
|
329 |
-
global $apif_settings, $insta;
|
330 |
-
|
331 |
-
$username = $apif_settings['username']; // your username
|
332 |
-
$access_token = $apif_settings['access_token'];
|
333 |
-
$image_like = $apif_settings['active'];
|
334 |
-
$count = 10; // number of images to show
|
335 |
-
require_once(dirname(__FILE__) . '/instagram.php');
|
336 |
-
?>
|
337 |
-
<div id="owl-demo" class="owl-carousel">
|
338 |
-
<?php
|
339 |
-
$ins_media_slider = $insta->userMedia();
|
340 |
-
$j = 0;
|
341 |
-
if(isset($ins_media['meta']['error_message'])){
|
342 |
-
?>
|
343 |
-
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
344 |
-
<?php
|
345 |
-
}else if (is_array($ins_media_slider['data']) || is_object($ins_media_slider['data'])) {
|
346 |
-
foreach ($ins_media_slider['data'] as $vm):
|
347 |
-
if ($count == $j) {
|
348 |
-
break;
|
349 |
-
}
|
350 |
-
$j++;
|
351 |
-
$imgslider = $vm['images']['standard_resolution']['url'];
|
352 |
-
?>
|
353 |
-
<div class="item">
|
354 |
-
<img src="<?php echo esc_url($imgslider); ?>" />
|
355 |
-
<?php if ($image_like == '1') : ?>
|
356 |
-
<!-- Image like cound section start -->
|
357 |
-
<span class="instagram_like_count">
|
358 |
-
<p class="instagram_imge_like">
|
359 |
-
<span class="insta like_image">
|
360 |
-
<i class="fa fa-heart-o fa-2x"></i>
|
361 |
-
</span>
|
362 |
-
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
363 |
-
</p>
|
364 |
-
</span>
|
365 |
-
<!-- Image like cound section end -->
|
366 |
-
<?php endif; ?>
|
367 |
-
</div>
|
368 |
-
|
369 |
-
<?php
|
370 |
-
endforeach;
|
371 |
-
}
|
372 |
-
?>
|
373 |
-
</div>
|
374 |
-
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.3
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -95,6 +95,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
95 |
5. Backend Display Settings Section
|
96 |
|
97 |
== Changelog ==
|
|
|
|
|
|
|
98 |
= 1.0.7 =
|
99 |
* Change in the plugin's version and done some css fixes.
|
100 |
* Done the small bug fixing for plugin display error.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
95 |
5. Backend Display Settings Section
|
96 |
|
97 |
== Changelog ==
|
98 |
+
= 1.0.8 =
|
99 |
+
* Done the bug fixing for the widgets and shortcodes not working properly.
|
100 |
+
|
101 |
= 1.0.7 =
|
102 |
* Change in the plugin's version and done some css fixes.
|
103 |
* Done the small bug fixing for plugin display error.
|