All In One Schema Rich Snippets - Version 1.0.3

Version Description

  • Clean up the code
  • Bug fix on plugin activation
  • Bug fix - error on editing theme and plugin files.
  • Removed : Breadcrumbs
Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

Files changed (5) hide show
  1. admin/index.php +9 -85
  2. functions.php +7 -4
  3. index.php +23 -61
  4. rdfa-breadcrumbs.php +0 -340
  5. readme.txt +106 -100
admin/index.php CHANGED
@@ -17,29 +17,28 @@ function rich_snippet_dashboard() {
17
  echo '<div id="star-icons-32" class="icon32"></div><h2>'.__("All in One Rich Snippets Dashboard","rich-snippets").'</h2>';
18
  echo '<div class="clear"></div><div id="tabs">';
19
  echo '<ul class="subsubsub">
20
- <li class="active"><a id="t1" class="current" href="#tab-1">'.__(" How to Use","rich-snippets").'</a> |</li>
21
  <li class="active"><a id="t2" class="" href="#tab-2">'.__("FAQs","rich-snippets").'</a> |</li>
22
- <li class="active"><a id="t3" class="" href="#tab-3">'.__("Get in Touch","rich-snippets").'</a> |</li>
23
- <li class="active"><a id="t4" class="" href="#tab-4">'.__("Breadcrumbs","rich-snippets").'</a></li>
24
  </ul>
25
  <div class="clear"></div>
26
  <div id="tab-1">
27
  <table class="wp-list-table widefat fixed">
28
  <thead> <tr><th>'.__("<span>Usage Instructions</span>","rich-snippets").'</th></tr></thead>
29
- <tbody><tr><td><h3>'.__("Notice that you have a new meta box below the field where you enter content for your post or page.","rich-snippets").'</h3>
30
  <img src="'.plugins_url("/all-in-one-schemaorg-rich-snippets/screenshot-1.png").'"/>
31
- <h3>'.__("Select type of your content.","rich-snippets").'</h3>
32
  <img src="'.plugins_url("/all-in-one-schemaorg-rich-snippets/screenshot-2.png").'"/>
33
- <h3>'.__("Fill in as much data as you can","rich-snippets").'</h3>
34
  <img src="'.plugins_url("/all-in-one-schemaorg-rich-snippets/screenshot-3.png").'"/>
35
- <h3>'.__("And publish! Isn't that simple?").'</h3>
36
  </td></tr></tbody>
37
  </table>
38
  </div>
39
  <div id="tab-2">
40
  <table class="wp-list-table widefat fixed">
41
  <thead> <tr><th>'.__("<span>Plugins FAQs</span>","rich-snippets").'</th></tr></thead>
42
- <tbody> <tr><td><ul><li><strong>'.__("How much time would it take to show up rich snippets for my posts?","rich-snippets").'</strong></li>
43
  <p>'.__("Most probably as soon as Google Crawls it.","rich-snippets").'</p>
44
  <li><strong>'.__("Where I can see preview of my search results?","rich-snippets").'</strong></li>
45
  <p>'.__("Here: <a href='http://www.google.com/webmasters/tools/richsnippets'>http://www.google.com/webmasters/tools/richsnippets</a>","rich-snippets").'</p>
@@ -47,7 +46,7 @@ function rich_snippet_dashboard() {
47
  <p>'.__("No. Though some fields are mandatory and required to by Google in order to display rich snippet.","rich-snippets").'</p>
48
  <li><strong>'.__("Can I edit CSS?","rich-snippets").'</strong></li>
49
  <p>'.__("Of course. CSS file is in the plugin directory which you can edit easily.","rich-snippets").'</p>
50
- </ul></td></tr></tbody>
51
  </table>
52
  </div>
53
  <div id="tab-3">
@@ -59,58 +58,8 @@ function rich_snippet_dashboard() {
59
  '.__("<p>Optionally, you can mail us on : </p><p><a class='button-primary' href='mailto:contact@brainstormforce.com'>contact@brainstormforce.com</a></p>").'</td></tr></tbody>
60
  </table>
61
  </div>
62
- <div id="tab-4">
63
- <table class="wp-list-table widefat fixed">
64
- <thead> <tr><th>'.__("<span>Configure Breadcrumbs Options</span>","rich-snippets").'</th></tr></thead>
65
- <tbody>
66
- <tr><td>
67
- <form method="POST" action="">
68
- '.wp_nonce_field("rdfa_breadcrumb_option").'
69
- <table class="form-table bsf_metabox">
70
- <tr valign="top">
71
- <th scope="row" class="bsf_metabox">'.__("Prefix", "rich-snippets").'</th>
72
- <td class="bsf_metabox"><input type="text" name="prefix" value="'.$args['prefix'].'" /></td>
73
- </tr>
74
- <tr valign="top">
75
- <th class="bsf_metabox" scope="row">'.__("Suffix", "rich-snippets").'</th>
76
- <td class="bsf_metabox"><input type="text" name="suffix" value="'.$args['suffix'].'" /></td>
77
- </tr>
78
- <tr valign="top">
79
- <th class="bsf_metabox" scope="row">'.__("Title", "rich-snippets").'</th>
80
- <td class="bsf_metabox"><input type="text" name="title" value="'.$args['title'].'" /></td>
81
- </tr>
82
- <tr valign="top">
83
- <th class="bsf_metabox" scope="row">'.__("Home Title", "rich-snippets").'</th>
84
- <td class="bsf_metabox"><input type="text" name="home_title" value="'.$args['home_title'].'" /></td>
85
- </tr>
86
- <tr valign="top">
87
- <th class="bsf_metabox" scope="row">'.__("Breadcrumb Seperator", "rich-snippets").'</th>
88
- <td class="bsf_metabox"><input type="text" name="separator" value="'.$args['separator'].'" /></td>
89
- </tr>
90
- <tr valign="top">
91
- <th class="bsf_metabox" scope="row"></th>
92
- <td class="bsf_metabox"><input type="submit" name="submit" value="'.__("Update Options", "rich-snippets").'" class="button-primary" /></td>
93
- </tr>
94
- <tr><td></td>
95
- <td>
96
- <pre>
97
- &lt;?php
98
- if(function_exists("bsf_breadcrumb"))
99
- {
100
- bsf_breadcrumb();
101
- }
102
- ?&gt;
103
- </pre>
104
- </td>
105
- </tr>
106
- </table>
107
- </form>
108
- </td></tr>
109
- </tbody>
110
- </table>
111
- </div>
112
  </div> ';
113
- echo '<div id="sidebar"></div>';
114
  echo '
115
  <script language="javascript">
116
  jQuery(function() {
@@ -119,44 +68,19 @@ function rich_snippet_dashboard() {
119
  jQuery(this).toggleClass("current");
120
  jQuery("#t2").removeClass("current");
121
  jQuery("#t3").removeClass("current");
122
- jQuery("#t4").removeClass("current");
123
  });
124
  jQuery( "#t2" ).click(function() {
125
  jQuery(this).toggleClass("current");
126
  jQuery("#t1").removeClass("current");
127
  jQuery("#t3").removeClass("current");
128
- jQuery("#t4").removeClass("current");
129
  });
130
  jQuery( "#t3" ).click(function() {
131
  jQuery(this).toggleClass("current");
132
  jQuery("#t2").removeClass("current");
133
  jQuery("#t1").removeClass("current");
134
- jQuery("#t4").removeClass("current");
135
- });
136
- jQuery( "#t4" ).click(function() {
137
- jQuery(this).toggleClass("current");
138
- jQuery("#t2").removeClass("current");
139
- jQuery("#t1").removeClass("current");
140
- jQuery("#t3").removeClass("current");
141
  });
142
  });
143
  </script>';
144
  }
145
- if(isset($_POST['submit'])) {
146
-
147
- check_admin_referer('rdfa_breadcrumb_option');
148
-
149
- foreach(array('prefix','suffix','title','home_title','separator') as $option) {
150
- if(isset($_POST[$option])) {
151
- $args[$option] = $_POST[$option];
152
- }
153
- }
154
- if(update_option('rdfa_options',$args)) {
155
- echo '<div class="updated"><p>' . __('Success! Your changes were successfully saved!', 'rich-snippets') . '</p></div>';
156
- } else {
157
- echo '<div class="error"><p>' . __('Sorry, But Your Changes Are Not Saved!', 'rich-snippets') . '</p></div>';
158
- }
159
- $args = get_option('rdfa_options');
160
- }
161
 
162
  ?>
17
  echo '<div id="star-icons-32" class="icon32"></div><h2>'.__("All in One Rich Snippets Dashboard","rich-snippets").'</h2>';
18
  echo '<div class="clear"></div><div id="tabs">';
19
  echo '<ul class="subsubsub">
20
+ <li class="active"><a id="t1" class="current" href="#tab-1">'.__(" Add Snippets in Posts & Pages ","rich-snippets").'</a> |</li>
21
  <li class="active"><a id="t2" class="" href="#tab-2">'.__("FAQs","rich-snippets").'</a> |</li>
22
+ <li class="active"><a id="t3" class="" href="#tab-3">'.__("Need Support? Get in Touch","rich-snippets").'</a></li>
 
23
  </ul>
24
  <div class="clear"></div>
25
  <div id="tab-1">
26
  <table class="wp-list-table widefat fixed">
27
  <thead> <tr><th>'.__("<span>Usage Instructions</span>","rich-snippets").'</th></tr></thead>
28
+ <tbody><tr><td><p><strong>'.__("Notice that you have a new meta box below the field where you enter content for your post or page.","rich-snippets").'</strong></p>
29
  <img src="'.plugins_url("/all-in-one-schemaorg-rich-snippets/screenshot-1.png").'"/>
30
+ <p><strong>'.__("Select type of your content.","rich-snippets").'</strong></p>
31
  <img src="'.plugins_url("/all-in-one-schemaorg-rich-snippets/screenshot-2.png").'"/>
32
+ <p><strong>'.__("Fill in as much data as you can","rich-snippets").'</strong></p>
33
  <img src="'.plugins_url("/all-in-one-schemaorg-rich-snippets/screenshot-3.png").'"/>
34
+ <p><strong>'.__("And publish! Isn't that simple?").'</strong></p>
35
  </td></tr></tbody>
36
  </table>
37
  </div>
38
  <div id="tab-2">
39
  <table class="wp-list-table widefat fixed">
40
  <thead> <tr><th>'.__("<span>Plugins FAQs</span>","rich-snippets").'</th></tr></thead>
41
+ <tbody> <tr><td><ol><li><strong>'.__("How much time would it take to show up rich snippets for my posts?","rich-snippets").'</strong></li>
42
  <p>'.__("Most probably as soon as Google Crawls it.","rich-snippets").'</p>
43
  <li><strong>'.__("Where I can see preview of my search results?","rich-snippets").'</strong></li>
44
  <p>'.__("Here: <a href='http://www.google.com/webmasters/tools/richsnippets'>http://www.google.com/webmasters/tools/richsnippets</a>","rich-snippets").'</p>
46
  <p>'.__("No. Though some fields are mandatory and required to by Google in order to display rich snippet.","rich-snippets").'</p>
47
  <li><strong>'.__("Can I edit CSS?","rich-snippets").'</strong></li>
48
  <p>'.__("Of course. CSS file is in the plugin directory which you can edit easily.","rich-snippets").'</p>
49
+ </ol></td></tr></tbody>
50
  </table>
51
  </div>
52
  <div id="tab-3">
58
  '.__("<p>Optionally, you can mail us on : </p><p><a class='button-primary' href='mailto:contact@brainstormforce.com'>contact@brainstormforce.com</a></p>").'</td></tr></tbody>
59
  </table>
60
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  </div> ';
62
+ echo '<div id="sidebar"></div></div>';
63
  echo '
64
  <script language="javascript">
65
  jQuery(function() {
68
  jQuery(this).toggleClass("current");
69
  jQuery("#t2").removeClass("current");
70
  jQuery("#t3").removeClass("current");
 
71
  });
72
  jQuery( "#t2" ).click(function() {
73
  jQuery(this).toggleClass("current");
74
  jQuery("#t1").removeClass("current");
75
  jQuery("#t3").removeClass("current");
 
76
  });
77
  jQuery( "#t3" ).click(function() {
78
  jQuery(this).toggleClass("current");
79
  jQuery("#t2").removeClass("current");
80
  jQuery("#t1").removeClass("current");
 
 
 
 
 
 
 
81
  });
82
  });
83
  </script>';
84
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  ?>
functions.php CHANGED
@@ -239,7 +239,7 @@ function display_rich_snippet($content) {
239
  $recipes_photo = get_post_meta( $post->ID, '_bsf_recipes_photo', true );
240
  $recipes_desc = get_post_meta( $post->ID, '_bsf_recipes_desc', true );
241
  $recipes_ingredient = get_post_meta( $post->ID, '_bsf_recipes_ingredient', true );
242
- $comments = wp_count_comments();
243
  $count = $comments->approved;
244
  $agregate = average_rating();
245
  if(trim($recipes_photo) != "")
@@ -326,9 +326,12 @@ function display_rich_snippet($content) {
326
  add_filter('the_content','display_rich_snippet');
327
  require_once('meta-boxes.php');
328
 
329
- wp_enqueue_style('rating.css', plugin_dir_url(__FILE__) . 'css/jquery.rating.css');
330
- wp_enqueue_script('jquery');
331
- wp_enqueue_script('jquery.rating', plugin_dir_url(__FILE__) . 'js/jquery.rating.min.js', array('jquery'));
 
 
 
332
 
333
  function display_rating() {
334
  $rating .= '<br/><strong>Your Rating:</strong><div class="star-blocks">';
239
  $recipes_photo = get_post_meta( $post->ID, '_bsf_recipes_photo', true );
240
  $recipes_desc = get_post_meta( $post->ID, '_bsf_recipes_desc', true );
241
  $recipes_ingredient = get_post_meta( $post->ID, '_bsf_recipes_ingredient', true );
242
+ $comments = wp_count_comments($post->ID);
243
  $count = $comments->approved;
244
  $agregate = average_rating();
245
  if(trim($recipes_photo) != "")
326
  add_filter('the_content','display_rich_snippet');
327
  require_once('meta-boxes.php');
328
 
329
+ function enque() {
330
+ wp_enqueue_style('rating.css', plugin_dir_url(__FILE__) . 'css/jquery.rating.css');
331
+ wp_enqueue_script('jquery');
332
+ wp_enqueue_script('jquery.rating', plugin_dir_url(__FILE__) . 'js/jquery.rating.min.js', array('jquery'));
333
+ }
334
+ add_action('init', 'enque');
335
 
336
  function display_rating() {
337
  $rating .= '<br/><strong>Your Rating:</strong><div class="star-blocks">';
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.2
7
  Author: Brainstorm Force
8
  Author URI: http://www.brainstormforce.com
9
  License: GPL2
@@ -27,22 +27,23 @@ License: GPL2
27
  */
28
  ?>
29
  <?php
 
30
  if ( !class_exists( "RichSnippets" ) )
31
  {
32
  class RichSnippets
33
  {
34
  function __construct() // Constructor
35
- {
36
- register_activation_hook( __FILE__, array($this, 'run_on_activate') );
37
 
 
 
38
  add_action( 'admin_head', array( $this, 'star_icons') );
39
  // Add Admin Menu
40
  add_action('admin_menu', array( $this, 'register_custom_menu_page') );
41
 
42
  add_action( 'admin_init', array( $this, 'set_styles' ));
43
-
44
- add_action( 'admin_init', array( $this, 'rdfa_breadcrumb_settings' ));
45
-
46
  add_action( 'wp_head', array($this, 'frontend_style') );
47
 
48
  add_filter('plugins_loaded', array( $this, 'rich_snippet_translation'));
@@ -50,7 +51,7 @@ if ( !class_exists( "RichSnippets" ) )
50
  add_action( 'admin_enqueue_scripts', array( $this, 'post_enqueue') );
51
 
52
  add_action( 'admin_enqueue_scripts', array( $this, 'post_new_enqueue') );
53
-
54
  $plugin = plugin_basename(__FILE__);
55
  add_filter("plugin_action_links_$plugin", array( $this,'bsf_settings_link') );
56
 
@@ -75,7 +76,7 @@ if ( !class_exists( "RichSnippets" ) )
75
  // You can also output the comment meta values directly in comments template
76
 
77
  add_filter( 'comment_text', array( $this,'modify_comment'));
78
-
79
  }
80
  function frontend_style() {
81
  wp_register_style( 'bsf_style', plugins_url('/css/style.css', __FILE__) );
@@ -94,31 +95,21 @@ if ( !class_exists( "RichSnippets" ) )
94
  array_unshift($links, $settings_link);
95
  return $links;
96
  }
97
- function run_on_activate()
98
  {
99
- wp_enqueue_style('wp-pointer');
100
- wp_enqueue_script('wp-pointer');
101
- add_action('admin_print_footer_scripts', array( $this,'custom_print_footer_scripts') );
102
- }
103
- function custom_print_footer_scripts(){
104
- $pointer_content = '<h3>Rich Snippets Installed !</h3>';
105
- $pointer_content .= '<p>Check out this panel to know more about "All in One Schema.org Rich Snippets".</p>';
106
- ?>
107
- <script type="text/javascript">
108
- //<![CDATA[
109
- jQuery(document).ready( function(jQuery) {
110
- jQuery('#all-in-one-rich-snippets').pointer({
111
- content: '<?php echo $pointer_content; ?>',
112
- position: 'top',
113
- close: function() {
114
- // This function is fired when you click the close button
115
- }
116
- }).pointer('open');
117
- });
118
- //]]>
119
- </script>
120
- <?php
121
  }
 
 
 
 
 
 
 
 
 
 
122
 
123
  //print the star rating style on post edit page
124
  function post_enqueue($hook) {
@@ -139,13 +130,11 @@ if ( !class_exists( "RichSnippets" ) )
139
  wp_enqueue_script( 'bsf_toggle' );
140
  wp_enqueue_style( 'star_style' );
141
  }
142
-
143
  //Initialize the metabox class
144
  function wp_initialize_bsf_meta_boxes() {
145
  if ( ! class_exists( 'bsf_Meta_Box' ) )
146
  require_once(plugin_dir_path( __FILE__ ) . 'init.php');
147
  }
148
-
149
  function set_styles() {
150
  wp_register_style( 'star_style', plugins_url('/css/jquery.rating.css', __FILE__) );
151
  wp_register_style( 'meta_style', plugins_url('admin/css/style.css', __FILE__) );
@@ -153,8 +142,6 @@ if ( !class_exists( "RichSnippets" ) )
153
  wp_register_script( 'bsf_jquery_star', plugins_url('/js/jquery.rating.min.js', __FILE__) );
154
  wp_register_script( 'bsf_toggle', plugins_url('/js/toggle.js', __FILE__) );
155
  }
156
-
157
-
158
  // Define icon styles for the custom post type
159
  function star_icons() {
160
  ?>
@@ -195,15 +182,7 @@ if ( !class_exists( "RichSnippets" ) )
195
  ( $req ? '<span class="required">*</span>' : '' ).
196
  '<input id="email" name="email" type="text" value="'. esc_attr( $commenter['comment_author_email'] ) .
197
  '" size="30" tabindex="2"' . $aria_req . ' /></p>';
198
-
199
- $fields[ 'url' ] = '<p class="comment-form-url">'.
200
- '<label for="url">' . __( 'Website' ) . '</label>'.
201
- '<input id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .
202
- '" size="30" tabindex="3" /></p>';
203
-
204
- $fields[ 'phone' ] = '<p class="comment-form-phone">'.
205
- '<label for="phone">' . __( 'Phone' ) . '</label>'.
206
- '<input id="phone" name="phone" type="text" size="30" tabindex="4" /></p>';
207
 
208
  return $fields;
209
  }
@@ -287,26 +266,9 @@ if ( !class_exists( "RichSnippets" ) )
287
  return $text;
288
  }
289
  }
290
- function rdfa_breadcrumb_settings() {
291
- //Settings page for RDFa Breadcrumb
292
-
293
- $opt = array(
294
- 'prefix' => '<p>',
295
- 'suffix' => '</p>',
296
- 'title' => __( ' ', 'rich-snippets' ),
297
- 'home_title' => __( 'Home', 'rich-snippets' ),
298
- 'separator' => '&raquo',
299
- 'front_page' => false,
300
- 'show_blog' => false,
301
- 'singular_post_taxonomy'=> 'category',
302
- 'echo' => true
303
- );
304
- add_option("rdfa_options",$opt);
305
- }
306
  }
307
  }
308
  require_once('functions.php');
309
- require_once('rdfa-breadcrumbs.php');
310
  add_filter( 'bsf_meta_boxes', 'bsf_metaboxes' );
311
  // Instantiating the Class
312
  if (class_exists("RichSnippets")) {
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.3
7
  Author: Brainstorm Force
8
  Author URI: http://www.brainstormforce.com
9
  License: GPL2
27
  */
28
  ?>
29
  <?php
30
+
31
  if ( !class_exists( "RichSnippets" ) )
32
  {
33
  class RichSnippets
34
  {
35
  function __construct() // Constructor
36
+ {
37
+ // register_activation_hook(__FILE__, array($this, 'run_on_activate'));
38
 
39
+ // add_action( 'admin_notices', array($this, 'display_message') );
40
+
41
  add_action( 'admin_head', array( $this, 'star_icons') );
42
  // Add Admin Menu
43
  add_action('admin_menu', array( $this, 'register_custom_menu_page') );
44
 
45
  add_action( 'admin_init', array( $this, 'set_styles' ));
46
+
 
 
47
  add_action( 'wp_head', array($this, 'frontend_style') );
48
 
49
  add_filter('plugins_loaded', array( $this, 'rich_snippet_translation'));
51
  add_action( 'admin_enqueue_scripts', array( $this, 'post_enqueue') );
52
 
53
  add_action( 'admin_enqueue_scripts', array( $this, 'post_new_enqueue') );
54
+
55
  $plugin = plugin_basename(__FILE__);
56
  add_filter("plugin_action_links_$plugin", array( $this,'bsf_settings_link') );
57
 
76
  // You can also output the comment meta values directly in comments template
77
 
78
  add_filter( 'comment_text', array( $this,'modify_comment'));
79
+
80
  }
81
  function frontend_style() {
82
  wp_register_style( 'bsf_style', plugins_url('/css/style.css', __FILE__) );
95
  array_unshift($links, $settings_link);
96
  return $links;
97
  }
98
+ /* function run_on_activate()
99
  {
100
+ add_action( 'admin_notices', array($this, 'display_message') );
101
+ // add_action('admin_head', array($this,'custom_print_footer_scripts') );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
103
+ function display_message(){
104
+ $screen = get_current_screen();
105
+ if($screen->id == "plugins")
106
+ {
107
+ $plugin = site_url().'/wp-admin/admin.php?page=rich_snippet_dashboard';
108
+ echo '<div class="updated">
109
+ <p>'.__( "<strong>All in One Schema.org Rich Snippets </strong> is installed ! New features are added. <strong><a href='".$plugin."'>Click Here</a> </strong>to configure.", "rich-snippets" ).' </p>
110
+ </div>';
111
+ }
112
+ }*/
113
 
114
  //print the star rating style on post edit page
115
  function post_enqueue($hook) {
130
  wp_enqueue_script( 'bsf_toggle' );
131
  wp_enqueue_style( 'star_style' );
132
  }
 
133
  //Initialize the metabox class
134
  function wp_initialize_bsf_meta_boxes() {
135
  if ( ! class_exists( 'bsf_Meta_Box' ) )
136
  require_once(plugin_dir_path( __FILE__ ) . 'init.php');
137
  }
 
138
  function set_styles() {
139
  wp_register_style( 'star_style', plugins_url('/css/jquery.rating.css', __FILE__) );
140
  wp_register_style( 'meta_style', plugins_url('admin/css/style.css', __FILE__) );
142
  wp_register_script( 'bsf_jquery_star', plugins_url('/js/jquery.rating.min.js', __FILE__) );
143
  wp_register_script( 'bsf_toggle', plugins_url('/js/toggle.js', __FILE__) );
144
  }
 
 
145
  // Define icon styles for the custom post type
146
  function star_icons() {
147
  ?>
182
  ( $req ? '<span class="required">*</span>' : '' ).
183
  '<input id="email" name="email" type="text" value="'. esc_attr( $commenter['comment_author_email'] ) .
184
  '" size="30" tabindex="2"' . $aria_req . ' /></p>';
185
+
 
 
 
 
 
 
 
 
186
 
187
  return $fields;
188
  }
266
  return $text;
267
  }
268
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  }
270
  }
271
  require_once('functions.php');
 
272
  add_filter( 'bsf_meta_boxes', 'bsf_metaboxes' );
273
  // Instantiating the Class
274
  if (class_exists("RichSnippets")) {
rdfa-breadcrumbs.php DELETED
@@ -1,340 +0,0 @@
1
- <?php
2
- /**
3
- * Shows a breadcrumb for all types of pages.
4
- * @Package : RDFa Breadcrumb
5
- * @since 1.0
6
- * @param array $args
7
- * @return string
8
- */
9
-
10
- function bsf_breadcrumb() {
11
-
12
- /* Set up the arguments for the breadcrumb. */
13
-
14
- $opts = get_option("rdfa_options");
15
-
16
- $args = array(
17
- 'prefix' => $opts['prefix'],
18
- 'suffix' => $opts['suffix'],
19
- 'title' => $opts['title'], //__( ' ', 'rich-snippets' ),
20
- 'home_title' => $opts['home_title'], //__( 'Home', 'rich-snippets' ),
21
- 'separator' => $opts['separator'],
22
- 'front_page' => false,
23
- 'show_blog' => false,
24
- 'singular_post_taxonomy'=> 'category',
25
- 'echo' => true
26
- );
27
-
28
- if ( is_front_page() && !$args['front_page'] )
29
- return apply_filters( 'bsf_breadcrumb', false );
30
-
31
- /* Format the title. */
32
- $title = ( !empty( $args['title'] ) ? '<span class="breadcrumbs-title">' . $args['title'] . '</span>': '' );
33
-
34
- $separator = ( !empty( $args['separator'] ) ) ? "<span class='separator'>{$args['separator']}</span>" : "<span class='separator'>/</span>";
35
-
36
- /* Get the items. */
37
- $items = bsf_breadcrumb_get_items( $args );
38
-
39
- $breadcrumbs = '<!-- RDFa Breadcrumbs Plugin by Nitin Yawalkar -->';
40
- $breadcrumbs .= '<div class="breadcrumb breadcrumbs"><div class="rdfa-breadcrumb"><div xmlns:v="http://rdf.data-vocabulary.org/#">';
41
- $breadcrumbs .= $args['prefix'];
42
- $breadcrumbs .= $title;
43
- $breadcrumbs .= join( " {$separator} ", $items );
44
- $breadcrumbs .= $args['suffix'];
45
- $breadcrumbs .= '</div></div></div>';
46
- $breadcrumbs .= '<!-- RDFa Breadcrumbs Plugin by Nitin Yawalkar -->';
47
-
48
- $breadcrumbs = apply_filters( 'bsf_breadcrumb', $breadcrumbs );
49
-
50
- if ( !$args['echo'] )
51
- return $breadcrumbs;
52
- else
53
- echo $breadcrumbs;
54
- }
55
-
56
- /**
57
- * Gets the items for the RDFa Breadcrumb.
58
- *
59
- * @since 0.4
60
- */
61
- function bsf_breadcrumb_get_items( $args ) {
62
- global $wp_query;
63
-
64
- $item = array();
65
-
66
- $show_on_front = get_option( 'show_on_front' );
67
-
68
- /* Front page. */
69
- if ( is_front_page() ) {
70
- $item['last'] = $args['home_title'];
71
- }
72
-
73
- /* Link to front page. */
74
- if ( !is_front_page() )
75
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="'. home_url( '/' ) .'" class="home">' . $args['home_title'] . '</a></span>';
76
-
77
- /* If bbPress is installed and we're on a bbPress page. */
78
- if ( function_exists( 'is_bbpress' ) && is_bbpress() )
79
- $item = array_merge( $item, bsf_breadcrumb_get_bbpress_items() );
80
-
81
- /* If viewing a home/post page. */
82
- elseif ( is_home() ) {
83
- $home_page = get_page( $wp_query->get_queried_object_id() );
84
- $item = array_merge( $item, bsf_breadcrumb_get_parents( $home_page->post_parent ) );
85
- $item['last'] = get_the_title( $home_page->ID );
86
- }
87
-
88
- /* If viewing a singular post. */
89
- elseif ( is_singular() ) {
90
-
91
- $post = $wp_query->get_queried_object();
92
- $post_id = (int) $wp_query->get_queried_object_id();
93
- $post_type = $post->post_type;
94
-
95
- $post_type_object = get_post_type_object( $post_type );
96
-
97
- if ( 'post' === $wp_query->post->post_type && $args['show_blog'] ) {
98
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink( get_option( 'page_for_posts' ) ) . '">' . get_the_title( get_option( 'page_for_posts' ) ) . '</a></span>';
99
- }
100
-
101
- if ( 'page' !== $wp_query->post->post_type ) {
102
-
103
- /* If there's an archive page, add it. */
104
- if ( function_exists( 'get_post_type_archive_link' ) && !empty( $post_type_object->has_archive ) )
105
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_post_type_archive_link( $post_type ) . '" title="' . esc_attr( $post_type_object->labels->name ) . '">' . $post_type_object->labels->name . '</a></span>';
106
-
107
- if ( isset( $args["singular_{$wp_query->post->post_type}_taxonomy"] ) && is_taxonomy_hierarchical( $args["singular_{$wp_query->post->post_type}_taxonomy"] ) ) {
108
- $terms = wp_get_object_terms( $post_id, $args["singular_{$wp_query->post->post_type}_taxonomy"] );
109
- $item = array_merge( $item, bsf_breadcrumb_get_term_parents( $terms[0], $args["singular_{$wp_query->post->post_type}_taxonomy"] ) );
110
- }
111
-
112
- elseif ( isset( $args["singular_{$wp_query->post->post_type}_taxonomy"] ) )
113
- $item[] = get_the_term_list( $post_id, $args["singular_{$wp_query->post->post_type}_taxonomy"], '', ', ', '' );
114
- }
115
-
116
- if ( ( is_post_type_hierarchical( $wp_query->post->post_type ) || 'attachment' === $wp_query->post->post_type ) && $parents = bsf_breadcrumb_get_parents( $wp_query->post->post_parent ) ) {
117
- $item = array_merge( $item, $parents );
118
- }
119
-
120
- $item['last'] = get_the_title();
121
- }
122
-
123
- /* If viewing any type of archive. */
124
- else if ( is_archive() ) {
125
-
126
- if ( is_category() || is_tag() || is_tax() ) {
127
-
128
- $term = $wp_query->get_queried_object();
129
- $taxonomy = get_taxonomy( $term->taxonomy );
130
-
131
- if ( ( is_taxonomy_hierarchical( $term->taxonomy ) && $term->parent ) && $parents = bsf_breadcrumb_get_term_parents( $term->parent, $term->taxonomy ) )
132
- $item = array_merge( $item, $parents );
133
-
134
- $item['last'] = $term->name;
135
- }
136
-
137
- else if ( function_exists( 'is_post_type_archive' ) && is_post_type_archive() ) {
138
- $post_type_object = get_post_type_object( get_query_var( 'post_type' ) );
139
- $item['last'] = $post_type_object->labels->name;
140
- }
141
-
142
- else if ( is_date() ) {
143
-
144
- if ( is_day() )
145
- $item['last'] = __( 'Archives for ', 'rich-snippets' ) . get_the_time( 'F j, Y' );
146
-
147
- elseif ( is_month() )
148
- $item['last'] = __( 'Archives for ', 'rich-snippets' ) . single_month_title( ' ', false );
149
-
150
- elseif ( is_year() )
151
- $item['last'] = __( 'Archives for ', 'rich-snippets' ) . get_the_time( 'Y' );
152
- }
153
-
154
- else if ( is_author() )
155
- $item['last'] = __( 'Archives by: ', 'rich-snippets' ) . get_the_author_meta( 'display_name', $wp_query->post->post_author );
156
- }
157
-
158
- /* If viewing search results. */
159
- else if ( is_search() )
160
- $item['last'] = __( 'Search results for "', 'rich-snippets' ) . stripslashes( strip_tags( get_search_query() ) ) . '"';
161
-
162
- /* If viewing a 404 error page. */
163
- else if ( is_404() )
164
- $item['last'] = __( 'Page Not Found', 'rich-snippets' );
165
-
166
- return apply_filters( 'bsf_breadcrumb_items', $item );
167
- }
168
-
169
- /**
170
- * Gets the items for the breadcrumb item if bbPress is installed.
171
- *
172
- * @since 0.4
173
- *
174
- * @param array $args Mixed arguments for the menu.
175
- * @return array List of items to be shown in the item.
176
- */
177
- function bsf_breadcrumb_get_bbpress_items( $args = array() ) {
178
-
179
- $item = array();
180
-
181
- $post_type_object = get_post_type_object( bbp_get_forum_post_type() );
182
-
183
- if ( !empty( $post_type_object->has_archive ) && !bbp_is_forum_archive() )
184
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_post_type_archive_link( bbp_get_forum_post_type() ) . '">' . bbp_get_forum_archive_title() . '</a></span>';
185
-
186
- if ( bbp_is_forum_archive() )
187
- $item[] = bbp_get_forum_archive_title();
188
-
189
- elseif ( bbp_is_topic_archive() )
190
- $item[] = bbp_get_topic_archive_title();
191
-
192
- elseif ( bbp_is_single_view() )
193
- $item[] = bbp_get_view_title();
194
-
195
- elseif ( bbp_is_single_topic() ) {
196
-
197
- $topic_id = get_queried_object_id();
198
-
199
- $item = array_merge( $item, bsf_breadcrumb_get_parents( bbp_get_topic_forum_id( $topic_id ) ) );
200
-
201
- if ( bbp_is_topic_split() || bbp_is_topic_merge() || bbp_is_topic_edit() )
202
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . bbp_get_topic_permalink( $topic_id ) . '">' . bbp_get_topic_title( $topic_id ) . '</a></span>';
203
- else
204
- $item[] = bbp_get_topic_title( $topic_id );
205
-
206
- if ( bbp_is_topic_split() )
207
- $item[] = __( 'Split', 'rich-snippets' );
208
-
209
- elseif ( bbp_is_topic_merge() )
210
- $item[] = __( 'Merge', 'rich-snippets' );
211
-
212
- elseif ( bbp_is_topic_edit() )
213
- $item[] = __( 'Edit', 'rich-snippets' );
214
- }
215
-
216
- elseif ( bbp_is_single_reply() ) {
217
-
218
- $reply_id = get_queried_object_id();
219
-
220
- $item = array_merge( $item, bsf_breadcrumb_get_parents( bbp_get_reply_topic_id( $reply_id ) ) );
221
-
222
- if ( !bbp_is_reply_edit() ) {
223
- $item[] = bbp_get_reply_title( $reply_id );
224
-
225
- } else {
226
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . bbp_get_reply_url( $reply_id ) . '">' . bbp_get_reply_title( $reply_id ) . '</a></span>';
227
- $item[] = __( 'Edit', 'rich-snippets' );
228
- }
229
- }
230
- elseif ( bbp_is_single_forum() ) {
231
-
232
- $forum_id = get_queried_object_id();
233
- $forum_parent_id = bbp_get_forum_parent( $forum_id );
234
-
235
- if ( 0 !== $forum_parent_id)
236
- $item = array_merge( $item, bsf_breadcrumb_get_parents( $forum_parent_id ) );
237
-
238
- $item[] = bbp_get_forum_title( $forum_id );
239
- }
240
-
241
- elseif ( bbp_is_single_user() || bbp_is_single_user_edit() ) {
242
-
243
- if ( bbp_is_single_user_edit() ) {
244
- $item[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . bbp_get_user_profile_url() . '">' . bbp_get_displayed_user_field( 'display_name' ) . '</a></span>';
245
- $item[] = __( 'Edit' );
246
- } else {
247
- $item[] = bbp_get_displayed_user_field( 'display_name' );
248
- }
249
- }
250
-
251
- return apply_filters( 'bsf_breadcrumb_get_bbpress_items', $item, $args );
252
- }
253
-
254
- /**
255
- * Gets parent pages of any post type.
256
- *
257
- * @since 0.1
258
- * @param int $post_id ID of the post whose parents we want.
259
- * @param string $separator.
260
- * @return string $html String of parent page links.
261
- */
262
- function bsf_breadcrumb_get_parents( $post_id = '', $separator = '/' ) {
263
-
264
- $parents = array();
265
-
266
- if ( $post_id == 0 )
267
- return $parents;
268
-
269
- while ( $post_id ) {
270
- $page = get_page( $post_id );
271
- $parents[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . get_the_title( $post_id ) . '</a></span>';
272
- $post_id = $page->post_parent;
273
- }
274
-
275
- if ( $parents )
276
- $parents = array_reverse( $parents );
277
-
278
- return $parents;
279
- }
280
-
281
- /**
282
- * Searches for term parents of hierarchical taxonomies.
283
- *
284
- * @since 0.1
285
- * @param int $parent_id The ID of the first parent.
286
- * @param object|string $taxonomy The taxonomy of the term whose parents we want.
287
- * @return string $html String of links to parent terms.
288
- */
289
- function bsf_breadcrumb_get_term_parents( $parent_id = '', $taxonomy = '', $separator = '/' ) {
290
-
291
- $html = array();
292
- $parents = array();
293
-
294
- if ( empty( $parent_id ) || empty( $taxonomy ) )
295
- return $parents;
296
-
297
- while ( $parent_id ) {
298
- $parent = get_term( $parent_id, $taxonomy );
299
- $parents[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_term_link( $parent, $taxonomy ) . '" title="' . esc_attr( $parent->name ) . '">' . $parent->name . '</a></span>';
300
- $parent_id = $parent->parent;
301
- }
302
-
303
- if ( $parents )
304
- $parents = array_reverse( $parents );
305
-
306
- return $parents;
307
- }
308
-
309
- /**
310
- * Try to add automatically to Hybrid, Thematic, Thesis and Genesis
311
- *
312
- * @since 0.1
313
- * @return string
314
- */
315
- function setup_bsf_breadcrumb() {
316
-
317
- /* Hybrid */
318
- remove_action( 'hybrid_before_content', 'hybrid_breadcrumb' );
319
- add_action( 'hybrid_before_content', 'bsf_breadcrumb' );
320
-
321
- /* Thematic */
322
- add_action( 'thematic_belowheader','bsf_breadcrumb' );
323
-
324
- /* Thesis */
325
- add_action( 'thesis_hook_before_content','bsf_breadcrumb' );
326
-
327
- /* Genesis */
328
- remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
329
- add_action( 'genesis_before_loop', 'bsf_breadcrumb' );
330
- }
331
-
332
- function rdfa_admin_styles() {
333
- wp_enqueue_style( 'jquery_style' );
334
-
335
- wp_enqueue_script( 'rdfa-jquery' );
336
- wp_enqueue_script( 'rdfa-jquery-ui' );
337
- wp_enqueue_script( 'rdfa-jquery-accord' );
338
- }
339
- add_action( 'init', 'setup_bsf_breadcrumb' );
340
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,100 +1,106 @@
1
- === All In One Schema.org Rich Snippets ===
2
- Contributors: yawalkarm, brainstormforce
3
- 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.2
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perfectly with Google, Bing, Yahoo & Facebook.
12
-
13
- == Description ==
14
-
15
- What is a Rich Snippet?
16
-
17
- It is basically a short summary of your page in the search results of Google, Yahoo, Bing and sometimes in the News feed of Facebook in nice format with star ratings, author photo, image, etc.
18
-
19
- [See Examples of Rich Snippets Here.](http://www.seomoz.org/blog/schema-examples/ "Rich Snippets Examples")
20
-
21
- How does a Rich Snippet help?
22
-
23
- - It gives search engines only the important & precise information to display in search result snippets.
24
- - Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
25
- - [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
26
- - Helps you rank higher in search results
27
- - Helps Facebook display proper information when users share your links on Facebook
28
-
29
-
30
- Supported Content Types -
31
-
32
- This plugin supports almost all of the content types that are released by Schema.org at one place.
33
- Review, Event, Organization, People, Product, Recipe, Software Application, Video, etc.
34
-
35
-
36
- Future release would include -
37
-
38
- * Author
39
-
40
- == Installation ==
41
-
42
- = Through Dashboard =
43
-
44
- 1. Go to Plugins -> Add New -> Search for "All in One Schema.org Rich Snippets" Or Upload the plugins zip file
45
-
46
- = Through FTP =
47
- 1. Upload the plugin into `wp-content/plugins` directory
48
- 2. Activate the plugin through the 'Plugins' menu in WordPress
49
- 3. That's It.
50
-
51
- Now go and create a new post. There you will find a meta box, select the type of post from dropdown and fill out the details, publish the post.
52
-
53
- Google will start showing rich snippets in the search results, as soon as your post is crawled.
54
-
55
- You can test the rich snippet on Google Webmasters Rich Snippets Testing Tool
56
-
57
- == Frequently Asked Questions ==
58
-
59
- = What is a Rich Snippet? =
60
-
61
- It is basically a short summary of your page in the search results of Google, Yahoo, Bing and sometimes in the News feed of Facebook in nice format with star ratings, author photo, image, etc.
62
-
63
- = How does a Rich Snippet help? =
64
-
65
- - It gives search engines only the important & precise information to display in search result snippets.
66
- - Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
67
- - [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
68
- - Helps you rank higher in search results
69
- - Helps Facebook display proper information when users share your links on Facebook
70
-
71
- = Which Content Types are Supported? =
72
-
73
- This plugin currently supports almost all of the content types that are released by Schema.org at one place.
74
- Review, Event, Organization, People, Product, Recipe, Software Application, Video, etc.
75
-
76
- == Screenshots ==
77
-
78
- 1. Meta box in post-new under the editor screen.
79
-
80
- 2. Select content type from dropdown
81
-
82
- 3. Fill the details as much as you can
83
-
84
- 4. Test the post or page URL in Google Rich Snippets Testing
85
-
86
- == Changelog ==
87
- = 1.0.2 =
88
- * Added: RDFa Breadcrumbs Plugin is now a part of All in One Schema.org Rich Snippets !
89
- * Added: Star rating and review for recipe
90
- * Bug fixes for recipe type
91
- * Bug fix on post update
92
-
93
- = 1.0.1 =
94
- * Minor Bugs Fixes
95
-
96
- = 1.0 =
97
- * Initial Release.
98
-
99
- == Upgrade Notice ==
100
- Please update your plugin, to keep your site updated and secured !
 
 
 
 
 
 
1
+ === All In One Schema.org Rich Snippets ===
2
+ Contributors: yawalkarm, brainstormforce
3
+ 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.3
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perfectly with Google, Bing, Yahoo & Facebook.
12
+
13
+ == Description ==
14
+
15
+ What is a Rich Snippet?
16
+
17
+ It is basically a short summary of your page in the search results of Google, Yahoo, Bing and sometimes in the News feed of Facebook in nice format with star ratings, author photo, image, etc.
18
+
19
+ [See Examples of Rich Snippets Here.](http://www.seomoz.org/blog/schema-examples/ "Rich Snippets Examples")
20
+
21
+ How does a Rich Snippet help?
22
+
23
+ - It gives search engines only the important & precise information to display in search result snippets.
24
+ - Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
25
+ - [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
26
+ - Helps you rank higher in search results
27
+ - Helps Facebook display proper information when users share your links on Facebook
28
+
29
+
30
+ Supported Content Types -
31
+
32
+ This plugin supports almost all of the content types that are released by Schema.org at one place.
33
+ Review, Event, Organization, People, Product, Recipe, Software Application, Video, etc.
34
+
35
+
36
+ Future release would include -
37
+ * Breadcrumbs
38
+ * Author
39
+
40
+ == Installation ==
41
+
42
+ = Through Dashboard =
43
+
44
+ 1. Go to Plugins -> Add New -> Search for "All in One Schema.org Rich Snippets" Or Upload the plugins zip file
45
+
46
+ = Through FTP =
47
+ 1. Upload the plugin into `wp-content/plugins` directory
48
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
49
+ 3. That's It.
50
+
51
+ Now go and create a new post. There you will find a meta box, select the type of post from dropdown and fill out the details, publish the post.
52
+
53
+ Google will start showing rich snippets in the search results, as soon as your post is crawled.
54
+
55
+ You can test the rich snippet on Google Webmasters Rich Snippets Testing Tool
56
+
57
+ == Frequently Asked Questions ==
58
+
59
+ = What is a Rich Snippet? =
60
+
61
+ It is basically a short summary of your page in the search results of Google, Yahoo, Bing and sometimes in the News feed of Facebook in nice format with star ratings, author photo, image, etc.
62
+
63
+ = How does a Rich Snippet help? =
64
+
65
+ - It gives search engines only the important & precise information to display in search result snippets.
66
+ - Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
67
+ - [See what difference it makes](http://dashburst.com/google-search-what-are-rich-snippets/ "See the difference") in CTR (Click Through Rate)
68
+ - Helps you rank higher in search results
69
+ - Helps Facebook display proper information when users share your links on Facebook
70
+
71
+ = Which Content Types are Supported? =
72
+
73
+ This plugin currently supports almost all of the content types that are released by Schema.org at one place.
74
+ Review, Event, Organization, People, Product, Recipe, Software Application, Video, etc.
75
+
76
+ == Screenshots ==
77
+
78
+ 1. Meta box in post-new under the editor screen.
79
+
80
+ 2. Select content type from dropdown
81
+
82
+ 3. Fill the details as much as you can
83
+
84
+ 4. Test the post or page URL in Google Rich Snippets Testing
85
+
86
+ == Changelog ==
87
+ = 1.0.3 =
88
+ * Clean up the code
89
+ * Bug fix on plugin activation
90
+ * Bug fix - error on editing theme and plugin files.
91
+ * Removed : Breadcrumbs
92
+
93
+ = 1.0.2 =
94
+ * Added: RDFa Breadcrumbs Plugin is now a part of All in One Schema.org Rich Snippets !
95
+ * Added: Star rating and review for recipe
96
+ * Bug fixes for recipe type
97
+ * Bug fix on post update
98
+
99
+ = 1.0.1 =
100
+ * Minor Bugs Fixes
101
+
102
+ = 1.0 =
103
+ * Initial Release.
104
+
105
+ == Upgrade Notice ==
106
+ Note: This is a security release. Please update your plugin immediately to keep your WordPress secure.