Yasr – Yet Another Stars Rating - Version 1.2.7

Version Description

  • NEW FEATURE: a new flat stars set has been added! (Just go in the Yasr settings, --> Aspect & Styles, and choose the one you want!)
  • TWEAKED: added filter and action on yasr style settings page
  • TWEAKED: CSS changes. *** DELETE ALL YOUR CACHES ***
  • TWEAKED: added class yasr-visitor-votes-must-sign-in on "You must sign in to vote" text
Download this release

Release Info

Developer Dudo
Plugin Icon 128x128 Yasr – Yet Another Stars Rating
Version 1.2.7
Comparing to
See all releases

Code changes from version 1.2.6 to 1.2.7

changelog.txt ADDED
@@ -0,0 +1,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ = 1.1.9 =
2
+ * FIXED: yasr_visitor_votes doesn't get vote on mobile
3
+
4
+ = 1.1.8 =
5
+ * FIXED: added the rating type at the bottom of the post if no kind of rating exists for a post or page
6
+
7
+ = 1.1.7 =
8
+ * FIXED: filters on yasr_add_schema() functions
9
+ * TWEAKED: disabled right click on rating
10
+ * TWEAKED: install function is wrapped on register_activation_hook
11
+
12
+ = 1.1.6 =
13
+ * FIXED: Rich snippet non added in some cases
14
+
15
+ = 1.1.5 =
16
+ * TWEAKED: removed usless add_actions
17
+
18
+ = 1.1.4 =
19
+ * TWEAKED: added 2 new actions: yasr_action_on_overall_rating runs when the overall rating vote is insert or update, and yasr_action_on_visitor_vote runs when an user insert a vote and last yasr_action_on_update_visitor_vote that run when a logged in user update his vote
20
+ * FIXED: changed to a lower priority on 2 actions
21
+
22
+ = 1.1.3 =
23
+ * NEW FEATURE: New widget in the dashboard: all the logged in user can now see the logs of their votes
24
+ * FIXED: Insert new vote instead of update the old one if a logged in user try to vote an already rated post on archive pages
25
+ * TWEAKED: Speed improvment on dashboard widget
26
+ * TWEAKED: added html class on rankings
27
+ * TWEAKED: improved feature with the user reviews extension
28
+
29
+ = 1.1.2 =
30
+ * FIXED: Yasr Stylish compatibility
31
+ * TWEAKED: Minor changes.
32
+
33
+ = 1.1.1 =
34
+ * FIXED: Yasr Stylish compatibility
35
+ * TWEAKED: changed extensions images
36
+
37
+ = 1.1.0 =
38
+ * Yasr is not anymore a freemium plugin: it works now with extensions that you can be installed through the settings panel
39
+
40
+ = 1.0.7 =
41
+ * FIXED: minor bugfix in settings page
42
+
43
+ = 1.0.6 =
44
+ * Added a new filter hook on microdata and jsonld info
45
+ * Fixed php notice
46
+
47
+ = 1.0.5 =
48
+ * NEW FEATURE: In the Yasr code have been added a lot of hooks! This means that is much easier to develop Yasr. Further this, other developer can add their own extensions!
49
+ * TWEAKED: Added the postid parameter on the yasr_multiset and yasr_visitor_multiset shortcodes
50
+ * TWEAKED: Color scheme settings have been moved from "Multi Sets" tab on the "Styles" one.
51
+
52
+ = 1.0.4 =
53
+ * FIXED: yasr_visitor_votes didn't work if used the postid attribute
54
+ * Code cleanup
55
+
56
+ = 1.0.3 =
57
+ * TWEAKED: shortcodes doesn't echo javascrfipt anymore. wp_localize_script is used instead
58
+ * Minor changes on settings api
59
+
60
+ = 1.0.2 =
61
+ * TWEAKED: Max length for multiset fields in now 40 instead 23
62
+ * FIXED: Fixed a bug in multiset editing
63
+ * FIXED: Itemtype selection
64
+ * FIXED: minor bugfixes
65
+
66
+
67
+ = 1.0.1 =
68
+ * NEW FEATURE: is now possible to choose a recipe as itemType for rich snippets
69
+ * TWEAKED: moved from jquery(document).ready to DOMContentLoaded in some shortcodes
70
+ * FIXED: various minor fixes
71
+
72
+ = 1.0.0 =
73
+ * TWEAK: Changed textdomain from 'yasr' to 'yet-another-stars-rating'.
74
+
75
+ = 0.9.9 =
76
+ * New feature: is now possible to choose between json-ld and microdata for rich snippet
77
+
78
+ = 0.9.8 =
79
+ * TWEAKED: All the schema info use now json-ld and not microdata anymore. There is no need anymore to the sentence of the end of post :)
80
+ * FIXED: itemtype selection
81
+ * FIXED: itemtype if not rating
82
+ * FIXED: RTL support, thank's to Arik Numlock
83
+
84
+ = 0.9.7 =
85
+ * FIXED: bug with itemtype if yasr is not used in English
86
+ * NEW FEATURE: in the settings, is now possible to choose the default itemtype for all posts/pages
87
+
88
+ = 0.9.6 =
89
+ * Fixed author missing in schema info if blogposting is used
90
+ * Minor fix on schema
91
+ * Code Cleanup
92
+
93
+ * Fixed minor bug on schema info.
94
+
95
+ = 0.9.5 =
96
+ * Fixed div not created if schema info not present
97
+
98
+ = 0.9.4 =
99
+ * FIXED: all the ratings for a post or page get reset if choosen again the current schema type
100
+ * FIXED: Schema errors
101
+
102
+ = 0.9.3 =
103
+ * NEW FEATURE: wp rocket support, thanks to geek press
104
+ * FIXED: missing filed if a multiset element is leaved empty in the edit screen
105
+
106
+ = 0.9.2 =
107
+ * FIXED: bugfix on yasr_visitor_multiset
108
+ * FIXED: wrong review type showed in editing screen
109
+ * FIXED: could vote > 5 in overall rating if use digits instead of stars
110
+ * FIXED: double voting in visitor multi set if "submit" button is pressed more than once
111
+ * FIXED: progressbar in tooltips (thanks to Harry Milatz )
112
+ * FIXED: minor security fix
113
+
114
+ = 0.9.1 =
115
+ * Security fix
116
+
117
+ = 0.9.0 =
118
+ * FIXED: Fixed bug in multisets (here https://wordpress.org/support/topic/half-stars-not-saving more info)
119
+ * TWEAKED: Minor changes
120
+
121
+ = 0.8.9 =
122
+ * FIXED: Minor bugfixes for multisets and visitor multisets
123
+
124
+
125
+ = 0.8.8 =
126
+ * NEW FEATURE: it's now possible to add the attribute postid on these shortcodes: yasr_overall_rating, yasr_visitor_votes, yasr_visitor_votes_readonly. It is only necessary when you wish to show another post/page's votes
127
+ * TWEAKED: Added facebook box in the settings
128
+ * TWEAKED: storage of the ip adress
129
+ * TWEAKED: Added Croatian language
130
+ * FIXED: support for rtl
131
+ * Minor bugfixes
132
+
133
+
134
+ = 0.8.7 =
135
+ * Minor changes and bugfixes
136
+
137
+ = 0.8.6 =
138
+ * Fixed bug on new installation if multi set are used
139
+
140
+ = 0.8.5 =
141
+ * TWEAKED: code changes and bug fixes on Multi Set shortcodes
142
+
143
+ = 0.8.4 =
144
+ * NEW FEATURE: User can customize text after Visitor Votes.
145
+ * TWIKED: Visitor Votes have been partially rewritten, is much faster now
146
+ * REMOVED: Removed jquery cookie
147
+
148
+ = 0.8.3 =
149
+ * NEW FEATURE: added shortcode yasr_visitor_multiset. Now everyone can vonte in a Multi Set!
150
+ * FIXED: fixed schema type selection
151
+ * Minor changes
152
+
153
+ = 0.8.2 =
154
+ * NEW FEATURE: added shortcode yasr_visitor_votes_readonly (thanks to Raul Illana for the idea)
155
+ * NEW FEATURE: added support for wp super cache
156
+ * TWIKED: color settings for multi sets was moved from general settings to multi sets tab
157
+ * TWIKED: log widget is now fully translatable
158
+ * TWIKED: added brasilian language
159
+ * TWIKED: minor fixes for translation
160
+
161
+ = 0.8.1 =
162
+ * Fixed: Undefined variable in yasr_visitor_votes shortcode
163
+ * Fixed: Fixed cursor style when is over the dashicon
164
+ * Tweaked: Stars' description is now translatable
165
+ * Twaeked: Dashicon doens't load if visitor stats are disabled
166
+ * Tweaked: Italian translation
167
+
168
+ = 0.8.0 =
169
+ * Stats for visitor votes works now on click and not on hover
170
+ * Buddypress compatibility
171
+ * Huge code cleanup on yasr_visitor_votes shortcode
172
+
173
+ = 0.7.9 =
174
+ * Fixed bug inserted on 0.2.2 when a logged in user try to update his own vote
175
+ * Minor changes on yasr_visitor_votes shortcode
176
+
177
+ = 0.7.8 =
178
+ * Fixed bug that occur when a post was rated from 2 users that use same browser
179
+ * Switched cdn, from google to jquery
180
+ * Persian Translation
181
+
182
+ = 0.7.7 =
183
+ * Removed an useless row in yasr_votes table.
184
+ * Minor change on [yasr_top_5_reviewers] shortcode
185
+ * Code cleanup
186
+
187
+ = 0.7.6 =
188
+ * Updated pro info.
189
+ * .po file update
190
+
191
+ = 0.7.5 =
192
+ * Code cleanup and bugfix in yasr_visitor_votes shortcode
193
+ * Updated Norwegian translation (Thanks to [Line](http://www.spilleautomatercasinobonuser.com))
194
+
195
+ = 0.7.4 =
196
+ * Security fix. Please update!
197
+
198
+ = 0.7.3 =
199
+ * Added support for plugins that adds class or attribute on images
200
+ * Code cleanup
201
+
202
+ = 0.7.2 =
203
+ * Another bugfix on yasr_visitor_votes shortcode.
204
+ * Minor changes
205
+
206
+ = 0.7.1 =
207
+ * Important change into yasr_visitor_votes shortcode
208
+
209
+ = 0.7.0 =
210
+ * Fixed bug for yasr_visitor_votes shortcode
211
+
212
+ = 0.6.9 =
213
+ * Yasr Visitor Votes shortag is finally avaible in archive pages!
214
+ * Code cleanup on yasr visitor votes shortag
215
+ * Javascript loaded again at the bottom in the frontend. Theme that doesn't use wp_footer will no be supported anymore
216
+
217
+ = 0.6.8 =
218
+ * In the front end, Javascript is loaded at the top of the page, cause out there still exists theme that doesn't use wp_footer function
219
+ * Smaller bugfixes
220
+ * French translation
221
+
222
+ = 0.6.7 =
223
+ * Small bugfix
224
+
225
+ = 0.6.6 =
226
+ * Bugfix: Auto insert in custom post type have been fixed
227
+ * "stars" inside the stats tooltip is now translatable
228
+
229
+ = 0.6.5 =
230
+ * New feature! If you use Visitors Rating stars set, you can now see statistics by hovering the mouse on the text [Total: X Average:Y]
231
+ * Bug fixes (stars changing size) in [yasr_visitor_rating]
232
+ * Fixed typos
233
+ * Huge cleanups
234
+
235
+ = 0.6.3 =
236
+ * Added Pro info in settings page
237
+
238
+ = 0.6.2 =
239
+ * Fixed bug for [yasr_overall_rating] in pages
240
+ * Code cleanup in [yasr_overall_rating]
241
+
242
+ = 0.6.1 =
243
+ * Bugfix: fixed mysql error if inserted the overall rating vote if post wasn't saved yet
244
+ * Fixed schema info when overall rating is used
245
+ * Language fix on [yasr_most_or_highest_rated_posts]
246
+
247
+ = 0.6.0 =
248
+ * Bugfix: now it's not possible to vote 0
249
+ * Code Cleanup in yasr-settings-page and added link to yasr site, www.yetanotherstarsrating.com
250
+
251
+ = 0.5.9 =
252
+ * New feature: When writing a post or a page it's now possible to select the category that you're reviewing. This is a good improvement for SEO.
253
+ * Fixed loader when importing gd star rating data
254
+ * Fixed loader in yasr-settings-page
255
+
256
+ = 0.5.8 =
257
+ * Changed description in yasr shortcode generator (transaltor please take a look to the .po file) and other languages fix.
258
+ * Added the author info in the aggregate rating snippet
259
+ * Minor bugfixes
260
+
261
+ = 0.5.7 =
262
+ * Bug fixes in [yasr_most_or_highest_rated_posts] chart
263
+
264
+ = 0.5.6 =
265
+ * Code cleanup and speed improvement on the [yasr_most_or_highest_rated_posts] chart
266
+ * Bug fixes in setting page
267
+
268
+ = 0.5.5 =
269
+ * All the javascript have been moved from inline to external. It can be minimized so it's faster. DELETE ALL YOUR CACHES
270
+ * Fixed a possible bug if user manually delete data in a table
271
+
272
+ = 0.5.4 =
273
+ * New feature: you can used numbers instead stars to insert the "overall rating" value. Just go in the setting and choose what you want to use
274
+ * Fixed a division by 0 warning while using [yasr_most_or_highest_rated_posts] : this happened when there wan't enought data to shows
275
+ * Many bux fix in [yasr_visitor_rating] : further this now it is faster
276
+
277
+ = 0.5.3 =
278
+ * Fixed a non closing div. This can cause problem when used in old template
279
+
280
+ = 0.5.2 =
281
+ * Bugfixes
282
+
283
+ = 0.5.1 =
284
+ * Added support for wordpress 4.0
285
+ * Huge code cleanup in [yasr_visitor_votes]
286
+
287
+ = 0.5.0 =
288
+ * New feature: added auto insert for custom post types only (you will see this only if you use custom post types)
289
+ * Various bugfixes
290
+
291
+ = 0.4.9 =
292
+ * Fixed bug in rich snippet
293
+ * Under the hood changes and code cleanup
294
+
295
+ = 0.4.8 =
296
+ * Many bug fix and code changes for i18n
297
+ * Yasr.css have been sperated in 2 files: 1 for admin and 1 for frontend
298
+ * Added Italian translation
299
+ * Many many other little bug fixes
300
+
301
+ = 0.4.7 =
302
+ * Visitor votes has changed: if an user is logged in, now it's possibile to update the given vote
303
+ * Using css sprite instead of single images
304
+ * Using only 2 css instead 4
305
+ * Added German Translation (thanks to Josef Seidl)
306
+
307
+ = 0.4.6 =
308
+ * New feature: you can add your own css rules!
309
+ * Popup shortcode creator use the built-in wordpress style, fresher and lighter
310
+ * Fixed many bugs in shortcode [yasr_visitor_votes] : if you've had problem with a size that was not "large", try it now!
311
+ * Swiched color for all stars set: yellow by default, red only when is active
312
+ * Changed file name jquery.cookie.min.js in jquery-cookie.min.js, to avoid conflict with apache mod_security (thank's SubZeroD)
313
+ * Many code changes
314
+
315
+ = 0.4.5 =
316
+ * New feature: Added custom post type support!
317
+ * Some fixes while editing / updating a multi-set
318
+ * Minor changes
319
+
320
+ = 0.4.4 =
321
+ * Code cleanup on chart Top 10 by visitors: on first load load it should be about 30% faster
322
+ * Showing a spinning image while chart Top 10 by visitors is loading
323
+
324
+ = 0.4.3 =
325
+ * Chart Top 10 by visitors have been rewritten. Now it's much much faster
326
+ * Added text on chart Top 10 overall ratings
327
+ * Minor changes
328
+
329
+ = 0.4.2 =
330
+ * Fixed log table, last updated broke it
331
+
332
+ = 0.4.1 =
333
+ * Added 2 sizes for "overall_rating" and "visitor_votes" stars sets, now you can choose between 16px, 24px and 32px (default)
334
+ * MANY code changes: it should be a little faster
335
+ * Fixed typo errors
336
+
337
+ = 0.4.0 =
338
+ * Popup shortcode creator it's now tabbed and got a link to the new doc
339
+ * Minor changes and bugfixes
340
+
341
+ = 0.3.9 =
342
+ * Fixed page exclusion
343
+
344
+ = 0.3.8 =
345
+ * Added new chart: Top 10 most rated / highest rated posts from visitors (show up only posts rated at least twice)
346
+ * New setting: it's possibile now to explude pages from auto insert
347
+ * Css changes
348
+ * Various bugfixes
349
+
350
+ = 0.3.7 =
351
+ * Added new chart: Top 5 most active reviewers
352
+ * Added new chart: Top 10 most active users (in visitor rating)
353
+ * Changed popup for shortcode creator in visual editor, switched from thickbox to jquery ui dialog
354
+ * Removed javascript error when the shortcode creator is called
355
+ * Fixed multiset form editor
356
+ * Various bugfixes
357
+
358
+ = 0.3.6 =
359
+ * Changed permission: now while writing a post or page everyone with a role >= author can insert votes
360
+ * Some bugfixes
361
+
362
+ = 0.3.5 =
363
+ * Added a new dark style to better suite dark theme
364
+ * Added a new custom text to show when a non logged user has voted
365
+ * Css minor changes
366
+
367
+ = 0.3.4 =
368
+ * In settings page is now possible add some custom text to make appear before "Overall Rating" or "Visitor's Rating" are showed
369
+ * In settings page is now possible to show "Overall Rating" only in the post / page or even in Home page, Archive Page, etc.
370
+ * Removed bug that could appear in some case when removing or adding field in multiset form editor
371
+ * After a multiset is created/edited now you get redirected on multiset settings tab and not in general settings
372
+ * Various bugfixes
373
+ * Under the hood changes
374
+
375
+ = 0.3.3 =
376
+ * Created a new shortcode that will allow to insert Top 10 highest rated product by author
377
+ * When a post or page is permanently deleted, yasr will delete every votes for that post or page
378
+ * Overall Rating is now avaible in home page and archive pages
379
+ * Fixed "add element button" when only 1 multi set is used
380
+ * Updated jquery cookie from 1.4.0 to 1.4.1 and minified it
381
+ * Minor Bug fixes
382
+
383
+
384
+ = 0.3.2 =
385
+ * Forced multiset field name to be #555 . This is to avoid reading problem when using light font color
386
+
387
+ = 0.3.1 =
388
+ * Avoid multiple vote in a same post for logged in user
389
+ * Bug fixes and cleanup
390
+
391
+ = 0.3.0 =
392
+ * Now admin can choose if allow only logged in users to vote or logged in and anonymous
393
+ * Code cleanup and bug fixes
394
+
395
+ = 0.2.10 =
396
+ * Added loading image when ajax is called
397
+ * Added "select button" when choosing a multi set
398
+
399
+ = 0.2.9 =
400
+ * Settings page has been rewritten: now it use multi tab navigation
401
+
402
+ = 0.2.7 =
403
+ * Many bug fixes on the settings page
404
+ * Minor change and code cleanup
405
+
406
+ = 0.2.5 =
407
+ * Bug fix on multi set
408
+
409
+ = 0.2.4 =
410
+ * Now user can choose what kind of snippet use, if AggregateRating or Review
411
+
412
+ = 0.2.3 =
413
+ * [yasr_visitor_votes] it's now disabled outside a post or a page
414
+ * Security fixes on ajax functions
415
+ * Various fixes on multi-set settings
416
+ * Code cleanup
417
+
418
+ = 0.2.2 =
419
+ * Fixed doulbe ajax request on overall rating when used just 1 multiple set
420
+ * Many other minor bug fixes
421
+
422
+ = 0.2.1 =
423
+ * Fixed insert rating on multi set if only 1 is used
424
+
425
+ = 0.2.0 =
426
+ * Fixed Table installation
427
+
428
+ = 0.1.3 =
429
+ * Fixed some security issues. Please Update
430
+
431
+ = 0.1.2 =
432
+ * Fixed Multi Icons
433
+
434
+ = 0.1.1 =
435
+ * Changed stars icons, now using the oxygen one
436
+ * Using big star when voting on multi set
437
+
438
+ = 0.1.0 =
439
+ * Added in admin dashboard votes log viewer
440
+ * .Po file updated
441
+ * Updated rateit to version 1.0.22
442
+
443
+ = 0.0.4 =
444
+ * Fixed creation of a new multi set
445
+ * Added the opportunity to remove entire multi set
446
+ * Code cleanup
447
+
448
+ = 0.0.3 =
449
+ * Fixed bug describe if
450
+ * Code Cleanup
451
+
452
+ = 0.0.2 =
453
+ * Using input type radio when select a multi set instead select / option
454
+ * Added css style for table showing multiset
455
+ * Added yasr.css file
456
+ * Some code cleanup
css/yasr-admin.css CHANGED
@@ -18,7 +18,6 @@
18
  position: relative;
19
  display: -moz-inline-box;
20
  display: inline-block;
21
- background: url('../img/star.png');
22
  height: 16px;
23
  outline: none;
24
  }
@@ -51,21 +50,12 @@
51
  right: 0px;
52
  }
53
 
54
- .rateit .rateit-hover
55
- {
56
- background: url('../img/star.png') left -16px;
57
- }
58
 
59
  .rateit .rateit-hover-rtl
60
  {
61
  background-position: right -16px;
62
  }
63
 
64
- .rateit .rateit-selected
65
- {
66
- background: url('../img/star.png') left -32px;
67
- }
68
-
69
  .rateit .rateit-selected-rtl
70
  {
71
  background-position: right -32px;
@@ -112,16 +102,14 @@ IMAGES BY: Oxygen Team
112
  div.medium .rateit-range
113
  {
114
  /*White*/
115
- background: url('../img/stars24.png') left 0px;
116
- width: 24px;
117
  height: 24px;
118
  }
119
 
120
  div.medium .rateit-hover
121
  {
122
  /*Red*/
123
- background: url('../img/stars24.png') left -29px;
124
- width: 24px;
125
  height: 24px;
126
  display: none
127
 
@@ -130,8 +118,7 @@ div.medium .rateit-hover
130
  div.medium .rateit-selected
131
  {
132
  /*Yellow*/
133
- background: url('../img/stars24.png') left -58px ;
134
- width: 24px;
135
  height: 24px;
136
  }
137
 
@@ -140,16 +127,14 @@ div.medium .rateit-selected
140
  div.bigstars .rateit-range
141
  {
142
  /*White*/
143
- background: url('../img/stars32.png') left 0px ;
144
- width: 32px;
145
  height: 32px;
146
  }
147
 
148
  div.bigstars .rateit-hover
149
  {
150
  /*red*/
151
- background: url('../img/stars32.png') left -74px ;
152
- width: 32px;
153
  height: 32px;
154
  display: none
155
  }
@@ -157,8 +142,7 @@ div.bigstars .rateit-hover
157
  div.bigstars .rateit-selected
158
  {
159
  /*Gold*/
160
- background: url('../img/stars32.png') left -37px ;
161
- width: 32px;
162
  height: 32px;
163
  }
164
 
@@ -187,7 +171,7 @@ div.bigstars .rateit-selected
187
 
188
  /*** End metabox overall rating ***/
189
 
190
- #multi_rating_table
191
  {
192
  vertical-align: text-top;
193
  }
@@ -211,9 +195,9 @@ div.bigstars .rateit-selected
211
  @media (min-width: 1177px) {
212
 
213
  .yasr-settingsdiv {
214
- float:left;
215
- display:block;
216
- width:60%;
217
  background-color:#FFF;
218
  border: 1px solid #DDD;
219
  padding-left: 25px;
@@ -222,10 +206,10 @@ div.bigstars .rateit-selected
222
  }
223
 
224
  .yasr-donatedivdx {
225
- float:right;
226
- display:block !important;
227
  min-width: 290px;
228
- width:15%;
229
  margin-bottom: 10px;
230
  background-color:#FFF;
231
  border: 1px solid #DDD;
@@ -235,10 +219,10 @@ div.bigstars .rateit-selected
235
 
236
  .yasr-ask-five-stars {
237
 
238
- float:right;
239
- display:block;
240
  min-width: 290px;
241
- width:15%;
242
  margin-bottom: 10px;
243
  background-color:#FFF;
244
  border-left: 3px solid #7AD03A;
@@ -255,9 +239,9 @@ div.bigstars .rateit-selected
255
  @media (max-width: 1176px) {
256
 
257
  .yasr-settingsdiv {
258
- float:left;
259
- display:block;
260
- width:95%;
261
  background-color:#FFF;
262
  border: 1px solid #DDD;
263
  padding-left: 10px;
@@ -265,9 +249,9 @@ div.bigstars .rateit-selected
265
  padding-bottom: 5px;
266
  }
267
 
268
- .yasr-donatedivbottom {
269
- display:block !important;
270
- width:95%;
271
  background-color:#FFF;
272
  margin-top: 10px;
273
  border: 1px solid #DDD;
@@ -308,7 +292,7 @@ div.bigstars .rateit-selected
308
  }
309
 
310
  .yasr-list-set-table {
311
- margin-left:5px;
312
  }
313
 
314
  .yasr-space-settings-div {
@@ -420,7 +404,7 @@ div.bigstars .rateit-selected
420
  padding-top: 30px;
421
  padding-bottom: 30px;
422
  text-align: center;
423
- color: red;
424
  }
425
 
426
  .yasr_table_multi_set_admin {
@@ -465,6 +449,14 @@ div.bigstars .rateit-selected
465
  /*** End rules for multi set admin page ***/
466
 
467
 
 
 
 
 
 
 
 
 
468
 
469
  /*** Popup in tinymce ***/
470
 
@@ -517,7 +509,7 @@ div.bigstars .rateit-selected
517
 
518
  .yasr-log-image {
519
  list-style-type: none;
520
- display: inline-block;
521
  float:left;
522
  }
523
 
@@ -564,9 +556,9 @@ div.bigstars .rateit-selected
564
 
565
  .yasr-extensionsdiv {
566
 
567
- float:left;
568
- display:block;
569
- width:90%;
570
  background-color:#FFF;
571
  border: 1px solid #DDD;
572
  padding-left: 25px;
@@ -593,7 +585,7 @@ div.bigstars .rateit-selected
593
  display: block;
594
  text-align: center;
595
  font-size:16px;
596
- font-weight: bold;
597
  margin-bottom: 15px;
598
 
599
  }
@@ -612,7 +604,7 @@ div.bigstars .rateit-selected
612
  display: block;
613
  margin: 0 auto;
614
  height: 160px;
615
-
616
  }
617
 
618
  .yasr-extension-description {
@@ -621,4 +613,4 @@ div.bigstars .rateit-selected
621
  font-size: 13px;
622
  display: block;
623
 
624
- }
18
  position: relative;
19
  display: -moz-inline-box;
20
  display: inline-block;
 
21
  height: 16px;
22
  outline: none;
23
  }
50
  right: 0px;
51
  }
52
 
 
 
 
 
53
 
54
  .rateit .rateit-hover-rtl
55
  {
56
  background-position: right -16px;
57
  }
58
 
 
 
 
 
 
59
  .rateit .rateit-selected-rtl
60
  {
61
  background-position: right -32px;
102
  div.medium .rateit-range
103
  {
104
  /*White*/
105
+ width: 24px;
 
106
  height: 24px;
107
  }
108
 
109
  div.medium .rateit-hover
110
  {
111
  /*Red*/
112
+ width: 24px;
 
113
  height: 24px;
114
  display: none
115
 
118
  div.medium .rateit-selected
119
  {
120
  /*Yellow*/
121
+ width: 24px;
 
122
  height: 24px;
123
  }
124
 
127
  div.bigstars .rateit-range
128
  {
129
  /*White*/
130
+ width: 32px;
 
131
  height: 32px;
132
  }
133
 
134
  div.bigstars .rateit-hover
135
  {
136
  /*red*/
137
+ width: 32px;
 
138
  height: 32px;
139
  display: none
140
  }
142
  div.bigstars .rateit-selected
143
  {
144
  /*Gold*/
145
+ width: 32px;
 
146
  height: 32px;
147
  }
148
 
171
 
172
  /*** End metabox overall rating ***/
173
 
174
+ #multi_rating_table
175
  {
176
  vertical-align: text-top;
177
  }
195
  @media (min-width: 1177px) {
196
 
197
  .yasr-settingsdiv {
198
+ float:left;
199
+ display:block;
200
+ width:60%;
201
  background-color:#FFF;
202
  border: 1px solid #DDD;
203
  padding-left: 25px;
206
  }
207
 
208
  .yasr-donatedivdx {
209
+ float:right;
210
+ display:block !important;
211
  min-width: 290px;
212
+ width:15%;
213
  margin-bottom: 10px;
214
  background-color:#FFF;
215
  border: 1px solid #DDD;
219
 
220
  .yasr-ask-five-stars {
221
 
222
+ float:right;
223
+ display:block;
224
  min-width: 290px;
225
+ width:15%;
226
  margin-bottom: 10px;
227
  background-color:#FFF;
228
  border-left: 3px solid #7AD03A;
239
  @media (max-width: 1176px) {
240
 
241
  .yasr-settingsdiv {
242
+ float:left;
243
+ display:block;
244
+ width:95%;
245
  background-color:#FFF;
246
  border: 1px solid #DDD;
247
  padding-left: 10px;
249
  padding-bottom: 5px;
250
  }
251
 
252
+ .yasr-donatedivbottom {
253
+ display:block !important;
254
+ width:95%;
255
  background-color:#FFF;
256
  margin-top: 10px;
257
  border: 1px solid #DDD;
292
  }
293
 
294
  .yasr-list-set-table {
295
+ margin-left:5px;
296
  }
297
 
298
  .yasr-space-settings-div {
404
  padding-top: 30px;
405
  padding-bottom: 30px;
406
  text-align: center;
407
+ color: red;
408
  }
409
 
410
  .yasr_table_multi_set_admin {
449
  /*** End rules for multi set admin page ***/
450
 
451
 
452
+ .yasr_choose_stars {
453
+ display: inline-block;
454
+ text-align: center;
455
+ padding-left: 15px;
456
+ }
457
+
458
+
459
+
460
 
461
  /*** Popup in tinymce ***/
462
 
509
 
510
  .yasr-log-image {
511
  list-style-type: none;
512
+ display: inline-block;
513
  float:left;
514
  }
515
 
556
 
557
  .yasr-extensionsdiv {
558
 
559
+ float:left;
560
+ display:block;
561
+ width:90%;
562
  background-color:#FFF;
563
  border: 1px solid #DDD;
564
  padding-left: 25px;
585
  display: block;
586
  text-align: center;
587
  font-size:16px;
588
+ font-weight: bold;
589
  margin-bottom: 15px;
590
 
591
  }
604
  display: block;
605
  margin: 0 auto;
606
  height: 160px;
607
+
608
  }
609
 
610
  .yasr-extension-description {
613
  font-size: 13px;
614
  display: block;
615
 
616
+ }
css/yasr.css CHANGED
@@ -41,7 +41,6 @@
41
  position: relative;
42
  display: -moz-inline-box;
43
  display: inline-block;
44
- background: url('../img/star.png');
45
  height: 16px;
46
  width: 16px;
47
  outline: none;
@@ -49,45 +48,11 @@
49
  }
50
 
51
 
52
- .rateit .rateit-hover
53
- {
54
- background: url('../img/star.png') left -16px;
55
- }
56
-
57
-
58
- .rateit .rateit-selected
59
- {
60
- background: url('../img/star.png') left -32px;
61
- }
62
-
63
-
64
- /*** RTL RULES, thank's to Arik Numlock ***/
65
-
66
- .rateit .rateit-hover.rateit-hover-rtl, .rateit .rateit-selected.rateit-selected-rtl {
67
-
68
- -moz-transform: scaleX(-1);
69
- -o-transform: scaleX(-1);
70
-
71
- -webkit-transform: scaleX(-1);
72
- transform: scaleX(-1);
73
- filter: FlipH;
74
- -ms-filter: "FlipH";
75
- right: 0;
76
- left: auto;
77
-
78
- }
79
-
80
-
81
- /*
82
- IMAGES BY: Oxygen Team
83
- */
84
-
85
  /* Creating set 24px image . */
86
 
87
  div.medium .rateit-range
88
  {
89
  /*White*/
90
- background: url('../img/stars24.png') left 0px;
91
  width: 24px;
92
  height: 24px;
93
  }
@@ -95,7 +60,6 @@ div.medium .rateit-range
95
  div.medium .rateit-hover
96
  {
97
  /*Red*/
98
- background: url('../img/stars24.png') left -29px;
99
  width: 24px;
100
  height: 24px;
101
  display: none
@@ -105,7 +69,6 @@ div.medium .rateit-hover
105
  div.medium .rateit-selected
106
  {
107
  /*Yellow*/
108
- background: url('../img/stars24.png') left -58px ;
109
  width: 24px;
110
  height: 24px;
111
  }
@@ -115,7 +78,6 @@ div.medium .rateit-selected
115
  div.bigstars .rateit-range
116
  {
117
  /*White*/
118
- background: url('../img/stars32.png') left 0px ;
119
  width: 32px;
120
  height: 32px;
121
  }
@@ -123,7 +85,6 @@ div.bigstars .rateit-range
123
  div.bigstars .rateit-hover
124
  {
125
  /*red*/
126
- background: url('../img/stars32.png') left -74px ;
127
  width: 32px;
128
  height: 32px;
129
  display: none
@@ -132,7 +93,6 @@ div.bigstars .rateit-hover
132
  div.bigstars .rateit-selected
133
  {
134
  /*Gold*/
135
- background: url('../img/stars32.png') left -37px ;
136
  width: 32px;
137
  height: 32px;
138
  }
@@ -156,6 +116,22 @@ div.bigstars .rateit-selected
156
  background-position: 0 -16px;
157
  }
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  /****** End rateit rules ******/
160
 
161
 
41
  position: relative;
42
  display: -moz-inline-box;
43
  display: inline-block;
 
44
  height: 16px;
45
  width: 16px;
46
  outline: none;
48
  }
49
 
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  /* Creating set 24px image . */
52
 
53
  div.medium .rateit-range
54
  {
55
  /*White*/
 
56
  width: 24px;
57
  height: 24px;
58
  }
60
  div.medium .rateit-hover
61
  {
62
  /*Red*/
 
63
  width: 24px;
64
  height: 24px;
65
  display: none
69
  div.medium .rateit-selected
70
  {
71
  /*Yellow*/
 
72
  width: 24px;
73
  height: 24px;
74
  }
78
  div.bigstars .rateit-range
79
  {
80
  /*White*/
 
81
  width: 32px;
82
  height: 32px;
83
  }
85
  div.bigstars .rateit-hover
86
  {
87
  /*red*/
 
88
  width: 32px;
89
  height: 32px;
90
  display: none
93
  div.bigstars .rateit-selected
94
  {
95
  /*Gold*/
 
96
  width: 32px;
97
  height: 32px;
98
  }
116
  background-position: 0 -16px;
117
  }
118
 
119
+ /*** RTL RULES, thank's to Arik Numlock ***/
120
+
121
+ .rateit .rateit-hover.rateit-hover-rtl, .rateit .rateit-selected.rateit-selected-rtl {
122
+
123
+ -moz-transform: scaleX(-1);
124
+ -o-transform: scaleX(-1);
125
+
126
+ -webkit-transform: scaleX(-1);
127
+ transform: scaleX(-1);
128
+ filter: FlipH;
129
+ -ms-filter: "FlipH";
130
+ right: 0;
131
+ left: auto;
132
+
133
+ }
134
+
135
  /****** End rateit rules ******/
136
 
137
 
img/star.png CHANGED
Binary file
img/stars24.png CHANGED
Binary file
img/stars32.png CHANGED
Binary file
img/stars_16_flat.png ADDED
Binary file
img/stars_24_flat.png ADDED
Binary file
img/stars_32_flat.png ADDED
Binary file
lib/yasr-admin-actions.php CHANGED
@@ -42,4 +42,76 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
42
 
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  ?>
42
 
43
  }
44
 
45
+
46
+ add_filter('yasr_filter_style_options', 'yasr_filter_style_options_callback');
47
+
48
+ function yasr_filter_style_options_callback ($style_options) {
49
+
50
+ if(!array_key_exists('stars_set_free', $style_options)) {
51
+
52
+ $style_options['stars_set_free'] = 'oxy'; //..default value if not exists
53
+
54
+ }
55
+
56
+ return $style_options;
57
+
58
+ }
59
+
60
+
61
+ //Add stars set for yasr stle settings page
62
+ //from version 1.2.7
63
+ add_action('yasr_style_options_add_settings_field', 'yasr_style_options_add_settings_field_callback');
64
+
65
+ function yasr_style_options_add_settings_field_callback($style_options) {
66
+
67
+ add_settings_field( 'yasr_style_options_choose_stars_lite', __('Choose Stars Set', 'yet-another-stars-rating'), 'yasr_style_options_choose_stars_lite_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options );
68
+
69
+ }
70
+
71
+ function yasr_style_options_choose_stars_lite_callback($style_options) {
72
+
73
+ ?>
74
+
75
+ <div class='yasr_choose_stars' id='yasr_pro_custom_set_choosen_stars'>
76
+
77
+ <input type='radio' name='yasr_style_options[stars_set_free]' value='oxy' class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free']==='oxy') echo " checked=\"checked\" "; ?> />
78
+ <br />
79
+ <div class='yasr_pro_stars_set' id='yasr_pro_custom_set_choosen_stars'>
80
+ <?php
81
+ echo "<img src=" . YASR_IMG_DIR . "stars32.png>";
82
+ ?>
83
+ </div>
84
+
85
+ </div>
86
+
87
+ <div class='yasr_choose_stars' id='yasr_pro_custom_set_choosen_stars'>
88
+
89
+ <input type='radio' name='yasr_style_options[stars_set_free]' value='flat' class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free']==='flat') echo " checked=\"checked\" "; ?> />
90
+ <br />
91
+ <div class='yasr_pro_stars_set' id='yasr_pro_custom_set_choosen_stars'>
92
+ <?php
93
+ echo "<img src=" . YASR_IMG_DIR . "stars_32_flat.png>";
94
+ ?>
95
+ </div>
96
+
97
+ </div>
98
+
99
+ <div class='yasr_choose_stars' style="text-align:left">
100
+
101
+ <?php
102
+ $text = __('Looking for more?', 'yet-another-stars-rating');
103
+ $text .= '<br />';
104
+ $text .= sprintf(__('Take a look to the %s', 'yet-another-stars-rating'), '<a href="https://yetanotherstarsrating.com/extensions/yasr-stylish/">Yasr Stylish Extension!</a>');
105
+
106
+ echo $text;
107
+
108
+ ?>
109
+
110
+ </div>
111
+
112
+ <?php
113
+
114
+ }
115
+
116
+
117
  ?>
lib/yasr-db-functions.php CHANGED
@@ -121,6 +121,7 @@ function yasr_install() {
121
  //Style set options
122
  $style_options = array();
123
  $style_options['scheme_color_multiset'] = 'light';
 
124
 
125
  add_option("yasr_style_options", $style_options);
126
 
121
  //Style set options
122
  $style_options = array();
123
  $style_options['scheme_color_multiset'] = 'light';
124
+ $style_options['stars_set_free'] = 'oxy';
125
 
126
  add_option("yasr_style_options", $style_options);
127
 
lib/yasr-functions.php CHANGED
@@ -112,6 +112,87 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
112
  }*/
113
 
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  /****** Translating YASR ******/
117
 
112
  }*/
113
 
114
 
115
+ /*** Css rules for stars set, from version 1.2.7
116
+ Here I use add_action instead of directly use wp_add_inline_style so I can
117
+ use remove_action if needed (e.g. Yasr Stylish)
118
+ ***/
119
+
120
+ add_action( 'yasr_add_front_script_css', 'yasr_css_stars_set' );
121
+ add_action( 'yasr_add_admin_scripts_end', 'yasr_css_stars_set' );
122
+
123
+ function yasr_css_stars_set() {
124
+
125
+ //if is not flat, default case
126
+ if (YASR_STARS_SET !== 'flat') {
127
+
128
+ $stars_16 = YASR_IMG_DIR . 'star.png';
129
+ $stars_24 = YASR_IMG_DIR . 'stars24.png';
130
+ $stars_32 = YASR_IMG_DIR . 'stars32.png';
131
+
132
+ }
133
+
134
+ else {
135
+
136
+ $stars_16 = YASR_IMG_DIR . 'stars_16_flat.png';
137
+ $stars_24 = YASR_IMG_DIR . 'stars_24_flat.png';
138
+ $stars_32 = YASR_IMG_DIR . 'stars_32_flat.png';
139
+
140
+ }
141
+
142
+
143
+ $yasr_st_css = "
144
+ .rateit .rateit-range {
145
+ background: url($stars_16) left 0px;
146
+ }
147
+
148
+ .rateit .rateit-hover {
149
+ background: url($stars_16) left -21px;
150
+ }
151
+
152
+ .rateit .rateit-selected {
153
+ background: url($stars_16) left -42px;
154
+ }
155
+
156
+ div.medium .rateit-range {
157
+ /*White*/
158
+ background: url($stars_24) left 0px;
159
+ }
160
+
161
+ div.medium .rateit-hover {
162
+ /*Red*/
163
+ background: url($stars_24) left -29px;
164
+ }
165
+
166
+ div.medium .rateit-selected {
167
+ /*Yellow*/
168
+ background: url($stars_24) left -58px ;
169
+ }
170
+
171
+ /* Creating set 32 */
172
+
173
+ div.bigstars .rateit-range {
174
+ /*White*/
175
+ background: url($stars_32) left 0px ;
176
+ }
177
+
178
+ div.bigstars .rateit-hover{
179
+ /*red*/
180
+ background: url($stars_32) left -37px ;
181
+ }
182
+
183
+ div.bigstars .rateit-selected
184
+ {
185
+ /*Gold*/
186
+ background: url($stars_32) left -74px ;
187
+ }
188
+
189
+ ";
190
+
191
+ wp_add_inline_style( 'yasrcss', $yasr_st_css );
192
+
193
+ }
194
+
195
+
196
 
197
  /****** Translating YASR ******/
198
 
lib/yasr-settings-functions.php CHANGED
@@ -1394,31 +1394,15 @@ add_action( 'admin_init', 'yasr_style_options_init' ); //This is for auto insert
1394
 
1395
  }
1396
 
 
 
 
1397
  add_settings_section( 'yasr_style_options_section_id', __('Style Options', 'yet-another-stars-rating'), 'yasr_style_section_callback', 'yasr_style_tab' );
1398
  add_settings_field( 'yasr_color_scheme_multiset', __('Which color scheme do you want to use?', 'yet-another-stars-rating') , 'yasr_color_scheme_multiset_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options);
 
 
1399
 
1400
- if (function_exists('yasr_st_upload_stars_callback')) {
1401
-
1402
- //If a default stars set was saved ...
1403
- if(array_key_exists('stars_set', $style_options)) {
1404
-
1405
- $style_options['custom_stars_set'] = FALSE; //..avoid undefined index
1406
-
1407
- }
1408
-
1409
- //else if a custom stars set was saved...
1410
- else {
1411
-
1412
- $style_options['stars_set'] = FALSE; //..avoid undefined index
1413
-
1414
- }
1415
-
1416
- add_settings_field( 'yasr_st_upload_stars', __('Select the set you\'ve uploaded', 'yet-another-stars-rating'), 'yasr_st_upload_stars_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options );
1417
- add_settings_field( 'yasr_st_choose_stars_radio', __('Choose Stars Set', 'yet-another-stars-rating'), 'yasr_st_choose_stars_radio_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options );
1418
-
1419
- }
1420
 
1421
- add_settings_field( 'yasr_style_options_textarea', __('Custom CSS Styles', 'yet-another-stars-rating'), 'yasr_style_options_textarea_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options );
1422
 
1423
  }
1424
 
1394
 
1395
  }
1396
 
1397
+ //filter $style_options
1398
+ $style_options = apply_filters('yasr_filter_style_options', $style_options);
1399
+
1400
  add_settings_section( 'yasr_style_options_section_id', __('Style Options', 'yet-another-stars-rating'), 'yasr_style_section_callback', 'yasr_style_tab' );
1401
  add_settings_field( 'yasr_color_scheme_multiset', __('Which color scheme do you want to use?', 'yet-another-stars-rating') , 'yasr_color_scheme_multiset_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options);
1402
+ do_action('yasr_style_options_add_settings_field', $style_options);
1403
+ add_settings_field( 'yasr_style_options_textarea', __('Custom CSS Styles', 'yet-another-stars-rating'), 'yasr_style_options_textarea_callback', 'yasr_style_tab', 'yasr_style_options_section_id', $style_options );
1404
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1405
 
 
1406
 
1407
  }
1408
 
lib/yasr-shortcode-functions.php CHANGED
@@ -239,7 +239,7 @@ add_shortcode ('yasr_visitor_votes', 'shortcode_visitor_votes_callback');
239
 
240
  $readonly = 'true'; //readonly is true if user isn't logged
241
 
242
- $span_after_rate_it = __("You must sign in to vote", 'yet-another-stars-rating');
243
 
244
  }
245
 
@@ -576,7 +576,7 @@ function yasr_visitor_multiset_callback ( $atts ) {
576
 
577
  $button = $button_html;
578
  $star_readonly = 'true';
579
- $span_message_content = __("You must sign in to vote", 'yet-another-stars-rating');;
580
 
581
  }
582
 
239
 
240
  $readonly = 'true'; //readonly is true if user isn't logged
241
 
242
+ $span_after_rate_it = "<span class=\"yasr-visitor-votes-must-sign-in\">" . __("You must sign in to vote", 'yet-another-stars-rating') . "</span>";
243
 
244
  }
245
 
576
 
577
  $button = $button_html;
578
  $star_readonly = 'true';
579
+ $span_message_content = "<span class=\"yasr-visitor-votes-must-sign-in\">" . __("You must sign in to vote", 'yet-another-stars-rating') . "</span>";
580
 
581
  }
582
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
4
  Requires at least: 4.3.0
5
  Contributors: Dudo
6
  Tested up to: 4.5
7
- Stable tag: 1.2.6
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
@@ -111,6 +111,14 @@ Of course not: you can easily add it on the visual editor just by clicking the "
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
 
 
 
114
  = 1.2.6 =
115
  * TWEAKED: removed get_currentuserinfo to use wp_get_current_user()
116
  * TWEAKED: removed unused div on yasr_most_or_highest_rated shortcode
@@ -150,462 +158,3 @@ Of course not: you can easily add it on the visual editor just by clicking the "
150
  * TWEAKED: shortcode creator is now above of tinymce. It now uses thickbox
151
  * TWEAKED: added filter 'yasr_filter_ip' to filter stored ip address
152
  * TWEAKED: code cleanup
153
-
154
- = 1.1.9 =
155
- * FIXED: yasr_visitor_votes doesn't get vote on mobile
156
-
157
- = 1.1.8 =
158
- * FIXED: added the rating type at the bottom of the post if no kind of rating exists for a post or page
159
-
160
- = 1.1.7 =
161
- * FIXED: filters on yasr_add_schema() functions
162
- * TWEAKED: disabled right click on rating
163
- * TWEAKED: install function is wrapped on register_activation_hook
164
-
165
-
166
- = 1.1.6 =
167
- * FIXED: Rich snippet non added in some cases
168
-
169
- = 1.1.5 =
170
- * TWEAKED: removed usless add_actions
171
-
172
- = 1.1.4 =
173
- * TWEAKED: added 2 new actions: yasr_action_on_overall_rating runs when the overall rating vote is insert or update, and yasr_action_on_visitor_vote runs when an user insert a vote and last yasr_action_on_update_visitor_vote that run when a logged in user update his vote
174
- * FIXED: changed to a lower priority on 2 actions
175
-
176
- = 1.1.3 =
177
- * NEW FEATURE: New widget in the dashboard: all the logged in user can now see the logs of their votes
178
- * FIXED: Insert new vote instead of update the old one if a logged in user try to vote an already rated post on archive pages
179
- * TWEAKED: Speed improvment on dashboard widget
180
- * TWEAKED: added html class on rankings
181
- * TWEAKED: improved feature with the user reviews extension
182
-
183
- = 1.1.2 =
184
- * FIXED: Yasr Stylish compatibility
185
- * TWEAKED: Minor changes.
186
-
187
- = 1.1.1 =
188
- * FIXED: Yasr Stylish compatibility
189
- * TWEAKED: changed extensions images
190
-
191
- = 1.1.0 =
192
- * Yasr is not anymore a freemium plugin: it works now with extensions that you can be installed through the settings panel
193
-
194
- = 1.0.7 =
195
- * FIXED: minor bugfix in settings page
196
-
197
- = 1.0.6 =
198
- * Added a new filter hook on microdata and jsonld info
199
- * Fixed php notice
200
-
201
- = 1.0.5 =
202
- * NEW FEATURE: In the Yasr code have been added a lot of hooks! This means that is much easier to develop Yasr. Further this, other developer can add their own extensions!
203
- * TWEAKED: Added the postid parameter on the yasr_multiset and yasr_visitor_multiset shortcodes
204
- * TWEAKED: Color scheme settings have been moved from "Multi Sets" tab on the "Styles" one.
205
-
206
- = 1.0.4 =
207
- * FIXED: yasr_visitor_votes didn't work if used the postid attribute
208
- * Code cleanup
209
-
210
- = 1.0.3 =
211
- * TWEAKED: shortcodes doesn't echo javascrfipt anymore. wp_localize_script is used instead
212
- * Minor changes on settings api
213
-
214
-
215
- = 1.0.2 =
216
- * TWEAKED: Max length for multiset fields in now 40 instead 23
217
- * FIXED: Fixed a bug in multiset editing
218
- * FIXED: Itemtype selection
219
- * FIXED: minor bugfixes
220
-
221
-
222
- = 1.0.1 =
223
- * NEW FEATURE: is now possible to choose a recipe as itemType for rich snippets
224
- * TWEAKED: moved from jquery(document).ready to DOMContentLoaded in some shortcodes
225
- * FIXED: various minor fixes
226
-
227
- = 1.0.0 =
228
- * TWEAK: Changed textdomain from 'yasr' to 'yet-another-stars-rating'.
229
-
230
- = 0.9.9 =
231
- * New feature: is now possible to choose between json-ld and microdata for rich snippet
232
-
233
- = 0.9.8 =
234
- * TWEAKED: All the schema info use now json-ld and not microdata anymore. There is no need anymore to the sentence of the end of post :)
235
- * FIXED: itemtype selection
236
- * FIXED: itemtype if not rating
237
- * FIXED: RTL support, thank's to Arik Numlock
238
-
239
- = 0.9.7 =
240
- * FIXED: bug with itemtype if yasr is not used in English
241
- * NEW FEATURE: in the settings, is now possible to choose the default itemtype for all posts/pages
242
-
243
- = 0.9.6 =
244
- * Fixed author missing in schema info if blogposting is used
245
- * Minor fix on schema
246
- * Code Cleanup
247
-
248
- * Fixed minor bug on schema info.
249
-
250
- = 0.9.5 =
251
- * Fixed div not created if schema info not present
252
-
253
- = 0.9.4 =
254
- * FIXED: all the ratings for a post or page get reset if choosen again the current schema type
255
- * FIXED: Schema errors
256
-
257
- = 0.9.3 =
258
- * NEW FEATURE: wp rocket support, thanks to geek press
259
- * FIXED: missing filed if a multiset element is leaved empty in the edit screen
260
-
261
- = 0.9.2 =
262
- * FIXED: bugfix on yasr_visitor_multiset
263
- * FIXED: wrong review type showed in editing screen
264
- * FIXED: could vote > 5 in overall rating if use digits instead of stars
265
- * FIXED: double voting in visitor multi set if "submit" button is pressed more than once
266
- * FIXED: progressbar in tooltips (thanks to Harry Milatz )
267
- * FIXED: minor security fix
268
-
269
- = 0.9.1 =
270
- * Security fix
271
-
272
- = 0.9.0 =
273
- * FIXED: Fixed bug in multisets (here https://wordpress.org/support/topic/half-stars-not-saving more info)
274
- * TWEAKED: Minor changes
275
-
276
- = 0.8.9 =
277
- * FIXED: Minor bugfixes for multisets and visitor multisets
278
-
279
-
280
- = 0.8.8 =
281
- * NEW FEATURE: it's now possible to add the attribute postid on these shortcodes: yasr_overall_rating, yasr_visitor_votes, yasr_visitor_votes_readonly. It is only necessary when you wish to show another post/page's votes
282
- * TWEAKED: Added facebook box in the settings
283
- * TWEAKED: storage of the ip adress
284
- * TWEAKED: Added Croatian language
285
- * FIXED: support for rtl
286
- * Minor bugfixes
287
-
288
-
289
- = 0.8.7 =
290
- * Minor changes and bugfixes
291
-
292
- = 0.8.6 =
293
- * Fixed bug on new installation if multi set are used
294
-
295
- = 0.8.5 =
296
- * TWEAKED: code changes and bug fixes on Multi Set shortcodes
297
-
298
- = 0.8.4 =
299
- * NEW FEATURE: User can customize text after Visitor Votes.
300
- * TWIKED: Visitor Votes have been partially rewritten, is much faster now
301
- * REMOVED: Removed jquery cookie
302
-
303
- = 0.8.3 =
304
- * NEW FEATURE: added shortcode yasr_visitor_multiset. Now everyone can vonte in a Multi Set!
305
- * FIXED: fixed schema type selection
306
- * Minor changes
307
-
308
- = 0.8.2 =
309
- * NEW FEATURE: added shortcode yasr_visitor_votes_readonly (thanks to Raul Illana for the idea)
310
- * NEW FEATURE: added support for wp super cache
311
- * TWIKED: color settings for multi sets was moved from general settings to multi sets tab
312
- * TWIKED: log widget is now fully translatable
313
- * TWIKED: added brasilian language
314
- * TWIKED: minor fixes for translation
315
-
316
- = 0.8.1 =
317
- * Fixed: Undefined variable in yasr_visitor_votes shortcode
318
- * Fixed: Fixed cursor style when is over the dashicon
319
- * Tweaked: Stars' description is now translatable
320
- * Twaeked: Dashicon doens't load if visitor stats are disabled
321
- * Tweaked: Italian translation
322
-
323
- = 0.8.0 =
324
- * Stats for visitor votes works now on click and not on hover
325
- * Buddypress compatibility
326
- * Huge code cleanup on yasr_visitor_votes shortcode
327
-
328
- = 0.7.9 =
329
- * Fixed bug inserted on 0.2.2 when a logged in user try to update his own vote
330
- * Minor changes on yasr_visitor_votes shortcode
331
-
332
- = 0.7.8 =
333
- * Fixed bug that occur when a post was rated from 2 users that use same browser
334
- * Switched cdn, from google to jquery
335
- * Persian Translation
336
-
337
- = 0.7.7 =
338
- * Removed an useless row in yasr_votes table.
339
- * Minor change on [yasr_top_5_reviewers] shortcode
340
- * Code cleanup
341
-
342
- = 0.7.6 =
343
- * Updated pro info.
344
- * .po file update
345
-
346
- = 0.7.5 =
347
- * Code cleanup and bugfix in yasr_visitor_votes shortcode
348
- * Updated Norwegian translation (Thanks to [Line](http://www.spilleautomatercasinobonuser.com))
349
-
350
- = 0.7.4 =
351
- * Security fix. Please update!
352
-
353
- = 0.7.3 =
354
- * Added support for plugins that adds class or attribute on images
355
- * Code cleanup
356
-
357
- = 0.7.2 =
358
- * Another bugfix on yasr_visitor_votes shortcode.
359
- * Minor changes
360
-
361
- = 0.7.1 =
362
- * Important change into yasr_visitor_votes shortcode
363
-
364
- = 0.7.0 =
365
- * Fixed bug for yasr_visitor_votes shortcode
366
-
367
- = 0.6.9 =
368
- * Yasr Visitor Votes shortag is finally avaible in archive pages!
369
- * Code cleanup on yasr visitor votes shortag
370
- * Javascript loaded again at the bottom in the frontend. Theme that doesn't use wp_footer will no be supported anymore
371
-
372
- = 0.6.8 =
373
- * In the front end, Javascript is loaded at the top of the page, cause out there still exists theme that doesn't use wp_footer function
374
- * Smaller bugfixes
375
- * French translation
376
-
377
- = 0.6.7 =
378
- * Small bugfix
379
-
380
- = 0.6.6 =
381
- * Bugfix: Auto insert in custom post type have been fixed
382
- * "stars" inside the stats tooltip is now translatable
383
-
384
- = 0.6.5 =
385
- * New feature! If you use Visitors Rating stars set, you can now see statistics by hovering the mouse on the text [Total: X Average:Y]
386
- * Bug fixes (stars changing size) in [yasr_visitor_rating]
387
- * Fixed typos
388
- * Huge cleanups
389
-
390
- = 0.6.3 =
391
- * Added Pro info in settings page
392
-
393
- = 0.6.2 =
394
- * Fixed bug for [yasr_overall_rating] in pages
395
- * Code cleanup in [yasr_overall_rating]
396
-
397
- = 0.6.1 =
398
- * Bugfix: fixed mysql error if inserted the overall rating vote if post wasn't saved yet
399
- * Fixed schema info when overall rating is used
400
- * Language fix on [yasr_most_or_highest_rated_posts]
401
-
402
- = 0.6.0 =
403
- * Bugfix: now it's not possible to vote 0
404
- * Code Cleanup in yasr-settings-page and added link to yasr site, www.yetanotherstarsrating.com
405
-
406
- = 0.5.9 =
407
- * New feature: When writing a post or a page it's now possible to select the category that you're reviewing. This is a good improvement for SEO.
408
- * Fixed loader when importing gd star rating data
409
- * Fixed loader in yasr-settings-page
410
-
411
- = 0.5.8 =
412
- * Changed description in yasr shortcode generator (transaltor please take a look to the .po file) and other languages fix.
413
- * Added the author info in the aggregate rating snippet
414
- * Minor bugfixes
415
-
416
- = 0.5.7 =
417
- * Bug fixes in [yasr_most_or_highest_rated_posts] chart
418
-
419
- = 0.5.6 =
420
- * Code cleanup and speed improvement on the [yasr_most_or_highest_rated_posts] chart
421
- * Bug fixes in setting page
422
-
423
- = 0.5.5 =
424
- * All the javascript have been moved from inline to external. It can be minimized so it's faster. DELETE ALL YOUR CACHES
425
- * Fixed a possible bug if user manually delete data in a table
426
-
427
- = 0.5.4 =
428
- * New feature: you can used numbers instead stars to insert the "overall rating" value. Just go in the setting and choose what you want to use
429
- * Fixed a division by 0 warning while using [yasr_most_or_highest_rated_posts] : this happened when there wan't enought data to shows
430
- * Many bux fix in [yasr_visitor_rating] : further this now it is faster
431
-
432
- = 0.5.3 =
433
- * Fixed a non closing div. This can cause problem when used in old template
434
-
435
- = 0.5.2 =
436
- * Bugfixes
437
-
438
- = 0.5.1 =
439
- * Added support for wordpress 4.0
440
- * Huge code cleanup in [yasr_visitor_votes]
441
-
442
- = 0.5.0 =
443
- * New feature: added auto insert for custom post types only (you will see this only if you use custom post types)
444
- * Various bugfixes
445
-
446
- = 0.4.9 =
447
- * Fixed bug in rich snippet
448
- * Under the hood changes and code cleanup
449
-
450
- = 0.4.8 =
451
- * Many bug fix and code changes for i18n
452
- * Yasr.css have been sperated in 2 files: 1 for admin and 1 for frontend
453
- * Added Italian translation
454
- * Many many other little bug fixes
455
-
456
- = 0.4.7 =
457
- * Visitor votes has changed: if an user is logged in, now it's possibile to update the given vote
458
- * Using css sprite instead of single images
459
- * Using only 2 css instead 4
460
- * Added German Translation (thanks to Josef Seidl)
461
-
462
- = 0.4.6 =
463
- * New feature: you can add your own css rules!
464
- * Popup shortcode creator use the built-in wordpress style, fresher and lighter
465
- * Fixed many bugs in shortcode [yasr_visitor_votes] : if you've had problem with a size that was not "large", try it now!
466
- * Swiched color for all stars set: yellow by default, red only when is active
467
- * Changed file name jquery.cookie.min.js in jquery-cookie.min.js, to avoid conflict with apache mod_security (thank's SubZeroD)
468
- * Many code changes
469
-
470
- = 0.4.5 =
471
- * New feature: Added custom post type support!
472
- * Some fixes while editing / updating a multi-set
473
- * Minor changes
474
-
475
- = 0.4.4 =
476
- * Code cleanup on chart Top 10 by visitors: on first load load it should be about 30% faster
477
- * Showing a spinning image while chart Top 10 by visitors is loading
478
-
479
- = 0.4.3 =
480
- * Chart Top 10 by visitors have been rewritten. Now it's much much faster
481
- * Added text on chart Top 10 overall ratings
482
- * Minor changes
483
-
484
- = 0.4.2 =
485
- * Fixed log table, last updated broke it
486
-
487
- = 0.4.1 =
488
- * Added 2 sizes for "overall_rating" and "visitor_votes" stars sets, now you can choose between 16px, 24px and 32px (default)
489
- * MANY code changes: it should be a little faster
490
- * Fixed typo errors
491
-
492
- = 0.4.0 =
493
- * Popup shortcode creator it's now tabbed and got a link to the new doc
494
- * Minor changes and bugfixes
495
-
496
- = 0.3.9 =
497
- * Fixed page exclusion
498
-
499
- = 0.3.8 =
500
- * Added new chart: Top 10 most rated / highest rated posts from visitors (show up only posts rated at least twice)
501
- * New setting: it's possibile now to explude pages from auto insert
502
- * Css changes
503
- * Various bugfixes
504
-
505
- = 0.3.7 =
506
- * Added new chart: Top 5 most active reviewers
507
- * Added new chart: Top 10 most active users (in visitor rating)
508
- * Changed popup for shortcode creator in visual editor, switched from thickbox to jquery ui dialog
509
- * Removed javascript error when the shortcode creator is called
510
- * Fixed multiset form editor
511
- * Various bugfixes
512
-
513
- = 0.3.6 =
514
- * Changed permission: now while writing a post or page everyone with a role >= author can insert votes
515
- * Some bugfixes
516
-
517
- = 0.3.5 =
518
- * Added a new dark style to better suite dark theme
519
- * Added a new custom text to show when a non logged user has voted
520
- * Css minor changes
521
-
522
- = 0.3.4 =
523
- * In settings page is now possible add some custom text to make appear before "Overall Rating" or "Visitor's Rating" are showed
524
- * In settings page is now possible to show "Overall Rating" only in the post / page or even in Home page, Archive Page, etc.
525
- * Removed bug that could appear in some case when removing or adding field in multiset form editor
526
- * After a multiset is created/edited now you get redirected on multiset settings tab and not in general settings
527
- * Various bugfixes
528
- * Under the hood changes
529
-
530
- = 0.3.3 =
531
- * Created a new shortcode that will allow to insert Top 10 highest rated product by author
532
- * When a post or page is permanently deleted, yasr will delete every votes for that post or page
533
- * Overall Rating is now avaible in home page and archive pages
534
- * Fixed "add element button" when only 1 multi set is used
535
- * Updated jquery cookie from 1.4.0 to 1.4.1 and minified it
536
- * Minor Bug fixes
537
-
538
-
539
- = 0.3.2 =
540
- * Forced multiset field name to be #555 . This is to avoid reading problem when using light font color
541
-
542
- = 0.3.1 =
543
- * Avoid multiple vote in a same post for logged in user
544
- * Bug fixes and cleanup
545
-
546
- = 0.3.0 =
547
- * Now admin can choose if allow only logged in users to vote or logged in and anonymous
548
- * Code cleanup and bug fixes
549
-
550
- = 0.2.10 =
551
- * Added loading image when ajax is called
552
- * Added "select button" when choosing a multi set
553
-
554
- = 0.2.9 =
555
- * Settings page has been rewritten: now it use multi tab navigation
556
-
557
- = 0.2.7 =
558
- * Many bug fixes on the settings page
559
- * Minor change and code cleanup
560
-
561
- = 0.2.5 =
562
- * Bug fix on multi set
563
-
564
- = 0.2.4 =
565
- * Now user can choose what kind of snippet use, if AggregateRating or Review
566
-
567
- = 0.2.3 =
568
- * [yasr_visitor_votes] it's now disabled outside a post or a page
569
- * Security fixes on ajax functions
570
- * Various fixes on multi-set settings
571
- * Code cleanup
572
-
573
- = 0.2.2 =
574
- * Fixed doulbe ajax request on overall rating when used just 1 multiple set
575
- * Many other minor bug fixes
576
-
577
- = 0.2.1 =
578
- * Fixed insert rating on multi set if only 1 is used
579
-
580
- = 0.2.0 =
581
- * Fixed Table installation
582
-
583
- = 0.1.3 =
584
- * Fixed some security issues. Please Update
585
-
586
- = 0.1.2 =
587
- * Fixed Multi Icons
588
-
589
- = 0.1.1 =
590
- * Changed stars icons, now using the oxygen one
591
- * Using big star when voting on multi set
592
-
593
- = 0.1.0 =
594
- * Added in admin dashboard votes log viewer
595
- * .Po file updated
596
- * Updated rateit to version 1.0.22
597
-
598
- = 0.0.4 =
599
- * Fixed creation of a new multi set
600
- * Added the opportunity to remove entire multi set
601
- * Code cleanup
602
-
603
- = 0.0.3 =
604
- * Fixed bug describe if
605
- * Code Cleanup
606
-
607
- = 0.0.2 =
608
- * Using input type radio when select a multi set instead select / option
609
- * Added css style for table showing multiset
610
- * Added yasr.css file
611
- * Some code cleanup
4
  Requires at least: 4.3.0
5
  Contributors: Dudo
6
  Tested up to: 4.5
7
+ Stable tag: 1.2.7
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
111
 
112
  == Changelog ==
113
 
114
+ The full changelog can be found in the plugin's directory. Recent entries:
115
+
116
+ = 1.2.7 =
117
+ * NEW FEATURE: a new flat stars set has been added! (Just go in the Yasr settings, --> Aspect & Styles, and choose the one you want!)
118
+ * TWEAKED: added filter and action on yasr style settings page
119
+ * TWEAKED: CSS changes. *** DELETE ALL YOUR CACHES ***
120
+ * TWEAKED: added class yasr-visitor-votes-must-sign-in on "You must sign in to vote" text
121
+
122
  = 1.2.6 =
123
  * TWEAKED: removed get_currentuserinfo to use wp_get_current_user()
124
  * TWEAKED: removed unused div on yasr_most_or_highest_rated shortcode
158
  * TWEAKED: shortcode creator is now above of tinymce. It now uses thickbox
159
  * TWEAKED: added filter 'yasr_filter_ip' to filter stored ip address
160
  * TWEAKED: code cleanup
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
yet-another-stars-rating.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Yet Another Stars Rating turn your WordPress into a complete review website.
6
- * Version: 1.2.6
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
- define('YASR_VERSION_NUM', '1.2.6');
36
 
37
  //Plugin relative path
38
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
@@ -162,6 +162,18 @@ if ($style_options) {
162
 
163
  }
164
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
  }
167
 
@@ -169,6 +181,7 @@ else {
169
 
170
  define ("YASR_CUSTOM_CSS_RULES", NULL);
171
  define ("YASR_SCHEME_COLOR", NULL);
 
172
 
173
 
174
  }
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Yet Another Stars Rating turn your WordPress into a complete review website.
6
+ * Version: 1.2.7
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
+ define('YASR_VERSION_NUM', '1.2.7');
36
 
37
  //Plugin relative path
38
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
162
 
163
  }
164
 
165
+ if(isset($style_options['stars_set_free'])) {
166
+
167
+ define ("YASR_STARS_SET", $style_options['stars_set_free']);
168
+
169
+ }
170
+
171
+ else {
172
+
173
+ define ("YASR_STARS_SET", NULL);
174
+
175
+ }
176
+
177
 
178
  }
179
 
181
 
182
  define ("YASR_CUSTOM_CSS_RULES", NULL);
183
  define ("YASR_SCHEME_COLOR", NULL);
184
+ define ("YASR_STARS_SET", NULL);
185
 
186
 
187
  }