Version Description
Download this release
Release Info
Developer | slickremix |
Plugin | Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest |
Version | 2.9.0 |
Comparing to | |
See all releases |
Code changes from version 2.8.9 to 2.9.0
- admin/class-fts-facebook-options-page.php +1 -1
- admin/class-fts-instagram-options-page.php +408 -408
- feed-them.php +5 -5
- feeds/instagram/class-fts-instagram-feed.php +4 -4
- feeds/js/magnific-popup.js +1 -1
- readme.txt +7 -2
admin/class-fts-facebook-options-page.php
CHANGED
@@ -107,7 +107,7 @@ class FTS_Facebook_Options_Page {
|
|
107 |
);
|
108 |
$test_app_token_url_biz = array(
|
109 |
'app_token_id_biz' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id_biz . '&access_token=' . $test_app_token_id_biz . '&',
|
110 |
-
/*'app_token_id' => 'https://graph.facebook.com/oauth/access_token?client_id=
|
111 |
);
|
112 |
// Test App ID
|
113 |
// Leave these for reference:
|
107 |
);
|
108 |
$test_app_token_url_biz = array(
|
109 |
'app_token_id_biz' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id_biz . '&access_token=' . $test_app_token_id_biz . '&',
|
110 |
+
/*'app_token_id' => 'https://graph.facebook.com/oauth/access_token?client_id=7054444020102908771&client_secret=7016612gg8c6a7b5424856282a5358f47b&grant_type=fb_exchange_token&fb_exchange_token=CAAKBNkjL3G2MBAK5jVUp1ZBCYCiLB8ZAdALWTEI4CesM8h3DeI4Jotngv4TKUsQZBwnbw9jiZCgyg0eEmlpiVauTsReKJWBgHe31xWCsbug1Tv3JhXZBEZBOdOIaz8iSZC6JVs4uc9RVjmyUq5H52w7IJVnxzcMuZBx4PThN3CfgKC5E4acJ9RnblrbKB37TBa1yumiPXDt72yiISKci7sqds0WFR3XsnkwQZD'*/
|
111 |
);
|
112 |
// Test App ID
|
113 |
// Leave these for reference:
|
admin/class-fts-instagram-options-page.php
CHANGED
@@ -20,150 +20,150 @@ namespace feedthemsocial;
|
|
20 |
*/
|
21 |
class FTS_Instagram_Options_Page {
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
$user_id_basic = isset( $_GET['access_token'], $_GET['feed_type'] ) && 'instagram_basic' === $_GET['feed_type'] ? sanitize_text_field( $_GET['user_id'] ) : $fts_instagram_custom_id;
|
46 |
$access_token_basic = isset( $_GET['access_token'], $_GET['feed_type'] ) && 'instagram_basic' === $_GET['feed_type'] ? sanitize_text_field( $_GET['access_token'] ) : get_option( 'fts_instagram_custom_api_token' );
|
47 |
-
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
|
57 |
$('#fts_instagram_custom_id').val('');
|
58 |
var str = '<?php echo esc_js( $access_token ); ?>';
|
59 |
$('#fts_instagram_custom_id').val($('#fts_instagram_custom_id').val() + str.split('.', 1));
|
60 |
-
|
61 |
-
|
62 |
|
63 |
$('#fts_instagram_custom_id').val('');
|
64 |
$('#fts_instagram_custom_id').val($('#fts_instagram_custom_id').val() + '<?php echo esc_js( $user_id_basic ); ?>');
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
|
98 |
$insta_url = esc_url_raw( 'https://graph.instagram.com/me?fields=id,username&access_token=' . $fts_instagram_access_token );
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
$fts_functions->feed_them_instagram_save_token();
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
|
164 |
str_replace(".", ".", $fts_instagram_access_token, $count);
|
165 |
|
166 |
-
|
167 |
echo sprintf(
|
168 |
esc_html( '%1$sThe %2$sLegacy API will be depreciated as of March 31st, 2020%3$s in favor of the new Instagram Graph API and the Instagram Basic Display API. Please click the the button above to reconnect your account or you can connect as a Business account below. You must also generate a new shortcode and replace your existing one.%4$s', 'feed-them-social' ),
|
169 |
'<div class="fts-failed-api-token instagram-failed-message">',
|
@@ -172,285 +172,285 @@ class FTS_Instagram_Options_Page {
|
|
172 |
'</div>'
|
173 |
);
|
174 |
}
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
}//end class
|
20 |
*/
|
21 |
class FTS_Instagram_Options_Page {
|
22 |
|
23 |
+
/**
|
24 |
+
* Construct
|
25 |
+
*
|
26 |
+
* Instagram Style Options Page constructor.
|
27 |
+
*
|
28 |
+
* @since 1.9.6
|
29 |
+
*/
|
30 |
+
public function __construct() {
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Feed Them Instagram Options Page
|
36 |
+
*
|
37 |
+
* @since 1.9.6
|
38 |
+
*/
|
39 |
+
public function feed_them_instagram_options_page() {
|
40 |
+
$fts_functions = new feed_them_social_functions();
|
41 |
+
$fts_instagram_access_token = get_option( 'fts_instagram_custom_api_token' );
|
42 |
+
$fts_instagram_custom_id = get_option( 'fts_instagram_custom_id' );
|
43 |
+
$fts_instagram_show_follow_btn = get_option( 'instagram_show_follow_btn' );
|
44 |
+
$fts_instagram_show_follow_btn_where = get_option( 'instagram_show_follow_btn_where' );
|
45 |
$user_id_basic = isset( $_GET['access_token'], $_GET['feed_type'] ) && 'instagram_basic' === $_GET['feed_type'] ? sanitize_text_field( $_GET['user_id'] ) : $fts_instagram_custom_id;
|
46 |
$access_token_basic = isset( $_GET['access_token'], $_GET['feed_type'] ) && 'instagram_basic' === $_GET['feed_type'] ? sanitize_text_field( $_GET['access_token'] ) : get_option( 'fts_instagram_custom_api_token' );
|
47 |
+
$access_token = isset( $_GET['access_token'], $_GET['feed_type'] ) && 'original_instagram' === $_GET['feed_type'] ? sanitize_text_field( $_GET['access_token'] ) : $access_token_basic;
|
48 |
|
49 |
+
if ( isset( $_GET['access_token'] ) ) { ?>
|
50 |
+
<script>
|
51 |
+
jQuery(document).ready(function ($) {
|
52 |
|
53 |
+
$('#fts_instagram_custom_api_token').val('');
|
54 |
+
$('#fts_instagram_custom_api_token').val($('#fts_instagram_custom_api_token').val() + '<?php echo esc_js( $access_token ); ?>');
|
55 |
|
56 |
+
<?php if ( 'original_instagram' === $_GET['feed_type'] ){ ?>
|
57 |
$('#fts_instagram_custom_id').val('');
|
58 |
var str = '<?php echo esc_js( $access_token ); ?>';
|
59 |
$('#fts_instagram_custom_id').val($('#fts_instagram_custom_id').val() + str.split('.', 1));
|
60 |
+
<?php }
|
61 |
+
elseif ( 'instagram_basic' === $_GET['feed_type'] ){ ?>
|
62 |
|
63 |
$('#fts_instagram_custom_id').val('');
|
64 |
$('#fts_instagram_custom_id').val($('#fts_instagram_custom_id').val() + '<?php echo esc_js( $user_id_basic ); ?>');
|
65 |
+
<?php } ?>
|
66 |
+
});
|
67 |
+
</script>
|
68 |
+
<?php } ?>
|
69 |
+
<div class="feed-them-social-admin-wrap">
|
70 |
+
<h1>
|
71 |
+
<?php esc_html_e( 'Instagram Feed Options', 'feed-them-social' ); ?>
|
72 |
+
</h1>
|
73 |
+
<div class="use-of-plugin">
|
74 |
+
<?php esc_html_e( 'Get your Access Token and add a follow button and position it using the options below.', 'feed-them-social' ); ?>
|
75 |
+
</div>
|
76 |
+
<!-- custom option for padding -->
|
77 |
+
<form method="post" class="fts-facebook-feed-options-form" action="options.php" id="fts-instagram-feed-options-form">
|
78 |
+
<?php
|
79 |
+
$fts_fb_options_nonce = wp_create_nonce( 'fts-instagram-options-page-nonce' );
|
80 |
+
|
81 |
+
if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-instagram-options-page-nonce' ) ) {
|
82 |
+
?>
|
83 |
+
|
84 |
+
<div class="feed-them-social-admin-input-wrap" style="padding-top:0px; ">
|
85 |
+
<div class="fts-title-description-settings-page">
|
86 |
+
<?php
|
87 |
+
// get our registered settings from the fts functions!
|
88 |
+
settings_fields( 'fts-instagram-feed-style-options' );
|
89 |
+
?>
|
90 |
+
<h3>
|
91 |
+
<?php esc_html_e( 'Instagram Basic API Token', 'feed-them-social' ); ?>
|
92 |
+
</h3>
|
93 |
+
<?php
|
94 |
+
|
95 |
+
|
96 |
+
// $insta_url = esc_url( 'https://api.instagram.com/v1/users/self/?access_token=' . $fts_instagram_access_token );
|
97 |
|
98 |
$insta_url = esc_url_raw( 'https://graph.instagram.com/me?fields=id,username&access_token=' . $fts_instagram_access_token );
|
99 |
|
100 |
+
// Get Data for Instagram!
|
101 |
+
$response = wp_remote_fopen( $insta_url );
|
102 |
+
// Error Check!
|
103 |
+
$test_app_token_response = json_decode( $response );
|
104 |
+
|
105 |
+
// echo '<pre>';
|
106 |
+
// print_r( $test_app_token_response );
|
107 |
+
// echo '</pre>';
|
108 |
+
|
109 |
+
?>
|
110 |
+
<p>
|
111 |
+
<?php
|
112 |
+
echo esc_html( 'This is required to make the Instagram Feed work. Click the button below and it will connect to your Instagram Account to get an access token. It will then return to this page and save it in the inputs below. After it finishes you will be able to generate your Instagram feed. Instagram Basic connections do not allow you to show Profile info or Heart/Comment counts. Please use the Instagram Business option to achieve that.', 'feed-them-social' );
|
113 |
+
?>
|
114 |
+
</p>
|
115 |
+
<p>
|
116 |
+
<?php
|
117 |
+
|
118 |
+
echo sprintf(
|
119 |
+
esc_html( '%1$sLogin and get my Access Token%2$s', 'feed-them-social' ),
|
120 |
+
'<a href="' . esc_url( 'https://api.instagram.com/oauth/authorize?app_id=206360940619297&redirect_uri=https://www.slickremix.com/instagram-basic-token/&response_type=code&scope=user_profile,user_media&state=' . admin_url( 'admin.php?page=fts-instagram-feed-styles-submenu-page' ) . '' ) . '" class="fts-instagram-get-access-token">',
|
121 |
+
'</a>'
|
122 |
+
);
|
123 |
+
?>
|
124 |
+
</p>
|
125 |
+
<a href="<?php echo esc_url( 'mailto:support@slickremix.com' ); ?>" class="fts-admin-button-no-work" style="margin-top: 14px; display: inline-block"><?php esc_html_e( 'Button not working?', 'feed-them-social' ); ?></a>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
<div class="fts-clear"></div>
|
129 |
+
|
130 |
+
<div class="feed-them-social-admin-input-wrap" style="margin-bottom:0">
|
131 |
+
<div class="feed-them-social-admin-input-label fts-instagram-border-bottom-color-label">
|
132 |
+
<?php esc_html_e( 'Instagram ID', 'feed-them-social' ); ?>
|
133 |
+
</div>
|
134 |
+
<input type="text" name="fts_instagram_custom_id" class="feed-them-social-admin-input" id="fts_instagram_custom_id" value="<?php echo esc_attr( $fts_instagram_custom_id ); ?>"/>
|
135 |
+
<div class="fts-clear"></div>
|
136 |
+
</div>
|
137 |
+
|
138 |
+
<div class="feed-them-social-admin-input-wrap">
|
139 |
+
<div class="feed-them-social-admin-input-label fts-instagram-border-bottom-color-label">
|
140 |
+
<?php
|
141 |
+
esc_html_e( 'Access Token Required', 'feed-them-social' );
|
142 |
+
|
143 |
+
if ( isset( $_GET['access_token'], $_GET['feed_type'] ) && 'original_instagram' === $_GET['feed_type'] || isset( $_GET['access_token'], $_GET['feed_type'] ) && 'instagram_basic' === $_GET['feed_type'] ) {
|
144 |
+
// START AJAX TO SAVE TOKEN TO DB
|
145 |
$fts_functions->feed_them_instagram_save_token();
|
146 |
+
}
|
147 |
+
?>
|
148 |
+
</div>
|
149 |
+
|
150 |
+
<input type="text" name="fts_instagram_custom_api_token" class="feed-them-social-admin-input" id="fts_instagram_custom_api_token" value="<?php echo esc_attr( $access_token ); ?>"/>
|
151 |
+
<div class="fts-clear"></div>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<div class="feed-them-social-admin-input-wrap fts-instagram-last-row" style="margin-top: 0; padding-top: 0">
|
155 |
+
<?php
|
156 |
+
// Error Check
|
157 |
+
// if the combined streams plugin is active we won't allow the settings page link to open up the Instagram Feed, instead we'll remove the #feed_type=instagram and just let the user manually select the combined streams or single instagram feed.
|
158 |
+
if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) {
|
159 |
+
$custom_instagram_link_hash = '';
|
160 |
+
} else {
|
161 |
+
$custom_instagram_link_hash = '#feed_type=instagram';
|
162 |
+
}
|
163 |
|
164 |
str_replace(".", ".", $fts_instagram_access_token, $count);
|
165 |
|
166 |
+
if( ! empty( $fts_instagram_access_token ) && 0 !== $count ){
|
167 |
echo sprintf(
|
168 |
esc_html( '%1$sThe %2$sLegacy API will be depreciated as of March 31st, 2020%3$s in favor of the new Instagram Graph API and the Instagram Basic Display API. Please click the the button above to reconnect your account or you can connect as a Business account below. You must also generate a new shortcode and replace your existing one.%4$s', 'feed-them-social' ),
|
169 |
'<div class="fts-failed-api-token instagram-failed-message">',
|
172 |
'</div>'
|
173 |
);
|
174 |
}
|
175 |
+
elseif ( ! isset( $test_app_token_response->error ) && ! empty( $fts_instagram_access_token ) ) {
|
176 |
+
echo sprintf(
|
177 |
+
esc_html( '%1$sYour access token is working! Generate your shortcode on the %2$sSettings Page%3$s', 'feed-them-social' ),
|
178 |
+
'<div class="fts-successful-api-token">',
|
179 |
+
'<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' . $custom_instagram_link_hash ) . '">',
|
180 |
+
'</a></div>'
|
181 |
+
);
|
182 |
+
} elseif ( isset( $test_app_token_response->error ) && ! empty( $fts_instagram_access_token ) ) {
|
183 |
+
$text = isset( $test_app_token_response->error->message ) ? $test_app_token_response->error->message : $test_app_token_response->error->message;
|
184 |
+
echo sprintf(
|
185 |
+
esc_html( '%1$sOh No something\'s wrong. %2$s Please try clicking the button again to get a new access token. If you need additional assistance please email us at support@slickremix.com %3$s', 'feed-them-social' ),
|
186 |
+
'<div class="fts-failed-api-token instagram-failed-message">',
|
187 |
+
esc_html( $text ),
|
188 |
+
'</div>'
|
189 |
+
);
|
190 |
+
}
|
191 |
+
|
192 |
+
$feed_type = isset( $_GET['feed_type'] ) ? $_GET['feed_type'] : '';
|
193 |
+
|
194 |
+
if ( empty( $fts_instagram_access_token ) && 'original_instagram' !== $feed_type ) {
|
195 |
+
echo sprintf(
|
196 |
+
esc_html( '%1$sYou are required to get an access token to view your photos.%2$s', 'feed-them-social' ),
|
197 |
+
'<div class="fts-failed-api-token instagram-failed-message">',
|
198 |
+
'</div>'
|
199 |
+
);
|
200 |
+
}
|
201 |
+
?>
|
202 |
+
</div>
|
203 |
+
<div class="fts-clear"></div>
|
204 |
+
</div>
|
205 |
+
|
206 |
+
|
207 |
+
|
208 |
+
|
209 |
+
|
210 |
+
<div id="fb-token-master-wrap" class="feed-them-social-admin-input-wrap" >
|
211 |
+
<div class="fts-title-description-settings-page">
|
212 |
+
<h3>
|
213 |
+
<?php esc_html_e( 'Instagram Business API Token', 'feed-them-social' ); ?>
|
214 |
+
</h3>
|
215 |
+
<?php
|
216 |
+
echo sprintf(
|
217 |
+
esc_html( 'You must have your Instagram Account linked to a Facebook Business Page, this is required to make the Instagram Business Feed or Hashtag Feed work. %1$sRead Instructions%2$s. Once you have completed the instructions you can click the button below and it will connect to your Facebook Account to get an access token. It should return a Facebook page or list of pages you are admin of and display which ones are connected to Instagram. Choose one, then click save. The Instagram Business option will allow you to display your profile info and the Heart/Comment counts on your media.', 'feed-them-social' ),
|
218 |
+
'<a target="_blank" href="' . esc_url( 'https://www.slickremix.com/docs/link-instagram-account-to-facebook/' ) . '">',
|
219 |
+
'</a>'
|
220 |
+
);
|
221 |
+
?>
|
222 |
+
<p>
|
223 |
+
<?php
|
224 |
+
|
225 |
+
// call to get instagram account attached to the facebook page
|
226 |
+
// 1844222799032692 = slicktest fb page (dev user)
|
227 |
+
// 1844222799032692?fields=instagram_business_account&access_token=
|
228 |
+
// This redirect url must have an &state= instead of a ?state= otherwise it will not work proper with the fb app. https://www.slickremix.com/instagram-token/&state=.
|
229 |
+
echo sprintf(
|
230 |
+
esc_html( '%1$sLogin and get my Access Token%2$s', 'feed-them-social' ),
|
231 |
+
'<a href="' . esc_url( 'https://www.facebook.com/dialog/oauth?client_id=1123168491105924&redirect_uri=https://www.slickremix.com/instagram-token/&state=' . admin_url( 'admin.php?page=fts-instagram-feed-styles-submenu-page' ) . '&scope=pages_show_list,pages_read_engagement,instagram_basic' ) . '" class="fts-facebook-get-access-token">',
|
232 |
+
'</a>'
|
233 |
+
);
|
234 |
+
?>
|
235 |
+
</p>
|
236 |
+
|
237 |
+
</div>
|
238 |
+
<a href="<?php echo esc_url( 'mailto:support@slickremix.com' ); ?>" target="_blank" class="fts-admin-button-no-work"><?php esc_html_e( 'Button not working?', 'feed-them-social' ); ?></a>
|
239 |
+
<?php
|
240 |
+
$test_app_token_id = get_option( 'fts_facebook_instagram_custom_api_token' );
|
241 |
+
if ( ! empty( $test_app_token_id ) || ! empty( $test_app_token_id_biz ) ) {
|
242 |
+
|
243 |
+
$test_app_token_url = array(
|
244 |
+
'app_token_id' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id . '&access_token=' . $test_app_token_id,
|
245 |
+
);
|
246 |
+
|
247 |
+
// Test App ID
|
248 |
+
$test_app_token_response = $fts_functions->fts_get_feed_json( $test_app_token_url );
|
249 |
+
$test_app_token_response = json_decode( $test_app_token_response['app_token_id'] );
|
250 |
+
|
251 |
+
// echo '<pre>';
|
252 |
+
// print_r($test_app_token_response);
|
253 |
+
// echo '</pre>';
|
254 |
+
}
|
255 |
+
?>
|
256 |
+
<div class="clear"></div>
|
257 |
+
<div class="feed-them-social-admin-input-wrap fts-fb-token-wrap" id="fts-fb-token-wrap" style="margin-bottom:0px;">
|
258 |
+
<div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
|
259 |
+
<?php esc_html_e( 'Instagram ID', 'feed-them-social' ); ?>
|
260 |
+
</div>
|
261 |
+
|
262 |
+
<input type="text" name="fts_facebook_instagram_custom_api_token_user_id" class="feed-them-social-admin-input" id="fts_facebook_instagram_custom_api_token_user_id" value="<?php echo esc_attr( get_option( 'fts_facebook_instagram_custom_api_token_user_id' ) ); ?>"/>
|
263 |
+
<div class="clear" style="margin-bottom:10px;"></div>
|
264 |
+
<div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
|
265 |
+
<?php esc_html_e( 'Access Token Required', 'feed-them-social' ); ?>
|
266 |
+
</div>
|
267 |
+
|
268 |
+
<input type="text" name="fts_facebook_instagram_custom_api_token" class="feed-them-social-admin-input" id="fts_facebook_instagram_custom_api_token" value="<?php echo esc_attr( get_option( 'fts_facebook_instagram_custom_api_token' ) ); ?>"/>
|
269 |
+
<div class="clear"></div>
|
270 |
+
|
271 |
+
<input type="text" hidden name="fts_facebook_instagram_custom_api_token_user_name" class="feed-them-social-admin-input" id="fts_facebook_instagram_custom_api_token_user_name" value="<?php echo esc_attr( get_option( 'fts_facebook_instagram_custom_api_token_user_name' ) ); ?>"/>
|
272 |
+
<input type="text" hidden name="fts_facebook_instagram_custom_api_token_profile_image" class="feed-them-social-admin-input" id="fts_facebook_instagram_custom_api_token_profile_image" value="<?php echo esc_attr( get_option( 'fts_facebook_instagram_custom_api_token_profile_image' ) ); ?>"/>
|
273 |
+
|
274 |
+
<div class="clear"></div>
|
275 |
+
<?php
|
276 |
+
if ( ! empty( $test_app_token_response ) && ! empty( $test_app_token_id ) ) {
|
277 |
+
if ( isset( $test_app_token_response->data->is_valid ) || '(#100) You must provide an app access token or a user access token that is an owner or developer of the app' === $test_app_token_response->error->message ) {
|
278 |
+
$fb_id = get_option( 'fts_facebook_instagram_custom_api_token_user_id' );
|
279 |
+
$fb_name = get_option( 'fts_facebook_instagram_custom_api_token_user_name' );
|
280 |
+
echo '<div class="fts-successful-api-token fts-special-working-wrap">';
|
281 |
+
|
282 |
+
if ( ! empty( $fb_id ) && ! empty( $fb_name ) && ! empty( $test_app_token_id ) ) {
|
283 |
+
echo '<a href="' . esc_url( 'https://www.facebook.com/' . get_option( 'fts_facebook_instagram_custom_api_token_user_id' ) ) . '" target="_blank"><img border="0" height="50" width="50" class="fts-fb-page-thumb" src="' . get_option( 'fts_facebook_instagram_custom_api_token_profile_image' ) . '"/></a><h3><a href="' . esc_url( 'https://www.facebook.com/' . get_option( 'fts_facebook_custom_api_token_user_id' ) ) . '" target="_blank">' . wp_kses(
|
284 |
+
$fb_name,
|
285 |
+
array(
|
286 |
+
'span' => array(
|
287 |
+
'class' => array(),
|
288 |
+
),
|
289 |
+
)
|
290 |
+
) . '</a></h3>';
|
291 |
+
}
|
292 |
+
|
293 |
+
echo sprintf(
|
294 |
+
esc_html( 'Your access token is working! Generate your shortcode on the %1$sSettings Page%2$s', 'feed-them-social' ),
|
295 |
+
'<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' . $custom_instagram_link_hash ) . '">',
|
296 |
+
'</a>'
|
297 |
+
);
|
298 |
+
|
299 |
+
echo '</div>';
|
300 |
+
}
|
301 |
+
if ( isset( $test_app_token_response->data->error->message ) && ! empty( $test_app_token_id ) || isset( $test_app_token_response->error->message ) && ! empty( $test_app_token_id ) && '(#100) You must provide an app access token or a user access token that is an owner or developer of the app' !== $test_app_token_response->error->message ) {
|
302 |
+
if ( isset( $test_app_token_response->data->error->message ) ) {
|
303 |
+
echo sprintf(
|
304 |
+
esc_html( '%1$sOh No something\'s wrong. %2$s. Please click the button above to retrieve a new Access Token.%3$s', 'feed-them-social' ),
|
305 |
+
'<div class="fts-failed-api-token">',
|
306 |
+
esc_html( $test_app_token_response->data->error->message ),
|
307 |
+
'</div>'
|
308 |
+
);
|
309 |
+
}
|
310 |
+
if ( isset( $test_app_token_response->error->message ) ) {
|
311 |
+
echo sprintf(
|
312 |
+
esc_html( '%1$sOh No something\'s wrong. %2$s. Please click the button above to retrieve a new Access Token.%3$s', 'feed-them-social' ),
|
313 |
+
'<div class="fts-failed-api-token">',
|
314 |
+
esc_html( $test_app_token_response->error->message ),
|
315 |
+
'</div>'
|
316 |
+
);
|
317 |
+
}
|
318 |
+
|
319 |
+
if ( isset( $test_app_token_response->data->error->message ) && empty( $test_app_token_id ) || isset( $test_app_token_response->error->message ) && empty( $test_app_token_id ) ) {
|
320 |
+
echo sprintf(
|
321 |
+
esc_html( '%1$sTo get started, please click the button above to retrieve your Access Token.%2$s', 'feed-them-social' ),
|
322 |
+
'<div class="fts-failed-api-token get-started-message">',
|
323 |
+
'</div>'
|
324 |
+
);
|
325 |
+
}
|
326 |
+
}
|
327 |
+
} else {
|
328 |
+
if ( ! isset( $_GET['return_long_lived_token'] ) || isset( $_GET['reviews_token'] ) ) {
|
329 |
+
echo sprintf(
|
330 |
+
esc_html( '%1$sTo get started, please click the button above to retrieve your Access Token.%2$s', 'feed-them-social' ),
|
331 |
+
'<div class="fts-failed-api-token get-started-message">',
|
332 |
+
'</div>'
|
333 |
+
);
|
334 |
+
}
|
335 |
+
}
|
336 |
+
?>
|
337 |
+
<div class="clear"></div>
|
338 |
+
|
339 |
+
<?php
|
340 |
+
|
341 |
+
if ( isset( $_GET['return_long_lived_token'], $_GET['feed_type'] ) && ! isset( $_GET['reviews_token'] ) && 'instagram_basic' !== $_GET['feed_type'] ) {
|
342 |
+
// Echo our shortcode for the page token list with loadmore button
|
343 |
+
// These functions are on feed-them-functions.php!
|
344 |
+
echo do_shortcode( '[fts_fb_page_token]' );
|
345 |
+
|
346 |
+
}
|
347 |
+
?>
|
348 |
+
</div>
|
349 |
+
|
350 |
+
<div class="clear"></div>
|
351 |
+
</div>
|
352 |
+
<!--/fts-facebook-feed-styles-input-wrap-->
|
353 |
+
|
354 |
+
|
355 |
+
|
356 |
+
|
357 |
+
|
358 |
+
<div class="feed-them-social-admin-input-wrap">
|
359 |
+
<div class="fts-title-description-settings-page">
|
360 |
+
<h3>
|
361 |
+
<?php esc_html_e( 'Follow Button Options', 'feed-them-social' ); ?>
|
362 |
+
</h3>
|
363 |
+
<?php esc_html_e( 'This will only show on regular feeds not combined or hashtag feeds.', 'feed-them-social' ); ?>
|
364 |
+
</div>
|
365 |
+
<div class="feed-them-social-admin-input-label fts-instagram-text-color-label">
|
366 |
+
<?php esc_html_e( 'Show Follow Button', 'feed-them-social' ); ?>
|
367 |
+
</div>
|
368 |
+
<select name="instagram_show_follow_btn" id="instagram-show-follow-btn" class="feed-them-social-admin-input">
|
369 |
+
<option <?php echo selected( $fts_instagram_show_follow_btn, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
|
370 |
+
<?php esc_html_e( 'No', 'feed-them-social' ); ?>
|
371 |
+
</option>
|
372 |
+
<option <?php echo selected( $fts_instagram_show_follow_btn, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
|
373 |
+
<?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
|
374 |
+
</option>
|
375 |
+
</select>
|
376 |
+
<div class="fts-clear"></div>
|
377 |
+
</div>
|
378 |
+
<!--/fts-instagram-feed-styles-input-wrap-->
|
379 |
+
|
380 |
+
<div class="feed-them-social-admin-input-wrap">
|
381 |
+
<div class="feed-them-social-admin-input-label fts-instagram-text-color-label">
|
382 |
+
<?php esc_html_e( 'Placement of the Buttons', 'feed-them-social' ); ?>
|
383 |
+
</div>
|
384 |
+
<select name="instagram_show_follow_btn_where" id="instagram-show-follow-btn-where" class="feed-them-social-admin-input">
|
385 |
+
<option>
|
386 |
+
<?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
|
387 |
+
</option>
|
388 |
+
<option
|
389 |
+
'<?php echo selected( $fts_instagram_show_follow_btn_where, 'instagram-follow-above', false ); ?>
|
390 |
+
'
|
391 |
+
value="<?php echo esc_attr( 'instagram-follow-above' ); ?>">
|
392 |
+
<?php esc_html_e( 'Show Above Feed', 'feed-them-social' ); ?>
|
393 |
+
</option>
|
394 |
+
<option
|
395 |
+
'<?php echo selected( $fts_instagram_show_follow_btn_where, 'instagram-follow-below', false ); ?>
|
396 |
+
'
|
397 |
+
value="<?php echo esc_attr( 'instagram-follow-below' ); ?>">
|
398 |
+
<?php esc_html_e( 'Show Below Feed', 'feed-them-social' ); ?>
|
399 |
+
</option>
|
400 |
+
</select>
|
401 |
+
<div class="fts-clear"></div>
|
402 |
+
</div>
|
403 |
+
<!--/fts-instagram-feed-styles-input-wrap-->
|
404 |
+
<?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
|
405 |
+
|
406 |
+
<div class="feed-them-social-admin-input-wrap">
|
407 |
+
<div class="fts-title-description-settings-page">
|
408 |
+
<h3>
|
409 |
+
<?php esc_html_e( 'Load More Button Styles & Options', 'feed-them-social' ); ?>
|
410 |
+
</h3>
|
411 |
+
</div>
|
412 |
+
<div class="feed-them-social-admin-input-wrap">
|
413 |
+
<div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
|
414 |
+
<?php esc_html_e( 'Load More Button Color', 'feed-them-social' ); ?>
|
415 |
+
</div>
|
416 |
+
<input type="text" name="instagram_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="instagram-loadmore-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'instagram_loadmore_background_color' ) ); ?>"/>
|
417 |
+
<div class="fts-clear"></div>
|
418 |
+
</div>
|
419 |
+
<!--/fts-instagram-feed-styles-input-wrap-->
|
420 |
+
|
421 |
+
<div class="feed-them-social-admin-input-wrap">
|
422 |
+
<div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
|
423 |
+
<?php esc_html_e( 'Load More Button Text Color', 'feed-them-social' ); ?>
|
424 |
+
</div>
|
425 |
+
<input type="text" name="instagram_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="instagram-loadmore-text-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'instagram_loadmore_text_color' ) ); ?>"/>
|
426 |
+
<div class="fts-clear"></div>
|
427 |
+
</div>
|
428 |
+
<!--/fts-instagram-feed-styles-input-wrap-->
|
429 |
+
|
430 |
+
<div class="feed-them-social-admin-input-wrap">
|
431 |
+
<div class="feed-them-social-admin-input-label">
|
432 |
+
<?php esc_html_e( '"Load More" Text', 'feed-them-social' ); ?>
|
433 |
+
</div>
|
434 |
+
<input type="text" name="instagram_load_more_text" class="feed-them-social-admin-input" id="instagram_load_more_text" placeholder="Load More" value="<?php echo esc_attr( get_option( 'instagram_load_more_text' ) ); ?>"/>
|
435 |
+
<div class="clear"></div>
|
436 |
+
</div>
|
437 |
+
<!--/fts-instagram-feed-styles-input-wrap-->
|
438 |
+
|
439 |
+
<div class="feed-them-social-admin-input-wrap">
|
440 |
+
<div class="feed-them-social-admin-input-label">
|
441 |
+
<?php esc_html_e( '"No More Photos" Text', 'feed-them-social' ); ?>
|
442 |
+
</div>
|
443 |
+
<input type="text" name="instagram_no_more_photos_text" class="feed-them-social-admin-input" id="instagram_no_more_photos_text" placeholder="No More Photos" value="<?php echo esc_attr( get_option( 'instagram_no_more_photos_text' ) ); ?>"/>
|
444 |
+
<div class="clear"></div>
|
445 |
+
</div>
|
446 |
+
<!--/fts-instagram-feed-styles-input-wrap-->
|
447 |
+
<?php } ?>
|
448 |
+
<input type="submit" class="feed-them-social-admin-submit-btn" value="<?php esc_html_e( 'Save All Changes' ); ?>"/>
|
449 |
+
<?php } ?>
|
450 |
+
</form>
|
451 |
+
</div>
|
452 |
+
<!--/feed-them-social-admin-wrap-->
|
453 |
+
|
454 |
+
<?php
|
455 |
+
}
|
456 |
+
}//end class
|
feed-them.php
CHANGED
@@ -7,18 +7,18 @@
|
|
7 |
* Plugin Name: Feed Them Social - for Twitter feed, Youtube, Pinterest and more
|
8 |
* Plugin URI: https://feedthemsocial.com/
|
9 |
* Description: Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
|
10 |
-
* Version: 2.
|
11 |
* Author: SlickRemix
|
12 |
* Author URI: https://www.slickremix.com/
|
13 |
* Text Domain: feed-them-social
|
14 |
* Domain Path: /languages
|
15 |
* Requires at least: WordPress 4.0.0
|
16 |
-
* Tested up to: WordPress 5.5.
|
17 |
-
* Stable tag: 2.
|
18 |
* License: GPLv2 or later
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
-
* @version 2.
|
22 |
* @package FeedThemSocial/Core
|
23 |
* @copyright Copyright (c) 2012-2020 SlickRemix
|
24 |
*
|
@@ -31,7 +31,7 @@
|
|
31 |
*
|
32 |
* Makes sure any js or css changes are reloaded properly. Added to enqued css and js files throughout!
|
33 |
*/
|
34 |
-
define( 'FTS_CURRENT_VERSION', '2.
|
35 |
|
36 |
define( 'FEED_THEM_SOCIAL_NOTICE_STATUS', get_option( 'rating_fts_slick_notice', false ) );
|
37 |
|
7 |
* Plugin Name: Feed Them Social - for Twitter feed, Youtube, Pinterest and more
|
8 |
* Plugin URI: https://feedthemsocial.com/
|
9 |
* Description: Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
|
10 |
+
* Version: 2.9.0
|
11 |
* Author: SlickRemix
|
12 |
* Author URI: https://www.slickremix.com/
|
13 |
* Text Domain: feed-them-social
|
14 |
* Domain Path: /languages
|
15 |
* Requires at least: WordPress 4.0.0
|
16 |
+
* Tested up to: WordPress 5.5.2
|
17 |
+
* Stable tag: 2.9.0
|
18 |
* License: GPLv2 or later
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
+
* @version 2.9.0
|
22 |
* @package FeedThemSocial/Core
|
23 |
* @copyright Copyright (c) 2012-2020 SlickRemix
|
24 |
*
|
31 |
*
|
32 |
* Makes sure any js or css changes are reloaded properly. Added to enqued css and js files throughout!
|
33 |
*/
|
34 |
+
define( 'FTS_CURRENT_VERSION', '2.9.0' );
|
35 |
|
36 |
define( 'FEED_THEM_SOCIAL_NOTICE_STATUS', get_option( 'rating_fts_slick_notice', false ) );
|
37 |
|
feeds/instagram/class-fts-instagram-feed.php
CHANGED
@@ -163,11 +163,11 @@ class FTS_Instagram_Feed extends feed_them_social_functions {
|
|
163 |
|
164 |
$instagram_api_children = isset( $post_data->images ) ? $post_data->images->standard_resolution->url : $hashtag_children;
|
165 |
|
166 |
-
$data_type_child = strpos( $hashtag_children, 'mp4' ) ? $post_data->
|
167 |
|
168 |
$hastag_media_url = isset( $post_data->media_url ) ? $post_data->media_url : $data_type_child;
|
169 |
|
170 |
-
$hastag_media_url_final = isset( $post_data->media_type ) && 'VIDEO' === $post_data->media_type ? $post_data->
|
171 |
|
172 |
$instagram_lowrez_url = isset( $post_data->images->standard_resolution->url ) ? $post_data->images->standard_resolution->url : $hastag_media_url_final;
|
173 |
|
@@ -395,7 +395,7 @@ class FTS_Instagram_Feed extends feed_them_social_functions {
|
|
395 |
$_REQUEST['next_url'] = str_replace( 'access_token=XXX', 'access_token=' . $fts_instagram_access_token_final, $_REQUEST['next_url'] );
|
396 |
}
|
397 |
// URL to get Feeds.
|
398 |
-
$debug = 'false';
|
399 |
if ( 'hashtag' === $type ) {
|
400 |
// cheezballs = 17843830210018045
|
401 |
// sleepytime = 17841401899184039
|
@@ -835,7 +835,7 @@ if ( isset( $profile_description, $type ) && 'yes' === $profile_description &&
|
|
835 |
echo esc_html( 'To see the Instagram feed you need to add your own API Token to the Instagram Options page of our plugin.', 'feed-them-social' ) . '</div>';
|
836 |
}
|
837 |
}
|
838 |
-
// echo '<pre style="text-align: left;">asdfasdf';
|
839 |
// print_r( $insta_data );
|
840 |
// echo '</pre>';
|
841 |
foreach ( $insta_data->data as $post_data ) {
|
163 |
|
164 |
$instagram_api_children = isset( $post_data->images ) ? $post_data->images->standard_resolution->url : $hashtag_children;
|
165 |
|
166 |
+
$data_type_child = strpos( $hashtag_children, 'mp4' ) ? $post_data->media_url : $instagram_api_children;
|
167 |
|
168 |
$hastag_media_url = isset( $post_data->media_url ) ? $post_data->media_url : $data_type_child;
|
169 |
|
170 |
+
$hastag_media_url_final = isset( $post_data->media_type ) && 'VIDEO' === $post_data->media_type ? $post_data->thumbnail_url : $hastag_media_url;
|
171 |
|
172 |
$instagram_lowrez_url = isset( $post_data->images->standard_resolution->url ) ? $post_data->images->standard_resolution->url : $hastag_media_url_final;
|
173 |
|
395 |
$_REQUEST['next_url'] = str_replace( 'access_token=XXX', 'access_token=' . $fts_instagram_access_token_final, $_REQUEST['next_url'] );
|
396 |
}
|
397 |
// URL to get Feeds.
|
398 |
+
// $debug = 'false';
|
399 |
if ( 'hashtag' === $type ) {
|
400 |
// cheezballs = 17843830210018045
|
401 |
// sleepytime = 17841401899184039
|
835 |
echo esc_html( 'To see the Instagram feed you need to add your own API Token to the Instagram Options page of our plugin.', 'feed-them-social' ) . '</div>';
|
836 |
}
|
837 |
}
|
838 |
+
// echo '<pre style="text-align: left;">asdfasdf ';
|
839 |
// print_r( $insta_data );
|
840 |
// echo '</pre>';
|
841 |
foreach ( $insta_data->data as $post_data ) {
|
feeds/js/magnific-popup.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,o,i,s,a,r,n="Close",p="BeforeClose",l="MarkupParse",f="Open",c="Change",u="mfp",d="."+u,m="mfp-ready",h="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,b=e(window),w=function(e,o){t.ev.on(u+e+d,o)},j=function(t,o,i,s){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),s?o&&o.appendChild(a):(a=e(a),o&&a.appendTo(o)),a},C=function(o,i){t.ev.triggerHandler(u+o,i),t.st.callbacks&&(o=o.charAt(0).toLowerCase()+o.slice(1),t.st.callbacks[o]&&t.st.callbacks[o].apply(t,e.isArray(i)?i:[i]))},Q=function(o){return o===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=o),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new v).init(),e.magnificPopup.instance=t)};v.prototype={constructor:v,init:function(){var o=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(o),t.isIOS=/iphone|ipad|ipod/gi.test(o),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(o){var s;if(!1===o.isObj){t.items=o.items.toArray(),t.index=0;var r,n=o.items;for(s=0;s<n.length;s++)if((r=n[s]).parsed&&(r=r.el[0]),r===o.el[0]){t.index=s;break}}else t.items=e.isArray(o.items)?o.items:[o.items],t.index=o.index||0;if(!t.isOpen){t.types=[],a="",o.mainEl&&o.mainEl.length?t.ev=o.mainEl.eq(0):t.ev=i,o.key?(t.popupsCache[o.key]||(t.popupsCache[o.key]={}),t.currTemplate=t.popupsCache[o.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,o),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=j("bg").on("click"+d,function(){t.close()}),t.wrap=j("wrap").attr("tabindex",-1).on("click"+d,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=j("container",t.wrap)),t.contentContainer=j("content"),t.st.preloader&&(t.preloader=j("preloader",t.container,t.st.tLoading));var p=e.magnificPopup.modules;for(s=0;s<p.length;s++){var c=p[s];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}C("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(w(l,function(e,t,o,i){o.close_replaceWith=Q(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(Q())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+d,function(e){27===e.keyCode&&t.close()}),b.on("resize"+d,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=b.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(u)){var g=t._getScrollbarSize();g&&(h.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),C("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),i.on("focusin"+d,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(u),C(f),o}t.updateItemHTML()},close:function(){t.isOpen&&(C(p),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){C(n);var o=h+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(o+=t.st.mainClass+" "),t._removeClassFromMFP(o),t.fixedContentPos){var s={marginRight:""};t.isIE7?e("body, html").css("overflow",""):s.overflow="",e("html").css(s)}i.off("keyup.mfp focusin"+d),t.ev.off(d),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,C("AfterClose")},updateSize:function(e){if(t.isIOS){var o=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*o;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),C("Resize")},updateItemHTML:function(){var o=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),o.parsed||(o=t.parseEl(t.index));var i=o.type;if(C("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=o,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;C("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}s&&s!==o.type&&t.container.removeClass("mfp-"+s+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](o,t.currTemplate[i]);t.appendContent(r,i),o.preloaded=!0,C(c,o),s=o.type,t.container.prepend(t.contentContainer),C("AfterChange")},appendContent:function(e,o){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[o]?t.content.find(".mfp-close").length||t.content.append(Q()):t.content=e:t.content="",C("BeforeAppend"),t.container.addClass("mfp-"+o+"-holder"),t.contentContainer.append(t.content)},parseEl:function(o){var i,s=t.items[o];if(s.tagName?s={el:e(s)}:(i=s.type,s={data:s,src:s.src}),s.el){for(var a=t.types,r=0;r<a.length;r++)if(s.el.hasClass("mfp-"+a[r])){i=a[r];break}s.src=s.el.attr("data-mfp-src"),s.src||(s.src=s.el.attr("href"))}return s.type=i||t.st.type||"inline",s.index=o,s.parsed=!0,t.items[o]=s,C("ElementParse",s),t.items[o]},addGroup:function(e,o){var i=function(i){i.mfpEl=this,t._openClick(i,e,o)};o||(o={});var s="click.magnificPopup";o.mainEl=e,o.items?(o.isObj=!0,e.off(s).on(s,i)):(o.isObj=!1,o.delegate?e.off(s).on(s,o.delegate,i):(o.items=e,e.off(s).on(s,i)))},_openClick:function(o,i,s){if((void 0!==s.midClick?s.midClick:e.magnificPopup.defaults.midClick)||!(2===o.which||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey)){var a=void 0!==s.disableOn?s.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(b.width()<a)return!0;o.type&&(o.preventDefault(),t.isOpen&&o.stopPropagation()),s.el=e(o.mfpEl),s.delegate&&(s.items=i.find(s.delegate)),t.open(s)}},updateStatus:function(e,i){if(t.preloader){o!==e&&t.container.removeClass("mfp-s-"+o),i||"loading"!==e||(i=t.st.tLoading);var s={status:e,text:i};C("UpdateStatus",s),e=s.status,i=s.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),o=e}},_checkIfClose:function(o){if(!e(o).hasClass(g)){var i=t.st.closeOnContentClick,s=t.st.closeOnBgClick;if(i&&s)return!0;if(!t.content||e(o).hasClass("mfp-close")||t.preloader&&o===t.preloader[0])return!0;if(o===t.content[0]||e.contains(t.content[0],o)){if(i)return!0}else if(s&&e.contains(document,o))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(o){return o.target===t.wrap[0]||e.contains(t.wrap[0],o.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,o,i){var s;i.data&&(o=e.extend(i.data,o)),C(l,[t,o,i]),e.each(o,function(o,i){if(void 0===i||!1===i)return!0;if((s=o.split("_")).length>1){var a=t.find(d+"-"+s[0]);if(a.length>0){var r=s[1];"replaceWith"===r?a[0]!==i[0]&&a.replaceWith(i):"img"===r?a.is("img")?a.attr("src",i):a.replaceWith(e("<img>").attr("src",i).attr("class",a.attr("class"))):a.attr(s[1],i)}}else t.find(d+"-"+o).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(t,o){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=o||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,o){o.options&&(e.magnificPopup.defaults[t]=o.options),e.extend(this.proto,o.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(o){k();var i=e(this);if("string"==typeof o)if("open"===o){var s,a=y?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?s=a.items[r]:(s=i,a.delegate&&(s=s.find(a.delegate)),s=s.eq(r)),t._openClick({mfpEl:s},i,a)}else t.isOpen&&t[o].apply(t,Array.prototype.slice.call(arguments,1));else o=e.extend(!0,{},o),y?i.data("magnificPopup",o):i[0].magnificPopup=o,t.addGroup(i,o);return i};var x,I,P,T="inline",S=function(){P&&(I.after(P.addClass(x)).detach(),P=null)};e.magnificPopup.registerModule(T,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(T),w(n+"."+T,function(){S()})},getInline:function(o,i){if(S(),o.src){var s=t.st.inline,a=e(o.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(I||(x=s.hiddenClass,I=j(x),x="mfp-"+x),P=a.after(I).detach().removeClass(x)),t.updateStatus("ready")}else t.updateStatus("error",s.tNotFound),a=e("<div>");return o.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},o),i}}});var _,O="ajax",z=function(){_&&e(document.body).removeClass(_)},E=function(){z(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(O),_=t.st.ajax.cursor,w(n+"."+O,E),w("BeforeChange."+O,E)},getAjax:function(o){_&&e(document.body).addClass(_),t.updateStatus("loading");var i=e.extend({url:o.src,success:function(i,s,a){var r={data:i,xhr:a};C("ParseAjax",r),t.appendContent(e(r.data),O),o.finished=!0,z(),t._setFocus(),setTimeout(function(){t.wrap.addClass(m)},16),t.updateStatus("ready"),C("AjaxContentAdded")},error:function(){z(),o.finished=o.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",o.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var B,F,M=function(o){if(o.data&&void 0!==o.data.title)return o.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,o);if(o.el)return o.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var o=t.st.image,i=".image";t.types.push("image"),w(f+i,function(){"image"===t.currItem.type&&o.cursor&&e(document.body).addClass(o.cursor)}),w(n+i,function(){o.cursor&&e(document.body).removeClass(o.cursor),b.off("resize"+d)}),w("Resize"+i,t.resizeImage),t.isLowIE&&w("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var o=0;t.isLowIE&&(o=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-o)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var o=0,i=e.img[0],s=function(a){B&&clearInterval(B),B=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(o>200&&clearInterval(B),void(3==++o?s(10):40===o?s(50):100===o&&s(500)))},a)};s(1)},getImage:function(o,i){var s=0,a=function(){o&&(o.img[0].complete?(o.img.off(".mfploader"),o===t.currItem&&(t._onImageHasSize(o),t.updateStatus("ready")),o.hasSize=!0,o.loaded=!0,C("ImageLoadComplete")):200>++s?setTimeout(a,100):r())},r=function(){o&&(o.img.off(".mfploader"),o===t.currItem&&(t._onImageHasSize(o),t.updateStatus("error",n.tError.replace("%url%",o.src))),o.hasSize=!0,o.loaded=!0,o.loadError=!0)},n=t.st.image,p=i.find(".mfp-img");if(p.length){var l=document.createElement("img");l.className="mfp-img",o.el&&o.el.find("img").length&&(l.alt=o.el.find("img").attr("alt")),o.img=e(l).on("load.mfploader",a).on("error.mfploader",r),l.src=o.src,p.is("img")&&(o.img=o.img.clone()),(l=o.img[0]).naturalWidth>0?o.hasSize=!0:l.width||(o.hasSize=!1)}return t._parseMarkup(i,{title:M(o),img_replaceWith:o.img},o),t.resizeImage(),o.hasSize?(B&&clearInterval(B),o.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",n.tError.replace("%url%",o.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),o.loading=!0,o.hasSize||(o.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(o)),i)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,o=t.st.zoom,i=".zoom";if(o.enabled&&t.supportsTransition){var s,a,r=o.duration,l=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+o.duration/1e3+"s "+o.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return s["-webkit-"+a]=s["-moz-"+a]=s["-o-"+a]=s[a]=i,t.css(s),t},f=function(){t.content.css("visibility","visible")};w("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(s),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void f();(a=l(e)).css(t._getOffset()),t.wrap.append(a),s=setTimeout(function(){a.css(t._getOffset(!0)),s=setTimeout(function(){f(),setTimeout(function(){a.remove(),e=a=null,C("ZoomAnimationEnded")},16)},r)},16)}}),w(p+i,function(){if(t._allowZoom()){if(clearTimeout(s),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=l(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),w(n+i,function(){t._allowZoom()&&(f(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(o){var i,s=(i=o?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);s.top-=e(window).scrollTop()-a;var n={width:i.width(),height:(y?i.innerHeight():i[0].offsetHeight)-r-a};return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F?n["-moz-transform"]=n.transform="translate("+s.left+"px,"+s.top+"px)":(n.left=s.left,n.top=s.top),n}}});var L="iframe",A=function(e){if(t.currTemplate[L]){var o=t.currTemplate[L].find("iframe");o.length&&(e||(o[0].src="//about:blank"),t.isIE8&&o.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(L),w("BeforeChange",function(e,t,o){t!==o&&(t===L?A():o===L&&A(!0))}),w(n+"."+L,function(){A()})},getIframe:function(o,i){var s=o.src,a=t.st.iframe;e.each(a.patterns,function(){return s.indexOf(this.index)>-1?(this.id&&(s="string"==typeof this.id?s.substr(s.lastIndexOf(this.id)+this.id.length,s.length):this.id.call(this,s)),s=this.src.replace("%id%",s),!1):void 0});var r={};return a.srcAction&&(r[a.srcAction]=s),t._parseMarkup(i,r,o),t.updateStatus("ready"),i}}});var H=function(e){var o=t.items.length;return e>o-1?e-o:0>e?o+e:e},N=function(e,t,o){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,o)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=t.st.gallery,s=".mfp-gallery";return t.direction=!0,!(!o||!o.enabled)&&(a+=" mfp-gallery",w(f+s,function(){o.navigateByImgClick&&t.wrap.on("click"+s,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),i.on("keydown"+s,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),w("UpdateStatus"+s,function(e,o){o.text&&(o.text=N(o.text,t.currItem.index,t.items.length))}),w(l+s,function(e,i,s,a){var r=t.items.length;s.counter=r>1?N(o.tCounter,a.index,r):""}),w("BuildControls"+s,function(){if(t.items.length>1&&o.arrows&&!t.arrowLeft){var i=o.arrowMarkup,s=t.arrowLeft=e(i.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(g),a=t.arrowRight=e(i.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(g);s.click(function(){t.prev()}),a.click(function(){t.next()}),t.container.append(s.add(a))}}),w(c+s,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void w(n+s,function(){i.off(s),t.wrap.off("click"+s),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=H(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=H(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,o=t.st.gallery.preload,i=Math.min(o[0],t.items.length),s=Math.min(o[1],t.items.length);for(e=1;e<=(t.direction?s:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:s);e++)t._preloadItem(t.index-e)},_preloadItem:function(o){if(o=H(o),!t.items[o].preloaded){var i=t.items[o];i.parsed||(i=t.parseEl(o)),C("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var W="retina";e.magnificPopup.registerModule(W,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,o=e.ratio;(o=isNaN(o)?o():o)>1&&(w("ImageHasSize."+W,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),w("ElementParse."+W,function(t,i){i.src=e.replaceSrc(i,o)}))}}}}),k()}),jQuery(document).ready(function(){jQuery(".popup-gallery-twitter").each(function(){jQuery(this).magnificPopup({delegate:"a.fts-twitter-link-image",type:"image",tLoading:"Loading image #%curr%...",mainClass:"fts-instagram-img-mobile",removalDelay:100,mainClass:"fts-instagram-fade",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.parents(".fts-tweeter-wrap, .fts-feed-type-twitter").find(".fts-twitter-text, .fts-mashup-description-wrap").html()}}})});var e=jQuery.magnificPopup.instance;jQuery("body").on("click","#fts-photo-prev",function(){e.prev(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())}),jQuery("body").on("click","#fts-photo-next",function(){e.next(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()&&jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height())}),jQuery("body").on("click",".fts-facebook-popup .mfp-image-holder .fts-popup-image-position",function(){e.next(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()&&jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height())}),jQuery("body").on("click","#fts-photo-prev, #fts-photo-next, .fts-facebook-popup .mfp-image-holder .fts-popup-image-position",function(e){jQuery("body").addClass("fts-using-arrows"),setTimeout(function(){jQuery.fn.ftsShare(),/fbcdn.net/i.test(jQuery(".fts-iframe-popup-element").attr("src"))||/scontent.cdninstagram.com/i.test(jQuery(".fts-iframe-popup-element").attr("src"))?(jQuery("body").addClass("fts-video-iframe-choice"),jQuery(".fts-video-popup-element").show(),jQuery(".fts-iframe-popup-element").attr("src","").hide()):(jQuery("body").removeClass("fts-video-iframe-choice, .fts-using-arrows"),jQuery(".fts-video-popup-element").attr("src","").hide(),jQuery(".fts-iframe-popup-element").show()),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()&&jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()),jQuery(".fts-popup-second-half .fts-greater-than-width-height")[0]?(console.log("Arrows: Open Callback: Irregular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".fts-popup-image-position").css({height:"100%","min-height":"auto"}),jQuery(".mfp-iframe-scaler").css("padding-top","100%")):jQuery(".fts-popup-second-half .fts-equal-width-height")[0]?(console.log("Arrows: Open Callback: Square size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".mfp-iframe-scaler").css("padding-top","")):(console.log("Arrows: Open Callback: Regular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:"100%"}),jQuery(".mfp-iframe-scaler").css("padding-top","56.0%"),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-half").height()))},10)}),jQuery.fn.slickFacebookPopUpFunction=function(){jQuery(".popup-gallery-fb-posts, .popup-gallery-fb, .popup-video-gallery-fb").each(function(){var e=jQuery(this).find("a.fts-facebook-link-target, a.fts-fb-large-photo, a.fts-view-album-photos-large, a.fts-view-fb-videos-large, a.fts-view-fb-videos-btn, a.fts-jal-fb-vid-html5video"),t=[];e.each(function(){var e=jQuery(this),o="image";if(e.hasClass("fts-jal-fb-vid-image")||e.hasClass("fts-view-fb-videos-btn")){o="iframe";var i=jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-fb-embed-iframe-check-used-for-popup").html();if(i)var s=i;else s=""}else s="";var a={src:e.attr("href"),type:o},r=jQuery(this).parents(".fts-fb-album-additional-pics-content").find(".fts-fb-album-additional-pics-description-wrap").html()?jQuery(this).parents(".fts-fb-album-additional-pics-content").find(".fts-fb-album-additional-pics-description-wrap").html():"",n=jQuery(this).parents(".fts-jal-fb-post-time-album").find(".fts-jal-fb-post-time-album").html()?jQuery(this).parents(".fts-fb-album-additional-pics-content").find(".fts-jal-fb-post-time-album").html():"";a.title=jQuery(this).parents(".fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-jal-fb-top-wrap").html()+r+n+jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-likes-shares-etc-wrap").html()+jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-fb-comments-wrap").html()+s,t.push(a)}),e.magnificPopup({mainClass:"fts-facebook-popup fts-facebook-styles-popup",items:t,removalDelay:150,preloader:!1,closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!1,enableEscapeKey:!0,autoFocusLast:!1,gallery:{enabled:!0,navigateByImgClick:!1,tCounter:'<span class="mfp-counter">%curr% of %total%</span>',preload:[0,1],arrowMarkup:""},type:"image",callbacks:{beforeOpen:function(){var t=e.index(this.st.el);-1!==t&&this.goTo(t)},open:function(){if(console.log("Popup is opened"),jQuery.fn.ftsShare(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height()),jQuery(".fts-popup-second-half .fts-greater-than-width-height")[0]?(console.log("Open Callback: Irregular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".mfp-iframe-scaler").css("padding-top","100%")):jQuery(".fts-popup-second-half .fts-equal-width-height")[0]?(console.log("Open Callback: Square size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".mfp-iframe-scaler").css("padding-top","")):(console.log("Open Callback: Regular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:"100%"}),jQuery(".mfp-iframe-scaler").css("padding-top","56.0%"),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-half").height())),matchMedia("only screen and (max-device-width: 736px)").matches){var e=event.target.id,t=jQuery("#"+e).data("poster");jQuery(".fts-fb-vid-popup video").attr("poster",t),console.log(t)}jQuery("body").addClass("fts-using-arrows")},change:function(){jQuery.fn.ftsShare(),jQuery(window).trigger("resize"),console.log("Content changed"),jQuery("body").hasClass("fts-using-arrows")},imageLoadComplete:function(){},markupParse:function(e,t,o){if(console.log("Parsing:",e,t,o),!jQuery("body").hasClass("fts-using-arrows")){var i=o.src;/fbcdn.net/i.test(i)&&"image"!==o.type?jQuery("body").addClass("fts-video-iframe-choice"):jQuery("body").hasClass("fts-using-arrows")||jQuery("body").removeClass("fts-video-iframe-choice")}},afterClose:function(){jQuery("body").removeClass("fts-using-arrows"),console.log("Popup is completely closed")}},image:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half "> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position" style="height:591px;"> <span class="fts-position-helper"></span><div class="mfp-img"></div> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button> </div><div class="fts-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://www.slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'},iframe:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half "> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"><div class="fts-fb-embed-iframe-check-used-for-popup"></div> <div class="mfp-iframe-scaler"><iframe class="mfp-iframe fts-iframe-popup-element" align="middle" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button><script>if(jQuery("body").hasClass("fts-video-iframe-choice")){jQuery(".fts-iframe-popup-element").attr("src", "").hide(); } else if(!jQuery("body").hasClass("fts-using-arrows")){jQuery(".fts-video-popup-element").attr("src", "").hide(); } jQuery(".fts-facebook-popup video").click(function(){jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause")}); <\/script> </div> </div><div class="fts-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://www.slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',srcAction:"iframe_src"}})})},jQuery.fn.slickFacebookPopUpFunction(),jQuery.fn.slickInstagramPopUpFunction=function(){jQuery(".popup-gallery").each(function(){var e=jQuery(this).find(".fts-instagram-link-target"),t=[];e.each(function(){var e=jQuery(this);if(e.hasClass("fts-child-media")?(ic=jQuery(this).parents(".fts-instagram-wrapper").find(".fts-carousel-image-wrapper").html(),ivc='<div class="fts-carousel-image"></div>'):(ic="",ivc=""),e.hasClass("fts-jal-fb-vid-image"))o="iframe";else if(e.hasClass("fts-instagram-video-link"))o="inline";else var o="image";if("inline"==o)var i="",s=ivc+'<video controls width="100%;" style="max-width:100%;" allowfullscreen controls><source src="'+e.attr("href")+'" type="video/mp4"></video><script>jQuery(".fts-instagram-styles-popup video").get(0).play();jQuery(".fts-instagram-styles-popup video").click(function(){ jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause") });<\/script>';else i=e.attr("href"),s="";var a={src:i,type:o,html5videolink:s};a.title=ic+jQuery(this).parents(".fts-instagram-wrapper").find(".fts-instagram-popup-profile-wrap").html()+jQuery(this).parents(".fts-instagram-wrapper").find(".slicker-date").html()+jQuery(this).parents(".fts-instagram-wrapper").find(".fts-insta-likes-comments-grab-popup").html()+jQuery(this).parents(".fts-instagram-wrapper").find(".fts-instagram-caption").html(),t.push(a)}),e.magnificPopup({mainClass:"fts-facebook-popup fts-instagram-styles-popup",items:t,removalDelay:150,preloader:!1,closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!1,enableEscapeKey:!0,autoFocusLast:!1,gallery:{enabled:!0,navigateByImgClick:!1,tCounter:'<span class="mfp-counter">%curr% of %total%</span>',preload:[0,1],arrowMarkup:""},callbacks:{beforeOpen:function(){var t=e.index(this.st.el);-1!==t&&this.goTo(t)},open:function(){console.log("Popup is opened"),jQuery.fn.ftsShare(),jQuery(window).resize(function(){jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())}),jQuery(window).trigger("resize")},change:function(){console.log("Content changed"),console.log(this.content),jQuery.fn.ftsShare(),jQuery("body").hasClass("fts-using-arrows")},imageLoadComplete:function(){jQuery(".fts-instagram-popup-second-half .fts-carousel-image").length?(jQuery(".fts-instagram-styles-popup .fts-carousel-image").remove(),jQuery(".fts-instagram-popup-half").prepend("<div class='fts-carousel-image'></div>")):jQuery(".fts-instagram-styles-popup .fts-carousel-image").remove(),jQuery.fn.ftsShare(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())},beforeAppend:function(){jQuery(".fts-instagram-popup-half").prepend("<div class='fts-carousel-image'></div>"),jQuery(".fts-instagram-popup-second-half .fts-carousel-image").length&&alert("wtg")},markupParse:function(e,t,o){console.log("Parsing:",e,t,o)},afterClose:function(){jQuery("body").removeClass("fts-using-arrows"),console.log("Popup is completely closed")}},inline:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half fts-instagram-popup-half"> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <div class="mfp-iframe-scaler mfp-html5videolink" id="fts-html5videolink"> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button> </div> </div><div class="fts-popup-second-half fts-instagram-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>'},image:{markup:'><div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half fts-instagram-popup-half"> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <span class="fts-position-helper"></span><div class="mfp-img"></div> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button> </div><div class="fts-popup-second-half fts-instagram-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://feedthemsocial.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'},iframe:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half fts-instagram-popup-half"> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <div class="mfp-iframe-scaler"><iframe class="mfp-iframe fts-iframe-popup-element" frameborder="0" allowfullscreen></iframe><video class="mfp-iframe fts-video-popup-element" allowfullscreen autoplay controls></video> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button><script>if(jQuery("body").hasClass("fts-video-iframe-choice")){jQuery(".fts-iframe-popup-element").attr("src", "").hide(); } else if(!jQuery("body").hasClass("fts-using-arrows")){jQuery(".fts-video-popup-element").attr("src", "").hide(); } jQuery(".fts-facebook-popup video").click(function(){jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause")});<\/script> </div> </div><div class="fts-popup-second-half fts-instagram-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://feedthemsocial.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',srcAction:"iframe_src"}})})},jQuery.fn.slickInstagramPopUpFunction(),jQuery.fn.slickYoutubePopUpFunction=function(){jQuery(".fts-youtube-popup-gallery").each(function(){var e=jQuery(this).find("a.fts-yt-popup-open"),t=[];e.each(function(){var e=jQuery(this);type="iframe";var o={src:e.attr("href"),type:type};o.title=jQuery(this).parents(".slicker-youtube-placeholder").find(".youtube-social-btn-top").html()||jQuery(this).parents(".slicker-youtube-placeholder").find(".entriestitle").html(),t.push(o)}),e.magnificPopup({mainClass:"fts-facebook-popup fts-facebook-styles-popup fts-youtube-popup",items:t,removalDelay:150,preloader:!1,closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!1,enableEscapeKey:!0,autoFocusLast:!1,gallery:{enabled:!0,navigateByImgClick:!1,tCounter:'<span class="mfp-counter">%curr% of %total%</span>',preload:[0,1],arrowMarkup:""},callbacks:{beforeOpen:function(){var t=e.index(this.st.el);-1!==t&&this.goTo(t)},open:function(){console.log("Popup is opened"),jQuery.fn.ftsShare(),jQuery(window).resize(function(){jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())}),jQuery(window).trigger("resize")},change:function(){console.log("Content changed"),console.log(this.content),jQuery.fn.ftsShare(),jQuery("body").hasClass("fts-using-arrows")},imageLoadComplete:function(){jQuery.fn.ftsShare(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())},markupParse:function(e,t,o){console.log("Parsing:",e,t,o)},afterClose:function(){jQuery("body").removeClass("fts-using-arrows"),console.log("Popup is completely closed")}},iframe:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half "> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <div class="mfp-iframe-scaler"><iframe class="mfp-iframe fts-iframe-popup-element" frameborder="0" allowfullscreen></iframe><video class="mfp-iframe fts-video-popup-element" allowfullscreen autoplay controls></video> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button><script>if(jQuery("body").hasClass("fts-video-iframe-choice")){jQuery(".fts-iframe-popup-element").attr("src", "").hide(); } else if(!jQuery("body").hasClass("fts-using-arrows")){jQuery(".fts-video-popup-element").attr("src", "").hide(); } jQuery(".fts-facebook-popup video").click(function(){jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause")}); <\/script> </div> </div><div class="fts-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',srcAction:"iframe_src"}})})},jQuery.fn.slickYoutubePopUpFunction()});
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,o,i,s,a,r,n="Close",p="BeforeClose",l="MarkupParse",f="Open",c="Change",u="mfp",d="."+u,m="mfp-ready",h="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,b=e(window),w=function(e,o){t.ev.on(u+e+d,o)},j=function(t,o,i,s){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),s?o&&o.appendChild(a):(a=e(a),o&&a.appendTo(o)),a},C=function(o,i){t.ev.triggerHandler(u+o,i),t.st.callbacks&&(o=o.charAt(0).toLowerCase()+o.slice(1),t.st.callbacks[o]&&t.st.callbacks[o].apply(t,e.isArray(i)?i:[i]))},Q=function(o){return o===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=o),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new v).init(),e.magnificPopup.instance=t)};v.prototype={constructor:v,init:function(){var o=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(o),t.isIOS=/iphone|ipad|ipod/gi.test(o),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(o){var s;if(!1===o.isObj){t.items=o.items.toArray(),t.index=0;var r,n=o.items;for(s=0;s<n.length;s++)if((r=n[s]).parsed&&(r=r.el[0]),r===o.el[0]){t.index=s;break}}else t.items=e.isArray(o.items)?o.items:[o.items],t.index=o.index||0;if(!t.isOpen){t.types=[],a="",o.mainEl&&o.mainEl.length?t.ev=o.mainEl.eq(0):t.ev=i,o.key?(t.popupsCache[o.key]||(t.popupsCache[o.key]={}),t.currTemplate=t.popupsCache[o.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,o),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=j("bg").on("click"+d,function(){t.close()}),t.wrap=j("wrap").attr("tabindex",-1).on("click"+d,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=j("container",t.wrap)),t.contentContainer=j("content"),t.st.preloader&&(t.preloader=j("preloader",t.container,t.st.tLoading));var p=e.magnificPopup.modules;for(s=0;s<p.length;s++){var c=p[s];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}C("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(w(l,function(e,t,o,i){o.close_replaceWith=Q(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(Q())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+d,function(e){27===e.keyCode&&t.close()}),b.on("resize"+d,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=b.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(u)){var g=t._getScrollbarSize();g&&(h.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),C("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),i.on("focusin"+d,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(u),C(f),o}t.updateItemHTML()},close:function(){t.isOpen&&(C(p),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){C(n);var o=h+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(o+=t.st.mainClass+" "),t._removeClassFromMFP(o),t.fixedContentPos){var s={marginRight:""};t.isIE7?e("body, html").css("overflow",""):s.overflow="",e("html").css(s)}i.off("keyup.mfp focusin"+d),t.ev.off(d),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,C("AfterClose")},updateSize:function(e){if(t.isIOS){var o=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*o;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),C("Resize")},updateItemHTML:function(){var o=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),o.parsed||(o=t.parseEl(t.index));var i=o.type;if(C("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=o,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;C("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}s&&s!==o.type&&t.container.removeClass("mfp-"+s+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](o,t.currTemplate[i]);t.appendContent(r,i),o.preloaded=!0,C(c,o),s=o.type,t.container.prepend(t.contentContainer),C("AfterChange")},appendContent:function(e,o){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[o]?t.content.find(".mfp-close").length||t.content.append(Q()):t.content=e:t.content="",C("BeforeAppend"),t.container.addClass("mfp-"+o+"-holder"),t.contentContainer.append(t.content)},parseEl:function(o){var i,s=t.items[o];if(s.tagName?s={el:e(s)}:(i=s.type,s={data:s,src:s.src}),s.el){for(var a=t.types,r=0;r<a.length;r++)if(s.el.hasClass("mfp-"+a[r])){i=a[r];break}s.src=s.el.attr("data-mfp-src"),s.src||(s.src=s.el.attr("href"))}return s.type=i||t.st.type||"inline",s.index=o,s.parsed=!0,t.items[o]=s,C("ElementParse",s),t.items[o]},addGroup:function(e,o){var i=function(i){i.mfpEl=this,t._openClick(i,e,o)};o||(o={});var s="click.magnificPopup";o.mainEl=e,o.items?(o.isObj=!0,e.off(s).on(s,i)):(o.isObj=!1,o.delegate?e.off(s).on(s,o.delegate,i):(o.items=e,e.off(s).on(s,i)))},_openClick:function(o,i,s){if((void 0!==s.midClick?s.midClick:e.magnificPopup.defaults.midClick)||!(2===o.which||o.ctrlKey||o.metaKey||o.altKey||o.shiftKey)){var a=void 0!==s.disableOn?s.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(b.width()<a)return!0;o.type&&(o.preventDefault(),t.isOpen&&o.stopPropagation()),s.el=e(o.mfpEl),s.delegate&&(s.items=i.find(s.delegate)),t.open(s)}},updateStatus:function(e,i){if(t.preloader){o!==e&&t.container.removeClass("mfp-s-"+o),i||"loading"!==e||(i=t.st.tLoading);var s={status:e,text:i};C("UpdateStatus",s),e=s.status,i=s.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),o=e}},_checkIfClose:function(o){if(!e(o).hasClass(g)){var i=t.st.closeOnContentClick,s=t.st.closeOnBgClick;if(i&&s)return!0;if(!t.content||e(o).hasClass("mfp-close")||t.preloader&&o===t.preloader[0])return!0;if(o===t.content[0]||e.contains(t.content[0],o)){if(i)return!0}else if(s&&e.contains(document,o))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(o){return o.target===t.wrap[0]||e.contains(t.wrap[0],o.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,o,i){var s;i.data&&(o=e.extend(i.data,o)),C(l,[t,o,i]),e.each(o,function(o,i){if(void 0===i||!1===i)return!0;if((s=o.split("_")).length>1){var a=t.find(d+"-"+s[0]);if(a.length>0){var r=s[1];"replaceWith"===r?a[0]!==i[0]&&a.replaceWith(i):"img"===r?a.is("img")?a.attr("src",i):a.replaceWith(e("<img>").attr("src",i).attr("class",a.attr("class"))):a.attr(s[1],i)}}else t.find(d+"-"+o).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(t,o){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=o||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,o){o.options&&(e.magnificPopup.defaults[t]=o.options),e.extend(this.proto,o.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(o){k();var i=e(this);if("string"==typeof o)if("open"===o){var s,a=y?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?s=a.items[r]:(s=i,a.delegate&&(s=s.find(a.delegate)),s=s.eq(r)),t._openClick({mfpEl:s},i,a)}else t.isOpen&&t[o].apply(t,Array.prototype.slice.call(arguments,1));else o=e.extend(!0,{},o),y?i.data("magnificPopup",o):i[0].magnificPopup=o,t.addGroup(i,o);return i};var x,I,P,T="inline",S=function(){P&&(I.after(P.addClass(x)).detach(),P=null)};e.magnificPopup.registerModule(T,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(T),w(n+"."+T,function(){S()})},getInline:function(o,i){if(S(),o.src){var s=t.st.inline,a=e(o.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(I||(x=s.hiddenClass,I=j(x),x="mfp-"+x),P=a.after(I).detach().removeClass(x)),t.updateStatus("ready")}else t.updateStatus("error",s.tNotFound),a=e("<div>");return o.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},o),i}}});var _,O="ajax",z=function(){_&&e(document.body).removeClass(_)},E=function(){z(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(O),_=t.st.ajax.cursor,w(n+"."+O,E),w("BeforeChange."+O,E)},getAjax:function(o){_&&e(document.body).addClass(_),t.updateStatus("loading");var i=e.extend({url:o.src,success:function(i,s,a){var r={data:i,xhr:a};C("ParseAjax",r),t.appendContent(e(r.data),O),o.finished=!0,z(),t._setFocus(),setTimeout(function(){t.wrap.addClass(m)},16),t.updateStatus("ready"),C("AjaxContentAdded")},error:function(){z(),o.finished=o.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",o.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var B,F,M=function(o){if(o.data&&void 0!==o.data.title)return o.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,o);if(o.el)return o.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var o=t.st.image,i=".image";t.types.push("image"),w(f+i,function(){"image"===t.currItem.type&&o.cursor&&e(document.body).addClass(o.cursor)}),w(n+i,function(){o.cursor&&e(document.body).removeClass(o.cursor),b.off("resize"+d)}),w("Resize"+i,t.resizeImage),t.isLowIE&&w("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var o=0;t.isLowIE&&(o=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-o)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var o=0,i=e.img[0],s=function(a){B&&clearInterval(B),B=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(o>200&&clearInterval(B),void(3==++o?s(10):40===o?s(50):100===o&&s(500)))},a)};s(1)},getImage:function(o,i){var s=0,a=function(){o&&(o.img[0].complete?(o.img.off(".mfploader"),o===t.currItem&&(t._onImageHasSize(o),t.updateStatus("ready")),o.hasSize=!0,o.loaded=!0,C("ImageLoadComplete")):200>++s?setTimeout(a,100):r())},r=function(){o&&(o.img.off(".mfploader"),o===t.currItem&&(t._onImageHasSize(o),t.updateStatus("error",n.tError.replace("%url%",o.src))),o.hasSize=!0,o.loaded=!0,o.loadError=!0)},n=t.st.image,p=i.find(".mfp-img");if(p.length){var l=document.createElement("img");l.className="mfp-img",o.el&&o.el.find("img").length&&(l.alt=o.el.find("img").attr("alt")),o.img=e(l).on("load.mfploader",a).on("error.mfploader",r),l.src=o.src,p.is("img")&&(o.img=o.img.clone()),(l=o.img[0]).naturalWidth>0?o.hasSize=!0:l.width||(o.hasSize=!1)}return t._parseMarkup(i,{title:M(o),img_replaceWith:o.img},o),t.resizeImage(),o.hasSize?(B&&clearInterval(B),o.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",n.tError.replace("%url%",o.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),o.loading=!0,o.hasSize||(o.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(o)),i)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,o=t.st.zoom,i=".zoom";if(o.enabled&&t.supportsTransition){var s,a,r=o.duration,l=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+o.duration/1e3+"s "+o.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return s["-webkit-"+a]=s["-moz-"+a]=s["-o-"+a]=s[a]=i,t.css(s),t},f=function(){t.content.css("visibility","visible")};w("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(s),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void f();(a=l(e)).css(t._getOffset()),t.wrap.append(a),s=setTimeout(function(){a.css(t._getOffset(!0)),s=setTimeout(function(){f(),setTimeout(function(){a.remove(),e=a=null,C("ZoomAnimationEnded")},16)},r)},16)}}),w(p+i,function(){if(t._allowZoom()){if(clearTimeout(s),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=l(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),w(n+i,function(){t._allowZoom()&&(f(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(o){var i,s=(i=o?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);s.top-=e(window).scrollTop()-a;var n={width:i.width(),height:(y?i.innerHeight():i[0].offsetHeight)-r-a};return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F?n["-moz-transform"]=n.transform="translate("+s.left+"px,"+s.top+"px)":(n.left=s.left,n.top=s.top),n}}});var L="iframe",A=function(e){if(t.currTemplate[L]){var o=t.currTemplate[L].find("iframe");o.length&&(e||(o[0].src="//about:blank"),t.isIE8&&o.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(L),w("BeforeChange",function(e,t,o){t!==o&&(t===L?A():o===L&&A(!0))}),w(n+"."+L,function(){A()})},getIframe:function(o,i){var s=o.src,a=t.st.iframe;e.each(a.patterns,function(){return s.indexOf(this.index)>-1?(this.id&&(s="string"==typeof this.id?s.substr(s.lastIndexOf(this.id)+this.id.length,s.length):this.id.call(this,s)),s=this.src.replace("%id%",s),!1):void 0});var r={};return a.srcAction&&(r[a.srcAction]=s),t._parseMarkup(i,r,o),t.updateStatus("ready"),i}}});var H=function(e){var o=t.items.length;return e>o-1?e-o:0>e?o+e:e},N=function(e,t,o){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,o)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=t.st.gallery,s=".mfp-gallery";return t.direction=!0,!(!o||!o.enabled)&&(a+=" mfp-gallery",w(f+s,function(){o.navigateByImgClick&&t.wrap.on("click"+s,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),i.on("keydown"+s,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),w("UpdateStatus"+s,function(e,o){o.text&&(o.text=N(o.text,t.currItem.index,t.items.length))}),w(l+s,function(e,i,s,a){var r=t.items.length;s.counter=r>1?N(o.tCounter,a.index,r):""}),w("BuildControls"+s,function(){if(t.items.length>1&&o.arrows&&!t.arrowLeft){var i=o.arrowMarkup,s=t.arrowLeft=e(i.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(g),a=t.arrowRight=e(i.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(g);s.click(function(){t.prev()}),a.click(function(){t.next()}),t.container.append(s.add(a))}}),w(c+s,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void w(n+s,function(){i.off(s),t.wrap.off("click"+s),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=H(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=H(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,o=t.st.gallery.preload,i=Math.min(o[0],t.items.length),s=Math.min(o[1],t.items.length);for(e=1;e<=(t.direction?s:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:s);e++)t._preloadItem(t.index-e)},_preloadItem:function(o){if(o=H(o),!t.items[o].preloaded){var i=t.items[o];i.parsed||(i=t.parseEl(o)),C("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var W="retina";e.magnificPopup.registerModule(W,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,o=e.ratio;(o=isNaN(o)?o():o)>1&&(w("ImageHasSize."+W,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),w("ElementParse."+W,function(t,i){i.src=e.replaceSrc(i,o)}))}}}}),k()}),jQuery(document).ready(function(){jQuery(".popup-gallery-twitter").each(function(){jQuery(this).magnificPopup({delegate:"a.fts-twitter-link-image",type:"image",tLoading:"Loading image #%curr%...",mainClass:"fts-instagram-img-mobile",removalDelay:100,mainClass:"fts-instagram-fade",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.parents(".fts-tweeter-wrap, .fts-feed-type-twitter").find(".fts-twitter-text, .fts-mashup-description-wrap").html()}}})});var e=jQuery.magnificPopup.instance;jQuery("body").on("click","#fts-photo-prev",function(){e.prev(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())}),jQuery("body").on("click","#fts-photo-next",function(){e.next(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()&&jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height())}),jQuery("body").on("click",".fts-facebook-popup .mfp-image-holder .fts-popup-image-position",function(){e.next(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()&&jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height())}),jQuery("body").on("click","#fts-photo-prev, #fts-photo-next, .fts-facebook-popup .mfp-image-holder .fts-popup-image-position",function(e){jQuery("body").addClass("fts-using-arrows"),setTimeout(function(){jQuery.fn.ftsShare(),/fbcdn.net/i.test(jQuery(".fts-iframe-popup-element").attr("src"))||/scontent.cdninstagram.com/i.test(jQuery(".fts-iframe-popup-element").attr("src"))?(jQuery("body").addClass("fts-video-iframe-choice"),jQuery(".fts-video-popup-element").show(),jQuery(".fts-iframe-popup-element").attr("src","").hide()):(jQuery("body").removeClass("fts-video-iframe-choice, .fts-using-arrows"),jQuery(".fts-video-popup-element").attr("src","").hide(),jQuery(".fts-iframe-popup-element").show()),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()&&jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()),jQuery(".fts-popup-second-half .fts-greater-than-width-height")[0]?(console.log("Arrows: Open Callback: Irregular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".fts-popup-image-position").css({height:"100%","min-height":"auto"}),jQuery(".mfp-iframe-scaler").css("padding-top","100%")):jQuery(".fts-popup-second-half .fts-equal-width-height")[0]?(console.log("Arrows: Open Callback: Square size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".mfp-iframe-scaler").css("padding-top","")):(console.log("Arrows: Open Callback: Regular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:"100%"}),jQuery(".mfp-iframe-scaler").css("padding-top","56.0%"),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-half").height()))},10)}),jQuery.fn.slickFacebookPopUpFunction=function(){jQuery(".popup-gallery-fb-posts, .popup-gallery-fb, .popup-video-gallery-fb").each(function(){var e=jQuery(this).find("a.fts-facebook-link-target, a.fts-fb-large-photo, a.fts-view-album-photos-large, a.fts-view-fb-videos-large, a.fts-view-fb-videos-btn, a.fts-jal-fb-vid-html5video"),t=[];e.each(function(){var e=jQuery(this),o="image";if(e.hasClass("fts-jal-fb-vid-image")||e.hasClass("fts-view-fb-videos-btn")){o="iframe";var i=jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-fb-embed-iframe-check-used-for-popup").html();if(i)var s=i;else s=""}else s="";var a={src:e.attr("href"),type:o},r=jQuery(this).parents(".fts-fb-album-additional-pics-content").find(".fts-fb-album-additional-pics-description-wrap").html()?jQuery(this).parents(".fts-fb-album-additional-pics-content").find(".fts-fb-album-additional-pics-description-wrap").html():"",n=jQuery(this).parents(".fts-jal-fb-post-time-album").find(".fts-jal-fb-post-time-album").html()?jQuery(this).parents(".fts-fb-album-additional-pics-content").find(".fts-jal-fb-post-time-album").html():"";a.title=jQuery(this).parents(".fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-jal-fb-top-wrap").html()+r+n+jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-likes-shares-etc-wrap").html()+jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-fb-comments-wrap").html()+s,t.push(a)}),e.magnificPopup({mainClass:"fts-facebook-popup fts-facebook-styles-popup",items:t,removalDelay:150,preloader:!1,closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!1,enableEscapeKey:!0,autoFocusLast:!1,gallery:{enabled:!0,navigateByImgClick:!1,tCounter:'<span class="mfp-counter">%curr% of %total%</span>',preload:[0,1],arrowMarkup:""},type:"image",callbacks:{beforeOpen:function(){var t=e.index(this.st.el);-1!==t&&this.goTo(t)},open:function(){if(console.log("Popup is opened"),jQuery.fn.ftsShare(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height()),jQuery(".fts-popup-second-half .fts-greater-than-width-height")[0]?(console.log("Open Callback: Irregular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".mfp-iframe-scaler").css("padding-top","100%")):jQuery(".fts-popup-second-half .fts-equal-width-height")[0]?(console.log("Open Callback: Square size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:jQuery(".fts-popup-half").height()}),jQuery(".mfp-iframe-scaler").css("padding-top","")):(console.log("Open Callback: Regular size"),jQuery("iframe.fts-iframe-popup-element").css({"max-width":"100%",width:"100%"}),jQuery(".mfp-iframe-scaler").css("padding-top","56.0%"),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-half").height())),matchMedia("only screen and (max-device-width: 736px)").matches){var e=event.target.id,t=jQuery("#"+e).data("poster");jQuery(".fts-fb-vid-popup video").attr("poster",t),console.log(t)}jQuery("body").addClass("fts-using-arrows")},change:function(){jQuery.fn.ftsShare(),jQuery(window).trigger("resize"),console.log("Content changed"),jQuery("body").hasClass("fts-using-arrows")},imageLoadComplete:function(){},markupParse:function(e,t,o){if(console.log("Parsing:",e,t,o),!jQuery("body").hasClass("fts-using-arrows")){var i=o.src;/fbcdn.net/i.test(i)&&"image"!==o.type?jQuery("body").addClass("fts-video-iframe-choice"):jQuery("body").hasClass("fts-using-arrows")||jQuery("body").removeClass("fts-video-iframe-choice")}},afterClose:function(){jQuery("body").removeClass("fts-using-arrows"),console.log("Popup is completely closed")}},image:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half "> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position" style="height:591px;"> <span class="fts-position-helper"></span><div class="mfp-img"></div> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button> </div><div class="fts-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://www.slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'},iframe:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half "> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"><div class="fts-fb-embed-iframe-check-used-for-popup"></div> <div class="mfp-iframe-scaler"><iframe class="mfp-iframe fts-iframe-popup-element" align="middle" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button><script>if(jQuery("body").hasClass("fts-video-iframe-choice")){jQuery(".fts-iframe-popup-element").attr("src", "").hide(); } else if(!jQuery("body").hasClass("fts-using-arrows")){jQuery(".fts-video-popup-element").attr("src", "").hide(); } jQuery(".fts-facebook-popup video").click(function(){jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause")}); <\/script> </div> </div><div class="fts-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://www.slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',srcAction:"iframe_src"}})})},jQuery.fn.slickFacebookPopUpFunction(),jQuery.fn.slickInstagramPopUpFunction=function(){jQuery(".popup-gallery").each(function(){var e=jQuery(this).find(".fts-instagram-link-target"),t=[];e.each(function(){var e=jQuery(this);if(e.hasClass("fts-child-media")?(ic=jQuery(this).parents(".fts-instagram-wrapper").find(".fts-carousel-image-wrapper").html(),ivc='<div class="fts-carousel-image"></div>'):(ic="",ivc=""),e.hasClass("fts-jal-fb-vid-image"))o="iframe";else if(e.hasClass("fts-instagram-video-link"))o="inline";else var o="image";if("inline"==o)var i="",s=ivc+'<video controls width="100%;" style="max-width:100%;" allowfullscreen controls><source src="'+e.attr("href")+'" type="video/mp4"></video><script>jQuery(".fts-instagram-styles-popup video").get(0).play();jQuery(".fts-instagram-styles-popup video").click(function(){ jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause") });<\/script>';else i=e.attr("href"),s="";var a={src:i,type:o,html5videolink:s};a.title=ic+jQuery(this).parents(".fts-instagram-wrapper").find(".fts-instagram-popup-profile-wrap").html()+jQuery(this).parents(".fts-instagram-wrapper").find(".slicker-date").html()+jQuery(this).parents(".fts-instagram-wrapper").find(".fts-insta-likes-comments-grab-popup").html()+jQuery(this).parents(".fts-instagram-wrapper").find(".fts-instagram-caption").html(),t.push(a)}),e.magnificPopup({mainClass:"fts-facebook-popup fts-instagram-styles-popup",items:t,removalDelay:150,preloader:!1,closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!1,enableEscapeKey:!0,autoFocusLast:!1,gallery:{enabled:!0,navigateByImgClick:!1,tCounter:'<span class="mfp-counter">%curr% of %total%</span>',preload:[0,1],arrowMarkup:""},callbacks:{beforeOpen:function(){var t=e.index(this.st.el);-1!==t&&this.goTo(t)},open:function(){console.log("Popup is opened"),jQuery.fn.ftsShare(),jQuery(window).resize(function(){jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())}),jQuery(window).trigger("resize")},change:function(){console.log("Content changed"),console.log(this.content),jQuery.fn.ftsShare(),jQuery("body").hasClass("fts-using-arrows")},imageLoadComplete:function(){jQuery(".fts-instagram-popup-second-half .fts-carousel-image").length?(jQuery(".fts-instagram-styles-popup .fts-carousel-image").remove(),jQuery(".fts-instagram-popup-half").prepend("<div class='fts-carousel-image'></div>")):jQuery(".fts-instagram-styles-popup .fts-carousel-image").remove(),jQuery.fn.ftsShare(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())},beforeAppend:function(){jQuery(".fts-instagram-popup-half").prepend("<div class='fts-carousel-image'></div>"),jQuery(".fts-instagram-popup-second-half .fts-carousel-image").length&&alert("wtg")},markupParse:function(e,t,o){console.log("Parsing:",e,t,o)},afterClose:function(){jQuery("body").removeClass("fts-using-arrows"),console.log("Popup is completely closed")}},inline:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half fts-instagram-popup-half"> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <div class="mfp-iframe-scaler mfp-html5videolink" id="fts-html5videolink"> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button> </div> </div><div class="fts-popup-second-half fts-instagram-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>'},image:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half fts-instagram-popup-half"> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <span class="fts-position-helper"></span><div class="mfp-img"></div> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button> </div><div class="fts-popup-second-half fts-instagram-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://feedthemsocial.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',tError:'<a href="%url%">The image #%curr%</a> could not be loaded.'},iframe:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half fts-instagram-popup-half"> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <div class="mfp-iframe-scaler"><iframe class="mfp-iframe fts-iframe-popup-element" frameborder="0" allowfullscreen></iframe><video class="mfp-iframe fts-video-popup-element" allowfullscreen autoplay controls></video> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button><script>if(jQuery("body").hasClass("fts-video-iframe-choice")){jQuery(".fts-iframe-popup-element").attr("src", "").hide(); } else if(!jQuery("body").hasClass("fts-using-arrows")){jQuery(".fts-video-popup-element").attr("src", "").hide(); } jQuery(".fts-facebook-popup video").click(function(){jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause")});<\/script> </div> </div><div class="fts-popup-second-half fts-instagram-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://feedthemsocial.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',srcAction:"iframe_src"}})})},jQuery.fn.slickInstagramPopUpFunction(),jQuery.fn.slickYoutubePopUpFunction=function(){jQuery(".fts-youtube-popup-gallery").each(function(){var e=jQuery(this).find("a.fts-yt-popup-open"),t=[];e.each(function(){var e=jQuery(this);type="iframe";var o={src:e.attr("href"),type:type};o.title=jQuery(this).parents(".slicker-youtube-placeholder").find(".youtube-social-btn-top").html()||jQuery(this).parents(".slicker-youtube-placeholder").find(".entriestitle").html(),t.push(o)}),e.magnificPopup({mainClass:"fts-facebook-popup fts-facebook-styles-popup fts-youtube-popup",items:t,removalDelay:150,preloader:!1,closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!1,enableEscapeKey:!0,autoFocusLast:!1,gallery:{enabled:!0,navigateByImgClick:!1,tCounter:'<span class="mfp-counter">%curr% of %total%</span>',preload:[0,1],arrowMarkup:""},callbacks:{beforeOpen:function(){var t=e.index(this.st.el);-1!==t&&this.goTo(t)},open:function(){console.log("Popup is opened"),jQuery.fn.ftsShare(),jQuery(window).resize(function(){jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())}),jQuery(window).trigger("resize")},change:function(){console.log("Content changed"),console.log(this.content),jQuery.fn.ftsShare(),jQuery("body").hasClass("fts-using-arrows")},imageLoadComplete:function(){jQuery.fn.ftsShare(),jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").height()<jQuery(".mfp-img").height()?jQuery(".fts-popup-image-position, .fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".mfp-img").height()):jQuery(".fts-popup-second-half .mfp-bottom-bar").css("height",jQuery(".fts-popup-image-position").height())},markupParse:function(e,t,o){console.log("Parsing:",e,t,o)},afterClose:function(){jQuery("body").removeClass("fts-using-arrows"),console.log("Popup is completely closed")}},iframe:{markup:'<div class="mfp-figure"><div class="mfp-close">X</div><div class="fts-popup-wrap"> <div class="fts-popup-half "> <button title="previous" type="button" id="fts-photo-prev" class="mfp-arrow mfp-arrow-left mfp-prevent-close"></button> <div class="fts-popup-image-position"> <div class="mfp-iframe-scaler"><iframe class="mfp-iframe fts-iframe-popup-element" frameborder="0" allowfullscreen></iframe><video class="mfp-iframe fts-video-popup-element" allowfullscreen autoplay controls></video> </div> <button title="next" type="button" id="fts-photo-next" class="mfp-arrow mfp-arrow-right mfp-prevent-close"></button><script>if(jQuery("body").hasClass("fts-video-iframe-choice")){jQuery(".fts-iframe-popup-element").attr("src", "").hide(); } else if(!jQuery("body").hasClass("fts-using-arrows")){jQuery(".fts-video-popup-element").attr("src", "").hide(); } jQuery(".fts-facebook-popup video").click(function(){jQuery(this).trigger(this.paused ? this.paused ? "play" : "play" : "pause")}); <\/script> </div> </div><div class="fts-popup-second-half"><div class="mfp-bottom-bar"><div class="mfp-title"></div><a class="fts-powered-by-text" href="https://slickremix.com" target="_blank">Powered by Feed Them Social</a><div class="mfp-counter"></div></div></div></div></div>',srcAction:"iframe_src"}})})},jQuery.fn.slickYoutubePopUpFunction()});
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: slickremix, slickchris
|
3 |
Tags: Facebook, Instagram, Twitter, YouTube, Feed
|
4 |
Requires at least: 3.6.0
|
5 |
-
Tested up to: 5.5.
|
6 |
-
Stable tag: 2.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
|
@@ -75,6 +75,11 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
75 |
* Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
|
76 |
|
77 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
78 |
Version 2.8.9 Friday, September 18th, 2020 =
|
79 |
* FIX: FACEBOOK & INSTAGRAM OPTIONS PAGE: missing pages_read_engagement scope so non admins of our APP can gain access to pages they manage.
|
80 |
|
2 |
Contributors: slickremix, slickchris
|
3 |
Tags: Facebook, Instagram, Twitter, YouTube, Feed
|
4 |
Requires at least: 3.6.0
|
5 |
+
Tested up to: 5.5.2
|
6 |
+
Stable tag: 2.9.0
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Display a Custom Facebook feed, Instagram feed, Twitter feed, Pinterest feed & YouTube feed on pages, posts or widgets.
|
75 |
* Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
|
76 |
|
77 |
== Changelog ==
|
78 |
+
Version 2.9.0 Thursday, October 29th, 2020 =
|
79 |
+
* FIX: INSTAGRAM FEED: Missing images for videos.
|
80 |
+
* PREMIUM FIX: INSTAGRAM FEED: Pop for images.
|
81 |
+
* PREMIUM FIX COMING: INSTAGRAM HASHTAG FEED: Images for Videos are missing.
|
82 |
+
|
83 |
Version 2.8.9 Friday, September 18th, 2020 =
|
84 |
* FIX: FACEBOOK & INSTAGRAM OPTIONS PAGE: missing pages_read_engagement scope so non admins of our APP can gain access to pages they manage.
|
85 |
|