Version Description
- Direct access security update
- Verifying compatibility with WP 4.2.4 and WP 4.3
- Fixing bug where some options in the widget would revert to the default instead of false
Download this release
Release Info
Developer | cameronjonesweb |
Plugin | Responsive Facebook Page Plugin |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- css/index.html +0 -0
- facebook-page-feed-graph-api.php +16 -16
- index.html +0 -0
- js/index.html +0 -0
- readme.txt +10 -4
css/index.html
ADDED
File without changes
|
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 136 different languages
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Cameron Jones
|
8 |
* Author URI: http://cameronjones.x10.mx
|
9 |
* License: GPLv2
|
@@ -20,7 +20,7 @@
|
|
20 |
GNU General Public License for more details.
|
21 |
*/
|
22 |
|
23 |
-
defined( 'ABSPATH' ) or die(
|
24 |
|
25 |
//Hooks
|
26 |
add_shortcode( 'facebook-page-plugin', 'facebook_page_plugin' );
|
@@ -47,8 +47,8 @@ function facebook_page_plugin( $filter ) {
|
|
47 |
), $filter );
|
48 |
if(isset($a['href']) && !empty($a['href'])){
|
49 |
$a['language'] = str_replace("-", "_", $a['language']);
|
50 |
-
$return .= '<div id="fb-root" data-version="1.3.
|
51 |
-
$return .= '<div class="fb-page" data-version="1.3.
|
52 |
if(isset($a['width']) && !empty($a['width'])){
|
53 |
$return .= ' data-width="' . $a['width'] . '"';
|
54 |
}
|
@@ -153,34 +153,34 @@ class facebook_page_plugin_widget extends WP_Widget {
|
|
153 |
$height = NULL;
|
154 |
}
|
155 |
if(isset($instance['cover']) && !empty($instance['cover'])){
|
156 |
-
$cover =
|
157 |
} else {
|
158 |
-
$cover =
|
159 |
}
|
160 |
if(isset($instance['facepile']) && !empty($instance['facepile'])){
|
161 |
-
$facepile =
|
162 |
} else {
|
163 |
-
$facepile =
|
164 |
}
|
165 |
if(isset($instance['posts']) && !empty($instance['posts'])){
|
166 |
-
$posts =
|
167 |
} else {
|
168 |
-
$posts =
|
169 |
}
|
170 |
if(isset($instance['cta']) && !empty($instance['cta'])){
|
171 |
-
$cta =
|
172 |
} else {
|
173 |
-
$cta =
|
174 |
}
|
175 |
if(isset($instance['small']) && !empty($instance['small'])){
|
176 |
-
$small =
|
177 |
} else {
|
178 |
-
$small =
|
179 |
}
|
180 |
if(isset($instance['adapt']) && !empty($instance['adapt'])){
|
181 |
-
$adapt =
|
182 |
} else {
|
183 |
-
$adapt =
|
184 |
}
|
185 |
if(isset($instance['language']) && !empty($instance['language'])){
|
186 |
$language = $instance['language'];
|
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 136 different languages
|
6 |
+
* Version: 1.3.3
|
7 |
* Author: Cameron Jones
|
8 |
* Author URI: http://cameronjones.x10.mx
|
9 |
* License: GPLv2
|
20 |
GNU General Public License for more details.
|
21 |
*/
|
22 |
|
23 |
+
defined( 'ABSPATH' ) or die();
|
24 |
|
25 |
//Hooks
|
26 |
add_shortcode( 'facebook-page-plugin', 'facebook_page_plugin' );
|
47 |
), $filter );
|
48 |
if(isset($a['href']) && !empty($a['href'])){
|
49 |
$a['language'] = str_replace("-", "_", $a['language']);
|
50 |
+
$return .= '<div id="fb-root" data-version="1.3.3"></div><script async>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/' . $a['language'] . '/sdk.js#xfbml=1&version=v2.4";fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script>';
|
51 |
+
$return .= '<div class="fb-page" data-version="1.3.3" data-href="https://facebook.com/' . $a["href"] . '" ';
|
52 |
if(isset($a['width']) && !empty($a['width'])){
|
53 |
$return .= ' data-width="' . $a['width'] . '"';
|
54 |
}
|
153 |
$height = NULL;
|
154 |
}
|
155 |
if(isset($instance['cover']) && !empty($instance['cover'])){
|
156 |
+
$cover = 'true';
|
157 |
} else {
|
158 |
+
$cover = 'false';
|
159 |
}
|
160 |
if(isset($instance['facepile']) && !empty($instance['facepile'])){
|
161 |
+
$facepile = 'true';
|
162 |
} else {
|
163 |
+
$facepile = 'false';
|
164 |
}
|
165 |
if(isset($instance['posts']) && !empty($instance['posts'])){
|
166 |
+
$posts = 'true';
|
167 |
} else {
|
168 |
+
$posts = 'false';
|
169 |
}
|
170 |
if(isset($instance['cta']) && !empty($instance['cta'])){
|
171 |
+
$cta = 'true';
|
172 |
} else {
|
173 |
+
$cta = 'false';
|
174 |
}
|
175 |
if(isset($instance['small']) && !empty($instance['small'])){
|
176 |
+
$small = 'true';
|
177 |
} else {
|
178 |
+
$small = 'false';
|
179 |
}
|
180 |
if(isset($instance['adapt']) && !empty($instance['adapt'])){
|
181 |
+
$adapt = 'true';
|
182 |
} else {
|
183 |
+
$adapt = 'false';
|
184 |
}
|
185 |
if(isset($instance['language']) && !empty($instance['language'])){
|
186 |
$language = $instance['language'];
|
index.html
ADDED
File without changes
|
js/index.html
ADDED
File without changes
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=WLV5HPHSPM2BG&lc=AU&item_name=Cameron%20Jones%20Web%20Development�cy_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,10 @@ Shortcodes were introduced in WordPress 2.5, so theorectially it should work on
|
|
92 |
3. The new shortcode generator dashboard widget
|
93 |
|
94 |
== Changelog ==
|
|
|
|
|
|
|
|
|
95 |
= 1.3.2 =
|
96 |
* WP 4.2.3 Compatibility
|
97 |
* Upgrading to Graph API 2.4
|
@@ -124,14 +128,16 @@ Shortcodes were introduced in WordPress 2.5, so theorectially it should work on
|
|
124 |
* Initial release
|
125 |
|
126 |
== Upgrade Notice ==
|
|
|
|
|
127 |
= 1.3.0 =
|
128 |
This version adds new settings. Please update for the best possible experience.
|
129 |
= 1.2.3 =
|
130 |
-
This version fixes a bug where the admin dashboard and widgets pages would break if the WordPress installation is running on localhost and there is no internet connection. While not imperative to most sites it is
|
131 |
= 1.2.2 =
|
132 |
This version addresses a fix for the posts option not working in the widget. Please update immediately.
|
133 |
= 1.2.0 =
|
134 |
-
This version includes multilingual support, a custom widget and a shortcode generator on the admin dashboard. It is highly
|
135 |
= 1.1.1 =
|
136 |
Fixed height bug where height would only ever be the same value as width. Update immediately.
|
137 |
= 1.1.0 =
|
3 |
Tags: facebook,social,like,facepile,activity feed,recommendations,shortcode,widget,shortcode generator,plugin,admin,sidebar,facebook page,multilingual,like box,facebook like box
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=WLV5HPHSPM2BG&lc=AU&item_name=Cameron%20Jones%20Web%20Development�cy_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.3
|
7 |
+
Stable tag: 1.3.3
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
|
92 |
3. The new shortcode generator dashboard widget
|
93 |
|
94 |
== Changelog ==
|
95 |
+
= 1.3.3 =
|
96 |
+
* Direct access security update
|
97 |
+
* Verifying compatibility with WP 4.2.4 and WP 4.3
|
98 |
+
* Fixing bug where some options in the widget would revert to the default instead of false
|
99 |
= 1.3.2 =
|
100 |
* WP 4.2.3 Compatibility
|
101 |
* Upgrading to Graph API 2.4
|
128 |
* Initial release
|
129 |
|
130 |
== Upgrade Notice ==
|
131 |
+
= 1.3.3 =
|
132 |
+
This version includes increased security measures and fixes a bug where some widget options would not work properly. Please upgrade immediately.
|
133 |
= 1.3.0 =
|
134 |
This version adds new settings. Please update for the best possible experience.
|
135 |
= 1.2.3 =
|
136 |
+
This version fixes a bug where the admin dashboard and widgets pages would break if the WordPress installation is running on localhost and there is no internet connection. While not imperative to most sites it is recommended that you update if you work on a localhost or virtual machine
|
137 |
= 1.2.2 =
|
138 |
This version addresses a fix for the posts option not working in the widget. Please update immediately.
|
139 |
= 1.2.0 =
|
140 |
+
This version includes multilingual support, a custom widget and a shortcode generator on the admin dashboard. It is highly recommended that you update.
|
141 |
= 1.1.1 =
|
142 |
Fixed height bug where height would only ever be the same value as width. Update immediately.
|
143 |
= 1.1.0 =
|