WP Embed Facebook - Version 1.6.1

Version Description

Download this release

Release Info

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

Code changes from version 1.6 to 1.6.1

lib/responsive.js CHANGED
@@ -1,7 +1,7 @@
1
  window.onresize = resize_cover;
2
  jQuery(document).ready(function(){
3
  resize_cover();
4
- var width = jQuery(".wpemfb-container").outerWidth();
5
  jQuery(".fb-post").attr("data-width",width+"px");
6
  });
7
  function resize_cover(){
1
  window.onresize = resize_cover;
2
  jQuery(document).ready(function(){
3
  resize_cover();
4
+ var width = jQuery(".wpemfb-border").outerWidth();
5
  jQuery(".fb-post").attr("data-width",width+"px");
6
  });
7
  function resize_cover(){
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: poxtron
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=J373TWCMJ5CEY&lc=MX&item_name=WP%20Embed%20Facebook&no_note=1&no_shipping=1&rm=1&return=http%3a%2f%2fwww%2ewpembedfb%2ecom%2fyou%2dare%2dawesome&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
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: 3.9.2
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,6 +73,10 @@ In Settings > Embed Facebook.
73
 
74
  == Changelog ==
75
 
 
 
 
 
76
  = 1.6 =
77
  * Responsive Template
78
  * Posts on Page Embeds
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=J373TWCMJ5CEY&lc=MX&item_name=WP%20Embed%20Facebook&no_note=1&no_shipping=1&rm=1&return=http%3a%2f%2fwww%2ewpembedfb%2ecom%2fyou%2dare%2dawesome&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
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.0
7
+ Stable tag: 1.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ =1.6.1=
77
+ * fix website url
78
+ * fix embed post width
79
+
80
  = 1.6 =
81
  * Responsive Template
82
  * Posts on Page Embeds
templates/default/page.php CHANGED
@@ -41,7 +41,7 @@
41
  }
42
  ?><br>
43
  <?php if(isset($fb_data["website"])) : ?>
44
- <a class="wpemfb-clean-link wpemfb-color" href="http://<?php echo WP_Embed_FB::getwebsite($fb_data["website"]) ?>" title="<?php _e('Web Site', 'wp-embed-facebook') ?>" target="_blank">
45
  <?php _e('Web Site','wp-embed-facebook') ?>
46
  </a>
47
  <?php endif; ?>
41
  }
42
  ?><br>
43
  <?php if(isset($fb_data["website"])) : ?>
44
+ <a class="wpemfb-clean-link wpemfb-color" href="<?php echo WP_Embed_FB::getwebsite($fb_data["website"]) ?>" title="<?php _e('Web Site', 'wp-embed-facebook') ?>" target="_blank">
45
  <?php _e('Web Site','wp-embed-facebook') ?>
46
  </a>
47
  <?php endif; ?>
templates/default/posts.php CHANGED
@@ -1,2 +1,8 @@
 
 
 
 
 
 
1
  <div class="fb-post" data-href="https://www.facebook.com/<?php echo $fb_data['link'] ?>" data-width="<?php echo $width ?>">
2
  </div>
1
+ <div class="wpemfb-border" style="border:none; max-width: <?php echo $width ?>px">
2
+ <div class="wpemfb-table">
3
+ <div class="wpemfb-cell">
4
+ </div>
5
+ </div>
6
+ </div>
7
  <div class="fb-post" data-href="https://www.facebook.com/<?php echo $fb_data['link'] ?>" data-width="<?php echo $width ?>">
8
  </div>
wp-embed-fb.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /**
3
  * @package WP_Embed_Facebook
4
- * @version 1.6
5
  */
6
  /*
7
  Plugin Name: WP Embed Facebook
8
  Plugin URI: http://www.wpembedfb.com
9
  Description: Embed a Facebook video, photo, album, event, page, profile, or post. Copy any facebook url to a single line on your post, or use shortcode [facebook='url' width='' ] more info @ <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
10
  Author: Miguel Sirvent
11
- Version: 1.6
12
  Author URI: http://profiles.wordpress.org/poxtron/
13
  */
14
 
1
  <?php
2
  /**
3
  * @package WP_Embed_Facebook
4
+ * @version 1.6.1
5
  */
6
  /*
7
  Plugin Name: WP Embed Facebook
8
  Plugin URI: http://www.wpembedfb.com
9
  Description: Embed a Facebook video, photo, album, event, page, profile, or post. Copy any facebook url to a single line on your post, or use shortcode [facebook='url' width='' ] more info @ <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
10
  Author: Miguel Sirvent
11
+ Version: 1.6.1
12
  Author URI: http://profiles.wordpress.org/poxtron/
13
  */
14