All In One Schema Rich Snippets - Version 1.0.1

Version Description

  • Minor Bugs Fixes
Download this release

Release Info

Developer brainstormforce
Plugin Icon 128x128 All In One Schema Rich Snippets
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0 to 1.0.1

Files changed (3) hide show
  1. functions.php +5 -4
  2. index.php +1 -1
  3. readme.txt +5 -2
functions.php CHANGED
@@ -222,7 +222,7 @@ function display_rich_snippet($content) {
222
  if(trim($product_status) != "")
223
  $product .= '<tr class="tbl-bsf-tr"><td class="tbl-bsf-td">Availability : </td><td class="tbl-bsf-td"><span property="v:availability" content="'.$product_status.'">'.$availability.'</span></td></tr>';
224
  if(trim($product_image) != "")
225
- $product .= '<tr class="tbl-bsf-tr"><td colspan="2" class="tbl-bsf-td"><img src="'.$product_image.'" rel="v:image" /></td></tr>';
226
  $product .= '</table></div>';
227
  return $product;
228
  }
@@ -273,17 +273,18 @@ function display_rich_snippet($content) {
273
  if(trim($software_image) != "")
274
  $software .= '<tr class="tbl-bsf-tr"><td rowspan="7" style="padding:5px; width:180px;"><img width="180" height="180" src="'.$software_image.'" itemprop="image" /></td></tr>';
275
  if(trim($software_rating) != "")
276
- $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Rating : <span itemprop="ratingValue">'.$software_rating.'</span></td></tr>';
277
  if(trim($software_name) != "")
278
  $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Name : <span itemprop="name">'.$software_name.'</span></td></tr>';
279
  if(trim($software_os) != "")
280
  $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Operating System : <span itemprop="operatingSystems">'.$software_os.'</span></td></tr>';
281
  if(trim($software_price) != "")
282
- $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Price : <span itemprop="price">'.$software_price.'</span></td></tr>';
283
  if(trim($software_desc) != "")
284
  $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Description : <span itemprop="description">'.$software_desc.'</span></td></tr>';
285
  if(trim($software_landing) != "")
286
- $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Landing Page : <a itemprop="url href="'.$software_landing.'">'.$software_landing.'</a></td></tr>';
 
287
  $software .= '</table></div>';
288
  return $software;
289
  }
222
  if(trim($product_status) != "")
223
  $product .= '<tr class="tbl-bsf-tr"><td class="tbl-bsf-td">Availability : </td><td class="tbl-bsf-td"><span property="v:availability" content="'.$product_status.'">'.$availability.'</span></td></tr>';
224
  if(trim($product_image) != "")
225
+ $product .= '<tr class="tbl-bsf-tr"><td colspan="2" class="tbl-bsf-td"><img src="'.$product_image.'" itemprop="image" /></td></tr>';
226
  $product .= '</table></div>';
227
  return $product;
228
  }
273
  if(trim($software_image) != "")
274
  $software .= '<tr class="tbl-bsf-tr"><td rowspan="7" style="padding:5px; width:180px;"><img width="180" height="180" src="'.$software_image.'" itemprop="image" /></td></tr>';
275
  if(trim($software_rating) != "")
276
+ $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Rating : <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><span itemprop="ratingValue">'.$software_rating.'</span></div></td></tr>';
277
  if(trim($software_name) != "")
278
  $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Name : <span itemprop="name">'.$software_name.'</span></td></tr>';
279
  if(trim($software_os) != "")
280
  $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Operating System : <span itemprop="operatingSystems">'.$software_os.'</span></td></tr>';
281
  if(trim($software_price) != "")
282
+ $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Price : <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span itemprop="price">'.$software_price.'</span></div></td></tr>';
283
  if(trim($software_desc) != "")
284
  $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Description : <span itemprop="description">'.$software_desc.'</span></td></tr>';
285
  if(trim($software_landing) != "")
286
+ $software .= '<tr class="tbl-bsf-tr"><td></td><td class="tbl-bsf-td">Landing Page :
287
+ <a itemprop="url" href="'.$software_landing.'">'.$software_landing.'</a></td></tr>';
288
  $software .= '</table></div>';
289
  return $software;
290
  }
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: All In One Schema.org Rich Snippets
4
  Plugin URI: http://www.brainstormforce.com
5
  Description: The All in One Rich Snippets gives the power to the blog author to control the rich snippets to be shown in the search results by the search engines.
6
- Version: 1.0
7
  Author: Brainstorm Force
8
  Author URI: http://www.brainstormforce.com
9
  License: GPL2
3
  Plugin Name: All In One Schema.org Rich Snippets
4
  Plugin URI: http://www.brainstormforce.com
5
  Description: The All in One Rich Snippets gives the power to the blog author to control the rich snippets to be shown in the search results by the search engines.
6
+ Version: 1.0.1
7
  Author: Brainstorm Force
8
  Author URI: http://www.brainstormforce.com
9
  License: GPL2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.brainstormforce.com
4
  Tags: Review, Event, Organization, People, Product, Recipe, Software Application, Video, rdfa, rich snippet, schema.org, schema, microdata, microformat, SERP, Google, Yahoo, Bing
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -87,8 +87,11 @@ Review, Event, Organization, People, Product, Recipe, Software Application, Vide
87
 
88
  == Changelog ==
89
 
 
 
 
90
  = 1.0 =
91
  * Initial Release.
92
 
93
  == Upgrade Notice ==
94
- N/A
4
  Tags: Review, Event, Organization, People, Product, Recipe, Software Application, Video, rdfa, rich snippet, schema.org, schema, microdata, microformat, SERP, Google, Yahoo, Bing
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
87
 
88
  == Changelog ==
89
 
90
+ = 1.0.1 =
91
+ * Minor Bugs Fixes
92
+
93
  = 1.0 =
94
  * Initial Release.
95
 
96
  == Upgrade Notice ==
97
+ Please update your plugin, new release contains some minor bugs fixes.