All In One Schema Rich Snippets - Version 1.5.6

Version Description

  • Improvement: Updated plugin name - All In One Schema Rich Snippets to Schema - 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 Icon 128x128 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

Files changed (3) hide show
  1. functions.php +13 -6
  2. index.php +4 -4
  3. 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
- else if(trim($product_status) == "in_stock")
 
 
394
  $availability = "Available in Stock";
395
- else if(trim($product_status) == "instore_only")
 
 
396
  $availability = "Available in Store Only";
397
- else if(trim($product_status) == "preorder")
 
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 Snippet! 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.5
9
  Text Domain: rich-snippets
10
  License: GPL2
11
  */
12
- /* Copyright 2013 All in One 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.
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, yawalkarm
3
- Donate link: https://www.brainstormforce.com
4
  Tags: schema markup, structured data, rich snippets, schema.org, Microdata, schema
5
  Requires at least: 3.7
6
- Tested up to: 5.0
7
- Stable tag: 1.5.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
- * Fix: Schema markup displayed before the post content or hidden when page content is built using a page builder plugin.
85
 
86
  = 1.5.4 =
87
- * Improvement: Dashboard UI Updated.
88
- * Fix: Removed publisher logo width-height meta tags.
89
- * Fix: Removed default border CSS for images in frontend.
90
 
91
  = 1.5.3 =
92
- * Improvement: Updated schema exiting action and enqueue files function.
93
 
94
  = 1.5.2 =
95
- * Fix: Frontend Summary box structure validation issue.
96
- * Fix: Editor object undefined issue lead js issue in the page.
97
 
98
  = 1.5.1 =
99
- * Fix: Plugin outputting extra output causing Ajax calls to break after last update.
100
 
101
  = 1.5.0 =
102
- * 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.
103
- * Fix: XSS Vulnerability in the settings page, Thanks for the report Neven Biruski (DefenseCode).
104
- * Fix: Missing closing div tag in the generated schema markup breaking style for some themes.
105
- * Fix: Load the external scripts without protocol to prevent it from breaking on https sites.
106
 
107
  = 1.4.4 =
108
- * Fix: PHP fatal error to older version of PHP
109
 
110
  = 1.4.3 =
111
- * Fix: WooCommerce Support Added
112
 
113
  = 1.4.2 =
114
- * Improvement: Added company/organization and address in people schema.
115
- * Improvement: Added nutrition & ingredients in recipe schema.
116
- * Improvement: Added software image & operating system in software application schema.
117
- * Improvement: Added video description in software application schema.
118
- * Improvement: Added author, publisher - organization and publisher logo in article schema.
119
- * Improvement: Added provider location, provider location image, and telephone in service schema.
120
- * Improvement: Changes admin bar test rich snippet redirect link to the structured data testing tool.
121
- * Fix: removed all error in schema according to structured data testing tool.
122
 
123
  = 1.4.1 =
124
- * Fix: Compatibility fix WordPress 4.7.
125
 
126
  = 1.4.0 =
127
- * Added new service schema
128
- * Minor CSS fixes
129
 
130
  = 1.3.0 =
131
- * Improvement: Updated markup data to meet Google Structured data guidelines
132
- * Fixed: WordPress 4.4 compatibility
133
- * Fixed: Admin UI on small screens
134
 
135
  = 1.2.0 =
136
- * Improvement: WordPress 4.0 compatibility
137
- * Fixed: Colorpicker breaking other plugins colorpicker settings.
138
 
139
  = 1.1.9 =
140
- * Fixed: Image uploading in meta issue resolved.
141
- * Fixed: Compatibility with WordPress 3.9
142
 
143
  = 1.1.8 =
144
- * Fixed: CSS and JS now loads on the page / post where rich snippets are configured.
145
 
146
  = 1.1.7 =
147
- * Improvement: Added "Test Rich Snippets" menu in admin bar for testing rich snippets in Google Webmasters Tools
148
- * Fixed: retina.js issue resolved
149
- * Removed unnecessary code
150
 
151
  = 1.1.6 =
152
- * Improvement: Compatibility with WordPres 3.8
153
- * Fixed: Admin CSS breaking tabs in WP 3.8
154
- * Added - reference post url field in "contact developers" form on settings page
155
 
156
  = 1.1.5 =
157
- * Improvement: Replaced rating 'count' with 'votes' on products - as directed by Google
158
- * Fixed: Article snippet not displaying accurate when snippet title is blank
159
- * Fixed: Recipe string 'Published on' can be changed.
160
 
161
  = 1.1.4 =
162
- * Fixed: Illegal string offset `user_rating` Warning
163
 
164
  = 1.1.3 =
165
- * Improvement : Network Activation
166
 
167
  = 1.1.2 =
168
- * Fixed: Edit media functionality.
169
 
170
  = 1.1.1 =
171
- * Added: Article type
172
- * Added: Compatibility with WooThemes Plugins and themes
173
- * Added: New Media Manager for uploading images in metabox
174
 
175
  = 1.1.0 =
176
- * Added: Admin options
177
- * Fixed: Ratings on recipe, products and software application
178
- * Improvement: Admin options for customizing everything
179
- * Improvement: New snippet box design with responsive layout
180
 
181
  = 1.0.4 =
182
- * Fixed: Rating on Comments
183
- * Fixed: On deleting any deactivated plugin
184
- * Fixed: Error message comming on commenting
185
- * Fixed: On post save draft
186
 
187
  = 1.0.3 =
188
- * Clean up the code
189
- * Fixed: Plugin activation error
190
- * Fixed: Error on editing theme and plugin files.
191
- * Removed : Breadcrumbs
192
 
193
  = 1.0.2 =
194
- * Added: RDFa Breadcrumbs Plugin is now a part of All in One Schema.org Rich Snippets !
195
- * Added: Star rating and review for recipe
196
- * Fized: Recipe type
197
- * Fixed: Post update error
198
 
199
  = 1.0.1 =
200
- * Minor Bugs Fixes
201
 
202
  = 1.0 =
203
- * Initial Release.
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.