Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp - Version 4.2.3

Version Description

Fixed some undefined and strict standard notices

Download this release

Release Info

Developer sjaved
Plugin Icon 128x128 Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp
Version 4.2.3
Comparing to
See all releases

Code changes from version 4.2.2 to 4.2.3

README.txt CHANGED
@@ -4,7 +4,7 @@ Tags: easy custom facebook feed, facebook feed, facebook page plugin, page plugi
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.3
6
  Tested up to: 4.4.2
7
- Stable tag: 4.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,7 +14,7 @@ Easy facebook like box WordPress plugin allows to display custom facebook feed,
14
 
15
  Displays a Facebook Like Box. The Facebook Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. Easy facebook like box display fan page posts, like button, and connections on your website using widget, shortcode or in Auto PopUp.
16
 
17
- [Custom facebook feed demo](https://jwebsol.com/custom-facebook-feed-demo/ "See this plugin in action (Custom facebook feed demo)") | [Fixed width demo](https://jwebsol.com/easy-facebook-like-box-plugin-demo/ "See this plugin in action (Fixed width)") | [Responsive demo](https://jwebsol.com/easy-facebook-like-box-responsive-demo/ "See this plugin in action (Responsive)") |
18
  [Auto PopUp demo](https://jwebsol.com/easy-facebook-like-box-auto-popup-demo/ "See this plugin in action (Auto PopUp)")
19
 
20
  ### Features:
@@ -82,9 +82,12 @@ You can use easy facebook like box in number of ways:
82
  2. Activate the plugin through the "Plugins" menu in WordPress.
83
  3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
84
 
85
- == Upgrade Notice ==
 
 
 
86
  = 4.2.2 =
87
- Update if you see any issue with security plugin
88
 
89
  = 4.2.1 =
90
  Important, must update. Fixed lots of issues specially the feed not updating after the scheduled time.
@@ -128,18 +131,24 @@ To submit your feedback, suggestions and features request follow the below link.
128
  http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
129
 
130
  == Screenshots ==
131
- 1. Facebook like box in light color scheme.
132
- 2. Facebook like box in dark color scheme.
133
- 3. Facebook like box with posts and faces.
134
- 4. Facebook like box with posts only.
135
- 5. Facebook like box in page using shortcode with all options.
136
- 6. Facebook like box backend view with options description.
137
-
138
-
 
 
 
 
 
 
 
139
 
140
- == Changelog ==
141
  = 4.2.2 =
142
- * Delete a unnecessary file
143
 
144
  = 4.2.1 =
145
  * Fixed: Invalid Facebook fan page URL
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sjaved786%40gmail%2ecom&lc=US&item_name=Easy%20Facebook%20Like%20Box%20WordPress%20Plugin&item_number=efbl&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.3
6
  Tested up to: 4.4.2
7
+ Stable tag: 4.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
14
 
15
  Displays a Facebook Like Box. The Facebook Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. Easy facebook like box display fan page posts, like button, and connections on your website using widget, shortcode or in Auto PopUp.
16
 
17
+ [Custom facebook feed demo](https://jwebsol.com/custom-facebook-feed/ "See this plugin in action (Custom facebook feed demo)") | [Fixed width demo](https://jwebsol.com/easy-facebook-like-box-plugin-demo/ "See this plugin in action (Fixed width)") | [Responsive demo](https://jwebsol.com/easy-facebook-like-box-responsive-demo/ "See this plugin in action (Responsive)") |
18
  [Auto PopUp demo](https://jwebsol.com/easy-facebook-like-box-auto-popup-demo/ "See this plugin in action (Auto PopUp)")
19
 
20
  ### Features:
82
  2. Activate the plugin through the "Plugins" menu in WordPress.
83
  3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
84
 
85
+ == Upgrade Notice ==
86
+ = 4.2.3 =
87
+ Fixed some undefined and strict standard notices
88
+
89
  = 4.2.2 =
90
+ Update if you see any issue with security plugin
91
 
92
  = 4.2.1 =
93
  Important, must update. Fixed lots of issues specially the feed not updating after the scheduled time.
131
  http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
132
 
133
  == Screenshots ==
134
+ 1. Custom Facebook Feed with thumnail.
135
+ 2. Custom Facebook Feed in PopUp.
136
+ 3. Responsive Custom Facebook Feed.
137
+ 4. Facebook Like Box/ Page Plugin in Auto PopUp.
138
+ 5. Facebook Like Box/ Page Plugin in sidebar with post feed.
139
+ 6. Facebook Like Box/ Page Plugin widget settings.
140
+ 7. Custom Facebook Feed widget settings.
141
+ 8. Easy Facebook Like Box settings dashboard.
142
+ 9. Auto PopUp settings panel.
143
+ 10. Using shortcode of the plugin.
144
+ 11. Using the Feed and Like Box in PHP templates.
145
+
146
+ == Changelog ==
147
+ = 4.2.2 =
148
+ * Fixed some strict standard notices and undefined variables
149
 
 
150
  = 4.2.2 =
151
+ * Delete a unnecessary file
152
 
153
  = 4.2.1 =
154
  * Fixed: Invalid Facebook fan page URL
admin/easy-facebook-likebox-admin.php CHANGED
@@ -41,6 +41,15 @@ class Easy_Facebook_Likebox_Admin {
41
  */
42
  protected $plugin_screen_hook_suffix = null;
43
 
 
 
 
 
 
 
 
 
 
44
  /**
45
  * Initialize the plugin by loading admin scripts & styles and adding a
46
  * settings page and menu.
@@ -49,8 +58,9 @@ class Easy_Facebook_Likebox_Admin {
49
  */
50
  private function __construct() {
51
 
52
- $plugin = Easy_Facebook_Likebox::get_instance();
53
- $this->plugin_slug = $plugin->get_plugin_slug();
 
54
 
55
  // Load admin style sheet and JavaScript.
56
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
@@ -64,6 +74,7 @@ class Easy_Facebook_Likebox_Admin {
64
  add_filter( 'plugin_action_links_' . $plugin_basename, array( $this, 'add_action_links' ) );
65
 
66
  add_action( 'admin_init', array( $this, 'i_have_supported_efbl') );
 
67
 
68
  //if ( get_option('I_HAVE_SUPPORTED_THE_EFBL_PLUGIN') != 1 )
69
  add_action( 'admin_notices', array( $this, 'post_installtion_upgrade_nag') );
@@ -191,7 +202,7 @@ class Easy_Facebook_Likebox_Admin {
191
  add_meta_box('easy-facebook-feed', __('Settings', 'easy-facebook-likebox'), array(&$this, 'on_efbfeed_settings'), $this->plugin_screen_hook_suffix, 'easyfbfeed', 'core');
192
 
193
  add_meta_box('easy-facebook-likebox_popup', __('Like box pup up settings', 'easy-facebook-likebox'), array(&$this, 'on_popup_settings'), $this->plugin_screen_hook_suffix, 'additional', 'core');
194
- add_meta_box('efbl-support_us_box', __( 'Support us by liking our fan page and/or consider some dontaion!' , 'easy-facebook-likebox'), array(&$this, 'on_support_us'), $this->pagehook, 'side', 'core');
195
 
196
 
197
  }
@@ -514,11 +525,9 @@ class Easy_Facebook_Likebox_Admin {
514
 
515
  $options = get_option( 'efbl_settings_display_options' );
516
  $options = wp_parse_args($options, $this->efbl_default_options());
517
- /*echo "<pre>";
518
- print_r($options);
519
- echo "</pre>"; */
520
 
521
- $html = '<textarea id="efbl_popup_shortcode" name="efbl_settings_display_options[efbl_popup_shortcode]" rows="5" cols="50" placeholder="'.$description[0].'">' . $options['efbl_popup_shortcode'] . '</textarea>';
 
522
 
523
  $html .= '<br /> '.$args[0].'&nbsp;';
524
 
@@ -529,9 +538,9 @@ class Easy_Facebook_Likebox_Admin {
529
  //Enable when uers logged pupup
530
  function efbl_display_on_home_only($args){
531
 
532
- $options = get_option( 'efbl_settings_display_options' );
533
 
534
- $html = '<input type="checkbox" id="efbl_enabe_home_only" name="efbl_settings_display_options[efbl_enabe_if_home]" value="1"' . checked( 1, $options['efbl_enabe_if_home'], false ) . '/>';
535
  $html .= '&nbsp;&nbsp;';
536
  $html .= '<i>'.$args[0].'</i>';
537
  $html .= '&nbsp;';
@@ -542,9 +551,9 @@ class Easy_Facebook_Likebox_Admin {
542
  //Enable when uers logged pupup
543
  function efbl_display_enable_user_loggin($args){
544
 
545
- $options = get_option( 'efbl_settings_display_options' );
546
 
547
- $html = '<input type="checkbox" id="efbl_enabe_if_login" name="efbl_settings_display_options[efbl_enabe_if_login]" value="1"' . checked( 1, $options['efbl_enabe_if_login'], false ) . '/>';
548
  $html .= '&nbsp;&nbsp;';
549
  $html .= '<i>'.$args[0].'</i>';
550
  $html .= '&nbsp;';
@@ -555,9 +564,9 @@ class Easy_Facebook_Likebox_Admin {
555
  //Enable when uers not logged in
556
  function efbl_display_enable_user_not_loggin($args){
557
 
558
- $options = get_option( 'efbl_settings_display_options' );
559
 
560
- $html = '<input type="checkbox" id="efbl_enabe_if_not_login" name="efbl_settings_display_options[efbl_enabe_if_not_login]" value="1"' . checked( 1, $options['efbl_enabe_if_not_login'], false ) . '/>';
561
 
562
  $html .= '&nbsp;&nbsp;';
563
 
@@ -572,9 +581,9 @@ class Easy_Facebook_Likebox_Admin {
572
  //Enable when uers not logged in
573
  function efbl_do_not_show_again($args){
574
 
575
- $options = get_option( 'efbl_settings_display_options' );
576
 
577
- $html = '<input type="checkbox" id="efbl_do_not_show_again" name="efbl_settings_display_options[efbl_do_not_show_again]" value="1"' . checked( 1, $options['efbl_do_not_show_again'], false ) . '/>';
578
 
579
  $html .= '&nbsp;&nbsp;';
580
  $html .= '<i>'.$args[0].'</i>';
@@ -586,9 +595,9 @@ class Easy_Facebook_Likebox_Admin {
586
  //Hide on mobile
587
  function efbl_do_not_show_on_mobile($args){
588
 
589
- $options = get_option( 'efbl_settings_display_options' );
590
 
591
- $html = '<input type="checkbox" id="efbl_do_not_show_again" name="efbl_settings_display_options[efbl_do_not_show_on_mobile]" value="1"' . checked( 1, $options['efbl_do_not_show_on_mobile'], false ) . '/>';
592
 
593
  $html .= '&nbsp;&nbsp;';
594
 
@@ -599,4 +608,12 @@ class Easy_Facebook_Likebox_Admin {
599
  echo $html;
600
 
601
  }
 
 
 
 
 
 
 
 
602
  }
41
  */
42
  protected $plugin_screen_hook_suffix = null;
43
 
44
+ /**
45
+ * Get plugin options
46
+ *
47
+ * @since 1.0.0
48
+ *
49
+ * @var string
50
+ */
51
+ protected $options = null;
52
+
53
  /**
54
  * Initialize the plugin by loading admin scripts & styles and adding a
55
  * settings page and menu.
58
  */
59
  private function __construct() {
60
 
61
+ global $efbl;
62
+
63
+ $this->plugin_slug = $efbl->get_plugin_slug();
64
 
65
  // Load admin style sheet and JavaScript.
66
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
74
  add_filter( 'plugin_action_links_' . $plugin_basename, array( $this, 'add_action_links' ) );
75
 
76
  add_action( 'admin_init', array( $this, 'i_have_supported_efbl') );
77
+ add_action( 'admin_init', array( $this, 'efbl_get_options') );
78
 
79
  //if ( get_option('I_HAVE_SUPPORTED_THE_EFBL_PLUGIN') != 1 )
80
  add_action( 'admin_notices', array( $this, 'post_installtion_upgrade_nag') );
202
  add_meta_box('easy-facebook-feed', __('Settings', 'easy-facebook-likebox'), array(&$this, 'on_efbfeed_settings'), $this->plugin_screen_hook_suffix, 'easyfbfeed', 'core');
203
 
204
  add_meta_box('easy-facebook-likebox_popup', __('Like box pup up settings', 'easy-facebook-likebox'), array(&$this, 'on_popup_settings'), $this->plugin_screen_hook_suffix, 'additional', 'core');
205
+ add_meta_box('efbl-support_us_box', __( 'Support us by liking our fan page and/or consider some dontaion!' , 'easy-facebook-likebox'), array(&$this, 'on_support_us'), $this->plugin_screen_hook_suffix, 'side', 'core');
206
 
207
 
208
  }
525
 
526
  $options = get_option( 'efbl_settings_display_options' );
527
  $options = wp_parse_args($options, $this->efbl_default_options());
 
 
 
528
 
529
+
530
+ $html = '<textarea id="efbl_popup_shortcode" name="efbl_settings_display_options[efbl_popup_shortcode]" rows="5" cols="50" placeholder="">' . $options['efbl_popup_shortcode'] . '</textarea>';
531
 
532
  $html .= '<br /> '.$args[0].'&nbsp;';
533
 
538
  //Enable when uers logged pupup
539
  function efbl_display_on_home_only($args){
540
 
541
+ $check_value = isset( $this->options['efbl_enabe_if_home'] ) ? $this->options['efbl_enabe_if_home'] : 0 ;
542
 
543
+ $html = '<input type="checkbox" id="efbl_enabe_home_only" name="efbl_settings_display_options[efbl_enabe_if_home]" value="1"' . checked( 1, $check_value, false ) . '/>';
544
  $html .= '&nbsp;&nbsp;';
545
  $html .= '<i>'.$args[0].'</i>';
546
  $html .= '&nbsp;';
551
  //Enable when uers logged pupup
552
  function efbl_display_enable_user_loggin($args){
553
 
554
+ $check_value = isset( $this->options['efbl_enabe_if_login'] ) ? $this->options['efbl_enabe_if_login'] : 0 ;
555
 
556
+ $html = '<input type="checkbox" id="efbl_enabe_if_login" name="efbl_settings_display_options[efbl_enabe_if_login]" value="1"' . checked( 1, $check_value , false ) . '/>';
557
  $html .= '&nbsp;&nbsp;';
558
  $html .= '<i>'.$args[0].'</i>';
559
  $html .= '&nbsp;';
564
  //Enable when uers not logged in
565
  function efbl_display_enable_user_not_loggin($args){
566
 
567
+ $check_value = isset( $this->options['efbl_enabe_if_not_login'] ) ? $this->options['efbl_enabe_if_not_login'] : 0 ;
568
 
569
+ $html = '<input type="checkbox" id="efbl_enabe_if_not_login" name="efbl_settings_display_options[efbl_enabe_if_not_login]" value="1"' . checked( 1, $check_value, false ) . '/>';
570
 
571
  $html .= '&nbsp;&nbsp;';
572
 
581
  //Enable when uers not logged in
582
  function efbl_do_not_show_again($args){
583
 
584
+ $check_value = isset( $this->options['efbl_do_not_show_again'] ) ? $this->options['efbl_do_not_show_again'] : 0 ;
585
 
586
+ $html = '<input type="checkbox" id="efbl_do_not_show_again" name="efbl_settings_display_options[efbl_do_not_show_again]" value="1"' . checked( 1, $check_value, false ) . '/>';
587
 
588
  $html .= '&nbsp;&nbsp;';
589
  $html .= '<i>'.$args[0].'</i>';
595
  //Hide on mobile
596
  function efbl_do_not_show_on_mobile($args){
597
 
598
+ $check_value = isset( $this->options['efbl_do_not_show_on_mobile'] ) ? $this->options['efbl_do_not_show_on_mobile'] : 0 ;
599
 
600
+ $html = '<input type="checkbox" id="efbl_do_not_show_again" name="efbl_settings_display_options[efbl_do_not_show_on_mobile]" value="1"' . checked( 1, $check_value , false ) . '/>';
601
 
602
  $html .= '&nbsp;&nbsp;';
603
 
608
  echo $html;
609
 
610
  }
611
+
612
+ //Hide on mobile
613
+ function efbl_get_options(){
614
+
615
+ $this->options = get_option( 'efbl_settings_display_options' );
616
+
617
+
618
+ }
619
  }
admin/views/admin.php CHANGED
@@ -11,6 +11,8 @@
11
  * @link http://example.com
12
  * @copyright 2014 Your Name or Company Name
13
  */
 
 
14
  ?>
15
  <div class="wrap efbl" id="dashboard-widgets">
16
  <h2 class="nav-tab-wrapper">
@@ -30,7 +32,7 @@
30
 
31
  <div id="normal-sortables" class="meta-box-sortables ui-sortable">
32
 
33
- <?php do_meta_boxes($this->plugin_screen_hook_suffix, 'normal', $data); ?>
34
 
35
 
36
  </div>
11
  * @link http://example.com
12
  * @copyright 2014 Your Name or Company Name
13
  */
14
+ //we don't have data at the moment.
15
+ $data = '';
16
  ?>
17
  <div class="wrap efbl" id="dashboard-widgets">
18
  <h2 class="nav-tab-wrapper">
32
 
33
  <div id="normal-sortables" class="meta-box-sortables ui-sortable">
34
 
35
+ <?php do_meta_boxes($this->plugin_screen_hook_suffix, 'normal', $data ); ?>
36
 
37
 
38
  </div>
easy-facebook-likebox.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Facebook Likebox
4
  * Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
5
  * Description: Easy Facebook like box WordPress plugin allows you to easly display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
6
- * Version: 4.2.2
7
  * Author: Sajid Javed
8
  * Author URI: http://jwebsol.com
9
  * Text Domain: easy-facebook-likebox
3
  * Plugin Name: Easy Facebook Likebox
4
  * Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
5
  * Description: Easy Facebook like box WordPress plugin allows you to easly display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
6
+ * Version: 4.2.3
7
  * Author: Sajid Javed
8
  * Author URI: http://jwebsol.com
9
  * Text Domain: easy-facebook-likebox
includes/easy-custom-facebook-feed-widget.php CHANGED
@@ -22,13 +22,14 @@ class Easy_Custom_Facebook_Feed_Widget extends WP_Widget {
22
  * @param array $instance Saved values from database.
23
  */
24
  public function widget( $args, $instance ) {
 
25
  $title = apply_filters( 'widget_title', $instance['title'] );
26
 
27
  echo $args['before_widget'];
28
  if ( ! empty( $title ) )
29
  echo $args['before_title'] . $title . $args['after_title'];
30
 
31
- echo Easy_Facebook_Likebox::render_fbfeed_box($instance);
32
 
33
  echo $args['after_widget'];
34
  }
22
  * @param array $instance Saved values from database.
23
  */
24
  public function widget( $args, $instance ) {
25
+ global $efbl;
26
  $title = apply_filters( 'widget_title', $instance['title'] );
27
 
28
  echo $args['before_widget'];
29
  if ( ! empty( $title ) )
30
  echo $args['before_title'] . $title . $args['after_title'];
31
 
32
+ echo $efbl->render_fbfeed_box($instance);
33
 
34
  echo $args['after_widget'];
35
  }
includes/easy-facebook-page-plugin-widget.php CHANGED
@@ -22,13 +22,14 @@ class Easy_Facebook_Page_Plugin_Widget extends WP_Widget {
22
  * @param array $instance Saved values from database.
23
  */
24
  public function widget( $args, $instance ) {
 
25
  $title = apply_filters( 'widget_title', $instance['title'] );
26
 
27
  echo $args['before_widget'];
28
  if ( ! empty( $title ) )
29
  echo $args['before_title'] . $title . $args['after_title'];
30
 
31
- echo Easy_Facebook_Likebox::render_fb_page_plugin($instance);
32
 
33
  echo $args['after_widget'];
34
  }
22
  * @param array $instance Saved values from database.
23
  */
24
  public function widget( $args, $instance ) {
25
+ global $efbl;
26
  $title = apply_filters( 'widget_title', $instance['title'] );
27
 
28
  echo $args['before_widget'];
29
  if ( ! empty( $title ) )
30
  echo $args['before_title'] . $title . $args['after_title'];
31
 
32
+ echo $efbl->render_fb_page_plugin($instance);
33
 
34
  echo $args['after_widget'];
35
  }
public/easy-facebook-likebox.php CHANGED
@@ -67,7 +67,7 @@ class Easy_Facebook_Likebox {
67
  *
68
  * @since 1.1.0
69
  */
70
- private function __construct() {
71
 
72
  // Load plugin text domain
73
  add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
@@ -430,3 +430,4 @@ class Easy_Facebook_Likebox {
430
 
431
 
432
  }
 
67
  *
68
  * @since 1.1.0
69
  */
70
+ public function __construct() {
71
 
72
  // Load plugin text domain
73
  add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
430
 
431
 
432
  }
433
+ $efbl = new Easy_Facebook_Likebox();
public/views/public.php CHANGED
@@ -48,7 +48,7 @@ jQuery(document).ready(function($) {
48
  type: 'inline',
49
  preloader: false,
50
 
51
- <?php if($options['efbl_do_not_show_again'] == 1){?>
52
  callbacks: {
53
  close: function() {
54
  $.cookie('dont_show', '1' ,{ expires: 7, path: '/' } );
48
  type: 'inline',
49
  preloader: false,
50
 
51
+ <?php if(isset($options['efbl_do_not_show_again']) and $options['efbl_do_not_show_again'] == 1){?>
52
  callbacks: {
53
  close: function() {
54
  $.cookie('dont_show', '1' ,{ expires: 7, path: '/' } );