Feed & LikeBox For Facebook - Version 2.9.3

Version Description

[11-03-2020] * Minor bug fixed.

Download this release

Release Info

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

Code changes from version 2.9.2 to 2.9.3

facebook-by-weblizar.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Social LikeBox & Feed
4
- * Version: 2.9.2
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds and like-box contents.
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com
1
  <?php
2
  /**
3
  * Plugin Name: Social LikeBox & Feed
4
+ * Version: 2.9.3
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds and like-box contents.
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com
function/facebook-by-weblizar-short-code.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php if ( ! defined( 'ABSPATH' ) ) exit;
2
  /**
3
  * Shorcode For Facebook By Weblizar
4
- */
5
  add_shortcode("FBW", "FacebookLikeBox");
6
  function FacebookLikeBox() {
7
  ob_start();
@@ -47,8 +47,8 @@ function FacebookLikeBox() {
47
  $FbAppId = '529331510739033';
48
  if ( isset( $FacebookSettings[ 'FbAppId' ] ) ) {
49
  $FbAppId = $FacebookSettings[ 'FbAppId' ];
50
- }
51
-
52
  $weblizar_locale_fb = "en_GB";
53
  if ( isset( $FacebookSettings[ 'weblizar_locale_fb' ] ) ) {
54
  $weblizar_locale_fb = $FacebookSettings[ 'weblizar_locale_fb' ];
@@ -64,9 +64,7 @@ function FacebookLikeBox() {
64
  fjs.parentNode.insertBefore(js, fjs);
65
  }(document, 'script', 'facebook-jssdk'));
66
  </script>
67
- <div class="fb-like-box" data-height="<?php echo esc_attr( $Height ); ?>" data-href="<?php echo esc_url( $FacebookPageUrl ); ?>" data-show-border="<?php echo esc_attr( $ShowBorder ); ?>" data-show-faces="<?php echo esc_attr( $ShowFaces ); ?>" data-stream="<?php echo esc_attr( $Stream ); ?>" data-width="<?php echo esc_attr( $Width ); ?>" data-force-wall="<?php echo esc_attr( $ForceWall ); ?>">
68
- </div>
69
- <div style="display:none;"><?php esc_html_e( 'Social LikeBox & Feed plugin Powered By Weblizar', WEBLIZAR_FACEBOOK_TEXT_DOMAIN ); ?>
70
  </div>
71
  <?php
72
  return ob_get_clean();
1
  <?php if ( ! defined( 'ABSPATH' ) ) exit;
2
  /**
3
  * Shorcode For Facebook By Weblizar
4
+ */
5
  add_shortcode("FBW", "FacebookLikeBox");
6
  function FacebookLikeBox() {
7
  ob_start();
47
  $FbAppId = '529331510739033';
48
  if ( isset( $FacebookSettings[ 'FbAppId' ] ) ) {
49
  $FbAppId = $FacebookSettings[ 'FbAppId' ];
50
+ }
51
+
52
  $weblizar_locale_fb = "en_GB";
53
  if ( isset( $FacebookSettings[ 'weblizar_locale_fb' ] ) ) {
54
  $weblizar_locale_fb = $FacebookSettings[ 'weblizar_locale_fb' ];
64
  fjs.parentNode.insertBefore(js, fjs);
65
  }(document, 'script', 'facebook-jssdk'));
66
  </script>
67
+ <div class="fb-like-box" data-height="<?php echo esc_attr( $Height ); ?>" data-href="<?php echo esc_url( $FacebookPageUrl ); ?>" data-show-border="<?php echo esc_attr( $ShowBorder ); ?>" data-show-faces="<?php echo esc_attr( $ShowFaces ); ?>" data-stream="<?php echo esc_attr( $Stream ); ?>" data-width="<?php echo esc_attr( $Width ); ?>" data-force-wall="<?php echo esc_attr( $ForceWall ); ?>">
 
 
68
  </div>
69
  <?php
70
  return ob_get_clean();
function/facebook-by-weblizar-widgets.php CHANGED
@@ -34,12 +34,12 @@ class WeblizarFacebook extends WP_Widget {
34
  // Outputs the content of the widget
35
  extract($args); // Make before_widget, etc available.
36
  $title = apply_filters('title', $instance['title']);
37
-
38
  $allowed_html = wp_kses_allowed_html( 'post' );
39
 
40
  echo wp_kses( $before_widget, $allowed_html );
41
- if (!empty($title)) { echo wp_kses( $before_title . $title . $after_title, $allowed_html ); }
42
-
43
  $FbAppId = apply_filters( 'facebook_app_id', $instance['FbAppId'] );
44
  //$ColorScheme = apply_filters( 'facebook_color_scheme', $instance['ColorScheme'] );
45
  $ForceWall = apply_filters( 'facebook_force_wall', $instance['ForceWall'] );
@@ -79,7 +79,7 @@ class WeblizarFacebook extends WP_Widget {
79
  fjs.parentNode.insertBefore(js, fjs);
80
  }(document, 'script', 'facebook-jssdk'));</script>
81
  <div class="fb-like-box" style="background-color: auto;" data-small-header="<?php echo esc_attr( $Header ); ?>" data-height="<?php echo esc_attr( $Height ); ?>" data-href="<?php echo esc_url( $FacebookPageURL ); ?>" data-show-border="<?php echo esc_attr( $ShowBorder ); ?>" data-show-faces="<?php echo esc_attr( $ShowFaces ); ?>" data-stream="<?php echo esc_attr( $Stream ); ?>" data-width="<?php echo esc_attr( $Width ); ?>" data-force-wall="<?php echo esc_attr( $ForceWall ); ?>"></div>
82
- <div style="display:none;"><?php esc_html_e( 'Facebook By Weblizar Powered By Weblizar', WEBLIZAR_FACEBOOK_TEXT_DOMAIN ); ?></div>
83
  </div>
84
  <?php
85
  echo wp_kses( $after_widget, $allowed_html );
@@ -144,22 +144,22 @@ class WeblizarFacebook extends WP_Widget {
144
  if ( isset( $instance[ 'FbAppId' ] ) ) {
145
  $FbAppId = $instance[ 'FbAppId' ];
146
  }
147
-
148
  if ( isset( $instance[ 'title' ] ) ) {
149
  $title = $instance[ 'title' ];
150
  }
151
-
152
  $weblizar_lang_fb = 'en_GB';
153
  if ( isset( $instance[ 'weblizar_lang_fb' ] ) ) {
154
  $weblizar_lang_fb = $instance[ 'weblizar_lang_fb' ];
155
  }
156
-
157
  else {
158
  $title = esc_html__( 'LikeBox', 'WEBLIZAR_FACEBOOK_TEXT_DOMAIN' );
159
  }
160
  ?>
161
  <p>
162
- <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:' ); ?></label>
163
  <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
164
  </p>
165
  <p>
@@ -193,7 +193,7 @@ class WeblizarFacebook extends WP_Widget {
193
  <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'FbAppId' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'FbAppId' ) ); ?>" type="text" value="<?php echo esc_attr( $FbAppId ); ?>">
194
  <?php esc_html_e("Get Your Facebook App. Id",WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?>: <a href="http://weblizar.com/get-facebook-app-id/" target="_blank"><?php esc_html_e( 'HERE', WEBLIZAR_FACEBOOK_TEXT_DOMAIN ); ?></a>
195
  </p>
196
-
197
  <p>
198
  <!--weblizar_locale_fb-->
199
  <label for="<?php echo esc_attr( $this->get_field_id( 'weblizar_lang_fb' ) ); ?>"><?php esc_html_e( 'Like Button Language', WEBLIZAR_FACEBOOK_TEXT_DOMAIN ); ?></label>
@@ -278,10 +278,10 @@ class WeblizarFacebook extends WP_Widget {
278
  <option value="zh_TW" <?php if($weblizar_lang_fb == "zh_TW") echo 'selected="selected"' ?> ><?php esc_html_e('Traditional Chinese (Taiwan)', 'WEBLIZAR_FACEBOOK_TEXT_DOMAIN'); ?></option>
279
  </select>
280
  </p>
281
-
282
  <p>
283
  <a style="display:block;" target="_new" href="https://wordpress.org/plugins/facebook-by-weblizar/"><img src="<?php echo WEBLIZAR_FACEBOOK_PLUGIN_URL.'images/star.png' ;?>" /> </a>
284
- <a href="https://wordpress.org/plugins/facebook-by-weblizar/" target="_new"> <?php esc_html_e("Rate Us on ",WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?> Wordpress.org</a>
285
  </p>
286
  <?php
287
  }
@@ -312,4 +312,4 @@ class WeblizarFacebook extends WP_Widget {
312
  return $instance;
313
  }
314
  } // class WeblizarFacebook
315
- ?>
34
  // Outputs the content of the widget
35
  extract($args); // Make before_widget, etc available.
36
  $title = apply_filters('title', $instance['title']);
37
+
38
  $allowed_html = wp_kses_allowed_html( 'post' );
39
 
40
  echo wp_kses( $before_widget, $allowed_html );
41
+ if (!empty($title)) { echo wp_kses( $before_title . $title . $after_title, $allowed_html ); }
42
+
43
  $FbAppId = apply_filters( 'facebook_app_id', $instance['FbAppId'] );
44
  //$ColorScheme = apply_filters( 'facebook_color_scheme', $instance['ColorScheme'] );
45
  $ForceWall = apply_filters( 'facebook_force_wall', $instance['ForceWall'] );
79
  fjs.parentNode.insertBefore(js, fjs);
80
  }(document, 'script', 'facebook-jssdk'));</script>
81
  <div class="fb-like-box" style="background-color: auto;" data-small-header="<?php echo esc_attr( $Header ); ?>" data-height="<?php echo esc_attr( $Height ); ?>" data-href="<?php echo esc_url( $FacebookPageURL ); ?>" data-show-border="<?php echo esc_attr( $ShowBorder ); ?>" data-show-faces="<?php echo esc_attr( $ShowFaces ); ?>" data-stream="<?php echo esc_attr( $Stream ); ?>" data-width="<?php echo esc_attr( $Width ); ?>" data-force-wall="<?php echo esc_attr( $ForceWall ); ?>"></div>
82
+
83
  </div>
84
  <?php
85
  echo wp_kses( $after_widget, $allowed_html );
144
  if ( isset( $instance[ 'FbAppId' ] ) ) {
145
  $FbAppId = $instance[ 'FbAppId' ];
146
  }
147
+
148
  if ( isset( $instance[ 'title' ] ) ) {
149
  $title = $instance[ 'title' ];
150
  }
151
+
152
  $weblizar_lang_fb = 'en_GB';
153
  if ( isset( $instance[ 'weblizar_lang_fb' ] ) ) {
154
  $weblizar_lang_fb = $instance[ 'weblizar_lang_fb' ];
155
  }
156
+
157
  else {
158
  $title = esc_html__( 'LikeBox', 'WEBLIZAR_FACEBOOK_TEXT_DOMAIN' );
159
  }
160
  ?>
161
  <p>
162
+ <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:' ); ?></label>
163
  <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
164
  </p>
165
  <p>
193
  <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'FbAppId' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'FbAppId' ) ); ?>" type="text" value="<?php echo esc_attr( $FbAppId ); ?>">
194
  <?php esc_html_e("Get Your Facebook App. Id",WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?>: <a href="http://weblizar.com/get-facebook-app-id/" target="_blank"><?php esc_html_e( 'HERE', WEBLIZAR_FACEBOOK_TEXT_DOMAIN ); ?></a>
195
  </p>
196
+
197
  <p>
198
  <!--weblizar_locale_fb-->
199
  <label for="<?php echo esc_attr( $this->get_field_id( 'weblizar_lang_fb' ) ); ?>"><?php esc_html_e( 'Like Button Language', WEBLIZAR_FACEBOOK_TEXT_DOMAIN ); ?></label>
278
  <option value="zh_TW" <?php if($weblizar_lang_fb == "zh_TW") echo 'selected="selected"' ?> ><?php esc_html_e('Traditional Chinese (Taiwan)', 'WEBLIZAR_FACEBOOK_TEXT_DOMAIN'); ?></option>
279
  </select>
280
  </p>
281
+
282
  <p>
283
  <a style="display:block;" target="_new" href="https://wordpress.org/plugins/facebook-by-weblizar/"><img src="<?php echo WEBLIZAR_FACEBOOK_PLUGIN_URL.'images/star.png' ;?>" /> </a>
284
+ <a href="https://wordpress.org/plugins/facebook-by-weblizar/" target="_new"> <?php esc_html_e("Rate Us on ",WEBLIZAR_FACEBOOK_TEXT_DOMAIN); ?> Wordpress.org</a>
285
  </p>
286
  <?php
287
  }
312
  return $instance;
313
  }
314
  } // class WeblizarFacebook
315
+ ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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: 5.4
7
- Stable tag: 2.9.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -216,6 +216,9 @@ For more information, see [Weblizar](https://weblizar.com/) .
216
 
217
  == Changelog ==
218
 
 
 
 
219
  = 2.9.2 = [09-03-2020]
220
  * Removed unnecessary hidden text from the shortcode content.
221
 
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: 5.4
7
+ Stable tag: 2.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
216
 
217
  == Changelog ==
218
 
219
+ = 2.9.3 = [11-03-2020]
220
+ * Minor bug fixed.
221
+
222
  = 2.9.2 = [09-03-2020]
223
  * Removed unnecessary hidden text from the shortcode content.
224