Version Description
- Fix: PHP fatal error to older version of PHP
Download this release
Release Info
Developer | Nikschavan |
Plugin | All In One Schema Rich Snippets |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- README.md +6 -1
- admin/index.php +10 -5
- index.php +2 -1
- meta-boxes.php +10 -3
- readme.txt +5 -2
- settings.php +17 -0
README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
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.
|
@@ -71,6 +71,11 @@ This plugin currently supports almost all of the content types that are released
|
|
71 |
Review, Event, People, Product, Recipe, Software Application, Video, Articles etc.
|
72 |
|
73 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
### 1.4.2 ###
|
76 |
* Improvement: Added company/organization and address in people 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.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.
|
71 |
Review, Event, People, Product, Recipe, Software Application, Video, Articles etc.
|
72 |
|
73 |
## Changelog ##
|
74 |
+
### 1.4.4 ###
|
75 |
+
* Fix: PHP fatal error to older version of PHP
|
76 |
+
|
77 |
+
### 1.4.3 ###
|
78 |
+
* Fix: WooCommerce Support Added
|
79 |
|
80 |
### 1.4.2 ###
|
81 |
* Improvement: Added company/organization and address in people schema.
|
admin/index.php
CHANGED
@@ -21,7 +21,12 @@ 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 |
-
|
|
|
|
|
|
|
|
|
|
|
25 |
$args_review = get_option('bsf_review');
|
26 |
$args_event = get_option('bsf_event');
|
27 |
$args_person = get_option('bsf_person');
|
@@ -33,7 +38,7 @@ function rich_snippet_dashboard() {
|
|
33 |
$args_service = get_option('bsf_service');
|
34 |
|
35 |
$woo_setting = '';
|
36 |
-
if( !empty(
|
37 |
$woo_setting = "Checked";
|
38 |
}
|
39 |
|
@@ -628,13 +633,12 @@ function rich_snippet_dashboard() {
|
|
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
|
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
|
638 |
</td>
|
639 |
</tr>
|
640 |
<tr>
|
@@ -683,6 +687,7 @@ if(isset($_POST['setting_submit']))
|
|
683 |
else {
|
684 |
$args = false;
|
685 |
}
|
|
|
686 |
$status = update_option('bsf_woocom_setting',$args);
|
687 |
displayStatus($status);
|
688 |
}
|
21 |
//The Main Admin Dashboard for Rich Snippets Plugin
|
22 |
function rich_snippet_dashboard() {
|
23 |
$plugins_url = plugins_url();
|
24 |
+
if ( !get_option( 'bsf_woocom_init_setting' ) ) {
|
25 |
+
$args_woocom = true;
|
26 |
+
}else {
|
27 |
+
$args_woocom = get_option('bsf_woocom_setting');
|
28 |
+
}
|
29 |
+
|
30 |
$args_review = get_option('bsf_review');
|
31 |
$args_event = get_option('bsf_event');
|
32 |
$args_person = get_option('bsf_person');
|
38 |
$args_service = get_option('bsf_service');
|
39 |
|
40 |
$woo_setting = '';
|
41 |
+
if( !empty( $args_woocom ) ) {
|
42 |
$woo_setting = "Checked";
|
43 |
}
|
44 |
|
633 |
<h3 class="get_in_touch"><p>'.__("WooCommerce Configuration","rich-snippets").'</p></h3>
|
634 |
<div class="inside">
|
635 |
<form id="bsf_css_editor" method="post" action="">
|
636 |
+
<p> '.__( 'WooCommerce comes with Schema.org code by default and using our plugin on WooCommerce product pages does will add duplicate schema so it is not recommended. If you could still like to enable our plugin on WooCommerce products, please enable this option.', 'rich-snippets' ).' </p>
|
|
|
637 |
<table class="bsf_metabox" > <input type="hidden" name="site_url" value="'.site_url().'" /> </p>
|
638 |
<tr>
|
639 |
<td>
|
640 |
<input type="checkbox" name="woocommerce_option" id="woocommerce_option" value="1" '.$woo_setting.' />
|
641 |
+
<label for="woocommerce_option">Enable schema on WooCommerce products</label>
|
642 |
</td>
|
643 |
</tr>
|
644 |
<tr>
|
687 |
else {
|
688 |
$args = false;
|
689 |
}
|
690 |
+
update_option( 'bsf_woocom_init_setting', 'done' );
|
691 |
$status = update_option('bsf_woocom_setting',$args);
|
692 |
displayStatus($status);
|
693 |
}
|
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 |
*/
|
@@ -147,6 +147,7 @@ if ( !class_exists( "RichSnippets" ) )
|
|
147 |
}
|
148 |
function register_bsf_settings() {
|
149 |
require_once(plugin_dir_path( __FILE__ ).'settings.php');
|
|
|
150 |
add_review_option();
|
151 |
add_event_option();
|
152 |
add_person_option();
|
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.4
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
147 |
}
|
148 |
function register_bsf_settings() {
|
149 |
require_once(plugin_dir_path( __FILE__ ).'settings.php');
|
150 |
+
add_woo_commerce_option();
|
151 |
add_review_option();
|
152 |
add_event_option();
|
153 |
add_person_option();
|
meta-boxes.php
CHANGED
@@ -2,9 +2,16 @@
|
|
2 |
// Metabox for review
|
3 |
function bsf_metaboxes( array $meta_boxes ) {
|
4 |
// Start with an underscore to hide fields from custom fields list
|
5 |
-
$prefix
|
6 |
-
$post_types=get_post_types('','names');
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 );
|
2 |
// Metabox for review
|
3 |
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 |
+
if ( !get_option( 'bsf_woocom_init_setting' ) ) {
|
9 |
+
$woo_settings = true;
|
10 |
+
}else {
|
11 |
+
$woo_settings = get_option( 'bsf_woocom_setting' );
|
12 |
+
}
|
13 |
+
|
14 |
+
if( empty( $woo_settings ) ) {
|
15 |
|
16 |
$woocommerce_post_type = array( "product", "product_variation", "shop_order" , "shop_order_refund", "shop_coupon", "shop_webhook" );
|
17 |
$required_post_type = array_diff( $post_types, $woocommerce_post_type );
|
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,10 +77,13 @@ 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 |
= 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.
|
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.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 |
4. Test the post or page URL in Google Rich Snippets Testing
|
78 |
|
79 |
== Changelog ==
|
80 |
+
= 1.4.4 =
|
81 |
+
* Fix: PHP fatal error to older version of PHP
|
82 |
+
|
83 |
= 1.4.3 =
|
84 |
* Fix: WooCommerce Support Added
|
85 |
|
86 |
+
= 1.4.2 =
|
87 |
* Improvement: Added company/organization and address in people schema.
|
88 |
* Improvement: Added nutrition & ingredients in recipe schema.
|
89 |
* Improvement: Added software image & operating system in software application schema.
|
settings.php
CHANGED
@@ -148,4 +148,21 @@ function add_color_option()
|
|
148 |
);
|
149 |
add_option('bsf_custom',$color_opt);
|
150 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
?>
|
148 |
);
|
149 |
add_option('bsf_custom',$color_opt);
|
150 |
}
|
151 |
+
|
152 |
+
// Function for customization
|
153 |
+
function add_woo_commerce_option()
|
154 |
+
{
|
155 |
+
if ( !get_option( 'bsf_woocom_init_setting' ) ) {
|
156 |
+
|
157 |
+
$woo_opt = false;
|
158 |
+
|
159 |
+
if ( get_option( 'bsf_custom' ) ) {
|
160 |
+
$woo_opt = true;
|
161 |
+
}
|
162 |
+
|
163 |
+
add_option('bsf_woocom_setting', $woo_opt);
|
164 |
+
add_option('bsf_woocom_init_setting', 'done');
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
?>
|