All In One Schema Rich Snippets - Version 1.1.5

Version Description

  • Enhancement: Replaced rating 'count' with 'votes' on products - as directed by Google
  • Fixed: Article snippet not displaying accurate when snippet title is blank
  • Fixed: Recipe string 'Published on' can be changed.
Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.5

Files changed (3) hide show
  1. functions.php +4 -4
  2. index.php +1 -13
  3. readme.txt +1 -29
functions.php CHANGED
@@ -366,7 +366,7 @@ function display_rich_snippet($content) {
366
  }
367
  $product .= '<div class="snippet-data-img">';
368
  $product .= '<span itemprop="rating">'.average_rating().'</span>';
369
- $product .= ' based on <span class="rating-count" itemprop="count">'.rating_count().'</span> reviews </span></div><div class="snippet-clear"></div>';
370
  if(trim($product_brand) != "")
371
  {
372
  if($args_product['product_brand'] != "")
@@ -443,7 +443,7 @@ function display_rich_snippet($content) {
443
 
444
  $recipe .= '<div class="snippet-data-img"><span itemprop="name">'.$recipes_name.'</span></div><div class="snippet-clear"></div>';
445
  }
446
- $recipe .= '<div class="snippet-label-img">Published on : </div><div class="snippet-data-img"><time datetime="'.get_the_date('Y-m-d').'" itemprop="published">'.get_the_date('Y-m-d').'</time></div><div class="snippet-clear"></div>';
447
  if(trim($recipes_preptime) != "")
448
  {
449
  if($args_recipe['recipe_prep'] != "")
@@ -629,9 +629,9 @@ function display_rich_snippet($content) {
629
  $article .= '<div id="snippet-box" style="background:'.$args_color["snippet_box_bg"].'; color:'.$args_color["snippet_box_color"].'; border:1px solid '.$args_color["snippet_border"].';">';
630
  if($args_article['snippet_title'] != "" )
631
  {
632
- $article .= '<div class="snippet-title" style="background:'.$args_color["snippet_title_bg"].'; color:'.$args_color["snippet_title_color"].'; border-bottom:1px solid '.$args_color["snippet_border"].';">'.$args_article['snippet_title'];
 
633
  }
634
- $article .= '</div>';
635
  $article .= '<div itemscope itemtype="http://schema.org/Article">';
636
  if(trim($article_image) != "")
637
  {
366
  }
367
  $product .= '<div class="snippet-data-img">';
368
  $product .= '<span itemprop="rating">'.average_rating().'</span>';
369
+ $product .= ' based on <span class="rating-count" itemprop="votes">'.rating_count().'</span> votes </span></div><div class="snippet-clear"></div>';
370
  if(trim($product_brand) != "")
371
  {
372
  if($args_product['product_brand'] != "")
443
 
444
  $recipe .= '<div class="snippet-data-img"><span itemprop="name">'.$recipes_name.'</span></div><div class="snippet-clear"></div>';
445
  }
446
+ $recipe .= '<div class="snippet-label-img">'.$args_recipe['recipe_pub'].' </div><div class="snippet-data-img"><time datetime="'.get_the_date('Y-m-d').'" itemprop="published">'.get_the_date('Y-m-d').'</time></div><div class="snippet-clear"></div>';
447
  if(trim($recipes_preptime) != "")
448
  {
449
  if($args_recipe['recipe_prep'] != "")
629
  $article .= '<div id="snippet-box" style="background:'.$args_color["snippet_box_bg"].'; color:'.$args_color["snippet_box_color"].'; border:1px solid '.$args_color["snippet_border"].';">';
630
  if($args_article['snippet_title'] != "" )
631
  {
632
+ $article .= '<div class="snippet-title" style="background:'.$args_color["snippet_title_bg"].'; color:'.$args_color["snippet_title_color"].'; border-bottom:1px solid '.$args_color["snippet_border"].';">'.$args_article['snippet_title'];
633
+ $article .= '</div>';
634
  }
 
635
  $article .= '<div itemscope itemtype="http://schema.org/Article">';
636
  if(trim($article_image) != "")
637
  {
index.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.brainstormforce.com
5
  Author: Brainstorm Force
6
  Author URI: http://www.brainstormforce.com
7
  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.
8
- Version: 1.1.4
9
  Text Domain: rich-snippets
10
  License: GPL2
11
  */
@@ -209,7 +209,6 @@ if ( !class_exists( "RichSnippets" ) )
209
 
210
  die();
211
  }
212
-
213
  function submit_color()
214
  {
215
  $snippet_box_bg = $_POST['snippet_box_bg'];
@@ -228,7 +227,6 @@ if ( !class_exists( "RichSnippets" ) )
228
 
229
  die();
230
  }
231
-
232
  function iris_enqueue_scripts()
233
  {
234
  wp_enqueue_script( 'wp-color-picker' );
@@ -236,38 +234,28 @@ if ( !class_exists( "RichSnippets" ) )
236
  wp_enqueue_script( 'cp_custom', plugins_url( 'js/cp-script.min.js', __FILE__ ), array( 'jquery', 'wp-color-picker' ), '1.1', true );
237
  wp_enqueue_style( 'wp-color-picker' );
238
  }
239
-
240
  function bsf_color_scripts()
241
  {
242
-
243
  global $wp_version;
244
-
245
  $bsf_script_array = array( 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'media-upload', 'thickbox' );
246
 
247
  // styles required for cmb
248
-
249
  $bsf_style_array = array( 'thickbox' );
250
 
251
  // if we're 3.5 or later, user wp-color-picker
252
-
253
  if ( 3.5 <= $wp_version ) {
254
 
255
  $bsf_script_array[] = 'wp-color-picker';
256
-
257
  $bsf_style_array[] = 'wp-color-picker';
258
 
259
  } else {
260
 
261
  // otherwise use the older 'farbtastic'
262
-
263
  $bsf_script_array[] = 'farbtastic';
264
-
265
  $bsf_style_array[] = 'farbtastic';
266
 
267
  }
268
-
269
  }
270
-
271
  }
272
  }
273
  require_once(plugin_dir_path( __FILE__ ).'functions.php');
5
  Author: Brainstorm Force
6
  Author URI: http://www.brainstormforce.com
7
  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.
8
+ Version: 1.1.5
9
  Text Domain: rich-snippets
10
  License: GPL2
11
  */
209
 
210
  die();
211
  }
 
212
  function submit_color()
213
  {
214
  $snippet_box_bg = $_POST['snippet_box_bg'];
227
 
228
  die();
229
  }
 
230
  function iris_enqueue_scripts()
231
  {
232
  wp_enqueue_script( 'wp-color-picker' );
234
  wp_enqueue_script( 'cp_custom', plugins_url( 'js/cp-script.min.js', __FILE__ ), array( 'jquery', 'wp-color-picker' ), '1.1', true );
235
  wp_enqueue_style( 'wp-color-picker' );
236
  }
 
237
  function bsf_color_scripts()
238
  {
 
239
  global $wp_version;
 
240
  $bsf_script_array = array( 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'media-upload', 'thickbox' );
241
 
242
  // styles required for cmb
 
243
  $bsf_style_array = array( 'thickbox' );
244
 
245
  // if we're 3.5 or later, user wp-color-picker
 
246
  if ( 3.5 <= $wp_version ) {
247
 
248
  $bsf_script_array[] = 'wp-color-picker';
 
249
  $bsf_style_array[] = 'wp-color-picker';
250
 
251
  } else {
252
 
253
  // otherwise use the older 'farbtastic'
 
254
  $bsf_script_array[] = 'farbtastic';
 
255
  $bsf_style_array[] = 'farbtastic';
256
 
257
  }
 
258
  }
 
259
  }
260
  }
261
  require_once(plugin_dir_path( __FILE__ ).'functions.php');
readme.txt CHANGED
@@ -1 +1 @@
1
- === All In One Schema.org Rich Snippets ===
2
- It gives search engines only the important & precise information to display in search result snippets.
3
- Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
4
- [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
5
- Helps you rank higher in search results
6
- Helps Facebook display proper information when users share your links on Facebook
7
- Even simpler, shorter, typographic and more beautiful design of MicroData box. May be like this https://moqups.com/brainstormforce/5P0EaLtt
8
- Redesigned admin panel
9
- Refined MicroData input options
10
- Support for more post types (Local Business, etc)
11
- It gives search engines only the important & precise information to display in search result snippets.
12
- Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
13
- [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
14
- Helps you rank higher in search results
15
- Helps Facebook display proper information when users share your links on Facebook
16
- It gives search engines only the important & precise information to display in search result snippets.
17
- Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
18
- [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
19
- Helps you rank higher in search results
20
- Helps Facebook display proper information when users share your links on Facebook
21
- Even simpler, shorter, typographic and more beautiful design of MicroData box. May be like this https://moqups.com/brainstormforce/5P0EaLtt
22
- Redesigned admin panel
23
- Refined MicroData input options
24
- Support for more post types (Local Business, etc)
25
- It gives search engines only the important & precise information to display in search result snippets.
26
- Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
27
- [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
28
- Helps you rank higher in search results
29
- Helps Facebook display proper information when users share your links on Facebook
1
+ === All In One Schema.org Rich Snippets ===