Version Description
- New feature to shrink and center the original image when overlay is used
- Google+ / Schema feature deprecation
- New fb_og_thumb developer filter to allow the manipulation of the original thumbnail image on the overlay php script before the logo is applied on top of it
- The current object type and object id being queried is passed on to the image overlay php script so it can be used by developers on the new filter
- $_GET fix on the image overlay php script
- Tested with WordPress 5.5-alpha-47609 and WooCommerce 4.1.0-rc.1
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.2.8 |
Comparing to | |
See all releases |
Code changes from version 2.2.7.2 to 2.2.8
- admin/class-webdados-fb-open-graph-admin.php +1 -1
- admin/options-page-general.php +17 -2
- admin/options-page-schema.php +1 -0
- admin/options-page.php +1 -0
- fbimg.php +81 -29
- includes/class-webdados-fb-open-graph.php +78 -77
- lang/wonderm00ns-simple-facebook-open-graph-tags.pot +80 -53
- public/class-webdados-fb-open-graph-public.php +24 -6
- readme.txt +10 -2
- wonderm00n-open-graph.php +3 -3
admin/class-webdados-fb-open-graph-admin.php
CHANGED
@@ -180,7 +180,7 @@ class Webdados_FB_Admin {
|
|
180 |
</strong>
|
181 |
<br/>
|
182 |
<?php
|
183 |
-
if ( $webdados_fb->is_yoast_seo_active() && $this->options['fb_show_wpseoyoast']==1 ) {
|
184 |
_e('The Yoast SEO integration is active, so it\'s description will be used', 'wonderm00ns-simple-facebook-open-graph-tags');
|
185 |
} else {
|
186 |
?>
|
180 |
</strong>
|
181 |
<br/>
|
182 |
<?php
|
183 |
+
if ( $webdados_fb->is_yoast_seo_active() && ( $this->options['fb_show_wpseoyoast'] == 1 ) ) {
|
184 |
_e('The Yoast SEO integration is active, so it\'s description will be used', 'wonderm00ns-simple-facebook-open-graph-tags');
|
185 |
} else {
|
186 |
?>
|
admin/options-page-general.php
CHANGED
@@ -180,7 +180,7 @@ global $webdados_fb;
|
|
180 |
<?php if ( extension_loaded('gd') ) { ?>
|
181 |
<tr>
|
182 |
<td colspan="2" class="info">
|
183 |
-
- <?php printf( __( 'The original image will be resized/cropped to %dx%dpx and the chosen PNG (that should also have this size) will be overlaid on it. It will only work for locally hosted images.', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H);?>
|
184 |
<br/>
|
185 |
- <?php printf( __( 'You can see an example of the end result <a href="%s" target="_blank">here</a>', '' ), 'https://www.flickr.com/photos/wonderm00n/29890263040/in/dateposted-public/' ); ?>
|
186 |
<br/>
|
@@ -197,11 +197,26 @@ global $webdados_fb;
|
|
197 |
</tr>
|
198 |
<tr class="fb_image_overlay_options">
|
199 |
<td colspan="2" class="info">
|
200 |
-
- <?php _e( 'URL (with http(s)://)', 'wonderm00ns-simple-facebook-open-graph-tags' )
|
201 |
<br/>
|
202 |
- <?php printf( __( 'Size: %dx%dpx', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H); ?>
|
203 |
</td>
|
204 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
<?php } else { ?>
|
206 |
<tr>
|
207 |
<td colspan="2" class="info">
|
180 |
<?php if ( extension_loaded('gd') ) { ?>
|
181 |
<tr>
|
182 |
<td colspan="2" class="info">
|
183 |
+
- <?php printf( __( 'The original image will be resized/cropped to %dx%dpx, or shrunk and centered, and the chosen PNG (that should also have this size) will be overlaid on it. It will only work for locally hosted images.', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H);?>
|
184 |
<br/>
|
185 |
- <?php printf( __( 'You can see an example of the end result <a href="%s" target="_blank">here</a>', '' ), 'https://www.flickr.com/photos/wonderm00n/29890263040/in/dateposted-public/' ); ?>
|
186 |
<br/>
|
197 |
</tr>
|
198 |
<tr class="fb_image_overlay_options">
|
199 |
<td colspan="2" class="info">
|
200 |
+
- <?php _e( 'URL (with http(s)://)', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
201 |
<br/>
|
202 |
- <?php printf( __( 'Size: %dx%dpx', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H); ?>
|
203 |
</td>
|
204 |
</tr>
|
205 |
+
|
206 |
+
<tr class="fb_image_overlay_options">
|
207 |
+
<th><?php _e( 'Original image behavior', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
208 |
+
<td>
|
209 |
+
<select name="wonderm00n_open_graph_settings[fb_image_overlay_original_behavior]" id="fb_image_overlay_original_behavior">
|
210 |
+
<option value=""<?php if (trim($options['fb_image_overlay_original_behavior'])=='' ) echo ' selected="selected"'; ?>><?php _e( 'Resize and crop (default)', 'wonderm00ns-simple-facebook-open-graph-tags' );?> </option>
|
211 |
+
<option value="shrinkcenter"<?php if (trim($options['fb_image_overlay_original_behavior'])=='shrinkcenter' ) echo ' selected="selected"'; ?>><?php _e( 'Shrink and center', 'wonderm00ns-simple-facebook-open-graph-tags' );?> </option>
|
212 |
+
</select>
|
213 |
+
</td>
|
214 |
+
</tr>
|
215 |
+
<tr class="fb_image_overlay_options">
|
216 |
+
<td colspan="2" class="info">
|
217 |
+
- <?php _e( 'By default, the original image will be resized and cropped to fill the entire canvas, but you can also choose to shrink and center it over a white background', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
218 |
+
</td>
|
219 |
+
</tr>
|
220 |
<?php } else { ?>
|
221 |
<tr>
|
222 |
<td colspan="2" class="info">
|
admin/options-page-schema.php
CHANGED
@@ -4,6 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
4 |
|
5 |
?>
|
6 |
<div class="menu_containt_div" id="tabs-4">
|
|
|
7 |
<p><?php _e( 'Schema.org tags used by Google+ to render link share posts.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
8 |
<div class="postbox">
|
9 |
<h3 class="hndle"><i class="dashicons-before dashicons-googleplus"></i> <?php _e( 'Google+ / Schema.org Tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
4 |
|
5 |
?>
|
6 |
<div class="menu_containt_div" id="tabs-4">
|
7 |
+
<p><strong><?php _e( 'This feature is deprecated and will soon be removed.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></strong></p>
|
8 |
<p><?php _e( 'Schema.org tags used by Google+ to render link share posts.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
9 |
<div class="postbox">
|
10 |
<h3 class="hndle"><i class="dashicons-before dashicons-googleplus"></i> <?php _e( 'Google+ / Schema.org Tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
admin/options-page.php
CHANGED
@@ -47,6 +47,7 @@ $out_link_utm='?utm_source='.urlencode(home_url()).'&utm_medium=link&utm
|
|
47 |
<a class="nav-tab" href="#tabs-4" data-tab-index="3">
|
48 |
<i class="dashicons-before dashicons-googleplus"></i>
|
49 |
<?php _e( 'Schema', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
|
|
50 |
</a>
|
51 |
</li>
|
52 |
<li>
|
47 |
<a class="nav-tab" href="#tabs-4" data-tab-index="3">
|
48 |
<i class="dashicons-before dashicons-googleplus"></i>
|
49 |
<?php _e( 'Schema', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
50 |
+
(<?php _e( 'deprecated', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>)
|
51 |
</a>
|
52 |
</li>
|
53 |
<li>
|
fbimg.php
CHANGED
@@ -5,6 +5,11 @@
|
|
5 |
|
6 |
if ( $webdados_fb = webdados_fb_run() ) {
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
if ( isset($_GET['img']) && trim($_GET['img'])!='' ) {
|
9 |
if ( $url=parse_url(urldecode(trim($_GET['img']))) ) {
|
10 |
if ( $url['host']==$_SERVER['HTTP_HOST'] ) {
|
@@ -38,14 +43,61 @@
|
|
38 |
$thumb_fill_color = apply_filters('fb_og_thumb_fill_color', array(255, 255, 255) );
|
39 |
imagefill($thumb, 0, 0, imagecolorallocate ( $thumb , $thumb_fill_color[0] , $thumb_fill_color[1] , $thumb_fill_color[2] ) );
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
//Barra
|
50 |
if ( trim($webdados_fb->options['fb_image_overlay_image'])!='' ) {
|
51 |
$barra_url = parse_url( apply_filters( 'fb_og_thumb_image', trim($webdados_fb->options['fb_image_overlay_image']), intval($_GET['post_id']) ) );
|
@@ -81,29 +133,29 @@
|
|
81 |
|
82 |
function imagecreatefromfile( $filename ) {
|
83 |
try {
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
}
|
109 |
}
|
5 |
|
6 |
if ( $webdados_fb = webdados_fb_run() ) {
|
7 |
|
8 |
+
//Fix GET on some weird scenarios
|
9 |
+
foreach ($_GET as $key => $value) {
|
10 |
+
$_GET[ str_replace( 'amp;', '', $key ) ] = $value;
|
11 |
+
}
|
12 |
+
|
13 |
if ( isset($_GET['img']) && trim($_GET['img'])!='' ) {
|
14 |
if ( $url=parse_url(urldecode(trim($_GET['img']))) ) {
|
15 |
if ( $url['host']==$_SERVER['HTTP_HOST'] ) {
|
43 |
$thumb_fill_color = apply_filters('fb_og_thumb_fill_color', array(255, 255, 255) );
|
44 |
imagefill($thumb, 0, 0, imagecolorallocate ( $thumb , $thumb_fill_color[0] , $thumb_fill_color[1] , $thumb_fill_color[2] ) );
|
45 |
|
46 |
+
$original_behavior = isset( $webdados_fb->options['fb_image_overlay_original_behavior'] ) ? trim( $webdados_fb->options['fb_image_overlay_original_behavior'] ) : '';
|
47 |
+
switch( $original_behavior ) {
|
48 |
+
|
49 |
+
case 'shrinkcenter':
|
50 |
+
// Shrink and center
|
51 |
+
if ( $width <= $thumb_width && $height <= $thumb_height ) {
|
52 |
+
//Smaller image
|
53 |
+
imagecopyresampled($thumb,
|
54 |
+
$image,
|
55 |
+
0 - ($width - $thumb_width) / 2, // Center the image horizontally
|
56 |
+
0 - ($height - $thumb_height) / 2, // Center the image vertically
|
57 |
+
0, 0,
|
58 |
+
$width, $height,
|
59 |
+
$width, $height
|
60 |
+
);
|
61 |
+
} else {
|
62 |
+
if ( $width > $thumb_width ) {
|
63 |
+
$new_height = $height / ($width / $thumb_width);
|
64 |
+
imagecopyresampled($thumb,
|
65 |
+
$image,
|
66 |
+
0, // Center the image horizontally
|
67 |
+
0 - ($new_height - $thumb_height) / 2, // Center the image vertically
|
68 |
+
0, 0,
|
69 |
+
$thumb_width, $new_height,
|
70 |
+
$width, $height
|
71 |
+
);
|
72 |
+
} else {
|
73 |
+
$new_width = $width / ($height / $thumb_height);
|
74 |
+
imagecopyresampled($thumb,
|
75 |
+
$image,
|
76 |
+
0 - ($new_width - $thumb_width) / 2, // Center the image horizontally
|
77 |
+
0, // Center the image vertically
|
78 |
+
0, 0,
|
79 |
+
$new_width, $thumb_height,
|
80 |
+
$width, $height
|
81 |
+
);
|
82 |
+
}
|
83 |
+
}
|
84 |
+
break;
|
85 |
+
|
86 |
+
default:
|
87 |
+
// Resize and crop
|
88 |
+
imagecopyresampled($thumb,
|
89 |
+
$image,
|
90 |
+
0 - ($new_width - $thumb_width) / 2, // Center the image horizontally
|
91 |
+
0 - ($new_height - $thumb_height) / 2, // Center the image vertically
|
92 |
+
0, 0,
|
93 |
+
$new_width, $new_height,
|
94 |
+
$width, $height);
|
95 |
+
break;
|
96 |
+
}
|
97 |
+
|
98 |
+
//Allow developers to change the thumb
|
99 |
+
$thumb = apply_filters( 'fb_og_thumb', $thumb, $_GET );
|
100 |
+
|
101 |
//Barra
|
102 |
if ( trim($webdados_fb->options['fb_image_overlay_image'])!='' ) {
|
103 |
$barra_url = parse_url( apply_filters( 'fb_og_thumb_image', trim($webdados_fb->options['fb_image_overlay_image']), intval($_GET['post_id']) ) );
|
133 |
|
134 |
function imagecreatefromfile( $filename ) {
|
135 |
try {
|
136 |
+
if (!file_exists($filename)) {
|
137 |
+
throw new InvalidArgumentException('File "'.htmlentities($filename).'" not found.');
|
138 |
+
}
|
139 |
+
switch ( strtolower( pathinfo( $filename, PATHINFO_EXTENSION ))) {
|
140 |
+
case 'jpeg':
|
141 |
+
case 'jpg':
|
142 |
+
return imagecreatefromjpeg($filename);
|
143 |
+
break;
|
144 |
|
145 |
+
case 'png':
|
146 |
+
return imagecreatefrompng($filename);
|
147 |
+
break;
|
148 |
|
149 |
+
case 'gif':
|
150 |
+
return imagecreatefromgif($filename);
|
151 |
+
break;
|
152 |
|
153 |
+
default:
|
154 |
+
throw new InvalidArgumentException('File "'.htmlentities($filename).'" is not valid jpg, png or gif image.');
|
155 |
+
break;
|
156 |
+
}
|
157 |
+
} catch (Exception $e) {
|
158 |
+
die( 'Caught exception: '. $e->getMessage() );
|
159 |
+
return false;
|
160 |
}
|
161 |
}
|
includes/class-webdados-fb-open-graph.php
CHANGED
@@ -85,83 +85,84 @@ class Webdados_FB {
|
|
85 |
/* All Settings and sanitize function */
|
86 |
public function all_options() {
|
87 |
return array(
|
88 |
-
'fb_app_id_show'
|
89 |
-
'fb_app_id'
|
90 |
-
'fb_admin_id_show'
|
91 |
-
'fb_admin_id'
|
92 |
-
'fb_locale_show'
|
93 |
-
'fb_locale'
|
94 |
-
'fb_sitename_show'
|
95 |
-
'fb_title_show'
|
96 |
-
'fb_title_show_schema'
|
97 |
-
'fb_title_show_twitter'
|
98 |
-
'fb_url_show'
|
99 |
-
'fb_url_show_twitter'
|
100 |
-
'fb_url_canonical'
|
101 |
-
'fb_url_add_trailing'
|
102 |
-
'fb_type_show'
|
103 |
-
'fb_type_show_schema'
|
104 |
-
'fb_type_homepage'
|
105 |
-
'fb_type_schema_homepage'
|
106 |
-
'fb_type_schema_post'
|
107 |
-
'fb_article_dates_show'
|
108 |
-
'fb_article_dates_show_schema'
|
109 |
-
'fb_article_sections_show'
|
110 |
-
'fb_publisher_show'
|
111 |
-
'fb_publisher'
|
112 |
-
'fb_publisher_show_schema'
|
113 |
-
'fb_publisher_schema'
|
114 |
-
'fb_publisher_show_twitter'
|
115 |
-
'fb_publisher_twitteruser'
|
116 |
-
'fb_author_show'
|
117 |
-
'fb_author_show_schema'
|
118 |
-
'fb_author_show_meta'
|
119 |
-
'fb_author_show_linkrelgp'
|
120 |
-
'fb_author_show_twitter'
|
121 |
-
'fb_author_hide_on_pages'
|
122 |
-
'fb_desc_show'
|
123 |
-
'fb_desc_show_meta'
|
124 |
-
'fb_desc_show_schema'
|
125 |
-
'fb_desc_show_twitter'
|
126 |
-
'fb_desc_chars'
|
127 |
-
'fb_desc_homepage'
|
128 |
-
'fb_desc_homepage_customtext'
|
129 |
-
'fb_desc_default_option'
|
130 |
-
'fb_desc_default'
|
131 |
-
'fb_image_show'
|
132 |
-
'fb_image_size_show'
|
133 |
-
'fb_image_show_schema'
|
134 |
-
'fb_image_show_twitter'
|
135 |
-
'fb_image'
|
136 |
-
'fb_image_rss'
|
137 |
-
'fb_image_use_specific'
|
138 |
-
'fb_image_use_featured'
|
139 |
-
'fb_image_use_content'
|
140 |
-
'fb_image_use_media'
|
141 |
-
'fb_image_use_default'
|
142 |
-
'fb_image_use_mshot'
|
143 |
-
'fb_adv_disable_image_size'
|
144 |
-
'fb_image_min_size'
|
145 |
-
'fb_show_wpseoyoast'
|
146 |
-
'fb_show_aioseop'
|
147 |
-
'fb_show_subheading'
|
148 |
-
'fb_subheading_position'
|
149 |
-
'fb_show_businessdirectoryplugin'
|
150 |
-
'fb_keep_data_uninstall'
|
151 |
-
'fb_adv_force_local'
|
152 |
-
'fb_adv_notify_fb'
|
153 |
-
'fb_adv_notify_fb_app_id'
|
154 |
-
'fb_adv_notify_fb_app_secret'
|
155 |
-
'fb_adv_supress_fb_notice'
|
156 |
-
'fb_twitter_card_type'
|
157 |
-
'fb_wc_usecategthumb'
|
158 |
-
'fb_wc_useproductgallery'
|
159 |
-
'fb_wc_usepg_png_overlay'
|
160 |
-
'fb_image_overlay'
|
161 |
-
'fb_image_overlay_image'
|
162 |
-
'
|
163 |
-
'
|
164 |
-
'
|
|
|
165 |
);
|
166 |
}
|
167 |
|
85 |
/* All Settings and sanitize function */
|
86 |
public function all_options() {
|
87 |
return array(
|
88 |
+
'fb_app_id_show' => 'intval',
|
89 |
+
'fb_app_id' => 'trim',
|
90 |
+
'fb_admin_id_show' => 'intval',
|
91 |
+
'fb_admin_id' => 'trim',
|
92 |
+
'fb_locale_show' => 'intval',
|
93 |
+
'fb_locale' => 'trim',
|
94 |
+
'fb_sitename_show' => 'intval',
|
95 |
+
'fb_title_show' => 'intval',
|
96 |
+
'fb_title_show_schema' => 'intval',
|
97 |
+
'fb_title_show_twitter' => 'intval',
|
98 |
+
'fb_url_show' => 'intval',
|
99 |
+
'fb_url_show_twitter' => 'intval',
|
100 |
+
'fb_url_canonical' => 'intval',
|
101 |
+
'fb_url_add_trailing' => 'intval',
|
102 |
+
'fb_type_show' => 'intval',
|
103 |
+
'fb_type_show_schema' => 'intval',
|
104 |
+
'fb_type_homepage' => 'trim',
|
105 |
+
'fb_type_schema_homepage' => 'trim',
|
106 |
+
'fb_type_schema_post' => 'trim',
|
107 |
+
'fb_article_dates_show' => 'intval',
|
108 |
+
'fb_article_dates_show_schema' => 'intval',
|
109 |
+
'fb_article_sections_show' => 'intval',
|
110 |
+
'fb_publisher_show' => 'intval',
|
111 |
+
'fb_publisher' => 'trim',
|
112 |
+
'fb_publisher_show_schema' => 'intval',
|
113 |
+
'fb_publisher_schema' => 'trim',
|
114 |
+
'fb_publisher_show_twitter' => 'intval',
|
115 |
+
'fb_publisher_twitteruser' => 'trim',
|
116 |
+
'fb_author_show' => 'intval',
|
117 |
+
'fb_author_show_schema' => 'intval',
|
118 |
+
'fb_author_show_meta' => 'intval',
|
119 |
+
'fb_author_show_linkrelgp' => 'intval',
|
120 |
+
'fb_author_show_twitter' => 'intval',
|
121 |
+
'fb_author_hide_on_pages' => 'intval',
|
122 |
+
'fb_desc_show' => 'intval',
|
123 |
+
'fb_desc_show_meta' => 'intval',
|
124 |
+
'fb_desc_show_schema' => 'intval',
|
125 |
+
'fb_desc_show_twitter' => 'intval',
|
126 |
+
'fb_desc_chars' => 'intval',
|
127 |
+
'fb_desc_homepage' => 'trim',
|
128 |
+
'fb_desc_homepage_customtext' => 'trim',
|
129 |
+
'fb_desc_default_option' => 'trim',
|
130 |
+
'fb_desc_default' => 'trim',
|
131 |
+
'fb_image_show' => 'intval',
|
132 |
+
'fb_image_size_show' => 'intval',
|
133 |
+
'fb_image_show_schema' => 'intval',
|
134 |
+
'fb_image_show_twitter' => 'intval',
|
135 |
+
'fb_image' => 'trim',
|
136 |
+
'fb_image_rss' => 'intval',
|
137 |
+
'fb_image_use_specific' => 'intval',
|
138 |
+
'fb_image_use_featured' => 'intval',
|
139 |
+
'fb_image_use_content' => 'intval',
|
140 |
+
'fb_image_use_media' => 'intval',
|
141 |
+
'fb_image_use_default' => 'intval',
|
142 |
+
'fb_image_use_mshot' => 'intval',
|
143 |
+
'fb_adv_disable_image_size' => 'intval',
|
144 |
+
'fb_image_min_size' => 'intval',
|
145 |
+
'fb_show_wpseoyoast' => 'intval',
|
146 |
+
'fb_show_aioseop' => 'intval',
|
147 |
+
'fb_show_subheading' => 'intval',
|
148 |
+
'fb_subheading_position' => 'trim',
|
149 |
+
'fb_show_businessdirectoryplugin' => 'intval',
|
150 |
+
'fb_keep_data_uninstall' => 'intval',
|
151 |
+
'fb_adv_force_local' => 'intval',
|
152 |
+
'fb_adv_notify_fb' => 'intval',
|
153 |
+
'fb_adv_notify_fb_app_id' => 'trim',
|
154 |
+
'fb_adv_notify_fb_app_secret' => 'trim',
|
155 |
+
'fb_adv_supress_fb_notice' => 'intval',
|
156 |
+
'fb_twitter_card_type' => 'trim',
|
157 |
+
'fb_wc_usecategthumb' => 'intval',
|
158 |
+
'fb_wc_useproductgallery' => 'intval',
|
159 |
+
'fb_wc_usepg_png_overlay' => 'intval',
|
160 |
+
'fb_image_overlay' => 'intval',
|
161 |
+
'fb_image_overlay_image' => 'trim',
|
162 |
+
'fb_image_overlay_original_behavior' => 'trim',
|
163 |
+
'fb_publisher_show_meta' => 'intval',
|
164 |
+
'fb_declaration_method' => 'trim',
|
165 |
+
'settings_last_tab' => 'intval',
|
166 |
);
|
167 |
}
|
168 |
|
lang/wonderm00ns-simple-facebook-open-graph-tags.pot
CHANGED
@@ -4,14 +4,14 @@ msgstr ""
|
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Facebook Open Graph, Google+ and Twitter Card Tags "
|
6 |
"2.0.3\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"PO-Revision-Date: 2016-09-26 14:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
-
"X-Generator: Poedit 2.
|
15 |
"X-Poedit-Basepath: ..\n"
|
16 |
"X-Poedit-WPHeader: wonderm00n-open-graph.php\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
@@ -223,8 +223,8 @@ msgstr ""
|
|
223 |
#: admin/options-page-facebook.php:52 admin/options-page-facebook.php:66
|
224 |
#: admin/options-page-facebook.php:82 admin/options-page-facebook.php:114
|
225 |
#: admin/options-page-facebook.php:293 admin/options-page-general.php:126
|
226 |
-
#: admin/options-page-schema.php:
|
227 |
-
#: admin/options-page-schema.php:
|
228 |
#: admin/options-page-seo.php:32 admin/options-page-seo.php:54
|
229 |
#: admin/options-page-twitter.php:24 admin/options-page-twitter.php:38
|
230 |
#: admin/options-page-twitter.php:52 admin/options-page-twitter.php:66
|
@@ -313,12 +313,12 @@ msgstr ""
|
|
313 |
msgid "Include URL"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: admin/options-page-facebook.php:57 admin/options-page-schema.php:
|
317 |
#: admin/options-page-twitter.php:43
|
318 |
msgid "Include Description"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: admin/options-page-facebook.php:71 admin/options-page-schema.php:
|
322 |
#: admin/options-page-twitter.php:57
|
323 |
msgid "Include Image"
|
324 |
msgstr ""
|
@@ -336,7 +336,7 @@ msgid "Include Image Dimensions"
|
|
336 |
msgstr ""
|
337 |
|
338 |
#: admin/options-page-facebook.php:94 admin/options-page-facebook.php:157
|
339 |
-
#: admin/options-page-schema.php:
|
340 |
msgid "and"
|
341 |
msgstr ""
|
342 |
|
@@ -347,7 +347,7 @@ msgid ""
|
|
347 |
"processing time"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: admin/options-page-facebook.php:101 admin/options-page-schema.php:
|
351 |
msgid "Include Type"
|
352 |
msgstr ""
|
353 |
|
@@ -362,7 +362,7 @@ msgstr ""
|
|
362 |
msgid "Additional types may be used depending on 3rd party integrations"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: admin/options-page-facebook.php:119 admin/options-page-schema.php:
|
366 |
msgid "Homepage Type"
|
367 |
msgstr ""
|
368 |
|
@@ -372,8 +372,8 @@ msgid ""
|
|
372 |
"<i>website</i>"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/options-page-facebook.php:136 admin/options-page-schema.php:
|
376 |
-
#: admin/options-page-schema.php:
|
377 |
msgid "Include Post/Page Author"
|
378 |
msgstr ""
|
379 |
|
@@ -381,12 +381,12 @@ msgstr ""
|
|
381 |
msgid "The user's Facebook URL must be filled in on his profile"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: admin/options-page-facebook.php:150 admin/options-page-schema.php:
|
385 |
msgid "Include Published/Modified Dates"
|
386 |
msgstr ""
|
387 |
|
388 |
#: admin/options-page-facebook.php:159 admin/options-page-facebook.php:173
|
389 |
-
#: admin/options-page-schema.php:
|
390 |
msgid "For posts only"
|
391 |
msgstr ""
|
392 |
|
@@ -398,7 +398,7 @@ msgstr ""
|
|
398 |
msgid "from the categories names"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: admin/options-page-facebook.php:178 admin/options-page-schema.php:
|
402 |
#: admin/options-page-seo.php:73 admin/options-page-twitter.php:85
|
403 |
msgid "Include Publisher"
|
404 |
msgstr ""
|
@@ -659,9 +659,9 @@ msgstr ""
|
|
659 |
#: admin/options-page-general.php:183
|
660 |
#, php-format
|
661 |
msgid ""
|
662 |
-
"The original image will be resized/cropped to %dx%dpx
|
663 |
-
"(that should also have this size) will be
|
664 |
-
"for locally hosted images."
|
665 |
msgstr ""
|
666 |
|
667 |
#: admin/options-page-general.php:185
|
@@ -687,99 +687,118 @@ msgstr ""
|
|
687 |
msgid "Size: %dx%dpx"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: admin/options-page-general.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
691 |
#, php-format
|
692 |
msgid ""
|
693 |
"You need the <a href=\"%s\" target=\"_blank\">PHP GD library</a> to use this "
|
694 |
"feature. Please ask your hosting company to enable it."
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: admin/options-page-general.php:
|
698 |
msgid "Add image to RSS/RSS2 feeds"
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: admin/options-page-general.php:
|
702 |
msgid "For auto-posting apps like RSS Graffiti, twitterfeed, ..."
|
703 |
msgstr ""
|
704 |
|
705 |
-
#: admin/options-page-general.php:
|
706 |
msgid "Force getimagesize on local file"
|
707 |
msgstr ""
|
708 |
|
709 |
-
#: admin/options-page-general.php:
|
710 |
msgid ""
|
711 |
"This is an advanced option: Don't mess with this unless you know what you're "
|
712 |
"doing"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: admin/options-page-general.php:
|
716 |
msgid "Force getimagesize on local file even if allow_url_fopen=1"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: admin/options-page-general.php:
|
720 |
msgid ""
|
721 |
"May cause problems with some multisite configurations but fixes \"HTTP "
|
722 |
"request failed\" errors"
|
723 |
msgstr ""
|
724 |
|
725 |
-
#: admin/options-page-general.php:
|
726 |
msgid "Do not get image size"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: admin/options-page-general.php:
|
730 |
msgid ""
|
731 |
"You should only activate this option if you're getting fatal errors (white "
|
732 |
"screen of death) and only keep it active if this options does solve those "
|
733 |
"errors"
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: admin/options-page-general.php:
|
737 |
msgid "Should not be needed on version 2.2 and above"
|
738 |
msgstr ""
|
739 |
|
740 |
-
#: admin/options-page-general.php:
|
741 |
msgid ""
|
742 |
"This can render the \"Add image to RSS/RSS2 feeds\" and \"Open Graph - "
|
743 |
"Include Image Dimensions\" options useless"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: admin/options-page-general.php:
|
747 |
msgid "URL settings"
|
748 |
msgstr ""
|
749 |
|
750 |
-
#: admin/options-page-general.php:
|
751 |
msgid "Add trailing slash at the end"
|
752 |
msgstr ""
|
753 |
|
754 |
-
#: admin/options-page-general.php:
|
755 |
msgid "If missing, a trailing slash will be added at the end"
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: admin/options-page-general.php:
|
759 |
msgid "Homepage example:"
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: admin/options-page-general.php:
|
763 |
msgid "Author settings"
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: admin/options-page-general.php:
|
767 |
msgid "Hide Author on Pages"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: admin/options-page-general.php:
|
771 |
msgid "Hides all Author tags on Pages"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: admin/options-page-general.php:
|
775 |
msgid "Other settings"
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: admin/options-page-general.php:
|
779 |
msgid "Keep data on uninstall"
|
780 |
msgstr ""
|
781 |
|
782 |
-
#: admin/options-page-general.php:
|
783 |
msgid ""
|
784 |
"Keep the plugin settings on the database even if the plugin is uninstalled"
|
785 |
msgstr ""
|
@@ -864,48 +883,52 @@ msgid "Donate in Euros"
|
|
864 |
msgstr ""
|
865 |
|
866 |
#: admin/options-page-schema.php:7
|
|
|
|
|
|
|
|
|
867 |
msgid "Schema.org tags used by Google+ to render link share posts."
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: admin/options-page-schema.php:
|
871 |
msgid "Google+ / Schema.org Tags"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: admin/options-page-schema.php:
|
875 |
msgid "Include Title"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: admin/options-page-schema.php:
|
879 |
msgid "Experimental"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: admin/options-page-schema.php:
|
883 |
msgid ""
|
884 |
"Added to the HTML tag, if you want to avoid W3C and Structured Data "
|
885 |
"validation errors"
|
886 |
msgstr ""
|
887 |
|
888 |
-
#: admin/options-page-schema.php:
|
889 |
msgid "Default (including Post/Page) Type"
|
890 |
msgstr ""
|
891 |
|
892 |
-
#: admin/options-page-schema.php:
|
893 |
msgid "The user's Google+ URL must be filled in on his profile"
|
894 |
msgstr ""
|
895 |
|
896 |
-
#: admin/options-page-schema.php:
|
897 |
msgid "From the user Display name"
|
898 |
msgstr ""
|
899 |
|
900 |
-
#: admin/options-page-schema.php:
|
901 |
msgid "The website's Google+ Page"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: admin/options-page-schema.php:
|
905 |
msgid "Website's Google+ Page"
|
906 |
msgstr ""
|
907 |
|
908 |
-
#: admin/options-page-schema.php:
|
909 |
msgid "Google+ Page URL (with https://)"
|
910 |
msgstr ""
|
911 |
|
@@ -1026,15 +1049,19 @@ msgstr ""
|
|
1026 |
msgid "Schema"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
-
#: admin/options-page.php:
|
|
|
|
|
|
|
|
|
1030 |
msgid "SEO tags"
|
1031 |
msgstr ""
|
1032 |
|
1033 |
-
#: admin/options-page.php:
|
1034 |
msgid "3rd party"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: admin/options-page.php:
|
1038 |
msgid "Tools"
|
1039 |
msgstr ""
|
1040 |
|
@@ -1058,8 +1085,8 @@ msgstr ""
|
|
1058 |
|
1059 |
#. Plugin URI of the plugin/theme
|
1060 |
msgid ""
|
1061 |
-
"https://www.webdados.pt/
|
1062 |
-
"wordpress/
|
1063 |
msgstr ""
|
1064 |
|
1065 |
#. Description of the plugin/theme
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Facebook Open Graph, Google+ and Twitter Card Tags "
|
6 |
"2.0.3\n"
|
7 |
+
"POT-Creation-Date: 2020-04-28 11:38+0100\n"
|
8 |
"PO-Revision-Date: 2016-09-26 14:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"X-Generator: Poedit 2.3\n"
|
15 |
"X-Poedit-Basepath: ..\n"
|
16 |
"X-Poedit-WPHeader: wonderm00n-open-graph.php\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
223 |
#: admin/options-page-facebook.php:52 admin/options-page-facebook.php:66
|
224 |
#: admin/options-page-facebook.php:82 admin/options-page-facebook.php:114
|
225 |
#: admin/options-page-facebook.php:293 admin/options-page-general.php:126
|
226 |
+
#: admin/options-page-schema.php:25 admin/options-page-schema.php:39
|
227 |
+
#: admin/options-page-schema.php:53 admin/options-page-schema.php:71
|
228 |
#: admin/options-page-seo.php:32 admin/options-page-seo.php:54
|
229 |
#: admin/options-page-twitter.php:24 admin/options-page-twitter.php:38
|
230 |
#: admin/options-page-twitter.php:52 admin/options-page-twitter.php:66
|
313 |
msgid "Include URL"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: admin/options-page-facebook.php:57 admin/options-page-schema.php:30
|
317 |
#: admin/options-page-twitter.php:43
|
318 |
msgid "Include Description"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: admin/options-page-facebook.php:71 admin/options-page-schema.php:44
|
322 |
#: admin/options-page-twitter.php:57
|
323 |
msgid "Include Image"
|
324 |
msgstr ""
|
336 |
msgstr ""
|
337 |
|
338 |
#: admin/options-page-facebook.php:94 admin/options-page-facebook.php:157
|
339 |
+
#: admin/options-page-schema.php:23 admin/options-page-schema.php:143
|
340 |
msgid "and"
|
341 |
msgstr ""
|
342 |
|
347 |
"processing time"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: admin/options-page-facebook.php:101 admin/options-page-schema.php:58
|
351 |
msgid "Include Type"
|
352 |
msgstr ""
|
353 |
|
362 |
msgid "Additional types may be used depending on 3rd party integrations"
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: admin/options-page-facebook.php:119 admin/options-page-schema.php:76
|
366 |
msgid "Homepage Type"
|
367 |
msgstr ""
|
368 |
|
372 |
"<i>website</i>"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/options-page-facebook.php:136 admin/options-page-schema.php:108
|
376 |
+
#: admin/options-page-schema.php:122 admin/options-page-twitter.php:71
|
377 |
msgid "Include Post/Page Author"
|
378 |
msgstr ""
|
379 |
|
381 |
msgid "The user's Facebook URL must be filled in on his profile"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: admin/options-page-facebook.php:150 admin/options-page-schema.php:136
|
385 |
msgid "Include Published/Modified Dates"
|
386 |
msgstr ""
|
387 |
|
388 |
#: admin/options-page-facebook.php:159 admin/options-page-facebook.php:173
|
389 |
+
#: admin/options-page-schema.php:145
|
390 |
msgid "For posts only"
|
391 |
msgstr ""
|
392 |
|
398 |
msgid "from the categories names"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: admin/options-page-facebook.php:178 admin/options-page-schema.php:150
|
402 |
#: admin/options-page-seo.php:73 admin/options-page-twitter.php:85
|
403 |
msgid "Include Publisher"
|
404 |
msgstr ""
|
659 |
#: admin/options-page-general.php:183
|
660 |
#, php-format
|
661 |
msgid ""
|
662 |
+
"The original image will be resized/cropped to %dx%dpx, or shrunk and "
|
663 |
+
"centered, and the chosen PNG (that should also have this size) will be "
|
664 |
+
"overlaid on it. It will only work for locally hosted images."
|
665 |
msgstr ""
|
666 |
|
667 |
#: admin/options-page-general.php:185
|
687 |
msgid "Size: %dx%dpx"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: admin/options-page-general.php:207
|
691 |
+
msgid "Original image behavior"
|
692 |
+
msgstr ""
|
693 |
+
|
694 |
+
#: admin/options-page-general.php:210
|
695 |
+
msgid "Resize and crop (default)"
|
696 |
+
msgstr ""
|
697 |
+
|
698 |
+
#: admin/options-page-general.php:211
|
699 |
+
msgid "Shrink and center"
|
700 |
+
msgstr ""
|
701 |
+
|
702 |
+
#: admin/options-page-general.php:217
|
703 |
+
msgid ""
|
704 |
+
"By default, the original image will be resized and cropped to fill the "
|
705 |
+
"entire canvas, but you can also choose to shrink and center it over a white "
|
706 |
+
"background"
|
707 |
+
msgstr ""
|
708 |
+
|
709 |
+
#: admin/options-page-general.php:223
|
710 |
#, php-format
|
711 |
msgid ""
|
712 |
"You need the <a href=\"%s\" target=\"_blank\">PHP GD library</a> to use this "
|
713 |
"feature. Please ask your hosting company to enable it."
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: admin/options-page-general.php:229
|
717 |
msgid "Add image to RSS/RSS2 feeds"
|
718 |
msgstr ""
|
719 |
|
720 |
+
#: admin/options-page-general.php:236
|
721 |
msgid "For auto-posting apps like RSS Graffiti, twitterfeed, ..."
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: admin/options-page-general.php:241
|
725 |
msgid "Force getimagesize on local file"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: admin/options-page-general.php:248 admin/options-page-general.php:264
|
729 |
msgid ""
|
730 |
"This is an advanced option: Don't mess with this unless you know what you're "
|
731 |
"doing"
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: admin/options-page-general.php:250
|
735 |
msgid "Force getimagesize on local file even if allow_url_fopen=1"
|
736 |
msgstr ""
|
737 |
|
738 |
+
#: admin/options-page-general.php:252
|
739 |
msgid ""
|
740 |
"May cause problems with some multisite configurations but fixes \"HTTP "
|
741 |
"request failed\" errors"
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: admin/options-page-general.php:257
|
745 |
msgid "Do not get image size"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: admin/options-page-general.php:266
|
749 |
msgid ""
|
750 |
"You should only activate this option if you're getting fatal errors (white "
|
751 |
"screen of death) and only keep it active if this options does solve those "
|
752 |
"errors"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: admin/options-page-general.php:268
|
756 |
msgid "Should not be needed on version 2.2 and above"
|
757 |
msgstr ""
|
758 |
|
759 |
+
#: admin/options-page-general.php:270
|
760 |
msgid ""
|
761 |
"This can render the \"Add image to RSS/RSS2 feeds\" and \"Open Graph - "
|
762 |
"Include Image Dimensions\" options useless"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: admin/options-page-general.php:281
|
766 |
msgid "URL settings"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: admin/options-page-general.php:287
|
770 |
msgid "Add trailing slash at the end"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: admin/options-page-general.php:294
|
774 |
msgid "If missing, a trailing slash will be added at the end"
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: admin/options-page-general.php:296
|
778 |
msgid "Homepage example:"
|
779 |
msgstr ""
|
780 |
|
781 |
+
#: admin/options-page-general.php:305
|
782 |
msgid "Author settings"
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: admin/options-page-general.php:311
|
786 |
msgid "Hide Author on Pages"
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: admin/options-page-general.php:318
|
790 |
msgid "Hides all Author tags on Pages"
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: admin/options-page-general.php:327
|
794 |
msgid "Other settings"
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: admin/options-page-general.php:333
|
798 |
msgid "Keep data on uninstall"
|
799 |
msgstr ""
|
800 |
|
801 |
+
#: admin/options-page-general.php:340
|
802 |
msgid ""
|
803 |
"Keep the plugin settings on the database even if the plugin is uninstalled"
|
804 |
msgstr ""
|
883 |
msgstr ""
|
884 |
|
885 |
#: admin/options-page-schema.php:7
|
886 |
+
msgid "This feature is deprecated and will soon be removed."
|
887 |
+
msgstr ""
|
888 |
+
|
889 |
+
#: admin/options-page-schema.php:8
|
890 |
msgid "Schema.org tags used by Google+ to render link share posts."
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: admin/options-page-schema.php:10
|
894 |
msgid "Google+ / Schema.org Tags"
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: admin/options-page-schema.php:16 admin/options-page-twitter.php:15
|
898 |
msgid "Include Title"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: admin/options-page-schema.php:67
|
902 |
msgid "Experimental"
|
903 |
msgstr ""
|
904 |
|
905 |
+
#: admin/options-page-schema.php:69
|
906 |
msgid ""
|
907 |
"Added to the HTML tag, if you want to avoid W3C and Structured Data "
|
908 |
"validation errors"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: admin/options-page-schema.php:90
|
912 |
msgid "Default (including Post/Page) Type"
|
913 |
msgstr ""
|
914 |
|
915 |
+
#: admin/options-page-schema.php:117
|
916 |
msgid "The user's Google+ URL must be filled in on his profile"
|
917 |
msgstr ""
|
918 |
|
919 |
+
#: admin/options-page-schema.php:131 admin/options-page-seo.php:68
|
920 |
msgid "From the user Display name"
|
921 |
msgstr ""
|
922 |
|
923 |
+
#: admin/options-page-schema.php:159
|
924 |
msgid "The website's Google+ Page"
|
925 |
msgstr ""
|
926 |
|
927 |
+
#: admin/options-page-schema.php:164
|
928 |
msgid "Website's Google+ Page"
|
929 |
msgstr ""
|
930 |
|
931 |
+
#: admin/options-page-schema.php:171
|
932 |
msgid "Google+ Page URL (with https://)"
|
933 |
msgstr ""
|
934 |
|
1049 |
msgid "Schema"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
+
#: admin/options-page.php:50
|
1053 |
+
msgid "deprecated"
|
1054 |
+
msgstr ""
|
1055 |
+
|
1056 |
+
#: admin/options-page.php:56
|
1057 |
msgid "SEO tags"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
+
#: admin/options-page.php:62
|
1061 |
msgid "3rd party"
|
1062 |
msgstr ""
|
1063 |
|
1064 |
+
#: admin/options-page.php:68
|
1065 |
msgid "Tools"
|
1066 |
msgstr ""
|
1067 |
|
1085 |
|
1086 |
#. Plugin URI of the plugin/theme
|
1087 |
msgid ""
|
1088 |
+
"https://www.webdados.pt/wordpress/plugins/facebook-open-graph-meta-tags-"
|
1089 |
+
"wordpress/"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
#. Description of the plugin/theme
|
public/class-webdados-fb-open-graph-public.php
CHANGED
@@ -118,7 +118,7 @@ class Webdados_FB_Public {
|
|
118 |
//It's a Post or a Page or an attachment page - It can also be the homepage if it's set as a page
|
119 |
$fb_title = wp_strip_all_tags( stripslashes( $post->post_title ), true );
|
120 |
//SubHeading
|
121 |
-
if ( isset($this->options['fb_show_subheading']) && intval($this->options['fb_show_subheading'])==1 && $webdados_fb->is_subheading_plugin_active() ) {
|
122 |
if (isset($this->options['fb_subheading_position']) && $this->options['fb_subheading_position']=='before' ) {
|
123 |
$fb_title = trim( trim(get_the_subheading()).' - '.trim($fb_title), ' -' );
|
124 |
} else {
|
@@ -304,7 +304,7 @@ class Webdados_FB_Public {
|
|
304 |
$tax_desc = trim( wp_strip_all_tags( stripslashes( term_description() ), true ) );
|
305 |
if ( trim($tax_desc)!='' ) $fb_desc = $tax_desc;
|
306 |
//WooCommerce
|
307 |
-
if ( $webdados_fb->is_woocommerce_active() && intval($this->options['fb_wc_usecategthumb'])==1 && ( is_product_category() || is_tax('product_brand') ) ) {
|
308 |
if ( is_product_category() ) $debug[] = 'is_product_category';
|
309 |
if ( intval($this->options['fb_image_show'])==1 || intval($this->options['fb_image_show_schema'])==1 || intval($this->options['fb_image_show_twitter'])==1 ) {
|
310 |
if ( $thumbnail_id = get_term_meta( $term->term_id, 'thumbnail_id', true ) ) {
|
@@ -468,7 +468,6 @@ class Webdados_FB_Public {
|
|
468 |
/*$fb_url_temp = '';
|
469 |
$aioseop_options = get_option( 'aioseop_options' );
|
470 |
$opts = $aiosp->meta_opts;
|
471 |
-
var_dump($wp_query);
|
472 |
$show_page = true;
|
473 |
if ( ! empty( $aioseop_options['aiosp_no_paged_canonical_links'] ) ) {
|
474 |
$show_page = false;
|
@@ -485,7 +484,6 @@ class Webdados_FB_Public {
|
|
485 |
|
486 |
$fb_url_temp = apply_filters( 'aioseop_canonical_url', $fb_url_temp );
|
487 |
}
|
488 |
-
var_dump($fb_url_temp);
|
489 |
$fb_url = wp_strip_all_tags( trim($fb_url_temp)!='' ? trim($fb_url_temp) : $fb_url, true);*/
|
490 |
//Description - Why are we getting the first post description on archives and homepage...?!?
|
491 |
if ( is_home() && ! is_front_page() ) {
|
@@ -945,10 +943,31 @@ class Webdados_FB_Public {
|
|
945 |
$fb_image_parsed = parse_url($fb_image);
|
946 |
//Only if the image is hosted locally
|
947 |
if ( $fb_image_parsed['host']==$_SERVER['HTTP_HOST'] ) {
|
|
|
948 |
$params = array(
|
949 |
'img' => urlencode($fb_image),
|
950 |
-
'post_id' => intval( $post_id ),
|
951 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
952 |
$fb_image = plugins_url( '/wonderm00ns-simple-facebook-open-graph-tags/fbimg.php' ).'?'.http_build_query($params);
|
953 |
return array(
|
954 |
'overlay' => true,
|
@@ -976,7 +995,6 @@ class Webdados_FB_Public {
|
|
976 |
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
|
977 |
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
978 |
$data = curl_exec($curl);
|
979 |
-
//if ( !$data ) var_dump( curl_error( $curl ) ); //Debug
|
980 |
curl_close($curl);
|
981 |
return $data;
|
982 |
} catch(Exception $e) {
|
118 |
//It's a Post or a Page or an attachment page - It can also be the homepage if it's set as a page
|
119 |
$fb_title = wp_strip_all_tags( stripslashes( $post->post_title ), true );
|
120 |
//SubHeading
|
121 |
+
if ( isset( $this->options['fb_show_subheading'] ) && ( intval( $this->options['fb_show_subheading'] ) == 1 ) && $webdados_fb->is_subheading_plugin_active() ) {
|
122 |
if (isset($this->options['fb_subheading_position']) && $this->options['fb_subheading_position']=='before' ) {
|
123 |
$fb_title = trim( trim(get_the_subheading()).' - '.trim($fb_title), ' -' );
|
124 |
} else {
|
304 |
$tax_desc = trim( wp_strip_all_tags( stripslashes( term_description() ), true ) );
|
305 |
if ( trim($tax_desc)!='' ) $fb_desc = $tax_desc;
|
306 |
//WooCommerce
|
307 |
+
if ( $webdados_fb->is_woocommerce_active() && ( intval( $this->options['fb_wc_usecategthumb'] ) == 1 ) && ( is_product_category() || is_tax('product_brand') ) ) {
|
308 |
if ( is_product_category() ) $debug[] = 'is_product_category';
|
309 |
if ( intval($this->options['fb_image_show'])==1 || intval($this->options['fb_image_show_schema'])==1 || intval($this->options['fb_image_show_twitter'])==1 ) {
|
310 |
if ( $thumbnail_id = get_term_meta( $term->term_id, 'thumbnail_id', true ) ) {
|
468 |
/*$fb_url_temp = '';
|
469 |
$aioseop_options = get_option( 'aioseop_options' );
|
470 |
$opts = $aiosp->meta_opts;
|
|
|
471 |
$show_page = true;
|
472 |
if ( ! empty( $aioseop_options['aiosp_no_paged_canonical_links'] ) ) {
|
473 |
$show_page = false;
|
484 |
|
485 |
$fb_url_temp = apply_filters( 'aioseop_canonical_url', $fb_url_temp );
|
486 |
}
|
|
|
487 |
$fb_url = wp_strip_all_tags( trim($fb_url_temp)!='' ? trim($fb_url_temp) : $fb_url, true);*/
|
488 |
//Description - Why are we getting the first post description on archives and homepage...?!?
|
489 |
if ( is_home() && ! is_front_page() ) {
|
943 |
$fb_image_parsed = parse_url($fb_image);
|
944 |
//Only if the image is hosted locally
|
945 |
if ( $fb_image_parsed['host']==$_SERVER['HTTP_HOST'] ) {
|
946 |
+
//Params
|
947 |
$params = array(
|
948 |
'img' => urlencode($fb_image),
|
949 |
+
'post_id' => intval( $post_id ), //Legacy, kill it with fire, PLEASE!
|
950 |
);
|
951 |
+
//Object queried
|
952 |
+
$object = get_queried_object();
|
953 |
+
switch( get_class( $object ) ) {
|
954 |
+
case 'WP_Post':
|
955 |
+
$params['object_type'] = 'post';
|
956 |
+
$params['object_id'] = $object->ID;
|
957 |
+
break;
|
958 |
+
case 'WP_Post_Type':
|
959 |
+
$params['object_type'] = 'post_type';
|
960 |
+
$params['object_id'] = $object->name;
|
961 |
+
break;
|
962 |
+
case 'WP_Term':
|
963 |
+
$params['object_type'] = 'term';
|
964 |
+
$params['taxonomy'] = $object->taxonomy;
|
965 |
+
$params['object_id'] = $object->term_id;
|
966 |
+
break;
|
967 |
+
//author?
|
968 |
+
//Home?
|
969 |
+
//etc...
|
970 |
+
}
|
971 |
$fb_image = plugins_url( '/wonderm00ns-simple-facebook-open-graph-tags/fbimg.php' ).'?'.http_build_query($params);
|
972 |
return array(
|
973 |
'overlay' => true,
|
995 |
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
|
996 |
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
997 |
$data = curl_exec($curl);
|
|
|
998 |
curl_close($curl);
|
999 |
return $data;
|
1000 |
} catch(Exception $e) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: webdados, wonderm00n
|
|
3 |
Donate link: http://bit.ly/donate_fb_opengraph
|
4 |
Tags: facebook, open graph, twitter card, social media, open graph protocol, share, social, meta, rss, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7, webdados
|
5 |
Requires at least: 4.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.2.
|
8 |
|
9 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
|
10 |
|
@@ -170,6 +170,14 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
170 |
|
171 |
== Changelog ==
|
172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
= 2.2.7.2 =
|
174 |
* Tested with WordPress 5.2.5-alpha and WooCommerce 3.8.0
|
175 |
|
3 |
Donate link: http://bit.ly/donate_fb_opengraph
|
4 |
Tags: facebook, open graph, twitter card, social media, open graph protocol, share, social, meta, rss, twitter, schema, google+, g+, google, google plus, image, like, seo, search engine optimization, woocommerce, yoast seo, wordpress seo, woocommerce, subheading, php7, webdados
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 2.2.8
|
8 |
|
9 |
Inserts Facebook Open Graph, Google+/Schema.org, Twitter and SEO Meta Tags into your WordPress Website for more efficient sharing results.
|
10 |
|
170 |
|
171 |
== Changelog ==
|
172 |
|
173 |
+
= 2.2.8 =
|
174 |
+
* New feature to shrink and center the original image when overlay is used
|
175 |
+
* Google+ / Schema feature deprecation
|
176 |
+
* New fb_og_thumb developer filter to allow the manipulation of the original thumbnail image on the overlay php script before the logo is applied on top of it
|
177 |
+
* The current object type and object id being queried is passed on to the image overlay php script so it can be used by developers on the new filter
|
178 |
+
* $_GET fix on the image overlay php script
|
179 |
+
* Tested with WordPress 5.5-alpha-47609 and WooCommerce 4.1.0-rc.1
|
180 |
+
|
181 |
= 2.2.7.2 =
|
182 |
* Tested with WordPress 5.2.5-alpha and WooCommerce 3.8.0
|
183 |
|
wonderm00n-open-graph.php
CHANGED
@@ -3,17 +3,17 @@
|
|
3 |
Plugin Name: Open Graph and Twitter Card Tags
|
4 |
Plugin URI: https://www.webdados.pt/wordpress/plugins/facebook-open-graph-meta-tags-wordpress/
|
5 |
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.
|
6 |
-
Version: 2.2.
|
7 |
Author: Webdados
|
8 |
Author URI: https://www.webdados.pt
|
9 |
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
10 |
Domain Path: /lang
|
11 |
-
WC tested up to:
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
15 |
|
16 |
-
define( 'WEBDADOS_FB_VERSION', '2.2.
|
17 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph and Twitter Card Tags' );
|
18 |
define( 'WEBDADOS_FB_W', 1200 );
|
19 |
define( 'WEBDADOS_FB_H', 630 );
|
3 |
Plugin Name: Open Graph and Twitter Card Tags
|
4 |
Plugin URI: https://www.webdados.pt/wordpress/plugins/facebook-open-graph-meta-tags-wordpress/
|
5 |
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.
|
6 |
+
Version: 2.2.8
|
7 |
Author: Webdados
|
8 |
Author URI: https://www.webdados.pt
|
9 |
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
10 |
Domain Path: /lang
|
11 |
+
WC tested up to: 4.1.0
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
15 |
|
16 |
+
define( 'WEBDADOS_FB_VERSION', '2.2.8' );
|
17 |
define( 'WEBDADOS_FB_PLUGIN_NAME', 'Open Graph and Twitter Card Tags' );
|
18 |
define( 'WEBDADOS_FB_W', 1200 );
|
19 |
define( 'WEBDADOS_FB_H', 630 );
|