Version Description
- Fixed: Bug on reactions
- Fixed: Bug on multiple Feeds
- Fixed: Bug on widget dimension
Download this release
Release Info
Developer | webdorado |
Plugin | WD Facebook Feed – Custom Facebook Feed Plugin |
Version | 1.0.14 |
Comparing to | |
See all releases |
Code changes from version 1.0.13 to 1.0.14
- admin/views/FFWDViewWidget.php +3 -3
- facebook-feed-wd.php +2 -2
- frontend/models/FFWDModelBlog_style.php +4 -4
- frontend/views/FFWDViewBlog_style.php +12 -12
- js/ffwd_frontend.js +58 -50
- readme.txt +7 -2
admin/views/FFWDViewWidget.php
CHANGED
@@ -193,11 +193,11 @@ class FFWDViewWidget
|
|
193 |
type="text" value="<?php echo $instance['count']; ?>"/>
|
194 |
</p>
|
195 |
<p>
|
196 |
-
<label for="<?php echo $id_width; ?>">Dimensions:</label>
|
197 |
<input class="widefat" style="width:25%;" id="<?php echo $id_width; ?>" name="<?php echo $name_width; ?>'"
|
198 |
-
|
199 |
<input class="widefat" style="width:25%;" id="<?php echo $id_height; ?>" name="<?php echo $name_height; ?>'"
|
200 |
-
|
201 |
</p>
|
202 |
|
203 |
<script>
|
193 |
type="text" value="<?php echo $instance['count']; ?>"/>
|
194 |
</p>
|
195 |
<p>
|
196 |
+
<label style="display: block;" for="<?php echo $id_width; ?>">Dimensions <br>(Leave height empty blank if you do not intend to limit the height of the widget.):</label>
|
197 |
<input class="widefat" style="width:25%;" id="<?php echo $id_width; ?>" name="<?php echo $name_width; ?>'"
|
198 |
+
type="text" value="<?php echo $instance['width']; ?>"/> x
|
199 |
<input class="widefat" style="width:25%;" id="<?php echo $id_height; ?>" name="<?php echo $name_height; ?>'"
|
200 |
+
type="text" value="<?php echo $instance['height']; ?>"/> px
|
201 |
</p>
|
202 |
|
203 |
<script>
|
facebook-feed-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Facebook Feed WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
6 |
* Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -729,7 +729,7 @@ add_action('init', 'ffwd_language_load');
|
|
729 |
function ffwd_version()
|
730 |
{
|
731 |
|
732 |
-
$version = '1.0.
|
733 |
|
734 |
if (get_option('ffwd_version') === false) {
|
735 |
add_option('ffwd_version', $version);
|
4 |
* Plugin Name: Facebook Feed WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
6 |
* Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
7 |
+
* Version: 1.0.14
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
729 |
function ffwd_version()
|
730 |
{
|
731 |
|
732 |
+
$version = '1.0.14';
|
733 |
|
734 |
if (get_option('ffwd_version') === false) {
|
735 |
add_option('ffwd_version', $version);
|
frontend/models/FFWDModelBlog_style.php
CHANGED
@@ -46,10 +46,10 @@ class FFWDModelBlog_style extends FFWDModelMain {
|
|
46 |
$object->message_tags = json_decode(str_replace("'", esc_html("'"), $row->message_tags));
|
47 |
$object->with_tags = json_decode(str_replace("'", esc_html("'"), $row->with_tags));
|
48 |
$object->story_tags = json_decode(str_replace("'", esc_html("'"), $row->story_tags));
|
49 |
-
$object->comments =
|
50 |
-
$object->attachments =
|
51 |
-
$object->shares =
|
52 |
-
$object->who_post =
|
53 |
array_push($id_object_id_json, $object);
|
54 |
}
|
55 |
$this->id_object_id_json = $id_object_id_json;
|
46 |
$object->message_tags = json_decode(str_replace("'", esc_html("'"), $row->message_tags));
|
47 |
$object->with_tags = json_decode(str_replace("'", esc_html("'"), $row->with_tags));
|
48 |
$object->story_tags = json_decode(str_replace("'", esc_html("'"), $row->story_tags));
|
49 |
+
$object->comments = $row->comments;
|
50 |
+
$object->attachments = $row->attachments;
|
51 |
+
$object->shares = $row->shares;
|
52 |
+
$object->who_post = $row->who_post;
|
53 |
array_push($id_object_id_json, $object);
|
54 |
}
|
55 |
$this->id_object_id_json = $id_object_id_json;
|
frontend/views/FFWDViewBlog_style.php
CHANGED
@@ -43,8 +43,8 @@ class FFWDViewBlog_style {
|
|
43 |
{
|
44 |
$ffwd_info['objects_per_page']= $params['objects_per_page'];
|
45 |
$ffwd_info['theme']= $params['theme_id'];
|
46 |
-
$ffwd_info['
|
47 |
-
$ffwd_info['
|
48 |
|
49 |
}
|
50 |
|
@@ -719,7 +719,7 @@ class FFWDViewBlog_style {
|
|
719 |
float: left;
|
720 |
display: block;
|
721 |
height: 22px;
|
722 |
-
background: url('<?php echo WD_FFWD_URL . '/images/feed/
|
723 |
background-size: 16px;
|
724 |
width: 20px;
|
725 |
margin-left: -2px;
|
@@ -729,7 +729,7 @@ class FFWDViewBlog_style {
|
|
729 |
float: left;
|
730 |
display: block;
|
731 |
height: 22px;
|
732 |
-
background: url('<?php echo WD_FFWD_URL . '/images/feed/
|
733 |
background-size: 16px;
|
734 |
width: 20px;
|
735 |
margin-left: -2px;
|
@@ -739,7 +739,7 @@ class FFWDViewBlog_style {
|
|
739 |
float: left;
|
740 |
display: block;
|
741 |
height: 22px;
|
742 |
-
background: url('<?php echo WD_FFWD_URL . '/images/feed/
|
743 |
background-size: 16px;
|
744 |
width: 20px;
|
745 |
margin-left: -2px;
|
@@ -750,7 +750,7 @@ class FFWDViewBlog_style {
|
|
750 |
float: left;
|
751 |
display: block;
|
752 |
height: 22px;
|
753 |
-
background: url('<?php echo WD_FFWD_URL . '/images/feed/
|
754 |
background-size: 17px;
|
755 |
width: 20px;
|
756 |
margin-left: -2px;
|
@@ -760,7 +760,7 @@ class FFWDViewBlog_style {
|
|
760 |
float: left;
|
761 |
display: block;
|
762 |
height: 22px;
|
763 |
-
background: url('<?php echo WD_FFWD_URL . '/images/feed/
|
764 |
background-size: 17px;
|
765 |
width: 20px;
|
766 |
margin-left: -2px;
|
@@ -1230,24 +1230,24 @@ class FFWDViewBlog_style {
|
|
1230 |
|
1231 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1232 |
|
1233 |
-
<img id="ffwd_reactions_love_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/
|
1234 |
<span id="ffwd_tootlip_text_love_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">LOVE</span>
|
1235 |
</div>
|
1236 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1237 |
|
1238 |
-
<img id="ffwd_reactions_haha_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/
|
1239 |
<span id="ffwd_tootlip_text_haha_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">HAHA</span>
|
1240 |
</div>
|
1241 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1242 |
-
<img id="ffwd_reactions_wow_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/
|
1243 |
<span id="ffwd_tootlip_text_wow_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">WOW</span>
|
1244 |
</div>
|
1245 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1246 |
-
<img id="ffwd_reactions_sad_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/
|
1247 |
<span id="ffwd_tootlip_text_sad_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">SAD</span>
|
1248 |
</div>
|
1249 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1250 |
-
<img id="ffwd_reactions_angry_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/
|
1251 |
<span id="ffwd_tootlip_text_angry_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">ANGRY</span>
|
1252 |
</div>
|
1253 |
</div>
|
43 |
{
|
44 |
$ffwd_info['objects_per_page']= $params['objects_per_page'];
|
45 |
$ffwd_info['theme']= $params['theme_id'];
|
46 |
+
$ffwd_info['blog_style_width']= $params['thumb_width'];
|
47 |
+
$ffwd_info['blog_style_height']= $params['thumb_height'];
|
48 |
|
49 |
}
|
50 |
|
719 |
float: left;
|
720 |
display: block;
|
721 |
height: 22px;
|
722 |
+
background: url('<?php echo WD_FFWD_URL . '/images/feed/love_gray.png' ?>') no-repeat 3px center;
|
723 |
background-size: 16px;
|
724 |
width: 20px;
|
725 |
margin-left: -2px;
|
729 |
float: left;
|
730 |
display: block;
|
731 |
height: 22px;
|
732 |
+
background: url('<?php echo WD_FFWD_URL . '/images/feed/haha_gray.png' ?>') no-repeat 3px center;
|
733 |
background-size: 16px;
|
734 |
width: 20px;
|
735 |
margin-left: -2px;
|
739 |
float: left;
|
740 |
display: block;
|
741 |
height: 22px;
|
742 |
+
background: url('<?php echo WD_FFWD_URL . '/images/feed/wow_gray.png' ?>') no-repeat 3px center;
|
743 |
background-size: 16px;
|
744 |
width: 20px;
|
745 |
margin-left: -2px;
|
750 |
float: left;
|
751 |
display: block;
|
752 |
height: 22px;
|
753 |
+
background: url('<?php echo WD_FFWD_URL . '/images/feed/sad_gray.png' ?>') no-repeat 3px center;
|
754 |
background-size: 17px;
|
755 |
width: 20px;
|
756 |
margin-left: -2px;
|
760 |
float: left;
|
761 |
display: block;
|
762 |
height: 22px;
|
763 |
+
background: url('<?php echo WD_FFWD_URL . '/images/feed/angry_gray.png' ?>') no-repeat 3px center;
|
764 |
background-size: 17px;
|
765 |
width: 20px;
|
766 |
margin-left: -2px;
|
1230 |
|
1231 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1232 |
|
1233 |
+
<img id="ffwd_reactions_love_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/love_gray.png' ?>" />
|
1234 |
<span id="ffwd_tootlip_text_love_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">LOVE</span>
|
1235 |
</div>
|
1236 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1237 |
|
1238 |
+
<img id="ffwd_reactions_haha_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/haha_gray.png' ?>" />
|
1239 |
<span id="ffwd_tootlip_text_haha_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">HAHA</span>
|
1240 |
</div>
|
1241 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1242 |
+
<img id="ffwd_reactions_wow_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/wow_gray.png' ?>" />
|
1243 |
<span id="ffwd_tootlip_text_wow_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">WOW</span>
|
1244 |
</div>
|
1245 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1246 |
+
<img id="ffwd_reactions_sad_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/sad_gray.png' ?>" />
|
1247 |
<span id="ffwd_tootlip_text_sad_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">SAD</span>
|
1248 |
</div>
|
1249 |
<div class="ffwd_tooltip_<?php echo $ffwd; ?>">
|
1250 |
+
<img id="ffwd_reactions_angry_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" src="<?php echo WD_FFWD_URL . '/images/feed/angry_gray.png' ?>" />
|
1251 |
<span id="ffwd_tootlip_text_angry_<?php echo $ffwd_data_row->id ?>_<?php echo $ffwd; ?>" class="ffwd_tooltiptext_<?php echo $ffwd; ?>">ANGRY</span>
|
1252 |
</div>
|
1253 |
</div>
|
js/ffwd_frontend.js
CHANGED
@@ -554,8 +554,8 @@ function ffwd_fill_likes_blog_style(id_object_id, ffwd, owner_info, ffwd_params,
|
|
554 |
|
555 |
|
556 |
var ids_array_count=Math.ceil(id_object_id.length/50);
|
557 |
-
ids_array=[];
|
558 |
-
img_ids=[];
|
559 |
for(var i = 0; i < ids_array_count; i++)
|
560 |
{
|
561 |
ids_array[i]=[];
|
@@ -657,7 +657,9 @@ function ffwd_fill_likes_blog_style(id_object_id, ffwd, owner_info, ffwd_params,
|
|
657 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['shares']), id_object_id[i]['id'], ffwd, 'shares', "", ffwd_params, graph_url);
|
658 |
|
659 |
// jQuery.getJSON(graph_url_for_attachments, createCallback_blog_style(id_object_id[i]['id'], ffwd, 'attachments', "", ffwd_params));
|
660 |
-
|
|
|
|
|
661 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['attachments']), id_object_id[i]['id'], ffwd, 'attachments', "", ffwd_params, graph_url);
|
662 |
|
663 |
}
|
@@ -665,7 +667,8 @@ function ffwd_fill_likes_blog_style(id_object_id, ffwd, owner_info, ffwd_params,
|
|
665 |
if(id_object_id[i]['comments']);
|
666 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['comments']), id_object_id[i]['id'], ffwd, 'comments', "", ffwd_params, graph_url);
|
667 |
|
668 |
-
|
|
|
669 |
//jQuery.getJSON(graph_url_for_who_post, createCallback_blog_style(id_object_id[i], ffwd, 'who_post', owner_info, ffwd_params));
|
670 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['who_post']), id_object_id[i], ffwd, 'who_post', owner_info, ffwd_params, graph_url);
|
671 |
|
@@ -926,27 +929,32 @@ function ffwd_get_comments_replies(comment_id,graph_url,ffwd_params,ffwd) {
|
|
926 |
|
927 |
|
928 |
}
|
929 |
-
function ffwd_fill_likes(result,ffwd,id) {
|
930 |
-
var total_reactions_count =
|
931 |
-
|
932 |
-
var likes_count =
|
933 |
-
|
934 |
-
var
|
935 |
-
|
936 |
-
var
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
|
|
|
|
|
|
|
|
|
|
942 |
var likes_some_names = '<div class="ffwd_like_name_cont_' + ffwd + '"> <a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][0]['id'] + '" target="_blank">' + result['total_reactions']['data'][0]['name'] + ' , </a><a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][1]['id'] + '" target="_blank">' + result['total_reactions']['data'][1]['name'] + ' </a></div>';
|
943 |
-
var likes_count_last_part = '<div class="ffwd_almost_' + ffwd + '"> '+ ffwd_frontend_text.and +' ' + (total_reactions_count - 2) + ' '+ ffwd_frontend_text.others+' </div>';
|
944 |
}
|
945 |
-
else if (total_reactions_count == 2) {
|
946 |
var likes_some_names = '<div class="ffwd_like_name_cont_' + ffwd + '"> <a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][0]['id'] + '" target="_blank">' + result['total_reactions']['data'][0]['name'] + ' , </a><a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][1]['id'] + '" target="_blank">' + result['total_reactions']['data'][1]['name'] + ' </a></div>';
|
947 |
var likes_count_last_part = '';
|
948 |
}
|
949 |
-
else if (total_reactions_count == 1) {
|
950 |
var likes_some_names = '<div class="ffwd_like_name_cont_' + ffwd + '"> <a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][0]['id'] + '" target="_blank">' + result['total_reactions']['data'][0]['name'] + '</a></div>';
|
951 |
var likes_count_last_part = '';
|
952 |
}
|
@@ -956,70 +964,70 @@ function ffwd_fill_likes(result,ffwd,id) {
|
|
956 |
}
|
957 |
|
958 |
var reactions_icons = ''
|
959 |
-
reactions_width=0;
|
960 |
-
if (likes_count != 0) {
|
961 |
reactions_icons += '<span class="ffwd_react_icons_like_' + ffwd + '" title="Like"></span>';
|
962 |
-
reactions_width+=40;
|
963 |
-
jQuery('#ffwd_reactions_like_'
|
964 |
-
jQuery('#ffwd_tootlip_text_like_'
|
965 |
}
|
966 |
-
if (love_count != 0) {
|
967 |
reactions_icons += '<span class="ffwd_react_icons_love_' + ffwd + '" title="Love"></span>';
|
968 |
-
reactions_width+=40;
|
969 |
-
jQuery('#ffwd_reactions_love_'
|
970 |
-
jQuery('#ffwd_tootlip_text_love_'
|
971 |
|
972 |
|
973 |
}
|
974 |
-
if (haha_count != 0) {
|
975 |
reactions_icons += '<span class="ffwd_react_icons_haha_' + ffwd + '" title="Haha"></span>';
|
976 |
-
reactions_width+=40;
|
977 |
-
jQuery('#ffwd_reactions_haha_'
|
978 |
-
jQuery('#ffwd_tootlip_text_haha_'
|
979 |
|
980 |
|
981 |
}
|
982 |
-
if(wow_count!=0) {
|
983 |
reactions_icons += '<span class="ffwd_react_icons_wow_' + ffwd + '" title="WOW"></span>';
|
984 |
-
reactions_width+=40;
|
985 |
-
jQuery('#ffwd_reactions_wow_'
|
986 |
-
jQuery('#ffwd_tootlip_text_wow_'
|
987 |
|
988 |
|
989 |
}
|
990 |
-
if(sad_count!=0) {
|
991 |
reactions_icons += '<span class="ffwd_react_icons_sad_' + ffwd + '" title="Sad"></span>';
|
992 |
-
reactions_width+=40;
|
993 |
jQuery('#ffwd_reactions_sad_' + id + '_' + ffwd).show();
|
994 |
-
jQuery('#ffwd_tootlip_text_sad_'
|
995 |
|
996 |
|
997 |
}
|
998 |
-
if(angry_count!=0) {
|
999 |
reactions_icons += '<span class="ffwd_react_icons_angry_' + ffwd + '" title="Angry"></span>';
|
1000 |
-
reactions_width+=40;
|
1001 |
-
jQuery('#ffwd_reactions_angry_'
|
1002 |
-
jQuery('#ffwd_tootlip_text_angry_'
|
1003 |
|
1004 |
|
1005 |
}
|
1006 |
|
1007 |
-
jQuery('#ffwd_reacts_'+ id + '_' + ffwd).css('width',reactions_width+52 +'px');
|
1008 |
|
1009 |
-
if(total_reactions_count==0)
|
1010 |
-
jQuery('#ffwd_reacts_'+ id + '_' + ffwd).css('display','none');
|
1011 |
|
1012 |
-
var likes_names_count = '<div class="ffwd_likes_names_' + ffwd + '">' +reactions_icons+ likes_some_names + likes_count_last_part + ' </div><div style="clear:both" ></div>';
|
1013 |
|
1014 |
|
1015 |
-
|
1016 |
-
if (total_reactions_count)
|
1017 |
jQuery('#ffwd_likes_names_count_' + id + '_' + ffwd).html(likes_names_count);
|
1018 |
else
|
1019 |
jQuery('#ffwd_likes_names_count_' + id + '_' + ffwd).remove();
|
1020 |
|
1021 |
}
|
1022 |
|
|
|
1023 |
function ffwd_blog_style_resize(ffwd_params, ffwd) {
|
1024 |
var window_width = window.innerWidth,
|
1025 |
blogstyle_object = jQuery(".blog_style_object_container_" + ffwd),
|
554 |
|
555 |
|
556 |
var ids_array_count=Math.ceil(id_object_id.length/50);
|
557 |
+
var ids_array=[];
|
558 |
+
var img_ids=[];
|
559 |
for(var i = 0; i < ids_array_count; i++)
|
560 |
{
|
561 |
ids_array[i]=[];
|
657 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['shares']), id_object_id[i]['id'], ffwd, 'shares', "", ffwd_params, graph_url);
|
658 |
|
659 |
// jQuery.getJSON(graph_url_for_attachments, createCallback_blog_style(id_object_id[i]['id'], ffwd, 'attachments', "", ffwd_params));
|
660 |
+
|
661 |
+
|
662 |
+
if(id_object_id[i]['attachments'])
|
663 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['attachments']), id_object_id[i]['id'], ffwd, 'attachments', "", ffwd_params, graph_url);
|
664 |
|
665 |
}
|
667 |
if(id_object_id[i]['comments']);
|
668 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['comments']), id_object_id[i]['id'], ffwd, 'comments', "", ffwd_params, graph_url);
|
669 |
|
670 |
+
|
671 |
+
// jQuery.getJSON(id_object_id[i]['comments'], createCallback_blog_style(id_object_id[i]['id'], ffwd, 'comments', "", ffwd_params, graph_url));
|
672 |
//jQuery.getJSON(graph_url_for_who_post, createCallback_blog_style(id_object_id[i], ffwd, 'who_post', owner_info, ffwd_params));
|
673 |
do_something_with_data_blog_style(jQuery.parseJSON(id_object_id[i]['who_post']), id_object_id[i], ffwd, 'who_post', owner_info, ffwd_params, graph_url);
|
674 |
|
929 |
|
930 |
|
931 |
}
|
932 |
+
function ffwd_fill_likes(result, ffwd, id) {
|
933 |
+
var total_reactions_count = {}
|
934 |
+
total_reactions_count[ffwd] = parseInt(result['total_reactions']['summary']['total_count']);
|
935 |
+
var likes_count = {};
|
936 |
+
likes_count[ffwd] = parseInt(result['like']['summary']['total_count']);
|
937 |
+
var love_count = {};
|
938 |
+
love_count[ffwd] = parseInt(result['love']['summary']['total_count']);
|
939 |
+
var wow_count = {};
|
940 |
+
wow_count[ffwd] = parseInt(result['wow']['summary']['total_count']);
|
941 |
+
var haha_count = {};
|
942 |
+
haha_count[ffwd] = parseInt(result['haha']['summary']['total_count']);
|
943 |
+
var sad_count = {};
|
944 |
+
sad_count[ffwd] = parseInt(result['sad']['summary']['total_count']);
|
945 |
+
var angry_count = {};
|
946 |
+
angry_count[ffwd] = parseInt(result['angry']['summary']['total_count']);
|
947 |
+
|
948 |
+
jQuery('#ffwd_likes_' + ffwd + '_' + id).html(total_reactions_count[ffwd]);
|
949 |
+
if (total_reactions_count[ffwd] >= 3) {
|
950 |
var likes_some_names = '<div class="ffwd_like_name_cont_' + ffwd + '"> <a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][0]['id'] + '" target="_blank">' + result['total_reactions']['data'][0]['name'] + ' , </a><a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][1]['id'] + '" target="_blank">' + result['total_reactions']['data'][1]['name'] + ' </a></div>';
|
951 |
+
var likes_count_last_part = '<div class="ffwd_almost_' + ffwd + '"> ' + ffwd_frontend_text.and + ' ' + (total_reactions_count[ffwd] - 2) + ' ' + ffwd_frontend_text.others + ' </div>';
|
952 |
}
|
953 |
+
else if (total_reactions_count[ffwd] == 2) {
|
954 |
var likes_some_names = '<div class="ffwd_like_name_cont_' + ffwd + '"> <a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][0]['id'] + '" target="_blank">' + result['total_reactions']['data'][0]['name'] + ' , </a><a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][1]['id'] + '" target="_blank">' + result['total_reactions']['data'][1]['name'] + ' </a></div>';
|
955 |
var likes_count_last_part = '';
|
956 |
}
|
957 |
+
else if (total_reactions_count[ffwd] == 1) {
|
958 |
var likes_some_names = '<div class="ffwd_like_name_cont_' + ffwd + '"> <a class="ffwd_like_name_' + ffwd + '" href="https://www.facebook.com/' + result['total_reactions']['data'][0]['id'] + '" target="_blank">' + result['total_reactions']['data'][0]['name'] + '</a></div>';
|
959 |
var likes_count_last_part = '';
|
960 |
}
|
964 |
}
|
965 |
|
966 |
var reactions_icons = ''
|
967 |
+
reactions_width = 0;
|
968 |
+
if (likes_count[ffwd] != 0) {
|
969 |
reactions_icons += '<span class="ffwd_react_icons_like_' + ffwd + '" title="Like"></span>';
|
970 |
+
reactions_width += 40;
|
971 |
+
jQuery('#ffwd_reactions_like_' + id + '_' + ffwd).show();
|
972 |
+
jQuery('#ffwd_tootlip_text_like_' + id + '_' + ffwd).html('Like: ' + likes_count[ffwd]);
|
973 |
}
|
974 |
+
if (love_count[ffwd] != 0) {
|
975 |
reactions_icons += '<span class="ffwd_react_icons_love_' + ffwd + '" title="Love"></span>';
|
976 |
+
reactions_width += 40;
|
977 |
+
jQuery('#ffwd_reactions_love_' + id + '_' + ffwd).show();
|
978 |
+
jQuery('#ffwd_tootlip_text_love_' + id + '_' + ffwd).html('Love: ' + love_count[ffwd]);
|
979 |
|
980 |
|
981 |
}
|
982 |
+
if (haha_count[ffwd] != 0) {
|
983 |
reactions_icons += '<span class="ffwd_react_icons_haha_' + ffwd + '" title="Haha"></span>';
|
984 |
+
reactions_width += 40;
|
985 |
+
jQuery('#ffwd_reactions_haha_' + id + '_' + ffwd).show();
|
986 |
+
jQuery('#ffwd_tootlip_text_haha_' + id + '_' + ffwd).html('Haha: ' + haha_count[ffwd]);
|
987 |
|
988 |
|
989 |
}
|
990 |
+
if (wow_count[ffwd] != 0) {
|
991 |
reactions_icons += '<span class="ffwd_react_icons_wow_' + ffwd + '" title="WOW"></span>';
|
992 |
+
reactions_width += 40;
|
993 |
+
jQuery('#ffwd_reactions_wow_' + id + '_' + ffwd).show();
|
994 |
+
jQuery('#ffwd_tootlip_text_wow_' + id + '_' + ffwd).html('Wow: ' + wow_count[ffwd]);
|
995 |
|
996 |
|
997 |
}
|
998 |
+
if (sad_count[ffwd] != 0) {
|
999 |
reactions_icons += '<span class="ffwd_react_icons_sad_' + ffwd + '" title="Sad"></span>';
|
1000 |
+
reactions_width += 40;
|
1001 |
jQuery('#ffwd_reactions_sad_' + id + '_' + ffwd).show();
|
1002 |
+
jQuery('#ffwd_tootlip_text_sad_' + id + '_' + ffwd).html('Sad: ' + sad_count[ffwd]);
|
1003 |
|
1004 |
|
1005 |
}
|
1006 |
+
if (angry_count[ffwd] != 0) {
|
1007 |
reactions_icons += '<span class="ffwd_react_icons_angry_' + ffwd + '" title="Angry"></span>';
|
1008 |
+
reactions_width += 40;
|
1009 |
+
jQuery('#ffwd_reactions_angry_' + id + '_' + ffwd).show();
|
1010 |
+
jQuery('#ffwd_tootlip_text_angry_' + id + '_' + ffwd).html('Angry: ' + angry_count[ffwd]);
|
1011 |
|
1012 |
|
1013 |
}
|
1014 |
|
1015 |
+
jQuery('#ffwd_reacts_' + id + '_' + ffwd).css('width', reactions_width + 52 + 'px');
|
1016 |
|
1017 |
+
if (total_reactions_count[ffwd] == 0)
|
1018 |
+
jQuery('#ffwd_reacts_' + id + '_' + ffwd).css('display', 'none');
|
1019 |
|
1020 |
+
var likes_names_count = '<div class="ffwd_likes_names_' + ffwd + '">' + reactions_icons + likes_some_names + likes_count_last_part + ' </div><div style="clear:both" ></div>';
|
1021 |
|
1022 |
|
1023 |
+
if (total_reactions_count[ffwd])
|
|
|
1024 |
jQuery('#ffwd_likes_names_count_' + id + '_' + ffwd).html(likes_names_count);
|
1025 |
else
|
1026 |
jQuery('#ffwd_likes_names_count_' + id + '_' + ffwd).remove();
|
1027 |
|
1028 |
}
|
1029 |
|
1030 |
+
|
1031 |
function ffwd_blog_style_resize(ffwd_params, ffwd) {
|
1032 |
var window_width = window.innerWidth,
|
1033 |
blogstyle_object = jQuery(".blog_style_object_container_" + ffwd),
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Facebook Feed
|
2 |
Contributors: webdorado
|
3 |
Donate link: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
4 |
Tags: customizable facebook feed, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -66,6 +66,11 @@ Upgrade to [Facebook Feed Pro](https://web-dorado.com/products/wordpress-faceboo
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.0.13 =
|
70 |
* Changed: Featured plugins
|
71 |
* Fixed: Bug with albums
|
1 |
+
=== Facebook Feed ===
|
2 |
Contributors: webdorado
|
3 |
Donate link: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
|
4 |
Tags: customizable facebook feed, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.0.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.0.14 =
|
70 |
+
* Fixed: Bug on reactions
|
71 |
+
* Fixed: Bug on multiple Feeds
|
72 |
+
* Fixed: Bug on widget dimension
|
73 |
+
|
74 |
= 1.0.13 =
|
75 |
* Changed: Featured plugins
|
76 |
* Fixed: Bug with albums
|