WP Embed Facebook - Version 1.9.1

Version Description

  • Line breaks fix
Download this release

Release Info

Developer poxtron
Plugin Icon 128x128 WP Embed Facebook
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9 to 1.9.1

lib/admin.php CHANGED
@@ -379,5 +379,4 @@ class EmbFbAdmin{
379
  </div>
380
  <?php
381
  }
382
- }
383
- ?>
379
  </div>
380
  <?php
381
  }
382
+ }
 
lib/core.php CHANGED
@@ -496,5 +496,4 @@ class FaceInit {
496
  else
497
  self::$fbsdk = 'unactive';
498
  }
499
- }
500
- ?>
496
  else
497
  self::$fbsdk = 'unactive';
498
  }
499
+ }
 
lib/fb/facebook.php CHANGED
@@ -157,4 +157,4 @@ class Sigami_Facebook extends BaseFacebook
157
  }
158
  return implode('_', $parts);
159
  }
160
- }
157
  }
158
  return implode('_', $parts);
159
  }
160
+ }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: poxtron
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
4
  Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
5
  Requires at least: 3.8.1
6
- Tested up to: 4.2
7
- Stable tag: 1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -24,12 +24,14 @@ Embed any public facebook video, page, post, profile, photo or event directly in
24
  * Facebook Profiles
25
  * Facebook Publications
26
 
 
 
27
  = Requirements =
28
  * Facebook App id and Secret
29
 
30
  = How to use it =
31
- Put on a single and separate line the Facebook URL.
32
- Or you can use a shortcode `[facebook=url width=200 raw=true]`
33
  width and raw are optional, raw only works for videos and photos
34
 
35
  = Options =
@@ -43,7 +45,6 @@ width and raw are optional, raw only works for videos and photos
43
  * Change Theme
44
  * Add fb-root
45
 
46
- **[Demo](http://www.wpembedfb.com/demo/)**
47
 
48
  * The information that is shown on your post, is from facebook directly, no images or data are stored on your server.
49
 
@@ -79,6 +80,9 @@ The embedded post code comes directly from facebook so there is no easy way to c
79
 
80
  == Changelog ==
81
 
 
 
 
82
  = 1.9 =
83
  * Facebook video embed code in case video type is not supported
84
  * Fix: Compatibility with other facebook plugins thanks to ozzWANTED
@@ -172,10 +176,5 @@ The embedded post code comes directly from facebook so there is no easy way to c
172
 
173
  == Upgrade Notice ==
174
 
175
- = 1.9 =
176
- * Facebook video embed code in case video type is not supported
177
- * Fix: Compatibility with other facebook plugins thanks to ozzWANTED
178
- * New filters: 'wpemfb_api_string' and 'wpemfb_2nd_api_string'
179
- * Show embedded posts on admin
180
- * Fix undefined variable on js
181
- * Fix languages on event time
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
4
  Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
5
  Requires at least: 3.8.1
6
+ Tested up to: 4.2.1
7
+ Stable tag: 1.9.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
24
  * Facebook Profiles
25
  * Facebook Publications
26
 
27
+ **[Demo](http://www.wpembedfb.com/demo/)**
28
+
29
  = Requirements =
30
  * Facebook App id and Secret
31
 
32
  = How to use it =
33
+ Copy the facebook url on a single line.
34
+ Or you can use a shortcode `[facebook=url width=200 raw=true]`
35
  width and raw are optional, raw only works for videos and photos
36
 
37
  = Options =
45
  * Change Theme
46
  * Add fb-root
47
 
 
48
 
49
  * The information that is shown on your post, is from facebook directly, no images or data are stored on your server.
50
 
80
 
81
  == Changelog ==
82
 
83
+ = 1.9.1 =
84
+ * Line breaks fix
85
+
86
  = 1.9 =
87
  * Facebook video embed code in case video type is not supported
88
  * Fix: Compatibility with other facebook plugins thanks to ozzWANTED
176
 
177
  == Upgrade Notice ==
178
 
179
+ = 1.9.1 =
180
+ * Fixed empty lines at end of file.
 
 
 
 
 
templates/default/photo.php CHANGED
@@ -6,7 +6,6 @@
6
  $width = $width;
7
  $height = $width * $prop;
8
  ?>
9
-
10
  <div class="wpemfb-container" style="max-width: <?php echo $width ?>px">
11
  <div class="wpemfb-row">
12
  <div class="wpemfb-col-12">
6
  $width = $width;
7
  $height = $width * $prop;
8
  ?>
 
9
  <div class="wpemfb-container" style="max-width: <?php echo $width ?>px">
10
  <div class="wpemfb-row">
11
  <div class="wpemfb-col-12">
wp-embed-facebook.php CHANGED
@@ -33,15 +33,6 @@ if( get_option('wpemfb_fb_root') === 'true' ){
33
  add_filter('the_content', array('WP_Embed_FB','fb_root'),10,1);
34
  }
35
 
36
- // wp-admin functions
37
-
38
- //Filters all in core
39
-
40
- //wpemfb_embed_type
41
- //wpemfb_api_string
42
- //wpemfb_2nd_api_string
43
- //wpemfb_category_template
44
- //wpemfb_template
45
 
46
 
47
  if(is_admin()){
@@ -49,38 +40,4 @@ if(is_admin()){
49
  add_action('admin_menu', array('EmbFbAdmin','add_page'));
50
  add_action( 'admin_enqueue_scripts', array('EmbFbAdmin','admin_enqueue_scripts'), 10,1);
51
  add_action( 'admin_init', array('EmbFbAdmin','admin_init'));
52
- }
53
-
54
-
55
-
56
-
57
-
58
- //TODO: show like buttons on tiny mce
59
- //add_action( 'after_wp_tiny_mce', 'custom_after_wp_tiny_mce' );
60
- //add_action( 'after_wp_tiny_mce', 'custom_after_wp_tiny_mce' );
61
- //function custom_after_wp_tiny_mce() {
62
- //echo '
63
- // <script type="text/javascript">
64
- // jQuery.ajaxPrefilter(function(options, _, jqXHR) {
65
- // jqXHR.complete(function() {
66
- // window.fbAsyncInit = function() {
67
- // FB.init({
68
- // appId : "' . get_option('wpemfb_app_id') . '",
69
- // xfbml : true,
70
- // version : "v2.3"
71
- // });
72
- // };
73
- // (function(d, s, id){
74
- // var js, fjs = d.getElementsByTagName(s)[0];
75
- // if (d.getElementById(id)) {return;}
76
- // js = d.createElement(s); js.id = id;
77
- // js.src = "//connect.facebook.net/' . get_locale() . '/sdk.js";
78
- // fjs.parentNode.insertBefore(js, fjs);
79
- // }(document, "script", "facebook-jssdk"));
80
- // });
81
- // });
82
- // </script>
83
- //';
84
- //}
85
-
86
- ?>
33
  add_filter('the_content', array('WP_Embed_FB','fb_root'),10,1);
34
  }
35
 
 
 
 
 
 
 
 
 
 
36
 
37
 
38
  if(is_admin()){
40
  add_action('admin_menu', array('EmbFbAdmin','add_page'));
41
  add_action( 'admin_enqueue_scripts', array('EmbFbAdmin','admin_enqueue_scripts'), 10,1);
42
  add_action( 'admin_init', array('EmbFbAdmin','admin_init'));
43
+ }