Version Description
- Improved: Do not limit images count.
Download this release
Release Info
Developer | 10web |
Plugin | WD Facebook Feed – Custom Facebook Feed Plugin |
Version | 1.1.20 |
Comparing to | |
See all releases |
Code changes from version 1.1.19 to 1.1.20
- facebook-feed-wd.php +2 -2
- frontend/views/FFWDViewAlbum_compact.php +15 -0
- js/ffwd_frontend.js +28 -2
- readme.txt +5 -2
facebook-feed-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: 10Web Social Feed
|
5 |
* Plugin URI: https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin
|
6 |
* Description: 10Web Social Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
7 |
-
* Version: 1.1.
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io/plugins/?utm_source=facebook_feed&utm_medium=free_plugin
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -15,7 +15,7 @@ define( 'WD_FFWD_URL', plugins_url( plugin_basename( dirname( __FILE__ ) ) ) );
|
|
15 |
define( 'WD_FB_PREFIX', 'ffwd' );
|
16 |
define( 'WD_FB_IS_FREE', TRUE );
|
17 |
if (! defined( 'FFWD_VERSION' ) ){
|
18 |
-
define ('FFWD_VERSION',"1.1.
|
19 |
}
|
20 |
|
21 |
add_action('admin_notices', 'ffwd_login_notice');
|
4 |
* Plugin Name: 10Web Social Feed
|
5 |
* Plugin URI: https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin
|
6 |
* Description: 10Web Social Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
7 |
+
* Version: 1.1.20
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io/plugins/?utm_source=facebook_feed&utm_medium=free_plugin
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
define( 'WD_FB_PREFIX', 'ffwd' );
|
16 |
define( 'WD_FB_IS_FREE', TRUE );
|
17 |
if (! defined( 'FFWD_VERSION' ) ){
|
18 |
+
define ('FFWD_VERSION',"1.1.20");
|
19 |
}
|
20 |
|
21 |
add_action('admin_notices', 'ffwd_login_notice');
|
frontend/views/FFWDViewAlbum_compact.php
CHANGED
@@ -678,6 +678,21 @@ class FFWDViewAlbum_compact {
|
|
678 |
var album_id = '<?php echo $album_id; ?>',
|
679 |
graph_url_album_compact_<?php echo $ffwd; ?> = '<?php echo $this->model->graph_url; ?>';
|
680 |
ffwd_fill_thum_srs_likes_compact_album(album_id, '<?php echo $ffwd; ?>', graph_url_album_compact_<?php echo $ffwd; ?>, ffwd_album_info_<?php echo $ffwd; ?>,'<?php echo $ffwd_info['image_onclick_action']; ?>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
681 |
</script>
|
682 |
<?php
|
683 |
}
|
678 |
var album_id = '<?php echo $album_id; ?>',
|
679 |
graph_url_album_compact_<?php echo $ffwd; ?> = '<?php echo $this->model->graph_url; ?>';
|
680 |
ffwd_fill_thum_srs_likes_compact_album(album_id, '<?php echo $ffwd; ?>', graph_url_album_compact_<?php echo $ffwd; ?>, ffwd_album_info_<?php echo $ffwd; ?>,'<?php echo $ffwd_info['image_onclick_action']; ?>');
|
681 |
+
let ajaxLoadingWrapperId = "ffwd_ajax_loading_" + '<?php echo $ffwd; ?>';
|
682 |
+
|
683 |
+
function simulateAjaxStart() {
|
684 |
+
let ajaxLoadingWrapper = jQuery("#" + ajaxLoadingWrapperId)[0];
|
685 |
+
ajaxLoadingWrapper.setAttribute("style", "display:block;");
|
686 |
+
}
|
687 |
+
|
688 |
+
function simulateAjaxEnd() {
|
689 |
+
let ajaxLoadingWrapper = jQuery("#" + ajaxLoadingWrapperId)[0];
|
690 |
+
let ff_form_id = "ffwd_front_form_" + '<?php echo $ffwd; ?>';
|
691 |
+
jQuery("html, body").animate({scrollTop: jQuery('#' + ff_form_id).offset().top - 150}, 500);
|
692 |
+
setTimeout(function () {
|
693 |
+
ajaxLoadingWrapper.setAttribute("style", "display:none;");
|
694 |
+
}, 2000)
|
695 |
+
}
|
696 |
</script>
|
697 |
<?php
|
698 |
}
|
js/ffwd_frontend.js
CHANGED
@@ -357,6 +357,17 @@ function do_something_with_data_album(result, id, ffwd, type, graph_url, ffwd_al
|
|
357 |
|
358 |
var data = result['data'];
|
359 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
content = '';
|
361 |
ffwd_album_info["data"] = [];
|
362 |
curent_view = ffwd;
|
@@ -498,18 +509,33 @@ function do_something_with_data_album(result, id, ffwd, type, graph_url, ffwd_al
|
|
498 |
}
|
499 |
|
500 |
}
|
501 |
-
);
|
502 |
|
503 |
|
504 |
}
|
505 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
|
507 |
jQuery('#ffwd_gallery_' + curent_view).html(content);
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
break;
|
509 |
default :
|
510 |
console.log('error');
|
511 |
break;
|
512 |
}
|
|
|
513 |
}
|
514 |
/* For Blog-style view */
|
515 |
function ffwd_get_passed_time(time) {
|
357 |
|
358 |
var data = result['data'];
|
359 |
|
360 |
+
if(graph_url.indexOf("&after=")) {
|
361 |
+
graph_url = graph_url.split("&after")[0];
|
362 |
+
}
|
363 |
+
if (graph_url.indexOf("&before=")) {
|
364 |
+
graph_url = graph_url.split("&before")[0];
|
365 |
+
}
|
366 |
+
let prev_url = graph_url + '&before=' + result['paging']['cursors']['before'];
|
367 |
+
let next_url = graph_url + '&after=' + result['paging']['cursors']['after'];
|
368 |
+
let prev_url_graph = result['paging']['previous'];
|
369 |
+
let next_url_graph = result['paging']['next'];
|
370 |
+
|
371 |
content = '';
|
372 |
ffwd_album_info["data"] = [];
|
373 |
curent_view = ffwd;
|
509 |
}
|
510 |
|
511 |
}
|
512 |
+
).success(simulateAjaxEnd());
|
513 |
|
514 |
|
515 |
}
|
516 |
+
content += '<br>';
|
517 |
+
content += `<div class=\'tablenav-pages_${ffwd}\' + >`;
|
518 |
+
if (prev_url_graph) {
|
519 |
+
content += `<a id="go_to_the_previous_page" title="Go to the previous page">Previous</a>`; // enable prev button if graph has next cursor
|
520 |
+
}
|
521 |
+
if (next_url_graph) { // enable next button if graph has next cursor
|
522 |
+
content +=` <a id="go_to_the_next_page" title="Go to the next page">Next</a> `;
|
523 |
+
}
|
524 |
+
content += '<div>';
|
525 |
|
526 |
jQuery('#ffwd_gallery_' + curent_view).html(content);
|
527 |
+
jQuery( "#go_to_the_next_page" ).on('click', function() { // go to next page
|
528 |
+
ffwd_fill_thum_srs_likes_compact_album(album_id, '0',next_url,ffwd_album_info,"lightbox");
|
529 |
+
});
|
530 |
+
jQuery( "#go_to_the_previous_page" ).on('click', function() { // go to prev page
|
531 |
+
ffwd_fill_thum_srs_likes_compact_album(album_id, '0',prev_url,ffwd_album_info,"lightbox");
|
532 |
+
});
|
533 |
break;
|
534 |
default :
|
535 |
console.log('error');
|
536 |
break;
|
537 |
}
|
538 |
+
ffwd_album_info_0["data"] = ffwd_album_info["data"];
|
539 |
}
|
540 |
/* For Blog-style view */
|
541 |
function ffwd_get_passed_time(time) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: webdorado,10web,wdsupport
|
|
3 |
Tags: customizable facebook feed, facebook, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
|
4 |
Requires at least: 3.4
|
5 |
Requires PHP: 5.2
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -105,6 +105,9 @@ The plugin uses Facebook API to get public data from Facebook. All the received
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 1.1.19 =
|
109 |
* Fixed: Double quote in the feed title.
|
110 |
* Fixed: Issue with hash in post URL.
|
3 |
Tags: customizable facebook feed, facebook, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
|
4 |
Requires at least: 3.4
|
5 |
Requires PHP: 5.2
|
6 |
+
Tested up to: 5.4
|
7 |
+
Stable tag: 1.1.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 1.1.20 =
|
109 |
+
* Improved: Do not limit images count.
|
110 |
+
|
111 |
= 1.1.19 =
|
112 |
* Fixed: Double quote in the feed title.
|
113 |
* Fixed: Issue with hash in post URL.
|