Responsive Facebook Page Plugin - Version 1.6.1

Version Description

  • 11/04/17 =
  • Adding text domain header
  • Adding implementation indicator for debugging
Download this release

Release Info

Developer deployer
Plugin Icon 128x128 Responsive Facebook Page Plugin
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6.0 to 1.6.1

Files changed (2) hide show
  1. facebook-page-feed-graph-api.php +7 -4
  2. readme.txt +10 -3
facebook-page-feed-graph-api.php CHANGED
@@ -1,12 +1,13 @@
1
  <?php
2
  /**
3
  * Plugin Name: Facebook Page Plugin
4
- * Plugin URI: https://cameronjonesweb.com.au/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.6.0
7
  * Author: Cameron Jones
8
  * Author URI: https://cameronjonesweb.com.au
9
  * License: GPLv2
 
10
 
11
  * Copyright 2015 Cameron Jones (email : plugins@cameronjonesweb.com.au)
12
 
@@ -31,7 +32,7 @@ class cameronjonesweb_facebook_page_plugin {
31
  define( 'CJW_FBPP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
32
  define( 'CJW_FBPP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
33
  define( 'CJW_FBPP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
34
- define( 'CJW_FBPP_PLUGIN_VER', '1.6.0' );
35
  define( 'CJW_FBPP_PLUGIN_DONATE_LINK', 'https://www.patreon.com/cameronjonesweb' );
36
  define( 'CJW_FBPP_PLUGIN_SURVEY_LINK', 'https://cameronjonesweb.typeform.com/to/BllbYm' );
37
 
@@ -296,6 +297,7 @@ class cameronjonesweb_facebook_page_plugin {
296
  'link' => true,
297
  'linktext' => NULL,
298
  'standard' => 'html5',
 
299
  ), $filter );
300
  if(isset($a['href']) && !empty($a['href'])){
301
  $a['language'] = str_replace("-", "_", $a['language']);
@@ -303,7 +305,7 @@ class cameronjonesweb_facebook_page_plugin {
303
  //Send the language as a parameter to the SDK
304
  wp_localize_script( 'facebook-page-plugin-sdk', 'facebook_page_plugin_language', array( 'language' => $a['language'] ) );
305
 
306
- $return .= '<div class="cameronjonesweb_facebook_page_plugin" data-version="' . CJW_FBPP_PLUGIN_VER . '" id="' . $this->facebook_page_plugin_generate_wrapper_id() . '">';
307
  $return .= '<div id="fb-root"></div><script>(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.5&appId=' . self::app_id() . '";fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script>';
308
  $return .= '<div class="fb-page" data-href="https://facebook.com/' . $a["href"] . '" ';
309
  if(isset($a['width']) && !empty($a['width'])){
@@ -488,6 +490,7 @@ class cameronjonesweb_facebook_page_plugin_widget extends WP_Widget {
488
  if( isset( $linktext ) && !empty( $linktext ) ){
489
  $shortcode .= ' linktext="' . $linktext . '"';
490
  }
 
491
  $shortcode .= ']';
492
  echo do_shortcode( $shortcode );
493
  }
1
  <?php
2
  /**
3
  * Plugin Name: Facebook Page Plugin
4
+ * Plugin URI: https://cameronjonesweb.com.au/wordpress-plugins/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.6.1
7
  * Author: Cameron Jones
8
  * Author URI: https://cameronjonesweb.com.au
9
  * License: GPLv2
10
+ * Text Domain: facebook-page-feed-graph-api
11
 
12
  * Copyright 2015 Cameron Jones (email : plugins@cameronjonesweb.com.au)
13
 
32
  define( 'CJW_FBPP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
33
  define( 'CJW_FBPP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
34
  define( 'CJW_FBPP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
35
+ define( 'CJW_FBPP_PLUGIN_VER', '1.6.1' );
36
  define( 'CJW_FBPP_PLUGIN_DONATE_LINK', 'https://www.patreon.com/cameronjonesweb' );
37
  define( 'CJW_FBPP_PLUGIN_SURVEY_LINK', 'https://cameronjonesweb.typeform.com/to/BllbYm' );
38
 
297
  'link' => true,
298
  'linktext' => NULL,
299
  'standard' => 'html5',
300
+ '_implementation' => 'shortcode'
301
  ), $filter );
302
  if(isset($a['href']) && !empty($a['href'])){
303
  $a['language'] = str_replace("-", "_", $a['language']);
305
  //Send the language as a parameter to the SDK
306
  wp_localize_script( 'facebook-page-plugin-sdk', 'facebook_page_plugin_language', array( 'language' => $a['language'] ) );
307
 
308
+ $return .= '<div class="cameronjonesweb_facebook_page_plugin" data-version="' . CJW_FBPP_PLUGIN_VER . '" data-implementation="' . esc_attr( $a['_implementation'] ) . '" id="' . $this->facebook_page_plugin_generate_wrapper_id() . '">';
309
  $return .= '<div id="fb-root"></div><script>(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.5&appId=' . self::app_id() . '";fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script>';
310
  $return .= '<div class="fb-page" data-href="https://facebook.com/' . $a["href"] . '" ';
311
  if(isset($a['width']) && !empty($a['width'])){
490
  if( isset( $linktext ) && !empty( $linktext ) ){
491
  $shortcode .= ' linktext="' . $linktext . '"';
492
  }
493
+ $shortcode .= ' _implementation="widget"';
494
  $shortcode .= ']';
495
  echo do_shortcode( $shortcode );
496
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: cameronjonesweb
3
  Tags: like box,facebook like box,facebook page plugin, facebook feed, facebook page
4
  Donate link: https://www.patreon.com/cameronjonesweb
5
- Requires at least: 4.0
6
- Tested up to: 4.7.3
7
  Stable tag: 1.6.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@@ -43,7 +43,8 @@ Also, if your page has only just been created it may take some time for the API
43
  Shortcodes were introduced in WordPress 2.5, so theorectially it should work on all sites that are at least 2.5, however it has only been tested on versions 4.0 and up, and no guarantee will be made concerning earlier versions
44
 
45
  = I can only see a link, the plugin won't load =
46
- By default the plugin will display a link to your page while the page plugin loads. If the page plugin doesn't load, this could happen for a number of reasons. Your connection could be very slow, you could have JavaScript disabled, you could have an ad blocker or similar browser extension blocking the plugin or there could be an error in the information you have provided in the widget or shortcode.
 
47
 
48
  = I can't get the Facepile to work! =
49
  Chances are your plugin isn't tall enough to display the facepile properly. The facepile requires the plugin to have a minimum height of 214 pixels, or 154 pixel if using the small header.
@@ -57,6 +58,12 @@ Chances are your plugin isn't tall enough to display the facepile properly. The
57
 
58
  == Changelog ==
59
 
 
 
 
 
 
 
60
  = 1.6.1 - 11/04/17 =
61
  * Adding text domain header
62
  * Adding implementation indicator for debugging
2
  Contributors: cameronjonesweb
3
  Tags: like box,facebook like box,facebook page plugin, facebook feed, facebook page
4
  Donate link: https://www.patreon.com/cameronjonesweb
5
+ Requires at least: 4.6
6
+ Tested up to: 4.9
7
  Stable tag: 1.6.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
43
  Shortcodes were introduced in WordPress 2.5, so theorectially it should work on all sites that are at least 2.5, however it has only been tested on versions 4.0 and up, and no guarantee will be made concerning earlier versions
44
 
45
  = I can only see a link, the plugin won't load =
46
+ By default the plugin will display a link to your page while the page plugin loads. If the page plugin doesn't load, this could happen for a number of reasons. Your connection could be very slow, you could have JavaScript disabled, you could have an ad blocker or similar browser extension blocking the plugin or there could be an error in the information you have provided in the widget or shortcode.
47
+ Additionally, if your Facebook page has audience restrictions for age and/or location, the plugin will not display. If you want the plugin to display, disable the audience restrictions in your page settings on Facebook.
48
 
49
  = I can't get the Facepile to work! =
50
  Chances are your plugin isn't tall enough to display the facepile properly. The facepile requires the plugin to have a minimum height of 214 pixels, or 154 pixel if using the small header.
58
 
59
  == Changelog ==
60
 
61
+ = 1.6.2 - 18/11/17 =
62
+ * Changes minimum WordPress version to 4.6 for translations
63
+ * Tested for WordPress 4.9 'Tipton'
64
+ * Fixed bug with setting the language in the shortcode generator
65
+ * Increased accuracy of URL detection in the widget form
66
+
67
  = 1.6.1 - 11/04/17 =
68
  * Adding text domain header
69
  * Adding implementation indicator for debugging