Feed & LikeBox For Facebook - Version 2.6.8

Version Description

[ 16/03/2018 ]

Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Feed & LikeBox For Facebook
Version 2.6.8
Comparing to
See all releases

Code changes from version 2.6.7 to 2.6.8

css/weblizar-option-style.css CHANGED
@@ -1391,4 +1391,8 @@ user-select: none;
1391
 
1392
  #fb-msg {
1393
  border: 1px #888888 solid; background-color: #C0CCFE; padding: 10px; font-size: inherit; font-weight: bold; font-family: inherit; font-style: inherit; text-decoration: inherit;
 
 
 
 
1394
  }
1391
 
1392
  #fb-msg {
1393
  border: 1px #888888 solid; background-color: #C0CCFE; padding: 10px; font-size: inherit; font-weight: bold; font-family: inherit; font-style: inherit; text-decoration: inherit;
1394
+ }
1395
+ .feed_setting_page .wp-color-result-text
1396
+ {
1397
+ font-size: 10px !important;
1398
  }
facebook-by-weblizar.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Feed & LikeBox For Facebook
4
- * Version: 2.6.7
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds contents.
6
  * Author: Weblizar
7
  * Author URI: http://www.weblizar.com
@@ -40,6 +40,9 @@ function facebooky_by_weblizar_page_function_js_css()
40
  wp_enqueue_style('op-bootstrap-css', WEBLIZAR_FACEBOOK_PLUGIN_URL. 'css/bootstrap.min.css');
41
  wp_enqueue_style('weblizar-bootstrap-responsive-google', WEBLIZAR_FACEBOOK_PLUGIN_URL .'css/bootstrap-responsive.css');
42
  wp_enqueue_style('font-awesome-min-css', WEBLIZAR_FACEBOOK_PLUGIN_URL.'css/font-awesome-latest/css/font-awesome.min.css');
 
 
 
43
  }
44
  function weblizar_feed_code_script()
45
  {
1
  <?php
2
  /**
3
  * Plugin Name: Feed & LikeBox For Facebook
4
+ * Version: 2.6.8
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds contents.
6
  * Author: Weblizar
7
  * Author URI: http://www.weblizar.com
40
  wp_enqueue_style('op-bootstrap-css', WEBLIZAR_FACEBOOK_PLUGIN_URL. 'css/bootstrap.min.css');
41
  wp_enqueue_style('weblizar-bootstrap-responsive-google', WEBLIZAR_FACEBOOK_PLUGIN_URL .'css/bootstrap-responsive.css');
42
  wp_enqueue_style('font-awesome-min-css', WEBLIZAR_FACEBOOK_PLUGIN_URL.'css/font-awesome-latest/css/font-awesome.min.css');
43
+ wp_enqueue_style( 'wp-color-picker' );
44
+ wp_enqueue_script( 'wp-color-picker' );
45
+
46
  }
47
  function weblizar_feed_code_script()
48
  {
function/facebook-feed-shortcode-data.php CHANGED
@@ -7,6 +7,8 @@ if(isset($facebook_feed_fetch["ffp_limit"])) { $ffp_limit=$facebook_feed_fetch["
7
  if(isset($facebook_feed_fetch["ffp_timeline_layout"])) { $ffp_timeline_layout=$facebook_feed_fetch["ffp_timeline_layout"]; } else {$ffp_timeline_layout="full_width";}
8
  //custom css
9
  if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; }
 
 
10
  //post layout assign to variable
11
  if($ffp_timeline_layout=='full_width') { $layout1="col-md-12";$layout2="col-md-12"; }
12
  if($ffp_timeline_layout=='half_width') { $layout1="col-md-6";$layout2="col-md-6"; }
@@ -82,7 +84,7 @@ $page_timeline_string="https://graph.facebook.com/v2.10/".$ffp_page_url."?access
82
  <a href="https://facebook.com/<?php echo $data_content['from']['id'];?>" target="_blank" rel="nofollow"><?php echo $data_content['from']['name'];?></a>
83
  </div>
84
  <!-- post create date -->
85
- <div class="weblizar-fb-eapps-facebook-feed-item-date"><i class="fa fa-clock-o"></i><span><?php printf( _x( '%s Ago', '%s = human-readable time difference', WEBLIZAR_FACEBOOK_TEXT_DOMAIN), human_time_diff( date( 'U', $s), current_time( 'timestamp' ) ) ); ?></div>
86
  </div>
87
  </div>
88
  <?php }
@@ -149,7 +151,7 @@ $page_timeline_string="https://graph.facebook.com/v2.10/".$ffp_page_url."?access
149
  <div class=" clearfix"> </div>
150
  <!-- comment display -->
151
  <?php if(isset($data_content['comments']['data']))
152
- { ?>
153
  <div class="col-md-12 wp-weblizar_custom_box_comment">
154
  <div class="wp-weblizar_comment-area col-md-12 padding-0" id="multiCollapseExample1">
155
  <p class="wp-weblizar_comment-area-titel"><?php _e('Comment on Facebook', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></p>
@@ -509,39 +511,25 @@ for (i = 0; i < acc.length; i++) {
509
  }
510
  });
511
  /* post comment box open js end */
512
-
513
- jQuery(window).load(function()
514
- {
515
- jQuery(".facebook_feed_more_page").toggle(function()
516
- {
517
- jQuery(this).text("See less..").siblings(".weblizar_fb_complete").show();
518
- jQuery(this).text("See more..").siblings(".weblizar_fb_teaser").hide();
519
- }, function(){
520
- jQuery(this).text("See less..").siblings(".weblizar_fb_complete").hide();
521
- jQuery(this).text("See more..").siblings(".weblizar_fb_teaser").show();
522
- });
523
- });
524
-
525
- jQuery(document).ready(function()
526
- {
527
- jQuery(".facebook_feed_more_widget").click(function()
528
- {
529
- jQuery(this).siblings('.weblizar_fb_teaser_widget').toggle();
530
- jQuery(this).siblings('.weblizar_fb_complete_widget').toggle();
531
- var oldText = jQuery(this).text();
532
- var newText = jQuery(this).attr('data-text');
533
- //alert(newText)
534
- if (jQuery(this).text(oldText)) {
535
- jQuery(this).text(newText);
536
- }
537
- else
538
- {
539
- jQuery(this).text(oldText);
540
- }
541
- jQuery(this).attr('data-text',oldText);
542
- });
543
- });
544
  </script>
545
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
546
  <?php echo $feed_customs_css; ?>
547
  </style>
7
  if(isset($facebook_feed_fetch["ffp_timeline_layout"])) { $ffp_timeline_layout=$facebook_feed_fetch["ffp_timeline_layout"]; } else {$ffp_timeline_layout="full_width";}
8
  //custom css
9
  if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; }
10
+ //hover color
11
+ if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_feed_fetch["ffp_hover_color"]; } else { $ffp_hover_color="#2e2c2c"; }
12
  //post layout assign to variable
13
  if($ffp_timeline_layout=='full_width') { $layout1="col-md-12";$layout2="col-md-12"; }
14
  if($ffp_timeline_layout=='half_width') { $layout1="col-md-6";$layout2="col-md-6"; }
84
  <a href="https://facebook.com/<?php echo $data_content['from']['id'];?>" target="_blank" rel="nofollow"><?php echo $data_content['from']['name'];?></a>
85
  </div>
86
  <!-- post create date -->
87
+ <div class="weblizar-fb-eapps-facebook-feed-item-date"><i class="fa fa-clock-o"></i>&nbsp <span><?php printf( _x( '%s Ago', '%s = human-readable time difference', WEBLIZAR_FACEBOOK_TEXT_DOMAIN), human_time_diff( date( 'U', $s), current_time( 'timestamp' ) ) ); ?></span></div>
88
  </div>
89
  </div>
90
  <?php }
151
  <div class=" clearfix"> </div>
152
  <!-- comment display -->
153
  <?php if(isset($data_content['comments']['data']))
154
+ {?>
155
  <div class="col-md-12 wp-weblizar_custom_box_comment">
156
  <div class="wp-weblizar_comment-area col-md-12 padding-0" id="multiCollapseExample1">
157
  <p class="wp-weblizar_comment-area-titel"><?php _e('Comment on Facebook', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></p>
511
  }
512
  });
513
  /* post comment box open js end */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
514
  </script>
515
  <style>
516
+ a.weblizar_fb-before-ovrly:after {
517
+ position: absolute;
518
+ left: 0;
519
+ right: 0;
520
+ content: '';
521
+ top: 0;
522
+ opacity: 0;
523
+ bottom: 0;
524
+ background-color: <?php echo $ffp_hover_color;?>;
525
+ transition: .5s ease;
526
+ }
527
+
528
+
529
+ .gallery-img:hover a.weblizar_fb-before-ovrly:after {
530
+ opacity: 0.5;
531
+ transition: .5s ease;
532
+
533
+ }
534
  <?php echo $feed_customs_css; ?>
535
  </style>
function/facebook-feed-shortcode.php CHANGED
@@ -126,7 +126,7 @@ set_error_handler(
126
  <?php if(isset($weblizar_data_post["posts"]['data'][$y]['full_picture']))
127
  { ?>
128
  <div class="<?php echo $layout2;?> col-sm-12 col-xs-12 post-img animated gallery-img">
129
- <a href="#">
130
  <span class="weblizar_span_img">
131
  <img src="<?php echo $weblizar_data_post["posts"]['data'][$y]['full_picture'];?>" class="img-responsive" >
132
  </span>
@@ -169,7 +169,7 @@ set_error_handler(
169
  { ?>
170
  <span class="weblizar_fb_teaser weblizar_fb-post_font_color"><?php echo substr(strip_tags($text),0,250);?></span>
171
  <span class="weblizar_fb_complete weblizar_fb-post_font_color" style="display:none"><?php echo $text;?></span>
172
- <span class="facebook_feed_more_page"><?php _e('...See more', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></span>
173
  <?php } else { ?> <span class="weblizar_fb-post_font_color" show-more-id="<?php echo uniqid();?>"> <?php echo $text;?></span> <?php } ?>
174
  </p>
175
  </div>
126
  <?php if(isset($weblizar_data_post["posts"]['data'][$y]['full_picture']))
127
  { ?>
128
  <div class="<?php echo $layout2;?> col-sm-12 col-xs-12 post-img animated gallery-img">
129
+ <a href="#" class="weblizar_fb-before-ovrly">
130
  <span class="weblizar_span_img">
131
  <img src="<?php echo $weblizar_data_post["posts"]['data'][$y]['full_picture'];?>" class="img-responsive" >
132
  </span>
169
  { ?>
170
  <span class="weblizar_fb_teaser weblizar_fb-post_font_color"><?php echo substr(strip_tags($text),0,250);?></span>
171
  <span class="weblizar_fb_complete weblizar_fb-post_font_color" style="display:none"><?php echo $text;?></span>
172
+ <span data-text="...Show less" class="facebook_feed_more_page"><?php _e('...See more', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></span>
173
  <?php } else { ?> <span class="weblizar_fb-post_font_color" show-more-id="<?php echo uniqid();?>"> <?php echo $text;?></span> <?php } ?>
174
  </p>
175
  </div>
function/facebook-feed-widget.php CHANGED
@@ -144,7 +144,7 @@ class Weblizar_facebook_feed_widget extends WP_Widget
144
  { ?>
145
  <span class="weblizar_fb_teaser_widget weblizar_fb-post_font_color"><?php echo substr(strip_tags($text),0,50);?></span>
146
  <span class="weblizar_fb_complete_widget weblizar_fb-post_font_color" style="display:none"><?php echo $text;?></span>
147
- <span data-text="...show less" class="facebook_feed_more_widget"><?php _e('...See more', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></span>
148
  <?php } else { ?> <span class="weblizar_fb-post_font_color"> <?php echo $text;?></span> <?php } ?>
149
  </p>
150
  </div>
@@ -153,14 +153,14 @@ class Weblizar_facebook_feed_widget extends WP_Widget
153
  <?php if(isset($weblizar_data_post["posts"]['data'][$y]['full_picture']))
154
  { ?>
155
  <div class="col-md-12 col-sm-12 col-xs-12 post-img animated gallery-img">
156
- <a href="#">
157
- <span class="weblizar_span_img">
158
- <img src="<?php echo $weblizar_data_post["posts"]['data'][$y]['full_picture'];?>" class="img-responsive" >
159
- </span>
160
- </a>
161
  <dialog style="display:none" id="box_<?php echo $weblizar_data_post["posts"]['data'][$y]['id']; ?>" data-id="<?php echo $weblizar_data_post["posts"]['data'][$y]['id']; ?>" feed-type="post" feed-post="<?php echo $weblizar_data_post["posts"]['data'][$y]['type'];?>" >
162
  <div class="inner_box_<?php echo $weblizar_data_post["posts"]['data'][$y]['id']; ?>"></div>
163
- </dialog>
164
  </div>
165
  <?php } // post image data display end ?>
166
 
@@ -258,7 +258,28 @@ class Weblizar_facebook_feed_widget extends WP_Widget
258
 
259
  </div>
260
  <div class="clearfix"> </div>
261
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  <?php }
263
  catch (Exception $e)
264
  {
144
  { ?>
145
  <span class="weblizar_fb_teaser_widget weblizar_fb-post_font_color"><?php echo substr(strip_tags($text),0,50);?></span>
146
  <span class="weblizar_fb_complete_widget weblizar_fb-post_font_color" style="display:none"><?php echo $text;?></span>
147
+ <span data-text="...Show less" class="facebook_feed_more_widget"><?php _e('...See more', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></span>
148
  <?php } else { ?> <span class="weblizar_fb-post_font_color"> <?php echo $text;?></span> <?php } ?>
149
  </p>
150
  </div>
153
  <?php if(isset($weblizar_data_post["posts"]['data'][$y]['full_picture']))
154
  { ?>
155
  <div class="col-md-12 col-sm-12 col-xs-12 post-img animated gallery-img">
156
+ <a href="#" class="weblizar_fb-before-ovrly">
157
+ <span class="weblizar_span_img">
158
+ <img src="<?php echo $weblizar_data_post["posts"]['data'][$y]['full_picture'];?>" class="img-responsive" >
159
+ </span>
160
+ </a>
161
  <dialog style="display:none" id="box_<?php echo $weblizar_data_post["posts"]['data'][$y]['id']; ?>" data-id="<?php echo $weblizar_data_post["posts"]['data'][$y]['id']; ?>" feed-type="post" feed-post="<?php echo $weblizar_data_post["posts"]['data'][$y]['type'];?>" >
162
  <div class="inner_box_<?php echo $weblizar_data_post["posts"]['data'][$y]['id']; ?>"></div>
163
+ </dialog>
164
  </div>
165
  <?php } // post image data display end ?>
166
 
258
 
259
  </div>
260
  <div class="clearfix"> </div>
261
+ </div>
262
+ <script>
263
+ jQuery(document).ready(function()
264
+ {
265
+ jQuery(".facebook_feed_more_widget").click(function()
266
+ {
267
+ jQuery(this).siblings('.weblizar_fb_teaser_widget').toggle();
268
+ jQuery(this).siblings('.weblizar_fb_complete_widget').toggle();
269
+ var oldText = jQuery(this).text();
270
+ var newText = jQuery(this).attr('data-text');
271
+ //alert(newText)
272
+ if (jQuery(this).text(oldText)) {
273
+ jQuery(this).text(newText);
274
+ }
275
+ else
276
+ {
277
+ jQuery(this).text(oldText);
278
+ }
279
+ jQuery(this).attr('data-text',oldText);
280
+ });
281
+ });
282
+ </script>
283
  <?php }
284
  catch (Exception $e)
285
  {
function/facebook-feed.php CHANGED
@@ -7,6 +7,7 @@ if(isset($_POST['security'])) {
7
  'ffp_limit' => sanitize_text_field($_REQUEST['ffp_limit']),
8
  'ffp_timeline_layout' => sanitize_text_field($_REQUEST['ffp_timeline_layout']),
9
  'feed_customs_css' => sanitize_text_field($_REQUEST['feed_customs_css']),
 
10
  ));
11
  update_option("weblizar_facebook_feed_option_settings", $facebook_feed);
12
  }
@@ -16,7 +17,8 @@ $facebook_feed_fetch = unserialize(get_option("weblizar_facebook_feed_option_set
16
  if(isset($facebook_feed_fetch["ffp_limit"])) { $ffp_limit=$facebook_feed_fetch["ffp_limit"]; } else {$ffp_limit="5";}
17
  if(isset($facebook_feed_fetch["ffp_timeline_layout"])) { $ffp_timeline_layout=$facebook_feed_fetch["ffp_timeline_layout"]; } else {$ffp_timeline_layout="full_width"; }
18
  if(isset($facebook_feed_fetch["ffp_page_url"])) { $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else {$ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
19
- if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; } ?>
 
20
  <!---------------- facebook feed tab------------------------>
21
  <?php $feed_security_action_nonce = wp_create_nonce("feed_security_action"); ?>
22
  <div class="block ui-tabs-panel deactive" id="option-fbfeed">
@@ -142,7 +144,7 @@ if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$faceboo
142
  <div class="col-md-12 no-pad">
143
  <div class="col-md-6" ><label> <?php _e('hover color', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
144
  <div class="col-md-6" >
145
- <input type="text" disabled class="" name="ffp_hover_color" id="ffp_hover_color" value="#2266a5" />
146
  <p class="description"><?php _e('available in pro version.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
147
  </div>
148
  </div>
@@ -231,4 +233,9 @@ if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$faceboo
231
  </div>
232
  </div>
233
  <div class="clearfix"></div>
234
- </div>
 
 
 
 
 
7
  'ffp_limit' => sanitize_text_field($_REQUEST['ffp_limit']),
8
  'ffp_timeline_layout' => sanitize_text_field($_REQUEST['ffp_timeline_layout']),
9
  'feed_customs_css' => sanitize_text_field($_REQUEST['feed_customs_css']),
10
+ 'ffp_hover_color' => sanitize_text_field($_REQUEST['ffp_hover_color']),
11
  ));
12
  update_option("weblizar_facebook_feed_option_settings", $facebook_feed);
13
  }
17
  if(isset($facebook_feed_fetch["ffp_limit"])) { $ffp_limit=$facebook_feed_fetch["ffp_limit"]; } else {$ffp_limit="5";}
18
  if(isset($facebook_feed_fetch["ffp_timeline_layout"])) { $ffp_timeline_layout=$facebook_feed_fetch["ffp_timeline_layout"]; } else {$ffp_timeline_layout="full_width"; }
19
  if(isset($facebook_feed_fetch["ffp_page_url"])) { $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else {$ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
20
+ if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; }
21
+ if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_feed_fetch["ffp_hover_color"]; } else { $ffp_hover_color="#2e2c2c"; }?>
22
  <!---------------- facebook feed tab------------------------>
23
  <?php $feed_security_action_nonce = wp_create_nonce("feed_security_action"); ?>
24
  <div class="block ui-tabs-panel deactive" id="option-fbfeed">
144
  <div class="col-md-12 no-pad">
145
  <div class="col-md-6" ><label> <?php _e('hover color', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
146
  <div class="col-md-6" >
147
+ <input type="text" class="weblizar-feed-color-picker" name="ffp_hover_color" id="ffp_hover_color" value="<?php if(isset($ffp_hover_color)){ echo $ffp_hover_color;} else { echo "#2e2c2c";}?>" />
148
  <p class="description"><?php _e('available in pro version.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
149
  </div>
150
  </div>
233
  </div>
234
  </div>
235
  <div class="clearfix"></div>
236
+ </div>
237
+ <script>
238
+ jQuery(document).ready(function() {
239
+ jQuery('input.weblizar-feed-color-picker').wpColorPicker();
240
+ });
241
+ </script>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.weblizar.com/
4
  Tags: facebook, facebook feed, facebook like box, facebook posts, facebook page, Facebook posts, facebook widget, Facebook profile, Facebook group, facebook page feed, facebook page like box, feed, likebox
5
  Requires at least: 3.8
6
  Tested up to: 4.9.4
7
- Stable tag: 2.6.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -216,6 +216,9 @@ Go to admin dashboard => appearance => widgets => Here are available our two fac
216
 
217
  For more information, see [Weblizar](http://wwww.weblizar.com/) .
218
 
 
 
 
219
 
220
  = 2.6.7 [ 08/03/2018 ] =
221
  1. Plugin name change ' Feed & LikeBox For Facebook '.
4
  Tags: facebook, facebook feed, facebook like box, facebook posts, facebook page, Facebook posts, facebook widget, Facebook profile, Facebook group, facebook page feed, facebook page like box, feed, likebox
5
  Requires at least: 3.8
6
  Tested up to: 4.9.4
7
+ Stable tag: 2.6.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
216
 
217
  For more information, see [Weblizar](http://wwww.weblizar.com/) .
218
 
219
+ = 2.6.8 [ 16/03/2018 ] =
220
+ 1. time line hover color option added
221
+ 2. Minor css issue fixed.
222
 
223
  = 2.6.7 [ 08/03/2018 ] =
224
  1. Plugin name change ' Feed & LikeBox For Facebook '.