Feed & LikeBox For Facebook - Version 2.6.9

Version Description

[ 31/03/2018 ]

Download this release

Release Info

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

Code changes from version 2.6.8 to 2.6.9

facebook-by-weblizar.php CHANGED
@@ -1,7 +1,7 @@
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
@@ -58,7 +58,6 @@ function weblizar_feed_code_script()
58
  }
59
  add_action('wp_enqueue_scripts', 'weblizar_feed_code_script');
60
 
61
-
62
  /*** Load Facebook Like Box widgets ***/
63
  require_once("function/facebook-by-weblizar-widgets.php");
64
  require_once("function/facebook-feed-widget.php");
1
  <?php
2
  /**
3
  * Plugin Name: Feed & LikeBox For Facebook
4
+ * Version: 2.6.9
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
58
  }
59
  add_action('wp_enqueue_scripts', 'weblizar_feed_code_script');
60
 
 
61
  /*** Load Facebook Like Box widgets ***/
62
  require_once("function/facebook-by-weblizar-widgets.php");
63
  require_once("function/facebook-feed-widget.php");
function/facebook-feed-shortcode-data.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php $facebook_feed_fetch = unserialize(get_option("weblizar_facebook_feed_option_settings"));
2
  //page url
3
- 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/";}
 
4
  //post limit
5
  if(isset($facebook_feed_fetch["ffp_limit"])) { $ffp_limit=$facebook_feed_fetch["ffp_limit"]; } else {$ffp_limit="10";}
6
  //post layout
1
  <?php $facebook_feed_fetch = unserialize(get_option("weblizar_facebook_feed_option_settings"));
2
  //page url
3
+ if(isset($facebook_feed_fetch["ffp_page_url"])) {
4
+ $ffp_page_url=$facebook_feed_fetch["ffp_page_url"]; } else { $ffp_page_url="https://www.facebook.com/weblizarstyle/"; }
5
  //post limit
6
  if(isset($facebook_feed_fetch["ffp_limit"])) { $ffp_limit=$facebook_feed_fetch["ffp_limit"]; } else {$ffp_limit="10";}
7
  //post layout
function/facebook-feed-shortcode.php CHANGED
@@ -1,7 +1,5 @@
1
  <?php add_shortcode("facebook_feed", "weblizar_facebook_feed");
2
-
3
- function weblizar_facebook_feed()
4
- {
5
  ob_start();
6
  require("facebook-feed-shortcode-data.php");
7
  set_error_handler(
@@ -19,10 +17,12 @@ set_error_handler(
19
  <div class="col-md-12 wp-weblizar_fb-plugin">
20
  <!--header code start-->
21
  <div class="weblizar_fb-main-banner">
 
22
  <div class="weblizar_fb-main-banner-img">
23
  <!--header code cover image-->
24
  <img src="<?php if(isset($weblizar_header_data['cover']['source'])) { echo $weblizar_header_data['cover']['source']; }?>" class="img-responsive fb-banner-img" >
25
  </div>
 
26
  <div class="weblizar_fb-facebook-feed-top-area">
27
  <div class="weblizar_fb-facebook-feed-top-img ">
28
  <!-- header link on logo -->
@@ -80,8 +80,7 @@ set_error_handler(
80
  </div>
81
  </div>
82
  <!--full width data display start-->
83
- <?php if($ffp_timeline_layout=='full_width')
84
- {
85
  if(isset($weblizar_data_post["posts"]['data'][$y]['message'])) //post text message
86
  {
87
  $text=$weblizar_data_post["posts"]['data'][$y]['message'];
@@ -138,8 +137,7 @@ set_error_handler(
138
  <?php } // post image data display end
139
 
140
  //half width and thumbnail width data display start
141
- if($ffp_timeline_layout=='half_width' || $ffp_timeline_layout=='thumbnail')
142
- {
143
  if(isset($weblizar_data_post["posts"]['data'][$y]['message'])) //post text message
144
  {
145
  $text=$weblizar_data_post["posts"]['data'][$y]['message'];
1
  <?php add_shortcode("facebook_feed", "weblizar_facebook_feed");
2
+ function weblizar_facebook_feed(){
 
 
3
  ob_start();
4
  require("facebook-feed-shortcode-data.php");
5
  set_error_handler(
17
  <div class="col-md-12 wp-weblizar_fb-plugin">
18
  <!--header code start-->
19
  <div class="weblizar_fb-main-banner">
20
+ <?php if(isset($facebook_feed_fetch["ffp_header_check"])) { ?>
21
  <div class="weblizar_fb-main-banner-img">
22
  <!--header code cover image-->
23
  <img src="<?php if(isset($weblizar_header_data['cover']['source'])) { echo $weblizar_header_data['cover']['source']; }?>" class="img-responsive fb-banner-img" >
24
  </div>
25
+ <?php } ?>
26
  <div class="weblizar_fb-facebook-feed-top-area">
27
  <div class="weblizar_fb-facebook-feed-top-img ">
28
  <!-- header link on logo -->
80
  </div>
81
  </div>
82
  <!--full width data display start-->
83
+ <?php if($ffp_timeline_layout=='full_width') {
 
84
  if(isset($weblizar_data_post["posts"]['data'][$y]['message'])) //post text message
85
  {
86
  $text=$weblizar_data_post["posts"]['data'][$y]['message'];
137
  <?php } // post image data display end
138
 
139
  //half width and thumbnail width data display start
140
+ if($ffp_timeline_layout=='half_width' || $ffp_timeline_layout=='thumbnail') {
 
141
  if(isset($weblizar_data_post["posts"]['data'][$y]['message'])) //post text message
142
  {
143
  $text=$weblizar_data_post["posts"]['data'][$y]['message'];
function/facebook-feed.php CHANGED
@@ -8,6 +8,7 @@ if(isset($_POST['security'])) {
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
  }
@@ -18,7 +19,8 @@ if(isset($facebook_feed_fetch["ffp_limit"])) { $ffp_limit=$facebook_feed_fetch["
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">
@@ -145,7 +147,7 @@ if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_
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>
151
  <div class="col-md-12 no-pad">
@@ -166,8 +168,8 @@ if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_
166
  <div class="col-md-12 no-pad">
167
  <div class="col-md-6 "><label><?php _e('Show Header:', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
168
  <div class="col-md-6">
169
- <input type="checkbox" disabled checked="checked" class="" id="ffp_header_check" name="ffp_header_check" value="yes" >
170
- <p class="description"><?php _e('available in pro version.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
171
  </div>
172
  </div>
173
  <div class="col-md-12 no-pad timeline_content" style="display:none">
@@ -181,18 +183,19 @@ if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_
181
  <option value="thumbnail" <?php selected($ffp_timeline_layout,'thumbnail' ); ?>> <?php _e('Thumbnail', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></option>
182
  </optgroup>
183
  </select>
184
- <p class="description"><?php _e('available in pro version.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
185
  </div>
186
  </div>
187
  <div class="col-md-12 no-pad">
188
  <div class="col-md-6"><label><?php _e('Light Box Styles', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
189
  <div class="col-md-6">
190
- <select name="ffp_light_Box" id="ffp_light_Box" disabled >
191
  <optgroup label="Select Light Box">
192
- <option value="lightbox_photo_box"><?php _e(' 9+Light-Box Layouts', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></option>
 
193
  </optgroup>
194
  </select>
195
- <p class="description"><?php _e('available in pro version.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?>.</p>
196
  <input type="hidden" name="feed_security" id="feed_security" value="<?php echo $feed_security_action_nonce; ?>" />
197
  </div>
198
  </div>
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
+ 'ffp_header_check' => sanitize_text_field($_REQUEST['ffp_header_check']),
12
  ));
13
  update_option("weblizar_facebook_feed_option_settings", $facebook_feed);
14
  }
19
  if(isset($facebook_feed_fetch["ffp_timeline_layout"])) { $ffp_timeline_layout=$facebook_feed_fetch["ffp_timeline_layout"]; } else {$ffp_timeline_layout="full_width"; }
20
  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/"; }
21
  if(isset($facebook_feed_fetch["feed_customs_css"])){ $feed_customs_css=$facebook_feed_fetch["feed_customs_css"]; } else { $feed_customs_css=""; }
22
+ if(isset($facebook_feed_fetch["ffp_hover_color"])){ $ffp_hover_color=$facebook_feed_fetch["ffp_hover_color"]; } else { $ffp_hover_color="#2e2c2c"; }
23
+ if(isset($facebook_feed_fetch["ffp_header_check"])){ $ffp_header_check=$facebook_feed_fetch["ffp_header_check"]; } else { $ffp_header_check="no"; } ?>
24
  <!---------------- facebook feed tab------------------------>
25
  <?php $feed_security_action_nonce = wp_create_nonce("feed_security_action"); ?>
26
  <div class="block ui-tabs-panel deactive" id="option-fbfeed">
147
  <div class="col-md-6" ><label> <?php _e('hover color', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
148
  <div class="col-md-6" >
149
  <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";}?>" />
150
+ <p class="description"><?php _e('Choose feed hove color.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
151
  </div>
152
  </div>
153
  <div class="col-md-12 no-pad">
168
  <div class="col-md-12 no-pad">
169
  <div class="col-md-6 "><label><?php _e('Show Header:', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
170
  <div class="col-md-6">
171
+ <input type="checkbox" <?php if($ffp_header_check=="yes"){ ?> checked="checked" <?php } ?> id="ffp_header_check" name="ffp_header_check" value="yes" >
172
+ <p class="description"><?php _e('Do you want to show cover image.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
173
  </div>
174
  </div>
175
  <div class="col-md-12 no-pad timeline_content" style="display:none">
183
  <option value="thumbnail" <?php selected($ffp_timeline_layout,'thumbnail' ); ?>> <?php _e('Thumbnail', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></option>
184
  </optgroup>
185
  </select>
186
+ <p class="description"><?php _e('Select time-line(Posts) layout.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?></p>
187
  </div>
188
  </div>
189
  <div class="col-md-12 no-pad">
190
  <div class="col-md-6"><label><?php _e('Light Box Styles', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></label></div>
191
  <div class="col-md-6">
192
+ <select name="ffp_light_Box" id="ffp_light_Box">
193
  <optgroup label="Select Light Box">
194
+ <option value="custom_box"><?php _e('Custom Box', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></option>
195
+ <option value="custom_box"><?php _e(' 8+Light-Box Layouts available in Pro', WEBLIZAR_FACEBOOK_TEXT_DOMAIN);?></option>
196
  </optgroup>
197
  </select>
198
+ <p class="description"><?php _e('Select lightbox Styles.', WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?>.</p>
199
  <input type="hidden" name="feed_security" id="feed_security" value="<?php echo $feed_security_action_nonce; ?>" />
200
  </div>
201
  </div>
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.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -214,7 +214,11 @@ Go to admin dashboard => appearance => widgets => Here are available our two fac
214
 
215
  == Changelog ==
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
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.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
214
 
215
  == Changelog ==
216
 
217
+ For more information, see [Weblizar](https://weblizar.com/) .
218
+
219
+ = 2.6.9 [ 31/03/2018 ] =
220
+ 1. Facebook page cover image hide and show option added
221
+ 2. Other Minor css issue fixed.
222
 
223
  = 2.6.8 [ 16/03/2018 ] =
224
  1. time line hover color option added