Version Description
Download this release
Release Info
Developer | slickremix |
Plugin | Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest |
Version | 2.5.5 |
Comparing to | |
See all releases |
Code changes from version 2.5.4 to 2.5.5
- admin/class-fts-settings-page-options.php +12 -12
- admin/class-fts-twitter-options-page.php +1 -1
- feed-them.php +4 -4
- feeds/facebook/class-fts-facebook-feed-post-types.php +0 -1
- feeds/facebook/class-fts-facebook-feed.php +2 -2
- feeds/instagram/class-fts-instagram-feed.php +3 -3
- feeds/js/magnific-popup-full.js +2 -2
- feeds/js/magnific-popup.js +1 -1
- feeds/twitter/class-fts-twitter-feed.php +17 -15
- feeds/youtube/class-youtube-feed-free.php +14 -21
- includes/feed-them-functions.php +18 -8
- readme.txt +33 -27
- updater/updater-check-init.php +5 -5
admin/class-fts-settings-page-options.php
CHANGED
@@ -66,7 +66,7 @@ class FTS_Settings_Page_Options {
|
|
66 |
'main_select' => [
|
67 |
'req_plugin' => 'combine_streams',
|
68 |
'msg' => 'With this extension you can mix a Facebook, Instagram, Twitter, Youtube and Pinterest posts all in one feed. The other feature this exentsion gives you is the abillity to mix multiple Facebook accounts into one feed!
|
69 |
-
<a href="
|
70 |
],
|
71 |
),
|
72 |
'short_attr_final' => 'yes',
|
@@ -1123,11 +1123,11 @@ class FTS_Settings_Page_Options {
|
|
1123 |
'premium_msg_boxes' => array(
|
1124 |
'album_videos' => array(
|
1125 |
'req_plugin' => 'fts_premium',
|
1126 |
-
'msg' => 'The Facebook video feed allows you to view your uploaded videos from facebook. See these great examples and options of all the different ways you can bring new life to your wordpress site! <a href="
|
1127 |
),
|
1128 |
'reviews' => array(
|
1129 |
'req_plugin' => 'facebook_reviews',
|
1130 |
-
'msg' => 'The Facebook Reviews feed allows you to view all of the reviews people have made on your Facebook Page. See these great examples and options of all the different ways you can display your Facebook Page Reviews on your website. <a href="
|
1131 |
),
|
1132 |
),
|
1133 |
'short_attr_final' => 'yes',
|
@@ -2040,7 +2040,7 @@ class FTS_Settings_Page_Options {
|
|
2040 |
'sub_options' => array(
|
2041 |
'sub_options_wrap_class' => 'facebook-loadmore-wrap',
|
2042 |
|
2043 |
-
// 'sub_options_instructional_txt' => '<a href="
|
2044 |
),
|
2045 |
),
|
2046 |
|
@@ -2073,7 +2073,7 @@ class FTS_Settings_Page_Options {
|
|
2073 |
'sub_options' => array(
|
2074 |
'sub_options_wrap_class' => 'fts-facebook-load-more-options-wrap',
|
2075 |
|
2076 |
-
// 'sub_options_instructional_txt' => '<a href="
|
2077 |
),
|
2078 |
'sub_options_end' => true,
|
2079 |
),
|
@@ -2102,7 +2102,7 @@ class FTS_Settings_Page_Options {
|
|
2102 |
'sub_options' => array(
|
2103 |
'sub_options_wrap_class' => 'fts-facebook-load-more-options2-wrap',
|
2104 |
|
2105 |
-
// 'sub_options_instructional_txt' => '<a href="
|
2106 |
),
|
2107 |
),
|
2108 |
|
@@ -2193,7 +2193,7 @@ class FTS_Settings_Page_Options {
|
|
2193 |
'sub_options' => array(
|
2194 |
'sub_options_wrap_class' => 'fts-facebook-grid-options-wrap',
|
2195 |
|
2196 |
-
// 'sub_options_instructional_txt' => '<a href="
|
2197 |
),
|
2198 |
),
|
2199 |
|
@@ -2314,7 +2314,7 @@ class FTS_Settings_Page_Options {
|
|
2314 |
array(
|
2315 |
'grouped_options_title' => __( 'Carousel/Slider', 'feed-them-social' ),
|
2316 |
'input_wrap_id' => 'facebook_slider',
|
2317 |
-
'instructional-text' => __( 'Create a Carousel or Slideshow with these options.', 'feed-them-social' ) . ' <a href="
|
2318 |
'option_type' => 'select',
|
2319 |
'label' => __( 'Carousel/Slideshow', 'feed-them-social' ),
|
2320 |
'type' => 'text',
|
@@ -2769,7 +2769,7 @@ class FTS_Settings_Page_Options {
|
|
2769 |
|
2770 |
// Feed Type Selection
|
2771 |
'feed_type_select' => array(
|
2772 |
-
'label' => __( 'Feed Type', 'feed-them-social' ) . '<br/><small><a href="
|
2773 |
'select_wrap_classes' => 'youtube-gen-selection',
|
2774 |
'select_classes' => '',
|
2775 |
'select_name' => 'youtube-messages-selector',
|
@@ -4241,7 +4241,7 @@ class FTS_Settings_Page_Options {
|
|
4241 |
'sub_options' => array(
|
4242 |
'sub_options_wrap_class' => 'fts-twitter-grid-options-wrap',
|
4243 |
|
4244 |
-
// 'sub_options_instructional_txt' => '<a href="
|
4245 |
),
|
4246 |
),
|
4247 |
|
@@ -4663,7 +4663,7 @@ class FTS_Settings_Page_Options {
|
|
4663 |
'option_type' => 'select',
|
4664 |
'label' => __( 'Number of Columns', 'feed-them-social' ),
|
4665 |
'type' => 'text',
|
4666 |
-
'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong>' . __( 'Using the Columns option will make this gallery fully responsive and it will adapt in size to your containers width. Choose the Number of Columns and Space between each image below. Please add px after any number.', 'feed-them-social' ) . ' <a href="
|
4667 |
'id' => 'fts_instagram_columns',
|
4668 |
'name' => 'fts_instagram_columns',
|
4669 |
'default_value' => '3',
|
@@ -4884,7 +4884,7 @@ class FTS_Settings_Page_Options {
|
|
4884 |
'sub_options' => array(
|
4885 |
'sub_options_wrap_class' => 'fts-instagram-load-more-options2-wrap',
|
4886 |
|
4887 |
-
// 'sub_options_instructional_txt' => '<a href="
|
4888 |
),
|
4889 |
),
|
4890 |
|
66 |
'main_select' => [
|
67 |
'req_plugin' => 'combine_streams',
|
68 |
'msg' => 'With this extension you can mix a Facebook, Instagram, Twitter, Youtube and Pinterest posts all in one feed. The other feature this exentsion gives you is the abillity to mix multiple Facebook accounts into one feed!
|
69 |
+
<a href="https://feedthemsocial.com/feed-them-social-combined-streams/" target="_blank">View Combined Streams Demo</a> . <a href="https://feedthemsocial.com/feed-them-social-combined-streams/#combined-fb-streams" target="_blank">View Combined Facebook Streams Demo</a>',
|
70 |
],
|
71 |
),
|
72 |
'short_attr_final' => 'yes',
|
1123 |
'premium_msg_boxes' => array(
|
1124 |
'album_videos' => array(
|
1125 |
'req_plugin' => 'fts_premium',
|
1126 |
+
'msg' => 'The Facebook video feed allows you to view your uploaded videos from facebook. See these great examples and options of all the different ways you can bring new life to your wordpress site! <a href="https://feedthemsocial.com/facebook-videos-demo/" target="_blank">View Demo</a><br /><br />Additionally if you purchase the Carousel Plugin you can showcase your videos in a slideshow or carousel. Works with your Facebook Photos too! <a href="https://feedthemsocial.com/facebook-carousels/" target="_blank">View Carousel Demo</a>',
|
1127 |
),
|
1128 |
'reviews' => array(
|
1129 |
'req_plugin' => 'facebook_reviews',
|
1130 |
+
'msg' => 'The Facebook Reviews feed allows you to view all of the reviews people have made on your Facebook Page. See these great examples and options of all the different ways you can display your Facebook Page Reviews on your website. <a href="https://feedthemsocial.com/facebook-page-reviews-demo/" target="_blank">View Demo</a>',
|
1131 |
),
|
1132 |
),
|
1133 |
'short_attr_final' => 'yes',
|
2040 |
'sub_options' => array(
|
2041 |
'sub_options_wrap_class' => 'facebook-loadmore-wrap',
|
2042 |
|
2043 |
+
// 'sub_options_instructional_txt' => '<a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
|
2044 |
),
|
2045 |
),
|
2046 |
|
2073 |
'sub_options' => array(
|
2074 |
'sub_options_wrap_class' => 'fts-facebook-load-more-options-wrap',
|
2075 |
|
2076 |
+
// 'sub_options_instructional_txt' => '<a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
|
2077 |
),
|
2078 |
'sub_options_end' => true,
|
2079 |
),
|
2102 |
'sub_options' => array(
|
2103 |
'sub_options_wrap_class' => 'fts-facebook-load-more-options2-wrap',
|
2104 |
|
2105 |
+
// 'sub_options_instructional_txt' => '<a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
|
2106 |
),
|
2107 |
),
|
2108 |
|
2193 |
'sub_options' => array(
|
2194 |
'sub_options_wrap_class' => 'fts-facebook-grid-options-wrap',
|
2195 |
|
2196 |
+
// 'sub_options_instructional_txt' => '<a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
|
2197 |
),
|
2198 |
),
|
2199 |
|
2314 |
array(
|
2315 |
'grouped_options_title' => __( 'Carousel/Slider', 'feed-them-social' ),
|
2316 |
'input_wrap_id' => 'facebook_slider',
|
2317 |
+
'instructional-text' => __( 'Create a Carousel or Slideshow with these options.', 'feed-them-social' ) . ' <a href="https://feedthemsocial.com/facebook-carousels-or-sliders/" target="_blank">' . __( 'View Demos', 'feed-them-social' ) . '</a> ' . __( 'and copy easy to use shortcode examples.', 'feed-them-social' ),
|
2318 |
'option_type' => 'select',
|
2319 |
'label' => __( 'Carousel/Slideshow', 'feed-them-social' ),
|
2320 |
'type' => 'text',
|
2769 |
|
2770 |
// Feed Type Selection
|
2771 |
'feed_type_select' => array(
|
2772 |
+
'label' => __( 'Feed Type', 'feed-them-social' ) . '<br/><small><a href="https://feedthemsocial.com/youtube-demo-1-large-with-4-video-per-row/" target="_blank">' . __( 'See Example Demos', 'feed-them-social' ) . '</a></small>',
|
2773 |
'select_wrap_classes' => 'youtube-gen-selection',
|
2774 |
'select_classes' => '',
|
2775 |
'select_name' => 'youtube-messages-selector',
|
4241 |
'sub_options' => array(
|
4242 |
'sub_options_wrap_class' => 'fts-twitter-grid-options-wrap',
|
4243 |
|
4244 |
+
// 'sub_options_instructional_txt' => '<a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
|
4245 |
),
|
4246 |
),
|
4247 |
|
4663 |
'option_type' => 'select',
|
4664 |
'label' => __( 'Number of Columns', 'feed-them-social' ),
|
4665 |
'type' => 'text',
|
4666 |
+
'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong>' . __( 'Using the Columns option will make this gallery fully responsive and it will adapt in size to your containers width. Choose the Number of Columns and Space between each image below. Please add px after any number.', 'feed-them-social' ) . ' <a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __( 'View demo', 'feed-them-social' ) . '</a>',
|
4667 |
'id' => 'fts_instagram_columns',
|
4668 |
'name' => 'fts_instagram_columns',
|
4669 |
'default_value' => '3',
|
4884 |
'sub_options' => array(
|
4885 |
'sub_options_wrap_class' => 'fts-instagram-load-more-options2-wrap',
|
4886 |
|
4887 |
+
// 'sub_options_instructional_txt' => '<a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
|
4888 |
),
|
4889 |
),
|
4890 |
|
admin/class-fts-twitter-options-page.php
CHANGED
@@ -221,7 +221,7 @@ class FTS_Twitter_Options_Page {
|
|
221 |
}
|
222 |
} else {
|
223 |
echo sprintf(
|
224 |
-
esc_html( '%1$
|
225 |
'<div class="fts-successful-api-token">',
|
226 |
'<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' ) . '">',
|
227 |
'</a>',
|
221 |
}
|
222 |
} else {
|
223 |
echo sprintf(
|
224 |
+
esc_html( '%1$sYour access token is working! Generate your shortcode on the %2$sSettings Page%3$s.%4$s', 'feed-them-social' ),
|
225 |
'<div class="fts-successful-api-token">',
|
226 |
'<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' ) . '">',
|
227 |
'</a>',
|
feed-them.php
CHANGED
@@ -7,18 +7,18 @@
|
|
7 |
* Plugin Name: Feed Them Social (Facebook, Instagram, Twitter, etc)
|
8 |
* Plugin URI: https://feedthemsocial.com/
|
9 |
* Description: Customize feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
10 |
-
* Version: 2.5.
|
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 4.9.8
|
17 |
-
* Stable tag: 2.5.
|
18 |
* License: GPLv2 or later
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
-
* @version 2.5.
|
22 |
* @package FeedThemSocial/Core
|
23 |
* @copyright Copyright (c) 2012-2018 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.5.
|
35 |
|
36 |
/**
|
37 |
* Class Feed_Them_Social
|
7 |
* Plugin Name: Feed Them Social (Facebook, Instagram, Twitter, etc)
|
8 |
* Plugin URI: https://feedthemsocial.com/
|
9 |
* Description: Customize feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
10 |
+
* Version: 2.5.5
|
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 4.9.8
|
17 |
+
* Stable tag: 2.5.5
|
18 |
* License: GPLv2 or later
|
19 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
20 |
*
|
21 |
+
* @version 2.5.5
|
22 |
* @package FeedThemSocial/Core
|
23 |
* @copyright Copyright (c) 2012-2018 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.5.5' );
|
35 |
|
36 |
/**
|
37 |
* Class Feed_Them_Social
|
feeds/facebook/class-fts-facebook-feed-post-types.php
CHANGED
@@ -926,7 +926,6 @@ class FTS_Facebook_Feed_Post_Types extends FTS_Facebook_Feed {
|
|
926 |
if ( $fb_post_object_id ) {
|
927 |
$this->fts_facebook_post_photo( $fb_link, $fb_shortcode, $post_data->from->name, 'https://graph.facebook.com/' . $fb_post_object_id . '/picture' );
|
928 |
} else {
|
929 |
-
echo 'srczzzz' . $post_data->source;
|
930 |
echo isset( $fb_shortcode['video_album'] ) && 'yes' === $fb_shortcode['video_album'] ? $this->fts_facebook_post_photo( $fb_link, $fb_shortcode, $post_data->from->name, $video_photo ) : $this->fts_facebook_post_photo( $fb_link, $fb_shortcode, $post_data->from->name, $post_data->source );
|
931 |
}
|
932 |
}
|
926 |
if ( $fb_post_object_id ) {
|
927 |
$this->fts_facebook_post_photo( $fb_link, $fb_shortcode, $post_data->from->name, 'https://graph.facebook.com/' . $fb_post_object_id . '/picture' );
|
928 |
} else {
|
|
|
929 |
echo isset( $fb_shortcode['video_album'] ) && 'yes' === $fb_shortcode['video_album'] ? $this->fts_facebook_post_photo( $fb_link, $fb_shortcode, $post_data->from->name, $video_photo ) : $this->fts_facebook_post_photo( $fb_link, $fb_shortcode, $post_data->from->name, $post_data->source );
|
930 |
}
|
931 |
}
|
feeds/facebook/class-fts-facebook-feed.php
CHANGED
@@ -612,7 +612,7 @@ style="margin:' . ( isset( $fb_shortcode['slider_margin'] ) && '' !== $fb_shortc
|
|
612 |
echo '<div class="fts-slicker-facebook-posts masonry js-masonry ' . esc_attr( $fts_mashup_media_top . $fts_mashup_show_name . $fts_mashup_show_date . $fts_mashup_show_thumbnail ) . ( 'yes' === $fb_shortcode['popup'] ? 'popup-gallery-fb-posts ' : '' ) . ( 'reviews' === $fb_shortcode['type'] ? 'fts-reviews-feed ' : '' ) . esc_attr( $fts_dynamic_class_name ) . ' " style="margin:auto;" data-masonry-options=\'{ "isFitWidth": ' . ( 'no' === $fb_shortcode['center_container'] ? 'false' : 'true' ) . ' ' . ( 'no' === $fb_shortcode['image_stack_animation'] ? ', "transitionDuration": 0' : '' ) . '}\'>';
|
613 |
}
|
614 |
} else {
|
615 |
-
echo '<div class="fts-jal-fb-group-display fts-simple-fb-wrapper ' . esc_attr( $fts_mashup_media_top . $fts_mashup_show_name . $fts_mashup_show_date . $fts_mashup_show_thumbnail ) . ( isset( $fb_shortcode['popup'] ) && 'yes' === $fb_shortcode['popup'] ? ' popup-gallery-fb-posts ' : '' ) . ( 'reviews' === $fb_shortcode['type'] ? 'fts-reviews-feed ' : '' ) . esc_attr( $fts_dynamic_class_name ) . ' ' . ( 'auto' !== $fb_shortcode['height'] &&
|
616 |
}
|
617 |
} //End ajaxing Check
|
618 |
|
@@ -684,7 +684,7 @@ style="margin:' . ( isset( $fb_shortcode['slider_margin'] ) && '' !== $fb_shortc
|
|
684 |
|
685 |
echo '</div>'; // closing main div for fb photos, groups etc
|
686 |
// only show this script if the height option is set to a number.
|
687 |
-
if ( 'auto' !== $fb_shortcode['height'] &&
|
688 |
echo '<script>';
|
689 |
// this makes it so the page does not scroll if you reach the end of scroll bar or go back to top'.
|
690 |
echo 'jQuery.fn.isolatedScrollFacebookFTS = function() {';
|
612 |
echo '<div class="fts-slicker-facebook-posts masonry js-masonry ' . esc_attr( $fts_mashup_media_top . $fts_mashup_show_name . $fts_mashup_show_date . $fts_mashup_show_thumbnail ) . ( 'yes' === $fb_shortcode['popup'] ? 'popup-gallery-fb-posts ' : '' ) . ( 'reviews' === $fb_shortcode['type'] ? 'fts-reviews-feed ' : '' ) . esc_attr( $fts_dynamic_class_name ) . ' " style="margin:auto;" data-masonry-options=\'{ "isFitWidth": ' . ( 'no' === $fb_shortcode['center_container'] ? 'false' : 'true' ) . ' ' . ( 'no' === $fb_shortcode['image_stack_animation'] ? ', "transitionDuration": 0' : '' ) . '}\'>';
|
613 |
}
|
614 |
} else {
|
615 |
+
echo '<div class="fts-jal-fb-group-display fts-simple-fb-wrapper ' . esc_attr( $fts_mashup_media_top . $fts_mashup_show_name . $fts_mashup_show_date . $fts_mashup_show_thumbnail ) . ( isset( $fb_shortcode['popup'] ) && 'yes' === $fb_shortcode['popup'] ? ' popup-gallery-fb-posts ' : '' ) . ( 'reviews' === $fb_shortcode['type'] ? 'fts-reviews-feed ' : '' ) . esc_attr( $fts_dynamic_class_name ) . ' ' . ( 'auto' !== $fb_shortcode['height'] && ! empty( $fb_shortcode['height'] ) ? 'fts-fb-scrollable" style="height:' . esc_attr( $fb_shortcode['height'] ) . '"' : '"' ) . '>';
|
616 |
}
|
617 |
} //End ajaxing Check
|
618 |
|
684 |
|
685 |
echo '</div>'; // closing main div for fb photos, groups etc
|
686 |
// only show this script if the height option is set to a number.
|
687 |
+
if ( 'auto' !== $fb_shortcode['height'] && ! empty( $fb_shortcode['height'] ) ) {
|
688 |
echo '<script>';
|
689 |
// this makes it so the page does not scroll if you reach the end of scroll bar or go back to top'.
|
690 |
echo 'jQuery.fn.isolatedScrollFacebookFTS = function() {';
|
feeds/instagram/class-fts-instagram-feed.php
CHANGED
@@ -530,7 +530,7 @@ if ( 'yes' === $profile_description ) {
|
|
530 |
echo '</div>';
|
531 |
}
|
532 |
|
533 |
-
if ( isset( $scroll_more ) && 'autoscroll' === $scroll_more ||
|
534 |
?>
|
535 |
<div class="fts-instagram-scrollable <?php echo esc_attr( $fts_dynamic_class_name ); ?>instagram" style="overflow:auto;
|
536 |
<?php
|
@@ -912,7 +912,7 @@ if ( 'yes' === $profile_description ) {
|
|
912 |
?>
|
913 |
<?php
|
914 |
// only show this script if the height option is set to a number.
|
915 |
-
if (
|
916 |
?>
|
917 |
<script>
|
918 |
// this makes it so the page does not scroll if you reach the end of scroll bar or go back to top
|
@@ -931,7 +931,7 @@ if ( 'yes' === $profile_description ) {
|
|
931 |
</script>
|
932 |
<?php } //end $height !== 'auto' && empty($height) == NULL. ?>
|
933 |
<?php
|
934 |
-
if ( isset( $scroll_more ) && 'autoscroll' === $scroll_more ||
|
935 |
print '</div>'; // closing height div for scrollable feeds.
|
936 |
}
|
937 |
|
530 |
echo '</div>';
|
531 |
}
|
532 |
|
533 |
+
if ( isset( $scroll_more ) && 'autoscroll' === $scroll_more || ! empty( $height ) ) {
|
534 |
?>
|
535 |
<div class="fts-instagram-scrollable <?php echo esc_attr( $fts_dynamic_class_name ); ?>instagram" style="overflow:auto;
|
536 |
<?php
|
912 |
?>
|
913 |
<?php
|
914 |
// only show this script if the height option is set to a number.
|
915 |
+
if ( isset( $height ) && 'auto' !== $height ) {
|
916 |
?>
|
917 |
<script>
|
918 |
// this makes it so the page does not scroll if you reach the end of scroll bar or go back to top
|
931 |
</script>
|
932 |
<?php } //end $height !== 'auto' && empty($height) == NULL. ?>
|
933 |
<?php
|
934 |
+
if ( isset( $scroll_more ) && 'autoscroll' === $scroll_more || !empty( $height ) ) {
|
935 |
print '</div>'; // closing height div for scrollable feeds.
|
936 |
}
|
937 |
|
feeds/js/magnific-popup-full.js
CHANGED
@@ -1129,11 +1129,11 @@ jQuery(document).ready(function() {
|
|
1129 |
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>'
|
1130 |
},
|
1131 |
image: {
|
1132 |
-
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="
|
1133 |
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
|
1134 |
},
|
1135 |
iframe: {
|
1136 |
-
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="
|
1137 |
srcAction: "iframe_src"
|
1138 |
}
|
1139 |
})
|
1129 |
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>'
|
1130 |
},
|
1131 |
image: {
|
1132 |
+
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>',
|
1133 |
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
|
1134 |
},
|
1135 |
iframe: {
|
1136 |
+
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>',
|
1137 |
srcAction: "iframe_src"
|
1138 |
}
|
1139 |
})
|
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],r.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;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: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""}(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)}}});var F;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 M="iframe",L=function(e){if(t.currTemplate[M]){var o=t.currTemplate[M].find("iframe");o.length&&(e||(o[0].src="//about:blank"),t.isIE8&&o.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(M,{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(M),w("BeforeChange",function(e,t,o){t!==o&&(t===M?L():o===M&&L(!0))}),w(n+"."+M,function(){L()})},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 A=function(e){var o=t.items.length;return e>o-1?e-o:0>e?o+e:e},H=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=H(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?H(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=A(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=A(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=A(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 N="retina";e.magnificPopup.registerModule(N,{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."+N,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),w("ElementParse."+N,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};a.title=jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-jal-fb-top-wrap").html()+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-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='<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=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.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")}},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="http://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="http://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],r.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;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: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""}(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)}}});var F;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 M="iframe",L=function(e){if(t.currTemplate[M]){var o=t.currTemplate[M].find("iframe");o.length&&(e||(o[0].src="//about:blank"),t.isIE8&&o.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(M,{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(M),w("BeforeChange",function(e,t,o){t!==o&&(t===M?L():o===M&&L(!0))}),w(n+"."+M,function(){L()})},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 A=function(e){var o=t.items.length;return e>o-1?e-o:0>e?o+e:e},H=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=H(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?H(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=A(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=A(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=A(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 N="retina";e.magnificPopup.registerModule(N,{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."+N,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),w("ElementParse."+N,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};a.title=jQuery(this).parents(".fts-fb-photo-post-wrap, .fts-events-list-wrap, .fts-jal-single-fb-post").find(".fts-jal-fb-top-wrap").html()+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-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='<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=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.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")}},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()});
|
feeds/twitter/class-fts-twitter-feed.php
CHANGED
@@ -316,7 +316,7 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
316 |
|
317 |
include WP_CONTENT_DIR . '/plugins/feed-them-premium/feeds/twitter/twitter-feed.php';
|
318 |
|
319 |
-
if ( 'yes' === $popup ) {
|
320 |
// it's ok if these styles & scripts load at the bottom of the page.
|
321 |
$fts_fix_magnific = get_option( 'fts_fix_magnific' ) ? get_option( 'fts_fix_magnific' ) : '';
|
322 |
if ( isset( $fts_fix_magnific ) && '1' !== $fts_fix_magnific ) {
|
@@ -369,8 +369,6 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
369 |
}
|
370 |
}
|
371 |
|
372 |
-
ob_start();
|
373 |
-
|
374 |
if ( ! empty( $search ) ) {
|
375 |
$data_cache = 'twitter_data_cache_' . $search . '_num' . $num_tweets . '';
|
376 |
} else {
|
@@ -430,7 +428,7 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
430 |
) {
|
431 |
$total_to_fetch = $num_tweets;
|
432 |
} else {
|
433 |
-
$total_to_fetch = 'true'
|
434 |
}
|
435 |
// $total_to_fetch = $num_tweets;.
|
436 |
$description_image = ! empty( $description_image ) ? $description_image : '';
|
@@ -438,7 +436,7 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
438 |
if ( isset( $show_retweets ) && 'yes' === $show_retweets ) {
|
439 |
$show_retweets = 'true';
|
440 |
}
|
441 |
-
if ( 'no' === $show_retweets ) {
|
442 |
$show_retweets = 'false';
|
443 |
}
|
444 |
|
@@ -522,6 +520,8 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
522 |
$error_check = __( ' This account has no tweets. Please Tweet to see this feed. Feed Them Social.', 'feed-them-social' );
|
523 |
}
|
524 |
|
|
|
|
|
525 |
// IS RATE LIMIT REACHED?
|
526 |
if ( isset( $fetched_tweets->errors ) && '32' !== $fetched_tweets->errors[0]->code && '34' !== $fetched_tweets->errors[0]->code ) {
|
527 |
echo esc_html( 'Rate Limited Exceeded. Please go to the Feed Them Social Plugin then the Twitter Options page and follow the instructions under the header Twitter API Token.', 'feed-them-social' );
|
@@ -636,21 +636,22 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
636 |
<?php
|
637 |
} else {
|
638 |
?>
|
639 |
-
<div id="twitter-feed-<?php echo esc_attr( $twitter_name ); ?>" class="<?php echo esc_attr( $fts_dynamic_class_name ); ?> fts-twitter-div
|
640 |
-
|
641 |
-
if (
|
642 |
?>
|
643 |
-
|
644 |
-
|
645 |
}
|
646 |
if ( isset( $popup ) && 'yes' === $popup ) {
|
647 |
|
648 |
?>
|
649 |
-
|
650 |
<?php
|
651 |
-
if (
|
|
|
652 |
?>
|
653 |
-
|
654 |
<?php } ?>
|
655 |
|
656 |
<?php
|
@@ -937,7 +938,8 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
937 |
</div>
|
938 |
<?php
|
939 |
$i++;
|
940 |
-
|
|
|
941 |
break;
|
942 |
}
|
943 |
}
|
@@ -960,7 +962,7 @@ class FTS_Twitter_Feed extends feed_them_social_functions {
|
|
960 |
<?php
|
961 |
|
962 |
// this makes it so the page does not scroll if you reach the end of scroll bar or go back to top.
|
963 |
-
if (
|
964 |
?>
|
965 |
<script>jQuery.fn.isolatedScrollTwitter = function () {
|
966 |
this.bind('mousewheel DOMMouseScroll', function (e) {
|
316 |
|
317 |
include WP_CONTENT_DIR . '/plugins/feed-them-premium/feeds/twitter/twitter-feed.php';
|
318 |
|
319 |
+
if ( isset( $popup ) && 'yes' === $popup ) {
|
320 |
// it's ok if these styles & scripts load at the bottom of the page.
|
321 |
$fts_fix_magnific = get_option( 'fts_fix_magnific' ) ? get_option( 'fts_fix_magnific' ) : '';
|
322 |
if ( isset( $fts_fix_magnific ) && '1' !== $fts_fix_magnific ) {
|
369 |
}
|
370 |
}
|
371 |
|
|
|
|
|
372 |
if ( ! empty( $search ) ) {
|
373 |
$data_cache = 'twitter_data_cache_' . $search . '_num' . $num_tweets . '';
|
374 |
} else {
|
428 |
) {
|
429 |
$total_to_fetch = $num_tweets;
|
430 |
} else {
|
431 |
+
$total_to_fetch = $exclude_replies == 'true' ? max( 50, $num_tweets * 3 ) : $num_tweets;
|
432 |
}
|
433 |
// $total_to_fetch = $num_tweets;.
|
434 |
$description_image = ! empty( $description_image ) ? $description_image : '';
|
436 |
if ( isset( $show_retweets ) && 'yes' === $show_retweets ) {
|
437 |
$show_retweets = 'true';
|
438 |
}
|
439 |
+
if ( isset( $show_retweets ) && 'no' === $show_retweets ) {
|
440 |
$show_retweets = 'false';
|
441 |
}
|
442 |
|
520 |
$error_check = __( ' This account has no tweets. Please Tweet to see this feed. Feed Them Social.', 'feed-them-social' );
|
521 |
}
|
522 |
|
523 |
+
ob_start();
|
524 |
+
|
525 |
// IS RATE LIMIT REACHED?
|
526 |
if ( isset( $fetched_tweets->errors ) && '32' !== $fetched_tweets->errors[0]->code && '34' !== $fetched_tweets->errors[0]->code ) {
|
527 |
echo esc_html( 'Rate Limited Exceeded. Please go to the Feed Them Social Plugin then the Twitter Options page and follow the instructions under the header Twitter API Token.', 'feed-them-social' );
|
636 |
<?php
|
637 |
} else {
|
638 |
?>
|
639 |
+
<div id="twitter-feed-<?php echo esc_attr( $twitter_name ); ?>" class="<?php echo esc_attr( $fts_dynamic_class_name ); ?> fts-twitter-div
|
640 |
+
<?php
|
641 |
+
if ( ! empty( $twitter_height ) && 'auto' !== $twitter_height ) {
|
642 |
?>
|
643 |
+
fts-twitter-scrollable
|
644 |
+
<?php
|
645 |
}
|
646 |
if ( isset( $popup ) && 'yes' === $popup ) {
|
647 |
|
648 |
?>
|
649 |
+
popup-gallery-twitter<?php } ?>"
|
650 |
<?php
|
651 |
+
if ( ! empty( $twitter_height ) && 'auto' !== $twitter_height ) {
|
652 |
+
|
653 |
?>
|
654 |
+
style="height:<?php echo esc_attr( $twitter_height ); ?>"<?php } ?>>
|
655 |
<?php } ?>
|
656 |
|
657 |
<?php
|
938 |
</div>
|
939 |
<?php
|
940 |
$i++;
|
941 |
+
// cannot use === for this equation because $i is a dynamic number.
|
942 |
+
if ( $i == $num_tweets ) {
|
943 |
break;
|
944 |
}
|
945 |
}
|
962 |
<?php
|
963 |
|
964 |
// this makes it so the page does not scroll if you reach the end of scroll bar or go back to top.
|
965 |
+
if ( ! empty( $twitter_height ) && 'auto' !== $twitter_height ) {
|
966 |
?>
|
967 |
<script>jQuery.fn.isolatedScrollTwitter = function () {
|
968 |
this.bind('mousewheel DOMMouseScroll', function (e) {
|
feeds/youtube/class-youtube-feed-free.php
CHANGED
@@ -283,11 +283,6 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
283 |
}
|
284 |
echo '</div>';
|
285 |
}
|
286 |
-
// we ob_get_clean here so the button is on top and also allows the content in WordPress textarea to be on top if shortcode is below text.
|
287 |
-
echo ob_get_clean();
|
288 |
-
|
289 |
-
// and we start over so we can ob_get_clean at the very end.
|
290 |
-
ob_start();
|
291 |
// This first line was added to fix the bug that happens when using the popular DIVI theme.
|
292 |
$ssl = is_ssl() ? 'https' : 'http';
|
293 |
|
@@ -333,7 +328,7 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
333 |
if ( 'yes' === $large_vid_title ) {
|
334 |
echo '<h2>' . esc_html( $this->fts_youtube_title( $post_data ) ) . '</h2>';
|
335 |
}
|
336 |
-
|
337 |
echo $this->fts_youtube_video_and_wrap( $post_data, $username, $playlist_id );
|
338 |
|
339 |
$youtube_description = $this->fts_youtube_tag_filter( $this->fts_youtube_description( $post_data ) );
|
@@ -477,12 +472,11 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
477 |
|
478 |
$youtube_video_url = $ssl . '://www.youtube.com/watch?v=' . $video_id;
|
479 |
|
480 |
-
$href
|
481 |
-
|
482 |
-
$iframe_embed = '' . $ssl . '://www.youtube.com/embed/' . $video_id . '?wmode=transparent&HD=0&rel=0&showinfo=0&controls=1&autoplay=1&wmode=opaque"';
|
483 |
$iframe = isset( $thumbs_play_iframe ) && 'yes' === $thumbs_play_iframe ? ' fts-youtube-iframe-click' : '';
|
484 |
-
|
485 |
-
echo '<a href="' .
|
486 |
|
487 |
if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) {
|
488 |
// echo '<div id="#fts-' . $video_id . '" class="fts-yt-overlay-wrap">';.
|
@@ -514,12 +508,11 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
514 |
|
515 |
$youtube_video_url = $ssl . '://www.youtube.com/watch?v=' . $video_id;
|
516 |
|
517 |
-
$href
|
518 |
-
|
519 |
-
$iframe_embed = 'rel="' . $ssl . '://www.youtube.com/embed/' . $video_id . '?wmode=transparent&HD=0&rel=0&showinfo=0&controls=1&autoplay=1&wmode=opaque"';
|
520 |
$iframe = isset( $thumbs_play_iframe ) && 'yes' === $thumbs_play_iframe ? ' fts-youtube-iframe-click' : '';
|
521 |
-
|
522 |
-
echo '<a href="' .
|
523 |
|
524 |
if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) {
|
525 |
echo '<div class="entriestitle fts-youtube-popup fts-facebook-popup"><div class="fts-master-youtube-wrap-close fts-yt-close-' . esc_attr( sanitize_text_field( wp_unslash( $_REQUEST['fts_dynamic_name'] ) ) ) . '"></div>';
|
@@ -738,7 +731,7 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
738 |
echo '</div>';
|
739 |
}
|
740 |
|
741 |
-
|
742 |
|
743 |
} else {
|
744 |
print 'Please add an access token to the Youtube Options page of Feed Them Social.';
|
@@ -824,7 +817,6 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
824 |
|
825 |
$youtube_comment = $this->fts_youtube_tag_filter( $message );
|
826 |
|
827 |
-
|
828 |
echo '<div class="fts-fb-comment">';
|
829 |
echo '<a href="' . $comment_data->snippet->topLevelComment->snippet->authorChannelUrl . '" target="_blank" class="">';
|
830 |
echo '<img src="' . $comment_data->snippet->topLevelComment->snippet->authorProfileImageUrl . '" class="fts-fb-comment-user-pic"/>';
|
@@ -836,16 +828,17 @@ class FTS_Youtube_Feed_Free extends feed_them_social_functions {
|
|
836 |
echo '</a>';
|
837 |
echo '</span> ';
|
838 |
echo '<span class="fts-fb-comment-date">' . esc_html( $this->fts_custom_date( $comment_data->snippet->topLevelComment->snippet->publishedAt, 'youtube' ) ) . '</span><br/>';
|
839 |
-
echo wp_kses(
|
|
|
840 |
array(
|
841 |
'a' => array(
|
842 |
'href' => array(),
|
843 |
-
'title' => array()
|
844 |
),
|
845 |
'br' => array(),
|
846 |
'em' => array(),
|
847 |
'strong' => array(),
|
848 |
-
'small' => array()
|
849 |
)
|
850 |
);
|
851 |
echo '</div>';
|
283 |
}
|
284 |
echo '</div>';
|
285 |
}
|
|
|
|
|
|
|
|
|
|
|
286 |
// This first line was added to fix the bug that happens when using the popular DIVI theme.
|
287 |
$ssl = is_ssl() ? 'https' : 'http';
|
288 |
|
328 |
if ( 'yes' === $large_vid_title ) {
|
329 |
echo '<h2>' . esc_html( $this->fts_youtube_title( $post_data ) ) . '</h2>';
|
330 |
}
|
331 |
+
// URL for the video is escaped in this function.
|
332 |
echo $this->fts_youtube_video_and_wrap( $post_data, $username, $playlist_id );
|
333 |
|
334 |
$youtube_description = $this->fts_youtube_tag_filter( $this->fts_youtube_description( $post_data ) );
|
472 |
|
473 |
$youtube_video_url = $ssl . '://www.youtube.com/watch?v=' . $video_id;
|
474 |
|
475 |
+
$href = isset( $thumbs_play_iframe ) && 'yes' === $thumbs_play_iframe ? 'javascript:;' : esc_url_raw( $youtube_video_url );
|
476 |
+
$iframe_embed = '' . $ssl . '://www.youtube.com/embed/' . $video_id . '?wmode=transparent&HD=0&rel=0&showinfo=0&controls=1&autoplay=1&wmode=opaque';
|
|
|
477 |
$iframe = isset( $thumbs_play_iframe ) && 'yes' === $thumbs_play_iframe ? ' fts-youtube-iframe-click' : '';
|
478 |
+
// escaping the $href above because one option is html and one is url raw.
|
479 |
+
echo '<a href="' . $href . '" rel="' . esc_url_raw( $iframe_embed ) . '" ' . esc_attr( $target ) . ' class="fts-yt-open' . esc_attr( $url . $iframe ) . '"></a>';
|
480 |
|
481 |
if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) {
|
482 |
// echo '<div id="#fts-' . $video_id . '" class="fts-yt-overlay-wrap">';.
|
508 |
|
509 |
$youtube_video_url = $ssl . '://www.youtube.com/watch?v=' . $video_id;
|
510 |
|
511 |
+
$href = isset( $thumbs_play_iframe ) && 'yes' === $thumbs_play_iframe ? esc_html( 'javascript:;' ) : esc_url_raw( $youtube_video_url );
|
512 |
+
$iframe_embed = '' . $ssl . '://www.youtube.com/embed/' . $video_id . '?wmode=transparent&HD=0&rel=0&showinfo=0&controls=1&autoplay=1&wmode=opaque';
|
|
|
513 |
$iframe = isset( $thumbs_play_iframe ) && 'yes' === $thumbs_play_iframe ? ' fts-youtube-iframe-click' : '';
|
514 |
+
// escaping the $href above because one option is html and one is url raw.
|
515 |
+
echo '<a href="' . $href . '" rel="' . esc_url_raw( $iframe_embed ) . '" ' . esc_attr( $target ) . ' class="fts-yt-open' . esc_attr( $url . $iframe ) . '"></a>';
|
516 |
|
517 |
if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) {
|
518 |
echo '<div class="entriestitle fts-youtube-popup fts-facebook-popup"><div class="fts-master-youtube-wrap-close fts-yt-close-' . esc_attr( sanitize_text_field( wp_unslash( $_REQUEST['fts_dynamic_name'] ) ) ) . '"></div>';
|
731 |
echo '</div>';
|
732 |
}
|
733 |
|
734 |
+
return ob_get_clean();
|
735 |
|
736 |
} else {
|
737 |
print 'Please add an access token to the Youtube Options page of Feed Them Social.';
|
817 |
|
818 |
$youtube_comment = $this->fts_youtube_tag_filter( $message );
|
819 |
|
|
|
820 |
echo '<div class="fts-fb-comment">';
|
821 |
echo '<a href="' . $comment_data->snippet->topLevelComment->snippet->authorChannelUrl . '" target="_blank" class="">';
|
822 |
echo '<img src="' . $comment_data->snippet->topLevelComment->snippet->authorProfileImageUrl . '" class="fts-fb-comment-user-pic"/>';
|
828 |
echo '</a>';
|
829 |
echo '</span> ';
|
830 |
echo '<span class="fts-fb-comment-date">' . esc_html( $this->fts_custom_date( $comment_data->snippet->topLevelComment->snippet->publishedAt, 'youtube' ) ) . '</span><br/>';
|
831 |
+
echo wp_kses(
|
832 |
+
$youtube_comment,
|
833 |
array(
|
834 |
'a' => array(
|
835 |
'href' => array(),
|
836 |
+
'title' => array(),
|
837 |
),
|
838 |
'br' => array(),
|
839 |
'em' => array(),
|
840 |
'strong' => array(),
|
841 |
+
'small' => array(),
|
842 |
)
|
843 |
);
|
844 |
echo '</div>';
|
includes/feed-them-functions.php
CHANGED
@@ -1850,12 +1850,22 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
1850 |
if ( isset( $section_info['premium_msg_boxes'] ) ) {
|
1851 |
foreach ( $section_info['premium_msg_boxes'] as $key => $premium_msg ) {
|
1852 |
if ( ! is_plugin_active( $required_plugins[ $premium_msg['req_plugin'] ]['plugin_url'] ) ) {
|
1853 |
-
$output .= '<div class="feed-them-social-admin-input-wrap fts-premium-options-message" id="not_active_' . esc_attr( $key ) . '"><a class="not-active-title" href="' . esc_url( $required_plugins[ $premium_msg['req_plugin'] ]['slick_url'] ) . '" target="_blank">' .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1854 |
$premium_msg['msg'],
|
1855 |
array(
|
1856 |
'a' => array(
|
1857 |
'href' => array(),
|
1858 |
'title' => array(),
|
|
|
1859 |
),
|
1860 |
'br' => array(),
|
1861 |
'em' => array(),
|
@@ -1929,7 +1939,7 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
1929 |
$output .= '</div><!--/feed-them-social-admin-input-wrap-->';
|
1930 |
};
|
1931 |
// INSTRUCTIONAL TEXT FOR FACEBOOK TYPE SELECTION. PAGE, GROUP, EVENT, ALBUMS, ALBUM COVERS AND HASH TAGS!
|
1932 |
-
$output .= '<div class="instructional-text facebook-message-generator page inst-text-facebook-page" style="display:block;">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-page-vanity-url/" target="_blank">' . esc_html( 'Facebook Page ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below. You cannot use Personal Profiles it must be a Facebook Page. If your page ID looks something like, My-Page-Name-50043151918, only use the number portion, 50043151918.', 'feed-them-social' ) . ' <a href="
|
1933 |
<div class="instructional-text facebook-message-generator group inst-text-facebook-group">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-group-id/" target="_blank">' . esc_html( 'Facebook Group ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below.', 'feed-them-social' ) . '</div>
|
1934 |
<div class="instructional-text facebook-message-generator event-list inst-text-facebook-event-list">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-event-id/" target="_blank">' . esc_html( 'Facebook Event ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below. PLEASE NOTE: This will only work with Facebook Page Events and you cannot have more than 25 events on Facebook.', 'feed-them-social' ) . '</div>
|
1935 |
<div class="instructional-text facebook-message-generator event inst-text-facebook-event">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-event-id/" target="_blank">' . esc_html( 'Facebook Event ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below.', 'feed-them-social' ) . '</div>
|
@@ -1938,9 +1948,9 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
1938 |
<div class="instructional-text facebook-message-generator video inst-text-facebook-video">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/docs/how-to-get-your-facebook-id-and-video-gallery-id" target="_blank">' . esc_html( 'Facebook ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below.', 'feed-them-social' ) . '</div>';
|
1939 |
if ( isset( $_GET['page'] ) && 'feed-them-settings-page' === $_GET['page'] ) {
|
1940 |
// this is for the facebook videos!
|
1941 |
-
$output .= '<div class="feed-them-social-admin-input-wrap fts-premium-options-message" style="display:none;"><a target="_blank" href="http://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium Version Required</a><br/>The Facebook video feed allows you to view your uploaded videos from facebook. See these great examples and options of all the different ways you can bring new life to your WordPress site!<br/><a href="
|
1942 |
// this is for the facebook reviews!
|
1943 |
-
$output .= '<div class="feed-them-social-admin-input-wrap fts-premium-options-message2" style="display:none;"><a target="_blank" href="http://www.slickremix.com/downloads/feed-them-social-facebook-reviews/">Facebook Reviews Required</a><br/>The Facebook Reviews feed allows you to view all of the reviews people have made on your Facebook Page. See these great examples and options of all the different ways you can display your Facebook Page Reviews on your website. <a href="
|
1944 |
}
|
1945 |
// FACEBOOK PAGE ID!
|
1946 |
if ( isset( $_GET['page'] ) && 'fts-bar-settings-page' !== $_GET['page'] ) {
|
@@ -2099,7 +2109,7 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
2099 |
|
2100 |
// Slideshow Carousel Options!
|
2101 |
$output .= '<div class="slideshow-wrap" style="display: none;">';
|
2102 |
-
$output .= '<div class="instructional-text" style="display: block;">' . esc_html( 'Create a Carousel or Slideshow with these options.', 'feed-them-social' ) . ' <a href="
|
2103 |
|
2104 |
if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) && is_plugin_active( 'feed-them-carousel-premium/feed-them-carousel-premium.php' ) ) {
|
2105 |
include $this->facebook_carousel_premium . 'admin/facebook-carousel-options-settings-page.php';
|
@@ -2341,7 +2351,7 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
2341 |
$output .= '<select id="instagram-custom-gallery" name="instagram-custom-gallery" class="feed-them-social-admin-input"><option value="no">' . esc_html( 'No', 'feed-them-social' ) . '</option><option value="yes">' . esc_html( 'Yes', 'feed-them-social' ) . '</option></select>';
|
2342 |
$output .= '<div class="fts-clear"></div>';
|
2343 |
$output .= '</div><!--/feed-them-social-admin-input-wrap-->';
|
2344 |
-
$output .= '<div class="feed-them-social-admin-input-wrap"><div class="feed-them-social-admin-input-label">' . esc_html( 'Instagram Image Size', 'feed-them-social' ) . '<br/><small><a href="
|
2345 |
<input type="text" name="fts-slicker-instagram-container-image-size" id="fts-slicker-instagram-container-image-size" class="feed-them-social-admin-input" value="250px" placeholder="">
|
2346 |
<div class="fts-clear"></div> </div>';
|
2347 |
$output .= '<div class="feed-them-social-admin-input-wrap"><div class="feed-them-social-admin-input-label">' . esc_html( 'Size of the Instagram Icon', 'feed-them-social' ) . '<br/><small>' . esc_html( 'Visible when you hover over photo', 'feed-them-social' ) . '</small></div>
|
@@ -2544,7 +2554,7 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
2544 |
// Fetch Multiple Requests!
|
2545 |
$responses = \Requests::request_multiple( $new_feeds_mulit_data );
|
2546 |
|
2547 |
-
$data =
|
2548 |
foreach ( $responses as $key => $response ) {
|
2549 |
|
2550 |
if ( is_a( $response, 'Requests_Response' ) ) {
|
@@ -2558,7 +2568,7 @@ if ( ! empty( $youtube_loadmore_text_color ) ) {
|
|
2558 |
|
2559 |
$single_response = \Requests::get( $url );
|
2560 |
|
2561 |
-
|
2562 |
if ( is_a( $single_response, 'Requests_Response' ) ) {
|
2563 |
$data[ $key ] = $single_response->body;
|
2564 |
}
|
1850 |
if ( isset( $section_info['premium_msg_boxes'] ) ) {
|
1851 |
foreach ( $section_info['premium_msg_boxes'] as $key => $premium_msg ) {
|
1852 |
if ( ! is_plugin_active( $required_plugins[ $premium_msg['req_plugin'] ]['plugin_url'] ) ) {
|
1853 |
+
$output .= '<div class="feed-them-social-admin-input-wrap fts-premium-options-message" id="not_active_' . esc_attr( $key ) . '"><a class="not-active-title" href="' . esc_url( $required_plugins[ $premium_msg['req_plugin'] ]['slick_url'] ) . '" target="_blank">' .
|
1854 |
+
|
1855 |
+
wp_kses(
|
1856 |
+
$required_plugins[ $premium_msg['req_plugin'] ]['name'] ,
|
1857 |
+
array(
|
1858 |
+
'h3' => array(),
|
1859 |
+
)
|
1860 |
+
) .
|
1861 |
+
|
1862 |
+
'</a>' . wp_kses(
|
1863 |
$premium_msg['msg'],
|
1864 |
array(
|
1865 |
'a' => array(
|
1866 |
'href' => array(),
|
1867 |
'title' => array(),
|
1868 |
+
'target' => array(),
|
1869 |
),
|
1870 |
'br' => array(),
|
1871 |
'em' => array(),
|
1939 |
$output .= '</div><!--/feed-them-social-admin-input-wrap-->';
|
1940 |
};
|
1941 |
// INSTRUCTIONAL TEXT FOR FACEBOOK TYPE SELECTION. PAGE, GROUP, EVENT, ALBUMS, ALBUM COVERS AND HASH TAGS!
|
1942 |
+
$output .= '<div class="instructional-text facebook-message-generator page inst-text-facebook-page" style="display:block;">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-page-vanity-url/" target="_blank">' . esc_html( 'Facebook Page ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below. You cannot use Personal Profiles it must be a Facebook Page. If your page ID looks something like, My-Page-Name-50043151918, only use the number portion, 50043151918.', 'feed-them-social' ) . ' <a href="https://feedthemsocial.com/?feedID=50043151918" target="_blank">' . esc_html( 'Test your Page ID on our demo', 'feed-them-social' ) . '</a></div>
|
1943 |
<div class="instructional-text facebook-message-generator group inst-text-facebook-group">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-group-id/" target="_blank">' . esc_html( 'Facebook Group ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below.', 'feed-them-social' ) . '</div>
|
1944 |
<div class="instructional-text facebook-message-generator event-list inst-text-facebook-event-list">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-event-id/" target="_blank">' . esc_html( 'Facebook Event ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below. PLEASE NOTE: This will only work with Facebook Page Events and you cannot have more than 25 events on Facebook.', 'feed-them-social' ) . '</div>
|
1945 |
<div class="instructional-text facebook-message-generator event inst-text-facebook-event">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/how-to-get-your-facebook-event-id/" target="_blank">' . esc_html( 'Facebook Event ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below.', 'feed-them-social' ) . '</div>
|
1948 |
<div class="instructional-text facebook-message-generator video inst-text-facebook-video">' . esc_html( 'Copy your', 'feed-them-social' ) . ' <a href="http://www.slickremix.com/docs/how-to-get-your-facebook-id-and-video-gallery-id" target="_blank">' . esc_html( 'Facebook ID', 'feed-them-social' ) . '</a> ' . esc_html( 'and paste it in the first input below.', 'feed-them-social' ) . '</div>';
|
1949 |
if ( isset( $_GET['page'] ) && 'feed-them-settings-page' === $_GET['page'] ) {
|
1950 |
// this is for the facebook videos!
|
1951 |
+
$output .= '<div class="feed-them-social-admin-input-wrap fts-premium-options-message" style="display:none;"><a target="_blank" href="http://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium Version Required</a><br/>The Facebook video feed allows you to view your uploaded videos from facebook. See these great examples and options of all the different ways you can bring new life to your WordPress site!<br/><a href="https://feedthemsocial.com/facebook-videos-demo/" target="_blank">View Demo</a><br/><br/>Additionally if you purchase the Carousel Plugin you can showcase your videos in a slideshow or carousel. Works with your Facebook Photos too!<br/><a href="https://feedthemsocial.com/facebook-carousels/" target="_blank">View Carousel Demo</a> </div>';
|
1952 |
// this is for the facebook reviews!
|
1953 |
+
$output .= '<div class="feed-them-social-admin-input-wrap fts-premium-options-message2" style="display:none;"><a target="_blank" href="http://www.slickremix.com/downloads/feed-them-social-facebook-reviews/">Facebook Reviews Required</a><br/>The Facebook Reviews feed allows you to view all of the reviews people have made on your Facebook Page. See these great examples and options of all the different ways you can display your Facebook Page Reviews on your website. <a href="https://feedthemsocial.com/facebook-page-reviews-demo/" target="_blank">View Demo</a></div>';
|
1954 |
}
|
1955 |
// FACEBOOK PAGE ID!
|
1956 |
if ( isset( $_GET['page'] ) && 'fts-bar-settings-page' !== $_GET['page'] ) {
|
2109 |
|
2110 |
// Slideshow Carousel Options!
|
2111 |
$output .= '<div class="slideshow-wrap" style="display: none;">';
|
2112 |
+
$output .= '<div class="instructional-text" style="display: block;">' . esc_html( 'Create a Carousel or Slideshow with these options.', 'feed-them-social' ) . ' <a href="https://feedthemsocial.com/facebook-carousels-or-sliders/" target="_blank">' . esc_html( 'View Demos', 'feed-them-social' ) . '</a> ' . esc_html( 'and copy easy to use shortcode examples.', 'feed-them-social' ) . '</div>';
|
2113 |
|
2114 |
if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) && is_plugin_active( 'feed-them-carousel-premium/feed-them-carousel-premium.php' ) ) {
|
2115 |
include $this->facebook_carousel_premium . 'admin/facebook-carousel-options-settings-page.php';
|
2351 |
$output .= '<select id="instagram-custom-gallery" name="instagram-custom-gallery" class="feed-them-social-admin-input"><option value="no">' . esc_html( 'No', 'feed-them-social' ) . '</option><option value="yes">' . esc_html( 'Yes', 'feed-them-social' ) . '</option></select>';
|
2352 |
$output .= '<div class="fts-clear"></div>';
|
2353 |
$output .= '</div><!--/feed-them-social-admin-input-wrap-->';
|
2354 |
+
$output .= '<div class="feed-them-social-admin-input-wrap"><div class="feed-them-social-admin-input-label">' . esc_html( 'Instagram Image Size', 'feed-them-social' ) . '<br/><small><a href="https://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . esc_html( 'View demo', 'feed-them-social' ) . '</a></small></div>
|
2355 |
<input type="text" name="fts-slicker-instagram-container-image-size" id="fts-slicker-instagram-container-image-size" class="feed-them-social-admin-input" value="250px" placeholder="">
|
2356 |
<div class="fts-clear"></div> </div>';
|
2357 |
$output .= '<div class="feed-them-social-admin-input-wrap"><div class="feed-them-social-admin-input-label">' . esc_html( 'Size of the Instagram Icon', 'feed-them-social' ) . '<br/><small>' . esc_html( 'Visible when you hover over photo', 'feed-them-social' ) . '</small></div>
|
2554 |
// Fetch Multiple Requests!
|
2555 |
$responses = \Requests::request_multiple( $new_feeds_mulit_data );
|
2556 |
|
2557 |
+
$data = array();
|
2558 |
foreach ( $responses as $key => $response ) {
|
2559 |
|
2560 |
if ( is_a( $response, 'Requests_Response' ) ) {
|
2568 |
|
2569 |
$single_response = \Requests::get( $url );
|
2570 |
|
2571 |
+
$data = array();
|
2572 |
if ( is_a( $single_response, 'Requests_Response' ) ) {
|
2573 |
$data[ $key ] = $single_response->body;
|
2574 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: slickremix
|
|
3 |
Tags: Facebook, Instagram, Twitter, YouTube, Feed
|
4 |
Requires at least: 3.6.0
|
5 |
Tested up to: 4.9.8
|
6 |
-
Stable tag: 2.5.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Custom feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
@@ -76,6 +76,12 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
76 |
* Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
|
77 |
|
78 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= Version 2.5.2 - 2.5.4 Wednesday, October 10th, 2018 =
|
80 |
* Full audit of every file to ensure proper escaping and sanitizing are in place to help prevent malicious attacks through our plugin.
|
81 |
* NOTICE: Users of the Combined Streams Extension will also need to update to correct some formatting issues.
|
@@ -186,7 +192,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
186 |
* FIX: YouTube Feed: Date formats besides the 1 day ago not working properly. This also fixes a non numeric warning that was coming up on the page too if you did not have the 1 day ago date option set. If debug mode was set to false in your wp-config you would not have seen the warning on the page.
|
187 |
|
188 |
= Version 2.3.2 - 2.3.3 Thursday, November 28th, 2017 =
|
189 |
-
* NEW: YouTube Feed is now apart of the free version and it has a completely new look! [See New Demo](
|
190 |
* NEW: YouTube Options: New simple button to get your access token and token automatically saves to the page after it returns. No need to click the save button!
|
191 |
* NEW: Twitter Options: No more time waisted created your own keys, now we have a new simple button to get your access token.
|
192 |
* NEW: System Info Page: Added Cache Time to the report
|
@@ -222,7 +228,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
222 |
* FIX: Twitter Feed: Overflow auto missing for scrolling feeds.
|
223 |
|
224 |
= Version 2.2.9 - 2.3.0 Friday, October 13th, 2017 =
|
225 |
-
* NEW: Instagram Shortcode: Fully Responsive gallery. Now you can choose the column width and whether to force the columns or make images full size on smaller containers or devices. See the [New Demo](
|
226 |
* NEW: Instagram Shortcode: Choose a width for the gallery.
|
227 |
* NEW: When plugin is updated or activated the cache is deleted to ensure you are seeing any changes we have made.
|
228 |
* FIX: Facebook Feed: Overflow auto missing for scrolling feeds
|
@@ -236,7 +242,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
236 |
* FB REVIEWS NEW: Customize the No More Reviews text.
|
237 |
* FB REVIEWS NEW: Google Reviews structured data.
|
238 |
* FB REVIEWS FIXED: popup js error when loading more reviews.
|
239 |
-
* FTS BAR NEW: Instagram: All new responsive gallery. See [New Demo](
|
240 |
* FTS BAR NEW/FIX: Instagram Options: Now when converting an instagram ID you will see a list of ID's to choose from if yours was first in the list.
|
241 |
* FTS BAR NEW: Twitter: Load More button option.
|
242 |
* FTS BAR FIX: Misc CSS tweaks to override themes from wrecking our ul and li elements.
|
@@ -334,7 +340,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
334 |
* NEW: Twitter: Videos now show in the feed instead of a show video link and they also show proper on retweets and replies.
|
335 |
* NEW: Twitter: Includes the proper thumbnail and name for the retweets and replies. New name/date style format.
|
336 |
* NEW: Pinterest: Links are now clickable in the description for User Pins and Pins from a Board.
|
337 |
-
* NEW: Instagram: Now you can show your profile photo, name, description and the count for your posts, followers and following. [View Demo](
|
338 |
* NEW: Instagram, Twitter and Pinterest: Truncated specfic calls into functions.
|
339 |
* PREMIUM NEW: YouTube: Truncated specfic calls into functions.
|
340 |
* NEW EXTENSION: [Feed Them Social Combined Streams](https://www.slickremix.com/downloads/feed-them-social-combined-streams/). With this extension you can combine your facebook feeds or you can combine Facebook, Instagram, Twitter, Pinterest or Youtube into one feed.
|
@@ -343,7 +349,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
343 |
* FIX: Twitter: Search type feeds (@, #, etc) not showing the full text.
|
344 |
|
345 |
= Version 2.0.8 Wednesday, September 29th, 2016 =
|
346 |
-
* NEW: Twitter: Added new way of getting media url. Restyled and added retweet icon, favorite icon and counts. Plus all new Background cover photo and stats bar you can display above your feed like Twitter. Add cover_photo=yes stats_bar=yes to your Twitter shortcode to see the new additions. Premium users will need to upgrade to version 1.6.4 to use the new additions. [Updated Example](
|
347 |
|
348 |
= Version 2.0.7 Monday, September 19th, 2016 =
|
349 |
* NEW: Facebook Options: Now all you have to do is click a button to get an Access Token, no more having to create an APP in facebook! Same goes for our Premium Review Plugin too.
|
@@ -365,7 +371,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
365 |
* NEW: Twitter: Offset Time option for some server's that are 3 hours difference.
|
366 |
* NEW: System Info: Added more info to the report.
|
367 |
* FIXED for FTS BAR: Instagram and Twitter post count was not visible.
|
368 |
-
* NEW PREMIUM: Facebook: Brand new popup that looks like facebook's popup and also shows comments. [Try it out here](
|
369 |
|
370 |
= Version 2.0.4 Monday, July 18th, 2016 =
|
371 |
* NEW: Instagram: Photos in Super Instagram feed do not have white borders anymore.
|
@@ -487,7 +493,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
487 |
= Version 1.8.7 Monday, August 2nd, 2015 =
|
488 |
* NEW: Twitter: Now you can search #hashtag, @person, or single words. For example, weather or weather-channel. No spaces allowed.
|
489 |
* NEW: Option to disable Magnific Popup if you are experiencing problems with your theme(s) or other plugin(s).
|
490 |
-
* NEW: Option to not allow certain Facebook Album Covers. See how here: [
|
491 |
* NEW: Settings page newer look.
|
492 |
* NEW: Authors Note on Settings Page.
|
493 |
* FIXED: Facebook: Missed call in new v2.4 API for the main feeds description.
|
@@ -497,14 +503,14 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
497 |
* CLEANED: Minified all CSS scripts for wp-admin pages.
|
498 |
|
499 |
= Version 1.8.6 Saturday, July 11th, 2015 =
|
500 |
-
* MAJOR: Facebook: [New API v2.4 update released July 8th from Facebook](https://developers.facebook.com/docs/apps/changelog) so we had to make a few changes to calls in the Facebook feeds only. All previously created APPS using v2.3 will still work with this update unless you are using the Album Covers feed. Then you will need to create a new APP on Facebook. It is suggested that you create a new APP in Facebook and replace your old APP Token but not required with this update. [
|
501 |
* FIXED: Decrease font size for share icon slightly and make sure the font-style is normal so other themes don't override it.
|
502 |
|
503 |
= Version 1.8.5 Wednesday, July 8th, 2015 =
|
504 |
* FIXED: Fatal error on install for users under php 5.3 due to new namespace name overiding our initial php version error check.
|
505 |
* FIXED: Misc cleanup on files to speed things up.
|
506 |
* PREMIUM USERS: The below new options can be found on the settings page when you generate your shortcode for the facebook feed you need.
|
507 |
-
* NEW: Facebook Video Feed. Now you can add a feed of your Facebook page's uploaded videos. Only Works with Facebook Pages. Not user accounts or groups etc. See example here: [
|
508 |
* NEW: Facebook: Type 0 for the words= option and the description for each post will disappear.
|
509 |
* NEW: Facebook: Hide the Like Button or Box if you are using more than one feed on a page.
|
510 |
* NEW: Facebook: Align the Like Button or Box left, center or right.
|
@@ -512,7 +518,7 @@ Feed Them Social was Developed By SlickRemix --> [https://www.slickremix.com/](h
|
|
512 |
* NEW: Facebook: Set the margin for the Load More button. Even setting this to 0 will align the button in the center.
|
513 |
|
514 |
= Version 1.8.4 Monday, June 29th, 2015 =
|
515 |
-
* NEW: Vine Feed. Now you can add a gallery of Vine videos with thumbnails. Premium users will need to upgrade the feed-them-premium plugin to 1.5.0 to get the premium features. See example here: [
|
516 |
* FIXED: Facebook: API change for call to Album Cover photo source. Thanks to all who let us know this was not working.
|
517 |
|
518 |
= Version 1.8.3 Tuesday, June 23rd, 2015 =
|
@@ -899,22 +905,22 @@ Yes. We have the Premium Extension which also includes Youtube. Then we also hav
|
|
899 |
|
900 |
== Screenshots ==
|
901 |
|
902 |
-
1. Facebook Feed. All Feeds Work on Pages, posts or Text Widgets. Adjust the height to make it a scrolling feed too. [Demo](
|
903 |
-
2. Facebook Popup with comments. All popups for feeds except Vine are available in the [Premium Extension](https://www.slickremix.com/downloads/feed-them-social-premium-extension/). [Demo](
|
904 |
-
3. Facebook Popup example showing a video. [Demo](
|
905 |
-
4. Facebook Album Photos Feed. [Demo](
|
906 |
-
5. Facebook Popup for the Album Photos. You can show album photos, your latest photos or even album covers with our plugin. [Demo](
|
907 |
-
6. Instagram Feed. We have the new style and the old classic style format. [Demo](
|
908 |
-
7. Instagram Popup with description of photo or video. Premium Feature. [Demo](
|
909 |
-
8. Twitter Feed. See photos and videos in your feed. Show @ or # or user type feeds. [Demo](
|
910 |
-
9. Twitter Popup with photo description. Premium Feature. [Demo](
|
911 |
-
10. Vine Feed. Show as many vine videos as you want. [Demo](
|
912 |
-
11. Vine Popup that shows video. Available in the Free Version. [Demo](
|
913 |
-
12. Pinterest Feed to display your Boards. [Demo](
|
914 |
-
13. Pinterest Feed to display Pins from a specific Board. [Demo](
|
915 |
-
14. Pinterest Feed to display you latest Pins. [Demo](
|
916 |
-
15. Our premium version also offers the YouTube Feed. [Demo](
|
917 |
-
16. Youtube Feed Popup. [Demo](
|
918 |
17. Settings page where you can generate a shortcode for any of the feeds and more.
|
919 |
18. Facebook Options page of our plugin. The other pages have similar options.
|
920 |
19. Add the shortcode you generated from the settings page to any post, page or text widget.
|
3 |
Tags: Facebook, Instagram, Twitter, YouTube, Feed
|
4 |
Requires at least: 3.6.0
|
5 |
Tested up to: 4.9.8
|
6 |
+
Stable tag: 2.5.5
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Custom feeds for Facebook Pages, Album Photos, Videos & Covers, Instagram, Twitter, Pinterest & YouTube on pages, posts or widgets.
|
76 |
* Log into WordPress dashboard then click **Plugins** > **Add new** > Then under the title "Install Plugins" click **Upload** > **choose the zip** > **Activate the plugin!**
|
77 |
|
78 |
== Changelog ==
|
79 |
+
= Version 2.5.5 Thursday, October 11th, 2018 =
|
80 |
+
* FIX: Twitter Feed: The post count is proper now.
|
81 |
+
* FIX: Scrolling Feeds missing height option.
|
82 |
+
* FIX: YouTube and other feeds had echo ob_get_clean instead of just using return.
|
83 |
+
* FIX: Small cleanup items with spelling and text domain names.
|
84 |
+
|
85 |
= Version 2.5.2 - 2.5.4 Wednesday, October 10th, 2018 =
|
86 |
* Full audit of every file to ensure proper escaping and sanitizing are in place to help prevent malicious attacks through our plugin.
|
87 |
* NOTICE: Users of the Combined Streams Extension will also need to update to correct some formatting issues.
|
192 |
* FIX: YouTube Feed: Date formats besides the 1 day ago not working properly. This also fixes a non numeric warning that was coming up on the page too if you did not have the 1 day ago date option set. If debug mode was set to false in your wp-config you would not have seen the warning on the page.
|
193 |
|
194 |
= Version 2.3.2 - 2.3.3 Thursday, November 28th, 2017 =
|
195 |
+
* NEW: YouTube Feed is now apart of the free version and it has a completely new look! [See New Demo](https://feedthemsocial.com/youtube-feed-demo/).
|
196 |
* NEW: YouTube Options: New simple button to get your access token and token automatically saves to the page after it returns. No need to click the save button!
|
197 |
* NEW: Twitter Options: No more time waisted created your own keys, now we have a new simple button to get your access token.
|
198 |
* NEW: System Info Page: Added Cache Time to the report
|
228 |
* FIX: Twitter Feed: Overflow auto missing for scrolling feeds.
|
229 |
|
230 |
= Version 2.2.9 - 2.3.0 Friday, October 13th, 2017 =
|
231 |
+
* NEW: Instagram Shortcode: Fully Responsive gallery. Now you can choose the column width and whether to force the columns or make images full size on smaller containers or devices. See the [New Demo](https://feedthemsocial.com/instagram-feed-demo/)!
|
232 |
* NEW: Instagram Shortcode: Choose a width for the gallery.
|
233 |
* NEW: When plugin is updated or activated the cache is deleted to ensure you are seeing any changes we have made.
|
234 |
* FIX: Facebook Feed: Overflow auto missing for scrolling feeds
|
242 |
* FB REVIEWS NEW: Customize the No More Reviews text.
|
243 |
* FB REVIEWS NEW: Google Reviews structured data.
|
244 |
* FB REVIEWS FIXED: popup js error when loading more reviews.
|
245 |
+
* FTS BAR NEW: Instagram: All new responsive gallery. See [New Demo](https://feedthemsocial.com/fts-bar/).
|
246 |
* FTS BAR NEW/FIX: Instagram Options: Now when converting an instagram ID you will see a list of ID's to choose from if yours was first in the list.
|
247 |
* FTS BAR NEW: Twitter: Load More button option.
|
248 |
* FTS BAR FIX: Misc CSS tweaks to override themes from wrecking our ul and li elements.
|
340 |
* NEW: Twitter: Videos now show in the feed instead of a show video link and they also show proper on retweets and replies.
|
341 |
* NEW: Twitter: Includes the proper thumbnail and name for the retweets and replies. New name/date style format.
|
342 |
* NEW: Pinterest: Links are now clickable in the description for User Pins and Pins from a Board.
|
343 |
+
* NEW: Instagram: Now you can show your profile photo, name, description and the count for your posts, followers and following. [View Demo](https://feedthemsocial.com/instagram-feed-demo/)
|
344 |
* NEW: Instagram, Twitter and Pinterest: Truncated specfic calls into functions.
|
345 |
* PREMIUM NEW: YouTube: Truncated specfic calls into functions.
|
346 |
* NEW EXTENSION: [Feed Them Social Combined Streams](https://www.slickremix.com/downloads/feed-them-social-combined-streams/). With this extension you can combine your facebook feeds or you can combine Facebook, Instagram, Twitter, Pinterest or Youtube into one feed.
|
349 |
* FIX: Twitter: Search type feeds (@, #, etc) not showing the full text.
|
350 |
|
351 |
= Version 2.0.8 Wednesday, September 29th, 2016 =
|
352 |
+
* NEW: Twitter: Added new way of getting media url. Restyled and added retweet icon, favorite icon and counts. Plus all new Background cover photo and stats bar you can display above your feed like Twitter. Add cover_photo=yes stats_bar=yes to your Twitter shortcode to see the new additions. Premium users will need to upgrade to version 1.6.4 to use the new additions. [Updated Example](https://feedthemsocial.com/twitter-feed-demo/).
|
353 |
|
354 |
= Version 2.0.7 Monday, September 19th, 2016 =
|
355 |
* NEW: Facebook Options: Now all you have to do is click a button to get an Access Token, no more having to create an APP in facebook! Same goes for our Premium Review Plugin too.
|
371 |
* NEW: Twitter: Offset Time option for some server's that are 3 hours difference.
|
372 |
* NEW: System Info: Added more info to the report.
|
373 |
* FIXED for FTS BAR: Instagram and Twitter post count was not visible.
|
374 |
+
* NEW PREMIUM: Facebook: Brand new popup that looks like facebook's popup and also shows comments. [Try it out here](https://feedthemsocial.com/).
|
375 |
|
376 |
= Version 2.0.4 Monday, July 18th, 2016 =
|
377 |
* NEW: Instagram: Photos in Super Instagram feed do not have white borders anymore.
|
493 |
= Version 1.8.7 Monday, August 2nd, 2015 =
|
494 |
* NEW: Twitter: Now you can search #hashtag, @person, or single words. For example, weather or weather-channel. No spaces allowed.
|
495 |
* NEW: Option to disable Magnific Popup if you are experiencing problems with your theme(s) or other plugin(s).
|
496 |
+
* NEW: Option to not allow certain Facebook Album Covers. See how here: [https://feedthemsocial.com/facebook-album-covers/](https://feedthemsocial.com/facebook-album-covers/)
|
497 |
* NEW: Settings page newer look.
|
498 |
* NEW: Authors Note on Settings Page.
|
499 |
* FIXED: Facebook: Missed call in new v2.4 API for the main feeds description.
|
503 |
* CLEANED: Minified all CSS scripts for wp-admin pages.
|
504 |
|
505 |
= Version 1.8.6 Saturday, July 11th, 2015 =
|
506 |
+
* MAJOR: Facebook: [New API v2.4 update released July 8th from Facebook](https://developers.facebook.com/docs/apps/changelog) so we had to make a few changes to calls in the Facebook feeds only. All previously created APPS using v2.3 will still work with this update unless you are using the Album Covers feed. Then you will need to create a new APP on Facebook. It is suggested that you create a new APP in Facebook and replace your old APP Token but not required with this update. [https://feedthemsocial.com/facebook-videos-demo/](http://www.slickremix.com/docs/create-facebook-app-id-or-user-token)
|
507 |
* FIXED: Decrease font size for share icon slightly and make sure the font-style is normal so other themes don't override it.
|
508 |
|
509 |
= Version 1.8.5 Wednesday, July 8th, 2015 =
|
510 |
* FIXED: Fatal error on install for users under php 5.3 due to new namespace name overiding our initial php version error check.
|
511 |
* FIXED: Misc cleanup on files to speed things up.
|
512 |
* PREMIUM USERS: The below new options can be found on the settings page when you generate your shortcode for the facebook feed you need.
|
513 |
+
* NEW: Facebook Video Feed. Now you can add a feed of your Facebook page's uploaded videos. Only Works with Facebook Pages. Not user accounts or groups etc. See example here: [https://feedthemsocial.com/facebook-videos-demo/](hhttps://feedthemsocial.com/facebook-videos-demo/)
|
514 |
* NEW: Facebook: Type 0 for the words= option and the description for each post will disappear.
|
515 |
* NEW: Facebook: Hide the Like Button or Box if you are using more than one feed on a page.
|
516 |
* NEW: Facebook: Align the Like Button or Box left, center or right.
|
518 |
* NEW: Facebook: Set the margin for the Load More button. Even setting this to 0 will align the button in the center.
|
519 |
|
520 |
= Version 1.8.4 Monday, June 29th, 2015 =
|
521 |
+
* NEW: Vine Feed. Now you can add a gallery of Vine videos with thumbnails. Premium users will need to upgrade the feed-them-premium plugin to 1.5.0 to get the premium features. See example here: [https://feedthemsocial.com/vine-demo/](https://feedthemsocial.com/vine-demo/)
|
522 |
* FIXED: Facebook: API change for call to Album Cover photo source. Thanks to all who let us know this was not working.
|
523 |
|
524 |
= Version 1.8.3 Tuesday, June 23rd, 2015 =
|
905 |
|
906 |
== Screenshots ==
|
907 |
|
908 |
+
1. Facebook Feed. All Feeds Work on Pages, posts or Text Widgets. Adjust the height to make it a scrolling feed too. [Demo](https://feedthemsocial.com/facebook-page-feed-demo/)
|
909 |
+
2. Facebook Popup with comments. All popups for feeds except Vine are available in the [Premium Extension](https://www.slickremix.com/downloads/feed-them-social-premium-extension/). [Demo](https://feedthemsocial.com/facebook-page-feed-demo/)
|
910 |
+
3. Facebook Popup example showing a video. [Demo](https://feedthemsocial.com/facebook-page-feed-demo/)
|
911 |
+
4. Facebook Album Photos Feed. [Demo](https://feedthemsocial.com/facebook-album-photos-demo/)
|
912 |
+
5. Facebook Popup for the Album Photos. You can show album photos, your latest photos or even album covers with our plugin. [Demo](https://feedthemsocial.com/facebook-album-photos-demo/)
|
913 |
+
6. Instagram Feed. We have the new style and the old classic style format. [Demo](https://feedthemsocial.com/instagram-feed-demo/)
|
914 |
+
7. Instagram Popup with description of photo or video. Premium Feature. [Demo](https://feedthemsocial.com/instagram-feed-demo/)
|
915 |
+
8. Twitter Feed. See photos and videos in your feed. Show @ or # or user type feeds. [Demo](https://feedthemsocial.com/twitter-feed-demo/)
|
916 |
+
9. Twitter Popup with photo description. Premium Feature. [Demo](https://feedthemsocial.com/twitter-feed-demo/)
|
917 |
+
10. Vine Feed. Show as many vine videos as you want. [Demo](https://feedthemsocial.com/vine-demo/)
|
918 |
+
11. Vine Popup that shows video. Available in the Free Version. [Demo](https://feedthemsocial.com/vine-demo/)
|
919 |
+
12. Pinterest Feed to display your Boards. [Demo](https://feedthemsocial.com/pinterest/)
|
920 |
+
13. Pinterest Feed to display Pins from a specific Board. [Demo](https://feedthemsocial.com/pinterest-pins-from-a-single-board/)
|
921 |
+
14. Pinterest Feed to display you latest Pins. [Demo](https://feedthemsocial.com/pinterest-demo-pins-from-user/)
|
922 |
+
15. Our premium version also offers the YouTube Feed. [Demo](https://feedthemsocial.com/youtube-demo-1-large-with-4-video-per-row/)
|
923 |
+
16. Youtube Feed Popup. [Demo](https://feedthemsocial.com/youtube-demo-1-large-with-4-video-per-row/)
|
924 |
17. Settings page where you can generate a shortcode for any of the feeds and more.
|
925 |
18. Facebook Options page of our plugin. The other pages have similar options.
|
926 |
19. Add the shortcode you generated from the settings page to any post, page or text widget.
|
updater/updater-check-init.php
CHANGED
@@ -74,31 +74,31 @@ class updater_init {
|
|
74 |
// Title MUST match title of product in EDD store on site plugin is being sold!
|
75 |
'title' => 'Feed Them Social Premium',
|
76 |
'plugin_url' => 'feed-them-premium/feed-them-premium.php',
|
77 |
-
'demo_url' => '
|
78 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-social-premium-extension/',
|
79 |
),
|
80 |
'feed_them_social_combined_streams' => array(
|
81 |
'title' => 'Feed Them Social Combined Streams',
|
82 |
'plugin_url' => 'feed-them-social-combined-streams/feed-them-social-combined-streams.php',
|
83 |
-
'demo_url' => '
|
84 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-social-combined-streams/',
|
85 |
),
|
86 |
'feed_them_social_facebook_reviews' => array(
|
87 |
'title' => 'Feed Them Social Facebook Reviews',
|
88 |
'plugin_url' => 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php',
|
89 |
-
'demo_url' => '
|
90 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-social-facebook-reviews/',
|
91 |
),
|
92 |
'feed_them_carousel_premium' => array(
|
93 |
'title' => 'Feed Them Carousel Premium',
|
94 |
'plugin_url' => 'feed-them-carousel-premium/feed-them-carousel-premium.php',
|
95 |
-
'demo_url' => '
|
96 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-carousel-premium/',
|
97 |
),
|
98 |
'fts_bar' => array(
|
99 |
'title' => 'Feed Them Social Bar',
|
100 |
'plugin_url' => 'fts-bar/fts-bar.php',
|
101 |
-
'demo_url' => '
|
102 |
'purchase_url' => 'https://www.slickremix.com/downloads/fts-bar/',
|
103 |
),
|
104 |
);
|
74 |
// Title MUST match title of product in EDD store on site plugin is being sold!
|
75 |
'title' => 'Feed Them Social Premium',
|
76 |
'plugin_url' => 'feed-them-premium/feed-them-premium.php',
|
77 |
+
'demo_url' => 'https://feedthemsocial.com/facebook-page-feed-demo/',
|
78 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-social-premium-extension/',
|
79 |
),
|
80 |
'feed_them_social_combined_streams' => array(
|
81 |
'title' => 'Feed Them Social Combined Streams',
|
82 |
'plugin_url' => 'feed-them-social-combined-streams/feed-them-social-combined-streams.php',
|
83 |
+
'demo_url' => 'https://feedthemsocial.com/feed-them-social-combined-streams/',
|
84 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-social-combined-streams/',
|
85 |
),
|
86 |
'feed_them_social_facebook_reviews' => array(
|
87 |
'title' => 'Feed Them Social Facebook Reviews',
|
88 |
'plugin_url' => 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php',
|
89 |
+
'demo_url' => 'https://feedthemsocial.com/facebook-page-reviews-demo/',
|
90 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-social-facebook-reviews/',
|
91 |
),
|
92 |
'feed_them_carousel_premium' => array(
|
93 |
'title' => 'Feed Them Carousel Premium',
|
94 |
'plugin_url' => 'feed-them-carousel-premium/feed-them-carousel-premium.php',
|
95 |
+
'demo_url' => 'https://feedthemsocial.com/facebook-carousels-or-sliders/',
|
96 |
'purchase_url' => 'https://www.slickremix.com/downloads/feed-them-carousel-premium/',
|
97 |
),
|
98 |
'fts_bar' => array(
|
99 |
'title' => 'Feed Them Social Bar',
|
100 |
'plugin_url' => 'fts-bar/fts-bar.php',
|
101 |
+
'demo_url' => 'https://feedthemsocial.com/fts-bar/',
|
102 |
'purchase_url' => 'https://www.slickremix.com/downloads/fts-bar/',
|
103 |
),
|
104 |
);
|