Version Description
- Fix: WooCommerce Support Added
Download this release
Release Info
Developer | Nikschavan |
Plugin | All In One Schema Rich Snippets |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- admin/index.php +45 -2
- index.php +1 -1
- meta-boxes.php +12 -2
- readme.txt +4 -2
admin/index.php
CHANGED
@@ -21,6 +21,7 @@ add_action('admin_print_scripts', 'add_the_script');
|
|
21 |
//The Main Admin Dashboard for Rich Snippets Plugin
|
22 |
function rich_snippet_dashboard() {
|
23 |
$plugins_url = plugins_url();
|
|
|
24 |
$args_review = get_option('bsf_review');
|
25 |
$args_event = get_option('bsf_event');
|
26 |
$args_person = get_option('bsf_person');
|
@@ -29,7 +30,13 @@ function rich_snippet_dashboard() {
|
|
29 |
$args_soft = get_option('bsf_software');
|
30 |
$args_video = get_option('bsf_video');
|
31 |
$args_article = get_option('bsf_article');
|
32 |
-
$args_service = get_option('bsf_service');
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
if(isset($args_event["event_desc"]) ) {
|
34 |
$event_desc = $args_event["event_desc"];
|
35 |
}
|
@@ -617,7 +624,29 @@ function rich_snippet_dashboard() {
|
|
617 |
</div>
|
618 |
|
619 |
</div>
|
620 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
621 |
echo '
|
622 |
<script src="'.plugin_dir_url( __FILE__ ).'js/jquery.easytabs.min.js'.'"></script>
|
623 |
<script src="'.plugin_dir_url( __FILE__ ).'js/jquery.hashchange.min.js'.'"></script>
|
@@ -643,6 +672,20 @@ function rich_snippet_dashboard() {
|
|
643 |
</script>';
|
644 |
}
|
645 |
// Update options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
if(isset($_POST['item_submit']))
|
647 |
{
|
648 |
foreach(array('review_title','item_reviewer','review_date','item_name','item_rating') as $option)
|
21 |
//The Main Admin Dashboard for Rich Snippets Plugin
|
22 |
function rich_snippet_dashboard() {
|
23 |
$plugins_url = plugins_url();
|
24 |
+
$args_woocom = get_option('bsf_woocom_setting');
|
25 |
$args_review = get_option('bsf_review');
|
26 |
$args_event = get_option('bsf_event');
|
27 |
$args_person = get_option('bsf_person');
|
30 |
$args_soft = get_option('bsf_software');
|
31 |
$args_video = get_option('bsf_video');
|
32 |
$args_article = get_option('bsf_article');
|
33 |
+
$args_service = get_option('bsf_service');
|
34 |
+
|
35 |
+
$woo_setting = '';
|
36 |
+
if( !empty( get_option("bsf_woocom_setting" ) ) ) {
|
37 |
+
$woo_setting = "Checked";
|
38 |
+
}
|
39 |
+
|
40 |
if(isset($args_event["event_desc"]) ) {
|
41 |
$event_desc = $args_event["event_desc"];
|
42 |
}
|
624 |
</div>
|
625 |
|
626 |
</div>
|
627 |
+
<div class="postbox bsf-woocommerce-setting" style=" width: 36%; float: right; ">
|
628 |
+
<h3 class="get_in_touch"><p>'.__("WooCommerce Configuration","rich-snippets").'</p></h3>
|
629 |
+
<div class="inside">
|
630 |
+
<form id="bsf_css_editor" method="post" action="">
|
631 |
+
<p> '.__( 'WooCommerce comes with Schema.org code by default and using our plugin on product pages does not make
|
632 |
+
much sense. If you could still like to enable our plugin on WooCommerce products, please enable this option..', 'rich-snippets' ).' </p>
|
633 |
+
<table class="bsf_metabox" > <input type="hidden" name="site_url" value="'.site_url().'" /> </p>
|
634 |
+
<tr>
|
635 |
+
<td>
|
636 |
+
<input type="checkbox" name="woocommerce_option" id="woocommerce_option" value="1" '.$woo_setting.' />
|
637 |
+
<label for="woocommerce_option">Enable Schema</label>
|
638 |
+
</td>
|
639 |
+
</tr>
|
640 |
+
<tr>
|
641 |
+
<td>
|
642 |
+
<input type="submit" class="button-primary" name="setting_submit" value="'.__("Update ").'"/>
|
643 |
+
</td>
|
644 |
+
</tr>
|
645 |
+
</table>
|
646 |
+
</form>
|
647 |
+
</div>
|
648 |
+
</div>
|
649 |
+
</div>';
|
650 |
echo '
|
651 |
<script src="'.plugin_dir_url( __FILE__ ).'js/jquery.easytabs.min.js'.'"></script>
|
652 |
<script src="'.plugin_dir_url( __FILE__ ).'js/jquery.hashchange.min.js'.'"></script>
|
672 |
</script>';
|
673 |
}
|
674 |
// Update options
|
675 |
+
|
676 |
+
if(isset($_POST['setting_submit']))
|
677 |
+
{
|
678 |
+
$args = null;
|
679 |
+
if(isset($_POST["woocommerce_option"]))
|
680 |
+
{
|
681 |
+
$args = true;
|
682 |
+
}
|
683 |
+
else {
|
684 |
+
$args = false;
|
685 |
+
}
|
686 |
+
$status = update_option('bsf_woocom_setting',$args);
|
687 |
+
displayStatus($status);
|
688 |
+
}
|
689 |
if(isset($_POST['item_submit']))
|
690 |
{
|
691 |
foreach(array('review_title','item_reviewer','review_date','item_name','item_rating') as $option)
|
index.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.brainstormforce.com
|
|
5 |
Author: Brainstorm Force
|
6 |
Author URI: https://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.4.
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
5 |
Author: Brainstorm Force
|
6 |
Author URI: https://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.4.3
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
meta-boxes.php
CHANGED
@@ -4,8 +4,18 @@ function bsf_metaboxes( array $meta_boxes ) {
|
|
4 |
// Start with an underscore to hide fields from custom fields list
|
5 |
$prefix = '_bsf_';
|
6 |
$post_types=get_post_types('','names');
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
$meta_boxes[] = array(
|
10 |
'id' => 'review_metabox',
|
11 |
'title' => __('Configure Rich Snippet','rich-snippets'),
|
4 |
// Start with an underscore to hide fields from custom fields list
|
5 |
$prefix = '_bsf_';
|
6 |
$post_types=get_post_types('','names');
|
7 |
+
if( empty( get_option("bsf_woocom_setting" ) ) ) {
|
8 |
+
|
9 |
+
$woocommerce_post_type = array( "product", "product_variation", "shop_order" , "shop_order_refund", "shop_coupon", "shop_webhook" );
|
10 |
+
$required_post_type = array_diff( $post_types, $woocommerce_post_type );
|
11 |
+
|
12 |
+
}
|
13 |
+
else {
|
14 |
+
|
15 |
+
$required_post_type = $post_types;
|
16 |
+
|
17 |
+
}
|
18 |
+
|
19 |
$meta_boxes[] = array(
|
20 |
'id' => 'review_metabox',
|
21 |
'title' => __('Configure Rich Snippet','rich-snippets'),
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.brainstormforce.com
|
|
4 |
Tags: Review, Event, People, Product, Recipe, Software Application, Video, Article, rdfa, rich snippet, schema.org, schema, microdata, microformat, SERP, Google, Yahoo, Bing
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.7.3
|
7 |
-
Stable tag: 1.4.
|
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.
|
@@ -77,8 +77,10 @@ Review, Event, People, Product, Recipe, Software Application, Video, Articles et
|
|
77 |
4. Test the post or page URL in Google Rich Snippets Testing
|
78 |
|
79 |
== Changelog ==
|
|
|
|
|
80 |
|
81 |
-
= 1.4.2
|
82 |
* Improvement: Added company/organization and address in people schema.
|
83 |
* Improvement: Added nutrition & ingredients in recipe schema.
|
84 |
* Improvement: Added software image & operating system in software application schema.
|
4 |
Tags: Review, Event, People, Product, Recipe, Software Application, Video, Article, rdfa, rich snippet, schema.org, schema, microdata, microformat, SERP, Google, Yahoo, Bing
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.7.3
|
7 |
+
Stable tag: 1.4.3
|
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.
|
77 |
4. Test the post or page URL in Google Rich Snippets Testing
|
78 |
|
79 |
== Changelog ==
|
80 |
+
= 1.4.3 =
|
81 |
+
* Fix: WooCommerce Support Added
|
82 |
|
83 |
+
= 1.4.2
|
84 |
* Improvement: Added company/organization and address in people schema.
|
85 |
* Improvement: Added nutrition & ingredients in recipe schema.
|
86 |
* Improvement: Added software image & operating system in software application schema.
|