Version Description
- Improvement: Updated plugin name -
All In One Schema Rich Snippets
toSchema - All In One Schema Rich Snippets
. - Improvement: Updated product availability strings according to the Google requirement.
- Improvement: Added alt tag to the publisher image for SEMrush plugin compatibility.
Download this release
Release Info
Developer | Nikschavan |
Plugin | All In One Schema Rich Snippets |
Version | 1.5.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.5 to 1.5.6
- functions.php +13 -6
- index.php +4 -4
- readme.txt +76 -71
functions.php
CHANGED
@@ -388,14 +388,21 @@ function display_rich_snippet($content) {
|
|
388 |
$product_price = get_post_meta($post->ID, '_bsf_product_price', true);
|
389 |
$product_cur = get_post_meta($post->ID, '_bsf_product_cur', true);
|
390 |
$product_status = get_post_meta($post->ID, '_bsf_product_status', true);
|
391 |
-
if(trim($product_status) == "out_of_stock")
|
|
|
392 |
$availability = "Out of Stock";
|
393 |
-
|
|
|
|
|
394 |
$availability = "Available in Stock";
|
395 |
-
|
|
|
|
|
396 |
$availability = "Available in Store Only";
|
397 |
-
|
|
|
398 |
$availability = "Pre-Order Only";
|
|
|
399 |
if(trim($product_image) != "")
|
400 |
{
|
401 |
$product .= '<div class="snippet-image"><img width="180" src="'.esc_url($product_image ).'" itemprop="image" alt="product image" /></div>';
|
@@ -821,7 +828,7 @@ function display_rich_snippet($content) {
|
|
821 |
$article .= '<div class="snippet-label-img">'.esc_attr( stripslashes( $args_article['article_publisher_logo'] ) ).'</div>';
|
822 |
|
823 |
$article .= '<div class="snippet-data-img publisher-logo" itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">';
|
824 |
-
$article .= '<img width="180" src="'.esc_url( $article_publisher_logo ).'"/>';
|
825 |
$article .= '<meta itemprop="url" content="'.esc_attr( $article_publisher_logo ).'">';
|
826 |
$article .= '</div>';
|
827 |
}
|
@@ -1169,4 +1176,4 @@ function bsf_display_rating($n) {
|
|
1169 |
';
|
1170 |
$rating .= $script;
|
1171 |
return $rating;
|
1172 |
-
}
|
388 |
$product_price = get_post_meta($post->ID, '_bsf_product_price', true);
|
389 |
$product_cur = get_post_meta($post->ID, '_bsf_product_cur', true);
|
390 |
$product_status = get_post_meta($post->ID, '_bsf_product_status', true);
|
391 |
+
if(trim($product_status) == "out_of_stock"){
|
392 |
+
$product_status = 'OutOfStock';
|
393 |
$availability = "Out of Stock";
|
394 |
+
}
|
395 |
+
else if(trim($product_status) == "in_stock"){
|
396 |
+
$product_status = 'InStock';
|
397 |
$availability = "Available in Stock";
|
398 |
+
}
|
399 |
+
else if(trim($product_status) == "instore_only"){
|
400 |
+
$product_status = 'InStoreOnly';
|
401 |
$availability = "Available in Store Only";
|
402 |
+
}
|
403 |
+
else if(trim($product_status) == "preorder"){
|
404 |
$availability = "Pre-Order Only";
|
405 |
+
}
|
406 |
if(trim($product_image) != "")
|
407 |
{
|
408 |
$product .= '<div class="snippet-image"><img width="180" src="'.esc_url($product_image ).'" itemprop="image" alt="product image" /></div>';
|
828 |
$article .= '<div class="snippet-label-img">'.esc_attr( stripslashes( $args_article['article_publisher_logo'] ) ).'</div>';
|
829 |
|
830 |
$article .= '<div class="snippet-data-img publisher-logo" itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">';
|
831 |
+
$article .= '<img width="180" src="'.esc_url( $article_publisher_logo ).'" alt="'.esc_attr( $article_publisher ).'" />';
|
832 |
$article .= '<meta itemprop="url" content="'.esc_attr( $article_publisher_logo ).'">';
|
833 |
$article .= '</div>';
|
834 |
}
|
1176 |
';
|
1177 |
$rating .= $script;
|
1178 |
return $rating;
|
1179 |
+
}
|
index.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Plugin Name: All In One Schema Rich Snippets
|
4 |
Plugin URI: https://www.brainstormforce.com
|
5 |
Author: Brainstorm Force
|
6 |
Author URI: https://www.brainstormforce.com
|
7 |
-
Description: Welcome to the All In One Schema Rich
|
8 |
-
Version: 1.5.
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
12 |
-
/* Copyright 2013 All
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License, version 2, as
|
15 |
published by the Free Software Foundation.
|
1 |
<?php
|
2 |
/*
|
3 |
+
Plugin Name: Schema - All In One Schema Rich Snippets
|
4 |
Plugin URI: https://www.brainstormforce.com
|
5 |
Author: Brainstorm Force
|
6 |
Author URI: https://www.brainstormforce.com
|
7 |
+
Description: Welcome to the Schema - All In One Schema Rich Snippets! You can now easily add schema markup on various pages and posts of your website. Implement schema types such as Review, Events, Recipes, Article, Products, Services etc.
|
8 |
+
Version: 1.5.6
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
12 |
+
/* Copyright 2013 Schema - All In One Schema Rich Snippets (email : info@bsf.io)
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License, version 2, as
|
15 |
published by the Free Software Foundation.
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== All In One Schema Rich Snippets ===
|
2 |
-
Contributors: brainstormforce
|
3 |
-
Donate link: https://www.
|
4 |
Tags: schema markup, structured data, rich snippets, schema.org, Microdata, schema
|
5 |
Requires at least: 3.7
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perfectly with Google, Bing, Yahoo & Facebook.
|
@@ -80,124 +80,129 @@ Review, Event, People, Product, Recipe, Software Application, Video, Articles et
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
|
|
|
|
83 |
= 1.5.5 =
|
84 |
-
|
85 |
|
86 |
= 1.5.4 =
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
|
91 |
= 1.5.3 =
|
92 |
-
|
93 |
|
94 |
= 1.5.2 =
|
95 |
-
|
96 |
-
|
97 |
|
98 |
= 1.5.1 =
|
99 |
-
|
100 |
|
101 |
= 1.5.0 =
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
|
107 |
= 1.4.4 =
|
108 |
-
|
109 |
|
110 |
= 1.4.3 =
|
111 |
-
|
112 |
|
113 |
= 1.4.2 =
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
|
123 |
= 1.4.1 =
|
124 |
-
|
125 |
|
126 |
= 1.4.0 =
|
127 |
-
|
128 |
-
|
129 |
|
130 |
= 1.3.0 =
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
|
135 |
= 1.2.0 =
|
136 |
-
|
137 |
-
|
138 |
|
139 |
= 1.1.9 =
|
140 |
-
|
141 |
-
|
142 |
|
143 |
= 1.1.8 =
|
144 |
-
|
145 |
|
146 |
= 1.1.7 =
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
|
151 |
= 1.1.6 =
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
|
156 |
= 1.1.5 =
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
|
161 |
= 1.1.4 =
|
162 |
-
|
163 |
|
164 |
= 1.1.3 =
|
165 |
-
|
166 |
|
167 |
= 1.1.2 =
|
168 |
-
|
169 |
|
170 |
= 1.1.1 =
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
|
175 |
= 1.1.0 =
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
|
181 |
= 1.0.4 =
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
|
187 |
= 1.0.3 =
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
|
193 |
= 1.0.2 =
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
|
199 |
= 1.0.1 =
|
200 |
-
|
201 |
|
202 |
= 1.0 =
|
203 |
-
|
1 |
+
=== Schema - All In One Schema Rich Snippets ===
|
2 |
+
Contributors: brainstormforce
|
3 |
+
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: schema markup, structured data, rich snippets, schema.org, Microdata, schema
|
5 |
Requires at least: 3.7
|
6 |
+
Tested up to: 5.1
|
7 |
+
Stable tag: 1.5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perfectly with Google, Bing, Yahoo & Facebook.
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.5.6 =
|
84 |
+
- Improvement: Updated plugin name - `All In One Schema Rich Snippets` to `Schema - All In One Schema Rich Snippets`.
|
85 |
+
- Improvement: Updated product availability strings according to the Google requirement.
|
86 |
+
- Improvement: Added alt tag to the publisher image for SEMrush plugin compatibility.
|
87 |
+
|
88 |
= 1.5.5 =
|
89 |
+
- Fix: Schema markup displayed before the post content or hidden when page content is built using a page builder plugin.
|
90 |
|
91 |
= 1.5.4 =
|
92 |
+
- Improvement: Dashboard UI Updated.
|
93 |
+
- Fix: Removed publisher logo width-height meta tags.
|
94 |
+
- Fix: Removed default border CSS for images in frontend.
|
95 |
|
96 |
= 1.5.3 =
|
97 |
+
- Improvement: Updated schema exiting action and enqueue files function.
|
98 |
|
99 |
= 1.5.2 =
|
100 |
+
- Fix: Frontend Summary box structure validation issue.
|
101 |
+
- Fix: Editor object undefined issue lead js issue in the page.
|
102 |
|
103 |
= 1.5.1 =
|
104 |
+
- Fix: Plugin outputting extra output causing Ajax calls to break after last update.
|
105 |
|
106 |
= 1.5.0 =
|
107 |
+
- Improvement: Improved overall the security of the plugin by using sanitization and escaping the attributes wherever possible, checking nounce and user capabilities before any actions are performed.
|
108 |
+
- Fix: XSS Vulnerability in the settings page, Thanks for the report Neven Biruski (DefenseCode).
|
109 |
+
- Fix: Missing closing div tag in the generated schema markup breaking style for some themes.
|
110 |
+
- Fix: Load the external scripts without protocol to prevent it from breaking on https sites.
|
111 |
|
112 |
= 1.4.4 =
|
113 |
+
- Fix: PHP fatal error to older version of PHP
|
114 |
|
115 |
= 1.4.3 =
|
116 |
+
- Fix: WooCommerce Support Added
|
117 |
|
118 |
= 1.4.2 =
|
119 |
+
- Improvement: Added company/organization and address in people schema.
|
120 |
+
- Improvement: Added nutrition & ingredients in recipe schema.
|
121 |
+
- Improvement: Added software image & operating system in software application schema.
|
122 |
+
- Improvement: Added video description in software application schema.
|
123 |
+
- Improvement: Added author, publisher - organization and publisher logo in article schema.
|
124 |
+
- Improvement: Added provider location, provider location image, and telephone in service schema.
|
125 |
+
- Improvement: Changes admin bar test rich snippet redirect link to the structured data testing tool.
|
126 |
+
- Fix: removed all error in schema according to structured data testing tool.
|
127 |
|
128 |
= 1.4.1 =
|
129 |
+
- Fix: Compatibility fix WordPress 4.7.
|
130 |
|
131 |
= 1.4.0 =
|
132 |
+
- Added new service schema
|
133 |
+
- Minor CSS fixes
|
134 |
|
135 |
= 1.3.0 =
|
136 |
+
- Improvement: Updated markup data to meet Google Structured data guidelines
|
137 |
+
- Fixed: WordPress 4.4 compatibility
|
138 |
+
- Fixed: Admin UI on small screens
|
139 |
|
140 |
= 1.2.0 =
|
141 |
+
- Improvement: WordPress 4.0 compatibility
|
142 |
+
- Fixed: Colorpicker breaking other plugins colorpicker settings.
|
143 |
|
144 |
= 1.1.9 =
|
145 |
+
- Fixed: Image uploading in meta issue resolved.
|
146 |
+
- Fixed: Compatibility with WordPress 3.9
|
147 |
|
148 |
= 1.1.8 =
|
149 |
+
- Fixed: CSS and JS now loads on the page / post where rich snippets are configured.
|
150 |
|
151 |
= 1.1.7 =
|
152 |
+
- Improvement: Added "Test Rich Snippets" menu in admin bar for testing rich snippets in Google Webmasters Tools
|
153 |
+
- Fixed: retina.js issue resolved
|
154 |
+
- Removed unnecessary code
|
155 |
|
156 |
= 1.1.6 =
|
157 |
+
- Improvement: Compatibility with WordPres 3.8
|
158 |
+
- Fixed: Admin CSS breaking tabs in WP 3.8
|
159 |
+
- Added - reference post url field in "contact developers" form on settings page
|
160 |
|
161 |
= 1.1.5 =
|
162 |
+
- Improvement: Replaced rating 'count' with 'votes' on products - as directed by Google
|
163 |
+
- Fixed: Article snippet not displaying accurate when snippet title is blank
|
164 |
+
- Fixed: Recipe string 'Published on' can be changed.
|
165 |
|
166 |
= 1.1.4 =
|
167 |
+
- Fixed: Illegal string offset `user_rating` Warning
|
168 |
|
169 |
= 1.1.3 =
|
170 |
+
- Improvement : Network Activation
|
171 |
|
172 |
= 1.1.2 =
|
173 |
+
- Fixed: Edit media functionality.
|
174 |
|
175 |
= 1.1.1 =
|
176 |
+
- Added: Article type
|
177 |
+
- Added: Compatibility with WooThemes Plugins and themes
|
178 |
+
- Added: New Media Manager for uploading images in metabox
|
179 |
|
180 |
= 1.1.0 =
|
181 |
+
- Added: Admin options
|
182 |
+
- Fixed: Ratings on recipe, products and software application
|
183 |
+
- Improvement: Admin options for customizing everything
|
184 |
+
- Improvement: New snippet box design with responsive layout
|
185 |
|
186 |
= 1.0.4 =
|
187 |
+
- Fixed: Rating on Comments
|
188 |
+
- Fixed: On deleting any deactivated plugin
|
189 |
+
- Fixed: Error message comming on commenting
|
190 |
+
- Fixed: On post save draft
|
191 |
|
192 |
= 1.0.3 =
|
193 |
+
- Clean up the code
|
194 |
+
- Fixed: Plugin activation error
|
195 |
+
- Fixed: Error on editing theme and plugin files.
|
196 |
+
- Removed : Breadcrumbs
|
197 |
|
198 |
= 1.0.2 =
|
199 |
+
- Added: RDFa Breadcrumbs Plugin is now a part of All in One Schema.org Rich Snippets !
|
200 |
+
- Added: Star rating and review for recipe
|
201 |
+
- Fized: Recipe type
|
202 |
+
- Fixed: Post update error
|
203 |
|
204 |
= 1.0.1 =
|
205 |
+
- Minor Bugs Fixes
|
206 |
|
207 |
= 1.0 =
|
208 |
+
- Initial Release.
|