Version Description
- When using the overlay PNG option, the image is filled with previously filled with white in case the original OG image is a transparent PNG
- The
fb_og_thumb_fill_color
can be used to use another color other than white, by returning an array with the rgb value
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.0.6.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.6.2 to 2.0.6.3
- fbimg.php +3 -0
- readme.txt +5 -1
- wonderm00n-open-graph.php +3 -3
fbimg.php
CHANGED
@@ -35,6 +35,9 @@
|
|
35 |
}
|
36 |
|
37 |
$thumb = imagecreatetruecolor( $thumb_width, $thumb_height );
|
|
|
|
|
|
|
38 |
|
39 |
// Resize and crop
|
40 |
imagecopyresampled($thumb,
|
35 |
}
|
36 |
|
37 |
$thumb = imagecreatetruecolor( $thumb_width, $thumb_height );
|
38 |
+
//Fill with white because the source image can be a transparent PNG
|
39 |
+
$thumb_fill_color = apply_filters('fb_og_thumb_fill_color', array(255, 255, 255) );
|
40 |
+
imagefill($thumb, 0, 0, imagecolorallocate ( $thumb , $thumb_fill_color[0] , $thumb_fill_color[1] , $thumb_fill_color[2] ) );
|
41 |
|
42 |
// Resize and crop
|
43 |
imagecopyresampled($thumb,
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-faceb
|
|
4 |
Tags: facebook, open graph, open graph protocol, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 2.0.6.
|
8 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
|
9 |
|
10 |
== Description ==
|
@@ -121,6 +121,10 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
124 |
= 2.0.6.2 =
|
125 |
* On some server configurations using an overlay PNG would result on a 404 error on the `og:image` url
|
126 |
|
4 |
Tags: facebook, open graph, open graph protocol, share, social, meta, rss, twitter card, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 2.0.6.3
|
8 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
|
9 |
|
10 |
== Description ==
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= 2.0.6.3 =
|
125 |
+
* When using the overlay PNG option, the image is filled with previously filled with white in case the original OG image is a transparent PNG
|
126 |
+
* The `fb_og_thumb_fill_color` can be used to use another color other than white, by returning an array with the rgb value
|
127 |
+
|
128 |
= 2.0.6.2 =
|
129 |
* On some server configurations using an overlay PNG would result on a 404 error on the `og:image` url
|
130 |
|
wonderm00n-open-graph.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.0.6.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
|
8 |
Plugin URI: http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
|
9 |
Description: Inserts Facebook Open Graph, Google+/Schema.org, Twitter Card and SEO Meta Tags into your WordPress Blog/Website for more effective and efficient Facebook, Google+ and Twitter sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and Twitterfeed post the image to Facebook correctly.
|
10 |
|
11 |
-
Version: 2.0.6.
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
Text Domain: wd-fb-og
|
@@ -17,7 +17,7 @@ Domain Path: /lang
|
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
-
define( 'WEBDADOS_FB_VERSION', '2.0.6.
|
21 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Facebook Open Graph, Google+ and Twitter Card Tags' );
|
22 |
define( 'WEBDADOS_FB_W', 1200 );
|
23 |
define( 'WEBDADOS_FB_H', 630 );
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.0.6.3
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Facebook Open Graph, Google+ and Twitter Card Tags
|
8 |
Plugin URI: http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/
|
9 |
Description: Inserts Facebook Open Graph, Google+/Schema.org, Twitter Card and SEO Meta Tags into your WordPress Blog/Website for more effective and efficient Facebook, Google+ and Twitter sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and Twitterfeed post the image to Facebook correctly.
|
10 |
|
11 |
+
Version: 2.0.6.3
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
Text Domain: wd-fb-og
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
+
define( 'WEBDADOS_FB_VERSION', '2.0.6.3' );
|
21 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Facebook Open Graph, Google+ and Twitter Card Tags' );
|
22 |
define( 'WEBDADOS_FB_W', 1200 );
|
23 |
define( 'WEBDADOS_FB_H', 630 );
|