Version Description
- WPML compatibility: If the frontpage is set as "latest posts" and a custom homepage description is used, it can now be translated to other languages in WPML - String translation
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.1
- includes/settings-page.php +15 -0
- lang/wd-fb-og-pt_PT.mo +0 -0
- lang/wd-fb-og-pt_PT.po +12 -2
- lang/wd-fb-og.pot +4 -0
- readme.txt +4 -1
- wonderm00n-open-graph.php +12 -3
includes/settings-page.php
CHANGED
@@ -71,6 +71,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
71 |
$usersettings['fb_twitter_card_type']= trim(webdados_fb_open_graph_post('fb_twitter_card_type'));
|
72 |
//Update
|
73 |
update_option('wonderm00n_open_graph_settings', $usersettings);
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
}
|
76 |
|
@@ -479,6 +483,17 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
479 |
</select>
|
480 |
<div id="fb_desc_homepage_customtext_div">
|
481 |
<textarea name="fb_desc_homepage_customtext" id="fb_desc_homepage_customtext" rows="3" cols="50"><?php echo trim(esc_attr($fb_desc_homepage_customtext)); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
</div>
|
483 |
</div>
|
484 |
</td>
|
71 |
$usersettings['fb_twitter_card_type']= trim(webdados_fb_open_graph_post('fb_twitter_card_type'));
|
72 |
//Update
|
73 |
update_option('wonderm00n_open_graph_settings', $usersettings);
|
74 |
+
//WPML - Register custom website description
|
75 |
+
if (function_exists('icl_object_id') && function_exists('icl_register_string')) {
|
76 |
+
icl_register_string('wd-fb-og', 'wd_fb_og_desc_homepage_customtext', trim(webdados_fb_open_graph_post('fb_desc_homepage_customtext')));
|
77 |
+
}
|
78 |
}
|
79 |
}
|
80 |
|
483 |
</select>
|
484 |
<div id="fb_desc_homepage_customtext_div">
|
485 |
<textarea name="fb_desc_homepage_customtext" id="fb_desc_homepage_customtext" rows="3" cols="50"><?php echo trim(esc_attr($fb_desc_homepage_customtext)); ?></textarea>
|
486 |
+
<?php
|
487 |
+
if (function_exists('icl_object_id') && function_exists('icl_register_string')) {
|
488 |
+
?>
|
489 |
+
<br/>
|
490 |
+
<?php
|
491 |
+
printf(
|
492 |
+
__('WPML users: Set the default language description here, save changes and then go to <a href="%s">WPML > String translation</a> to set it for other languages.', 'wd-fb-og'),
|
493 |
+
'admin.php?page=wpml-string-translation/menu/string-translation.php&context=wd-fb-og'
|
494 |
+
);
|
495 |
+
}
|
496 |
+
?>
|
497 |
</div>
|
498 |
</div>
|
499 |
</td>
|
lang/wd-fb-og-pt_PT.mo
CHANGED
Binary file
|
lang/wd-fb-og-pt_PT.po
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Facebook Open Graph Meta Tags for WordPress v1.6\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wonderm00ns-simple-"
|
5 |
"facebook-open-graph-tags\n"
|
6 |
"POT-Creation-Date: 2015-06-30 12:13:21+00:00\n"
|
7 |
-
"PO-Revision-Date: 2015-
|
8 |
"Last-Translator: Wonderm00n <wonderm00n@gmail.com>\n"
|
9 |
"Language-Team: Webdados <info@webdados.pt>\n"
|
10 |
"Language: pt_PT\n"
|
@@ -364,6 +364,16 @@ msgstr "Descrição do site"
|
|
364 |
msgid "Custom text"
|
365 |
msgstr "Texto personalizado"
|
366 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
# @ wd-fb-og
|
368 |
#: includes/settings-page.php:490
|
369 |
msgid "Include Image (og:image) tag"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Facebook Open Graph Meta Tags for WordPress v1.6.1\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wonderm00ns-simple-"
|
5 |
"facebook-open-graph-tags\n"
|
6 |
"POT-Creation-Date: 2015-06-30 12:13:21+00:00\n"
|
7 |
+
"PO-Revision-Date: 2015-08-03 19:58-0000\n"
|
8 |
"Last-Translator: Wonderm00n <wonderm00n@gmail.com>\n"
|
9 |
"Language-Team: Webdados <info@webdados.pt>\n"
|
10 |
"Language: pt_PT\n"
|
364 |
msgid "Custom text"
|
365 |
msgstr "Texto personalizado"
|
366 |
|
367 |
+
#: includes/settings-page.php:492
|
368 |
+
msgid ""
|
369 |
+
"WPML users: Set the default language description here, save changes and then "
|
370 |
+
"go to <a href=\"%s\">WPML > String translation</a> to set it for other "
|
371 |
+
"languages."
|
372 |
+
msgstr ""
|
373 |
+
"Utilizadores WPML: Defina aqui a descrição no idioma por omissão, guarde as "
|
374 |
+
"alterações e vá a <a href=\"%s\">WPML > Tradução de storing</a> para "
|
375 |
+
"defini-la para outros idiomas."
|
376 |
+
|
377 |
# @ wd-fb-og
|
378 |
#: includes/settings-page.php:490
|
379 |
msgid "Include Image (og:image) tag"
|
lang/wd-fb-og.pot
CHANGED
@@ -275,6 +275,10 @@ msgstr ""
|
|
275 |
msgid "Custom text"
|
276 |
msgstr ""
|
277 |
|
|
|
|
|
|
|
|
|
278 |
#: includes/settings-page.php:490
|
279 |
msgid "Include Image (og:image) tag"
|
280 |
msgstr ""
|
275 |
msgid "Custom text"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: includes/settings-page.php:492
|
279 |
+
msgid "WPML users: Set the default language description here, save changes and then go to <a href=\"%s\">WPML > String translation</a> to set it for other languages."
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
#: includes/settings-page.php:490
|
283 |
msgid "Include Image (og:image) tag"
|
284 |
msgstr ""
|
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, seo, share, social, meta, twitter card, twitter, schema, google+, g+, google, google plus, image, like, meta, search engine optimization
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.0.1
|
7 |
-
Stable tag: 1.6
|
8 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and other Meta Tags into your WordPress Website for more efficient sharing results.
|
9 |
|
10 |
== Description ==
|
@@ -77,6 +77,9 @@ It allows the user to choose which tags are, or not, included and also the defau
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= 1.6 =
|
81 |
* Added og:image:width and og:image:height tags if Facebook is having problems loading the image when the post is shared for the first time
|
82 |
* Added the possibility to choose the Twitter Card Type
|
4 |
Tags: facebook, open graph, open graph protocol, seo, share, social, meta, twitter card, twitter, schema, google+, g+, google, google plus, image, like, meta, search engine optimization
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.0.1
|
7 |
+
Stable tag: 1.6.1
|
8 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and other Meta Tags into your WordPress Website for more efficient sharing results.
|
9 |
|
10 |
== Description ==
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 1.6.1 =
|
81 |
+
* WPML compatibility: If the frontpage is set as "latest posts" and a custom homepage description is used, it can now be translated to other languages in WPML - String translation
|
82 |
+
|
83 |
= 1.6 =
|
84 |
* Added og:image:width and og:image:height tags if Facebook is having problems loading the image when the post is shared for the first time
|
85 |
* Added the possibility to choose the Twitter Card Type
|
wonderm00n-open-graph.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 1.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 and Twitter Card 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 |
-
Version: 1.6
|
11 |
Author: Webdados
|
12 |
Author URI: http://www.webdados.pt
|
13 |
Text Domain: wd-fb-og
|
@@ -16,7 +16,7 @@ Domain Path: /lang
|
|
16 |
|
17 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
18 |
|
19 |
-
$webdados_fb_open_graph_plugin_version='1.6';
|
20 |
$webdados_fb_open_graph_plugin_name='Facebook Open Graph, Google+ and Twitter Card Tags';
|
21 |
$webdados_fb_open_graph_plugin_settings=array(
|
22 |
'fb_app_id_show',
|
@@ -256,6 +256,15 @@ function webdados_fb_open_graph() {
|
|
256 |
switch(trim($fb_desc_homepage)) {
|
257 |
case 'custom':
|
258 |
$fb_desc=esc_attr(strip_tags(stripslashes($fb_desc_homepage_customtext)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
break;
|
260 |
default:
|
261 |
$fb_desc=esc_attr(strip_tags(stripslashes(get_bloginfo('description'))));
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 1.6.1
|
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 and Twitter Card 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 |
+
Version: 1.6.1
|
11 |
Author: Webdados
|
12 |
Author URI: http://www.webdados.pt
|
13 |
Text Domain: wd-fb-og
|
16 |
|
17 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
18 |
|
19 |
+
$webdados_fb_open_graph_plugin_version='1.6.1';
|
20 |
$webdados_fb_open_graph_plugin_name='Facebook Open Graph, Google+ and Twitter Card Tags';
|
21 |
$webdados_fb_open_graph_plugin_settings=array(
|
22 |
'fb_app_id_show',
|
256 |
switch(trim($fb_desc_homepage)) {
|
257 |
case 'custom':
|
258 |
$fb_desc=esc_attr(strip_tags(stripslashes($fb_desc_homepage_customtext)));
|
259 |
+
//WPML?
|
260 |
+
if (function_exists('icl_object_id') && function_exists('icl_register_string')) {
|
261 |
+
global $sitepress;
|
262 |
+
if (ICL_LANGUAGE_CODE!=$sitepress->get_default_language()) {
|
263 |
+
$fb_desc=icl_t('wd-fb-og', 'wd_fb_og_desc_homepage_customtext', $fb_desc);
|
264 |
+
} else {
|
265 |
+
//We got it already
|
266 |
+
}
|
267 |
+
}
|
268 |
break;
|
269 |
default:
|
270 |
$fb_desc=esc_attr(strip_tags(stripslashes(get_bloginfo('description'))));
|