Version Description
- Fixed more things on multisite
- Fixed Page Template HTML
Download this release
Release Info
Developer | poxtron |
Plugin | WP Embed Facebook |
Version | 1.9.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.9.6.4 to 1.9.6.5
- lib/core.php +3 -15
- readme.txt +8 -4
- templates/classic/page.php +2 -13
- templates/default/page.php +1 -5
- wp-embed-facebook.php +1 -2
lib/core.php
CHANGED
@@ -9,7 +9,6 @@ class WP_Embed_FB {
|
|
9 |
static $height = '';
|
10 |
static $theme = '';
|
11 |
static $raw = '';
|
12 |
-
static $premium = '';
|
13 |
static $num_posts = '';
|
14 |
/**
|
15 |
* Save default values to data base
|
@@ -82,7 +81,7 @@ class WP_Embed_FB {
|
|
82 |
}
|
83 |
//("uninstalled","deactivated","activated","reactivated")
|
84 |
protected static function whois($install){
|
85 |
-
$home =
|
86 |
$home = esc_url($home);
|
87 |
@file_get_contents("http://www.wpembedfb.com/api/?whois=$install&site_url=$home");
|
88 |
return true;
|
@@ -386,13 +385,9 @@ class WP_Embed_FB {
|
|
386 |
static function locate_template($template_name){
|
387 |
$theme = get_option('wpemfb_theme');
|
388 |
$located = locate_template(array('plugins/'.WPEMFBSLUG.'/'.$template_name.'.php'));
|
389 |
-
$file = '
|
390 |
if(empty($located)){
|
391 |
-
|
392 |
-
$located = WPEMFBPLDIR.$file;
|
393 |
-
} else {
|
394 |
-
$located = WPEMFBDIR.$file;
|
395 |
-
}
|
396 |
}
|
397 |
return $located;
|
398 |
}
|
@@ -494,13 +489,6 @@ class WP_Embed_FB {
|
|
494 |
$root .= "\n";
|
495 |
return $root.$ct;
|
496 |
}
|
497 |
-
static function plugins_loaded(){
|
498 |
-
$lic = get_option('wpemfb_license','');
|
499 |
-
if(class_exists('Wpemfb_Premium') && !empty($lic) )
|
500 |
-
self::$premium = true;
|
501 |
-
else
|
502 |
-
self::$premium = false;
|
503 |
-
}
|
504 |
}
|
505 |
|
506 |
/**
|
9 |
static $height = '';
|
10 |
static $theme = '';
|
11 |
static $raw = '';
|
|
|
12 |
static $num_posts = '';
|
13 |
/**
|
14 |
* Save default values to data base
|
81 |
}
|
82 |
//("uninstalled","deactivated","activated","reactivated")
|
83 |
protected static function whois($install){
|
84 |
+
$home = home_url();
|
85 |
$home = esc_url($home);
|
86 |
@file_get_contents("http://www.wpembedfb.com/api/?whois=$install&site_url=$home");
|
87 |
return true;
|
385 |
static function locate_template($template_name){
|
386 |
$theme = get_option('wpemfb_theme');
|
387 |
$located = locate_template(array('plugins/'.WPEMFBSLUG.'/'.$template_name.'.php'));
|
388 |
+
$file = 'templates/'.$theme.'/'.$template_name.'.php';
|
389 |
if(empty($located)){
|
390 |
+
$located = WPEMFBDIR.$file;
|
|
|
|
|
|
|
|
|
391 |
}
|
392 |
return $located;
|
393 |
}
|
489 |
$root .= "\n";
|
490 |
return $root.$ct;
|
491 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
}
|
493 |
|
494 |
/**
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
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.3
|
7 |
-
Stable tag: 1.9.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -82,6 +82,10 @@ The embedded post code comes directly from facebook so there is no easy way to c
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
|
|
85 |
= 1.9.6.4 =
|
86 |
* Fixed translation files
|
87 |
* Fixed bug on event template
|
@@ -167,7 +171,7 @@ The embedded post code comes directly from facebook so there is no easy way to c
|
|
167 |
* Posts on Page Embeds
|
168 |
* Album Photo Count
|
169 |
* Fixes on Admin Page
|
170 |
-
* Remove of
|
171 |
|
172 |
= 1.5.3 =
|
173 |
* fixed Warning in admin
|
@@ -215,5 +219,5 @@ The embedded post code comes directly from facebook so there is no easy way to c
|
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
218 |
-
= 1.9.6.
|
219 |
-
* Fixed
|
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.3
|
7 |
+
Stable tag: 1.9.6.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 1.9.6.5 =
|
86 |
+
* Fixed more things on multisite
|
87 |
+
* Fixed Page Template HTML
|
88 |
+
|
89 |
= 1.9.6.4 =
|
90 |
* Fixed translation files
|
91 |
* Fixed bug on event template
|
171 |
* Posts on Page Embeds
|
172 |
* Album Photo Count
|
173 |
* Fixes on Admin Page
|
174 |
+
* Remove of unnecessary code
|
175 |
|
176 |
= 1.5.3 =
|
177 |
* fixed Warning in admin
|
219 |
|
220 |
== Upgrade Notice ==
|
221 |
|
222 |
+
= 1.9.6.5 =
|
223 |
+
* Fixed more thing related to multisite and page template errors.
|
templates/classic/page.php
CHANGED
@@ -5,19 +5,8 @@
|
|
5 |
*/
|
6 |
$show_posts = get_option("wpemfb_show_posts") == "true" ? true : false;
|
7 |
?>
|
8 |
-
<div class="wpemfb-container"
|
9 |
-
|
10 |
-
margin-left: auto;
|
11 |
-
margin-right: auto;
|
12 |
-
">
|
13 |
-
<div class="wpemfb-cover"
|
14 |
-
style=" height:<?php echo $height ?>px;
|
15 |
-
width:<?php echo $width?>px;
|
16 |
-
background-image: url(<?php echo $fb_data['cover']['source'] ?>);
|
17 |
-
background-position: 0 <?php echo $fb_data['cover']['offset_y'] ?>%;
|
18 |
-
">
|
19 |
-
|
20 |
-
</div>
|
21 |
<div class="wpemfb-info">
|
22 |
<div class="wpemfb-pic">
|
23 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
5 |
*/
|
6 |
$show_posts = get_option("wpemfb_show_posts") == "true" ? true : false;
|
7 |
?>
|
8 |
+
<div class="wpemfb-container" style="width:<?php echo $width ?>px; margin-left: auto; margin-right: auto; ">
|
9 |
+
<div class="wpemfb-cover" style="height:<?php echo $height ?>px; width:<?php echo $width?>px; background-image: url(<?php echo $fb_data['cover']['source'] ?>); background-position: 0 <?php echo $fb_data['cover']['offset_y'] ?>%; "></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
<div class="wpemfb-info">
|
11 |
<div class="wpemfb-pic">
|
12 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
templates/default/page.php
CHANGED
@@ -9,11 +9,7 @@
|
|
9 |
?>
|
10 |
<div class="wpemfb-container" style="max-width: <?php echo $width ?>px" >
|
11 |
<div class="wpemfb-cover"
|
12 |
-
style= "
|
13 |
-
height:<?php echo $height ?>px;
|
14 |
-
background-image: url(<?php echo $fb_data['cover']['source'] ?>);
|
15 |
-
background-position: 0 <?php echo $fb_data['cover']['offset_y'] ?>%;
|
16 |
-
" onclick="window.open('<?php echo $fb_data['link'] ?>', '_blank')" >
|
17 |
</div>
|
18 |
<div class="wpemfb-row wpemfb-pad-top">
|
19 |
<div class="wpemfb-col-2 wpemfb-text-center">
|
9 |
?>
|
10 |
<div class="wpemfb-container" style="max-width: <?php echo $width ?>px" >
|
11 |
<div class="wpemfb-cover"
|
12 |
+
style= "height:<?php echo $height ?>px; background-image: url(<?php echo $fb_data['cover']['source'] ?>); background-position: 0 <?php echo $fb_data['cover']['offset_y'] ?>%;" onclick="window.open('<?php echo $fb_data['link'] ?>', '_blank')" >
|
|
|
|
|
|
|
|
|
13 |
</div>
|
14 |
<div class="wpemfb-row wpemfb-pad-top">
|
15 |
<div class="wpemfb-col-2 wpemfb-text-center">
|
wp-embed-facebook.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Embed Facebook
|
|
4 |
Plugin URI: http://www.wpembedfb.com
|
5 |
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 at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
|
6 |
Author: Miguel Sirvent
|
7 |
-
Version: 1.9.6.
|
8 |
Author URI: http://profiles.wordpress.org/poxtron/
|
9 |
*/
|
10 |
|
@@ -27,7 +27,6 @@ add_action('init',array('WP_Embed_FB','init'),1);
|
|
27 |
add_action('wp_enqueue_scripts', array('WP_Embed_FB', 'wp_enqueue_scripts') );
|
28 |
wp_embed_register_handler("wpembedfb","/(http|https):\/\/www\.facebook\.com\/([^<\s]*)/",array("WP_Embed_FB","embed_register_handler"));
|
29 |
add_shortcode('facebook', array('WP_Embed_FB','shortcode') );
|
30 |
-
add_action('plugins_loaded',array('WP_Embed_FB','plugins_loaded'),99);
|
31 |
//optional filter to content anonymous function
|
32 |
if( get_option('wpemfb_fb_root') === 'true' ){
|
33 |
add_filter('the_content', array('WP_Embed_FB','fb_root'),10,1);
|
4 |
Plugin URI: http://www.wpembedfb.com
|
5 |
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 at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
|
6 |
Author: Miguel Sirvent
|
7 |
+
Version: 1.9.6.5
|
8 |
Author URI: http://profiles.wordpress.org/poxtron/
|
9 |
*/
|
10 |
|
27 |
add_action('wp_enqueue_scripts', array('WP_Embed_FB', 'wp_enqueue_scripts') );
|
28 |
wp_embed_register_handler("wpembedfb","/(http|https):\/\/www\.facebook\.com\/([^<\s]*)/",array("WP_Embed_FB","embed_register_handler"));
|
29 |
add_shortcode('facebook', array('WP_Embed_FB','shortcode') );
|
|
|
30 |
//optional filter to content anonymous function
|
31 |
if( get_option('wpemfb_fb_root') === 'true' ){
|
32 |
add_filter('the_content', array('WP_Embed_FB','fb_root'),10,1);
|