Version Description
- Fixed height bug
Download this release
Release Info
Developer | cameronjonesweb |
Plugin | Responsive Facebook Page Plugin |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- facebook-page-feed-graph-api.php +9 -7
- readme.txt +11 -7
facebook-page-feed-graph-api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Facebook Page Feed (Graph API)
|
4 |
* Plugin URI: https://cameronjones.x10.mx/projects/facebook-page-plugin
|
5 |
* Description: Display the Facebook Page Plugin from the Graph API.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Cameron Jones
|
8 |
* Author URI: http://cameronjones.x10.mx
|
9 |
* License: GPLv2
|
@@ -22,12 +22,16 @@
|
|
22 |
|
23 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
24 |
|
|
|
|
|
|
|
|
|
25 |
function facebook_page_plugin($filter) {
|
26 |
$return = NULL;
|
27 |
$a = shortcode_atts( array(
|
28 |
'href' => NULL,
|
29 |
-
'width' =>
|
30 |
-
'height' =>
|
31 |
'cover' => NULL,
|
32 |
'facepile' => NULL,
|
33 |
'posts' => NULL
|
@@ -39,7 +43,7 @@ function facebook_page_plugin($filter) {
|
|
39 |
$return .= ' data-width="' . $a['width'] . '"';
|
40 |
}
|
41 |
if(isset($a['height']) && !empty($a['height'])){
|
42 |
-
$return .= ' data-
|
43 |
}
|
44 |
if(isset($a['cover']) && !empty($a['cover'])){
|
45 |
switch($a['cover']){
|
@@ -61,6 +65,4 @@ function facebook_page_plugin($filter) {
|
|
61 |
$return .= '></div>';
|
62 |
}
|
63 |
return $return;
|
64 |
-
}
|
65 |
-
add_shortcode( 'facebook-page-plugin', 'facebook_page_plugin' );
|
66 |
-
add_filter( 'widget_text', 'do_shortcode' );
|
3 |
* Plugin Name: Facebook Page Feed (Graph API)
|
4 |
* Plugin URI: https://cameronjones.x10.mx/projects/facebook-page-plugin
|
5 |
* Description: Display the Facebook Page Plugin from the Graph API.
|
6 |
+
* Version: 1.1.1
|
7 |
* Author: Cameron Jones
|
8 |
* Author URI: http://cameronjones.x10.mx
|
9 |
* License: GPLv2
|
22 |
|
23 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
24 |
|
25 |
+
//Hooks
|
26 |
+
add_shortcode( 'facebook-page-plugin', 'facebook_page_plugin' );
|
27 |
+
add_filter( 'widget_text', 'do_shortcode' );
|
28 |
+
|
29 |
function facebook_page_plugin($filter) {
|
30 |
$return = NULL;
|
31 |
$a = shortcode_atts( array(
|
32 |
'href' => NULL,
|
33 |
+
'width' => 280,
|
34 |
+
'height' => 130,
|
35 |
'cover' => NULL,
|
36 |
'facepile' => NULL,
|
37 |
'posts' => NULL
|
43 |
$return .= ' data-width="' . $a['width'] . '"';
|
44 |
}
|
45 |
if(isset($a['height']) && !empty($a['height'])){
|
46 |
+
$return .= ' data-height="' . $a['height'] . '"';
|
47 |
}
|
48 |
if(isset($a['cover']) && !empty($a['cover'])){
|
49 |
switch($a['cover']){
|
65 |
$return .= '></div>';
|
66 |
}
|
67 |
return $return;
|
68 |
+
}
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: facebook,social,like,facepile,activity feed,recommendations,shortcode
|
|
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.2.2
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
|
@@ -39,9 +39,9 @@ Available settings:
|
|
39 |
|
40 |
`href` (URL path that comes after facebook.com/)
|
41 |
|
42 |
-
`width` (number, in pixels, default 340)
|
43 |
|
44 |
-
`height` (number, in pixels, default 500)
|
45 |
|
46 |
`cover` (true/false, show page cover photo, default true)
|
47 |
|
@@ -53,7 +53,7 @@ Example: `[facebook-page-plugin href="facebook" width="300" height="500" cover="
|
|
53 |
This will display a Facebook page feed that loads in the page `facebook.com/facebook` that is 300px wide, 500px high, displaying the page's cover photo, facepile and recent posts. See the screenshots tab for a demonstration of how it will appear
|
54 |
|
55 |
= What languages are available? =
|
56 |
-
English.
|
57 |
|
58 |
= My Facebook page isn't loading =
|
59 |
If the URL for your page is http://facebook.com/ABC123 then when you use the shortcode don't include the domain, instead use like so: `[facebook-page-plugin href="ABC123"]`
|
@@ -66,7 +66,9 @@ Shortcodes were introduced in WordPress 2.5, so theorectially it should work on
|
|
66 |
1. Installation example
|
67 |
|
68 |
== Changelog ==
|
69 |
-
= 1.1 =
|
|
|
|
|
70 |
* Added filter to allow calling of shortcodes in the text widget
|
71 |
= 1.0.3 =
|
72 |
* Fixing screenshot issue
|
@@ -76,7 +78,9 @@ Shortcodes were introduced in WordPress 2.5, so theorectially it should work on
|
|
76 |
* Initial release
|
77 |
|
78 |
== Upgrade Notice ==
|
79 |
-
= 1.1 =
|
|
|
|
|
80 |
Added filter to allow calling of shortcodes in the text widget
|
81 |
-
= 1.0 =
|
82 |
Initial release
|
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.2.2
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
10 |
|
39 |
|
40 |
`href` (URL path that comes after facebook.com/)
|
41 |
|
42 |
+
`width` (number, in pixels, between 280 and 500, default 340)
|
43 |
|
44 |
+
`height` (number, in pixels, minimum 130, default 500)
|
45 |
|
46 |
`cover` (true/false, show page cover photo, default true)
|
47 |
|
53 |
This will display a Facebook page feed that loads in the page `facebook.com/facebook` that is 300px wide, 500px high, displaying the page's cover photo, facepile and recent posts. See the screenshots tab for a demonstration of how it will appear
|
54 |
|
55 |
= What languages are available? =
|
56 |
+
English. Multi language support is coming shortly in version 1.2.0
|
57 |
|
58 |
= My Facebook page isn't loading =
|
59 |
If the URL for your page is http://facebook.com/ABC123 then when you use the shortcode don't include the domain, instead use like so: `[facebook-page-plugin href="ABC123"]`
|
66 |
1. Installation example
|
67 |
|
68 |
== Changelog ==
|
69 |
+
= 1.1.1 =
|
70 |
+
* Fixed height bug
|
71 |
+
= 1.1.0 =
|
72 |
* Added filter to allow calling of shortcodes in the text widget
|
73 |
= 1.0.3 =
|
74 |
* Fixing screenshot issue
|
78 |
* Initial release
|
79 |
|
80 |
== Upgrade Notice ==
|
81 |
+
= 1.1.1 =
|
82 |
+
Fixed height bug
|
83 |
+
= 1.1.0 =
|
84 |
Added filter to allow calling of shortcodes in the text widget
|
85 |
+
= 1.0.0 =
|
86 |
Initial release
|