Version Description
- Added an option for automatic adding the Google Shopping structured data on all WooCommerce product pages. (Thanks to Juliano Dias for the suggestion and help)
- Russian translation updated.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | All Meta Tags |
Version | 3.3 |
Comparing to | |
See all releases |
Code changes from version 3.2 to 3.3
- all-meta-tags.php +29 -3
- inc/css/admin.css +9 -0
- inc/php/settings_page.php +19 -1
- languages/all-meta-tags-ru_RU.mo +0 -0
- languages/all-meta-tags-ru_RU.po +35 -9
- languages/all-meta-tags.pot +20 -1
- readme.txt +8 -4
all-meta-tags.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily and safely add your custom Meta Tags to WordPress website's header.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
-
* Version: 3.
|
9 |
* License: GPL3
|
10 |
* Text Domain: all-meta-tags
|
11 |
* Domain Path: /languages/
|
@@ -46,7 +46,7 @@ defined('ALLMT_DIR') or define('ALLMT_DIR', dirname(plugin_basename(__FILE__)));
|
|
46 |
defined('ALLMT_BASE') or define('ALLMT_BASE', plugin_basename(__FILE__));
|
47 |
defined('ALLMT_URL') or define('ALLMT_URL', plugin_dir_url(__FILE__));
|
48 |
defined('ALLMT_PATH') or define('ALLMT_PATH', plugin_dir_path(__FILE__));
|
49 |
-
defined('ALLMT_VERSION') or define('ALLMT_VERSION', '3.
|
50 |
|
51 |
/**
|
52 |
* Register text domain
|
@@ -181,7 +181,7 @@ function allmetatags_field($name, $label, $placeholder, $help=null, $link=null,
|
|
181 |
/**
|
182 |
* Generate the Meta Tags
|
183 |
*
|
184 |
-
* @since 3.
|
185 |
*/
|
186 |
function allmetatags_add_meta_tags() {
|
187 |
|
@@ -297,6 +297,32 @@ function allmetatags_add_meta_tags() {
|
|
297 |
$metatags_arr[] = "<meta name='keywords' content='$keywords' />";
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
// Add comment
|
301 |
if ( count( $metatags_arr ) > 0 ) {
|
302 |
array_unshift( $metatags_arr, "<!-- [BEGIN] Metadata added via 'All Meta Tags' plugin by Arthur Gareginyan. -->" );
|
5 |
* Description: Easily and safely add your custom Meta Tags to WordPress website's header.
|
6 |
* Author: Arthur Gareginyan
|
7 |
* Author URI: http://www.arthurgareginyan.com
|
8 |
+
* Version: 3.3
|
9 |
* License: GPL3
|
10 |
* Text Domain: all-meta-tags
|
11 |
* Domain Path: /languages/
|
46 |
defined('ALLMT_BASE') or define('ALLMT_BASE', plugin_basename(__FILE__));
|
47 |
defined('ALLMT_URL') or define('ALLMT_URL', plugin_dir_url(__FILE__));
|
48 |
defined('ALLMT_PATH') or define('ALLMT_PATH', plugin_dir_path(__FILE__));
|
49 |
+
defined('ALLMT_VERSION') or define('ALLMT_VERSION', '3.3');
|
50 |
|
51 |
/**
|
52 |
* Register text domain
|
181 |
/**
|
182 |
* Generate the Meta Tags
|
183 |
*
|
184 |
+
* @since 3.3
|
185 |
*/
|
186 |
function allmetatags_add_meta_tags() {
|
187 |
|
297 |
$metatags_arr[] = "<meta name='keywords' content='$keywords' />";
|
298 |
}
|
299 |
|
300 |
+
// WooCommerce & Google Shopping (Merchant Center)
|
301 |
+
if ( class_exists( 'WooCommerce' ) ) {
|
302 |
+
|
303 |
+
if ( is_product() ) {
|
304 |
+
|
305 |
+
$name = get_the_title();
|
306 |
+
$description = get_the_excerpt();
|
307 |
+
$image = simplexml_load_string(get_the_post_thumbnail());
|
308 |
+
$imagesrc = $image->attributes()->src;
|
309 |
+
$price = get_post_meta( get_the_ID(), '_price', true);
|
310 |
+
$currency = get_woocommerce_currency();
|
311 |
+
|
312 |
+
$google_shopping = "<div itemtype='http://schema.org/Product' itemscope>
|
313 |
+
<meta itemprop='name' content='$name'>
|
314 |
+
<meta itemprop='description' content='$description'>
|
315 |
+
<meta itemprop='image' content='$imagesrc'>
|
316 |
+
<div itemprop='offers' itemscope itemtype='http://schema.org/Offer'>
|
317 |
+
<meta itemprop='price' content='$price' />
|
318 |
+
<meta itemprop='priceCurrency' content='$currency' />
|
319 |
+
</div>
|
320 |
+
</div>";
|
321 |
+
$metatags_arr[] = $google_shopping;
|
322 |
+
}
|
323 |
+
|
324 |
+
}
|
325 |
+
|
326 |
// Add comment
|
327 |
if ( count( $metatags_arr ) > 0 ) {
|
328 |
array_unshift( $metatags_arr, "<!-- [BEGIN] Metadata added via 'All Meta Tags' plugin by Arthur Gareginyan. -->" );
|
inc/css/admin.css
CHANGED
@@ -97,4 +97,13 @@ textarea,
|
|
97 |
|
98 |
.postbox a {
|
99 |
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
97 |
|
98 |
.postbox a {
|
99 |
text-decoration: none;
|
100 |
+
}
|
101 |
+
|
102 |
+
/* <pre> tag in "WooCommerse" section
|
103 |
+
-------------------------------------------------------------- */
|
104 |
+
#WooCommerse pre {
|
105 |
+
border: 1px solid grey;
|
106 |
+
padding: 3px 5px 2px;
|
107 |
+
margin: 0 10px 0 10px;
|
108 |
+
overflow: scroll;
|
109 |
}
|
inc/php/settings_page.php
CHANGED
@@ -10,7 +10,7 @@ defined('ABSPATH') or die("Restricted access!");
|
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
-
* @since 3.
|
14 |
*/
|
15 |
function allmetatags_render_submenu_page() {
|
16 |
|
@@ -240,6 +240,24 @@ function allmetatags_render_submenu_page() {
|
|
240 |
<?php submit_button( __( 'Save Changes', 'all-meta-tags' ), 'primary', 'submit', true ); ?>
|
241 |
</div>
|
242 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
</form>
|
244 |
</div>
|
245 |
</div>
|
10 |
/**
|
11 |
* Render Settings Page
|
12 |
*
|
13 |
+
* @since 3.3
|
14 |
*/
|
15 |
function allmetatags_render_submenu_page() {
|
16 |
|
240 |
<?php submit_button( __( 'Save Changes', 'all-meta-tags' ), 'primary', 'submit', true ); ?>
|
241 |
</div>
|
242 |
</div>
|
243 |
+
|
244 |
+
<div class="postbox" id="WooCommerse">
|
245 |
+
<h3 class="title"><?php _e( 'WooCommerse & Google Shopping', 'all-meta-tags' ); ?></h3>
|
246 |
+
<div class="inside">
|
247 |
+
<p><?php _e( 'This plugin automatically adds the necessary Google Shopping (Merchant Center) structured data on all WooCommerce product pages on your website. Here is the markup for women\'s T-shirt that sells for 16 dollars and 80 cents of US.', 'all-meta-tags' ); ?></p>
|
248 |
+
<pre><div itemtype="http://schema.org/Product" itemscope="">
|
249 |
+
<meta itemprop="name" content="Womens T-shirt">
|
250 |
+
<meta itemprop="description" content="Constructed in cotton sweat fabric, this lovely piece...">
|
251 |
+
<meta itemprop="image" content="http://example.com/wp-content/uploads/2015/09/product-1.jpg">
|
252 |
+
<div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
|
253 |
+
<meta itemprop="price" content="16.80">
|
254 |
+
<meta itemprop="priceCurrency" content="USD">
|
255 |
+
</div>
|
256 |
+
</div></pre>
|
257 |
+
<p><?php _e( 'Check these data generated on the pages of your website you can <a href="https://search.google.com/structured-data/testing-tool" target="_blank">here</a>.', 'all-meta-tags' ); ?></p>
|
258 |
+
</div>
|
259 |
+
</div>
|
260 |
+
|
261 |
</form>
|
262 |
</div>
|
263 |
</div>
|
languages/all-meta-tags-ru_RU.mo
CHANGED
Binary file
|
languages/all-meta-tags-ru_RU.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: All Meta Tags\n"
|
4 |
-
"POT-Creation-Date: 2016-09-
|
5 |
-
"PO-Revision-Date: 2016-09-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: ru\n"
|
@@ -234,11 +234,11 @@ msgstr ""
|
|
234 |
|
235 |
#: inc/php/settings_page.php:194
|
236 |
msgid "Blog Description"
|
237 |
-
msgstr ""
|
238 |
|
239 |
#: inc/php/settings_page.php:200
|
240 |
msgid "Blog Keyword(s)"
|
241 |
-
msgstr ""
|
242 |
|
243 |
#: inc/php/settings_page.php:202
|
244 |
msgid ""
|
@@ -257,28 +257,54 @@ msgstr ""
|
|
257 |
|
258 |
#: inc/php/settings_page.php:216
|
259 |
msgid "Author"
|
260 |
-
msgstr ""
|
261 |
|
262 |
#: inc/php/settings_page.php:221
|
263 |
msgid "Designer"
|
264 |
-
msgstr ""
|
265 |
|
266 |
#: inc/php/settings_page.php:226
|
267 |
msgid "Contact"
|
268 |
-
msgstr ""
|
269 |
|
270 |
#: inc/php/settings_page.php:230
|
271 |
msgid "Copyright"
|
272 |
-
msgstr ""
|
273 |
|
274 |
#: inc/php/settings_page.php:234
|
275 |
msgid "Keyword(s)"
|
276 |
-
msgstr ""
|
277 |
|
278 |
#: inc/php/settings_page.php:236
|
279 |
msgid "Enter a comma-delimited list of global keywords for your website."
|
280 |
msgstr ""
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
#. Plugin URI of the plugin/theme
|
283 |
msgid "https://github.com/ArthurGareginyan/all-meta-tags"
|
284 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: All Meta Tags\n"
|
4 |
+
"POT-Creation-Date: 2016-09-06 10:52+0300\n"
|
5 |
+
"PO-Revision-Date: 2016-09-06 10:54+0300\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: ru\n"
|
234 |
|
235 |
#: inc/php/settings_page.php:194
|
236 |
msgid "Blog Description"
|
237 |
+
msgstr "Описание блога"
|
238 |
|
239 |
#: inc/php/settings_page.php:200
|
240 |
msgid "Blog Keyword(s)"
|
241 |
+
msgstr "Ключевые слова блога"
|
242 |
|
243 |
#: inc/php/settings_page.php:202
|
244 |
msgid ""
|
257 |
|
258 |
#: inc/php/settings_page.php:216
|
259 |
msgid "Author"
|
260 |
+
msgstr "Автор"
|
261 |
|
262 |
#: inc/php/settings_page.php:221
|
263 |
msgid "Designer"
|
264 |
+
msgstr "Дизайнер"
|
265 |
|
266 |
#: inc/php/settings_page.php:226
|
267 |
msgid "Contact"
|
268 |
+
msgstr "Контакты"
|
269 |
|
270 |
#: inc/php/settings_page.php:230
|
271 |
msgid "Copyright"
|
272 |
+
msgstr "Правообладатель"
|
273 |
|
274 |
#: inc/php/settings_page.php:234
|
275 |
msgid "Keyword(s)"
|
276 |
+
msgstr "Ключевые слова"
|
277 |
|
278 |
#: inc/php/settings_page.php:236
|
279 |
msgid "Enter a comma-delimited list of global keywords for your website."
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: inc/php/settings_page.php:245
|
283 |
+
msgid "WooCommerse & Google Shopping"
|
284 |
+
msgstr "WooCommerse и Google Shopping"
|
285 |
+
|
286 |
+
#: inc/php/settings_page.php:247
|
287 |
+
msgid ""
|
288 |
+
"This plugin automatically adds the necessary Google Shopping (Merchant "
|
289 |
+
"Center) structured data on all WooCommerce product pages on your website. "
|
290 |
+
"Here is the markup for women's T-shirt that sells for 16 dollars and 80 "
|
291 |
+
"cents of US."
|
292 |
+
msgstr ""
|
293 |
+
"Этот плагин автоматически добавляет необходимые Google Shopping (Merchant "
|
294 |
+
"Center) мета теги на все страницы WooCommerce продуктов. Вот так выглядит "
|
295 |
+
"разметка для женской футболки которая продаётся за 16 долларов и 80 центов "
|
296 |
+
"США."
|
297 |
+
|
298 |
+
#: inc/php/settings_page.php:257
|
299 |
+
msgid ""
|
300 |
+
"Check these data generated on the pages of your website you can <a href="
|
301 |
+
"\"https://search.google.com/structured-data/testing-tool\" target=\"_blank"
|
302 |
+
"\">here</a>."
|
303 |
+
msgstr ""
|
304 |
+
"Проверить эти данные сгенерированные на страницах вашего вебсайта вы можете "
|
305 |
+
"<a href=\"https://search.google.com/structured-data/testing-tool\" target="
|
306 |
+
"\"_blank\">здесь</a>."
|
307 |
+
|
308 |
#. Plugin URI of the plugin/theme
|
309 |
msgid "https://github.com/ArthurGareginyan/all-meta-tags"
|
310 |
msgstr ""
|
languages/all-meta-tags.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
-
"POT-Creation-Date: 2016-09-
|
7 |
"PO-Revision-Date: 2015-10-28 13:57+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
@@ -273,6 +273,25 @@ msgstr ""
|
|
273 |
msgid "Enter a comma-delimited list of global keywords for your website."
|
274 |
msgstr ""
|
275 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
#. Plugin URI of the plugin/theme
|
277 |
msgid "https://github.com/ArthurGareginyan/all-meta-tags"
|
278 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: All Meta Tags\n"
|
6 |
+
"POT-Creation-Date: 2016-09-06 10:52+0300\n"
|
7 |
"PO-Revision-Date: 2015-10-28 13:57+0300\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
273 |
msgid "Enter a comma-delimited list of global keywords for your website."
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: inc/php/settings_page.php:245
|
277 |
+
msgid "WooCommerse & Google Shopping"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: inc/php/settings_page.php:247
|
281 |
+
msgid ""
|
282 |
+
"This plugin automatically adds the necessary Google Shopping (Merchant "
|
283 |
+
"Center) structured data on all WooCommerce product pages on your website. "
|
284 |
+
"Here is the markup for women's T-shirt that sells for 16 dollars and 80 "
|
285 |
+
"cents of US."
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: inc/php/settings_page.php:257
|
289 |
+
msgid ""
|
290 |
+
"Check these data generated on the pages of your website you can <a href="
|
291 |
+
"\"https://search.google.com/structured-data/testing-tool\" target=\"_blank"
|
292 |
+
"\">here</a>."
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
#. Plugin URI of the plugin/theme
|
296 |
msgid "https://github.com/ArthurGareginyan/all-meta-tags"
|
297 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
=== All Meta Tags ===
|
2 |
Contributors: Arthur Gareginyan
|
3 |
-
Tags: meta, tag,tags, custom, simple, plugin, twitter, facebook, g+, google, google+, google plus, meta, search engine optimization, seo, social, alexa, alexa rank, pinterest, norton safe web, webmaster, webmaster tool, webmaster tools, web master tools, web master tools, bing, yandex, bing webmaster, yandex webmaster, google webmaster, web tools, open graph, publisher profile, publisher, author, authors, description, keyword, keywords, copyright, designer, admin, meta tag, pinterest, pinterest meta tag, pinterest website verification, pinterest verification, pinterest verify, plugin, verification, verify, webmaster plugin, wot, web of trust,
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 3.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
-
Easily add your Meta Tags to the WordPress website's head section. This is a must have tool for authors and website
|
12 |
|
13 |
== Description ==
|
14 |
An easy to use and lightweight WordPress plugin that gives you the ability to easily add your Meta Tags to the head section of your website.
|
@@ -33,7 +33,8 @@ Also you can use this plugin to add required meta tags such as Author, Designer,
|
|
33 |
* Bing Web Master Tools verification meta tag
|
34 |
* Yandex Web Master Tools verification meta tag
|
35 |
* Web of Trust (WOT) verification meta tag
|
36 |
-
* Custom meta tags
|
|
|
37 |
* Meta tag with name="author"
|
38 |
* Meta tag with name="designer"
|
39 |
* Meta tag with name="contact"
|
@@ -156,6 +157,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
156 |
* [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/all-meta-tags)
|
157 |
|
158 |
== Changelog ==
|
|
|
|
|
|
|
159 |
= 3.2 =
|
160 |
* Added field for custom meta tags. (Thanks to Juliano Dias for the suggestion)
|
161 |
* Ready for translation improved.
|
1 |
=== All Meta Tags ===
|
2 |
Contributors: Arthur Gareginyan
|
3 |
+
Tags: meta, tag,tags, custom, simple, plugin, twitter, facebook, g+, google, google+, google plus, meta, search engine optimization, seo, social, alexa, alexa rank, pinterest, norton safe web, webmaster, webmaster tool, webmaster tools, web master tools, web master tools, bing, yandex, bing webmaster, yandex webmaster, google webmaster, web tools, open graph, publisher profile, publisher, author, authors, description, keyword, keywords, copyright, designer, admin, meta tag, pinterest, pinterest meta tag, pinterest website verification, pinterest verification, pinterest verify, plugin, verification, verify, webmaster plugin, wot, web of trust, google shopping, google merchant center, structured data, woocommerce, schemas
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 3.3
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
+
Easily add your Meta Tags to the WordPress website's head section. This is a must have tool for authors and website owners.
|
12 |
|
13 |
== Description ==
|
14 |
An easy to use and lightweight WordPress plugin that gives you the ability to easily add your Meta Tags to the head section of your website.
|
33 |
* Bing Web Master Tools verification meta tag
|
34 |
* Yandex Web Master Tools verification meta tag
|
35 |
* Web of Trust (WOT) verification meta tag
|
36 |
+
* Custom meta tags
|
37 |
+
* Google Shopping (Merchant Center) structured data on WooCommerce product pages
|
38 |
* Meta tag with name="author"
|
39 |
* Meta tag with name="designer"
|
40 |
* Meta tag with name="contact"
|
157 |
* [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/all-meta-tags)
|
158 |
|
159 |
== Changelog ==
|
160 |
+
= 3.3 =
|
161 |
+
* Added an option for automatic adding the Google Shopping structured data on all WooCommerce product pages. (Thanks to Juliano Dias for the suggestion and help)
|
162 |
+
* Russian translation updated.
|
163 |
= 3.2 =
|
164 |
* Added field for custom meta tags. (Thanks to Juliano Dias for the suggestion)
|
165 |
* Ready for translation improved.
|