All In One Schema Rich Snippets - Version 1.5.2

Version Description

  • Fix: Frontend Summary box structure validation issue.
  • Fix: Editor object undefined issue lead js issue in the page.
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

README.md DELETED
@@ -1,183 +0,0 @@
1
- # All In One Schema.org Rich Snippets #
2
- **Contributors:** brainstormforce, yawalkarm
3
- **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.5.1
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.
11
-
12
- ## Description ##
13
-
14
- ### What is a Rich Snippet? ###
15
- 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.
16
- [See Examples of Rich Snippets Here.](https://www.brainstormforce.com/schema-rich-snippets/ "Rich Snippets Examples")
17
-
18
- ### How does a Rich Snippet help? ###
19
- - It gives search engines only the important & precise information to display in search result snippets.
20
- - Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
21
- - [See what difference it makes](https://www.brainstormforce.com/schema-rich-snippets/ "See the difference") in CTR (Click Through Rate)
22
- - Helps you rank higher in search results
23
- - Helps Facebook display proper information when users share your links on Facebook
24
- > **Curious, how does this plugin work?**
25
-
26
-
27
- ### Supported Content Types - ###
28
- This plugin supports the following types of Schemas:
29
- * Review
30
- * Event
31
- * People
32
- * Product
33
- * Recipe
34
- * Software Application
35
- * Video
36
- * Articles
37
-
38
- ### Future release would include - ###
39
- * Breadcrumbs
40
- * Local Business
41
- * Books
42
- ### Want to contribute to the plugin? ###
43
- **You may now contribute to the plugin on Github:** [All in one Schema.org Rich Snippets on Github](https://github.com/brainstormforce/All-In-One-Schema.org-Rich-Snippets "Contribute on Github")
44
-
45
- ## Installation ##
46
-
47
- ### Through Dashboard ###
48
- 1. Go to Plugins -> Add New -> Search for "All in One Schema.org Rich Snippets" Or Upload the plugins zip file
49
- ### Through FTP ###
50
- 1. Upload the plugin into `wp-content/plugins` directory
51
- 2. Activate the plugin through the 'Plugins' menu in WordPress
52
- 3. That's It.
53
- 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.
54
- Google will start showing rich snippets in the search results, as soon as your post is crawled.
55
-
56
- You can test the rich snippet on Google Webmasters Rich Snippets Testing Tool
57
-
58
- ## Frequently Asked Questions ##
59
-
60
- ### What is a Rich Snippet? ###
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
- ### How does a Rich Snippet help? ###
63
- - It gives search engines only the important & precise information to display in search result snippets.
64
- - Rich Snippets are very interactive (photos, star ratings, price, author, etc.) to let you stand out from competition
65
- - [See what difference it makes](https://www.brainstormforce.com/schema-rich-snippets/ "See the difference") in CTR (Click Through Rate)
66
- - Helps you rank higher in search results
67
- - Helps Facebook display proper information when users share your links on Facebook
68
-
69
- ### Which Content Types are Supported? ###
70
- This plugin currently supports almost all of the content types that are released by Schema.org at one place.
71
- Review, Event, People, Product, Recipe, Software Application, Video, Articles etc.
72
-
73
- ## Changelog ##
74
-
75
- ### 1.5.1 ###
76
- * Fix: Plugin outputting extra output causing Ajax calls to break after last update.
77
-
78
- ### 1.5.0 ###
79
- * Improvement: Improved overall the security of the plugin by using sanitization and escaping the attributes wherever possible, checking nounce and user capabilities before any actions are performed.
80
- * Fix: XSS Vulnerability in the settings page, Thanks for the report Neven Biruski (DefenseCode).
81
- * Fix: Missing closing div tag in the generated schema markup breaking style for some themes.
82
- * Fix: Load the external scripts without protocol to prevent it from breaking on https sites.
83
-
84
- ### 1.4.4 ###
85
- * Fix: PHP fatal error to older version of PHP
86
-
87
- ### 1.4.3 ###
88
- * Fix: WooCommerce Support Added
89
-
90
- ### 1.4.2 ###
91
- * Improvement: Added company/organization and address in people schema.
92
- * Improvement: Added nutrition & ingredients in recipe schema.
93
- * Improvement: Added software image & operating system in software application schema.
94
- * Improvement: Added video description in software application schema.
95
- * Improvement: Added author, publisher - organization and publisher logo in article schema.
96
- * Improvement: Added provider location, provider location image, and telephone in service schema.
97
- * Improvement: Changes admin bar test rich snippet redirect link to the structured data testing tool.
98
- * Fix: removed all error in schema according to structured data testing tool.
99
-
100
- ### 1.4.1 ###
101
- * Fix: Compatibility fix WordPress 4.7.
102
-
103
- ### 1.4.0 ###
104
- * Added new service schema
105
- * Minor CSS fixes
106
-
107
- ### 1.3.0 ###
108
- * Improvement: Updated markup data to meet Google Structured data guidelines
109
- * Fixed: WordPress 4.4 compatibility
110
- * Fixed: Admin UI on small screens
111
-
112
- ### 1.2.0 ###
113
- * Improvement: WordPress 4.0 compatibility
114
- * Fixed: Colorpicker breaking other plugins colorpicker settings.
115
-
116
- ### 1.1.9 ###
117
- * Fixed: Image uploading in meta issue resolved.
118
- * Fixed: Compatibility with WordPress 3.9
119
-
120
- ### 1.1.8 ###
121
- * Fixed: CSS and JS now loads on the page / post where rich snippets are configured.
122
-
123
- ### 1.1.7 ###
124
- * Improvement: Added "Test Rich Snippets" menu in admin bar for testing rich snippets in Google Webmasters Tools
125
- * Fixed: retina.js issue resolved
126
- * Removed unnecessary code
127
-
128
- ### 1.1.6 ###
129
- * Improvement: Compatibility with WordPres 3.8
130
- * Fixed: Admin CSS breaking tabs in WP 3.8
131
- * Added - reference post url field in "contact developers" form on settings page
132
-
133
- ### 1.1.5 ###
134
- * Improvement: Replaced rating 'count' with 'votes' on products - as directed by Google
135
- * Fixed: Article snippet not displaying accurate when snippet title is blank
136
- * Fixed: Recipe string 'Published on' can be changed.
137
-
138
- ### 1.1.4 ###
139
- * Fixed: Illegal string offset `user_rating` Warning
140
-
141
- ### 1.1.3 ###
142
- * Improvement : Network Activation
143
-
144
- ### 1.1.2 ###
145
- * Fixed: Edit media functionality.
146
-
147
- ### 1.1.1 ###
148
- * Added: Article type
149
- * Added: Compatibility with WooThemes Plugins and themes
150
- * Added: New Media Manager for uploading images in metabox
151
-
152
- ### 1.1.0 ###
153
- * Added: Admin options
154
- * Fixed: Ratings on recipe, products and software application
155
- * Improvement: Admin options for customizing everything
156
- * Improvement: New snippet box design with responsive layout
157
-
158
- ### 1.0.4 ###
159
- * Fixed: Rating on Comments
160
- * Fixed: On deleting any deactivated plugin
161
- * Fixed: Error message comming on commenting
162
- * Fixed: On post save draft
163
-
164
- ### 1.0.3 ###
165
- * Clean up the code
166
- * Fixed: Plugin activation error
167
- * Fixed: Error on editing theme and plugin files.
168
- * Removed : Breadcrumbs
169
-
170
- ### 1.0.2 ###
171
- * Added: RDFa Breadcrumbs Plugin is now a part of All in One Schema.org Rich Snippets !
172
- * Added: Star rating and review for recipe
173
- * Fized: Recipe type
174
- * Fixed: Post update error
175
-
176
- ### 1.0.1 ###
177
- * Minor Bugs Fixes
178
-
179
- ### 1.0 ###
180
- * Initial Release.
181
-
182
- ## Upgrade Notice ##
183
- **Note:** Minor bug fixes. Update the plugin to enjoy bug free blogging!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/css/style.css CHANGED
@@ -40,7 +40,7 @@ table.bsf_metabox .bsf_media_status .img_status .bsf_remove_file_button, table.b
40
  * Color picker
41
  */
42
  table.bsf_metabox .wp-color-result, table.bsf_metabox .wp-picker-input-wrap { vertical-align: middle; }
43
- table.bsf_metabox .wp-color-result, table.bsf_metabox .wp-picker-container { margin: 0 10px 0 0; width: 80px; height: 22px; display: block; box-shadow: none;}
44
  /**
45
  * Timepicker
46
  */
40
  * Color picker
41
  */
42
  table.bsf_metabox .wp-color-result, table.bsf_metabox .wp-picker-input-wrap { vertical-align: middle; }
43
+ table.bsf_metabox .wp-color-result, table.bsf_metabox .wp-picker-container { margin: 0 10px 0 0; width: 102px; margin-bottom: 10px; height: 22px; display: block; box-shadow: none;}
44
  /**
45
  * Timepicker
46
  */
css/style.css CHANGED
@@ -1,131 +1,102 @@
1
- @charset "utf-8";
2
- /* CSS Document For Styling the Rich Snippets Data*/
3
- table #tbl-rich-snippet {
4
- width:100%;
5
- }
6
- tr .tbl-bsf-tr{
7
- border:1px dotted #ddd;
8
- }
9
- td .tbl-bdf-td{
10
- padding:5px;
11
- }
12
- .tbl-img{
13
- width:170px;
14
- }
15
- .tbl-addrs-tr{
16
- border:0px;
17
- }
18
- .rating-value {
19
- display:none;
20
- }
21
- .rating-count {
22
- font-weight:bold;
23
- }
24
  #snippet-box {
25
- background: #F0F0F0;
26
- background: linear-gradient(top, #FFF 50%, #E7E7E7 100%);
27
- background: -o-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
28
- background: -moz-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
29
- background: -webkit-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
30
- background: -ms-linear-gradient(top, #FFF 50%, #E7E7E7 100%);
31
- border: 1px solid #ACACAC;
32
- font-family:inherit;
33
- font-size: 13px;
34
- padding: 0;
35
- margin: 0 0 15px 0;
36
- float: left;
37
- width: 600px;
38
- clear: both;
39
- box-sizing: content-box;
40
- }
41
- .snippet-markup {
42
- float: left;
43
- clear: both;
44
- width: 100%;
45
  }
46
  .snippet-title {
47
- font-family:inherit;
 
 
48
  font-size: 14px;
49
  font-weight: bold;
50
- background: #D5D2CA;
51
- background: linear-gradient(top, #D5D2CA 80%, #EBEAE8 100%);
52
- background: -o-linear-gradient(top, #D5D2CA 80%, #EBEAE8 100%);
53
- background: -moz-linear-gradient(top, #D5D2CA 80%, #EBEAE8 100%);
54
- background: -webkit-linear-gradient(top, #D5D2CA 0%, #EBEAE8 100%);
55
- background: -ms-linear-gradient(top, #D5D2CA 80%, #EBEAE8 100%);
56
  border-bottom: 1px solid #ACACAC;
57
  clear: both;
58
- padding: 0.5em 0 0.5em 1%;
59
  width: 100%;
60
- float: left;
61
- }
62
- .snippet-label {
63
- width: 25%;
64
- float: left;
65
- clear: both;
66
- text-align: right;
67
- font-size: 13px;
68
- font-weight: bold;
69
- margin: 0 2% 0 0;
70
- padding: 0.4em 2%;
71
- }
72
- .snippet-data {
73
- width: 65%;
74
- float: left;
75
- padding: 0.4em 2%;
76
- }
77
- .snippet-data-img {
78
- width: 56%;
79
- float: left;
80
- padding: 0.4em 2%;
81
  }
82
  .snippet-image {
83
- float: left;
84
- min-height: 190px;
85
- width: 200px;
 
86
  }
87
  .snippet-image img {
88
  border: 2px solid #FFF;
89
  box-shadow: none;
90
- /*box-shadow: 0px 0px 5px #D5D2CA;*/
91
- -webkit-transition: all 400ms ease-in;
92
- -moz-transition: all 400ms ease-in;
93
- -o-transition: all 400ms ease-in;
94
- transition: all 400ms ease-in;
95
  margin: 10px auto;
96
  display: block;
97
  }
98
- .snippet-map {
99
- width: 100%;
100
- height: 320px;
101
- border: 1px solid #CCC;
102
  }
103
- #snippet-box iframe {
104
- width: 90%;
105
- margin: 0 auto;
106
- display: block;
 
 
 
 
 
107
  }
108
- .ratings {
109
- float: right;
110
- margin-right: 10px;
 
 
111
  }
112
- .star-blocks {
113
- background:#FFF;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  }
115
- #dragContainer {
116
- top: 65px !important;
 
 
 
 
117
  }
118
- .aio-star
119
- {
120
- float: left;
121
- clear: none;
122
- color: rgb(255, 217, 13);
123
- text-shadow: 1px 1px 1px rgb(138, 127, 64);
124
- letter-spacing: 0.2em;
125
  }
126
  .star-rating-control {
127
- margin-top: 0.3em;
128
- float: left;
129
  }
130
  .star-img img {
131
  box-shadow: none;
@@ -133,58 +104,31 @@ td .tbl-bdf-td{
133
  border: none !important;
134
  padding: 0 !important;
135
  }
136
- .snippet-label-img {
137
- width: 37%;
138
- float: left;
139
- clear: right;
140
- text-align: right;
141
- font-size: 13px;
142
- font-weight: bold;
143
- margin: 0 1% 0 0;
144
- padding: 0.4em 1%;
145
  }
146
- .aio-info {
147
- width: 400px;
148
- float: left;
149
- }
150
- .snippet-clear { clear:both;}
151
- /*********************************************************** Media queries **********************************************/
152
- /* =Responsive Structure
153
- ----------------------------------------------- */
154
- @media (max-width: 855px)
155
- {
156
- #snippet-box {
157
- width:100%;
158
- }
159
- .snippet-title
160
- {
161
- width:96%;
162
  padding: 0.5em 0 0.5em 4%;
163
  }
164
  .snippet-image {
165
- min-height: 50px;
166
  margin: 0 0 15px 0;
167
  width: 100%;
168
- float: left;
169
- clear:both;
170
  }
171
- .aio-info
172
- {
173
  width: 100%;
174
- float:left;
175
  clear: both;
176
  }
177
- }
178
- @media (max-width: 650px)
179
- {
180
-
181
- }
182
- @media (max-width: 480px)
183
- {
184
- }
185
- @media (max-width: 450px)
186
- {
187
- }
188
- @media (max-width: 320px)
189
- {
190
- }
1
+ /* Snippet Box Architecture */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  #snippet-box {
3
+ background: #F5F5F5;
4
+ border: 1px solid #ACACAC;
5
+ font-family: inherit;
6
+ font-size: 13px;
7
+ padding: 0;
8
+ margin: 0 0 15px 0;
9
+ width: 100%;
10
+ max-width: 600px;
11
+ display: block;
 
 
 
 
 
 
 
 
 
 
 
12
  }
13
  .snippet-title {
14
+ display: block;
15
+ position: relative;
16
+ font-family: inherit;
17
  font-size: 14px;
18
  font-weight: bold;
19
+ background: #E4E4E4;
 
 
 
 
 
20
  border-bottom: 1px solid #ACACAC;
21
  clear: both;
22
+ padding: 0.5em 1em;
23
  width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
  .snippet-image {
26
+ min-height: 190px;
27
+ width: 200px;
28
+ display: inline-block;
29
+ vertical-align: top;
30
  }
31
  .snippet-image img {
32
  border: 2px solid #FFF;
33
  box-shadow: none;
 
 
 
 
 
34
  margin: 10px auto;
35
  display: block;
36
  }
37
+ .aio-info {
38
+ width: calc(100% - 200px);
39
+ display: inline-block;
40
+ vertical-align: top;
41
  }
42
+ .snippet-label-img {
43
+ width: 40%;
44
+ display: inline-block;
45
+ text-align: right;
46
+ font-size: 13px;
47
+ font-weight: bold;
48
+ margin: 0;
49
+ padding: 0.3em 0.5em;
50
+ vertical-align: top;
51
  }
52
+ .snippet-data-img {
53
+ width: 58%;
54
+ display: inline-block;
55
+ padding: 0.3em 0.5em;
56
+ vertical-align: top;
57
  }
58
+ .snippet-type-2 .aio-info {
59
+ width: 100%;
60
+ }
61
+ .snippet-type-2 .snippet-label-img {
62
+ width: 33%;
63
+ }
64
+ .snippet-type-2 .snippet-data-img {
65
+ width: 65%;
66
+ }
67
+ .snippet-clear {
68
+ clear:both;
69
+ }
70
+ .snippet-markup {
71
+ width: 100%;
72
+ display: block;
73
+ }
74
+ .snippet-label {
75
+ width: 33%;
76
+ display: inline-block;
77
+ text-align: right;
78
+ font-size: 13px;
79
+ font-weight: bold;
80
+ margin: 0;
81
+ padding: 0.3em 0.5em;
82
+ }
83
+ .snippet-data {
84
+ width: 65%;
85
+ display: inline-block;
86
+ padding: 0.3em 0.5em;
87
  }
88
+ /* Ratings */
89
+ .ratings {
90
+ position: absolute;
91
+ right: 1em;
92
+ top: 50%;
93
+ transform: translateY(-50%);
94
  }
95
+ .star-blocks {
96
+ background: transparent;
 
 
 
 
 
97
  }
98
  .star-rating-control {
99
+ margin-top: 0;
 
100
  }
101
  .star-img img {
102
  box-shadow: none;
104
  border: none !important;
105
  padding: 0 !important;
106
  }
107
+ .rating-count {
108
+ font-weight:bold;
 
 
 
 
 
 
 
109
  }
110
+ .rating-value {
111
+ display:none;
112
+ }
113
+
114
+ /* Unknown CSS */
115
+ #snippet-box iframe {
116
+ width: 90%;
117
+ margin: 0 auto;
118
+ display: block;
119
+ }
120
+
121
+ /* Responsive Structure */
122
+ @media (max-width: 768px) {
123
+ .snippet-title {
 
 
124
  padding: 0.5em 0 0.5em 4%;
125
  }
126
  .snippet-image {
 
127
  margin: 0 0 15px 0;
128
  width: 100%;
 
 
129
  }
130
+ .aio-info {
 
131
  width: 100%;
 
132
  clear: both;
133
  }
134
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
functions.php CHANGED
@@ -62,9 +62,10 @@ function display_rich_snippet($content) {
62
  {
63
  global $post;
64
 
65
- $args_review = get_option('bsf_review');
 
66
  $review = '';
67
- $review .= '<div id="snippet-box" style="background:'.esc_attr($args_color["snippet_box_bg"] ).'; color:'.esc_attr($args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr($args_color["snippet_border"] ).';">';
68
 
69
  if($args_review['review_title'] != "")
70
  $review .= '<div class="snippet-title" style="background:'.esc_attr($args_color["snippet_title_bg"] ).'; color:'.esc_attr($args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr($args_color["snippet_border"] ).';">'.esc_attr(stripslashes( $args_review['review_title'] ) ).'</div>';
@@ -128,7 +129,7 @@ function display_rich_snippet($content) {
128
 
129
  $event = '';
130
 
131
- $event .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
132
 
133
  if($args_event['snippet_title'] != "")
134
  $event .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_event['snippet_title'] ) ).'</div>';
@@ -301,7 +302,7 @@ function display_rich_snippet($content) {
301
 
302
  $people = '';
303
 
304
- $people .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
305
 
306
  if($args_person['snippet_title'] != "")
307
  $people .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_person['snippet_title'] ) ).'</div>';
@@ -404,7 +405,7 @@ function display_rich_snippet($content) {
404
  global $post;
405
  $args_product = get_option('bsf_product');
406
  $product = '';
407
- $product .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
408
  if($args_product['snippet_title'] != "")
409
  $product .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_product['snippet_title'] ) );
410
  $product .= bsf_do_rating();
@@ -514,7 +515,7 @@ function display_rich_snippet($content) {
514
  global $post;
515
  $recipe = '';
516
 
517
- $recipe .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
518
 
519
  $args_recipe = get_option('bsf_recipe');
520
 
@@ -622,7 +623,7 @@ function display_rich_snippet($content) {
622
  $args_soft = get_option('bsf_software');
623
  $software = '';
624
 
625
- $software .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
626
  if($args_soft['snippet_title'] != "" )
627
  $software .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_soft['snippet_title'] ) );
628
 
@@ -734,7 +735,7 @@ function display_rich_snippet($content) {
734
  $args_video = get_option('bsf_video');
735
  $video = '';
736
 
737
- $video .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
738
 
739
  if($args_video['snippet_title'] != "" )
740
  $video .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_video['snippet_title'] ) ).'</div>';
@@ -749,10 +750,10 @@ function display_rich_snippet($content) {
749
  $video_date = get_post_meta( $post->ID, '_bsf_video_date', true );
750
  if(trim($video_url) != "")
751
  {
752
- $video .= '<div class="snippet-image"><a href="'.esc_url( $video_url ).'"><img height="180" src="'.esc_url( $video_thumb ).'" alt="'.esc_attr( $video_title ).'"></a></div>';
753
  }
754
  elseif (trim($video_emb_url) != "") {
755
- $video .= '<div class="snippet-image"><a href="'.esc_url( $video_emb_url ).'"><img height="180" src="'.esc_url( $video_thumb ).'" " alt="'.esc_attr( $video_title ).'"></a></div>';
756
  }
757
  else
758
  {
@@ -762,7 +763,7 @@ function display_rich_snippet($content) {
762
  });
763
  </script>';
764
  }
765
- $video .= '<div class="aio-info" style="padding-top:25px">';
766
  if(trim($video_title) != "")
767
  {
768
  if($args_video['video_title'] != "" )
@@ -815,7 +816,7 @@ function display_rich_snippet($content) {
815
  $article_publisher_logo = get_post_meta( $post->ID, '_bsf_article_publisher_logo', true );
816
 
817
 
818
- $article .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
819
  if($args_article['snippet_title'] != "" )
820
  {
821
  $article .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_article['snippet_title'] ) );
@@ -869,9 +870,10 @@ function display_rich_snippet($content) {
869
  if(trim($article_publisher) != "")
870
  {
871
  if($args_article['article_publisher'] != "")
872
- $article .= '<div class="snippet-label-img">'.esc_attr( stripslashes( $args_article['article_publisher'] ) ).'</div>';
873
 
874
  $article .= '<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">';
 
 
875
 
876
  $article .= '<div class="snippet-data-img">
877
  <span itemprop="name">'.esc_attr( $article_publisher ).'</span>
@@ -884,7 +886,7 @@ function display_rich_snippet($content) {
884
  if($args_article['article_publisher_logo'] != "")
885
  $article .= '<div class="snippet-label-img">'.esc_attr( stripslashes( $args_article['article_publisher_logo'] ) ).'</div>';
886
 
887
- $article .= '<div class="snippet-data-img" itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">';
888
  $article .= '<img width="180" src="'.esc_url( $article_publisher_logo ).'"/>';
889
  $article .= '<meta itemprop="url" content="'.esc_attr( $article_publisher_logo ).'">';
890
  $article .= '<meta itemprop="width" content="800">';
@@ -938,7 +940,7 @@ function display_rich_snippet($content) {
938
  $service_url_link = $args_service['service_url_link'] != ''? $args_service['service_url_link'] : "Click Here For More Info";
939
 
940
 
941
- $service .= '<div id="snippet-box" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
942
  if($args_service['snippet_title'] != "" )
943
  {
944
  $service .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_service['snippet_title'] ) );
62
  {
63
  global $post;
64
 
65
+ $args_review = get_option('bsf_review');
66
+
67
  $review = '';
68
+ $review .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr($args_color["snippet_box_bg"] ).'; color:'.esc_attr($args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr($args_color["snippet_border"] ).';">';
69
 
70
  if($args_review['review_title'] != "")
71
  $review .= '<div class="snippet-title" style="background:'.esc_attr($args_color["snippet_title_bg"] ).'; color:'.esc_attr($args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr($args_color["snippet_border"] ).';">'.esc_attr(stripslashes( $args_review['review_title'] ) ).'</div>';
129
 
130
  $event = '';
131
 
132
+ $event .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
133
 
134
  if($args_event['snippet_title'] != "")
135
  $event .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_event['snippet_title'] ) ).'</div>';
302
 
303
  $people = '';
304
 
305
+ $people .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
306
 
307
  if($args_person['snippet_title'] != "")
308
  $people .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_person['snippet_title'] ) ).'</div>';
405
  global $post;
406
  $args_product = get_option('bsf_product');
407
  $product = '';
408
+ $product .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
409
  if($args_product['snippet_title'] != "")
410
  $product .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_product['snippet_title'] ) );
411
  $product .= bsf_do_rating();
515
  global $post;
516
  $recipe = '';
517
 
518
+ $recipe .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
519
 
520
  $args_recipe = get_option('bsf_recipe');
521
 
623
  $args_soft = get_option('bsf_software');
624
  $software = '';
625
 
626
+ $software .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
627
  if($args_soft['snippet_title'] != "" )
628
  $software .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_soft['snippet_title'] ) );
629
 
735
  $args_video = get_option('bsf_video');
736
  $video = '';
737
 
738
+ $video .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
739
 
740
  if($args_video['snippet_title'] != "" )
741
  $video .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_video['snippet_title'] ) ).'</div>';
750
  $video_date = get_post_meta( $post->ID, '_bsf_video_date', true );
751
  if(trim($video_url) != "")
752
  {
753
+ $video .= '<div class="snippet-image"><a href="'.esc_url( $video_url ).'"><img width="180" src="'.esc_url( $video_thumb ).'" alt="'.esc_attr( $video_title ).'"></a></div>';
754
  }
755
  elseif (trim($video_emb_url) != "") {
756
+ $video .= '<div class="snippet-image"><a href="'.esc_url( $video_emb_url ).'"><img width="180" src="'.esc_url( $video_thumb ).'" " alt="'.esc_attr( $video_title ).'"></a></div>';
757
  }
758
  else
759
  {
763
  });
764
  </script>';
765
  }
766
+ $video .= '<div class="aio-info" style="padding-top:10px">';
767
  if(trim($video_title) != "")
768
  {
769
  if($args_video['video_title'] != "" )
816
  $article_publisher_logo = get_post_meta( $post->ID, '_bsf_article_publisher_logo', true );
817
 
818
 
819
+ $article .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
820
  if($args_article['snippet_title'] != "" )
821
  {
822
  $article .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_article['snippet_title'] ) );
870
  if(trim($article_publisher) != "")
871
  {
872
  if($args_article['article_publisher'] != "")
 
873
 
874
  $article .= '<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">';
875
+
876
+ $article .= '<div class="snippet-label-img">'.esc_attr( stripslashes( $args_article['article_publisher'] ) ).'</div>';
877
 
878
  $article .= '<div class="snippet-data-img">
879
  <span itemprop="name">'.esc_attr( $article_publisher ).'</span>
886
  if($args_article['article_publisher_logo'] != "")
887
  $article .= '<div class="snippet-label-img">'.esc_attr( stripslashes( $args_article['article_publisher_logo'] ) ).'</div>';
888
 
889
+ $article .= '<div class="snippet-data-img publisher-logo" itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">';
890
  $article .= '<img width="180" src="'.esc_url( $article_publisher_logo ).'"/>';
891
  $article .= '<meta itemprop="url" content="'.esc_attr( $article_publisher_logo ).'">';
892
  $article .= '<meta itemprop="width" content="800">';
940
  $service_url_link = $args_service['service_url_link'] != ''? $args_service['service_url_link'] : "Click Here For More Info";
941
 
942
 
943
+ $service .= '<div id="snippet-box" class="snippet-type-'.esc_attr($type).'" style="background:'.esc_attr( $args_color["snippet_box_bg"] ).'; color:'.esc_attr( $args_color["snippet_box_color"] ).'; border:1px solid '.esc_attr( $args_color["snippet_border"] ).';">';
944
  if($args_service['snippet_title'] != "" )
945
  {
946
  $service .= '<div class="snippet-title" style="background:'.esc_attr( $args_color["snippet_title_bg"] ).'; color:'.esc_attr( $args_color["snippet_title_color"] ).'; border-bottom:1px solid '.esc_attr( $args_color["snippet_border"] ).';">'.esc_attr( stripslashes( $args_service['snippet_title'] ) );
images/1star.gif CHANGED
Binary file
images/1star.png CHANGED
Binary file
images/2star.gif CHANGED
Binary file
images/5star.gif CHANGED
Binary file
images/gray-32.png CHANGED
Binary file
images/gray.png CHANGED
Binary file
images/ico-delete.png CHANGED
Binary file
images/icon.png CHANGED
Binary file
images/icons.png CHANGED
Binary file
images/star.png CHANGED
Binary file
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.5.1
9
  Text Domain: rich-snippets
10
  License: GPL2
11
  */
@@ -82,13 +82,17 @@ if ( !class_exists( "RichSnippets" ) )
82
  function post_enqueue($hook) {
83
  if( 'post.php' != $hook )
84
  return;
 
 
 
 
85
  wp_enqueue_script( 'jquery' );
86
  wp_enqueue_script( 'bsf_jquery_star' );
87
  wp_enqueue_script( 'bsf_toggle' );
88
  wp_enqueue_style( 'star_style' );
89
  wp_register_script( 'bsf-scripts', BSF_META_BOX_URL . 'js/cmb.js','', '0.9.1' );
90
  wp_enqueue_script( 'bsf-scripts' );
91
- wp_register_script( 'bsf-scripts-media', BSF_META_BOX_URL . 'js/media.js', '', '1.0' );
92
  wp_enqueue_script( 'bsf-scripts-media' );
93
  wp_enqueue_script('jquery-ui-datepicker');
94
  if(!function_exists('vc_map'))
@@ -97,13 +101,17 @@ if ( !class_exists( "RichSnippets" ) )
97
  function post_new_enqueue($hook) {
98
  if('post-new.php' != $hook )
99
  return;
 
 
 
 
100
  wp_enqueue_script( 'jquery' );
101
  wp_enqueue_script( 'bsf_jquery_star' );
102
  wp_enqueue_script( 'bsf_toggle' );
103
  wp_enqueue_style( 'star_style' );
104
  wp_register_script( 'bsf-scripts', BSF_META_BOX_URL . 'js/cmb.js', '', '0.9.1' );
105
  wp_enqueue_script( 'bsf-scripts' );
106
- wp_register_script( 'bsf-scripts-media', BSF_META_BOX_URL . 'js/media.js', '', '1.0' );
107
  wp_enqueue_script( 'bsf-scripts-media' );
108
  wp_enqueue_script('jquery-ui-datepicker');
109
  if(!function_exists('vc_map'))
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.5.2
9
  Text Domain: rich-snippets
10
  License: GPL2
11
  */
82
  function post_enqueue($hook) {
83
  if( 'post.php' != $hook )
84
  return;
85
+ $current_admin_screen = get_current_screen();
86
+ $exclude_custom_post_type = apply_filters( 'bsf_exclude_custom_post_type', array() );
87
+ if ( in_array( $current_admin_screen->post_type, $exclude_custom_post_type ) )
88
+ return;
89
  wp_enqueue_script( 'jquery' );
90
  wp_enqueue_script( 'bsf_jquery_star' );
91
  wp_enqueue_script( 'bsf_toggle' );
92
  wp_enqueue_style( 'star_style' );
93
  wp_register_script( 'bsf-scripts', BSF_META_BOX_URL . 'js/cmb.js','', '0.9.1' );
94
  wp_enqueue_script( 'bsf-scripts' );
95
+ wp_register_script( 'bsf-scripts-media', BSF_META_BOX_URL . 'js/media.js', array( 'jquery', 'media-upload', 'media-editor' ), '1.0' );
96
  wp_enqueue_script( 'bsf-scripts-media' );
97
  wp_enqueue_script('jquery-ui-datepicker');
98
  if(!function_exists('vc_map'))
101
  function post_new_enqueue($hook) {
102
  if('post-new.php' != $hook )
103
  return;
104
+ $current_admin_screen = get_current_screen();
105
+ $exclude_custom_post_type = apply_filters( 'bsf_exclude_custom_post_type', array() );
106
+ if ( in_array( $current_admin_screen->post_type, $exclude_custom_post_type ) )
107
+ return;
108
  wp_enqueue_script( 'jquery' );
109
  wp_enqueue_script( 'bsf_jquery_star' );
110
  wp_enqueue_script( 'bsf_toggle' );
111
  wp_enqueue_style( 'star_style' );
112
  wp_register_script( 'bsf-scripts', BSF_META_BOX_URL . 'js/cmb.js', '', '0.9.1' );
113
  wp_enqueue_script( 'bsf-scripts' );
114
+ wp_register_script( 'bsf-scripts-media', BSF_META_BOX_URL . 'js/media.js', array( 'jquery', 'media-upload', 'media-editor' ), '1.0' );
115
  wp_enqueue_script( 'bsf-scripts-media' );
116
  wp_enqueue_script('jquery-ui-datepicker');
117
  if(!function_exists('vc_map'))
js/media.js CHANGED
@@ -1,6 +1,7 @@
1
  jQuery(document).ready(function($){
2
  if(pagenow != 'attachment')
3
  {
 
4
  var _custom_media = true,
5
  _orig_send_attachment = wp.media.editor.send.attachment;
6
  $('.bsf_upload_button').click(function(e) {
1
  jQuery(document).ready(function($){
2
  if(pagenow != 'attachment')
3
  {
4
+ if (typeof wp === 'undefined' || typeof wp.media === 'undefined') return;
5
  var _custom_media = true,
6
  _orig_send_attachment = wp.media.editor.send.attachment;
7
  $('.bsf_upload_button').click(function(e) {
meta-boxes.php CHANGED
@@ -19,7 +19,8 @@ function bsf_metaboxes( array $meta_boxes ) {
19
  }
20
  else {
21
 
22
- $required_post_type = $post_types;
 
23
 
24
  }
25
 
19
  }
20
  else {
21
 
22
+ $exclude_custom_post_type = apply_filters( 'bsf_exclude_custom_post_type', array() );
23
+ $required_post_type = array_diff( $post_types, $exclude_custom_post_type );
24
 
25
  }
26
 
readme.txt CHANGED
@@ -3,12 +3,11 @@ Contributors: brainstormforce, yawalkarm
3
  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.9.1
7
- Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- The best and easiest way to add Rich Snippets and Schema mark-up to your WordPress website. Get eye-catching results in search engines and boost CTR.
12
 
13
  == Description ==
14
 
@@ -79,6 +78,10 @@ Review, Event, People, Product, Recipe, Software Application, Video, Articles et
79
 
80
  == Changelog ==
81
 
 
 
 
 
82
  = 1.5.1 =
83
  * Fix: Plugin outputting extra output causing Ajax calls to break after last update.
84
 
3
  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.9.2
7
+ Stable tag: 1.5.2
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.
 
11
 
12
  == Description ==
13
 
78
 
79
  == Changelog ==
80
 
81
+ = 1.5.2 =
82
+ * Fix: Frontend Summary box structure validation issue.
83
+ * Fix: Editor object undefined issue lead js issue in the page.
84
+
85
  = 1.5.1 =
86
  * Fix: Plugin outputting extra output causing Ajax calls to break after last update.
87