Version Description
- Fix on the gettext calls and textdomain so that Glotpress correctly loads translations
Download this release
Release Info
Developer | webdados |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.1.1
- admin/class-webdados-fb-open-graph-admin.php +20 -20
- admin/options-page-3rdparty.php +32 -32
- admin/options-page-facebook.php +55 -55
- admin/options-page-general.php +61 -61
- admin/options-page-right.php +18 -18
- admin/options-page-schema.php +23 -23
- admin/options-page-seo.php +13 -13
- admin/options-page-twitter.php +21 -21
- admin/options-page.php +8 -8
- fbimg.php +1 -1
- includes/class-webdados-fb-open-graph.php +4 -4
- lang/{wd-fb-og.pot → wonderm00ns-simple-facebook-open-graph-tags.pot} +1 -1
- readme.txt +4 -1
- wonderm00n-open-graph.php +5 -5
admin/class-webdados-fb-open-graph-admin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -45,7 +45,7 @@ class Webdados_FB_Admin {
|
|
45 |
|
46 |
/* Settings link on the plugins page */
|
47 |
public function place_settings_link( $links ) {
|
48 |
-
$settings_link = '<a href="options-general.php?page=class-webdados-fb-open-graph-admin.php">' . __( 'Settings', '
|
49 |
// place it before other links
|
50 |
array_unshift( $links, $settings_link );
|
51 |
return $links;
|
@@ -56,11 +56,11 @@ class Webdados_FB_Admin {
|
|
56 |
global $webdados_fb;
|
57 |
if ( !$webdados_fb->is_yoast_seo_active() ) {
|
58 |
//Google+
|
59 |
-
$usercontacts['googleplus'] = __('Google+', '
|
60 |
//Twitter
|
61 |
-
$usercontacts['twitter'] = __('Twitter username (without @)', '
|
62 |
//Facebook
|
63 |
-
$usercontacts['facebook'] = __('Facebook profile URL', '
|
64 |
}
|
65 |
return $usercontacts;
|
66 |
}
|
@@ -96,15 +96,15 @@ class Webdados_FB_Admin {
|
|
96 |
<p>
|
97 |
<strong>
|
98 |
<label for="webdados_fb_open_graph_specific_image">
|
99 |
-
<?php _e('Use this image', '
|
100 |
</label>
|
101 |
</strong>
|
102 |
<br/>
|
103 |
<input type="text" id="webdados_fb_open_graph_specific_image" name="webdados_fb_open_graph_specific_image" value="<?php echo esc_attr( $value_image ); ?>" size="50"/>
|
104 |
-
<input id="webdados_fb_open_graph_specific_image_button" class="button" type="button" value="<?php echo esc_attr( __('Upload/Choose','
|
105 |
-
<input id="webdados_fb_open_graph_specific_image_button_clear" class="button" type="button" value="<?php echo esc_attr( __('Clear field','
|
106 |
<br/>
|
107 |
-
<?php printf( __( 'Recommended size: %dx%dpx', '
|
108 |
<script type="text/javascript">
|
109 |
jQuery(document).ready(function($){
|
110 |
// Instantiates the variable that holds the media library frame.
|
@@ -120,8 +120,8 @@ class Webdados_FB_Admin {
|
|
120 |
}
|
121 |
// Sets up the media library frame
|
122 |
meta_image_frame = wp.media.frames.meta_image_frame = wp.media({
|
123 |
-
title: "<?php _e('Select image', '
|
124 |
-
button: { text: "<?php _e('Use this image', '
|
125 |
library: { type: 'image' }
|
126 |
});
|
127 |
// Runs when an image is selected.
|
@@ -152,19 +152,19 @@ class Webdados_FB_Admin {
|
|
152 |
<p>
|
153 |
<strong>
|
154 |
<label for="webdados_fb_open_graph_specific_description">
|
155 |
-
<?php _e('Use this description', '
|
156 |
</label>
|
157 |
</strong>
|
158 |
<br/>
|
159 |
<?php
|
160 |
if ( $webdados_fb->is_yoast_seo_active() && $this->options['fb_show_wpseoyoast']==1 ) {
|
161 |
-
_e('The Yoast SEO integration is active, so it\'s description will be used', '
|
162 |
} else {
|
163 |
?>
|
164 |
<textarea id="webdados_fb_open_graph_specific_description" name="webdados_fb_open_graph_specific_description" style="width: 100%;" rows="3"><?php echo esc_textarea(trim($value_description)); ?></textarea>
|
165 |
<br/>
|
166 |
<?php
|
167 |
-
_e('If this field is not filled, the description will be generated from the excerpt, if it exists, or from the content', '
|
168 |
}
|
169 |
?>
|
170 |
</p>
|
@@ -228,7 +228,7 @@ class Webdados_FB_Admin {
|
|
228 |
$response=wp_remote_get($fb_debug_url);
|
229 |
if ( is_wp_error($response) ) {
|
230 |
$_SESSION['wd_fb_og_updated_error']=1;
|
231 |
-
$_SESSION['wd_fb_og_updated_error_message']=__('URL failed:', '
|
232 |
} else {
|
233 |
if ( $response['response']['code']==200 && intval($this->options['fb_adv_supress_fb_notice'])==0 ) {
|
234 |
$_SESSION['wd_fb_og_updated']=1;
|
@@ -236,7 +236,7 @@ class Webdados_FB_Admin {
|
|
236 |
if ( $response['response']['code']==500 ) {
|
237 |
$_SESSION['wd_fb_og_updated_error']=1;
|
238 |
$error=json_decode($response['body']);
|
239 |
-
$_SESSION['wd_fb_og_updated_error_message']=__('Facebook returned:', '
|
240 |
}
|
241 |
}
|
242 |
}
|
@@ -250,7 +250,7 @@ class Webdados_FB_Admin {
|
|
250 |
global $post;
|
251 |
?>
|
252 |
<div class="updated">
|
253 |
-
<p><?php _e('Facebook Open Graph Tags cache updated/purged.', '
|
254 |
</div>
|
255 |
<?php
|
256 |
} else {
|
@@ -258,7 +258,7 @@ class Webdados_FB_Admin {
|
|
258 |
?>
|
259 |
<div class="error">
|
260 |
<p><?php
|
261 |
-
echo '<b>'.__('Error: Facebook Open Graph Tags cache NOT updated/purged.', '
|
262 |
echo '<br/>'.$_SESSION['wd_fb_og_updated_error_message'];
|
263 |
?></p>
|
264 |
</div>
|
@@ -282,8 +282,8 @@ class Webdados_FB_Admin {
|
|
282 |
public function admin_scripts() {
|
283 |
wp_enqueue_script( 'webdados_fb_admin_script', plugins_url( 'js/webdados-fb-open-graph-admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-tabs', 'media-upload' ), $this->version );
|
284 |
wp_localize_script( 'webdados_fb_admin_script', 'texts', array(
|
285 |
-
'select_image' => __('Select image', '
|
286 |
-
'use_this_image' => __('Use this image', '
|
287 |
) );
|
288 |
}
|
289 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
45 |
|
46 |
/* Settings link on the plugins page */
|
47 |
public function place_settings_link( $links ) {
|
48 |
+
$settings_link = '<a href="options-general.php?page=class-webdados-fb-open-graph-admin.php">' . __( 'Settings', 'wonderm00ns-simple-facebook-open-graph-tags' ) . '</a>';
|
49 |
// place it before other links
|
50 |
array_unshift( $links, $settings_link );
|
51 |
return $links;
|
56 |
global $webdados_fb;
|
57 |
if ( !$webdados_fb->is_yoast_seo_active() ) {
|
58 |
//Google+
|
59 |
+
$usercontacts['googleplus'] = __('Google+', 'wonderm00ns-simple-facebook-open-graph-tags');
|
60 |
//Twitter
|
61 |
+
$usercontacts['twitter'] = __('Twitter username (without @)', 'wonderm00ns-simple-facebook-open-graph-tags');
|
62 |
//Facebook
|
63 |
+
$usercontacts['facebook'] = __('Facebook profile URL', 'wonderm00ns-simple-facebook-open-graph-tags');
|
64 |
}
|
65 |
return $usercontacts;
|
66 |
}
|
96 |
<p>
|
97 |
<strong>
|
98 |
<label for="webdados_fb_open_graph_specific_image">
|
99 |
+
<?php _e('Use this image', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>:
|
100 |
</label>
|
101 |
</strong>
|
102 |
<br/>
|
103 |
<input type="text" id="webdados_fb_open_graph_specific_image" name="webdados_fb_open_graph_specific_image" value="<?php echo esc_attr( $value_image ); ?>" size="50"/>
|
104 |
+
<input id="webdados_fb_open_graph_specific_image_button" class="button" type="button" value="<?php echo esc_attr( __('Upload/Choose','wonderm00ns-simple-facebook-open-graph-tags') ); ?>"/>
|
105 |
+
<input id="webdados_fb_open_graph_specific_image_button_clear" class="button" type="button" value="<?php echo esc_attr( __('Clear field','wonderm00ns-simple-facebook-open-graph-tags') ); ?>"/>
|
106 |
<br/>
|
107 |
+
<?php printf( __( 'Recommended size: %dx%dpx', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H); ?>
|
108 |
<script type="text/javascript">
|
109 |
jQuery(document).ready(function($){
|
110 |
// Instantiates the variable that holds the media library frame.
|
120 |
}
|
121 |
// Sets up the media library frame
|
122 |
meta_image_frame = wp.media.frames.meta_image_frame = wp.media({
|
123 |
+
title: "<?php _e('Select image', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>",
|
124 |
+
button: { text: "<?php _e('Use this image', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>" },
|
125 |
library: { type: 'image' }
|
126 |
});
|
127 |
// Runs when an image is selected.
|
152 |
<p>
|
153 |
<strong>
|
154 |
<label for="webdados_fb_open_graph_specific_description">
|
155 |
+
<?php _e('Use this description', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>:
|
156 |
</label>
|
157 |
</strong>
|
158 |
<br/>
|
159 |
<?php
|
160 |
if ( $webdados_fb->is_yoast_seo_active() && $this->options['fb_show_wpseoyoast']==1 ) {
|
161 |
+
_e('The Yoast SEO integration is active, so it\'s description will be used', 'wonderm00ns-simple-facebook-open-graph-tags');
|
162 |
} else {
|
163 |
?>
|
164 |
<textarea id="webdados_fb_open_graph_specific_description" name="webdados_fb_open_graph_specific_description" style="width: 100%;" rows="3"><?php echo esc_textarea(trim($value_description)); ?></textarea>
|
165 |
<br/>
|
166 |
<?php
|
167 |
+
_e('If this field is not filled, the description will be generated from the excerpt, if it exists, or from the content', 'wonderm00ns-simple-facebook-open-graph-tags');
|
168 |
}
|
169 |
?>
|
170 |
</p>
|
228 |
$response=wp_remote_get($fb_debug_url);
|
229 |
if ( is_wp_error($response) ) {
|
230 |
$_SESSION['wd_fb_og_updated_error']=1;
|
231 |
+
$_SESSION['wd_fb_og_updated_error_message']=__('URL failed:', 'wonderm00ns-simple-facebook-open-graph-tags').' '.$fb_debug_url;
|
232 |
} else {
|
233 |
if ( $response['response']['code']==200 && intval($this->options['fb_adv_supress_fb_notice'])==0 ) {
|
234 |
$_SESSION['wd_fb_og_updated']=1;
|
236 |
if ( $response['response']['code']==500 ) {
|
237 |
$_SESSION['wd_fb_og_updated_error']=1;
|
238 |
$error=json_decode($response['body']);
|
239 |
+
$_SESSION['wd_fb_og_updated_error_message']=__('Facebook returned:', 'wonderm00ns-simple-facebook-open-graph-tags').' '.$error->error->message;
|
240 |
}
|
241 |
}
|
242 |
}
|
250 |
global $post;
|
251 |
?>
|
252 |
<div class="updated">
|
253 |
+
<p><?php _e('Facebook Open Graph Tags cache updated/purged.', 'wonderm00ns-simple-facebook-open-graph-tags'); ?> <a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(get_permalink($post->ID));?>" target="_blank"><?php _e('Share this on Facebook', 'wonderm00ns-simple-facebook-open-graph-tags'); ?></a></p>
|
254 |
</div>
|
255 |
<?php
|
256 |
} else {
|
258 |
?>
|
259 |
<div class="error">
|
260 |
<p><?php
|
261 |
+
echo '<b>'.__('Error: Facebook Open Graph Tags cache NOT updated/purged.', 'wonderm00ns-simple-facebook-open-graph-tags').'</b>';
|
262 |
echo '<br/>'.$_SESSION['wd_fb_og_updated_error_message'];
|
263 |
?></p>
|
264 |
</div>
|
282 |
public function admin_scripts() {
|
283 |
wp_enqueue_script( 'webdados_fb_admin_script', plugins_url( 'js/webdados-fb-open-graph-admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-tabs', 'media-upload' ), $this->version );
|
284 |
wp_localize_script( 'webdados_fb_admin_script', 'texts', array(
|
285 |
+
'select_image' => __('Select image', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
286 |
+
'use_this_image' => __('Use this image', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
287 |
) );
|
288 |
}
|
289 |
|
admin/options-page-3rdparty.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -10,16 +10,16 @@ global $webdados_fb;
|
|
10 |
|
11 |
?>
|
12 |
<div class="menu_containt_div" id="tabs-6">
|
13 |
-
<p><?php _e( 'Settings for 3rd party integration with other plugins.', '
|
14 |
<!-- Yoast SEO and All in One SEO Pack? -->
|
15 |
<?php
|
16 |
if ( $webdados_fb->is_yoast_seo_active() && $webdados_fb->is_aioseop_active() ) {
|
17 |
?>
|
18 |
<p>
|
19 |
<i class="dashicons-before dashicons-warning"></i>
|
20 |
-
<b><?php _e( 'Attention', '
|
21 |
<br/>
|
22 |
-
<?php _e( 'You currently have both Yoast SEO and All in One SEO Pack plugins active. This is no recommended.', '
|
23 |
</p>
|
24 |
<?php
|
25 |
}
|
@@ -51,24 +51,24 @@ global $webdados_fb;
|
|
51 |
<tbody>
|
52 |
|
53 |
<tr>
|
54 |
-
<th><?php _e( 'Use Title, URL and Description', '
|
55 |
<td>
|
56 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_wpseoyoast]" id="fb_show_wpseoyoast" value="1" <?php echo (intval($options['fb_show_wpseoyoast'])==1 ? ' checked="checked"' : ''); ?>/>
|
57 |
</td>
|
58 |
</tr>
|
59 |
<tr>
|
60 |
<td colspan="2" class="info">
|
61 |
-
- <?php _e( 'Use Title, Canonical URL and Description generated by Yoast SEO', '
|
62 |
</td>
|
63 |
</tr>
|
64 |
|
65 |
<tr>
|
66 |
<td colspan="2">
|
67 |
<i class="dashicons-before dashicons-warning"></i>
|
68 |
-
<b><?php _e( 'Attention', '
|
69 |
<br/>
|
70 |
<small>
|
71 |
-
<?php printf( __( 'Because you are using Yoast SEO, and to avoid duplicate social tags, you should disable their social settings at <a href="%s" target="_blank">Yoast SEO > Social</a>. If you cannot access that page, you must first activate the "Advanced settings pages" at <a href="%s" target="_blank">Yoast SEO > Dashboard > Features</a>.', '
|
72 |
</small>
|
73 |
</td>
|
74 |
</tr>
|
@@ -82,7 +82,7 @@ global $webdados_fb;
|
|
82 |
<?php
|
83 |
} else {
|
84 |
?>
|
85 |
-
<p><?php printf ( __( 'You don\'t have %s installed or activated.', '
|
86 |
<?php
|
87 |
}
|
88 |
?>
|
@@ -103,24 +103,24 @@ global $webdados_fb;
|
|
103 |
<tbody>
|
104 |
|
105 |
<tr>
|
106 |
-
<th><?php _e( 'Use Title and Description', '
|
107 |
<td>
|
108 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_aioseop]" id="fb_show_aioseop" value="1" <?php echo (intval($options['fb_show_aioseop'])==1 ? ' checked="checked"' : ''); ?>/>
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
<td colspan="2" class="info">
|
113 |
-
- <?php _e( 'Use Title and Description generated by All in One SEO Pack', '
|
114 |
</td>
|
115 |
</tr>
|
116 |
|
117 |
<tr>
|
118 |
<td colspan="2">
|
119 |
<i class="dashicons-before dashicons-warning"></i>
|
120 |
-
<b><?php _e( 'Attention', '
|
121 |
<br/>
|
122 |
<small>
|
123 |
-
<?php printf( __( 'Because you are using All in One SEO Pack, and to avoid duplicate social tags, you should disable their social settings at <a href="%s" target="_blank">MISSING LINK</a>.', '
|
124 |
</small>
|
125 |
</td>
|
126 |
</tr>
|
@@ -134,7 +134,7 @@ global $webdados_fb;
|
|
134 |
<?php
|
135 |
} else {
|
136 |
?>
|
137 |
-
<p><?php printf ( __( 'You don\'t have %s installed or activated.', '
|
138 |
<?php
|
139 |
}
|
140 |
?>
|
@@ -150,45 +150,45 @@ global $webdados_fb;
|
|
150 |
<?php
|
151 |
if ( $webdados_fb->is_woocommerce_active() ) {
|
152 |
?>
|
153 |
-
<p><?php _e('On the product page we will automatically set <i>og:type</i> to "product" and <i>product:price</i> to the price including tax.', '
|
154 |
<table class="form-table">
|
155 |
<tbody>
|
156 |
|
157 |
<tr>
|
158 |
-
<th><?php _e( 'Use Product Gallery as Images', '
|
159 |
<td>
|
160 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_wc_useproductgallery]" id="fb_wc_useproductgallery" value="1" <?php echo (intval($options['fb_wc_useproductgallery'])==1 ? ' checked="checked"' : ''); ?>/>
|
161 |
</td>
|
162 |
</tr>
|
163 |
<tr>
|
164 |
<td colspan="2" class="info">
|
165 |
-
- <?php _e('Sets each Product Gallery image as an additional <i>og:image</i> tag so that, when a product is shared on Facebook, the user is given the choice what image to display', '
|
166 |
<br/>
|
167 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
168 |
</td>
|
169 |
</tr>
|
170 |
|
171 |
<tr class="fb_image_overlay_options">
|
172 |
-
<th><?php _e( 'Overlay PNG logo', '
|
173 |
<td>
|
174 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_wc_usepg_png_overlay]" id="fb_wc_usepg_png_overlay" value="1" <?php echo (intval($options['fb_wc_usepg_png_overlay'])==1 ? ' checked="checked"' : ''); ?>/>
|
175 |
</td>
|
176 |
</tr>
|
177 |
<tr class="fb_image_overlay_options">
|
178 |
<td colspan="2" class="info">
|
179 |
-
- <?php _e( 'Also overlay the PNG logo on the Product Gallery images', '
|
180 |
</td>
|
181 |
</tr>
|
182 |
|
183 |
<tr>
|
184 |
-
<th><?php _e( 'Use Category thumbnail as Image', '
|
185 |
<td>
|
186 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_wc_usecategthumb]" id="fb_wc_usecategthumb" value="1" <?php echo (intval($options['fb_wc_usecategthumb'])==1 ? ' checked="checked"' : ''); ?>/>
|
187 |
</td>
|
188 |
</tr>
|
189 |
<tr>
|
190 |
<td colspan="2" class="info">
|
191 |
-
- <?php _e('Recommended if you set large thumbnails for Product Categories and want to use them as Open Graph Images on category listing pages', '
|
192 |
</td>
|
193 |
</tr>
|
194 |
|
@@ -197,7 +197,7 @@ global $webdados_fb;
|
|
197 |
<?php
|
198 |
} else {
|
199 |
?>
|
200 |
-
<p><?php printf ( __( 'You don\'t have %s installed or activated.', '
|
201 |
<?php
|
202 |
}
|
203 |
?>
|
@@ -217,7 +217,7 @@ global $webdados_fb;
|
|
217 |
<tbody>
|
218 |
|
219 |
<tr>
|
220 |
-
<th><?php _e( 'Add SubHeading to Post/Page Title', '
|
221 |
<td>
|
222 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_subheading]" id="fb_show_subheading" value="1" <?php echo (intval($options['fb_show_subheading'])==1 ? ' checked="checked"' : ''); ?>/>
|
223 |
</td>
|
@@ -228,11 +228,11 @@ global $webdados_fb;
|
|
228 |
</tr>
|
229 |
|
230 |
<tr class="fb_subheading_options">
|
231 |
-
<th><?php _e( 'SubHeading position', '
|
232 |
<td>
|
233 |
<select name="wonderm00n_open_graph_settings[fb_subheading_position]" id="fb_subheading_position">
|
234 |
-
<option value=""<?php if (trim($options['fb_subheading_position'])=='after') echo ' selected="selected"'; ?>><?php _e('After', '
|
235 |
-
<option value="before"<?php if (trim($options['fb_subheading_position'])=='before') echo ' selected="selected"'; ?>><?php _e('Before', '
|
236 |
</select>
|
237 |
</td>
|
238 |
</tr>
|
@@ -246,7 +246,7 @@ global $webdados_fb;
|
|
246 |
<?php
|
247 |
} else {
|
248 |
?>
|
249 |
-
<p><?php printf ( __( 'You don\'t have %s installed or activated.', '
|
250 |
<?php
|
251 |
}
|
252 |
?>
|
@@ -266,16 +266,16 @@ global $webdados_fb;
|
|
266 |
<tbody>
|
267 |
|
268 |
<tr>
|
269 |
-
<th><?php _e( 'Use listing details', '
|
270 |
<td>
|
271 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_businessdirectoryplugin]" id="fb_show_businessdirectoryplugin" value="1" <?php echo (intval($options['fb_show_businessdirectoryplugin'])==1 ? ' checked="checked"' : ''); ?>/>
|
272 |
</td>
|
273 |
</tr>
|
274 |
<tr>
|
275 |
<td colspan="2" class="info">
|
276 |
-
- <?php _e( 'Use Business Directory Plugin listing details (Title, URL, Description and Image) to populate tags', '
|
277 |
<br/>
|
278 |
-
- <?php _e( 'Setting "Include URL", "Set Canonical URL", "Include Description" and "Include Image" options is HIGHLY recommended', '
|
279 |
</td>
|
280 |
</tr>
|
281 |
|
@@ -284,7 +284,7 @@ global $webdados_fb;
|
|
284 |
<?php
|
285 |
} else {
|
286 |
?>
|
287 |
-
<p><?php printf ( __( 'You don\'t have %s installed or activated.', '
|
288 |
<?php
|
289 |
}
|
290 |
?>
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
10 |
|
11 |
?>
|
12 |
<div class="menu_containt_div" id="tabs-6">
|
13 |
+
<p><?php _e( 'Settings for 3rd party integration with other plugins.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
14 |
<!-- Yoast SEO and All in One SEO Pack? -->
|
15 |
<?php
|
16 |
if ( $webdados_fb->is_yoast_seo_active() && $webdados_fb->is_aioseop_active() ) {
|
17 |
?>
|
18 |
<p>
|
19 |
<i class="dashicons-before dashicons-warning"></i>
|
20 |
+
<b><?php _e( 'Attention', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</b>
|
21 |
<br/>
|
22 |
+
<?php _e( 'You currently have both Yoast SEO and All in One SEO Pack plugins active. This is no recommended.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
23 |
</p>
|
24 |
<?php
|
25 |
}
|
51 |
<tbody>
|
52 |
|
53 |
<tr>
|
54 |
+
<th><?php _e( 'Use Title, URL and Description', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
55 |
<td>
|
56 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_wpseoyoast]" id="fb_show_wpseoyoast" value="1" <?php echo (intval($options['fb_show_wpseoyoast'])==1 ? ' checked="checked"' : ''); ?>/>
|
57 |
</td>
|
58 |
</tr>
|
59 |
<tr>
|
60 |
<td colspan="2" class="info">
|
61 |
+
- <?php _e( 'Use Title, Canonical URL and Description generated by Yoast SEO', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
62 |
</td>
|
63 |
</tr>
|
64 |
|
65 |
<tr>
|
66 |
<td colspan="2">
|
67 |
<i class="dashicons-before dashicons-warning"></i>
|
68 |
+
<b><?php _e( 'Attention', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</b>
|
69 |
<br/>
|
70 |
<small>
|
71 |
+
<?php printf( __( 'Because you are using Yoast SEO, and to avoid duplicate social tags, you should disable their social settings at <a href="%s" target="_blank">Yoast SEO > Social</a>. If you cannot access that page, you must first activate the "Advanced settings pages" at <a href="%s" target="_blank">Yoast SEO > Dashboard > Features</a>.', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'admin.php?page=wpseo_social', 'admin.php?page=wpseo_dashboard#top#features' ); ?>
|
72 |
</small>
|
73 |
</td>
|
74 |
</tr>
|
82 |
<?php
|
83 |
} else {
|
84 |
?>
|
85 |
+
<p><?php printf ( __( 'You don\'t have %s installed or activated.', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'Yoast SEO' ); ?></p>
|
86 |
<?php
|
87 |
}
|
88 |
?>
|
103 |
<tbody>
|
104 |
|
105 |
<tr>
|
106 |
+
<th><?php _e( 'Use Title and Description', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
107 |
<td>
|
108 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_aioseop]" id="fb_show_aioseop" value="1" <?php echo (intval($options['fb_show_aioseop'])==1 ? ' checked="checked"' : ''); ?>/>
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
<td colspan="2" class="info">
|
113 |
+
- <?php _e( 'Use Title and Description generated by All in One SEO Pack', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
114 |
</td>
|
115 |
</tr>
|
116 |
|
117 |
<tr>
|
118 |
<td colspan="2">
|
119 |
<i class="dashicons-before dashicons-warning"></i>
|
120 |
+
<b><?php _e( 'Attention', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</b>
|
121 |
<br/>
|
122 |
<small>
|
123 |
+
<?php printf( __( 'Because you are using All in One SEO Pack, and to avoid duplicate social tags, you should disable their social settings at <a href="%s" target="_blank">MISSING LINK</a>.', 'wonderm00ns-simple-facebook-open-graph-tags' ), '#' ); ?>
|
124 |
</small>
|
125 |
</td>
|
126 |
</tr>
|
134 |
<?php
|
135 |
} else {
|
136 |
?>
|
137 |
+
<p><?php printf ( __( 'You don\'t have %s installed or activated.', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'All in One SEO Pack' ); ?></p>
|
138 |
<?php
|
139 |
}
|
140 |
?>
|
150 |
<?php
|
151 |
if ( $webdados_fb->is_woocommerce_active() ) {
|
152 |
?>
|
153 |
+
<p><?php _e('On the product page we will automatically set <i>og:type</i> to "product" and <i>product:price</i> to the price including tax.', 'wonderm00ns-simple-facebook-open-graph-tags'); ?></p>
|
154 |
<table class="form-table">
|
155 |
<tbody>
|
156 |
|
157 |
<tr>
|
158 |
+
<th><?php _e( 'Use Product Gallery as Images', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
159 |
<td>
|
160 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_wc_useproductgallery]" id="fb_wc_useproductgallery" value="1" <?php echo (intval($options['fb_wc_useproductgallery'])==1 ? ' checked="checked"' : ''); ?>/>
|
161 |
</td>
|
162 |
</tr>
|
163 |
<tr>
|
164 |
<td colspan="2" class="info">
|
165 |
+
- <?php _e('Sets each Product Gallery image as an additional <i>og:image</i> tag so that, when a product is shared on Facebook, the user is given the choice what image to display', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
166 |
<br/>
|
167 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_image_additional' ); ?>
|
168 |
</td>
|
169 |
</tr>
|
170 |
|
171 |
<tr class="fb_image_overlay_options">
|
172 |
+
<th><?php _e( 'Overlay PNG logo', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
173 |
<td>
|
174 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_wc_usepg_png_overlay]" id="fb_wc_usepg_png_overlay" value="1" <?php echo (intval($options['fb_wc_usepg_png_overlay'])==1 ? ' checked="checked"' : ''); ?>/>
|
175 |
</td>
|
176 |
</tr>
|
177 |
<tr class="fb_image_overlay_options">
|
178 |
<td colspan="2" class="info">
|
179 |
+
- <?php _e( 'Also overlay the PNG logo on the Product Gallery images', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
180 |
</td>
|
181 |
</tr>
|
182 |
|
183 |
<tr>
|
184 |
+
<th><?php _e( 'Use Category thumbnail as Image', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
185 |
<td>
|
186 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_wc_usecategthumb]" id="fb_wc_usecategthumb" value="1" <?php echo (intval($options['fb_wc_usecategthumb'])==1 ? ' checked="checked"' : ''); ?>/>
|
187 |
</td>
|
188 |
</tr>
|
189 |
<tr>
|
190 |
<td colspan="2" class="info">
|
191 |
+
- <?php _e('Recommended if you set large thumbnails for Product Categories and want to use them as Open Graph Images on category listing pages', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
192 |
</td>
|
193 |
</tr>
|
194 |
|
197 |
<?php
|
198 |
} else {
|
199 |
?>
|
200 |
+
<p><?php printf ( __( 'You don\'t have %s installed or activated.', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'WooCommerce' ); ?></p>
|
201 |
<?php
|
202 |
}
|
203 |
?>
|
217 |
<tbody>
|
218 |
|
219 |
<tr>
|
220 |
+
<th><?php _e( 'Add SubHeading to Post/Page Title', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
221 |
<td>
|
222 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_subheading]" id="fb_show_subheading" value="1" <?php echo (intval($options['fb_show_subheading'])==1 ? ' checked="checked"' : ''); ?>/>
|
223 |
</td>
|
228 |
</tr>
|
229 |
|
230 |
<tr class="fb_subheading_options">
|
231 |
+
<th><?php _e( 'SubHeading position', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
232 |
<td>
|
233 |
<select name="wonderm00n_open_graph_settings[fb_subheading_position]" id="fb_subheading_position">
|
234 |
+
<option value=""<?php if (trim($options['fb_subheading_position'])=='after') echo ' selected="selected"'; ?>><?php _e('After', 'wonderm00ns-simple-facebook-open-graph-tags');?></option>
|
235 |
+
<option value="before"<?php if (trim($options['fb_subheading_position'])=='before') echo ' selected="selected"'; ?>><?php _e('Before', 'wonderm00ns-simple-facebook-open-graph-tags');?></option>
|
236 |
</select>
|
237 |
</td>
|
238 |
</tr>
|
246 |
<?php
|
247 |
} else {
|
248 |
?>
|
249 |
+
<p><?php printf ( __( 'You don\'t have %s installed or activated.', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'SubHeading' ); ?></p>
|
250 |
<?php
|
251 |
}
|
252 |
?>
|
266 |
<tbody>
|
267 |
|
268 |
<tr>
|
269 |
+
<th><?php _e( 'Use listing details', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
270 |
<td>
|
271 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_show_businessdirectoryplugin]" id="fb_show_businessdirectoryplugin" value="1" <?php echo (intval($options['fb_show_businessdirectoryplugin'])==1 ? ' checked="checked"' : ''); ?>/>
|
272 |
</td>
|
273 |
</tr>
|
274 |
<tr>
|
275 |
<td colspan="2" class="info">
|
276 |
+
- <?php _e( 'Use Business Directory Plugin listing details (Title, URL, Description and Image) to populate tags', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
277 |
<br/>
|
278 |
+
- <?php _e( 'Setting "Include URL", "Set Canonical URL", "Include Description" and "Include Image" options is HIGHLY recommended', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
279 |
</td>
|
280 |
</tr>
|
281 |
|
284 |
<?php
|
285 |
} else {
|
286 |
?>
|
287 |
+
<p><?php printf ( __( 'You don\'t have %s installed or activated.', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'Business Directory Plugin' ); ?></p>
|
288 |
<?php
|
289 |
}
|
290 |
?>
|
admin/options-page-facebook.php
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-2">
|
11 |
-
<p><?php _e( 'Open Graph tags used by Facebook, and other social networks, to render link share posts.', '
|
12 |
<div class="postbox">
|
13 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-facebook-alt"></i> <?php _e( 'Facebook Open Graph Tags', '
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
-
<th><?php _e( 'Include Post/Page Title', '
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_title_show]" id="fb_title_show" value="1" <?php echo (intval($options['fb_title_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
22 |
</td>
|
@@ -25,12 +25,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
25 |
<td colspan="2" class="info">
|
26 |
<i><meta property="og:title" content="..."/></i>
|
27 |
<br/>
|
28 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
29 |
</td>
|
30 |
</tr>
|
31 |
|
32 |
<tr>
|
33 |
-
<th><?php _e( 'Include Site Name', '
|
34 |
<td>
|
35 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_sitename_show]" id="fb_sitename_show" value="1" <?php echo (intval($options['fb_sitename_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
36 |
</td>
|
@@ -39,12 +39,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
39 |
<td colspan="2" class="info">
|
40 |
<i><meta property="og:site_name" content="..."/></i>
|
41 |
<br/>
|
42 |
-
- <?php _e( 'From Settings > General > Site Title', '
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
46 |
<tr>
|
47 |
-
<th><?php _e( 'Include URL', '
|
48 |
<td>
|
49 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_show]" id="fb_url_show" value="1" <?php echo (intval($options['fb_url_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
50 |
</td>
|
@@ -53,12 +53,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
53 |
<td colspan="2" class="info">
|
54 |
<i><meta property="og:url" content="..."/></i>
|
55 |
<br/>
|
56 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
60 |
<tr>
|
61 |
-
<th><?php _e( 'Include Description', '
|
62 |
<td>
|
63 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show]" id="fb_desc_show" value="1" <?php echo (intval($options['fb_desc_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
64 |
</td>
|
@@ -67,12 +67,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
67 |
<td colspan="2" class="info">
|
68 |
<i><meta property="og:description" content="..."/></i>
|
69 |
<br/>
|
70 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
71 |
</td>
|
72 |
</tr>
|
73 |
|
74 |
<tr>
|
75 |
-
<th><?php _e( 'Include Image', '
|
76 |
<td>
|
77 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_show]" id="fb_image_show" value="1" <?php echo (intval($options['fb_image_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
78 |
</td>
|
@@ -81,28 +81,28 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
81 |
<td colspan="2" class="info">
|
82 |
<i><meta property="og:image" content="..."/></i>
|
83 |
<br/>
|
84 |
-
- <?php printf( __('All images must have at least 200px on both dimensions in order to Facebook to load them at all. %dx%dpx for optimal results. Minimum of 600x315px is recommended.', '
|
85 |
<br/>
|
86 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
87 |
</td>
|
88 |
</tr>
|
89 |
|
90 |
<tr class="fb_image_options">
|
91 |
-
<th><?php _e( 'Include Image Dimensions', '
|
92 |
<td>
|
93 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_size_show]" id="fb_image_size_show" value="1" <?php echo (intval($options['fb_image_size_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
94 |
</td>
|
95 |
</tr>
|
96 |
<tr class="fb_image_options">
|
97 |
<td colspan="2" class="info">
|
98 |
-
<i><meta property="og:image:width" content="..."/></i> <?php _e('and', '
|
99 |
<br/>
|
100 |
-
- <?php _e( 'Recommended only if Facebook is having problems loading the image when the post is shared for the first time, or else it adds extra unnecessary processing time', '
|
101 |
</td>
|
102 |
</tr>
|
103 |
|
104 |
<tr>
|
105 |
-
<th><?php _e( 'Include Type', '
|
106 |
<td>
|
107 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_type_show]" id="fb_type_show" value="1" <?php echo (intval($options['fb_type_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
108 |
</td>
|
@@ -111,16 +111,16 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
111 |
<td colspan="2" class="info">
|
112 |
<i><meta property="og:type" content="..."/></i>
|
113 |
<br/>
|
114 |
-
- <?php printf( __( 'Will be "%1$s" for posts and pages and "%2$s" or "%3$s" for the homepage', '
|
115 |
<br/>
|
116 |
-
- <?php _e( 'Additional types may be used depending on 3rd party integrations', '
|
117 |
<br/>
|
118 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
119 |
</td>
|
120 |
</tr>
|
121 |
|
122 |
<tr class="fb_type_options">
|
123 |
-
<th><?php _e( 'Homepage Type', '
|
124 |
<td>
|
125 |
<select name="wonderm00n_open_graph_settings[fb_type_homepage]" id="fb_type_homepage">
|
126 |
<option value="website"<?php if (trim($options['fb_type_homepage'])=='' || trim($options['fb_type_homepage'])=='website') echo ' selected="selected"'; ?>>website</option>
|
@@ -134,7 +134,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
134 |
</tr>
|
135 |
|
136 |
<tr>
|
137 |
-
<th><?php _e( 'Include Post/Page Author', '
|
138 |
<td>
|
139 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show]" id="fb_author_show" value="1" <?php echo (intval($options['fb_author_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
140 |
</td>
|
@@ -143,26 +143,26 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
143 |
<td colspan="2" class="info">
|
144 |
<i><meta property="article:author" content="..."/></i>
|
145 |
<br/>
|
146 |
-
- <?php _e( 'The user\'s Facebook URL must be filled in on his profile', '
|
147 |
</td>
|
148 |
</tr>
|
149 |
|
150 |
<tr>
|
151 |
-
<th><?php _e( 'Include Published/Modified Dates', '
|
152 |
<td>
|
153 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_article_dates_show]" id="fb_article_dates_show" value="1" <?php echo (intval($options['fb_article_dates_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
154 |
</td>
|
155 |
</tr>
|
156 |
<tr>
|
157 |
<td colspan="2" class="info">
|
158 |
-
<i><meta property="article:published_time" content="..."/></i>, <i><meta property="article:modified_time" content="..."/></i> <?php _e('and', '
|
159 |
<br/>
|
160 |
-
- <?php _e( 'For posts only', '
|
161 |
</td>
|
162 |
</tr>
|
163 |
|
164 |
<tr>
|
165 |
-
<th><?php _e( 'Include Article Sections', '
|
166 |
<td>
|
167 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_article_sections_show]" id="fb_article_sections_show" value="1" <?php echo (intval($options['fb_article_sections_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
168 |
</td>
|
@@ -171,12 +171,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
171 |
<td colspan="2" class="info">
|
172 |
<i><meta property="article:section" content="..."/></i>
|
173 |
<br/>
|
174 |
-
- <?php _e( 'For posts only', '
|
175 |
</td>
|
176 |
</tr>
|
177 |
|
178 |
<tr>
|
179 |
-
<th><?php _e( 'Include Publisher', '
|
180 |
<td>
|
181 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show]" id="fb_publisher_show" value="1" <?php echo (intval($options['fb_publisher_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
182 |
</td>
|
@@ -185,24 +185,24 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
185 |
<td colspan="2" class="info">
|
186 |
<i><meta property="article:publisher" content="..."/></i>
|
187 |
<br/>
|
188 |
-
- <?php _e( 'The website\'s Facebook Page', '
|
189 |
</td>
|
190 |
</tr>
|
191 |
|
192 |
<tr class="fb_publisher_options">
|
193 |
-
<th><?php _e( 'Website\'s Facebook Page', '
|
194 |
<td>
|
195 |
<input type="text" name="wonderm00n_open_graph_settings[fb_publisher]" id="fb_publisher" size="50" value="<?php echo trim(esc_attr($options['fb_publisher'])); ?>"/>
|
196 |
</td>
|
197 |
</tr>
|
198 |
<tr class="fb_publisher_options">
|
199 |
<td colspan="2" class="info">
|
200 |
-
- <?php _e( 'Facebook Page URL (with https://)', '
|
201 |
</td>
|
202 |
</tr>
|
203 |
|
204 |
<tr>
|
205 |
-
<th><a name="fblocale"></a><?php _e( 'Include Locale', '
|
206 |
<td>
|
207 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_locale_show]" id="fb_locale_show" value="1" <?php echo (intval($options['fb_locale_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
208 |
</td>
|
@@ -211,12 +211,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
211 |
<td colspan="2" class="info">
|
212 |
<i><meta property="fb:locale" content="..."/></i>
|
213 |
<br/>
|
214 |
-
- <?php _e( 'The website\'s Facebook Page', '
|
215 |
</td>
|
216 |
</tr>
|
217 |
|
218 |
<tr class="fb_locale_options">
|
219 |
-
<th><?php _e( 'Locale', '
|
220 |
<td>
|
221 |
<?php
|
222 |
$listLocales=false;
|
@@ -258,7 +258,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
258 |
if ( $fb_locale!=$locale ) $locale_txt.=' -> '.$fb_locale;
|
259 |
?>
|
260 |
<select name="wonderm00n_open_graph_settings[fb_locale]" id="fb_locale">
|
261 |
-
<option value=""<?php if (trim($options['fb_locale'])=='') echo ' selected="selected"'; ?>><?php _e('WordPress current locale/language', '
|
262 |
<?php
|
263 |
//OK
|
264 |
if ($listLocales) {
|
@@ -279,22 +279,22 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
279 |
<td colspan="2" class="info">
|
280 |
- <?php
|
281 |
if ($loadedOnline) {
|
282 |
-
_e('List loaded from Facebook (online)', '
|
283 |
} else {
|
284 |
if ($loadedOffline) {
|
285 |
-
_e('List loaded from local cache (offline)', '
|
286 |
} else {
|
287 |
-
_e('List not loaded', '
|
288 |
}
|
289 |
}
|
290 |
?>
|
291 |
<br/>
|
292 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
293 |
</td>
|
294 |
</tr>
|
295 |
|
296 |
<tr>
|
297 |
-
<th><?php _e( 'Include Facebook Admin(s) ID', '
|
298 |
<td>
|
299 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_admin_id_show]" id="fb_admin_id_show" value="1" <?php echo (intval($options['fb_admin_id_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
300 |
</td>
|
@@ -306,19 +306,19 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
306 |
</tr>
|
307 |
|
308 |
<tr class="fb_admin_id_options">
|
309 |
-
<th><?php _e( 'Facebook Admin(s) ID', '
|
310 |
<td>
|
311 |
<input type="text" name="wonderm00n_open_graph_settings[fb_admin_id]" id="fb_admin_id" size="50" value="<?php echo trim(esc_attr($options['fb_admin_id'])); ?>"/>
|
312 |
</td>
|
313 |
</tr>
|
314 |
<tr class="fb_admin_id_options">
|
315 |
<td colspan="2" class="info">
|
316 |
-
- <?php _e( 'Comma separated if more than one', '
|
317 |
</td>
|
318 |
</tr>
|
319 |
|
320 |
<tr>
|
321 |
-
<th><?php _e( 'Include Facebook Platform App ID', '
|
322 |
<td>
|
323 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_app_id_show]" id="fb_app_id_show" value="1" <?php echo (intval($options['fb_app_id_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
324 |
</td>
|
@@ -330,18 +330,18 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
330 |
</tr>
|
331 |
|
332 |
<tr class="fb_app_id_options">
|
333 |
-
<th><?php _e( 'Facebook Platform App ID', '
|
334 |
<td>
|
335 |
<input type="text" name="wonderm00n_open_graph_settings[fb_app_id]" id="fb_app_id" size="50" value="<?php echo trim(esc_attr($options['fb_app_id'])); ?>"/>
|
336 |
</td>
|
337 |
</tr>
|
338 |
<tr class="fb_app_id_options">
|
339 |
<td colspan="2" class="info">
|
340 |
-
- <?php _e( 'From your Facebook Developers dashboard', '
|
341 |
</td>
|
342 |
</tr>
|
343 |
<tr>
|
344 |
-
<th><?php _e( 'Declaration Method', '
|
345 |
<td>
|
346 |
<select name="wonderm00n_open_graph_settings[fb_declaration_method]" id="fb_declaration_method">
|
347 |
<option value="xmlns"<?php if (trim($options['fb_declaration_method'])=='' || trim($options['fb_declaration_method'])=='xmlns') echo ' selected="selected"'; ?>>xmlns</option>
|
@@ -351,9 +351,9 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
351 |
</tr>
|
352 |
<tr class="fb_type_options">
|
353 |
<td colspan="2" class="info">
|
354 |
-
<i><html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#"></i> <?php _e('or', '
|
355 |
<br/>
|
356 |
-
- <?php _e( 'Prefix is recommended because it validates properly with the W3C validator, xmlns is the legacy method', '
|
357 |
</td>
|
358 |
</tr>
|
359 |
|
@@ -362,32 +362,32 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
362 |
</div>
|
363 |
</div>
|
364 |
<div class="postbox">
|
365 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-portfolio"></i> <?php _e( 'Facebook Open Graph Tags cache', '
|
366 |
<div class="inside">
|
367 |
<table class="form-table">
|
368 |
<tbody>
|
369 |
|
370 |
<tr>
|
371 |
-
<th><?php _e( 'Clear cache', '
|
372 |
<td>
|
373 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_notify_fb]" id="fb_adv_notify_fb" value="1" <?php echo (intval($options['fb_adv_notify_fb'])==1 ? ' checked="checked"' : ''); ?>/>
|
374 |
</td>
|
375 |
</tr>
|
376 |
<tr>
|
377 |
<td colspan="2" class="info">
|
378 |
-
- <?php _e( 'Try to clear the Facebook Open Graph Tags cache when saving a post or page, so the link preview on Facebook is immediately updated', '
|
379 |
</td>
|
380 |
</tr>
|
381 |
|
382 |
<tr class="fb_adv_notify_fb_options">
|
383 |
-
<th><?php _e( 'Suppress cache notices', '
|
384 |
<td>
|
385 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_supress_fb_notice]" id="fb_adv_supress_fb_notice" value="1" <?php echo (intval($options['fb_adv_supress_fb_notice'])==1 ? ' checked="checked"' : ''); ?>/>
|
386 |
</td>
|
387 |
</tr>
|
388 |
<tr class="fb_adv_notify_fb_options">
|
389 |
<td colspan="2" class="info">
|
390 |
-
- <?php _e( 'Sometimes we aren\'t able to update the cache and the post author will see a notice if this option is not checked', '
|
391 |
</td>
|
392 |
</tr>
|
393 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-2">
|
11 |
+
<p><?php _e( 'Open Graph tags used by Facebook, and other social networks, to render link share posts.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
12 |
<div class="postbox">
|
13 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-facebook-alt"></i> <?php _e( 'Facebook Open Graph Tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
+
<th><?php _e( 'Include Post/Page Title', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_title_show]" id="fb_title_show" value="1" <?php echo (intval($options['fb_title_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
22 |
</td>
|
25 |
<td colspan="2" class="info">
|
26 |
<i><meta property="og:title" content="..."/></i>
|
27 |
<br/>
|
28 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_title' ); ?>
|
29 |
</td>
|
30 |
</tr>
|
31 |
|
32 |
<tr>
|
33 |
+
<th><?php _e( 'Include Site Name', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
34 |
<td>
|
35 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_sitename_show]" id="fb_sitename_show" value="1" <?php echo (intval($options['fb_sitename_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
36 |
</td>
|
39 |
<td colspan="2" class="info">
|
40 |
<i><meta property="og:site_name" content="..."/></i>
|
41 |
<br/>
|
42 |
+
- <?php _e( 'From Settings > General > Site Title', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
46 |
<tr>
|
47 |
+
<th><?php _e( 'Include URL', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
48 |
<td>
|
49 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_show]" id="fb_url_show" value="1" <?php echo (intval($options['fb_url_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
50 |
</td>
|
53 |
<td colspan="2" class="info">
|
54 |
<i><meta property="og:url" content="..."/></i>
|
55 |
<br/>
|
56 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_url' ); ?>
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
60 |
<tr>
|
61 |
+
<th><?php _e( 'Include Description', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
62 |
<td>
|
63 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show]" id="fb_desc_show" value="1" <?php echo (intval($options['fb_desc_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
64 |
</td>
|
67 |
<td colspan="2" class="info">
|
68 |
<i><meta property="og:description" content="..."/></i>
|
69 |
<br/>
|
70 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_desc' ); ?>
|
71 |
</td>
|
72 |
</tr>
|
73 |
|
74 |
<tr>
|
75 |
+
<th><?php _e( 'Include Image', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
76 |
<td>
|
77 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_show]" id="fb_image_show" value="1" <?php echo (intval($options['fb_image_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
78 |
</td>
|
81 |
<td colspan="2" class="info">
|
82 |
<i><meta property="og:image" content="..."/></i>
|
83 |
<br/>
|
84 |
+
- <?php printf( __('All images must have at least 200px on both dimensions in order to Facebook to load them at all. %dx%dpx for optimal results. Minimum of 600x315px is recommended.', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H );?>
|
85 |
<br/>
|
86 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_image' ); ?>
|
87 |
</td>
|
88 |
</tr>
|
89 |
|
90 |
<tr class="fb_image_options">
|
91 |
+
<th><?php _e( 'Include Image Dimensions', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
92 |
<td>
|
93 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_size_show]" id="fb_image_size_show" value="1" <?php echo (intval($options['fb_image_size_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
94 |
</td>
|
95 |
</tr>
|
96 |
<tr class="fb_image_options">
|
97 |
<td colspan="2" class="info">
|
98 |
+
<i><meta property="og:image:width" content="..."/></i> <?php _e('and', 'wonderm00ns-simple-facebook-open-graph-tags'); ?> <i><meta property="og:image:height" content="..."/></i>
|
99 |
<br/>
|
100 |
+
- <?php _e( 'Recommended only if Facebook is having problems loading the image when the post is shared for the first time, or else it adds extra unnecessary processing time', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
101 |
</td>
|
102 |
</tr>
|
103 |
|
104 |
<tr>
|
105 |
+
<th><?php _e( 'Include Type', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
106 |
<td>
|
107 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_type_show]" id="fb_type_show" value="1" <?php echo (intval($options['fb_type_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
108 |
</td>
|
111 |
<td colspan="2" class="info">
|
112 |
<i><meta property="og:type" content="..."/></i>
|
113 |
<br/>
|
114 |
+
- <?php printf( __( 'Will be "%1$s" for posts and pages and "%2$s" or "%3$s" for the homepage', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'article', 'website', 'blog' ); ?>
|
115 |
<br/>
|
116 |
+
- <?php _e( 'Additional types may be used depending on 3rd party integrations', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
117 |
<br/>
|
118 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_type' ); ?>
|
119 |
</td>
|
120 |
</tr>
|
121 |
|
122 |
<tr class="fb_type_options">
|
123 |
+
<th><?php _e( 'Homepage Type', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
124 |
<td>
|
125 |
<select name="wonderm00n_open_graph_settings[fb_type_homepage]" id="fb_type_homepage">
|
126 |
<option value="website"<?php if (trim($options['fb_type_homepage'])=='' || trim($options['fb_type_homepage'])=='website') echo ' selected="selected"'; ?>>website</option>
|
134 |
</tr>
|
135 |
|
136 |
<tr>
|
137 |
+
<th><?php _e( 'Include Post/Page Author', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
138 |
<td>
|
139 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show]" id="fb_author_show" value="1" <?php echo (intval($options['fb_author_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
140 |
</td>
|
143 |
<td colspan="2" class="info">
|
144 |
<i><meta property="article:author" content="..."/></i>
|
145 |
<br/>
|
146 |
+
- <?php _e( 'The user\'s Facebook URL must be filled in on his profile', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
147 |
</td>
|
148 |
</tr>
|
149 |
|
150 |
<tr>
|
151 |
+
<th><?php _e( 'Include Published/Modified Dates', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
152 |
<td>
|
153 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_article_dates_show]" id="fb_article_dates_show" value="1" <?php echo (intval($options['fb_article_dates_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
154 |
</td>
|
155 |
</tr>
|
156 |
<tr>
|
157 |
<td colspan="2" class="info">
|
158 |
+
<i><meta property="article:published_time" content="..."/></i>, <i><meta property="article:modified_time" content="..."/></i> <?php _e('and', 'wonderm00ns-simple-facebook-open-graph-tags'); ?> <i><meta property="og:updated_time" content="..."/></i>
|
159 |
<br/>
|
160 |
+
- <?php _e( 'For posts only', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
161 |
</td>
|
162 |
</tr>
|
163 |
|
164 |
<tr>
|
165 |
+
<th><?php _e( 'Include Article Sections', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
166 |
<td>
|
167 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_article_sections_show]" id="fb_article_sections_show" value="1" <?php echo (intval($options['fb_article_sections_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
168 |
</td>
|
171 |
<td colspan="2" class="info">
|
172 |
<i><meta property="article:section" content="..."/></i>
|
173 |
<br/>
|
174 |
+
- <?php _e( 'For posts only', 'wonderm00ns-simple-facebook-open-graph-tags' );?>, <?php _e('from the categories names', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
175 |
</td>
|
176 |
</tr>
|
177 |
|
178 |
<tr>
|
179 |
+
<th><?php _e( 'Include Publisher', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
180 |
<td>
|
181 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show]" id="fb_publisher_show" value="1" <?php echo (intval($options['fb_publisher_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
182 |
</td>
|
185 |
<td colspan="2" class="info">
|
186 |
<i><meta property="article:publisher" content="..."/></i>
|
187 |
<br/>
|
188 |
+
- <?php _e( 'The website\'s Facebook Page', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
189 |
</td>
|
190 |
</tr>
|
191 |
|
192 |
<tr class="fb_publisher_options">
|
193 |
+
<th><?php _e( 'Website\'s Facebook Page', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
194 |
<td>
|
195 |
<input type="text" name="wonderm00n_open_graph_settings[fb_publisher]" id="fb_publisher" size="50" value="<?php echo trim(esc_attr($options['fb_publisher'])); ?>"/>
|
196 |
</td>
|
197 |
</tr>
|
198 |
<tr class="fb_publisher_options">
|
199 |
<td colspan="2" class="info">
|
200 |
+
- <?php _e( 'Facebook Page URL (with https://)', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
201 |
</td>
|
202 |
</tr>
|
203 |
|
204 |
<tr>
|
205 |
+
<th><a name="fblocale"></a><?php _e( 'Include Locale', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
206 |
<td>
|
207 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_locale_show]" id="fb_locale_show" value="1" <?php echo (intval($options['fb_locale_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
208 |
</td>
|
211 |
<td colspan="2" class="info">
|
212 |
<i><meta property="fb:locale" content="..."/></i>
|
213 |
<br/>
|
214 |
+
- <?php _e( 'The website\'s Facebook Page', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
215 |
</td>
|
216 |
</tr>
|
217 |
|
218 |
<tr class="fb_locale_options">
|
219 |
+
<th><?php _e( 'Locale', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
220 |
<td>
|
221 |
<?php
|
222 |
$listLocales=false;
|
258 |
if ( $fb_locale!=$locale ) $locale_txt.=' -> '.$fb_locale;
|
259 |
?>
|
260 |
<select name="wonderm00n_open_graph_settings[fb_locale]" id="fb_locale">
|
261 |
+
<option value=""<?php if (trim($options['fb_locale'])=='') echo ' selected="selected"'; ?>><?php _e('WordPress current locale/language', 'wonderm00ns-simple-facebook-open-graph-tags'); ?> (<?php echo $locale_txt; ?>)</option>
|
262 |
<?php
|
263 |
//OK
|
264 |
if ($listLocales) {
|
279 |
<td colspan="2" class="info">
|
280 |
- <?php
|
281 |
if ($loadedOnline) {
|
282 |
+
_e('List loaded from Facebook (online)', 'wonderm00ns-simple-facebook-open-graph-tags');
|
283 |
} else {
|
284 |
if ($loadedOffline) {
|
285 |
+
_e('List loaded from local cache (offline)', 'wonderm00ns-simple-facebook-open-graph-tags'); ?> - <a href="?page=class-webdados-fb-open-graph-admin.php&localeOnline=1" onClick="return(confirm('<?php _e('You\\\'l lose any changes you haven\\\'t saved. Are you sure?', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>'));"><?php _e('Reload from Facebook', 'wonderm00ns-simple-facebook-open-graph-tags'); ?></a><?php
|
286 |
} else {
|
287 |
+
_e('List not loaded', 'wonderm00ns-simple-facebook-open-graph-tags');
|
288 |
}
|
289 |
}
|
290 |
?>
|
291 |
<br/>
|
292 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_locale' ); ?>
|
293 |
</td>
|
294 |
</tr>
|
295 |
|
296 |
<tr>
|
297 |
+
<th><?php _e( 'Include Facebook Admin(s) ID', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
298 |
<td>
|
299 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_admin_id_show]" id="fb_admin_id_show" value="1" <?php echo (intval($options['fb_admin_id_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
300 |
</td>
|
306 |
</tr>
|
307 |
|
308 |
<tr class="fb_admin_id_options">
|
309 |
+
<th><?php _e( 'Facebook Admin(s) ID', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
310 |
<td>
|
311 |
<input type="text" name="wonderm00n_open_graph_settings[fb_admin_id]" id="fb_admin_id" size="50" value="<?php echo trim(esc_attr($options['fb_admin_id'])); ?>"/>
|
312 |
</td>
|
313 |
</tr>
|
314 |
<tr class="fb_admin_id_options">
|
315 |
<td colspan="2" class="info">
|
316 |
+
- <?php _e( 'Comma separated if more than one', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
317 |
</td>
|
318 |
</tr>
|
319 |
|
320 |
<tr>
|
321 |
+
<th><?php _e( 'Include Facebook Platform App ID', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
322 |
<td>
|
323 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_app_id_show]" id="fb_app_id_show" value="1" <?php echo (intval($options['fb_app_id_show'])==1 ? ' checked="checked"' : ''); ?>/>
|
324 |
</td>
|
330 |
</tr>
|
331 |
|
332 |
<tr class="fb_app_id_options">
|
333 |
+
<th><?php _e( 'Facebook Platform App ID', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
334 |
<td>
|
335 |
<input type="text" name="wonderm00n_open_graph_settings[fb_app_id]" id="fb_app_id" size="50" value="<?php echo trim(esc_attr($options['fb_app_id'])); ?>"/>
|
336 |
</td>
|
337 |
</tr>
|
338 |
<tr class="fb_app_id_options">
|
339 |
<td colspan="2" class="info">
|
340 |
+
- <?php _e( 'From your Facebook Developers dashboard', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
341 |
</td>
|
342 |
</tr>
|
343 |
<tr>
|
344 |
+
<th><?php _e( 'Declaration Method', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
345 |
<td>
|
346 |
<select name="wonderm00n_open_graph_settings[fb_declaration_method]" id="fb_declaration_method">
|
347 |
<option value="xmlns"<?php if (trim($options['fb_declaration_method'])=='' || trim($options['fb_declaration_method'])=='xmlns') echo ' selected="selected"'; ?>>xmlns</option>
|
351 |
</tr>
|
352 |
<tr class="fb_type_options">
|
353 |
<td colspan="2" class="info">
|
354 |
+
<i><html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#"></i> <?php _e('or', 'wonderm00ns-simple-facebook-open-graph-tags'); ?> <i><html prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"></i>
|
355 |
<br/>
|
356 |
+
- <?php _e( 'Prefix is recommended because it validates properly with the W3C validator, xmlns is the legacy method', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
357 |
</td>
|
358 |
</tr>
|
359 |
|
362 |
</div>
|
363 |
</div>
|
364 |
<div class="postbox">
|
365 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-portfolio"></i> <?php _e( 'Facebook Open Graph Tags cache', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
366 |
<div class="inside">
|
367 |
<table class="form-table">
|
368 |
<tbody>
|
369 |
|
370 |
<tr>
|
371 |
+
<th><?php _e( 'Clear cache', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
372 |
<td>
|
373 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_notify_fb]" id="fb_adv_notify_fb" value="1" <?php echo (intval($options['fb_adv_notify_fb'])==1 ? ' checked="checked"' : ''); ?>/>
|
374 |
</td>
|
375 |
</tr>
|
376 |
<tr>
|
377 |
<td colspan="2" class="info">
|
378 |
+
- <?php _e( 'Try to clear the Facebook Open Graph Tags cache when saving a post or page, so the link preview on Facebook is immediately updated', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
379 |
</td>
|
380 |
</tr>
|
381 |
|
382 |
<tr class="fb_adv_notify_fb_options">
|
383 |
+
<th><?php _e( 'Suppress cache notices', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
384 |
<td>
|
385 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_supress_fb_notice]" id="fb_adv_supress_fb_notice" value="1" <?php echo (intval($options['fb_adv_supress_fb_notice'])==1 ? ' checked="checked"' : ''); ?>/>
|
386 |
</td>
|
387 |
</tr>
|
388 |
<tr class="fb_adv_notify_fb_options">
|
389 |
<td colspan="2" class="info">
|
390 |
+
- <?php _e( 'Sometimes we aren\'t able to update the cache and the post author will see a notice if this option is not checked', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
391 |
</td>
|
392 |
</tr>
|
393 |
|
admin/options-page-general.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -10,44 +10,44 @@ global $webdados_fb;
|
|
10 |
|
11 |
?>
|
12 |
<div class="menu_containt_div" id="tabs-1">
|
13 |
-
<p><?php _e( 'General settings that will apply to all tags types.', '
|
14 |
<div class="postbox">
|
15 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-editor-alignleft"></i> <?php _e( 'Description settings', '
|
16 |
<div class="inside">
|
17 |
<table class="form-table">
|
18 |
<tbody>
|
19 |
|
20 |
<tr>
|
21 |
-
<th><?php _e( 'Description maximum length', '
|
22 |
<td>
|
23 |
-
<input type="text" name="wonderm00n_open_graph_settings[fb_desc_chars]" id="fb_desc_chars" size="3" maxlength="3" value="<?php echo (intval($options['fb_desc_chars'])>0 ? intval($options['fb_desc_chars']) : '' ); ?>"/> <?php _e( 'characters', '
|
24 |
</td>
|
25 |
</tr>
|
26 |
<tr>
|
27 |
<td colspan="2" class="info">
|
28 |
-
- <?php _e( '0 (zero) or blank for no maximum length', '
|
29 |
<?php if ( $webdados_fb->is_yoast_seo_active() ) { ?>
|
30 |
<div class="fb_wpseoyoast_options">
|
31 |
-
- <?php _e( 'Because Yoast SEO integration is active, this value may be overwritten', '
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
</td>
|
35 |
</tr>
|
36 |
|
37 |
<tr>
|
38 |
-
<th><?php _e( 'Homepage description', '
|
39 |
<td>
|
40 |
<?php
|
41 |
$hide_home_description=false;
|
42 |
if ( get_option( 'show_on_front' )=='page' ) {
|
43 |
$hide_home_description=true;
|
44 |
-
_e( 'The description of your front page:', '
|
45 |
echo ' <a href="'.get_edit_post_link(get_option( 'page_on_front' )).'" target="_blank">'.get_the_title(get_option( 'page_on_front' )).'</a>';
|
46 |
}; ?>
|
47 |
<div<?php if ($hide_home_description) echo ' style="display: none;"'; ?>>
|
48 |
<select name="wonderm00n_open_graph_settings[fb_desc_homepage]" id="fb_desc_homepage">
|
49 |
-
<option value=""<?php if (trim($options['fb_desc_homepage'])=='' ) echo ' selected="selected"'; ?>><?php _e( 'Website tagline', '
|
50 |
-
<option value="custom"<?php if (trim($options['fb_desc_homepage'])=='custom' ) echo ' selected="selected"'; ?>><?php _e( 'Custom text', '
|
51 |
</select>
|
52 |
<div class="fb_desc_homepage_customtext_div">
|
53 |
<textarea name="wonderm00n_open_graph_settings[fb_desc_homepage_customtext]" id="fb_desc_homepage_customtext" rows="3" cols="50"><?php echo trim(esc_attr($options['fb_desc_homepage_customtext'])); ?></textarea>
|
@@ -59,13 +59,13 @@ global $webdados_fb;
|
|
59 |
<td colspan="2" class="info">
|
60 |
<?php if ( $webdados_fb->is_yoast_seo_active() ) { ?>
|
61 |
<div class="fb_wpseoyoast_options">
|
62 |
-
- <?php _e( 'Because Yoast SEO integration is active, this value may be overwritten', '
|
63 |
</div>
|
64 |
<?php } ?>
|
65 |
<?php if ( $webdados_fb->is_wpml_active() ) { ?>
|
66 |
<div class="fb_desc_homepage_customtext_div">-
|
67 |
<?php printf(
|
68 |
-
__( 'WPML users: Set the main language homepage description here, save changes and then go to <a href="%s" target="_blank">WPML > String translation</a> to set it for other languages.', '
|
69 |
'admin.php?page=wpml-string-translation/menu/string-translation.php&context=wd-fb-og'
|
70 |
); ?>
|
71 |
</div>
|
@@ -74,11 +74,11 @@ global $webdados_fb;
|
|
74 |
</tr>
|
75 |
|
76 |
<tr>
|
77 |
-
<th><?php _e( 'Default description', '
|
78 |
<td>
|
79 |
<select name="wonderm00n_open_graph_settings[fb_desc_default_option]" id="fb_desc_default_option">
|
80 |
-
<option value=""<?php if (trim($options['fb_desc_default_option'])=='' ) echo ' selected="selected"'; ?>><?php _e( 'Homepage description', '
|
81 |
-
<option value="custom"<?php if (trim($options['fb_desc_default_option'])=='custom' ) echo ' selected="selected"'; ?>><?php _e( 'Custom text', '
|
82 |
</select>
|
83 |
<div class="fb_desc_default_customtext_div">
|
84 |
<textarea name="wonderm00n_open_graph_settings[fb_desc_default]" id="fb_desc_default" rows="3" cols="50"><?php echo trim(esc_attr($options['fb_desc_default'])); ?></textarea>
|
@@ -87,16 +87,16 @@ global $webdados_fb;
|
|
87 |
</tr>
|
88 |
<tr>
|
89 |
<td colspan="2" class="info">
|
90 |
-
- <?php _e( 'The default description to be used on any post / page / cpt / archive / search / ... that has a blank description', '
|
91 |
<?php if ( $webdados_fb->is_yoast_seo_active() ) { ?>
|
92 |
<div class="fb_wpseoyoast_options">
|
93 |
-
- <?php _e( 'Because Yoast SEO integration is active, this value may be overwritten', '
|
94 |
</div>
|
95 |
<?php } ?>
|
96 |
<?php if ( $webdados_fb->is_wpml_active() ) { ?>
|
97 |
<div class="fb_desc_default_customtext_div">-
|
98 |
<?php printf(
|
99 |
-
__( 'WPML users: Set the main language default description here, save changes and then go to <a href="%s" target="_blank">WPML > String translation</a> to set it for other languages.', '
|
100 |
'admin.php?page=wpml-string-translation/menu/string-translation.php&context=wd-fb-og'
|
101 |
); ?>
|
102 |
</div>
|
@@ -109,135 +109,135 @@ global $webdados_fb;
|
|
109 |
</div>
|
110 |
</div>
|
111 |
<div class="postbox">
|
112 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-format-image"></i> <?php _e( 'Image settings', '
|
113 |
<div class="inside">
|
114 |
<table class="form-table">
|
115 |
<tbody>
|
116 |
|
117 |
<tr>
|
118 |
-
<th><?php _e( 'Default image', '
|
119 |
<td>
|
120 |
<input type="text" name="wonderm00n_open_graph_settings[fb_image]" id="fb_image" size="45" value="<?php echo trim(esc_attr($options['fb_image'])); ?>" class="<?php echo( trim($options['fb_image'])=='' ? 'error' : '' ); ?>"/>
|
121 |
-
<input id="fb_image_button" class="button" type="button" value="<?php echo esc_attr( __('Upload/Choose', '
|
122 |
</td>
|
123 |
</tr>
|
124 |
<tr>
|
125 |
<td colspan="2" class="info">
|
126 |
-
- <?php _e( 'URL (with http(s)://)', '
|
127 |
<br/>
|
128 |
-
- <?php printf( __( 'Recommended size: %dx%dpx', '
|
129 |
<br/>
|
130 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
131 |
</td>
|
132 |
</tr>
|
133 |
|
134 |
<tr>
|
135 |
-
<th><?php _e( 'On Post/Page, use image from', '
|
136 |
<td>
|
137 |
<div>
|
138 |
1) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_specific]" id="fb_image_use_specific" value="1" <?php echo (intval($options['fb_image_use_specific'])==1 ? ' checked="checked"' : '' ); ?>/>
|
139 |
-
<small><?php _e( '"Open Graph Image" custom field on the post', '
|
140 |
</div>
|
141 |
<div>
|
142 |
2) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_featured]" id="fb_image_use_featured" value="1" <?php echo (intval($options['fb_image_use_featured'])==1 ? ' checked="checked"' : '' ); ?>/>
|
143 |
-
<small><?php _e( 'Post/page featured image', '
|
144 |
</div>
|
145 |
<div>
|
146 |
3) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_content]" id="fb_image_use_content" value="1" <?php echo (intval($options['fb_image_use_content'])==1 ? ' checked="checked"' : '' ); ?>/>
|
147 |
-
<small><?php _e( 'First image from the post/page content', '
|
148 |
</div>
|
149 |
<div>
|
150 |
4) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_media]" id="fb_image_use_media" value="1" <?php echo (intval($options['fb_image_use_media'])==1 ? ' checked="checked"' : '' ); ?>/>
|
151 |
-
<small><?php _e( 'First image from the post/page media gallery', '
|
152 |
</div>
|
153 |
<div>
|
154 |
5) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_default]" id="fb_image_use_default" value="1" <?php echo (intval($options['fb_image_use_default'])==1 ? ' checked="checked"' : '' ); ?>/>
|
155 |
-
<small><?php _e( 'Default image specified above', '
|
156 |
</div>
|
157 |
</td>
|
158 |
</tr>
|
159 |
<tr>
|
160 |
<td colspan="2" class="info">
|
161 |
-
- <?php _e( 'On posts/pages the first image found, using the priority above, will be used. On the homepage, archives and other website sections the default image is always used.', '
|
162 |
</td>
|
163 |
</tr>
|
164 |
|
165 |
<tr>
|
166 |
-
<th><?php _e( 'Overlay PNG logo', '
|
167 |
<td>
|
168 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_overlay]" id="fb_image_overlay" value="1" <?php echo (intval($options['fb_image_overlay'])==1 ? ' checked="checked"' : '' ); ?>/>
|
169 |
</td>
|
170 |
</tr>
|
171 |
<tr>
|
172 |
<td colspan="2" class="info">
|
173 |
-
- <?php _e('Experimental', '
|
174 |
<br/>
|
175 |
-
- <?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.', '
|
176 |
<br/>
|
177 |
- <?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/' ); ?>
|
178 |
<br/>
|
179 |
-
- <?php printf( __( 'If you activate this option globally, you can disable it based on your conditions using the <i>%1$s</i> filter', '
|
180 |
</td>
|
181 |
</tr>
|
182 |
|
183 |
<tr class="fb_image_overlay_options">
|
184 |
-
<th><?php _e( 'PNG logo', '
|
185 |
<td>
|
186 |
<input type="text" name="wonderm00n_open_graph_settings[fb_image_overlay_image]" id="fb_image_overlay_image" size="45" value="<?php echo trim(esc_attr($options['fb_image_overlay_image'])); ?>"/>
|
187 |
-
<input id="fb_image_overlay_button" class="button" type="button" value="<?php echo esc_attr( __('Upload/Choose', '
|
188 |
</td>
|
189 |
</tr>
|
190 |
<tr class="fb_image_overlay_options">
|
191 |
<td colspan="2" class="info">
|
192 |
-
- <?php _e( 'URL (with http(s)://)', '
|
193 |
<br/>
|
194 |
-
- <?php printf( __( 'Size: %dx%dpx', '
|
195 |
</td>
|
196 |
</tr>
|
197 |
|
198 |
<tr>
|
199 |
-
<th><?php _e( 'Add image to RSS/RSS2 feeds', '
|
200 |
<td>
|
201 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_rss]" id="fb_image_rss" value="1" <?php echo (intval($options['fb_image_rss'])==1 ? ' checked="checked"' : '' ); ?>/>
|
202 |
</td>
|
203 |
</tr>
|
204 |
<tr>
|
205 |
<td colspan="2" class="info">
|
206 |
-
- <?php _e( 'For auto-posting apps like RSS Graffiti, twitterfeed, ...', '
|
207 |
</td>
|
208 |
</tr>
|
209 |
|
210 |
<tr>
|
211 |
-
<th><?php _e( 'Force getimagesize on local file', '
|
212 |
<td>
|
213 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_force_local]" id="fb_adv_force_local" value="1" <?php echo (intval($options['fb_adv_force_local'])==1 ? ' checked="checked"' : '' ); ?>/>
|
214 |
</td>
|
215 |
</tr>
|
216 |
<tr>
|
217 |
<td colspan="2" class="info">
|
218 |
-
- <b><?php _e( 'This is an advanced option: Don\'t mess with this unless you know what you\'re doing', '
|
219 |
<br/>
|
220 |
-
- <?php _e( 'Force getimagesize on local file even if allow_url_fopen=1', '
|
221 |
<br/>
|
222 |
-
- <?php _e( 'May cause problems with some multisite configurations but fixes "HTTP request failed" errors', '
|
223 |
</td>
|
224 |
</tr>
|
225 |
|
226 |
<tr>
|
227 |
-
<th><?php _e( 'Do not get image size', '
|
228 |
<td>
|
229 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_disable_image_size]" id="fb_adv_disable_image_size" value="1" <?php echo (intval($options['fb_adv_disable_image_size'])==1 ? ' checked="checked"' : '' ); ?>/>
|
230 |
</td>
|
231 |
</tr>
|
232 |
<tr>
|
233 |
<td colspan="2" class="info">
|
234 |
-
- <?php _e('Experimental', '
|
235 |
<br/>
|
236 |
-
- <b><?php _e( 'This is an advanced option: Don\'t mess with this unless you know what you\'re doing', '
|
237 |
<br/>
|
238 |
-
- <?php _e( 'You should only activate this option if you\'re getting fatal errors (white screen of death) and only keep it active if this options does solve those errors', '
|
239 |
<br/>
|
240 |
-
- <?php _e( 'This can render the "Add image to RSS/RSS2 feeds" and "Open Graph - Include Image Dimensions" options useless', '
|
241 |
</td>
|
242 |
</tr>
|
243 |
|
@@ -248,22 +248,22 @@ global $webdados_fb;
|
|
248 |
</div>
|
249 |
</div>
|
250 |
<div class="postbox">
|
251 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-admin-links"></i> <?php _e( 'URL settings', '
|
252 |
<div class="inside">
|
253 |
<table class="form-table">
|
254 |
<tbody>
|
255 |
|
256 |
<tr>
|
257 |
-
<th><?php _e( 'Add trailing slash at the end', '
|
258 |
<td>
|
259 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_add_trailing]" id="fb_url_add_trailing" value="1" <?php echo (intval($options['fb_url_add_trailing'])==1 ? ' checked="checked"' : '' ); ?>/>
|
260 |
</td>
|
261 |
</tr>
|
262 |
<tr>
|
263 |
<td colspan="2" class="info">
|
264 |
-
- <?php _e( 'If missing, a trailing slash will be added at the end', '
|
265 |
<br/>
|
266 |
-
- <?php _e( 'Homepage example:', '
|
267 |
</td>
|
268 |
</tr>
|
269 |
|
@@ -272,20 +272,20 @@ global $webdados_fb;
|
|
272 |
</div>
|
273 |
</div>
|
274 |
<div class="postbox">
|
275 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-admin-users"></i> <?php _e( 'Author settings', '
|
276 |
<div class="inside">
|
277 |
<table class="form-table">
|
278 |
<tbody>
|
279 |
|
280 |
<tr>
|
281 |
-
<th><?php _e( 'Hide Author on Pages', '
|
282 |
<td>
|
283 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_hide_on_pages]" id="fb_author_hide_on_pages" value="1" <?php echo (intval($options['fb_author_hide_on_pages'])==1 ? ' checked="checked"' : '' ); ?>/>
|
284 |
</td>
|
285 |
</tr>
|
286 |
<tr>
|
287 |
<td colspan="2" class="info">
|
288 |
-
- <?php _e( 'Hides all Author tags on Pages', '
|
289 |
</td>
|
290 |
</tr>
|
291 |
|
@@ -294,20 +294,20 @@ global $webdados_fb;
|
|
294 |
</div>
|
295 |
</div>
|
296 |
<div class="postbox">
|
297 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-general"></i> <?php _e( 'Other settings', '
|
298 |
<div class="inside">
|
299 |
<table class="form-table">
|
300 |
<tbody>
|
301 |
|
302 |
<tr>
|
303 |
-
<th><?php _e( 'Keep data on uninstall', '
|
304 |
<td>
|
305 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_keep_data_uninstall]" id="fb_keep_data_uninstall" value="1" <?php echo (intval($options['fb_keep_data_uninstall'])==1 ? ' checked="checked"' : '' ); ?>/>
|
306 |
</td>
|
307 |
</tr>
|
308 |
<tr>
|
309 |
<td colspan="2" class="info">
|
310 |
-
- <?php _e( 'Keep the plugin settings on the database even if the plugin is uninstalled', '
|
311 |
</td>
|
312 |
</tr>
|
313 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
10 |
|
11 |
?>
|
12 |
<div class="menu_containt_div" id="tabs-1">
|
13 |
+
<p><?php _e( 'General settings that will apply to all tags types.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
14 |
<div class="postbox">
|
15 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-editor-alignleft"></i> <?php _e( 'Description settings', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
16 |
<div class="inside">
|
17 |
<table class="form-table">
|
18 |
<tbody>
|
19 |
|
20 |
<tr>
|
21 |
+
<th><?php _e( 'Description maximum length', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
22 |
<td>
|
23 |
+
<input type="text" name="wonderm00n_open_graph_settings[fb_desc_chars]" id="fb_desc_chars" size="3" maxlength="3" value="<?php echo (intval($options['fb_desc_chars'])>0 ? intval($options['fb_desc_chars']) : '' ); ?>"/> <?php _e( 'characters', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
24 |
</td>
|
25 |
</tr>
|
26 |
<tr>
|
27 |
<td colspan="2" class="info">
|
28 |
+
- <?php _e( '0 (zero) or blank for no maximum length', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
29 |
<?php if ( $webdados_fb->is_yoast_seo_active() ) { ?>
|
30 |
<div class="fb_wpseoyoast_options">
|
31 |
+
- <?php _e( 'Because Yoast SEO integration is active, this value may be overwritten', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
</td>
|
35 |
</tr>
|
36 |
|
37 |
<tr>
|
38 |
+
<th><?php _e( 'Homepage description', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
39 |
<td>
|
40 |
<?php
|
41 |
$hide_home_description=false;
|
42 |
if ( get_option( 'show_on_front' )=='page' ) {
|
43 |
$hide_home_description=true;
|
44 |
+
_e( 'The description of your front page:', 'wonderm00ns-simple-facebook-open-graph-tags' );
|
45 |
echo ' <a href="'.get_edit_post_link(get_option( 'page_on_front' )).'" target="_blank">'.get_the_title(get_option( 'page_on_front' )).'</a>';
|
46 |
}; ?>
|
47 |
<div<?php if ($hide_home_description) echo ' style="display: none;"'; ?>>
|
48 |
<select name="wonderm00n_open_graph_settings[fb_desc_homepage]" id="fb_desc_homepage">
|
49 |
+
<option value=""<?php if (trim($options['fb_desc_homepage'])=='' ) echo ' selected="selected"'; ?>><?php _e( 'Website tagline', 'wonderm00ns-simple-facebook-open-graph-tags' );?> </option>
|
50 |
+
<option value="custom"<?php if (trim($options['fb_desc_homepage'])=='custom' ) echo ' selected="selected"'; ?>><?php _e( 'Custom text', 'wonderm00ns-simple-facebook-open-graph-tags' );?> </option>
|
51 |
</select>
|
52 |
<div class="fb_desc_homepage_customtext_div">
|
53 |
<textarea name="wonderm00n_open_graph_settings[fb_desc_homepage_customtext]" id="fb_desc_homepage_customtext" rows="3" cols="50"><?php echo trim(esc_attr($options['fb_desc_homepage_customtext'])); ?></textarea>
|
59 |
<td colspan="2" class="info">
|
60 |
<?php if ( $webdados_fb->is_yoast_seo_active() ) { ?>
|
61 |
<div class="fb_wpseoyoast_options">
|
62 |
+
- <?php _e( 'Because Yoast SEO integration is active, this value may be overwritten', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
63 |
</div>
|
64 |
<?php } ?>
|
65 |
<?php if ( $webdados_fb->is_wpml_active() ) { ?>
|
66 |
<div class="fb_desc_homepage_customtext_div">-
|
67 |
<?php printf(
|
68 |
+
__( 'WPML users: Set the main language homepage description here, save changes and then go to <a href="%s" target="_blank">WPML > String translation</a> to set it for other languages.', 'wonderm00ns-simple-facebook-open-graph-tags' ),
|
69 |
'admin.php?page=wpml-string-translation/menu/string-translation.php&context=wd-fb-og'
|
70 |
); ?>
|
71 |
</div>
|
74 |
</tr>
|
75 |
|
76 |
<tr>
|
77 |
+
<th><?php _e( 'Default description', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
78 |
<td>
|
79 |
<select name="wonderm00n_open_graph_settings[fb_desc_default_option]" id="fb_desc_default_option">
|
80 |
+
<option value=""<?php if (trim($options['fb_desc_default_option'])=='' ) echo ' selected="selected"'; ?>><?php _e( 'Homepage description', 'wonderm00ns-simple-facebook-open-graph-tags' );?> </option>
|
81 |
+
<option value="custom"<?php if (trim($options['fb_desc_default_option'])=='custom' ) echo ' selected="selected"'; ?>><?php _e( 'Custom text', 'wonderm00ns-simple-facebook-open-graph-tags' );?> </option>
|
82 |
</select>
|
83 |
<div class="fb_desc_default_customtext_div">
|
84 |
<textarea name="wonderm00n_open_graph_settings[fb_desc_default]" id="fb_desc_default" rows="3" cols="50"><?php echo trim(esc_attr($options['fb_desc_default'])); ?></textarea>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
<td colspan="2" class="info">
|
90 |
+
- <?php _e( 'The default description to be used on any post / page / cpt / archive / search / ... that has a blank description', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
91 |
<?php if ( $webdados_fb->is_yoast_seo_active() ) { ?>
|
92 |
<div class="fb_wpseoyoast_options">
|
93 |
+
- <?php _e( 'Because Yoast SEO integration is active, this value may be overwritten', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
94 |
</div>
|
95 |
<?php } ?>
|
96 |
<?php if ( $webdados_fb->is_wpml_active() ) { ?>
|
97 |
<div class="fb_desc_default_customtext_div">-
|
98 |
<?php printf(
|
99 |
+
__( 'WPML users: Set the main language default description here, save changes and then go to <a href="%s" target="_blank">WPML > String translation</a> to set it for other languages.', 'wonderm00ns-simple-facebook-open-graph-tags' ),
|
100 |
'admin.php?page=wpml-string-translation/menu/string-translation.php&context=wd-fb-og'
|
101 |
); ?>
|
102 |
</div>
|
109 |
</div>
|
110 |
</div>
|
111 |
<div class="postbox">
|
112 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-format-image"></i> <?php _e( 'Image settings', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
113 |
<div class="inside">
|
114 |
<table class="form-table">
|
115 |
<tbody>
|
116 |
|
117 |
<tr>
|
118 |
+
<th><?php _e( 'Default image', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
119 |
<td>
|
120 |
<input type="text" name="wonderm00n_open_graph_settings[fb_image]" id="fb_image" size="45" value="<?php echo trim(esc_attr($options['fb_image'])); ?>" class="<?php echo( trim($options['fb_image'])=='' ? 'error' : '' ); ?>"/>
|
121 |
+
<input id="fb_image_button" class="button" type="button" value="<?php echo esc_attr( __('Upload/Choose', 'wonderm00ns-simple-facebook-open-graph-tags') ); ?>" />
|
122 |
</td>
|
123 |
</tr>
|
124 |
<tr>
|
125 |
<td colspan="2" class="info">
|
126 |
+
- <?php _e( 'URL (with http(s)://)', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
127 |
<br/>
|
128 |
+
- <?php printf( __( 'Recommended size: %dx%dpx', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H); ?>
|
129 |
<br/>
|
130 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_image' ); ?>
|
131 |
</td>
|
132 |
</tr>
|
133 |
|
134 |
<tr>
|
135 |
+
<th><?php _e( 'On Post/Page, use image from', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
136 |
<td>
|
137 |
<div>
|
138 |
1) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_specific]" id="fb_image_use_specific" value="1" <?php echo (intval($options['fb_image_use_specific'])==1 ? ' checked="checked"' : '' ); ?>/>
|
139 |
+
<small><?php _e( '"Open Graph Image" custom field on the post', 'wonderm00ns-simple-facebook-open-graph-tags' );?></small>
|
140 |
</div>
|
141 |
<div>
|
142 |
2) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_featured]" id="fb_image_use_featured" value="1" <?php echo (intval($options['fb_image_use_featured'])==1 ? ' checked="checked"' : '' ); ?>/>
|
143 |
+
<small><?php _e( 'Post/page featured image', 'wonderm00ns-simple-facebook-open-graph-tags' );?></small>
|
144 |
</div>
|
145 |
<div>
|
146 |
3) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_content]" id="fb_image_use_content" value="1" <?php echo (intval($options['fb_image_use_content'])==1 ? ' checked="checked"' : '' ); ?>/>
|
147 |
+
<small><?php _e( 'First image from the post/page content', 'wonderm00ns-simple-facebook-open-graph-tags' );?></small>
|
148 |
</div>
|
149 |
<div>
|
150 |
4) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_media]" id="fb_image_use_media" value="1" <?php echo (intval($options['fb_image_use_media'])==1 ? ' checked="checked"' : '' ); ?>/>
|
151 |
+
<small><?php _e( 'First image from the post/page media gallery', 'wonderm00ns-simple-facebook-open-graph-tags' );?></small>
|
152 |
</div>
|
153 |
<div>
|
154 |
5) <input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_use_default]" id="fb_image_use_default" value="1" <?php echo (intval($options['fb_image_use_default'])==1 ? ' checked="checked"' : '' ); ?>/>
|
155 |
+
<small><?php _e( 'Default image specified above', 'wonderm00ns-simple-facebook-open-graph-tags' );?></small>
|
156 |
</div>
|
157 |
</td>
|
158 |
</tr>
|
159 |
<tr>
|
160 |
<td colspan="2" class="info">
|
161 |
+
- <?php _e( 'On posts/pages the first image found, using the priority above, will be used. On the homepage, archives and other website sections the default image is always used.', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
162 |
</td>
|
163 |
</tr>
|
164 |
|
165 |
<tr>
|
166 |
+
<th><?php _e( 'Overlay PNG logo', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
167 |
<td>
|
168 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_overlay]" id="fb_image_overlay" value="1" <?php echo (intval($options['fb_image_overlay'])==1 ? ' checked="checked"' : '' ); ?>/>
|
169 |
</td>
|
170 |
</tr>
|
171 |
<tr>
|
172 |
<td colspan="2" class="info">
|
173 |
+
- <?php _e('Experimental', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
174 |
<br/>
|
175 |
+
- <?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);?>
|
176 |
<br/>
|
177 |
- <?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/' ); ?>
|
178 |
<br/>
|
179 |
+
- <?php printf( __( 'If you activate this option globally, you can disable it based on your conditions using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_image_overlay' ); ?>
|
180 |
</td>
|
181 |
</tr>
|
182 |
|
183 |
<tr class="fb_image_overlay_options">
|
184 |
+
<th><?php _e( 'PNG logo', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
185 |
<td>
|
186 |
<input type="text" name="wonderm00n_open_graph_settings[fb_image_overlay_image]" id="fb_image_overlay_image" size="45" value="<?php echo trim(esc_attr($options['fb_image_overlay_image'])); ?>"/>
|
187 |
+
<input id="fb_image_overlay_button" class="button" type="button" value="<?php echo esc_attr( __('Upload/Choose', 'wonderm00ns-simple-facebook-open-graph-tags') ); ?>" />
|
188 |
</td>
|
189 |
</tr>
|
190 |
<tr class="fb_image_overlay_options">
|
191 |
<td colspan="2" class="info">
|
192 |
+
- <?php _e( 'URL (with http(s)://)', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
193 |
<br/>
|
194 |
+
- <?php printf( __( 'Size: %dx%dpx', 'wonderm00ns-simple-facebook-open-graph-tags' ), WEBDADOS_FB_W, WEBDADOS_FB_H); ?>
|
195 |
</td>
|
196 |
</tr>
|
197 |
|
198 |
<tr>
|
199 |
+
<th><?php _e( 'Add image to RSS/RSS2 feeds', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
200 |
<td>
|
201 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_rss]" id="fb_image_rss" value="1" <?php echo (intval($options['fb_image_rss'])==1 ? ' checked="checked"' : '' ); ?>/>
|
202 |
</td>
|
203 |
</tr>
|
204 |
<tr>
|
205 |
<td colspan="2" class="info">
|
206 |
+
- <?php _e( 'For auto-posting apps like RSS Graffiti, twitterfeed, ...', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
207 |
</td>
|
208 |
</tr>
|
209 |
|
210 |
<tr>
|
211 |
+
<th><?php _e( 'Force getimagesize on local file', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
212 |
<td>
|
213 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_force_local]" id="fb_adv_force_local" value="1" <?php echo (intval($options['fb_adv_force_local'])==1 ? ' checked="checked"' : '' ); ?>/>
|
214 |
</td>
|
215 |
</tr>
|
216 |
<tr>
|
217 |
<td colspan="2" class="info">
|
218 |
+
- <b><?php _e( 'This is an advanced option: Don\'t mess with this unless you know what you\'re doing', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></b>
|
219 |
<br/>
|
220 |
+
- <?php _e( 'Force getimagesize on local file even if allow_url_fopen=1', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
221 |
<br/>
|
222 |
+
- <?php _e( 'May cause problems with some multisite configurations but fixes "HTTP request failed" errors', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
223 |
</td>
|
224 |
</tr>
|
225 |
|
226 |
<tr>
|
227 |
+
<th><?php _e( 'Do not get image size', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
228 |
<td>
|
229 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_adv_disable_image_size]" id="fb_adv_disable_image_size" value="1" <?php echo (intval($options['fb_adv_disable_image_size'])==1 ? ' checked="checked"' : '' ); ?>/>
|
230 |
</td>
|
231 |
</tr>
|
232 |
<tr>
|
233 |
<td colspan="2" class="info">
|
234 |
+
- <?php _e('Experimental', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
235 |
<br/>
|
236 |
+
- <b><?php _e( 'This is an advanced option: Don\'t mess with this unless you know what you\'re doing', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></b>
|
237 |
<br/>
|
238 |
+
- <?php _e( 'You should only activate this option if you\'re getting fatal errors (white screen of death) and only keep it active if this options does solve those errors', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
239 |
<br/>
|
240 |
+
- <?php _e( 'This can render the "Add image to RSS/RSS2 feeds" and "Open Graph - Include Image Dimensions" options useless', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
241 |
</td>
|
242 |
</tr>
|
243 |
|
248 |
</div>
|
249 |
</div>
|
250 |
<div class="postbox">
|
251 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-admin-links"></i> <?php _e( 'URL settings', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
252 |
<div class="inside">
|
253 |
<table class="form-table">
|
254 |
<tbody>
|
255 |
|
256 |
<tr>
|
257 |
+
<th><?php _e( 'Add trailing slash at the end', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
258 |
<td>
|
259 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_add_trailing]" id="fb_url_add_trailing" value="1" <?php echo (intval($options['fb_url_add_trailing'])==1 ? ' checked="checked"' : '' ); ?>/>
|
260 |
</td>
|
261 |
</tr>
|
262 |
<tr>
|
263 |
<td colspan="2" class="info">
|
264 |
+
- <?php _e( 'If missing, a trailing slash will be added at the end', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
265 |
<br/>
|
266 |
+
- <?php _e( 'Homepage example:', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>: <i><?php echo get_option( 'siteurl' ); ?><span id="fb_url_add_trailing_example">/</span></i>
|
267 |
</td>
|
268 |
</tr>
|
269 |
|
272 |
</div>
|
273 |
</div>
|
274 |
<div class="postbox">
|
275 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-admin-users"></i> <?php _e( 'Author settings', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
276 |
<div class="inside">
|
277 |
<table class="form-table">
|
278 |
<tbody>
|
279 |
|
280 |
<tr>
|
281 |
+
<th><?php _e( 'Hide Author on Pages', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
282 |
<td>
|
283 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_hide_on_pages]" id="fb_author_hide_on_pages" value="1" <?php echo (intval($options['fb_author_hide_on_pages'])==1 ? ' checked="checked"' : '' ); ?>/>
|
284 |
</td>
|
285 |
</tr>
|
286 |
<tr>
|
287 |
<td colspan="2" class="info">
|
288 |
+
- <?php _e( 'Hides all Author tags on Pages', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
289 |
</td>
|
290 |
</tr>
|
291 |
|
294 |
</div>
|
295 |
</div>
|
296 |
<div class="postbox">
|
297 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-general"></i> <?php _e( 'Other settings', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
298 |
<div class="inside">
|
299 |
<table class="form-table">
|
300 |
<tbody>
|
301 |
|
302 |
<tr>
|
303 |
+
<th><?php _e( 'Keep data on uninstall', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
304 |
<td>
|
305 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_keep_data_uninstall]" id="fb_keep_data_uninstall" value="1" <?php echo (intval($options['fb_keep_data_uninstall'])==1 ? ' checked="checked"' : '' ); ?>/>
|
306 |
</td>
|
307 |
</tr>
|
308 |
<tr>
|
309 |
<td colspan="2" class="info">
|
310 |
+
- <?php _e( 'Keep the plugin settings on the database even if the plugin is uninstalled', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
311 |
</td>
|
312 |
</tr>
|
313 |
|
admin/options-page-right.php
CHANGED
@@ -1,46 +1,46 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
$out_link_utm='?utm_source=fb_og_wp_plugin_settings&utm_medium=link&utm_campaign=fb_og_wp_plugin';
|
8 |
|
9 |
$links = array(
|
10 |
0 => array(
|
11 |
-
'text' => __('Test your URLs on the Facebook Debugger', '
|
12 |
'url' => 'https://developers.facebook.com/tools/debug',
|
13 |
),
|
14 |
5 => array(
|
15 |
-
'text' => __('Test your URLs on the Twitter Card validator', '
|
16 |
'url' => 'https://cards-dev.twitter.com/validator',
|
17 |
),
|
18 |
10 => array(
|
19 |
-
'text' => __('About the Open Graph Protocol (on Facebook)', '
|
20 |
'url' => 'https://developers.facebook.com/docs/opengraph/',
|
21 |
),
|
22 |
20 => array(
|
23 |
-
'text' => __('The Open Graph Protocol (official website)', '
|
24 |
'url' => 'http://ogp.me/',
|
25 |
),
|
26 |
25 => array(
|
27 |
-
'text' => __('About Twitter Cards', '
|
28 |
'url' => 'https://dev.twitter.com/cards/getting-started',
|
29 |
),
|
30 |
30 => array(
|
31 |
-
'text' => __('Plugin official URL', '
|
32 |
'url' => 'http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/'.$out_link_utm,
|
33 |
),
|
34 |
40 => array(
|
35 |
-
'text' => __('Author\'s website: Webdados', '
|
36 |
'url' => 'http://www.webdados.pt/'.$out_link_utm,
|
37 |
),
|
38 |
50 => array(
|
39 |
-
'text' => __('Author\'s Facebook page: Webdados', '
|
40 |
'url' => 'http://www.facebook.com/Webdados',
|
41 |
),
|
42 |
60 => array(
|
43 |
-
'text' => __('Author\'s Twitter account: @Wonderm00n<br/>(Webdados founder)', '
|
44 |
'url' => 'http://twitter.com/wonderm00n',
|
45 |
),
|
46 |
);
|
@@ -51,13 +51,13 @@
|
|
51 |
<div id="poststuff">
|
52 |
|
53 |
<div class="postbox">
|
54 |
-
<h3 class="hndle"><?php _e('About this plugin', '
|
55 |
<div class="inside">
|
56 |
-
<h4><?php _e('Support forum', '
|
57 |
<p><a href="https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags" target="_blank">WordPress.org</a></p>
|
58 |
-
<h4><?php _e('Premium technical support or custom WordPress development', '
|
59 |
-
<p id="webdadoslink"><a href="http://www.webdados.pt/contactos/<?php echo esc_attr($out_link_utm); ?>" title="<?php echo esc_attr(sprintf(__('Please contact %s', '
|
60 |
-
<h4><?php _e('Please rate our plugin at WordPress.org', '
|
61 |
<a href="https://wordpress.org/support/view/plugin-reviews/wonderm00ns-simple-facebook-open-graph-tags?filter=5#postform" target="_blank" style="text-align: center; display: block;">
|
62 |
<div class="star-rating"><div class="star star-full"></div><div class="star star-full"></div><div class="star star-full"></div><div class="star star-full"></div><div class="star star-full"></div></div>
|
63 |
</a>
|
@@ -65,7 +65,7 @@
|
|
65 |
</div>
|
66 |
|
67 |
<div class="postbox">
|
68 |
-
<h3 class="hndle"><?php _e('Useful links', '
|
69 |
<div class="inside">
|
70 |
<ul>
|
71 |
<?php foreach($links as $link) { ?>
|
@@ -76,9 +76,9 @@
|
|
76 |
</div>
|
77 |
|
78 |
<div id="webdados_fb_open_graph_donation" class="postbox">
|
79 |
-
<h3 class="hndle"><?php _e('Donate', '
|
80 |
<div class="inside">
|
81 |
-
<p><?php _e('If you find this plugin useful and want to make a contribution towards future development please consider making a small, or big ;-), donation.', '
|
82 |
<center><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
|
83 |
<input type="hidden" name="cmd" value="_donations">
|
84 |
<input type="hidden" name="business" value="wonderm00n@gmail.com">
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
$out_link_utm='?utm_source=fb_og_wp_plugin_settings&utm_medium=link&utm_campaign=fb_og_wp_plugin';
|
8 |
|
9 |
$links = array(
|
10 |
0 => array(
|
11 |
+
'text' => __('Test your URLs on the Facebook Debugger', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
12 |
'url' => 'https://developers.facebook.com/tools/debug',
|
13 |
),
|
14 |
5 => array(
|
15 |
+
'text' => __('Test your URLs on the Twitter Card validator', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
16 |
'url' => 'https://cards-dev.twitter.com/validator',
|
17 |
),
|
18 |
10 => array(
|
19 |
+
'text' => __('About the Open Graph Protocol (on Facebook)', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
20 |
'url' => 'https://developers.facebook.com/docs/opengraph/',
|
21 |
),
|
22 |
20 => array(
|
23 |
+
'text' => __('The Open Graph Protocol (official website)', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
24 |
'url' => 'http://ogp.me/',
|
25 |
),
|
26 |
25 => array(
|
27 |
+
'text' => __('About Twitter Cards', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
28 |
'url' => 'https://dev.twitter.com/cards/getting-started',
|
29 |
),
|
30 |
30 => array(
|
31 |
+
'text' => __('Plugin official URL', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
32 |
'url' => 'http://www.webdados.pt/produtos-e-servicos/internet/desenvolvimento-wordpress/facebook-open-graph-meta-tags-wordpress/'.$out_link_utm,
|
33 |
),
|
34 |
40 => array(
|
35 |
+
'text' => __('Author\'s website: Webdados', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
36 |
'url' => 'http://www.webdados.pt/'.$out_link_utm,
|
37 |
),
|
38 |
50 => array(
|
39 |
+
'text' => __('Author\'s Facebook page: Webdados', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
40 |
'url' => 'http://www.facebook.com/Webdados',
|
41 |
),
|
42 |
60 => array(
|
43 |
+
'text' => __('Author\'s Twitter account: @Wonderm00n<br/>(Webdados founder)', 'wonderm00ns-simple-facebook-open-graph-tags'),
|
44 |
'url' => 'http://twitter.com/wonderm00n',
|
45 |
),
|
46 |
);
|
51 |
<div id="poststuff">
|
52 |
|
53 |
<div class="postbox">
|
54 |
+
<h3 class="hndle"><?php _e('About this plugin', 'wonderm00ns-simple-facebook-open-graph-tags');?></h3>
|
55 |
<div class="inside">
|
56 |
+
<h4><?php _e('Support forum', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>:</h4>
|
57 |
<p><a href="https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags" target="_blank">WordPress.org</a></p>
|
58 |
+
<h4><?php _e('Premium technical support or custom WordPress development', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>:</h4>
|
59 |
+
<p id="webdadoslink"><a href="http://www.webdados.pt/contactos/<?php echo esc_attr($out_link_utm); ?>" title="<?php echo esc_attr(sprintf(__('Please contact %s', 'wonderm00ns-simple-facebook-open-graph-tags'), 'Webdados')); ?>" target="_blank"><img src="<?php echo plugins_url('webdados.png', __FILE__); ?>"/></a></p>
|
60 |
+
<h4><?php _e('Please rate our plugin at WordPress.org', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>:</h4>
|
61 |
<a href="https://wordpress.org/support/view/plugin-reviews/wonderm00ns-simple-facebook-open-graph-tags?filter=5#postform" target="_blank" style="text-align: center; display: block;">
|
62 |
<div class="star-rating"><div class="star star-full"></div><div class="star star-full"></div><div class="star star-full"></div><div class="star star-full"></div><div class="star star-full"></div></div>
|
63 |
</a>
|
65 |
</div>
|
66 |
|
67 |
<div class="postbox">
|
68 |
+
<h3 class="hndle"><?php _e('Useful links', 'wonderm00ns-simple-facebook-open-graph-tags');?></h3>
|
69 |
<div class="inside">
|
70 |
<ul>
|
71 |
<?php foreach($links as $link) { ?>
|
76 |
</div>
|
77 |
|
78 |
<div id="webdados_fb_open_graph_donation" class="postbox">
|
79 |
+
<h3 class="hndle"><?php _e('Donate', 'wonderm00ns-simple-facebook-open-graph-tags');?></h3>
|
80 |
<div class="inside">
|
81 |
+
<p><?php _e('If you find this plugin useful and want to make a contribution towards future development please consider making a small, or big ;-), donation.', 'wonderm00ns-simple-facebook-open-graph-tags');?></p>
|
82 |
<center><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
|
83 |
<input type="hidden" name="cmd" value="_donations">
|
84 |
<input type="hidden" name="business" value="wonderm00n@gmail.com">
|
admin/options-page-schema.php
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-4">
|
11 |
-
<p><?php _e( 'Schema.org tags used by Google+ to render link share posts.', '
|
12 |
<div class="postbox">
|
13 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-googleplus"></i> <?php _e( 'Google+ / Schema.org Tags', '
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
-
<th><?php _e( 'Include Title', '
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_title_show_schema]" id="fb_title_show_schema" value="1" <?php echo (intval($options['fb_title_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
22 |
</td>
|
@@ -25,12 +25,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
25 |
<td colspan="2" class="info">
|
26 |
<i><meta itemprop="name" content="..."/></i>
|
27 |
<br/>
|
28 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
29 |
</td>
|
30 |
</tr>
|
31 |
|
32 |
<tr>
|
33 |
-
<th><?php _e( 'Include Description', '
|
34 |
<td>
|
35 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show_schema]" id="fb_desc_show_schema" value="1" <?php echo (intval($options['fb_desc_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
36 |
</td>
|
@@ -39,12 +39,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
39 |
<td colspan="2" class="info">
|
40 |
<i><meta itemprop="description" content="..."/></i>
|
41 |
<br/>
|
42 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
46 |
<tr>
|
47 |
-
<th><?php _e( 'Include Image', '
|
48 |
<td>
|
49 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_show_schema]" id="fb_image_show_schema" value="1" <?php echo (intval($options['fb_image_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
50 |
</td>
|
@@ -53,12 +53,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
53 |
<td colspan="2" class="info">
|
54 |
<i><meta itemprop="image" content="..."/></i>
|
55 |
<br/>
|
56 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
60 |
<tr>
|
61 |
-
<th><?php _e( 'Include Type', '
|
62 |
<td>
|
63 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_type_show_schema]" id="fb_type_show_schema" value="1" <?php echo (intval($options['fb_type_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
64 |
</td>
|
@@ -67,16 +67,16 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
67 |
<td colspan="2" class="info">
|
68 |
<i><html ... itemscope itemtype="http://schema.org/..."/></i>
|
69 |
<br/>
|
70 |
-
- <?php _e('Experimental', '
|
71 |
<br/>
|
72 |
-
- <?php _e('Added to the HTML tag, if you want to avoid W3C and Structured Data validation errors', '
|
73 |
<br/>
|
74 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
75 |
</td>
|
76 |
</tr>
|
77 |
|
78 |
<tr class="fb_type_schema_options">
|
79 |
-
<th><?php _e( 'Homepage Type', '
|
80 |
<td>
|
81 |
<select name="wonderm00n_open_graph_settings[fb_type_schema_homepage]" id="fb_type_schema_homepage">
|
82 |
<option value="WebSite"<?php if (trim($options['fb_type_schema_homepage'])=='' || trim($options['fb_type_schema_homepage'])=='WebSite') echo ' selected="selected"'; ?>>WebSite</option>
|
@@ -90,7 +90,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
90 |
</tr>
|
91 |
|
92 |
<tr class="fb_type_schema_options">
|
93 |
-
<th><?php _e( 'Default (including Post/Page) Type', '
|
94 |
<td>
|
95 |
<select name="wonderm00n_open_graph_settings[fb_type_schema_post]" id="fb_type_schema_post">
|
96 |
<option value="Article"<?php if (trim($options['fb_type_schema_post'])=='' || trim($options['fb_type_schema_post'])=='Article') echo ' selected="selected"'; ?>>Article</option>
|
@@ -108,7 +108,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
108 |
|
109 |
<!-- Removed in 2.0 - https://support.google.com/webmasters/answer/6083347 -->
|
110 |
<!--<tr>
|
111 |
-
<th><?php _e( 'Include Post/Page Author', '
|
112 |
<td>
|
113 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show_linkrelgp]" id="fb_author_show_linkrelgp" value="1" <?php echo (intval($options['fb_author_show_linkrelgp'])==1 ? ' checked="checked"' : ''); ?>/>
|
114 |
</td>
|
@@ -117,14 +117,14 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
117 |
<td colspan="2" class="info">
|
118 |
<i><link rel="author" content="..."/></i>
|
119 |
<br/>
|
120 |
-
- <?php _e('The user\'s Google+ URL must be filled in on his profile', '
|
121 |
</td>
|
122 |
</tr>-->
|
123 |
|
124 |
<tr>
|
125 |
-
<th><?php _e( 'Include Post/Page Author', '
|
126 |
<td>
|
127 |
-
<small><?php _e('Google doesn\'t use it anymore', '
|
128 |
<input type="hidden" name="wonderm00n_open_graph_settings[fb_author_show_linkrelgp]" id="fb_author_show_linkrelgp" value="0"/>
|
129 |
</td>
|
130 |
</tr>
|
@@ -135,7 +135,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
135 |
</tr>
|
136 |
|
137 |
<tr>
|
138 |
-
<th><?php _e( 'Include Publisher', '
|
139 |
<td>
|
140 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show_schema]" id="fb_publisher_show_schema" value="1" <?php echo (intval($options['fb_publisher_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
141 |
</td>
|
@@ -144,19 +144,19 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
144 |
<td colspan="2" class="info">
|
145 |
<i><link rel="publisher" href="..."/></i>
|
146 |
<br/>
|
147 |
-
- <?php _e( 'The website\'s Google+ Page', '
|
148 |
</td>
|
149 |
</tr>
|
150 |
|
151 |
<tr class="fb_publisher_schema_options">
|
152 |
-
<th><?php _e( 'Website\'s Google+ Page', '
|
153 |
<td>
|
154 |
<input type="text" name="wonderm00n_open_graph_settings[fb_publisher_schema]" id="fb_publisher_schema" size="50" value="<?php echo trim(esc_attr($options['fb_publisher_schema'])); ?>"/>
|
155 |
</td>
|
156 |
</tr>
|
157 |
<tr class="fb_publisher_schema_options">
|
158 |
<td colspan="2" class="info">
|
159 |
-
- <?php _e( 'Google+ Page URL (with https://)', '
|
160 |
</td>
|
161 |
</tr>
|
162 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-4">
|
11 |
+
<p><?php _e( 'Schema.org tags used by Google+ to render link share posts.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
12 |
<div class="postbox">
|
13 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-googleplus"></i> <?php _e( 'Google+ / Schema.org Tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
+
<th><?php _e( 'Include Title', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_title_show_schema]" id="fb_title_show_schema" value="1" <?php echo (intval($options['fb_title_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
22 |
</td>
|
25 |
<td colspan="2" class="info">
|
26 |
<i><meta itemprop="name" content="..."/></i>
|
27 |
<br/>
|
28 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_title' ); ?>
|
29 |
</td>
|
30 |
</tr>
|
31 |
|
32 |
<tr>
|
33 |
+
<th><?php _e( 'Include Description', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
34 |
<td>
|
35 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show_schema]" id="fb_desc_show_schema" value="1" <?php echo (intval($options['fb_desc_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
36 |
</td>
|
39 |
<td colspan="2" class="info">
|
40 |
<i><meta itemprop="description" content="..."/></i>
|
41 |
<br/>
|
42 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_desc' ); ?>
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
46 |
<tr>
|
47 |
+
<th><?php _e( 'Include Image', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
48 |
<td>
|
49 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_show_schema]" id="fb_image_show_schema" value="1" <?php echo (intval($options['fb_image_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
50 |
</td>
|
53 |
<td colspan="2" class="info">
|
54 |
<i><meta itemprop="image" content="..."/></i>
|
55 |
<br/>
|
56 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_image' ); ?>
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
60 |
<tr>
|
61 |
+
<th><?php _e( 'Include Type', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
62 |
<td>
|
63 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_type_show_schema]" id="fb_type_show_schema" value="1" <?php echo (intval($options['fb_type_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
64 |
</td>
|
67 |
<td colspan="2" class="info">
|
68 |
<i><html ... itemscope itemtype="http://schema.org/..."/></i>
|
69 |
<br/>
|
70 |
+
- <?php _e('Experimental', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
71 |
<br/>
|
72 |
+
- <?php _e('Added to the HTML tag, if you want to avoid W3C and Structured Data validation errors', 'wonderm00ns-simple-facebook-open-graph-tags'); ?>
|
73 |
<br/>
|
74 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_type_schema' ); ?>
|
75 |
</td>
|
76 |
</tr>
|
77 |
|
78 |
<tr class="fb_type_schema_options">
|
79 |
+
<th><?php _e( 'Homepage Type', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
80 |
<td>
|
81 |
<select name="wonderm00n_open_graph_settings[fb_type_schema_homepage]" id="fb_type_schema_homepage">
|
82 |
<option value="WebSite"<?php if (trim($options['fb_type_schema_homepage'])=='' || trim($options['fb_type_schema_homepage'])=='WebSite') echo ' selected="selected"'; ?>>WebSite</option>
|
90 |
</tr>
|
91 |
|
92 |
<tr class="fb_type_schema_options">
|
93 |
+
<th><?php _e( 'Default (including Post/Page) Type', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
94 |
<td>
|
95 |
<select name="wonderm00n_open_graph_settings[fb_type_schema_post]" id="fb_type_schema_post">
|
96 |
<option value="Article"<?php if (trim($options['fb_type_schema_post'])=='' || trim($options['fb_type_schema_post'])=='Article') echo ' selected="selected"'; ?>>Article</option>
|
108 |
|
109 |
<!-- Removed in 2.0 - https://support.google.com/webmasters/answer/6083347 -->
|
110 |
<!--<tr>
|
111 |
+
<th><?php _e( 'Include Post/Page Author', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
112 |
<td>
|
113 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show_linkrelgp]" id="fb_author_show_linkrelgp" value="1" <?php echo (intval($options['fb_author_show_linkrelgp'])==1 ? ' checked="checked"' : ''); ?>/>
|
114 |
</td>
|
117 |
<td colspan="2" class="info">
|
118 |
<i><link rel="author" content="..."/></i>
|
119 |
<br/>
|
120 |
+
- <?php _e('The user\'s Google+ URL must be filled in on his profile', 'wonderm00ns-simple-facebook-open-graph-tags');?>
|
121 |
</td>
|
122 |
</tr>-->
|
123 |
|
124 |
<tr>
|
125 |
+
<th><?php _e( 'Include Post/Page Author', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
126 |
<td>
|
127 |
+
<small><?php _e('Google doesn\'t use it anymore', 'wonderm00ns-simple-facebook-open-graph-tags');?></small>
|
128 |
<input type="hidden" name="wonderm00n_open_graph_settings[fb_author_show_linkrelgp]" id="fb_author_show_linkrelgp" value="0"/>
|
129 |
</td>
|
130 |
</tr>
|
135 |
</tr>
|
136 |
|
137 |
<tr>
|
138 |
+
<th><?php _e( 'Include Publisher', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
139 |
<td>
|
140 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show_schema]" id="fb_publisher_show_schema" value="1" <?php echo (intval($options['fb_publisher_show_schema'])==1 ? ' checked="checked"' : ''); ?>/>
|
141 |
</td>
|
144 |
<td colspan="2" class="info">
|
145 |
<i><link rel="publisher" href="..."/></i>
|
146 |
<br/>
|
147 |
+
- <?php _e( 'The website\'s Google+ Page', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
148 |
</td>
|
149 |
</tr>
|
150 |
|
151 |
<tr class="fb_publisher_schema_options">
|
152 |
+
<th><?php _e( 'Website\'s Google+ Page', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
153 |
<td>
|
154 |
<input type="text" name="wonderm00n_open_graph_settings[fb_publisher_schema]" id="fb_publisher_schema" size="50" value="<?php echo trim(esc_attr($options['fb_publisher_schema'])); ?>"/>
|
155 |
</td>
|
156 |
</tr>
|
157 |
<tr class="fb_publisher_schema_options">
|
158 |
<td colspan="2" class="info">
|
159 |
+
- <?php _e( 'Google+ Page URL (with https://)', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>
|
160 |
</td>
|
161 |
</tr>
|
162 |
|
admin/options-page-seo.php
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-5">
|
11 |
-
<p><?php _e( 'SEO Meta Tags that are recommended ONLY if no other plugin is setting them already.', '
|
12 |
<div class="postbox">
|
13 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-admin-site"></i> <?php _e( 'SEO Meta Tags', '
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
-
<th><?php _e( 'Set Canonical URL', '
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_canonical]" id="fb_url_canonical" value="1" <?php echo (intval($options['fb_url_canonical'])==1 ? ' checked="checked"' : '' ); ?>/>
|
22 |
</td>
|
@@ -28,17 +28,17 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
28 |
if ( $webdados_fb->is_yoast_seo_active() ) {
|
29 |
?>
|
30 |
<br/>
|
31 |
-
- <?php _e( 'Not recommended because you have Yoast SEO active', '
|
32 |
<?php
|
33 |
}
|
34 |
?>
|
35 |
<br/>
|
36 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
37 |
</td>
|
38 |
</tr>
|
39 |
|
40 |
<tr>
|
41 |
-
<th><?php _e( 'Include Meta Description tag', '
|
42 |
<td>
|
43 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show_meta]" id="fb_desc_show_meta" value="1" <?php echo (intval($options['fb_desc_show_meta'])==1 ? ' checked="checked"' : '' ); ?>/>
|
44 |
</td>
|
@@ -50,17 +50,17 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
50 |
if ( $webdados_fb->is_yoast_seo_active() ) {
|
51 |
?>
|
52 |
<br/>
|
53 |
-
- <?php _e( 'Not recommended because you have Yoast SEO active', '
|
54 |
<?php
|
55 |
}
|
56 |
?>
|
57 |
<br/>
|
58 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
59 |
</td>
|
60 |
</tr>
|
61 |
|
62 |
<tr>
|
63 |
-
<th><?php _e( 'Include Post/Page Author name', '
|
64 |
<td>
|
65 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show_meta]" id="fb_author_show_meta" value="1" <?php echo (intval($options['fb_author_show_meta'])==1 ? ' checked="checked"' : ''); ?>/>
|
66 |
</td>
|
@@ -69,12 +69,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
69 |
<td colspan="2" class="info">
|
70 |
<i><meta name="author" content="..."/></i>
|
71 |
<br/>
|
72 |
-
- <?php _e( 'From the user Display name', '
|
73 |
</td>
|
74 |
</tr>
|
75 |
|
76 |
<tr>
|
77 |
-
<th><?php _e( 'Include Publisher', '
|
78 |
<td>
|
79 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show_meta]" id="fb_publisher_show_meta" value="1" <?php echo (intval($options['fb_publisher_show_meta'])==1 ? ' checked="checked"' : ''); ?>/>
|
80 |
</td>
|
@@ -83,7 +83,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
83 |
<td colspan="2" class="info">
|
84 |
<i><meta name="publisher" content="..."/></i>
|
85 |
<br/>
|
86 |
-
- <?php _e( 'From Settings > General > Site Title', '
|
87 |
</td>
|
88 |
</tr>
|
89 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-5">
|
11 |
+
<p><?php _e( 'SEO Meta Tags that are recommended ONLY if no other plugin is setting them already.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
12 |
<div class="postbox">
|
13 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-admin-site"></i> <?php _e( 'SEO Meta Tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
+
<th><?php _e( 'Set Canonical URL', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_canonical]" id="fb_url_canonical" value="1" <?php echo (intval($options['fb_url_canonical'])==1 ? ' checked="checked"' : '' ); ?>/>
|
22 |
</td>
|
28 |
if ( $webdados_fb->is_yoast_seo_active() ) {
|
29 |
?>
|
30 |
<br/>
|
31 |
+
- <?php _e( 'Not recommended because you have Yoast SEO active', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
32 |
<?php
|
33 |
}
|
34 |
?>
|
35 |
<br/>
|
36 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_url' ); ?>
|
37 |
</td>
|
38 |
</tr>
|
39 |
|
40 |
<tr>
|
41 |
+
<th><?php _e( 'Include Meta Description tag', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?>:</th>
|
42 |
<td>
|
43 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show_meta]" id="fb_desc_show_meta" value="1" <?php echo (intval($options['fb_desc_show_meta'])==1 ? ' checked="checked"' : '' ); ?>/>
|
44 |
</td>
|
50 |
if ( $webdados_fb->is_yoast_seo_active() ) {
|
51 |
?>
|
52 |
<br/>
|
53 |
+
- <?php _e( 'Not recommended because you have Yoast SEO active', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
54 |
<?php
|
55 |
}
|
56 |
?>
|
57 |
<br/>
|
58 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_desc' ); ?>
|
59 |
</td>
|
60 |
</tr>
|
61 |
|
62 |
<tr>
|
63 |
+
<th><?php _e( 'Include Post/Page Author name', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
64 |
<td>
|
65 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show_meta]" id="fb_author_show_meta" value="1" <?php echo (intval($options['fb_author_show_meta'])==1 ? ' checked="checked"' : ''); ?>/>
|
66 |
</td>
|
69 |
<td colspan="2" class="info">
|
70 |
<i><meta name="author" content="..."/></i>
|
71 |
<br/>
|
72 |
+
- <?php _e( 'From the user Display name', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
73 |
</td>
|
74 |
</tr>
|
75 |
|
76 |
<tr>
|
77 |
+
<th><?php _e( 'Include Publisher', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
78 |
<td>
|
79 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show_meta]" id="fb_publisher_show_meta" value="1" <?php echo (intval($options['fb_publisher_show_meta'])==1 ? ' checked="checked"' : ''); ?>/>
|
80 |
</td>
|
83 |
<td colspan="2" class="info">
|
84 |
<i><meta name="publisher" content="..."/></i>
|
85 |
<br/>
|
86 |
+
- <?php _e( 'From Settings > General > Site Title', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
87 |
</td>
|
88 |
</tr>
|
89 |
|
admin/options-page-twitter.php
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-3">
|
11 |
-
<p><?php _e( 'Tags used by Twitter to render their Cards.', '
|
12 |
<div class="postbox">
|
13 |
-
<h3 class="hndle"><i class="dashicons-before dashicons-twitter"></i> <?php _e( 'Twitter Card Tags', '
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
-
<th><?php _e( 'Include Title', '
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_title_show_twitter]" id="fb_title_show_twitter" value="1" <?php echo (intval($options['fb_title_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
22 |
</td>
|
@@ -25,12 +25,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
25 |
<td colspan="2" class="info">
|
26 |
<i><meta name="twitter:title" content=..."/></i>
|
27 |
<br/>
|
28 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
29 |
</td>
|
30 |
</tr>
|
31 |
|
32 |
<tr>
|
33 |
-
<th><?php _e( 'Include URL', '
|
34 |
<td>
|
35 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_show_twitter]" id="fb_url_show_twitter" value="1" <?php echo (intval($options['fb_url_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
36 |
</td>
|
@@ -39,12 +39,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
39 |
<td colspan="2" class="info">
|
40 |
<i><meta name="twitter:url" content="..."/></i>
|
41 |
<br/>
|
42 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
46 |
<tr>
|
47 |
-
<th><?php _e( 'Include Description', '
|
48 |
<td>
|
49 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show_twitter]" id="fb_desc_show_twitter" value="1" <?php echo (intval($options['fb_desc_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
50 |
</td>
|
@@ -53,12 +53,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
53 |
<td colspan="2" class="info">
|
54 |
<i><meta name="twitter:description" content="..."/></i>
|
55 |
<br/>
|
56 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
60 |
<tr>
|
61 |
-
<th><?php _e( 'Include Image', '
|
62 |
<td>
|
63 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_show_twitter]" id="fb_image_show_twitter" value="1" <?php echo (intval($options['fb_image_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
64 |
</td>
|
@@ -67,12 +67,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
67 |
<td colspan="2" class="info">
|
68 |
<i><meta name="twitter:image" content="..."/></i>
|
69 |
<br/>
|
70 |
-
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', '
|
71 |
</td>
|
72 |
</tr>
|
73 |
|
74 |
<tr>
|
75 |
-
<th><?php _e( 'Include Post/Page Author', '
|
76 |
<td>
|
77 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show_twitter]" id="fb_author_show_twitter" value="1" <?php echo (intval($options['fb_author_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
78 |
</td>
|
@@ -81,12 +81,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
81 |
<td colspan="2" class="info">
|
82 |
<i><meta name="twitter:creator" content="@..."/></i>
|
83 |
<br/>
|
84 |
-
- <?php _e( 'The user\'s Twitter Username must be filled in on his profile', '
|
85 |
</td>
|
86 |
</tr>
|
87 |
|
88 |
<tr>
|
89 |
-
<th><?php _e( 'Include Publisher', '
|
90 |
<td>
|
91 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show_twitter]" id="fb_publisher_show_twitter" value="1" <?php echo (intval($options['fb_publisher_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
92 |
</td>
|
@@ -95,28 +95,28 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
95 |
<td colspan="2" class="info">
|
96 |
<i><meta name="twitter:site" content="@..."/></i>
|
97 |
<br/>
|
98 |
-
- <?php _e( 'The website\'s Twitter Username', '
|
99 |
</td>
|
100 |
</tr>
|
101 |
|
102 |
<tr class="fb_publisher_twitter_options">
|
103 |
-
<th><?php _e( 'Website\'s Twitter Username', '
|
104 |
<td>
|
105 |
<input type="text" name="wonderm00n_open_graph_settings[fb_publisher_twitteruser]" id="fb_publisher_twitteruser" size="20" value="<?php echo trim(esc_attr($options['fb_publisher_twitteruser'])); ?>"/>
|
106 |
</td>
|
107 |
</tr>
|
108 |
<tr class="fb_publisher_twitter_options">
|
109 |
<td colspan="2" class="info">
|
110 |
-
- <?php _e( 'Twitter username (without @)', '
|
111 |
</td>
|
112 |
</tr>
|
113 |
|
114 |
<tr>
|
115 |
-
<th><?php _e( 'Card Type', '
|
116 |
<td>
|
117 |
<select name="wonderm00n_open_graph_settings[fb_twitter_card_type]" id="fb_twitter_card_type">
|
118 |
-
<option value="summary"<?php if (trim($options['fb_twitter_card_type'])=='summary') echo ' selected="selected"'; ?>><?php _e('Summary Card', '
|
119 |
-
<option value="summary_large_image"<?php if (trim($options['fb_twitter_card_type'])=='summary_large_image') echo ' selected="selected"'; ?>><?php _e('Summary Card with Large Image', '
|
120 |
</select>
|
121 |
</td>
|
122 |
</tr>
|
@@ -124,7 +124,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
124 |
<td colspan="2" class="info">
|
125 |
<i><meta name="twitter:card" content="..."/></i>
|
126 |
<br/>
|
127 |
-
- <?php _e( 'The type of Twitter Card shown on the timeline', '
|
128 |
</td>
|
129 |
</tr>
|
130 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
8 |
|
9 |
?>
|
10 |
<div class="menu_containt_div" id="tabs-3">
|
11 |
+
<p><?php _e( 'Tags used by Twitter to render their Cards.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
12 |
<div class="postbox">
|
13 |
+
<h3 class="hndle"><i class="dashicons-before dashicons-twitter"></i> <?php _e( 'Twitter Card Tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?></h3>
|
14 |
<div class="inside">
|
15 |
<table class="form-table">
|
16 |
<tbody>
|
17 |
|
18 |
<tr>
|
19 |
+
<th><?php _e( 'Include Title', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
20 |
<td>
|
21 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_title_show_twitter]" id="fb_title_show_twitter" value="1" <?php echo (intval($options['fb_title_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
22 |
</td>
|
25 |
<td colspan="2" class="info">
|
26 |
<i><meta name="twitter:title" content=..."/></i>
|
27 |
<br/>
|
28 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_title' ); ?>
|
29 |
</td>
|
30 |
</tr>
|
31 |
|
32 |
<tr>
|
33 |
+
<th><?php _e( 'Include URL', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
34 |
<td>
|
35 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_url_show_twitter]" id="fb_url_show_twitter" value="1" <?php echo (intval($options['fb_url_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
36 |
</td>
|
39 |
<td colspan="2" class="info">
|
40 |
<i><meta name="twitter:url" content="..."/></i>
|
41 |
<br/>
|
42 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_url' ); ?>
|
43 |
</td>
|
44 |
</tr>
|
45 |
|
46 |
<tr>
|
47 |
+
<th><?php _e( 'Include Description', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
48 |
<td>
|
49 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_desc_show_twitter]" id="fb_desc_show_twitter" value="1" <?php echo (intval($options['fb_desc_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
50 |
</td>
|
53 |
<td colspan="2" class="info">
|
54 |
<i><meta name="twitter:description" content="..."/></i>
|
55 |
<br/>
|
56 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_desc' ); ?>
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
60 |
<tr>
|
61 |
+
<th><?php _e( 'Include Image', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
62 |
<td>
|
63 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_image_show_twitter]" id="fb_image_show_twitter" value="1" <?php echo (intval($options['fb_image_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
64 |
</td>
|
67 |
<td colspan="2" class="info">
|
68 |
<i><meta name="twitter:image" content="..."/></i>
|
69 |
<br/>
|
70 |
+
- <?php printf( __( 'You can change this value using the <i>%1$s</i> filter', 'wonderm00ns-simple-facebook-open-graph-tags' ), 'fb_og_image' ); ?>
|
71 |
</td>
|
72 |
</tr>
|
73 |
|
74 |
<tr>
|
75 |
+
<th><?php _e( 'Include Post/Page Author', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
76 |
<td>
|
77 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_author_show_twitter]" id="fb_author_show_twitter" value="1" <?php echo (intval($options['fb_author_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
78 |
</td>
|
81 |
<td colspan="2" class="info">
|
82 |
<i><meta name="twitter:creator" content="@..."/></i>
|
83 |
<br/>
|
84 |
+
- <?php _e( 'The user\'s Twitter Username must be filled in on his profile', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
85 |
</td>
|
86 |
</tr>
|
87 |
|
88 |
<tr>
|
89 |
+
<th><?php _e( 'Include Publisher', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
90 |
<td>
|
91 |
<input type="checkbox" name="wonderm00n_open_graph_settings[fb_publisher_show_twitter]" id="fb_publisher_show_twitter" value="1" <?php echo (intval($options['fb_publisher_show_twitter'])==1 ? ' checked="checked"' : ''); ?>/>
|
92 |
</td>
|
95 |
<td colspan="2" class="info">
|
96 |
<i><meta name="twitter:site" content="@..."/></i>
|
97 |
<br/>
|
98 |
+
- <?php _e( 'The website\'s Twitter Username', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
99 |
</td>
|
100 |
</tr>
|
101 |
|
102 |
<tr class="fb_publisher_twitter_options">
|
103 |
+
<th><?php _e( 'Website\'s Twitter Username', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
104 |
<td>
|
105 |
<input type="text" name="wonderm00n_open_graph_settings[fb_publisher_twitteruser]" id="fb_publisher_twitteruser" size="20" value="<?php echo trim(esc_attr($options['fb_publisher_twitteruser'])); ?>"/>
|
106 |
</td>
|
107 |
</tr>
|
108 |
<tr class="fb_publisher_twitter_options">
|
109 |
<td colspan="2" class="info">
|
110 |
+
- <?php _e( 'Twitter username (without @)', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
111 |
</td>
|
112 |
</tr>
|
113 |
|
114 |
<tr>
|
115 |
+
<th><?php _e( 'Card Type', 'wonderm00ns-simple-facebook-open-graph-tags' );?>:</th>
|
116 |
<td>
|
117 |
<select name="wonderm00n_open_graph_settings[fb_twitter_card_type]" id="fb_twitter_card_type">
|
118 |
+
<option value="summary"<?php if (trim($options['fb_twitter_card_type'])=='summary') echo ' selected="selected"'; ?>><?php _e('Summary Card', 'wonderm00ns-simple-facebook-open-graph-tags');?></option>
|
119 |
+
<option value="summary_large_image"<?php if (trim($options['fb_twitter_card_type'])=='summary_large_image') echo ' selected="selected"'; ?>><?php _e('Summary Card with Large Image', 'wonderm00ns-simple-facebook-open-graph-tags');?></option>
|
120 |
</select>
|
121 |
</td>
|
122 |
</tr>
|
124 |
<td colspan="2" class="info">
|
125 |
<i><meta name="twitter:card" content="..."/></i>
|
126 |
<br/>
|
127 |
+
- <?php _e( 'The type of Twitter Card shown on the timeline', 'wonderm00ns-simple-facebook-open-graph-tags' );?>
|
128 |
</td>
|
129 |
</tr>
|
130 |
|
admin/options-page.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -13,7 +13,7 @@ wp_enqueue_media();
|
|
13 |
|
14 |
|
15 |
<h1><?php echo WEBDADOS_FB_PLUGIN_NAME ?> (<?php echo WEBDADOS_FB_VERSION; ?>)</h1><br class="clear"/>
|
16 |
-
<p><?php _e( 'Please set some default values and which tags should, or should not, be included. It may be necessary to exclude some tags if other plugins are already including them.', '
|
17 |
|
18 |
<div class="columns-2 webdados_fb_admin_left" id="post-body">
|
19 |
<div class="menu_div metabox-holder" id="tabs">
|
@@ -30,37 +30,37 @@ wp_enqueue_media();
|
|
30 |
<li>
|
31 |
<a class="nav-tab" href="#tabs-1" data-tab-index="0">
|
32 |
<i class="dashicons-before dashicons-admin-generic"></i>
|
33 |
-
<?php _e( 'General', '
|
34 |
</a>
|
35 |
</li>
|
36 |
<li>
|
37 |
<a class="nav-tab" href="#tabs-2" data-tab-index="1">
|
38 |
<i class="dashicons-before dashicons-facebook-alt"></i>
|
39 |
-
<?php _e( 'Open Graph', '
|
40 |
</a>
|
41 |
</li>
|
42 |
<li>
|
43 |
<a class="nav-tab" href="#tabs-3" data-tab-index="2">
|
44 |
<i class="dashicons-before dashicons-twitter"></i>
|
45 |
-
<?php _e( 'Cards', '
|
46 |
</a>
|
47 |
</li>
|
48 |
<li>
|
49 |
<a class="nav-tab" href="#tabs-4" data-tab-index="3">
|
50 |
<i class="dashicons-before dashicons-googleplus"></i>
|
51 |
-
<?php _e( 'Schema', '
|
52 |
</a>
|
53 |
</li>
|
54 |
<li>
|
55 |
<a class="nav-tab" href="#tabs-5" data-tab-index="4">
|
56 |
<i class="dashicons-before dashicons-admin-site"></i>
|
57 |
-
<?php _e( 'SEO tags', '
|
58 |
</a>
|
59 |
</li>
|
60 |
<li>
|
61 |
<a class="nav-tab" href="#tabs-6" data-tab-index="5">
|
62 |
<i class="dashicons-before dashicons-layout"></i>
|
63 |
-
<?php _e( '3rd party', '
|
64 |
</a>
|
65 |
</li>
|
66 |
</ul>
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
13 |
|
14 |
|
15 |
<h1><?php echo WEBDADOS_FB_PLUGIN_NAME ?> (<?php echo WEBDADOS_FB_VERSION; ?>)</h1><br class="clear"/>
|
16 |
+
<p><?php _e( 'Please set some default values and which tags should, or should not, be included. It may be necessary to exclude some tags if other plugins are already including them.', 'wonderm00ns-simple-facebook-open-graph-tags' ); ?></p>
|
17 |
|
18 |
<div class="columns-2 webdados_fb_admin_left" id="post-body">
|
19 |
<div class="menu_div metabox-holder" id="tabs">
|
30 |
<li>
|
31 |
<a class="nav-tab" href="#tabs-1" data-tab-index="0">
|
32 |
<i class="dashicons-before dashicons-admin-generic"></i>
|
33 |
+
<?php _e( 'General', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
34 |
</a>
|
35 |
</li>
|
36 |
<li>
|
37 |
<a class="nav-tab" href="#tabs-2" data-tab-index="1">
|
38 |
<i class="dashicons-before dashicons-facebook-alt"></i>
|
39 |
+
<?php _e( 'Open Graph', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
40 |
</a>
|
41 |
</li>
|
42 |
<li>
|
43 |
<a class="nav-tab" href="#tabs-3" data-tab-index="2">
|
44 |
<i class="dashicons-before dashicons-twitter"></i>
|
45 |
+
<?php _e( 'Cards', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
46 |
</a>
|
47 |
</li>
|
48 |
<li>
|
49 |
<a class="nav-tab" href="#tabs-4" data-tab-index="3">
|
50 |
<i class="dashicons-before dashicons-googleplus"></i>
|
51 |
+
<?php _e( 'Schema', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
52 |
</a>
|
53 |
</li>
|
54 |
<li>
|
55 |
<a class="nav-tab" href="#tabs-5" data-tab-index="4">
|
56 |
<i class="dashicons-before dashicons-admin-site"></i>
|
57 |
+
<?php _e( 'SEO tags', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
58 |
</a>
|
59 |
</li>
|
60 |
<li>
|
61 |
<a class="nav-tab" href="#tabs-6" data-tab-index="5">
|
62 |
<i class="dashicons-before dashicons-layout"></i>
|
63 |
+
<?php _e( '3rd party', 'wonderm00ns-simple-facebook-open-graph-tags' ) ?>
|
64 |
</a>
|
65 |
</li>
|
66 |
</ul>
|
fbimg.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
define('WP_USE_THEMES', false);
|
7 |
require( '../../../wp-blog-header.php' );
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
define('WP_USE_THEMES', false);
|
7 |
require( '../../../wp-blog-header.php' );
|
includes/class-webdados-fb-open-graph.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -26,7 +26,7 @@ class Webdados_FB {
|
|
26 |
$this->version = $version;
|
27 |
$this->options = $this->load_options();
|
28 |
$this->load_dependencies();
|
29 |
-
|
30 |
$this->call_global_hooks();
|
31 |
if ( is_admin() ) $this->call_admin_hooks();
|
32 |
if ( !is_admin() ) $this->call_public_hooks();
|
@@ -200,8 +200,8 @@ class Webdados_FB {
|
|
200 |
|
201 |
/* Translations */
|
202 |
private function set_locale() {
|
203 |
-
//load_plugin_textdomain( '
|
204 |
-
load_plugin_textdomain( '
|
205 |
}
|
206 |
|
207 |
/* Global hooks */
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.1
|
5 |
*/
|
6 |
|
7 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
26 |
$this->version = $version;
|
27 |
$this->options = $this->load_options();
|
28 |
$this->load_dependencies();
|
29 |
+
//$this->set_locale();
|
30 |
$this->call_global_hooks();
|
31 |
if ( is_admin() ) $this->call_admin_hooks();
|
32 |
if ( !is_admin() ) $this->call_public_hooks();
|
200 |
|
201 |
/* Translations */
|
202 |
private function set_locale() {
|
203 |
+
//load_plugin_textdomain( 'wonderm00ns-simple-facebook-open-graph-tags', false, dirname(plugin_basename(__FILE__)) . '/../lang/' );
|
204 |
+
load_plugin_textdomain( 'wonderm00ns-simple-facebook-open-graph-tags' );
|
205 |
}
|
206 |
|
207 |
/* Global hooks */
|
lang/{wd-fb-og.pot → wonderm00ns-simple-facebook-open-graph-tags.pot}
RENAMED
@@ -4,7 +4,7 @@ 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: 2017-09-
|
8 |
"PO-Revision-Date: 2016-09-26 14:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
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: 2017-09-20 14:13+0100\n"
|
8 |
"PO-Revision-Date: 2016-09-26 14:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
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.3
|
7 |
-
Stable tag: 2.1
|
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 ==
|
@@ -122,6 +122,9 @@ We DO NOT provide email support for this plugin. If you send us an email asking
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
125 |
= 2.1 =
|
126 |
* New description field on our metabox on post/pages that will override the excerpt or content if filled
|
127 |
* Load the translations from wordpress.org Glotpress and not from the local folder
|
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.3
|
7 |
+
Stable tag: 2.1.1
|
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 ==
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 2.1.1 =
|
126 |
+
* Fix on the gettext calls and textdomain so that Glotpress correctly loads translations
|
127 |
+
|
128 |
= 2.1 =
|
129 |
* New description field on our metabox on post/pages that will override the excerpt or content if filled
|
130 |
* Load the translations from wordpress.org Glotpress and not from the local folder
|
wonderm00n-open-graph.php
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
-
* @version 2.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, 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.1
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
-
Text Domain:
|
15 |
Domain Path: /lang
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
-
define( 'WEBDADOS_FB_VERSION', '2.1' );
|
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 );
|
@@ -47,4 +47,4 @@ function webdados_fb_run() {
|
|
47 |
|
48 |
}
|
49 |
|
50 |
-
$webdados_fb = webdados_fb_run();
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Facebook Open Graph, Google+ and Twitter Card Tags
|
4 |
+
* @version 2.1.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, 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.1.1
|
12 |
Author: Webdados
|
13 |
Author URI: http://www.webdados.pt
|
14 |
+
Text Domain: wonderm00ns-simple-facebook-open-graph-tags
|
15 |
Domain Path: /lang
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
+
define( 'WEBDADOS_FB_VERSION', '2.1.1' );
|
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 );
|
47 |
|
48 |
}
|
49 |
|
50 |
+
$webdados_fb = webdados_fb_run();
|