Version Description
- Fixed bug where plugin would rerender during scroll on mobile devices
Download this release
Release Info
Developer | cameronjonesweb |
Plugin | Responsive Facebook Page Plugin |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- facebook-page-feed-graph-api.php +2 -2
- js/responsive.js +7 -3
- js/responsive.min.js +1 -1
- readme.txt +5 -2
facebook-page-feed-graph-api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Facebook Page Plugin
|
4 |
* Plugin URI: https://cameronjones.x10.mx/projects/facebook-page-plugin
|
5 |
* Description: It's time to upgrade from your old like box! Display the Facebook Page Plugin from the Graph API using a shortcode or widget. Now available in 95 different languages
|
6 |
-
* Version: 1.5.
|
7 |
* Author: Cameron Jones
|
8 |
* Author URI: http://cameronjones.x10.mx
|
9 |
* License: GPLv2
|
@@ -28,7 +28,7 @@ class cameronjonesweb_facebook_page_plugin {
|
|
28 |
|
29 |
define( 'CJW_FBPP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
30 |
define( 'CJW_FBPP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
31 |
-
define( 'CJW_FBPP_PLUGIN_VER', '1.5.
|
32 |
|
33 |
//Add all the hooks and actions
|
34 |
add_shortcode( 'facebook-page-plugin', array( $this, 'facebook_page_plugin' ) );
|
3 |
* Plugin Name: Facebook Page Plugin
|
4 |
* Plugin URI: https://cameronjones.x10.mx/projects/facebook-page-plugin
|
5 |
* Description: It's time to upgrade from your old like box! Display the Facebook Page Plugin from the Graph API using a shortcode or widget. Now available in 95 different languages
|
6 |
+
* Version: 1.5.2
|
7 |
* Author: Cameron Jones
|
8 |
* Author URI: http://cameronjones.x10.mx
|
9 |
* License: GPLv2
|
28 |
|
29 |
define( 'CJW_FBPP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
30 |
define( 'CJW_FBPP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
31 |
+
define( 'CJW_FBPP_PLUGIN_VER', '1.5.2' );
|
32 |
|
33 |
//Add all the hooks and actions
|
34 |
add_shortcode( 'facebook-page-plugin', array( $this, 'facebook_page_plugin' ) );
|
js/responsive.js
CHANGED
@@ -1,11 +1,15 @@
|
|
|
|
1 |
jQuery(window).resize(function() {
|
2 |
if(this.resizeTO) clearTimeout(this.resizeTO);
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
6 |
});
|
7 |
|
8 |
jQuery(window).bind('resizeEnd', function() {
|
|
|
9 |
rerenderFB();
|
10 |
});
|
11 |
|
1 |
+
var $width = jQuery(window).width();
|
2 |
jQuery(window).resize(function() {
|
3 |
if(this.resizeTO) clearTimeout(this.resizeTO);
|
4 |
+
if($width != jQuery(window).width()){
|
5 |
+
this.resizeTO = setTimeout(function() {
|
6 |
+
jQuery(this).trigger('resizeEnd');
|
7 |
+
}, 500);
|
8 |
+
}
|
9 |
});
|
10 |
|
11 |
jQuery(window).bind('resizeEnd', function() {
|
12 |
+
$width = jQuery(window).width();
|
13 |
rerenderFB();
|
14 |
});
|
15 |
|
js/responsive.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function rerenderFB(){jQuery(".cameronjonesweb_facebook_page_plugin").each(function(){var e=jQuery(this).children(".fb-page"),t=jQuery(this),i=e.data("href"),
|
1 |
+
function rerenderFB(){jQuery(".cameronjonesweb_facebook_page_plugin").each(function(){var e=jQuery(this).children(".fb-page"),t=jQuery(this),i=e.data("href"),r=t.width(),n=e.data("max-width"),d=jQuery(this).attr("id");1==jQuery(e).data("adapt-container-width")&&e.fadeOut("slow",function(){n>=r?e.attr("data-width",r):e.attr("data-width",n),e.load(i,function(){FB.XFBML.parse(document.getElementById(d),function(){e.fadeIn("slow")})})})})}var $width=jQuery(window).width();jQuery(window).resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),$width!=jQuery(window).width()&&(this.resizeTO=setTimeout(function(){jQuery(this).trigger("resizeEnd")},500))}),jQuery(window).bind("resizeEnd",function(){$width=jQuery(window).width(),rerenderFB()});
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Facebook Page Plugin ===
|
2 |
Contributors: cameronjonesweb
|
3 |
Tags: facebook,social,like,facepile,activity feed,recommendations,shortcode,widget,shortcode generator,plugin,admin,sidebar,facebook page,multilingual,like box,facebook like box,facebook page plugin, facebook feed, facebook plugin
|
4 |
-
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=WLV5HPHSPM2BG&lc=AU&item_name=
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
|
@@ -106,6 +106,9 @@ Chances are your plugin isn't tall enough to display the facepile properly. The
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
109 |
= 1.5.1 =
|
110 |
* Fixed bug where plugin wouldn't rerender
|
111 |
* Fixed bug with languages XML file not loading on installs where the admin is not wp-admin
|
1 |
=== Facebook Page Plugin ===
|
2 |
Contributors: cameronjonesweb
|
3 |
Tags: facebook,social,like,facepile,activity feed,recommendations,shortcode,widget,shortcode generator,plugin,admin,sidebar,facebook page,multilingual,like box,facebook like box,facebook page plugin, facebook feed, facebook plugin
|
4 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=WLV5HPHSPM2BG&lc=AU&item_name=cameronjonesweb%20-%20Facebook%20Page%20Plugin&�cy_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.5.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 1.5.2 =
|
110 |
+
* Fixed bug where plugin would rerender during scroll on mobile devices
|
111 |
+
|
112 |
= 1.5.1 =
|
113 |
* Fixed bug where plugin wouldn't rerender
|
114 |
* Fixed bug with languages XML file not loading on installs where the admin is not wp-admin
|