Yasr – Yet Another Stars Rating - Version 2.9.2

Version Description

  • FIXED: rich snippets error that could occur in some circumstances
  • FIXED: css fix
  • TWEAKED: code cleanup
Download this release

Release Info

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

Code changes from version 2.9.1 to 2.9.2

admin/classes/Yasr_WP_List_Table.php CHANGED
@@ -322,7 +322,7 @@ class Yasr_WP_List_Table {
322
  * @since 3.1.0
323
  */
324
  public function no_items() {
325
- _e( 'No items found.' );
326
  }
327
 
328
  /**
@@ -582,9 +582,9 @@ class Yasr_WP_List_Table {
582
 
583
  $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
584
  ?>
585
- <label for="filter-by-date" class="screen-reader-text"><?php _e( 'Filter by date' ); ?></label>
586
  <select name="m" id="filter-by-date">
587
- <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
588
  <?php
589
  foreach ( $months as $arc_row ) {
590
  if ( 0 == $arc_row->year ) {
322
  * @since 3.1.0
323
  */
324
  public function no_items() {
325
+ esc_html_e( 'No items found.', 'yet-another-stars-rating' );
326
  }
327
 
328
  /**
582
 
583
  $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
584
  ?>
585
+ <label for="filter-by-date" class="screen-reader-text"><?php esc_html_e( 'Filter by date' ); ?></label>
586
  <select name="m" id="filter-by-date">
587
+ <option<?php selected( $m, 0 ); ?> value="0"><?php esc_html_e( 'All dates' ); ?></option>
588
  <?php
589
  foreach ( $months as $arc_row ) {
590
  if ( 0 == $arc_row->year ) {
admin/css/yasr-admin.css CHANGED
@@ -1,909 +1,909 @@
1
- .yasr-star-rating {
2
- width: 0;
3
- position: relative;
4
- display: inline-block;
5
- background-image: url(../../includes/img/star_0.svg);
6
- background-position: 0 0;
7
- background-repeat: repeat-x;
8
- }
9
-
10
- .yasr-star-rating[data-title]:hover:after {
11
- content: attr(data-title);
12
- padding: 4px 8px;
13
- color: #333;
14
- position: absolute;
15
- left: 0;
16
- top: 100%;
17
- z-index: 20;
18
- white-space: nowrap;
19
- -moz-border-radius: 5px;
20
- -webkit-border-radius: 5px;
21
- border-radius: 5px;
22
- -moz-box-shadow: 0px 0px 4px #222;
23
- -webkit-box-shadow: 0px 0px 4px #222;
24
- box-shadow: 0px 0px 4px #222;
25
- background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
26
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eeeeee), color-stop(1, #cccccc));
27
- background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
28
- background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
29
- background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
30
- background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
31
- }
32
-
33
- .yasr-star-rating .yasr-star-value {
34
- height: 100%;
35
- position: absolute;
36
- }
37
-
38
- .yasr-star-rating .yasr-star-value {
39
- position: absolute;
40
- height: 100%;
41
- width: 100%;
42
- background: url('../../includes/img/star_1.svg');
43
- background-repeat: repeat-x;
44
- }
45
-
46
-
47
- /********** Edit post / page rules **********/
48
-
49
- /*** Metabox top right ***/
50
-
51
- #yasr-matabox-top-right {
52
- text-align: center;
53
- }
54
-
55
- #yasr-overall-rating-text {
56
- display: block;
57
- }
58
-
59
- #yasr-vote-with-numbers-select-container {
60
- display: block;
61
- }
62
-
63
- .rich-snippet-title {
64
- font-weight: bold;
65
- margin-bottom: 5px;
66
- }
67
-
68
- /*** End metabox overall rating ***/
69
-
70
- #multi_rating_table {
71
- vertical-align: text-top;
72
- }
73
-
74
- .yasr-form-result {
75
- display: block;
76
- }
77
-
78
- /**** Metabox multi ****/
79
-
80
- .yasr-metabox-below-editor-content {
81
- border: 1px solid #DDD;
82
- padding-left: 15px;
83
- padding-bottom: 10px;
84
- padding-top: 15px;
85
- min-height: 200px;
86
- }
87
-
88
- .yasr-metabox-info-snippet-container {
89
- border: 1px solid #DDD;
90
- margin: 15px;
91
- padding: 5px;
92
- min-height: 50px;
93
- }
94
-
95
- .yasr-element-row-container-label-input {
96
- margin-left: 10px;
97
- margin-right: 10px;
98
- margin-top: 10px;
99
- }
100
-
101
- .yasr-element-row-container-label-input > label {
102
- display: inline-block;
103
- width: 130px;
104
- font-weight: bold;
105
- }
106
-
107
- .yasr-element-row-container-label-input > textarea {
108
- height: 7em;
109
- }
110
-
111
- .yasr-element-row-container-description {
112
- color: #737272;
113
- margin-top: 5px;
114
- margin-left: 10px;
115
- margin-bottom: 15px;
116
- }
117
-
118
- #yasr-multi-set-admin-choose-text {
119
- display: none;
120
- margin-bottom: 15px;
121
- margin-top: 10px;
122
- }
123
-
124
- #yasr-multi-set-admin-explain {
125
- display: none;
126
- margin-top: 20px;
127
- margin-left: 20px;
128
- }
129
-
130
-
131
- /************** Gutenberg *****************/
132
-
133
- .yasr-guten-block-panel {
134
- margin-top: 15px;
135
- }
136
-
137
- .yasr-guten-block-panel-center {
138
- text-align: center;
139
- }
140
-
141
- .yasr-guten-block-explain {
142
- display: block;
143
- font-style: italic;
144
- font-size: small;
145
- font-weight: bold;
146
- }
147
-
148
- /**************End Gutenberg *****************/
149
-
150
-
151
- /**************** Settings page *******************/
152
-
153
- /*** Top menu navigation ***/
154
- .yasr-no-underline {
155
- border-bottom: none !important;
156
- }
157
-
158
- .nav-tab-active, .nav-tab-active:hover {
159
- background-color: white;
160
- }
161
-
162
- .form-table th {
163
- border-right: 1px solid #ddd;
164
- }
165
- /** The rule above show a border in the table head **/
166
- .yasr-rankings th {
167
- border-right: none;
168
- }
169
-
170
- /*** End top navigation ***/
171
-
172
- .yasr-settings-table {
173
- min-height: 867px;
174
- display: block;
175
- }
176
-
177
- /*** On / Off Switch ***/
178
-
179
- .yasr-onoffswitch-big {
180
- position: relative;
181
- width: 85px;
182
- -webkit-user-select: none;
183
- -moz-user-select: none;
184
- -ms-user-select: none;
185
- }
186
-
187
- .yasr-onoffswitch-big-center{
188
- margin: 0 auto;
189
- text-align: left;
190
- }
191
-
192
- .yasr-onoffswitch-checkbox {
193
- display: none !important;
194
- }
195
-
196
- .yasr-onoffswitch-label {
197
- display: block;
198
- overflow: hidden;
199
- cursor: pointer;
200
- border: 2px solid #FFFFFF;
201
- border-radius: 35px;
202
- }
203
-
204
- .yasr-onoffswitch-inner {
205
- display: block;
206
- width: 200%;
207
- margin-left: -100%;
208
- transition: margin 0.3s ease-in 0s;
209
- }
210
-
211
- .yasr-onoffswitch-inner:before, .yasr-onoffswitch-inner:after {
212
- display: block;
213
- float: left;
214
- width: 50%;
215
- height: 30px;
216
- padding: 0;
217
- line-height: 30px;
218
- font-size: 18px;
219
- color: white;
220
- font-family: Trebuchet, Arial, sans-serif;
221
- font-weight: bold;
222
- box-sizing: border-box !important; /*important for Gutenberg compatibility*/
223
-
224
- }
225
-
226
- .yasr-onoffswitch-inner:before {
227
- content: "YES";
228
- padding-left: 9px;
229
- background-color: #EEEEEE;
230
- color: #34A7C1;
231
- }
232
-
233
- .yasr-onoffswitch-inner:after {
234
- content: "NO";
235
- padding-right: 15px;
236
- background-color: #EEEEEE;
237
- color: #999999;
238
- text-align: right;
239
- }
240
-
241
- .yasr-onoffswitch-switch {
242
- display: block;
243
- width: 30px;
244
- margin: 0px;
245
- background: #A1A1A1;
246
- position: absolute;
247
- top: 0;
248
- bottom: 0;
249
- right: 51px;
250
- border: 2px solid #FFFFFF;
251
- border-radius: 35px;
252
- transition: all 0.1s ease-in 0s;
253
- }
254
-
255
- .yasr-onoffswitch-checkbox:checked + .yasr-onoffswitch-label .yasr-onoffswitch-inner {
256
- margin-left: 0;
257
- }
258
-
259
- .yasr-onoffswitch-checkbox:checked + .yasr-onoffswitch-label .yasr-onoffswitch-switch {
260
- right: 0px;
261
- background-color: #34A7C1;
262
- }
263
-
264
- /* Alternative with ON/OFF INSTEAD YES/NO text */
265
- .yasr-onoffswitch-onoff-inner:before {
266
- content: "ON";
267
- padding-left: 15px;
268
- background-color: #EEEEEE;
269
- color: #34A7C1;
270
- }
271
-
272
- .yasr-onoffswitch-onoff-inner:after {
273
- content: "OFF";
274
- padding-right: 9px;
275
- background-color: #EEEEEE;
276
- color: #999999;
277
- text-align: right;
278
- }
279
-
280
- /* Alternative with no text */
281
- .yasr-onoffswitch-notext-inner:before {
282
- content: "";
283
- padding-left: 9px;
284
- background-color: #EEEEEE;
285
- color: #34A7C1;
286
- }
287
-
288
- .yasr-onoffswitch-notext-inner:after {
289
- content: "";
290
- padding-right: 15px;
291
- background-color: #EEEEEE;
292
- color: #999999;
293
- text-align: right;
294
- }
295
-
296
- /*** End on of switch ***/
297
-
298
- .yasr-settings-description {
299
- color: #3c434a;
300
- font-weight: 400;
301
- padding-left: 5px;
302
- padding-top: 5px;
303
- }
304
-
305
- /*This is the div with the created shortcode*/
306
-
307
- .yasr-builder-ranking-container{
308
- display: flex;
309
- flex-direction: row;
310
- flex-wrap: wrap;
311
- justify-content: space-between;
312
- align-items: stretch;
313
- align-content: stretch;
314
- padding-top: 10px;
315
- padding-bottom: 10px;
316
- padding-left: 10px;
317
- }
318
-
319
- .yasr-builder-shortcode-container {
320
- border: dashed 2px gray;
321
- margin-bottom: 20px;
322
- padding: 20px;
323
- }
324
-
325
- .yasr-rankings-div-shortcode {
326
- margin-bottom: 20px;
327
- }
328
-
329
- #yasr-builder-shortcode-buttons-container {
330
- padding-left: 10px;
331
- }
332
-
333
- #yasr-ranking-source{
334
- max-width: 165px;
335
- }
336
-
337
- #yasr-ranking-ctg-container {
338
- margin-top: 15px;
339
- padding-right: 15px;
340
- display: flex;
341
- flex-wrap: wrap;
342
- }
343
-
344
- #yasr-ranking-ctg-container > span {
345
- margin: 5px 7px 2px 5px;
346
- text-align: center;
347
- }
348
-
349
- /*Div padding*/
350
- .yasr-div-fixed-65 {
351
- flex-grow: 1;
352
- flex-basis: 65%;
353
- text-align: left;
354
- }
355
-
356
- .yasr-div-fixed-35 {
357
- flex-grow: 1;
358
- flex-basis: 35%;
359
- text-align: left;
360
- }
361
-
362
- @media (min-width: 1177px) {
363
-
364
- .yasr-settingsdiv {
365
- float: left;
366
- display: block;
367
- width: 65%;
368
- background-color: #FFF;
369
- border: 1px solid #DDD;
370
- padding-left: 15px;
371
- padding-right: 15px;
372
- padding-bottom: 10px;
373
- min-height: 560px;
374
- }
375
-
376
- .yasr-settingsdiv hr{
377
- border-top: 3px solid #ddd;
378
- }
379
-
380
- .yasr-donatedivdx {
381
- float: right;
382
- min-width: 250px;
383
- width: 15%;
384
- margin-bottom: 10px;
385
- background-color: #FFF;
386
- border: 1px solid #DDD;
387
- border-radius: 9px;
388
- padding: 20px;
389
- font-size: 14px;
390
- box-shadow: 0 0 5px 0 rgba(0,0,0,0.15);
391
- }
392
-
393
- }
394
-
395
- /*** Multi page rules ***/
396
-
397
- @media (max-width: 1176px) {
398
-
399
- .yasr-settingsdiv {
400
- float: left;
401
- display: block;
402
- width: 95%;
403
- background-color: #FFF;
404
- border: 1px solid #DDD;
405
- padding-left: 10px;
406
- padding-right: 10px;
407
- padding-bottom: 5px;
408
- }
409
-
410
- .yasr-donatedivdx {
411
- width: 95%;
412
- background-color: #FFF;
413
- margin-top: 10px;
414
- border: 1px solid #DDD;
415
- padding: 10px;
416
- font-size: 14px;
417
- }
418
-
419
- .yasr-clear-both-dynamic {
420
- padding-bottom: 15px;
421
- clear: both;
422
- }
423
-
424
- }
425
-
426
- .yasr-donate-title{
427
- margin-top: 0px;
428
- margin-bottom: 20px;
429
- padding-bottom: 10px;
430
- border-bottom: 1px solid #ddd;
431
- font-size: 1.3em;
432
- color: #23282d;
433
- display: block;
434
- font-weight: 600;
435
- }
436
-
437
- .yasr-donate-title a:hover, a:visited, a:link, a:active{
438
- text-decoration: none;
439
- }
440
-
441
- .yasr-donate-single-resource{
442
- margin-bottom: 12px;
443
- padding-bottom: 4px;
444
- border-bottom: 1px solid #ddd;
445
- display: block;
446
- }
447
-
448
- .yasr-donate-single-resource:last-child {
449
- border: none;
450
- margin-bottom: 0px;
451
- padding-bottom: 0px;
452
- }
453
-
454
- .yasr-donate-single-resource a{
455
- text-decoration: none;
456
- font-size: 15px;
457
- vertical-align: bottom;
458
- }
459
-
460
- .yasr-upgrade-to-pro {
461
- font-size: 14px;
462
- }
463
-
464
- .yasr-upgrade-to-pro li::before {
465
- margin-right: 7px;
466
- left: 0;
467
- font-weight: 700;
468
- content: "+";
469
- }
470
-
471
- .yasr-option-div {
472
- vertical-align: bottom;
473
- display: block;
474
- margin-bottom: 15px;
475
- }
476
-
477
- .yasr-img-option-size {
478
- vertical-align: middle;
479
- }
480
-
481
- .yasr-text-options-size {
482
- height: 30px;
483
- vertical-align: middle;
484
- padding-left: 8px;
485
- }
486
-
487
- #yasr-color-scheme-preview {
488
- border: 2px dashed #CCC;
489
- padding: 15px;
490
- margin: 10px;
491
- }
492
-
493
- .yasr-help-box-settings {
494
- display: none;
495
- border: 2px dashed #CCC;
496
- padding: 15px;
497
- margin: 10px;
498
- }
499
-
500
- .yasr-list-set-table {
501
- margin-left: 5px;
502
- }
503
-
504
- .yasr-space-settings-div {
505
- padding-bottom: 15px;
506
- clear: both;
507
- }
508
-
509
- .yasr-settings-row-24 {
510
- padding-left: 10px;
511
- display: flex;
512
- flex-wrap: wrap;
513
- }
514
-
515
- .yasr-settings-row-24 > div {
516
- flex: 0 0 24%;
517
- padding-top: 30px;
518
- }
519
-
520
- .yasr-settings-row-33 {
521
- padding-left: 10px;
522
- display: flex;
523
- flex-wrap: wrap;
524
- }
525
-
526
- .yasr-settings-row-33 > div {
527
- flex: 0 0 33%;
528
- padding-top: 30px;
529
- }
530
-
531
- .yasr-settings-row-35 {
532
- padding-left: 10px;
533
- display: flex;
534
- flex-wrap: wrap;
535
- }
536
-
537
- .yasr-settings-row-35 > div {
538
- flex: 0 0 35%;
539
- padding-top: 20px;
540
- }
541
-
542
- .yasr-settings-row-45 {
543
- padding-left: 10px;
544
- display: flex;
545
- flex-wrap: wrap;
546
- justify-content: space-between;
547
- }
548
-
549
- .yasr-settings-row-45 > div {
550
- /*It is 45 and applied space between*/
551
- flex: 0 0 45%;
552
- }
553
-
554
- .yasr-settings-row {
555
- display: flex;
556
- justify-content: space-between;
557
- }
558
-
559
- .yasr-settings-col-20 {
560
- flex: 0 0 30%;
561
- }
562
-
563
- .yasr-settings-col-30 {
564
- flex: 0 0 30%;
565
- }
566
-
567
- .yasr-settings-col-40 {
568
- flex: 0 0 40%;
569
- }
570
-
571
- .yasr-settings-col-50 {
572
- flex: 0 0 50%;
573
- }
574
-
575
- .yasr-settings-col-60 {
576
- flex: 0 0 60%;
577
- }
578
-
579
- .yasr-settings-col-70 {
580
- flex: 0 0 60%;
581
- }
582
-
583
- .yasr-settings-padding-left {
584
- padding-left: 10px;
585
- }
586
-
587
- .yasr-indented-answer {
588
- margin-top: 3px;
589
- margin-left: 10px;
590
- }
591
-
592
-
593
- /*** Rules for Multi set page ***/
594
-
595
- .yasr-multi-set-form-headers {
596
- text-align: center;
597
- }
598
-
599
- .yasr-multi-set-left {
600
- float: left;
601
- width: 40%;
602
- }
603
-
604
- .yasr-multi-set-right {
605
- float: right;
606
- width: 55%;
607
- }
608
-
609
- .yasr-new-multi-set {
610
- overflow: auto;
611
- margin-top: 10px;
612
- padding: 8px;
613
- border: 1px solid #DDD;
614
- background-color: #f7f7f7;
615
- }
616
-
617
- .yasr-manage-multiset {
618
- overflow: auto;
619
- margin-top: 10px;
620
- padding: 8px;
621
- border: 1px solid #DDD;
622
- background-color: #f7f7f7;
623
- }
624
-
625
- .yasr-manage-multiset-single {
626
- overflow: auto;
627
- margin-top: 10px;
628
- padding: 8px;
629
- border: 1px solid #DDD;
630
- background-color: #f7f7f7;
631
- }
632
-
633
-
634
- .yasr-input-text-multi-set {
635
- margin-left: 30px;
636
- margin-bottom: 10px;
637
- }
638
-
639
- #yasr-multi-set-response {
640
- margin-top: 10px;
641
- padding: 10px;
642
- border: 1px solid #DDD;
643
- background-color: #f7f7f7;
644
- }
645
-
646
- #yasr-multi-set-response2 {
647
- margin-top: 10px;
648
- padding: 10px;
649
- border: 1px solid #DDD;
650
- background-color: #f7f7f7;
651
- }
652
-
653
- #yasr-multi-set-doc-box {
654
- border: 2px dashed #CCC;
655
- padding: 15px;
656
- margin: 30px;
657
- }
658
-
659
- #yasr-table-form-edit-multi-set {
660
- width: 100%;
661
- }
662
-
663
- #yasr-table-form-edit-multi-set-header {
664
- text-align: center;
665
- padding: 5px;
666
- }
667
-
668
- #yasr-table-form-edit-multi-set-remove {
669
- text-align: center;
670
- padding: 5px;
671
- }
672
-
673
- .yasr-edit-form-remove-entire-set {
674
- padding-top: 30px;
675
- padding-bottom: 30px;
676
- text-align: center;
677
- color: red;
678
- }
679
-
680
- .yasr_table_multi_set_admin {
681
- border: 1px solid rgba(0, 0, 0, 0.1);
682
- padding: 10px;
683
- font-size: 20px;
684
- }
685
-
686
- @media (min-width: 972px) {
687
- .yasr_table_multi_set_admin {
688
- width: 70%;
689
- }
690
- }
691
-
692
-
693
- @media (max-width: 971px) {
694
- .yasr_table_multi_set_admin {
695
- width: 90%;
696
- }
697
- }
698
-
699
- .yasr_table_multi_set_admin td {
700
- width: 50%
701
- }
702
-
703
- .yasr_table_multi_set_admin tr:nth-child(odd) {
704
- background: #feffd3;
705
- }
706
-
707
- /* Define the background color for all the EVEN background rows */
708
- .yasr_table_multi_set_admin tr:nth-child(even) {
709
- background: #FFFFFF;
710
- }
711
-
712
-
713
- .yasr-multi-set-choose-theme {
714
- clear: both;
715
- padding: 10px;
716
- border: 1px solid #DDD;
717
- background-color: #f7f7f7;
718
- }
719
-
720
-
721
- /*** End rules for multi set admin page ***/
722
-
723
- /**** Yasr Aspect & Styles tab ***/
724
-
725
- .yasr-select-img-container > div {
726
- display: inline-block;
727
- padding-left: 15px;
728
- }
729
-
730
- .yasr-select-img-container > span {
731
- padding-top: 10px;
732
- }
733
-
734
- div.yasr-select-img-container input {
735
- display: block;
736
- margin: 10px 0 5px 8px !important;
737
- }
738
-
739
- #yasr-settings-stylish-image {
740
- max-width: 100%;
741
- height: auto;
742
- }
743
-
744
- #yasr-settings-stylish-image:hover {
745
- opacity: 0.4;
746
- }
747
-
748
- @media (max-width: 575px) {
749
-
750
- #yasr-settings-stylish-text {
751
-
752
- width: 50%;
753
- margin: auto;
754
- position: relative;
755
- top: -140px;
756
- background-color: #ffffff;
757
- border: 1px solid black;
758
- opacity: 0.8;
759
- font-size: 2vh;
760
- padding: 15px;
761
- visibility: hidden;
762
-
763
- }
764
-
765
- }
766
-
767
-
768
- @media (min-width: 576px) {
769
-
770
- #yasr-settings-stylish-text {
771
-
772
- width: 50%;
773
- margin: auto;
774
- position: relative;
775
- top: -288px;
776
- background-color: #ffffff;
777
- border: 2px solid black;
778
- opacity: 0.8;
779
- font-size: 2vh;
780
- padding: 15px;
781
- visibility: hidden;
782
-
783
- }
784
-
785
- }
786
-
787
-
788
- /**** End Yasr Aspect & Styles tab ***/
789
-
790
- /**** Migration Tools Page ****/
791
-
792
- .title-plugin-found{
793
- font-size: 18px;
794
- font-weight: bold;
795
- color: #2ca02c;
796
- }
797
-
798
- .title-noplugin-found{
799
- font-size: 18px;
800
- font-weight: bold;
801
- color: #ff4141;
802
- display: block;
803
- }
804
-
805
- .yasr-alert-box {
806
- margin-top: 15px;
807
- margin-bottom: 15px;
808
- margin-left: 10px;
809
- padding: 10px;
810
- padding-left: 30px;
811
- border: #ff806e 2px dashed;
812
- width: 70%;
813
- }
814
-
815
- /**** End Migration Tools Page ****/
816
-
817
-
818
- /*** Popup in tinymce ***/
819
-
820
-
821
- .yasr-underline {
822
- border-bottom: 1px solid #CCC !important;
823
- }
824
-
825
- #yasr-tinypopup-link-doc {
826
- float: right;
827
- font-size: 12px;
828
- }
829
-
830
- #yasr-overall-choose-size {
831
- display: none;
832
- margin-top: 20px;
833
- border: 2px dashed #CCC;
834
- padding-bottom: 10px;
835
- margin-left: 8px;
836
- padding-left: 8px;
837
- }
838
-
839
- .yasr-tinymce-button-size {
840
- padding-top: 5px;
841
- }
842
-
843
- #yasr-visitor-choose-size {
844
- display: none;
845
- margin-top: 20px;
846
- border: 2px dashed #CCC;
847
- padding-bottom: 10px;
848
- margin-left: 8px;
849
- padding-left: 8px;
850
- }
851
-
852
-
853
- /*** End popup tinymce***/
854
-
855
-
856
- .yasr-log-container {
857
- width: 98%;
858
- }
859
-
860
- .yasr-log-div-child {
861
- padding-top: 5px;
862
- border-bottom: 1px solid #BBD8E7;
863
- padding-bottom: 20px;
864
- }
865
-
866
- .yasr-log-image {
867
- list-style-type: none;
868
- display: inline-block;
869
- float: left;
870
- }
871
-
872
- .yasr-log-child-head {
873
- padding-left: 37px;
874
- }
875
-
876
- #yasr-log-vote {
877
- color: red;
878
- }
879
-
880
- #yasr-log-vote-users {
881
- color: green;
882
- }
883
-
884
- .yasr-log-post {
885
- color: #2683AE;
886
- }
887
-
888
- .yasr-log-ip-date {
889
- padding-top: 5px;
890
- }
891
-
892
- .yasr-log-ip {
893
- float: left;
894
- padding-left: 5px;
895
- }
896
-
897
- .yasr-log-date {
898
- float: right;
899
- }
900
-
901
- #yasr-log-next-rows {
902
- padding-top: 15px;
903
- text-align: right;
904
- }
905
-
906
- #yasr-log-page-navigation {
907
- padding-top: 7px;
908
- text-align: center;
909
  }
1
+ .yasr-star-rating {
2
+ width: 0;
3
+ position: relative;
4
+ display: inline-block;
5
+ background-image: url(../../includes/img/star_0.svg);
6
+ background-position: 0 0;
7
+ background-repeat: repeat-x;
8
+ }
9
+
10
+ .yasr-star-rating[data-title]:hover:after {
11
+ content: attr(data-title);
12
+ padding: 4px 8px;
13
+ color: #333;
14
+ position: absolute;
15
+ left: 0;
16
+ top: 100%;
17
+ z-index: 20;
18
+ white-space: nowrap;
19
+ -moz-border-radius: 5px;
20
+ -webkit-border-radius: 5px;
21
+ border-radius: 5px;
22
+ -moz-box-shadow: 0px 0px 4px #222;
23
+ -webkit-box-shadow: 0px 0px 4px #222;
24
+ box-shadow: 0px 0px 4px #222;
25
+ background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
26
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eeeeee), color-stop(1, #cccccc));
27
+ background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
28
+ background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
29
+ background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
30
+ background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
31
+ }
32
+
33
+ .yasr-star-rating .yasr-star-value {
34
+ height: 100%;
35
+ position: absolute;
36
+ }
37
+
38
+ .yasr-star-rating .yasr-star-value {
39
+ position: absolute;
40
+ height: 100%;
41
+ width: 100%;
42
+ background: url('../../includes/img/star_1.svg');
43
+ background-repeat: repeat-x;
44
+ }
45
+
46
+
47
+ /********** Edit post / page rules **********/
48
+
49
+ /*** Metabox top right ***/
50
+
51
+ #yasr-matabox-top-right {
52
+ text-align: center;
53
+ }
54
+
55
+ #yasr-overall-rating-text {
56
+ display: block;
57
+ }
58
+
59
+ #yasr-vote-with-numbers-select-container {
60
+ display: block;
61
+ }
62
+
63
+ .rich-snippet-title {
64
+ font-weight: bold;
65
+ margin-bottom: 5px;
66
+ }
67
+
68
+ /*** End metabox overall rating ***/
69
+
70
+ #multi_rating_table {
71
+ vertical-align: text-top;
72
+ }
73
+
74
+ .yasr-form-result {
75
+ display: block;
76
+ }
77
+
78
+ /**** Metabox multi ****/
79
+
80
+ .yasr-metabox-below-editor-content {
81
+ border: 1px solid #DDD;
82
+ padding-left: 15px;
83
+ padding-bottom: 10px;
84
+ padding-top: 15px;
85
+ min-height: 200px;
86
+ }
87
+
88
+ .yasr-metabox-info-snippet-container {
89
+ border: 1px solid #DDD;
90
+ margin: 15px;
91
+ padding: 5px;
92
+ min-height: 50px;
93
+ }
94
+
95
+ .yasr-element-row-container-label-input {
96
+ margin-left: 10px;
97
+ margin-right: 10px;
98
+ margin-top: 10px;
99
+ }
100
+
101
+ .yasr-element-row-container-label-input > label {
102
+ display: inline-block;
103
+ width: 130px;
104
+ font-weight: bold;
105
+ }
106
+
107
+ .yasr-element-row-container-label-input > textarea {
108
+ height: 7em;
109
+ }
110
+
111
+ .yasr-element-row-container-description {
112
+ color: #737272;
113
+ margin-top: 5px;
114
+ margin-left: 10px;
115
+ margin-bottom: 15px;
116
+ }
117
+
118
+ #yasr-multi-set-admin-choose-text {
119
+ display: none;
120
+ margin-bottom: 15px;
121
+ margin-top: 10px;
122
+ }
123
+
124
+ #yasr-multi-set-admin-explain {
125
+ display: none;
126
+ margin-top: 20px;
127
+ margin-left: 20px;
128
+ }
129
+
130
+
131
+ /************** Gutenberg *****************/
132
+
133
+ .yasr-guten-block-panel {
134
+ margin-top: 15px;
135
+ }
136
+
137
+ .yasr-guten-block-panel-center {
138
+ text-align: center;
139
+ }
140
+
141
+ .yasr-guten-block-explain {
142
+ display: block;
143
+ font-style: italic;
144
+ font-size: small;
145
+ font-weight: bold;
146
+ }
147
+
148
+ /**************End Gutenberg *****************/
149
+
150
+
151
+ /**************** Settings page *******************/
152
+
153
+ /*** Top menu navigation ***/
154
+ .yasr-no-underline {
155
+ border-bottom: none !important;
156
+ }
157
+
158
+ .nav-tab-active, .nav-tab-active:hover {
159
+ background-color: white;
160
+ }
161
+
162
+ .form-table th {
163
+ border-right: 1px solid #ddd;
164
+ }
165
+ /** The rule above show a border in the table head **/
166
+ .yasr-rankings th {
167
+ border-right: none;
168
+ }
169
+
170
+ /*** End top navigation ***/
171
+
172
+ .yasr-settings-table {
173
+ min-height: 1136px;
174
+ display: block;
175
+ }
176
+
177
+ /*** On / Off Switch ***/
178
+
179
+ .yasr-onoffswitch-big {
180
+ position: relative;
181
+ width: 85px;
182
+ -webkit-user-select: none;
183
+ -moz-user-select: none;
184
+ -ms-user-select: none;
185
+ }
186
+
187
+ .yasr-onoffswitch-big-center{
188
+ margin: 0 auto;
189
+ text-align: left;
190
+ }
191
+
192
+ .yasr-onoffswitch-checkbox {
193
+ display: none !important;
194
+ }
195
+
196
+ .yasr-onoffswitch-label {
197
+ display: block;
198
+ overflow: hidden;
199
+ cursor: pointer;
200
+ border: 2px solid #FFFFFF;
201
+ border-radius: 35px;
202
+ }
203
+
204
+ .yasr-onoffswitch-inner {
205
+ display: block;
206
+ width: 200%;
207
+ margin-left: -100%;
208
+ transition: margin 0.3s ease-in 0s;
209
+ }
210
+
211
+ .yasr-onoffswitch-inner:before, .yasr-onoffswitch-inner:after {
212
+ display: block;
213
+ float: left;
214
+ width: 50%;
215
+ height: 30px;
216
+ padding: 0;
217
+ line-height: 30px;
218
+ font-size: 18px;
219
+ color: white;
220
+ font-family: Trebuchet, Arial, sans-serif;
221
+ font-weight: bold;
222
+ box-sizing: border-box !important; /*important for Gutenberg compatibility*/
223
+
224
+ }
225
+
226
+ .yasr-onoffswitch-inner:before {
227
+ content: "YES";
228
+ padding-left: 9px;
229
+ background-color: #EEEEEE;
230
+ color: #34A7C1;
231
+ }
232
+
233
+ .yasr-onoffswitch-inner:after {
234
+ content: "NO";
235
+ padding-right: 15px;
236
+ background-color: #EEEEEE;
237
+ color: #999999;
238
+ text-align: right;
239
+ }
240
+
241
+ .yasr-onoffswitch-switch {
242
+ display: block;
243
+ width: 30px;
244
+ margin: 0px;
245
+ background: #A1A1A1;
246
+ position: absolute;
247
+ top: 0;
248
+ bottom: 0;
249
+ right: 51px;
250
+ border: 2px solid #FFFFFF;
251
+ border-radius: 35px;
252
+ transition: all 0.1s ease-in 0s;
253
+ }
254
+
255
+ .yasr-onoffswitch-checkbox:checked + .yasr-onoffswitch-label .yasr-onoffswitch-inner {
256
+ margin-left: 0;
257
+ }
258
+
259
+ .yasr-onoffswitch-checkbox:checked + .yasr-onoffswitch-label .yasr-onoffswitch-switch {
260
+ right: 0px;
261
+ background-color: #34A7C1;
262
+ }
263
+
264
+ /* Alternative with ON/OFF INSTEAD YES/NO text */
265
+ .yasr-onoffswitch-onoff-inner:before {
266
+ content: "ON";
267
+ padding-left: 15px;
268
+ background-color: #EEEEEE;
269
+ color: #34A7C1;
270
+ }
271
+
272
+ .yasr-onoffswitch-onoff-inner:after {
273
+ content: "OFF";
274
+ padding-right: 9px;
275
+ background-color: #EEEEEE;
276
+ color: #999999;
277
+ text-align: right;
278
+ }
279
+
280
+ /* Alternative with no text */
281
+ .yasr-onoffswitch-notext-inner:before {
282
+ content: "";
283
+ padding-left: 9px;
284
+ background-color: #EEEEEE;
285
+ color: #34A7C1;
286
+ }
287
+
288
+ .yasr-onoffswitch-notext-inner:after {
289
+ content: "";
290
+ padding-right: 15px;
291
+ background-color: #EEEEEE;
292
+ color: #999999;
293
+ text-align: right;
294
+ }
295
+
296
+ /*** End on of switch ***/
297
+
298
+ .yasr-settings-description {
299
+ color: #3c434a;
300
+ font-weight: 400;
301
+ padding-left: 5px;
302
+ padding-top: 5px;
303
+ }
304
+
305
+ /*This is the div with the created shortcode*/
306
+
307
+ .yasr-builder-ranking-container{
308
+ display: flex;
309
+ flex-direction: row;
310
+ flex-wrap: wrap;
311
+ justify-content: space-between;
312
+ align-items: stretch;
313
+ align-content: stretch;
314
+ padding-top: 10px;
315
+ padding-bottom: 10px;
316
+ padding-left: 10px;
317
+ }
318
+
319
+ .yasr-builder-shortcode-container {
320
+ border: dashed 2px gray;
321
+ margin-bottom: 20px;
322
+ padding: 20px;
323
+ }
324
+
325
+ .yasr-rankings-div-shortcode {
326
+ margin-bottom: 20px;
327
+ }
328
+
329
+ #yasr-builder-shortcode-buttons-container {
330
+ padding-left: 10px;
331
+ }
332
+
333
+ #yasr-ranking-source{
334
+ max-width: 165px;
335
+ }
336
+
337
+ #yasr-ranking-ctg-container {
338
+ margin-top: 15px;
339
+ padding-right: 15px;
340
+ display: flex;
341
+ flex-wrap: wrap;
342
+ }
343
+
344
+ #yasr-ranking-ctg-container > span {
345
+ margin: 5px 7px 2px 5px;
346
+ text-align: center;
347
+ }
348
+
349
+ /*Div padding*/
350
+ .yasr-div-fixed-65 {
351
+ flex-grow: 1;
352
+ flex-basis: 65%;
353
+ text-align: left;
354
+ }
355
+
356
+ .yasr-div-fixed-35 {
357
+ flex-grow: 1;
358
+ flex-basis: 35%;
359
+ text-align: left;
360
+ }
361
+
362
+ @media (min-width: 1177px) {
363
+
364
+ .yasr-settingsdiv {
365
+ float: left;
366
+ display: block;
367
+ width: 65%;
368
+ background-color: #FFF;
369
+ border: 1px solid #DDD;
370
+ padding-left: 15px;
371
+ padding-right: 15px;
372
+ padding-bottom: 10px;
373
+ min-height: 560px;
374
+ }
375
+
376
+ .yasr-settingsdiv hr{
377
+ border-top: 3px solid #ddd;
378
+ }
379
+
380
+ .yasr-donatedivdx {
381
+ float: right;
382
+ min-width: 250px;
383
+ width: 15%;
384
+ margin-bottom: 10px;
385
+ background-color: #FFF;
386
+ border: 1px solid #DDD;
387
+ border-radius: 9px;
388
+ padding: 20px;
389
+ font-size: 14px;
390
+ box-shadow: 0 0 5px 0 rgba(0,0,0,0.15);
391
+ }
392
+
393
+ }
394
+
395
+ /*** Multi page rules ***/
396
+
397
+ @media (max-width: 1176px) {
398
+
399
+ .yasr-settingsdiv {
400
+ float: left;
401
+ display: block;
402
+ width: 95%;
403
+ background-color: #FFF;
404
+ border: 1px solid #DDD;
405
+ padding-left: 10px;
406
+ padding-right: 10px;
407
+ padding-bottom: 5px;
408
+ }
409
+
410
+ .yasr-donatedivdx {
411
+ width: 95%;
412
+ background-color: #FFF;
413
+ margin-top: 10px;
414
+ border: 1px solid #DDD;
415
+ padding: 10px;
416
+ font-size: 14px;
417
+ }
418
+
419
+ .yasr-clear-both-dynamic {
420
+ padding-bottom: 15px;
421
+ clear: both;
422
+ }
423
+
424
+ }
425
+
426
+ .yasr-donate-title{
427
+ margin-top: 0px;
428
+ margin-bottom: 20px;
429
+ padding-bottom: 10px;
430
+ border-bottom: 1px solid #ddd;
431
+ font-size: 1.3em;
432
+ color: #23282d;
433
+ display: block;
434
+ font-weight: 600;
435
+ }
436
+
437
+ .yasr-donate-title a:hover, a:visited, a:link, a:active{
438
+ text-decoration: none;
439
+ }
440
+
441
+ .yasr-donate-single-resource{
442
+ margin-bottom: 12px;
443
+ padding-bottom: 4px;
444
+ border-bottom: 1px solid #ddd;
445
+ display: block;
446
+ }
447
+
448
+ .yasr-donate-single-resource:last-child {
449
+ border: none;
450
+ margin-bottom: 0px;
451
+ padding-bottom: 0px;
452
+ }
453
+
454
+ .yasr-donate-single-resource a{
455
+ text-decoration: none;
456
+ font-size: 15px;
457
+ vertical-align: bottom;
458
+ }
459
+
460
+ .yasr-upgrade-to-pro {
461
+ font-size: 14px;
462
+ }
463
+
464
+ .yasr-upgrade-to-pro li::before {
465
+ margin-right: 7px;
466
+ left: 0;
467
+ font-weight: 700;
468
+ content: "+";
469
+ }
470
+
471
+ .yasr-option-div {
472
+ vertical-align: bottom;
473
+ display: block;
474
+ margin-bottom: 15px;
475
+ }
476
+
477
+ .yasr-img-option-size {
478
+ vertical-align: middle;
479
+ }
480
+
481
+ .yasr-text-options-size {
482
+ height: 30px;
483
+ vertical-align: middle;
484
+ padding-left: 8px;
485
+ }
486
+
487
+ #yasr-color-scheme-preview {
488
+ border: 2px dashed #CCC;
489
+ padding: 15px;
490
+ margin: 10px;
491
+ }
492
+
493
+ .yasr-help-box-settings {
494
+ display: none;
495
+ border: 2px dashed #CCC;
496
+ padding: 15px;
497
+ margin: 10px;
498
+ }
499
+
500
+ .yasr-list-set-table {
501
+ margin-left: 5px;
502
+ }
503
+
504
+ .yasr-space-settings-div {
505
+ padding-bottom: 15px;
506
+ clear: both;
507
+ }
508
+
509
+ .yasr-settings-row-24 {
510
+ padding-left: 10px;
511
+ display: flex;
512
+ flex-wrap: wrap;
513
+ }
514
+
515
+ .yasr-settings-row-24 > div {
516
+ flex: 0 0 24%;
517
+ padding-top: 30px;
518
+ }
519
+
520
+ .yasr-settings-row-33 {
521
+ padding-left: 10px;
522
+ display: flex;
523
+ flex-wrap: wrap;
524
+ }
525
+
526
+ .yasr-settings-row-33 > div {
527
+ flex: 0 0 33%;
528
+ padding-top: 30px;
529
+ }
530
+
531
+ .yasr-settings-row-35 {
532
+ padding-left: 10px;
533
+ display: flex;
534
+ flex-wrap: wrap;
535
+ }
536
+
537
+ .yasr-settings-row-35 > div {
538
+ flex: 0 0 35%;
539
+ padding-top: 20px;
540
+ }
541
+
542
+ .yasr-settings-row-45 {
543
+ padding-left: 10px;
544
+ display: flex;
545
+ flex-wrap: wrap;
546
+ justify-content: space-between;
547
+ }
548
+
549
+ .yasr-settings-row-45 > div {
550
+ /*It is 45 and applied space between*/
551
+ flex: 0 0 45%;
552
+ }
553
+
554
+ .yasr-settings-row {
555
+ display: flex;
556
+ justify-content: space-between;
557
+ }
558
+
559
+ .yasr-settings-col-20 {
560
+ flex: 0 0 30%;
561
+ }
562
+
563
+ .yasr-settings-col-30 {
564
+ flex: 0 0 30%;
565
+ }
566
+
567
+ .yasr-settings-col-40 {
568
+ flex: 0 0 40%;
569
+ }
570
+
571
+ .yasr-settings-col-50 {
572
+ flex: 0 0 50%;
573
+ }
574
+
575
+ .yasr-settings-col-60 {
576
+ flex: 0 0 60%;
577
+ }
578
+
579
+ .yasr-settings-col-70 {
580
+ flex: 0 0 60%;
581
+ }
582
+
583
+ .yasr-settings-padding-left {
584
+ padding-left: 10px;
585
+ }
586
+
587
+ .yasr-indented-answer {
588
+ margin-top: 3px;
589
+ margin-left: 10px;
590
+ }
591
+
592
+
593
+ /*** Rules for Multi set page ***/
594
+
595
+ .yasr-multi-set-form-headers {
596
+ text-align: center;
597
+ }
598
+
599
+ .yasr-multi-set-left {
600
+ float: left;
601
+ width: 40%;
602
+ }
603
+
604
+ .yasr-multi-set-right {
605
+ float: right;
606
+ width: 55%;
607
+ }
608
+
609
+ .yasr-new-multi-set {
610
+ overflow: auto;
611
+ margin-top: 10px;
612
+ padding: 8px;
613
+ border: 1px solid #DDD;
614
+ background-color: #f7f7f7;
615
+ }
616
+
617
+ .yasr-manage-multiset {
618
+ overflow: auto;
619
+ margin-top: 10px;
620
+ padding: 8px;
621
+ border: 1px solid #DDD;
622
+ background-color: #f7f7f7;
623
+ }
624
+
625
+ .yasr-manage-multiset-single {
626
+ overflow: auto;
627
+ margin-top: 10px;
628
+ padding: 8px;
629
+ border: 1px solid #DDD;
630
+ background-color: #f7f7f7;
631
+ }
632
+
633
+
634
+ .yasr-input-text-multi-set {
635
+ margin-left: 30px;
636
+ margin-bottom: 10px;
637
+ }
638
+
639
+ #yasr-multi-set-response {
640
+ margin-top: 10px;
641
+ padding: 10px;
642
+ border: 1px solid #DDD;
643
+ background-color: #f7f7f7;
644
+ }
645
+
646
+ #yasr-multi-set-response2 {
647
+ margin-top: 10px;
648
+ padding: 10px;
649
+ border: 1px solid #DDD;
650
+ background-color: #f7f7f7;
651
+ }
652
+
653
+ #yasr-multi-set-doc-box {
654
+ border: 2px dashed #CCC;
655
+ padding: 15px;
656
+ margin: 30px;
657
+ }
658
+
659
+ #yasr-table-form-edit-multi-set {
660
+ width: 100%;
661
+ }
662
+
663
+ #yasr-table-form-edit-multi-set-header {
664
+ text-align: center;
665
+ padding: 5px;
666
+ }
667
+
668
+ #yasr-table-form-edit-multi-set-remove {
669
+ text-align: center;
670
+ padding: 5px;
671
+ }
672
+
673
+ .yasr-edit-form-remove-entire-set {
674
+ padding-top: 30px;
675
+ padding-bottom: 30px;
676
+ text-align: center;
677
+ color: red;
678
+ }
679
+
680
+ .yasr_table_multi_set_admin {
681
+ border: 1px solid rgba(0, 0, 0, 0.1);
682
+ padding: 10px;
683
+ font-size: 20px;
684
+ }
685
+
686
+ @media (min-width: 972px) {
687
+ .yasr_table_multi_set_admin {
688
+ width: 70%;
689
+ }
690
+ }
691
+
692
+
693
+ @media (max-width: 971px) {
694
+ .yasr_table_multi_set_admin {
695
+ width: 90%;
696
+ }
697
+ }
698
+
699
+ .yasr_table_multi_set_admin td {
700
+ width: 50%
701
+ }
702
+
703
+ .yasr_table_multi_set_admin tr:nth-child(odd) {
704
+ background: #feffd3;
705
+ }
706
+
707
+ /* Define the background color for all the EVEN background rows */
708
+ .yasr_table_multi_set_admin tr:nth-child(even) {
709
+ background: #FFFFFF;
710
+ }
711
+
712
+
713
+ .yasr-multi-set-choose-theme {
714
+ clear: both;
715
+ padding: 10px;
716
+ border: 1px solid #DDD;
717
+ background-color: #f7f7f7;
718
+ }
719
+
720
+
721
+ /*** End rules for multi set admin page ***/
722
+
723
+ /**** Yasr Aspect & Styles tab ***/
724
+
725
+ .yasr-select-img-container > div {
726
+ display: inline-block;
727
+ padding-left: 15px;
728
+ }
729
+
730
+ .yasr-select-img-container > span {
731
+ padding-top: 10px;
732
+ }
733
+
734
+ div.yasr-select-img-container input {
735
+ display: block;
736
+ margin: 10px 0 5px 8px !important;
737
+ }
738
+
739
+ #yasr-settings-stylish-image {
740
+ max-width: 100%;
741
+ height: auto;
742
+ }
743
+
744
+ #yasr-settings-stylish-image:hover {
745
+ opacity: 0.4;
746
+ }
747
+
748
+ @media (max-width: 575px) {
749
+
750
+ #yasr-settings-stylish-text {
751
+
752
+ width: 50%;
753
+ margin: auto;
754
+ position: relative;
755
+ top: -140px;
756
+ background-color: #ffffff;
757
+ border: 1px solid black;
758
+ opacity: 0.8;
759
+ font-size: 2vh;
760
+ padding: 15px;
761
+ visibility: hidden;
762
+
763
+ }
764
+
765
+ }
766
+
767
+
768
+ @media (min-width: 576px) {
769
+
770
+ #yasr-settings-stylish-text {
771
+
772
+ width: 50%;
773
+ margin: auto;
774
+ position: relative;
775
+ top: -288px;
776
+ background-color: #ffffff;
777
+ border: 2px solid black;
778
+ opacity: 0.8;
779
+ font-size: 2vh;
780
+ padding: 15px;
781
+ visibility: hidden;
782
+
783
+ }
784
+
785
+ }
786
+
787
+
788
+ /**** End Yasr Aspect & Styles tab ***/
789
+
790
+ /**** Migration Tools Page ****/
791
+
792
+ .title-plugin-found{
793
+ font-size: 18px;
794
+ font-weight: bold;
795
+ color: #2ca02c;
796
+ }
797
+
798
+ .title-noplugin-found{
799
+ font-size: 18px;
800
+ font-weight: bold;
801
+ color: #ff4141;
802
+ display: block;
803
+ }
804
+
805
+ .yasr-alert-box {
806
+ margin-top: 15px;
807
+ margin-bottom: 15px;
808
+ margin-left: 10px;
809
+ padding: 10px;
810
+ padding-left: 30px;
811
+ border: #ff806e 2px dashed;
812
+ width: 70%;
813
+ }
814
+
815
+ /**** End Migration Tools Page ****/
816
+
817
+
818
+ /*** Popup in tinymce ***/
819
+
820
+
821
+ .yasr-underline {
822
+ border-bottom: 1px solid #CCC !important;
823
+ }
824
+
825
+ #yasr-tinypopup-link-doc {
826
+ float: right;
827
+ font-size: 12px;
828
+ }
829
+
830
+ #yasr-overall-choose-size {
831
+ display: none;
832
+ margin-top: 20px;
833
+ border: 2px dashed #CCC;
834
+ padding-bottom: 10px;
835
+ margin-left: 8px;
836
+ padding-left: 8px;
837
+ }
838
+
839
+ .yasr-tinymce-button-size {
840
+ padding-top: 5px;
841
+ }
842
+
843
+ #yasr-visitor-choose-size {
844
+ display: none;
845
+ margin-top: 20px;
846
+ border: 2px dashed #CCC;
847
+ padding-bottom: 10px;
848
+ margin-left: 8px;
849
+ padding-left: 8px;
850
+ }
851
+
852
+
853
+ /*** End popup tinymce***/
854
+
855
+
856
+ .yasr-log-container {
857
+ width: 98%;
858
+ }
859
+
860
+ .yasr-log-div-child {
861
+ padding-top: 5px;
862
+ border-bottom: 1px solid #BBD8E7;
863
+ padding-bottom: 20px;
864
+ }
865
+
866
+ .yasr-log-image {
867
+ list-style-type: none;
868
+ display: inline-block;
869
+ float: left;
870
+ }
871
+
872
+ .yasr-log-child-head {
873
+ padding-left: 37px;
874
+ }
875
+
876
+ #yasr-log-vote {
877
+ color: red;
878
+ }
879
+
880
+ #yasr-log-vote-users {
881
+ color: green;
882
+ }
883
+
884
+ .yasr-log-post {
885
+ color: #2683AE;
886
+ }
887
+
888
+ .yasr-log-ip-date {
889
+ padding-top: 5px;
890
+ }
891
+
892
+ .yasr-log-ip {
893
+ float: left;
894
+ padding-left: 5px;
895
+ }
896
+
897
+ .yasr-log-date {
898
+ float: right;
899
+ }
900
+
901
+ #yasr-log-next-rows {
902
+ padding-top: 15px;
903
+ text-align: right;
904
+ }
905
+
906
+ #yasr-log-page-navigation {
907
+ padding-top: 7px;
908
+ text-align: center;
909
  }
admin/editor/YasrEditorHooks.php CHANGED
@@ -415,7 +415,7 @@ class YasrEditorHooks {
415
  if (current_user_can(YASR_USER_CAPABILITY_EDIT_POST)) {
416
  include(YASR_ABSOLUTE_PATH_ADMIN . '/editor/yasr-metabox-top-right.php');
417
  } else {
418
- _e('You don\'t have enought privileges to insert Overall Rating', 'yet-another-stars-rating');
419
  }
420
  }
421
 
@@ -428,7 +428,7 @@ class YasrEditorHooks {
428
  if (current_user_can(YASR_USER_CAPABILITY_EDIT_POST)) {
429
  include(YASR_ABSOLUTE_PATH_ADMIN . '/editor/yasr-metabox-below-editor.php');
430
  } else {
431
- _e('You don\'t have enough privileges to insert a Multi Set', 'yet-another-stars-rating');
432
  }
433
  }
434
 
@@ -467,15 +467,15 @@ class YasrEditorHooks {
467
  <div id="yasr-tinypopup-form">
468
  <h2 class="nav-tab-wrapper yasr-underline">
469
  <a href="#" id="yasr-link-tab-main"
470
- class="nav-tab nav-tab-active yasr-nav-tab"><?php _e("Main", 'yet-another-stars-rating'); ?></a>
471
  <a href="#" id="yasr-link-tab-charts"
472
- class="nav-tab yasr-nav-tab"><?php _e("Rankings", 'yet-another-stars-rating'); ?></a>
473
  <?php do_action('yasr_add_tabs_on_tinypopupform'); ?>
474
 
475
  <a href="https://yetanotherstarsrating.com/yasr-basics-shortcode/?utm_source=wp-plugin&utm_medium=tinymce-popup&utm_campaign=yasr_editor_screen"
476
  target="_blank"
477
  id="yasr-tinypopup-link-doc">
478
- <?php _e('Read the doc', 'yet-another-stars-rating'); ?>
479
  </a>
480
  </h2>
481
 
@@ -484,7 +484,7 @@ class YasrEditorHooks {
484
  <tr>
485
  <th>
486
  <label for="yasr-overall">
487
- <?php _e('Overall Rating', 'yet-another-stars-rating'); ?>
488
  </label>
489
  </th>
490
  <td>
@@ -497,12 +497,12 @@ class YasrEditorHooks {
497
  />
498
  <br/>
499
  <small>
500
- <?php _e('Insert the author rating', 'yet-another-stars-rating'); ?>
501
  </small>
502
 
503
  <div id="yasr-overall-choose-size">
504
  <small>
505
- <?php _e('Choose Size', 'yet-another-stars-rating'); ?>
506
  </small>
507
  <div class="yasr-tinymce-button-size">
508
  <?php
@@ -516,7 +516,7 @@ class YasrEditorHooks {
516
  <tr>
517
  <th>
518
  <label for="yasr-id">
519
- <?php _e("Visitor Votes", 'yet-another-stars-rating'); ?>
520
  </label>
521
  </th>
522
  <td>
@@ -527,12 +527,12 @@ class YasrEditorHooks {
527
  value="<?php esc_attr_e("Insert Visitor Votes", 'yet-another-stars-rating'); ?>"/>
528
  <br/>
529
  <small>
530
- <?php _e('Insert the ability for your visitors to vote', 'yet-another-stars-rating'); ?>
531
  </small>
532
 
533
  <div id="yasr-visitor-choose-size">
534
  <small>
535
- <?php _e("Choose Size", 'yet-another-stars-rating'); ?>
536
  </small>
537
  <div class="yasr-tinymce-button-size">
538
  <?php
@@ -546,7 +546,7 @@ class YasrEditorHooks {
546
  <?php if ($n_multi_set > 0) { //If multiple Set are found ?>
547
  <tr>
548
  <th>
549
- <?php _e("Insert Multiset:", 'yet-another-stars-rating'); ?>
550
  </th>
551
  <td>
552
  <?php foreach ($multi_set as $name) { ?>
@@ -560,26 +560,26 @@ class YasrEditorHooks {
560
  <br/>
561
  <?php } //End foreach ?>
562
  <small>
563
- <?php _e('Choose wich set you want to insert.', 'yet-another-stars-rating'); ?>
564
  </small>
565
 
566
  <p>
567
  <label for="yasr-allow-vote-multiset">
568
  <input type="checkbox" id="yasr-allow-vote-multiset">
569
- <?php _e("Readonly?", 'yet-another-stars-rating'); ?>
570
  </label>
571
  <br/>
572
  </p>
573
 
574
  <small>
575
- <?php _e('If Readonly is checked, only you can insert the votes (in the box above the editor)',
576
  'yet-another-stars-rating'); ?>
577
  </small>
578
 
579
  <p>
580
  <label for="yasr-hide-average-multiset">
581
  <input type="checkbox" id="yasr-hide-average-multiset">
582
- <?php _e("Hide Average?", 'yet-another-stars-rating'); ?>
583
  </label>
584
  <br/>
585
  </p>
@@ -609,7 +609,7 @@ class YasrEditorHooks {
609
  <tr>
610
  <th>
611
  <label for="yasr-10-overall">
612
- <?php _e("Ranking by overall rating", 'yet-another-stars-rating'); ?>
613
  </label>
614
  </th>
615
  <td>
@@ -620,7 +620,7 @@ class YasrEditorHooks {
620
  ?>
621
  <br/>
622
  <small>
623
- <?php _e('This ranking shows the highest rated posts rated through the
624
  yasr_overall_rating shortcode',
625
  'yet-another-stars-rating'); ?>
626
  </small>
@@ -630,7 +630,7 @@ class YasrEditorHooks {
630
  <tr>
631
  <th>
632
  <label for="yasr-10-highest-most-rated">
633
- <?php _e('Ranking by visitors votes', 'yet-another-stars-rating'); ?>
634
  </label>
635
  </th>
636
  <td>
@@ -641,7 +641,7 @@ class YasrEditorHooks {
641
  ?>
642
  <br/>
643
  <small>
644
- <?php _e(
645
  'This ranking shows both the highest and most rated posts rated through the
646
  yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice. ',
647
  'yet-another-stars-rating'); ?>
@@ -652,7 +652,7 @@ class YasrEditorHooks {
652
  <tr>
653
  <th>
654
  <label for="yasr-5-active-reviewers">
655
- <?php _e('Most Active Authors', 'yet-another-stars-rating'); ?>
656
  </label>
657
  </th>
658
  <td>
@@ -664,7 +664,7 @@ class YasrEditorHooks {
664
  <br/>
665
  <small>
666
  <?php
667
- _e('This ranking shows the most active reviewers on your site.',
668
  'yet-another-stars-rating'); ?>
669
  </small>
670
  </td>
@@ -673,7 +673,7 @@ class YasrEditorHooks {
673
  <tr>
674
  <th>
675
  <label for="yasr-10-active-users">
676
- <?php _e('Most Active Users', 'yet-another-stars-rating'); ?>
677
  </label>
678
  </th>
679
  <td>
@@ -684,7 +684,7 @@ class YasrEditorHooks {
684
  ?>
685
  <br/>
686
  <small>
687
- <?php _e('This ranking shows the most active users, displaying the login name if logged in or “Anonymous” if not.',
688
  'yet-another-stars-rating'); ?>
689
  </small>
690
  </td>
415
  if (current_user_can(YASR_USER_CAPABILITY_EDIT_POST)) {
416
  include(YASR_ABSOLUTE_PATH_ADMIN . '/editor/yasr-metabox-top-right.php');
417
  } else {
418
+ esc_html_e('You don\'t have enought privileges to insert Overall Rating', 'yet-another-stars-rating');
419
  }
420
  }
421
 
428
  if (current_user_can(YASR_USER_CAPABILITY_EDIT_POST)) {
429
  include(YASR_ABSOLUTE_PATH_ADMIN . '/editor/yasr-metabox-below-editor.php');
430
  } else {
431
+ esc_html_e('You don\'t have enough privileges to insert a Multi Set', 'yet-another-stars-rating');
432
  }
433
  }
434
 
467
  <div id="yasr-tinypopup-form">
468
  <h2 class="nav-tab-wrapper yasr-underline">
469
  <a href="#" id="yasr-link-tab-main"
470
+ class="nav-tab nav-tab-active yasr-nav-tab"><?php esc_html_e("Main", 'yet-another-stars-rating'); ?></a>
471
  <a href="#" id="yasr-link-tab-charts"
472
+ class="nav-tab yasr-nav-tab"><?php esc_html_e("Rankings", 'yet-another-stars-rating'); ?></a>
473
  <?php do_action('yasr_add_tabs_on_tinypopupform'); ?>
474
 
475
  <a href="https://yetanotherstarsrating.com/yasr-basics-shortcode/?utm_source=wp-plugin&utm_medium=tinymce-popup&utm_campaign=yasr_editor_screen"
476
  target="_blank"
477
  id="yasr-tinypopup-link-doc">
478
+ <?php esc_html_e('Read the doc', 'yet-another-stars-rating'); ?>
479
  </a>
480
  </h2>
481
 
484
  <tr>
485
  <th>
486
  <label for="yasr-overall">
487
+ <?php esc_html_e('Overall Rating', 'yet-another-stars-rating'); ?>
488
  </label>
489
  </th>
490
  <td>
497
  />
498
  <br/>
499
  <small>
500
+ <?php esc_html_e('Insert the author rating', 'yet-another-stars-rating'); ?>
501
  </small>
502
 
503
  <div id="yasr-overall-choose-size">
504
  <small>
505
+ <?php esc_html_e('Choose Size', 'yet-another-stars-rating'); ?>
506
  </small>
507
  <div class="yasr-tinymce-button-size">
508
  <?php
516
  <tr>
517
  <th>
518
  <label for="yasr-id">
519
+ <?php esc_html_e("Visitor Votes", 'yet-another-stars-rating'); ?>
520
  </label>
521
  </th>
522
  <td>
527
  value="<?php esc_attr_e("Insert Visitor Votes", 'yet-another-stars-rating'); ?>"/>
528
  <br/>
529
  <small>
530
+ <?php esc_html_e('Insert the ability for your visitors to vote', 'yet-another-stars-rating'); ?>
531
  </small>
532
 
533
  <div id="yasr-visitor-choose-size">
534
  <small>
535
+ <?php esc_html_e("Choose Size", 'yet-another-stars-rating'); ?>
536
  </small>
537
  <div class="yasr-tinymce-button-size">
538
  <?php
546
  <?php if ($n_multi_set > 0) { //If multiple Set are found ?>
547
  <tr>
548
  <th>
549
+ <?php esc_html_e("Insert Multiset:", 'yet-another-stars-rating'); ?>
550
  </th>
551
  <td>
552
  <?php foreach ($multi_set as $name) { ?>
560
  <br/>
561
  <?php } //End foreach ?>
562
  <small>
563
+ <?php esc_html_e('Choose wich set you want to insert.', 'yet-another-stars-rating'); ?>
564
  </small>
565
 
566
  <p>
567
  <label for="yasr-allow-vote-multiset">
568
  <input type="checkbox" id="yasr-allow-vote-multiset">
569
+ <?php esc_html_e("Readonly?", 'yet-another-stars-rating'); ?>
570
  </label>
571
  <br/>
572
  </p>
573
 
574
  <small>
575
+ <?php esc_html_e('If Readonly is checked, only you can insert the votes (in the box above the editor)',
576
  'yet-another-stars-rating'); ?>
577
  </small>
578
 
579
  <p>
580
  <label for="yasr-hide-average-multiset">
581
  <input type="checkbox" id="yasr-hide-average-multiset">
582
+ <?php esc_html_e("Hide Average?", 'yet-another-stars-rating'); ?>
583
  </label>
584
  <br/>
585
  </p>
609
  <tr>
610
  <th>
611
  <label for="yasr-10-overall">
612
+ <?php esc_html_e("Ranking by overall rating", 'yet-another-stars-rating'); ?>
613
  </label>
614
  </th>
615
  <td>
620
  ?>
621
  <br/>
622
  <small>
623
+ <?php esc_html_e('This ranking shows the highest rated posts rated through the
624
  yasr_overall_rating shortcode',
625
  'yet-another-stars-rating'); ?>
626
  </small>
630
  <tr>
631
  <th>
632
  <label for="yasr-10-highest-most-rated">
633
+ <?php esc_html_e('Ranking by visitors votes', 'yet-another-stars-rating'); ?>
634
  </label>
635
  </th>
636
  <td>
641
  ?>
642
  <br/>
643
  <small>
644
+ <?php esc_html_e(
645
  'This ranking shows both the highest and most rated posts rated through the
646
  yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice. ',
647
  'yet-another-stars-rating'); ?>
652
  <tr>
653
  <th>
654
  <label for="yasr-5-active-reviewers">
655
+ <?php esc_html_e('Most Active Authors', 'yet-another-stars-rating'); ?>
656
  </label>
657
  </th>
658
  <td>
664
  <br/>
665
  <small>
666
  <?php
667
+ esc_html_e('This ranking shows the most active reviewers on your site.',
668
  'yet-another-stars-rating'); ?>
669
  </small>
670
  </td>
673
  <tr>
674
  <th>
675
  <label for="yasr-10-active-users">
676
+ <?php esc_html_e('Most Active Users', 'yet-another-stars-rating'); ?>
677
  </label>
678
  </th>
679
  <td>
684
  ?>
685
  <br/>
686
  <small>
687
+ <?php esc_html_e('This ranking shows the most active users, displaying the login name if logged in or “Anonymous” if not.',
688
  'yet-another-stars-rating'); ?>
689
  </small>
690
  </td>
admin/editor/yasr-metabox-below-editor.php CHANGED
@@ -29,11 +29,11 @@ $multi_set = YasrMultiSetData::returnMultiSetNames();
29
  <div>
30
  <div style="display: table">
31
  <a href="#" id="yasr-metabox-below-editor-structured-data-tab"
32
- class="nav-tab nav-tab-active yasr-nav-tab"><?php _e("Structured Data", 'yet-another-stars-rating'); ?></a>
33
  <?php if ($multi_set) {
34
  ?>
35
  <a href="#" id="yasr-metabox-below-editor-multiset-tab"
36
- class="nav-tab yasr-nav-tab"><?php _e("Multi Sets", 'yet-another-stars-rating'); ?></a>
37
  <?php
38
  }
39
  ?>
29
  <div>
30
  <div style="display: table">
31
  <a href="#" id="yasr-metabox-below-editor-structured-data-tab"
32
+ class="nav-tab nav-tab-active yasr-nav-tab"><?php esc_html_e("Structured Data", 'yet-another-stars-rating'); ?></a>
33
  <?php if ($multi_set) {
34
  ?>
35
  <a href="#" id="yasr-metabox-below-editor-multiset-tab"
36
+ class="nav-tab yasr-nav-tab"><?php esc_html_e("Multi Sets", 'yet-another-stars-rating'); ?></a>
37
  <?php
38
  }
39
  ?>
admin/editor/yasr-metabox-multiple-rating.php CHANGED
@@ -39,7 +39,7 @@ $set_id = (int)$set_id;
39
  if ($n_multi_set > 1) {
40
  ?>
41
  <div>
42
- <?php _e("Choose which set you want to use", 'yet-another-stars-rating'); ?>
43
  <br />
44
  <label for="select_set">
45
  <select id="select_set" autocomplete="off">
@@ -51,7 +51,7 @@ if ($n_multi_set > 1) {
51
  </select>
52
  </label>
53
 
54
- <button href="#" class="button-delete" id="yasr-button-select-set"><?php _e("Select"); ?></button>
55
 
56
  <span id="yasr-loader-select-multi-set" style="display:none;" >&nbsp;
57
  <img src="<?php echo esc_url(YASR_IMG_DIR . "/loader.gif") ?>" alt="yasr-loader">
@@ -71,7 +71,7 @@ if ($n_multi_set > 1) {
71
  ">
72
 
73
  <span id="yasr-multi-set-admin-choose-text">
74
- <?php _e( 'Choose a vote for each element', 'yet-another-stars-rating' ); ?>
75
  </span>
76
 
77
  <input type="hidden" name="yasr_multiset_author_votes" id="yasr-multiset-author-votes" value="">
@@ -82,12 +82,12 @@ if ($n_multi_set > 1) {
82
  </table>
83
 
84
  <div id="yasr-multi-set-admin-explain">
85
- <?php _e( "If you want to insert this multiset, paste this shortcode", 'yet-another-stars-rating' ); ?>
86
  <span id="yasr-multi-set-admin-explain-with-id-readonly"></span>. <br />
87
 
88
- <?php _e( "If, instead, you want allow your visitor to vote on this multiset, use this shortcode", 'yet-another-stars-rating' ); ?>
89
  <span id='yasr-multi-set-admin-explain-with-id-visitor'></span>.
90
- <?php _e('In this case, you don\'t need to vote here', 'yet-another-stars-rating');?>
91
 
92
  <br />
93
  <br />
@@ -102,7 +102,7 @@ if ($n_multi_set > 1) {
102
  '<strong>', '</strong>',
103
  '<strong>', '</strong>');
104
 
105
- echo $yasr_pro_string;
106
  ?>
107
  <span id='yasr-multi-set-admin-explain-with-id-visitor'></span>
108
 
39
  if ($n_multi_set > 1) {
40
  ?>
41
  <div>
42
+ <?php esc_html_e("Choose which set you want to use", 'yet-another-stars-rating'); ?>
43
  <br />
44
  <label for="select_set">
45
  <select id="select_set" autocomplete="off">
51
  </select>
52
  </label>
53
 
54
+ <button href="#" class="button-delete" id="yasr-button-select-set"><?php esc_html_e("Select"); ?></button>
55
 
56
  <span id="yasr-loader-select-multi-set" style="display:none;" >&nbsp;
57
  <img src="<?php echo esc_url(YASR_IMG_DIR . "/loader.gif") ?>" alt="yasr-loader">
71
  ">
72
 
73
  <span id="yasr-multi-set-admin-choose-text">
74
+ <?php esc_html_e( 'Choose a vote for each element', 'yet-another-stars-rating' ); ?>
75
  </span>
76
 
77
  <input type="hidden" name="yasr_multiset_author_votes" id="yasr-multiset-author-votes" value="">
82
  </table>
83
 
84
  <div id="yasr-multi-set-admin-explain">
85
+ <?php esc_html_e( "If you want to insert this multiset, paste this shortcode", 'yet-another-stars-rating' ); ?>
86
  <span id="yasr-multi-set-admin-explain-with-id-readonly"></span>. <br />
87
 
88
+ <?php esc_html_e( "If, instead, you want allow your visitor to vote on this multiset, use this shortcode", 'yet-another-stars-rating' ); ?>
89
  <span id='yasr-multi-set-admin-explain-with-id-visitor'></span>.
90
+ <?php esc_html_e('In this case, you don\'t need to vote here', 'yet-another-stars-rating');?>
91
 
92
  <br />
93
  <br />
102
  '<strong>', '</strong>',
103
  '<strong>', '</strong>');
104
 
105
+ echo wp_kses_post($yasr_pro_string);
106
  ?>
107
  <span id='yasr-multi-set-admin-explain-with-id-visitor'></span>
108
 
admin/editor/yasr-metabox-schema.php CHANGED
@@ -63,9 +63,9 @@ $itemType_obj = new YasrMetaboxSchemaFields($saved_data);
63
 
64
  <div id="yasr-schema-metabox-post-is-review">
65
  <div class="rich-snippet-title">
66
- <?php _e('Rich snippet options', 'yet-another-stars-rating'); ?>
67
  </div>
68
- <?php _e('Is this a review?', 'yet-another-stars-rating'); ?>
69
  <br />
70
  <div class="yasr-onoffswitch-big" id="yasr-switcher-post-is-review">
71
  <input type="checkbox"
@@ -82,7 +82,7 @@ $itemType_obj = new YasrMetaboxSchemaFields($saved_data);
82
  </div>
83
 
84
  <div style="margin-top: 10px;">
85
- <label for="yasr-schema-title" style="display:block;"><?php _e('ItemType Name') ?></label>
86
  <input
87
  type="text"
88
  id="yasr-schema-title"
@@ -92,14 +92,14 @@ $itemType_obj = new YasrMetaboxSchemaFields($saved_data);
92
  >
93
  </div>
94
  <div class="yasr-element-row-container-description">
95
- <?php _e('Optional. If empty, post title will be used instead.', 'yet-another-stars-rating') ?>
96
  </div>
97
 
98
  </div>
99
 
100
  <p>
101
  <div class="yasr-choose-reviews-types">
102
- <?php _e('Select ItemType', 'yet-another-stars-rating'); ?>
103
  <br />
104
  <?php yasr_select_itemtype('yasr-metabox-below-editor-select-schema'); ?>
105
  </div>
63
 
64
  <div id="yasr-schema-metabox-post-is-review">
65
  <div class="rich-snippet-title">
66
+ <?php esc_html_e('Rich snippet options', 'yet-another-stars-rating'); ?>
67
  </div>
68
+ <?php esc_html_e('Is this a review?', 'yet-another-stars-rating'); ?>
69
  <br />
70
  <div class="yasr-onoffswitch-big" id="yasr-switcher-post-is-review">
71
  <input type="checkbox"
82
  </div>
83
 
84
  <div style="margin-top: 10px;">
85
+ <label for="yasr-schema-title" style="display:block;"><?php esc_html_e('ItemType Name') ?></label>
86
  <input
87
  type="text"
88
  id="yasr-schema-title"
92
  >
93
  </div>
94
  <div class="yasr-element-row-container-description">
95
+ <?php esc_html_e('Optional. If empty, post title will be used instead.', 'yet-another-stars-rating') ?>
96
  </div>
97
 
98
  </div>
99
 
100
  <p>
101
  <div class="yasr-choose-reviews-types">
102
+ <?php esc_html_e('Select ItemType', 'yet-another-stars-rating'); ?>
103
  <br />
104
  <?php yasr_select_itemtype('yasr-metabox-below-editor-select-schema'); ?>
105
  </div>
admin/editor/yasr-metabox-top-right.php CHANGED
@@ -45,7 +45,7 @@ wp_nonce_field('yasr_nonce_is_post_review_action', 'yasr_nonce_is_post_review');
45
  <div id="yasr-vote-overall-stars-container">
46
  <div id="yasr-vote-overall-stars">
47
  <span id="yasr-overall-rating-text">
48
- <?php _e('Rate this article / item', 'yet-another-stars-rating'); ?>
49
  </span>
50
 
51
  <div id="yasr-rater-overall" >
@@ -64,7 +64,7 @@ wp_nonce_field('yasr_nonce_is_post_review_action', 'yasr_nonce_is_post_review');
64
  //Show this message if auto insert is off or if auto insert is not set to show overall rating (so if it is set to visitor rating)
65
  if( YASR_AUTO_INSERT_ENABLED === 0 || (YASR_AUTO_INSERT_ENABLED === 1 && YASR_AUTO_INSERT_WHAT === 'visitor_rating') ) {
66
  echo "<div>";
67
- _e ('Remember to insert this shortcode <strong>[yasr_overall_rating]</strong>
68
  where you want to display this rating',
69
  'yet-another-stars-rating');
70
  echo "</div>";
@@ -80,7 +80,7 @@ wp_nonce_field('yasr_nonce_is_post_review_action', 'yasr_nonce_is_post_review');
80
 
81
  <hr>
82
  <div id="yasr-toprightmetabox-disable-auto-insert">
83
- <?php _e('Disable auto insert for this post or page?', 'yet-another-stars-rating'); ?>
84
  <br />
85
  <div class="yasr-onoffswitch-big yasr-onoffswitch-big-center" id="yasr-switcher-disable-auto-insert">
86
  <input type="checkbox"
45
  <div id="yasr-vote-overall-stars-container">
46
  <div id="yasr-vote-overall-stars">
47
  <span id="yasr-overall-rating-text">
48
+ <?php esc_html_e('Rate this article / item', 'yet-another-stars-rating'); ?>
49
  </span>
50
 
51
  <div id="yasr-rater-overall" >
64
  //Show this message if auto insert is off or if auto insert is not set to show overall rating (so if it is set to visitor rating)
65
  if( YASR_AUTO_INSERT_ENABLED === 0 || (YASR_AUTO_INSERT_ENABLED === 1 && YASR_AUTO_INSERT_WHAT === 'visitor_rating') ) {
66
  echo "<div>";
67
+ esc_html_e ('Remember to insert this shortcode <strong>[yasr_overall_rating]</strong>
68
  where you want to display this rating',
69
  'yet-another-stars-rating');
70
  echo "</div>";
80
 
81
  <hr>
82
  <div id="yasr-toprightmetabox-disable-auto-insert">
83
+ <?php esc_html_e('Disable auto insert for this post or page?', 'yet-another-stars-rating'); ?>
84
  <br />
85
  <div class="yasr-onoffswitch-big yasr-onoffswitch-big-center" id="yasr-switcher-disable-auto-insert">
86
  <input type="checkbox"
admin/settings/aspect_style/yasr-settings-style-functions.php CHANGED
@@ -99,17 +99,17 @@ function yasr_color_scheme_multiset_callback($style_options) {
99
  <br/>
100
 
101
  <a href="#" id="yasr-color-scheme-preview-link">
102
- <?php _e("Preview", 'yet-another-stars-rating') ?>
103
  </a>
104
 
105
  <div id="yasr-color-scheme-preview" style="display:none">
106
  <?php
107
- _e("Light theme", 'yet-another-stars-rating');
108
  echo '<br /><br /><img src="' . esc_url(YASR_IMG_DIR . 'yasr-multi-set.png').'" alt="light-multiset">';
109
 
110
  echo "<br /> <br />";
111
 
112
- _e("Dark theme", 'yet-another-stars-rating');
113
  echo '<br /><br /><img src="' . esc_url(YASR_IMG_DIR . 'dark-multi-set.png').'" alt="dark-multiset">';
114
  ?>
115
  </div>
@@ -120,10 +120,10 @@ function yasr_color_scheme_multiset_callback($style_options) {
120
  }
121
 
122
  function yasr_style_options_textarea_callback($style_options) {
123
- _e('Please use text area below to write your own CSS styles to override the default ones.',
124
  'yet-another-stars-rating');
125
  echo "<br /><strong>";
126
- _e('Leave it blank if you don\'t know what you\'re doing.', 'yet-another-stars-rating');
127
  echo "</strong><p>";
128
  ?>
129
 
99
  <br/>
100
 
101
  <a href="#" id="yasr-color-scheme-preview-link">
102
+ <?php esc_html_e("Preview", 'yet-another-stars-rating') ?>
103
  </a>
104
 
105
  <div id="yasr-color-scheme-preview" style="display:none">
106
  <?php
107
+ esc_html_e("Light theme", 'yet-another-stars-rating');
108
  echo '<br /><br /><img src="' . esc_url(YASR_IMG_DIR . 'yasr-multi-set.png').'" alt="light-multiset">';
109
 
110
  echo "<br /> <br />";
111
 
112
+ esc_html_e("Dark theme", 'yet-another-stars-rating');
113
  echo '<br /><br /><img src="' . esc_url(YASR_IMG_DIR . 'dark-multi-set.png').'" alt="dark-multiset">';
114
  ?>
115
  </div>
120
  }
121
 
122
  function yasr_style_options_textarea_callback($style_options) {
123
+ esc_html_e('Please use text area below to write your own CSS styles to override the default ones.',
124
  'yet-another-stars-rating');
125
  echo "<br /><strong>";
126
+ esc_html_e('Leave it blank if you don\'t know what you\'re doing.', 'yet-another-stars-rating');
127
  echo "</strong><p>";
128
  ?>
129
 
admin/settings/classes/YasrSettings.php CHANGED
@@ -214,7 +214,7 @@ class YasrSettings {
214
  ?>
215
  <div>
216
  <strong>
217
- <?php _e('Use Auto Insert?', 'yet-another-stars-rating'); ?>
218
  </strong>
219
  <div class="yasr-onoffswitch-big">
220
  <input type="checkbox" name="yasr_general_options[auto_insert_enabled]" class="yasr-onoffswitch-checkbox"
@@ -274,7 +274,7 @@ class YasrSettings {
274
  </div>
275
  <div>
276
  <strong>
277
- <?php _e('Size', 'yet-another-stars-rating'); ?>
278
  </strong>
279
  <?php
280
  $name = 'yasr_general_options[auto_insert_size]';
@@ -315,7 +315,7 @@ class YasrSettings {
315
  ?>
316
  <div>
317
  <?php
318
- _e('Select yes if you want to use auto insert only in custom post types',
319
  'yet-another-stars-rating');
320
  ?>
321
  </div>
@@ -412,7 +412,7 @@ class YasrSettings {
412
  <div class="yasr-settings-row-45">
413
  <div>
414
  <strong>
415
- <?php _e('Show "Overall Rating" in Archive Pages?', 'yet-another-stars-rating'); ?>
416
  </strong>
417
  <div class="yasr-onoffswitch-big">
418
  <input type="checkbox" name="yasr_general_options[show_overall_in_loop]" class="yasr-onoffswitch-checkbox"
@@ -425,12 +425,12 @@ class YasrSettings {
425
  </label>
426
  </div>
427
  <br/>
428
- <?php _e('Enable to show "Overall Rating" in archive pages.','yet-another-stars-rating') ?>
429
  </div>
430
 
431
  <div>
432
  <strong>
433
- <?php _e('Show "Visitor Votes" in Archive Page?', 'yet-another-stars-rating') ?>
434
  </strong>
435
  <div class="yasr-onoffswitch-big">
436
  <input type="checkbox" name="yasr_general_options[show_visitor_votes_in_loop]" class="yasr-onoffswitch-checkbox"
@@ -443,7 +443,7 @@ class YasrSettings {
443
  </label>
444
  </div>
445
  <br/>
446
- <?php _e('Enable to show "Visitor Votes" in archive pages','yet-another-stars-rating') ?>
447
  </div>
448
 
449
  </div>
@@ -469,14 +469,14 @@ class YasrSettings {
469
  </div>
470
  <br/>
471
  <?php
472
- _e('Select "Yes" to enable.', 'yet-another-stars-rating');
473
  ?>
474
  <br />
475
  <p>&nbsp;</p>
476
  </div>
477
  <div class="yasr-settings-col-70">
478
  <strong>
479
- <?php _e('Example', 'yet-another-stars-rating') ?>:
480
  </strong>
481
  <br />
482
  <img src="<?php echo esc_url(YASR_IMG_DIR . 'yasr-settings-stats.png')?>"
@@ -507,7 +507,7 @@ class YasrSettings {
507
  <br />
508
  <div class="yasr-indented-answer">
509
  <?php
510
- _e('Select who can rate your posts.','yet-another-stars-rating')
511
  ?>
512
  </div>
513
  </div>
@@ -576,14 +576,14 @@ class YasrSettings {
576
  total count, and %s pattern to show the average.', 'yet-another-stars-rating'),
577
  '<strong>%total_count%</strong>', '<strong>%average%</strong>');
578
 
579
- _e('Leave a field empty to disable it.', 'yet-another-stars-rating');
580
  echo '<br /><br/>';
581
  echo wp_kses_post($string_custom_overall);
582
  echo '<br /><br/>';
583
  echo wp_kses_post($string_custom_visitor);
584
  echo '<br /><br/>';
585
 
586
- _e('You can use these html tags:', 'yet-another-stars-rating');
587
  echo ' <strong>' . esc_html('<strong>, <p>') . '.</strong>';
588
  ?>
589
  </div>
@@ -605,7 +605,7 @@ class YasrSettings {
605
  <div class="yasr-settings-padding-left yasr-settings-row">
606
  <div class="yasr-settings-col-60">
607
  <strong>
608
- <?php _e('Select default itemType for all post or pages', 'yet-another-stars-rating'); ?>
609
  </strong>
610
  <div>
611
  <?php
@@ -638,7 +638,7 @@ class YasrSettings {
638
  </label>
639
  <div class="yasr-element-row-container-description">
640
  <?php
641
- _e('You can always change itemType in the single post or page.',
642
  'yet-another-stars-rating');
643
  ?>
644
  </div>
@@ -662,7 +662,7 @@ class YasrSettings {
662
  maxlength="180"/>
663
  <div class="yasr-element-row-container-description">
664
  <label for="yasr-general-options-publisher-name">
665
- <?php _e('Publisher name (e.g. Google)', 'yet-another-stars-rating') ?>
666
  </label>
667
  </div>
668
 
@@ -673,7 +673,7 @@ class YasrSettings {
673
  maxlength="300"/>
674
  <div class="yasr-element-row-container-description">
675
  <label for="yasr-general-options-publisher-logo">
676
- <?php _e('Image Url (if empty siteicon will be used instead)', 'yet-another-stars-rating') ?>
677
  </label>
678
  </div>
679
  </div>
@@ -714,7 +714,7 @@ class YasrSettings {
714
  <div>
715
  <strong>
716
  <?php
717
- _e('Load results with AJAX?', 'yet-another-stars-rating');
718
  ?>
719
  </strong>
720
  <div class="yasr-onoffswitch-big">
@@ -729,7 +729,7 @@ class YasrSettings {
729
  </div>
730
  <br/>
731
  <?php
732
- _e('This should be enabled if you\'re using caching plugins.
733
  Not required for yasr_overall_rating and yasr_multiset.',
734
  'yet-another-stars-rating'
735
  );
@@ -748,7 +748,7 @@ class YasrSettings {
748
  </div>
749
  <div>
750
  <strong>
751
- <?php _e('Do you want to save ip address?', 'yet-another-stars-rating') ?>
752
  </strong>
753
  <div class="yasr-onoffswitch-big">
754
  <input type="checkbox" name="yasr_general_options[enable_ip]" class="yasr-onoffswitch-checkbox"
214
  ?>
215
  <div>
216
  <strong>
217
+ <?php esc_html_e('Use Auto Insert?', 'yet-another-stars-rating'); ?>
218
  </strong>
219
  <div class="yasr-onoffswitch-big">
220
  <input type="checkbox" name="yasr_general_options[auto_insert_enabled]" class="yasr-onoffswitch-checkbox"
274
  </div>
275
  <div>
276
  <strong>
277
+ <?php esc_html_e('Size', 'yet-another-stars-rating'); ?>
278
  </strong>
279
  <?php
280
  $name = 'yasr_general_options[auto_insert_size]';
315
  ?>
316
  <div>
317
  <?php
318
+ esc_html_e('Select yes if you want to use auto insert only in custom post types',
319
  'yet-another-stars-rating');
320
  ?>
321
  </div>
412
  <div class="yasr-settings-row-45">
413
  <div>
414
  <strong>
415
+ <?php esc_html_e('Show "Overall Rating" in Archive Pages?', 'yet-another-stars-rating'); ?>
416
  </strong>
417
  <div class="yasr-onoffswitch-big">
418
  <input type="checkbox" name="yasr_general_options[show_overall_in_loop]" class="yasr-onoffswitch-checkbox"
425
  </label>
426
  </div>
427
  <br/>
428
+ <?php esc_html_e('Enable to show "Overall Rating" in archive pages.','yet-another-stars-rating') ?>
429
  </div>
430
 
431
  <div>
432
  <strong>
433
+ <?php esc_html_e('Show "Visitor Votes" in Archive Page?', 'yet-another-stars-rating') ?>
434
  </strong>
435
  <div class="yasr-onoffswitch-big">
436
  <input type="checkbox" name="yasr_general_options[show_visitor_votes_in_loop]" class="yasr-onoffswitch-checkbox"
443
  </label>
444
  </div>
445
  <br/>
446
+ <?php esc_html_e('Enable to show "Visitor Votes" in archive pages','yet-another-stars-rating') ?>
447
  </div>
448
 
449
  </div>
469
  </div>
470
  <br/>
471
  <?php
472
+ esc_html_e('Select "Yes" to enable.', 'yet-another-stars-rating');
473
  ?>
474
  <br />
475
  <p>&nbsp;</p>
476
  </div>
477
  <div class="yasr-settings-col-70">
478
  <strong>
479
+ <?php esc_html_e('Example', 'yet-another-stars-rating') ?>:
480
  </strong>
481
  <br />
482
  <img src="<?php echo esc_url(YASR_IMG_DIR . 'yasr-settings-stats.png')?>"
507
  <br />
508
  <div class="yasr-indented-answer">
509
  <?php
510
+ esc_html_e('Select who can rate your posts.','yet-another-stars-rating')
511
  ?>
512
  </div>
513
  </div>
576
  total count, and %s pattern to show the average.', 'yet-another-stars-rating'),
577
  '<strong>%total_count%</strong>', '<strong>%average%</strong>');
578
 
579
+ esc_html_e('Leave a field empty to disable it.', 'yet-another-stars-rating');
580
  echo '<br /><br/>';
581
  echo wp_kses_post($string_custom_overall);
582
  echo '<br /><br/>';
583
  echo wp_kses_post($string_custom_visitor);
584
  echo '<br /><br/>';
585
 
586
+ esc_html_e('You can use these html tags:', 'yet-another-stars-rating');
587
  echo ' <strong>' . esc_html('<strong>, <p>') . '.</strong>';
588
  ?>
589
  </div>
605
  <div class="yasr-settings-padding-left yasr-settings-row">
606
  <div class="yasr-settings-col-60">
607
  <strong>
608
+ <?php esc_html_e('Select default itemType for all post or pages', 'yet-another-stars-rating'); ?>
609
  </strong>
610
  <div>
611
  <?php
638
  </label>
639
  <div class="yasr-element-row-container-description">
640
  <?php
641
+ esc_html_e('You can always change itemType in the single post or page.',
642
  'yet-another-stars-rating');
643
  ?>
644
  </div>
662
  maxlength="180"/>
663
  <div class="yasr-element-row-container-description">
664
  <label for="yasr-general-options-publisher-name">
665
+ <?php esc_html_e('Publisher name (e.g. Google)', 'yet-another-stars-rating') ?>
666
  </label>
667
  </div>
668
 
673
  maxlength="300"/>
674
  <div class="yasr-element-row-container-description">
675
  <label for="yasr-general-options-publisher-logo">
676
+ <?php esc_html_e('Image Url (if empty siteicon will be used instead)', 'yet-another-stars-rating') ?>
677
  </label>
678
  </div>
679
  </div>
714
  <div>
715
  <strong>
716
  <?php
717
+ esc_html_e('Load results with AJAX?', 'yet-another-stars-rating');
718
  ?>
719
  </strong>
720
  <div class="yasr-onoffswitch-big">
729
  </div>
730
  <br/>
731
  <?php
732
+ esc_html_e('This should be enabled if you\'re using caching plugins.
733
  Not required for yasr_overall_rating and yasr_multiset.',
734
  'yet-another-stars-rating'
735
  );
748
  </div>
749
  <div>
750
  <strong>
751
+ <?php esc_html_e('Do you want to save ip address?', 'yet-another-stars-rating') ?>
752
  </strong>
753
  <div class="yasr-onoffswitch-big">
754
  <input type="checkbox" name="yasr_general_options[enable_ip]" class="yasr-onoffswitch-checkbox"
admin/settings/classes/YasrSettingsRankings.php CHANGED
@@ -42,7 +42,7 @@ class YasrSettingsRankings {
42
  <!-- Source -->
43
  <div class="yasr-builder-div-fluid">
44
  <strong>
45
- <?php _e('Select Ranking', 'yet-another-stars-rating'); ?>
46
  </strong>
47
  <br/>
48
  <?php
@@ -83,7 +83,7 @@ class YasrSettingsRankings {
83
  <div class="yasr-builder-div-fluid">
84
  <strong>
85
  <?php
86
- _e( 'How many rows?', 'yet-another-stars-rating');
87
  echo wp_kses_post(YASR_LOCKED_FEATURE);
88
  ?>
89
  </strong>
@@ -114,7 +114,7 @@ class YasrSettingsRankings {
114
  <!-- Size -->
115
  <div class="yasr-builder-div-fluid" id="builder-stars-size">
116
  <strong>
117
- <?php _e('Size', 'yet-another-stars-rating'); ?>
118
  </strong>
119
  <?php echo wp_kses_post(YASR_LOCKED_FEATURE); ?>
120
  <br/>
@@ -156,7 +156,7 @@ class YasrSettingsRankings {
156
  <div class="yasr-builder-div-fluid" id="builder-vv-required-votes">
157
  <strong>
158
  <?php
159
- _e('At least...', 'yet-another-stars-rating');
160
  echo wp_kses_post(YASR_LOCKED_FEATURE);
161
  ?>
162
  </strong>
@@ -179,7 +179,7 @@ class YasrSettingsRankings {
179
  </select>
180
  </label>
181
  <br />
182
- <?php _e('votes required for most rated', 'yet-another-stars-rating'); ?>
183
  </div>
184
 
185
  <!-- Min. number of votes for highest rated -->
@@ -200,7 +200,7 @@ class YasrSettingsRankings {
200
  </select>
201
  </label>
202
  <br />
203
- <?php _e('votes required for highest rated', 'yet-another-stars-rating'); ?>
204
  </div>
205
  </div>
206
  <?php
@@ -227,7 +227,7 @@ class YasrSettingsRankings {
227
  ?>
228
  <br />
229
  <strong>
230
- <?php _e("Text to show", 'yet-another-stars-rating') ?>
231
  </strong>
232
  <br/>
233
  <label for="yasr-builder-customize-ov-text">
@@ -305,7 +305,7 @@ class YasrSettingsRankings {
305
 
306
  <div>
307
  <label for="yasr-filter-categories">
308
- <?php _e("Search Categories:", 'yet-another-stars-rating') ?>
309
  </label>
310
  <input type="text"
311
  name="yasr-filter-categories"
@@ -417,7 +417,7 @@ class YasrSettingsRankings {
417
  <div class="yasr-builder-div-fluid" id="yasr-ranking-multiset">
418
  <strong>
419
  <?php
420
- _e('Choose Multi Set', 'yet-another-stars-rating');
421
  ?>
422
  </strong>
423
  <!-- Min. number of votes for most rated -->
42
  <!-- Source -->
43
  <div class="yasr-builder-div-fluid">
44
  <strong>
45
+ <?php esc_html_e('Select Ranking', 'yet-another-stars-rating'); ?>
46
  </strong>
47
  <br/>
48
  <?php
83
  <div class="yasr-builder-div-fluid">
84
  <strong>
85
  <?php
86
+ esc_html_e( 'How many rows?', 'yet-another-stars-rating');
87
  echo wp_kses_post(YASR_LOCKED_FEATURE);
88
  ?>
89
  </strong>
114
  <!-- Size -->
115
  <div class="yasr-builder-div-fluid" id="builder-stars-size">
116
  <strong>
117
+ <?php esc_html_e('Size', 'yet-another-stars-rating'); ?>
118
  </strong>
119
  <?php echo wp_kses_post(YASR_LOCKED_FEATURE); ?>
120
  <br/>
156
  <div class="yasr-builder-div-fluid" id="builder-vv-required-votes">
157
  <strong>
158
  <?php
159
+ esc_html_e('At least...', 'yet-another-stars-rating');
160
  echo wp_kses_post(YASR_LOCKED_FEATURE);
161
  ?>
162
  </strong>
179
  </select>
180
  </label>
181
  <br />
182
+ <?php esc_html_e('votes required for most rated', 'yet-another-stars-rating'); ?>
183
  </div>
184
 
185
  <!-- Min. number of votes for highest rated -->
200
  </select>
201
  </label>
202
  <br />
203
+ <?php esc_html_e('votes required for highest rated', 'yet-another-stars-rating'); ?>
204
  </div>
205
  </div>
206
  <?php
227
  ?>
228
  <br />
229
  <strong>
230
+ <?php esc_html_e("Text to show", 'yet-another-stars-rating') ?>
231
  </strong>
232
  <br/>
233
  <label for="yasr-builder-customize-ov-text">
305
 
306
  <div>
307
  <label for="yasr-filter-categories">
308
+ <?php esc_html_e("Search Categories:", 'yet-another-stars-rating') ?>
309
  </label>
310
  <input type="text"
311
  name="yasr-filter-categories"
417
  <div class="yasr-builder-div-fluid" id="yasr-ranking-multiset">
418
  <strong>
419
  <?php
420
+ esc_html_e('Choose Multi Set', 'yet-another-stars-rating');
421
  ?>
422
  </strong>
423
  <!-- Min. number of votes for most rated -->
admin/settings/migrations/yasr-settings-migration-page.php CHANGED
@@ -26,7 +26,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
26
 
27
  ?>
28
 
29
- <h3><?php _e('Migration Tools', 'yet-another-stars-rating'); ?></h3>
30
 
31
  <table class="form-table yasr-settings-table" id="yasr-migrate-table">
32
  <tr>
@@ -39,7 +39,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
39
  && !$rating_plugin_exists->yasr_search_kksr() && !$rating_plugin_exists->yasr_search_mr()) {
40
  ?>
41
  <span class="title-noplugin-found">
42
- <?php _e('No supported plugin has been found' , 'yet-another-stars-rating'); ?>
43
  </span>
44
  <?php
45
  }
@@ -48,7 +48,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
48
  $nonce_import_wppr = wp_create_nonce('yasr-import-wppr-action');
49
  ?>
50
  <span class="title-plugin-found">
51
- <?php _e('Plugin found: WP-PostRatings' , 'yet-another-stars-rating'); ?>
52
  </span>
53
  <?php
54
 
@@ -67,7 +67,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
67
  The only way to be sure to get ALL data is, for every single post or page, getting the total
68
  number of votes, and save the current average as the rating for all votes. %s
69
  E.g. A post has 130 votes with an average of 4.4: since is impossible to know the single rating,
70
- Yasr will import 130 votes with 4.4. %s
71
  Because of this, statistics in front end will be disabled for all post or page published before
72
  the import.',
73
  'yet-another-stars-rating'
@@ -92,7 +92,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
92
  ?>
93
  <div class="yasr-indented-answer">
94
  <button class="button-primary" id="yasr-import-wppr-submit">
95
- <?php _e('Import data', 'yet-another-stars-rating') ?>
96
  </button>
97
  <input type="hidden" id="yasr-import-wppr-nonce"
98
  value="<?php echo esc_attr($nonce_import_wppr) ?>">
@@ -116,7 +116,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
116
  $nonce_import_kksr = wp_create_nonce('yasr-import-kksr-action');
117
  ?>
118
  <span class="title-plugin-found">
119
- <?php _e('Plugin found: KK Star Ratings' , 'yet-another-stars-rating'); ?>
120
  </span>
121
  <?php
122
 
@@ -126,7 +126,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
126
  The only way to be sure to get ALL data is, for every single post or page, getting the total
127
  number of votes, and save the current average as the rating for all votes. %s
128
  E.g. A post has 130 votes with an average of 4.4: since is impossible to know the single rating,
129
- Yasr will import 130 votes 4.4 votes. %s
130
  Because of this, statistics in front end will be disabled for all post or page published before
131
  the import.%s
132
  If you use a rating scale different than 1 to 5, all ratings will be converted to work with a
@@ -151,7 +151,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
151
  ?>
152
  <div class="yasr-indented-answer">
153
  <button class="button-primary" id="yasr-import-kksr-submit">
154
- <?php _e('Import data', 'yet-another-stars-rating') ?>
155
  </button>
156
  <input type="hidden" id="yasr-import-kksr-nonce" value="<?php echo $nonce_import_kksr ?>">
157
  </div>
@@ -172,7 +172,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
172
  $nonce_import_rmp = wp_create_nonce('yasr-import-ratemypost-action');
173
  ?>
174
  <span class="title-plugin-found">
175
- <?php _e('Plugin found: Rate My Post' , 'yet-another-stars-rating'); ?>
176
  </span>
177
  <?php
178
  if (is_array($plugin_imported) && array_key_exists('rmp', $plugin_imported)) {
@@ -189,7 +189,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
189
  ?>
190
  <div class="yasr-indented-answer">
191
  <button class="button-primary" id="yasr-import-ratemypost-submit">
192
- <?php _e('Import data', 'yet-another-stars-rating') ?>
193
  </button>
194
  <input type="hidden" id="yasr-import-rmp-nonce" value="<?php echo $nonce_import_rmp ?>">
195
  </div>
@@ -206,7 +206,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
206
  $nonce_import_mr = wp_create_nonce('yasr-import-mr-action');
207
  ?>
208
  <span class="title-plugin-found">
209
- <?php _e('Plugin found: Multi Rating' , 'yet-another-stars-rating'); ?>
210
  </span>
211
  <?php
212
 
@@ -216,7 +216,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
216
  The only way to be sure to get ALL data is, for every single post or page, getting the total
217
  number of votes, and save the current average as the rating for all votes. %s
218
  E.g. A post has 130 votes with an average of 4.4: since is impossible to know the single rating,
219
- YASR will import 130 votes with 4.4. %s
220
  Because of this, statistics in front end will be disabled for all post or page published before
221
  the import.',
222
  'yet-another-stars-rating'
@@ -239,7 +239,7 @@ $plugin_imported = get_option('yasr_plugin_imported');
239
  ?>
240
  <div class="yasr-indented-answer">
241
  <button class="button-primary" id="yasr-import-mr-submit">
242
- <?php _e('Import data', 'yet-another-stars-rating') ?>
243
  </button>
244
  <input type="hidden" id="yasr-import-mr-nonce"
245
  value="<?php echo $nonce_import_mr ?>">
26
 
27
  ?>
28
 
29
+ <h3><?php esc_html_e('Migration Tools', 'yet-another-stars-rating'); ?></h3>
30
 
31
  <table class="form-table yasr-settings-table" id="yasr-migrate-table">
32
  <tr>
39
  && !$rating_plugin_exists->yasr_search_kksr() && !$rating_plugin_exists->yasr_search_mr()) {
40
  ?>
41
  <span class="title-noplugin-found">
42
+ <?php esc_html_e('No supported plugin has been found' , 'yet-another-stars-rating'); ?>
43
  </span>
44
  <?php
45
  }
48
  $nonce_import_wppr = wp_create_nonce('yasr-import-wppr-action');
49
  ?>
50
  <span class="title-plugin-found">
51
+ <?php esc_html_e('Plugin found: WP-PostRatings' , 'yet-another-stars-rating'); ?>
52
  </span>
53
  <?php
54
 
67
  The only way to be sure to get ALL data is, for every single post or page, getting the total
68
  number of votes, and save the current average as the rating for all votes. %s
69
  E.g. A post has 130 votes with an average of 4.4: since is impossible to know the single rating,
70
+ Yasr will import 130 votes with an average of 4.4. %s
71
  Because of this, statistics in front end will be disabled for all post or page published before
72
  the import.',
73
  'yet-another-stars-rating'
92
  ?>
93
  <div class="yasr-indented-answer">
94
  <button class="button-primary" id="yasr-import-wppr-submit">
95
+ <?php esc_html_e('Import data', 'yet-another-stars-rating') ?>
96
  </button>
97
  <input type="hidden" id="yasr-import-wppr-nonce"
98
  value="<?php echo esc_attr($nonce_import_wppr) ?>">
116
  $nonce_import_kksr = wp_create_nonce('yasr-import-kksr-action');
117
  ?>
118
  <span class="title-plugin-found">
119
+ <?php esc_html_e('Plugin found: KK Star Ratings' , 'yet-another-stars-rating'); ?>
120
  </span>
121
  <?php
122
 
126
  The only way to be sure to get ALL data is, for every single post or page, getting the total
127
  number of votes, and save the current average as the rating for all votes. %s
128
  E.g. A post has 130 votes with an average of 4.4: since is impossible to know the single rating,
129
+ Yasr will import 130 votes with an average of 4.4 %s
130
  Because of this, statistics in front end will be disabled for all post or page published before
131
  the import.%s
132
  If you use a rating scale different than 1 to 5, all ratings will be converted to work with a
151
  ?>
152
  <div class="yasr-indented-answer">
153
  <button class="button-primary" id="yasr-import-kksr-submit">
154
+ <?php esc_html_e('Import data', 'yet-another-stars-rating') ?>
155
  </button>
156
  <input type="hidden" id="yasr-import-kksr-nonce" value="<?php echo $nonce_import_kksr ?>">
157
  </div>
172
  $nonce_import_rmp = wp_create_nonce('yasr-import-ratemypost-action');
173
  ?>
174
  <span class="title-plugin-found">
175
+ <?php esc_html_e('Plugin found: Rate My Post' , 'yet-another-stars-rating'); ?>
176
  </span>
177
  <?php
178
  if (is_array($plugin_imported) && array_key_exists('rmp', $plugin_imported)) {
189
  ?>
190
  <div class="yasr-indented-answer">
191
  <button class="button-primary" id="yasr-import-ratemypost-submit">
192
+ <?php esc_html_e('Import data', 'yet-another-stars-rating') ?>
193
  </button>
194
  <input type="hidden" id="yasr-import-rmp-nonce" value="<?php echo $nonce_import_rmp ?>">
195
  </div>
206
  $nonce_import_mr = wp_create_nonce('yasr-import-mr-action');
207
  ?>
208
  <span class="title-plugin-found">
209
+ <?php esc_html_e('Plugin found: Multi Rating' , 'yet-another-stars-rating'); ?>
210
  </span>
211
  <?php
212
 
216
  The only way to be sure to get ALL data is, for every single post or page, getting the total
217
  number of votes, and save the current average as the rating for all votes. %s
218
  E.g. A post has 130 votes with an average of 4.4: since is impossible to know the single rating,
219
+ YASR will import 130 votes with an average of 4.4. %s
220
  Because of this, statistics in front end will be disabled for all post or page published before
221
  the import.',
222
  'yet-another-stars-rating'
239
  ?>
240
  <div class="yasr-indented-answer">
241
  <button class="button-primary" id="yasr-import-mr-submit">
242
+ <?php esc_html_e('Import data', 'yet-another-stars-rating') ?>
243
  </button>
244
  <input type="hidden" id="yasr-import-mr-nonce"
245
  value="<?php echo $nonce_import_mr ?>">
admin/settings/multiset/yasr-settings-functions-multiset-page.php CHANGED
@@ -22,14 +22,14 @@ if (!defined('ABSPATH')) {
22
  exit('You\'re not allowed to see this page');
23
  } // Exit if accessed directly
24
 
25
- $error_new_multi_set = yasr_process_new_multi_set_form(); //defined in yasr-settings-functions
26
  $error_edit_multi_set = yasr_process_edit_multi_set_form(); //defined in yasr-settings-functions
27
 
28
  if ($error_new_multi_set) {
29
  echo "<div class='error'> <p> <strong>";
30
 
31
  foreach ($error_new_multi_set as $error) {
32
- _e($error, 'yet-another-stars-rating');
33
  echo "<br />";
34
  }
35
 
@@ -40,7 +40,7 @@ if ($error_edit_multi_set) {
40
  echo "<div class='error'> <p> <strong>";
41
 
42
  foreach ($error_edit_multi_set as $error) {
43
- _e($error, 'yet-another-stars-rating');
44
  echo "<br />";
45
  }
46
 
@@ -54,16 +54,17 @@ $n_multi_set = (int)$wpdb->num_rows; //wpdb->num_rows always store the last of t
54
 
55
  ?>
56
 
57
- <input type="hidden" value="<?php echo $n_multi_set; ?>" id="n-multiset">
58
- <h3> <?php _e("Manage Multi Set", 'yet-another-stars-rating'); ?></h3>
59
 
60
  <p>
61
- <a href="#"
62
- id="yasr-multi-set-doc-link"><?php _e("What is a Multi Set?", 'yet-another-stars-rating') ?></a>
 
63
  </p>
64
 
65
  <div id="yasr-multi-set-doc-box" style="display:none">
66
- <?php _e(
67
  "Multi Set allows you to insert a rate for each aspect about the product / local business /
68
  whetever you're reviewing, example in the image below.",
69
  'yet-another-stars-rating'
@@ -71,7 +72,7 @@ $n_multi_set = (int)$wpdb->num_rows; //wpdb->num_rows always store the last of t
71
 
72
  echo "<br /><br /><img src=" . YASR_IMG_DIR . "/yasr-multi-set.png> <br /> <br />";
73
 
74
- _e(
75
  "You can create up to 99 different Multi Set and each one can contain up to 9 different fields.
76
  Once you've saved it, you can insert the rates while typing your article in the box below the editor,
77
  as you can see in this image (click to see it larger)",
@@ -80,7 +81,7 @@ $n_multi_set = (int)$wpdb->num_rows; //wpdb->num_rows always store the last of t
80
 
81
  echo "<br /><br /><a href=\"" . YASR_IMG_DIR . "yasr-multi-set-insert-rate.jpg\"><img src=" . YASR_IMG_DIR . "/yasr-multi-set-insert-rate-small.jpg></a> <br /> <br />";
82
 
83
- _e(
84
  'In order to insert your Multi Sets into a post or page, you can either past the short code that will
85
  appear at the bottom of the box or just click on the star in the graphic editor and select "Insert Multi Set".',
86
  'yet-another-stars-rating'
@@ -88,8 +89,9 @@ $n_multi_set = (int)$wpdb->num_rows; //wpdb->num_rows always store the last of t
88
 
89
  ?>
90
  <br/> <br/>
91
- <a href="#"
92
- id="yasr-multi-set-doc-link-hide"><?php _e("Close this message", 'yet-another-stars-rating') ?></a>
 
93
  </div>
94
 
95
  <div class="yasr-multi-set-left">
22
  exit('You\'re not allowed to see this page');
23
  } // Exit if accessed directly
24
 
25
+ $error_new_multi_set = yasr_process_new_multi_set_form(); //defined in yasr-settings-functions
26
  $error_edit_multi_set = yasr_process_edit_multi_set_form(); //defined in yasr-settings-functions
27
 
28
  if ($error_new_multi_set) {
29
  echo "<div class='error'> <p> <strong>";
30
 
31
  foreach ($error_new_multi_set as $error) {
32
+ echo wp_kses_post ($error);
33
  echo "<br />";
34
  }
35
 
40
  echo "<div class='error'> <p> <strong>";
41
 
42
  foreach ($error_edit_multi_set as $error) {
43
+ echo wp_kses_post ($error);
44
  echo "<br />";
45
  }
46
 
54
 
55
  ?>
56
 
57
+ <input type="hidden" value="<?php echo esc_attr($n_multi_set); ?>" id="n-multiset">
58
+ <h3> <?php esc_html_e("Manage Multi Set", 'yet-another-stars-rating'); ?></h3>
59
 
60
  <p>
61
+ <a href="#" id="yasr-multi-set-doc-link">
62
+ <?php esc_html_e("What is a Multi Set?", 'yet-another-stars-rating') ?>
63
+ </a>
64
  </p>
65
 
66
  <div id="yasr-multi-set-doc-box" style="display:none">
67
+ <?php esc_html_e(
68
  "Multi Set allows you to insert a rate for each aspect about the product / local business /
69
  whetever you're reviewing, example in the image below.",
70
  'yet-another-stars-rating'
72
 
73
  echo "<br /><br /><img src=" . YASR_IMG_DIR . "/yasr-multi-set.png> <br /> <br />";
74
 
75
+ esc_html_e(
76
  "You can create up to 99 different Multi Set and each one can contain up to 9 different fields.
77
  Once you've saved it, you can insert the rates while typing your article in the box below the editor,
78
  as you can see in this image (click to see it larger)",
81
 
82
  echo "<br /><br /><a href=\"" . YASR_IMG_DIR . "yasr-multi-set-insert-rate.jpg\"><img src=" . YASR_IMG_DIR . "/yasr-multi-set-insert-rate-small.jpg></a> <br /> <br />";
83
 
84
+ esc_html_e(
85
  'In order to insert your Multi Sets into a post or page, you can either past the short code that will
86
  appear at the bottom of the box or just click on the star in the graphic editor and select "Insert Multi Set".',
87
  'yet-another-stars-rating'
89
 
90
  ?>
91
  <br/> <br/>
92
+ <a href="#" id="yasr-multi-set-doc-link-hide">
93
+ <?php esc_html_e("Close this message", 'yet-another-stars-rating') ?>
94
+ </a>
95
  </div>
96
 
97
  <div class="yasr-multi-set-left">
admin/settings/multiset/yasr-settings-functions-multiset.php CHANGED
@@ -75,7 +75,7 @@ function yasr_multiset_hide_average_callback($option_multiset) {
75
 
76
  <?php
77
 
78
- _e('If you select no, the "Average" row will not be displayed.
79
  You can override this in the single multi set by using the parameter "show_average"',
80
  'yet-another-stars-rating');
81
 
@@ -104,12 +104,12 @@ function yasr_display_multi_set_form() {
104
  ?>
105
 
106
  <h4 class="yasr-multi-set-form-headers">
107
- <?php _e("Add New Multiple Set", 'yet-another-stars-rating'); ?>
108
  </h4>
109
 
110
  <p>
111
  <em>
112
- <?php _e('Name, Element#1 and Element#2 MUST be filled and must be long at least 3 characters',
113
  'yet-another-stars-rating') ?>
114
  </em>
115
  </p>
@@ -120,16 +120,15 @@ function yasr_display_multi_set_form() {
120
 
121
  <?php wp_nonce_field('add-multi-set', 'add-nonce-new-multi-set') //Must be inside the form ?>
122
 
123
- <strong><?php _e("Name", 'yet-another-stars-rating') ?></strong>
124
 
125
  <input type="text" name="multi-set-name" id="new-multi-set-name" class="input-text-multi-set">
126
  <br />
127
 
128
- <?php _e("You can insert up to nine elements", 'yet-another-stars-rating') ?>
129
  <br/>
130
 
131
  <?php for ($i = 1; $i <= 9; $i ++) {
132
-
133
  echo "<strong>" . __('Element ', 'yet-another-stars-rating') . "#$i" . "</strong>";
134
  ?>
135
  <input type="text" name="multi-set-name-element-<?php echo $i ?>" id="multi-set-name-element-<?php echo $i ?>"
@@ -139,7 +138,7 @@ function yasr_display_multi_set_form() {
139
  <?php } //End foreach ?>
140
 
141
  <br/>
142
- <input type="submit" value="<?php _e("Create New Set", 'yet-another-stars-rating') ?>" class="button-primary"/>
143
  </form>
144
  </div>
145
 
@@ -159,9 +158,9 @@ function yasr_edit_multi_form() {
159
  ?>
160
 
161
  <div class="yasr-manage-multiset">
162
- <h4 class="yasr-multi-set-form-headers"><?php _e("Manage Multiple Set", 'yet-another-stars-rating'); ?></h4>
163
 
164
- <?php _e('Wich set do you want to edit or remove?', 'yet-another-stars-rating') ?>
165
 
166
  <select id="yasr_select_edit_set">
167
  <?php foreach ($multi_set as $name) { ?>
@@ -169,7 +168,7 @@ function yasr_edit_multi_form() {
169
  <?php } //End foreach ?>
170
  </select>
171
 
172
- <button href="#" class="button-delete" id="yasr-button-select-set-edit-form"><?php _e("Select"); ?></button>
173
  </div>
174
 
175
  <?php
@@ -190,7 +189,7 @@ function yasr_edit_multi_form() {
190
 
191
  <div class="yasr-manage-multiset-single">
192
 
193
- <h4 class="yasr-multi-set-form-headers"><?php _e("Manage Multiple Set", 'yet-another-stars-rating'); ?></h4>
194
 
195
  <form action=" <?php echo admin_url('options-general.php?page=yasr_settings_page&tab=manage_multi') ?>"
196
  id="form_edit_multi_set" method="post">
@@ -200,11 +199,11 @@ function yasr_edit_multi_form() {
200
  <table id="yasr-table-form-edit-multi-set">
201
  <tr>
202
  <td id="yasr-table-form-edit-multi-set-header">
203
- <?php _e('Field name', 'yet-another-stars-rating') ?>
204
  </td>
205
 
206
  <td id="yasr-table-form-edit-multi-set-remove">
207
- <?php _e('Remove', 'yet-another-stars-rating') ?>
208
  </td>
209
  </tr>
210
 
@@ -255,7 +254,7 @@ function yasr_edit_multi_form() {
255
  ";
256
 
257
  echo "<p>";
258
- _e("If you remove something you will remove all the votes for that set or field. This operation CAN'T BE undone.", 'yet-another-stars-rating');
259
  echo "</p>";
260
 
261
  wp_nonce_field('edit-multi-set', 'add-nonce-edit-multi-set')
@@ -263,12 +262,16 @@ function yasr_edit_multi_form() {
263
  ?>
264
 
265
  <div id="yasr-element-limit"
266
- style="display:none; color:red"><?php _e("You can use up to 9 elements", 'yet-another-stars-rating') ?></div>
267
 
268
- <input type="button" class="button-delete" id="yasr-add-field-edit-multiset"
269
- value="<?php _e('Add element', 'yet-another-stars-rating'); ?>">
 
 
 
270
 
271
- <input type="submit" value="<?php _e('Save changes', 'yet-another-stars-rating') ?>"
 
272
  class="button-primary">
273
 
274
  </form>
@@ -277,7 +280,7 @@ function yasr_edit_multi_form() {
277
 
278
  <?php
279
  } else {
280
- _e("No Multiple Set were found", 'yet-another-stars-rating');
281
  }
282
 
283
  }//End function
@@ -313,11 +316,11 @@ function yasr_get_multi_set_callback() {
313
  <table id="yasr-table-form-edit-multi-set">
314
  <tr>
315
  <td id="yasr-table-form-edit-multi-set-header">
316
- <?php _e('Field name', 'yet-another-stars-rating') ?>
317
  </td>
318
 
319
  <td id="yasr-table-form-edit-multi-set-remove">
320
- <?php _e('Remove', 'yet-another-stars-rating') ?>
321
  </td>
322
  </tr>
323
 
@@ -365,7 +368,7 @@ function yasr_get_multi_set_callback() {
365
  ";
366
 
367
  echo "<p>";
368
- _e("If you remove something you will remove all the votes for that set or field. This operation CAN'T BE undone.", 'yet-another-stars-rating');
369
  echo "</p>";
370
 
371
  wp_nonce_field('edit-multi-set', 'add-nonce-edit-multi-set')
@@ -373,12 +376,12 @@ function yasr_get_multi_set_callback() {
373
  ?>
374
 
375
  <div id="yasr-element-limit"
376
- style="display:none; color:red"><?php _e("You can use up to 9 elements", 'yet-another-stars-rating') ?></div>
377
 
378
  <input type="button" class="button-delete" id="yasr-add-field-edit-multiset"
379
- value="<?php _e('Add element', 'yet-another-stars-rating'); ?>">
380
 
381
- <input type="submit" value="<?php _e('Save changes', 'yet-another-stars-rating') ?>" class="button-primary">
382
 
383
  </form>
384
 
@@ -418,13 +421,13 @@ function yasr_process_new_multi_set_form() {
418
 
419
  //If multi set name is shorter than 3 characher come back
420
  if (mb_strlen($multi_set_name) < 3 || mb_strlen($multi_set_name_element_[1]) < 3 || mb_strlen($multi_set_name_element_[2]) < 3) {
421
- $array_errors[] = "Content field must be longer than 3 chars";
422
  $error = true;
423
  }
424
 
425
 
426
  if (mb_strlen($multi_set_name) > 40 || mb_strlen($multi_set_name_element_[1]) > 40 || mb_strlen($multi_set_name_element_[2]) > 40) {
427
- $array_errors[] = "Content field must be shorter than 40 chars";
428
  $error = true;
429
  }
430
 
@@ -433,7 +436,7 @@ function yasr_process_new_multi_set_form() {
433
 
434
  foreach ($check_name_exists as $set_name) {
435
  if ($multi_set_name == $set_name->set_name) {
436
- $array_errors[] = "You already have a set with this name";
437
  $error = true;
438
  }
439
  }
@@ -448,12 +451,18 @@ function yasr_process_new_multi_set_form() {
448
  $multi_set_name_element_[$i] = $_POST["multi-set-name-element-$i"];
449
 
450
  if (mb_strlen($multi_set_name_element_[$i]) < 3) {
451
- $array_errors[] = "Field # $i must be at least 3 characters";
452
- $error = true;
 
 
 
453
  }
454
 
455
  if (mb_strlen($multi_set_name_element_[$i]) > 40) {
456
- $array_errors[] = "Field # $i must be shorter than 40 characters";
 
 
 
457
  $error = true;
458
  }
459
 
@@ -519,16 +528,18 @@ function yasr_process_new_multi_set_form() {
519
 
520
  if ($insert_set_value) {
521
  echo "<div class=\"updated\"><p><strong>";
522
- _e("Settings Saved", 'yet-another-stars-rating');
523
  echo "</strong></p></div> ";
524
  } else {
525
- _e("Something goes wrong trying insert set field name. Please report it", 'yet-another-stars-rating');
 
526
  }
527
 
528
  } //End if $insert_multi_name_success
529
 
530
  else {
531
- _e("Something goes wrong trying insert Multi Set name. Please report it", 'yet-another-stars-rating');
 
532
  }
533
 
534
  } //End if !$error
@@ -538,7 +549,7 @@ function yasr_process_new_multi_set_form() {
538
 
539
  //Else multi set's name and first 2 elements are empty
540
  else {
541
- $array_errors[] = "Multi Set's name and first 2 elements can't be empty";
542
  $error = true;
543
  }
544
 
@@ -570,9 +581,7 @@ function yasr_process_edit_multi_set_form() {
570
  // Check nonce field
571
  check_admin_referer('edit-multi-set', 'add-nonce-edit-multi-set');
572
 
573
-
574
  //Check if user want to delete entire set
575
-
576
  if (isset($_POST["yasr-remove-multi-set"])) {
577
 
578
  $remove_set = $wpdb->delete(
@@ -649,13 +658,17 @@ function yasr_process_edit_multi_set_form() {
649
 
650
  //if elements name is shorter than 3 chars
651
  if (mb_strlen($field_name) < 3) {
652
- $array_errors[] = __("Field # $i must be at least 3 characters", 'yet-another-stars-rating');
653
- $error = true;
 
 
654
  }
655
 
656
  if (mb_strlen($field_name) > 40) {
657
- $array_errors[] = __("Field # $i must be shorter than 40 characters", 'yet-another-stars-rating');
658
- $error = true;
 
 
659
  } else {
660
 
661
  //Check if field name is changed
@@ -711,12 +724,16 @@ function yasr_process_edit_multi_set_form() {
711
  //because I don't wont return error if an user add an empty field. An empty field will be
712
  //just ignored
713
  if (mb_strlen($field_name) > 1 && mb_strlen($field_name) < 3) {
714
- $array_errors[] = __("Field # $i must be at least 3 characters", 'yet-another-stars-rating');
715
- $error = true;
 
 
716
  }
717
 
718
  if (mb_strlen($field_name) > 40) {
719
- $array_errors[] = __("Field # $i must be shorter than 40 characters", 'yet-another-stars-rating');
 
 
720
  $error = true;
721
  } //if field is not empty
722
  elseif ($field_name != '') {
@@ -765,7 +782,7 @@ function yasr_process_edit_multi_set_form() {
765
  }
766
 
767
  echo "<div class=\"updated\"><p><strong>";
768
- _e("Settings Saved", 'yet-another-stars-rating');
769
  echo "</strong></p></div> ";
770
 
771
 
75
 
76
  <?php
77
 
78
+ esc_html_e('If you select no, the "Average" row will not be displayed.
79
  You can override this in the single multi set by using the parameter "show_average"',
80
  'yet-another-stars-rating');
81
 
104
  ?>
105
 
106
  <h4 class="yasr-multi-set-form-headers">
107
+ <?php esc_html_e("Add New Multiple Set", 'yet-another-stars-rating'); ?>
108
  </h4>
109
 
110
  <p>
111
  <em>
112
+ <?php esc_html_e('Name, Element#1 and Element#2 MUST be filled and must be long at least 3 characters',
113
  'yet-another-stars-rating') ?>
114
  </em>
115
  </p>
120
 
121
  <?php wp_nonce_field('add-multi-set', 'add-nonce-new-multi-set') //Must be inside the form ?>
122
 
123
+ <strong><?php esc_html_e("Name", 'yet-another-stars-rating') ?></strong>
124
 
125
  <input type="text" name="multi-set-name" id="new-multi-set-name" class="input-text-multi-set">
126
  <br />
127
 
128
+ <?php esc_html_e("You can insert up to nine elements", 'yet-another-stars-rating') ?>
129
  <br/>
130
 
131
  <?php for ($i = 1; $i <= 9; $i ++) {
 
132
  echo "<strong>" . __('Element ', 'yet-another-stars-rating') . "#$i" . "</strong>";
133
  ?>
134
  <input type="text" name="multi-set-name-element-<?php echo $i ?>" id="multi-set-name-element-<?php echo $i ?>"
138
  <?php } //End foreach ?>
139
 
140
  <br/>
141
+ <input type="submit" value="<?php esc_attr_e("Create New Set", 'yet-another-stars-rating') ?>" class="button-primary"/>
142
  </form>
143
  </div>
144
 
158
  ?>
159
 
160
  <div class="yasr-manage-multiset">
161
+ <h4 class="yasr-multi-set-form-headers"><?php esc_html_e("Manage Multiple Set", 'yet-another-stars-rating'); ?></h4>
162
 
163
+ <?php esc_html_e('Wich set do you want to edit or remove?', 'yet-another-stars-rating') ?>
164
 
165
  <select id="yasr_select_edit_set">
166
  <?php foreach ($multi_set as $name) { ?>
168
  <?php } //End foreach ?>
169
  </select>
170
 
171
+ <button href="#" class="button-delete" id="yasr-button-select-set-edit-form"><?php esc_html_e("Select"); ?></button>
172
  </div>
173
 
174
  <?php
189
 
190
  <div class="yasr-manage-multiset-single">
191
 
192
+ <h4 class="yasr-multi-set-form-headers"><?php esc_html_e("Manage Multiple Set", 'yet-another-stars-rating'); ?></h4>
193
 
194
  <form action=" <?php echo admin_url('options-general.php?page=yasr_settings_page&tab=manage_multi') ?>"
195
  id="form_edit_multi_set" method="post">
199
  <table id="yasr-table-form-edit-multi-set">
200
  <tr>
201
  <td id="yasr-table-form-edit-multi-set-header">
202
+ <?php esc_html_e('Field name', 'yet-another-stars-rating') ?>
203
  </td>
204
 
205
  <td id="yasr-table-form-edit-multi-set-remove">
206
+ <?php esc_html_e('Remove', 'yet-another-stars-rating') ?>
207
  </td>
208
  </tr>
209
 
254
  ";
255
 
256
  echo "<p>";
257
+ esc_html_e("If you remove something you will remove all the votes for that set or field. This operation CAN'T BE undone.", 'yet-another-stars-rating');
258
  echo "</p>";
259
 
260
  wp_nonce_field('edit-multi-set', 'add-nonce-edit-multi-set')
262
  ?>
263
 
264
  <div id="yasr-element-limit"
265
+ style="display:none; color:red"><?php esc_html_e("You can use up to 9 elements", 'yet-another-stars-rating') ?></div>
266
 
267
+ <input type="button"
268
+ class="button-delete"
269
+ id="yasr-add-field-edit-multiset"
270
+ value="<?php esc_attr_e('Add element', 'yet-another-stars-rating'); ?>"
271
+ >
272
 
273
+ <input type="submit"
274
+ value="<?php esc_attr_e('Save changes', 'yet-another-stars-rating') ?>"
275
  class="button-primary">
276
 
277
  </form>
280
 
281
  <?php
282
  } else {
283
+ esc_html_e("No Multiple Set were found", 'yet-another-stars-rating');
284
  }
285
 
286
  }//End function
316
  <table id="yasr-table-form-edit-multi-set">
317
  <tr>
318
  <td id="yasr-table-form-edit-multi-set-header">
319
+ <?php esc_html_e('Field name', 'yet-another-stars-rating') ?>
320
  </td>
321
 
322
  <td id="yasr-table-form-edit-multi-set-remove">
323
+ <?php esc_html_e('Remove', 'yet-another-stars-rating') ?>
324
  </td>
325
  </tr>
326
 
368
  ";
369
 
370
  echo "<p>";
371
+ esc_html_e("If you remove something you will remove all the votes for that set or field. This operation CAN'T BE undone.", 'yet-another-stars-rating');
372
  echo "</p>";
373
 
374
  wp_nonce_field('edit-multi-set', 'add-nonce-edit-multi-set')
376
  ?>
377
 
378
  <div id="yasr-element-limit"
379
+ style="display:none; color:red"><?php esc_html_e("You can use up to 9 elements", 'yet-another-stars-rating') ?></div>
380
 
381
  <input type="button" class="button-delete" id="yasr-add-field-edit-multiset"
382
+ value="<?php esc_html_e('Add element', 'yet-another-stars-rating'); ?>">
383
 
384
+ <input type="submit" value="<?php esc_attr_e('Save changes', 'yet-another-stars-rating') ?>" class="button-primary">
385
 
386
  </form>
387
 
421
 
422
  //If multi set name is shorter than 3 characher come back
423
  if (mb_strlen($multi_set_name) < 3 || mb_strlen($multi_set_name_element_[1]) < 3 || mb_strlen($multi_set_name_element_[2]) < 3) {
424
+ $array_errors[] = __('Content field must be longer than 3 chars', 'yet-another-stars-rating');
425
  $error = true;
426
  }
427
 
428
 
429
  if (mb_strlen($multi_set_name) > 40 || mb_strlen($multi_set_name_element_[1]) > 40 || mb_strlen($multi_set_name_element_[2]) > 40) {
430
+ $array_errors[] = __('Content field must be shorter than 40 chars', 'yet-another-stars-rating');
431
  $error = true;
432
  }
433
 
436
 
437
  foreach ($check_name_exists as $set_name) {
438
  if ($multi_set_name == $set_name->set_name) {
439
+ $array_errors[] = __('You already have a set with this name', 'yet-another-stars-rating');
440
  $error = true;
441
  }
442
  }
451
  $multi_set_name_element_[$i] = $_POST["multi-set-name-element-$i"];
452
 
453
  if (mb_strlen($multi_set_name_element_[$i]) < 3) {
454
+ $array_errors[] = sprintf(
455
+ __('Field # %d must be at least 3 characters', 'yet-another-stars-rating'),
456
+ $i
457
+ );
458
+ $error = true;
459
  }
460
 
461
  if (mb_strlen($multi_set_name_element_[$i]) > 40) {
462
+ $array_errors[] = sprintf(
463
+ __('Field # %d must be shorter than 40 characters', 'yet-another-stars-rating'),
464
+ $i
465
+ );
466
  $error = true;
467
  }
468
 
528
 
529
  if ($insert_set_value) {
530
  echo "<div class=\"updated\"><p><strong>";
531
+ esc_html_e('Settings Saved', 'yet-another-stars-rating');
532
  echo "</strong></p></div> ";
533
  } else {
534
+ esc_html_e('Something goes wrong trying insert set field name. Please report it',
535
+ 'yet-another-stars-rating');
536
  }
537
 
538
  } //End if $insert_multi_name_success
539
 
540
  else {
541
+ esc_html_e('Something goes wrong trying insert Multi Set name. Please report it',
542
+ 'yet-another-stars-rating');
543
  }
544
 
545
  } //End if !$error
549
 
550
  //Else multi set's name and first 2 elements are empty
551
  else {
552
+ $array_errors[] = __('Multi Set\'s name and first 2 elements can\'t be empty', 'yet-another-stars-rating');
553
  $error = true;
554
  }
555
 
581
  // Check nonce field
582
  check_admin_referer('edit-multi-set', 'add-nonce-edit-multi-set');
583
 
 
584
  //Check if user want to delete entire set
 
585
  if (isset($_POST["yasr-remove-multi-set"])) {
586
 
587
  $remove_set = $wpdb->delete(
658
 
659
  //if elements name is shorter than 3 chars
660
  if (mb_strlen($field_name) < 3) {
661
+ $array_errors[] = sprintf(
662
+ __('Field # %d must be at least 3 characters', 'yet-another-stars-rating'),
663
+ $i);
664
+ $error = true;
665
  }
666
 
667
  if (mb_strlen($field_name) > 40) {
668
+ $array_errors[] = sprintf(
669
+ __('Field # %d must be shorter than 40 characters', 'yet-another-stars-rating'),
670
+ $i);
671
+ $error = true;
672
  } else {
673
 
674
  //Check if field name is changed
724
  //because I don't wont return error if an user add an empty field. An empty field will be
725
  //just ignored
726
  if (mb_strlen($field_name) > 1 && mb_strlen($field_name) < 3) {
727
+ $array_errors[] = sprintf(
728
+ __('Field # %d must be at least 3 characters', 'yet-another-stars-rating'),
729
+ $i);
730
+ $error = true;
731
  }
732
 
733
  if (mb_strlen($field_name) > 40) {
734
+ $array_errors[] = sprintf(
735
+ __('Field # %d must be shorter than 40 characters', 'yet-another-stars-rating'),
736
+ $i);
737
  $error = true;
738
  } //if field is not empty
739
  elseif ($field_name != '') {
782
  }
783
 
784
  echo "<div class=\"updated\"><p><strong>";
785
+ esc_html_e("Settings Saved", 'yet-another-stars-rating');
786
  echo "</strong></p></div> ";
787
 
788
 
admin/settings/rankings/yasr-ranking-builder.php CHANGED
@@ -26,7 +26,7 @@ $custom_post_types = YasrCustomPostTypes::getCustomPostTypes();
26
  $cr_setting = new YasrSettingsRankings($custom_post_types);
27
  ?>
28
 
29
- <h3> <?php _e('Rankings Options', 'yasr-pro');?> </h3>
30
 
31
  <table class="form-table yasr-settings-table" id="yasr-pro-charts-options">
32
  <!--Builder Container-->
@@ -40,12 +40,12 @@ $cr_setting = new YasrSettingsRankings($custom_post_types);
40
 
41
  <div id="yasr-builder-shortcode-buttons-container">
42
  <button class='button-primary' id="yasr-builder-button-preview">
43
- <?php _e('Ranking preview', 'yet-another-stars-rating'); ?>
44
  </button>
45
  &nbsp;&nbsp;&nbsp;
46
  <button class="button-secondary yasr-copy-shortcode" id="yasr-builder-copy-shortcode">
47
  <span class="dashicons dashicons-admin-page" style="vertical-align: middle"></span>
48
- <?php _e('Copy Shortcode', 'yet-another-stars-rating') ?>
49
  </button>
50
  </div>
51
 
26
  $cr_setting = new YasrSettingsRankings($custom_post_types);
27
  ?>
28
 
29
+ <h3> <?php esc_html_e('Rankings Options', 'yasr-pro');?> </h3>
30
 
31
  <table class="form-table yasr-settings-table" id="yasr-pro-charts-options">
32
  <!--Builder Container-->
40
 
41
  <div id="yasr-builder-shortcode-buttons-container">
42
  <button class='button-primary' id="yasr-builder-button-preview">
43
+ <?php esc_html_e('Ranking preview', 'yet-another-stars-rating'); ?>
44
  </button>
45
  &nbsp;&nbsp;&nbsp;
46
  <button class="button-secondary yasr-copy-shortcode" id="yasr-builder-copy-shortcode">
47
  <span class="dashicons dashicons-admin-page" style="vertical-align: middle"></span>
48
+ <?php esc_html_e('Copy Shortcode', 'yet-another-stars-rating') ?>
49
  </button>
50
  </div>
51
 
admin/settings/yasr-settings-functions-misc.php CHANGED
@@ -15,7 +15,7 @@ function yasr_settings_tabs( $active_tab )
15
  }
16
  ?>">
17
  <?php
18
- _e( 'General Settings', 'yet-another-stars-rating' );
19
  ?>
20
  </a>
21
 
@@ -27,7 +27,7 @@ function yasr_settings_tabs( $active_tab )
27
  }
28
  ?>">
29
  <?php
30
- _e( 'Aspect & Styles', 'yet-another-stars-rating' );
31
  ?>
32
  </a>
33
 
@@ -39,7 +39,7 @@ function yasr_settings_tabs( $active_tab )
39
  }
40
  ?>">
41
  <?php
42
- _e( 'Multi Sets', 'yet-another-stars-rating' );
43
  ?>
44
  </a>
45
 
@@ -51,7 +51,7 @@ function yasr_settings_tabs( $active_tab )
51
  }
52
  ?>">
53
  <?php
54
- _e( "Rankings", 'yet-another-stars-rating' );
55
  ?>
56
  </a>
57
 
@@ -69,7 +69,7 @@ function yasr_settings_tabs( $active_tab )
69
  }
70
  ?>">
71
  <?php
72
- _e( "Migration Tools", 'yet-another-stars-rating' );
73
  ?>
74
  </a>
75
  <?php
@@ -204,28 +204,28 @@ function yasr_upgrade_pro_box()
204
  <div class="yasr-donatedivdx">
205
  <h2 class="yasr-donate-title" style="color: #34A7C1">
206
  <?php
207
- _e( 'Upgrade to YASR Pro', 'yet-another-stars-rating' );
208
  ?>
209
  </h2>
210
  <div class="yasr-upgrade-to-pro">
211
  <ul>
212
  <li><strong><?php
213
- _e( ' User Reviews', 'yet-another-stars-rating' );
214
  ?></strong></li>
215
  <li><strong><?php
216
- _e( ' Custom Rankings', 'yet-another-stars-rating' );
217
  ?></strong></li>
218
  <li><strong><?php
219
- _e( ' 20 + ready to use themes', 'yet-another-stars-rating' );
220
  ?></strong></li>
221
  <li><strong><?php
222
- _e( ' Upload your own theme', 'yet-another-stars-rating' );
223
  ?></strong></li>
224
  <li><strong><?php
225
- _e( ' Dedicate support', 'yet-another-stars-rating' );
226
  ?></strong></li>
227
  <li><strong><?php
228
- _e( ' ...And much more!!', 'yet-another-stars-rating' );
229
  ?></strong></li>
230
  </ul>
231
  <a href="<?php
@@ -234,7 +234,7 @@ function yasr_upgrade_pro_box()
234
  <button class="button button-primary">
235
  <span style="font-size: large; font-weight: bold;">
236
  <?php
237
- _e( 'Upgrade Now', 'yet-another-stars-rating' );
238
  ?>
239
  </span>
240
  </button>
@@ -248,12 +248,12 @@ function yasr_upgrade_pro_box()
248
  <button class="button button-primary">
249
  <span style="display: block; font-size: large; font-weight: bold; margin: -3px;">
250
  <?php
251
- _e( 'Start Free Trial', 'yet-another-stars-rating' );
252
  ?>
253
  </span>
254
  <span style="display: block; margin-top: -10px; font-size: smaller;">
255
  <?php
256
- _e( 'No credit-card, risk free!', 'yet-another-stars-rating' );
257
  ?>
258
  </span>
259
  </button>
15
  }
16
  ?>">
17
  <?php
18
+ esc_html_e( 'General Settings', 'yet-another-stars-rating' );
19
  ?>
20
  </a>
21
 
27
  }
28
  ?>">
29
  <?php
30
+ esc_html_e( 'Aspect & Styles', 'yet-another-stars-rating' );
31
  ?>
32
  </a>
33
 
39
  }
40
  ?>">
41
  <?php
42
+ esc_html_e( 'Multi Sets', 'yet-another-stars-rating' );
43
  ?>
44
  </a>
45
 
51
  }
52
  ?>">
53
  <?php
54
+ esc_html_e( "Rankings", 'yet-another-stars-rating' );
55
  ?>
56
  </a>
57
 
69
  }
70
  ?>">
71
  <?php
72
+ esc_html_e( "Migration Tools", 'yet-another-stars-rating' );
73
  ?>
74
  </a>
75
  <?php
204
  <div class="yasr-donatedivdx">
205
  <h2 class="yasr-donate-title" style="color: #34A7C1">
206
  <?php
207
+ esc_html_e( 'Upgrade to YASR Pro', 'yet-another-stars-rating' );
208
  ?>
209
  </h2>
210
  <div class="yasr-upgrade-to-pro">
211
  <ul>
212
  <li><strong><?php
213
+ esc_html_e( ' User Reviews', 'yet-another-stars-rating' );
214
  ?></strong></li>
215
  <li><strong><?php
216
+ esc_html_e( ' Custom Rankings', 'yet-another-stars-rating' );
217
  ?></strong></li>
218
  <li><strong><?php
219
+ esc_html_e( ' 20 + ready to use themes', 'yet-another-stars-rating' );
220
  ?></strong></li>
221
  <li><strong><?php
222
+ esc_html_e( ' Upload your own theme', 'yet-another-stars-rating' );
223
  ?></strong></li>
224
  <li><strong><?php
225
+ esc_html_e( ' Dedicate support', 'yet-another-stars-rating' );
226
  ?></strong></li>
227
  <li><strong><?php
228
+ esc_html_e( ' ...And much more!!', 'yet-another-stars-rating' );
229
  ?></strong></li>
230
  </ul>
231
  <a href="<?php
234
  <button class="button button-primary">
235
  <span style="font-size: large; font-weight: bold;">
236
  <?php
237
+ esc_html_e( 'Upgrade Now', 'yet-another-stars-rating' );
238
  ?>
239
  </span>
240
  </button>
248
  <button class="button button-primary">
249
  <span style="display: block; font-size: large; font-weight: bold; margin: -3px;">
250
  <?php
251
+ esc_html_e( 'Start Free Trial', 'yet-another-stars-rating' );
252
  ?>
253
  </span>
254
  <span style="display: block; margin-top: -10px; font-size: smaller;">
255
  <?php
256
+ esc_html_e( 'No credit-card, risk free!', 'yet-another-stars-rating' );
257
  ?>
258
  </span>
259
  </button>
admin/settings/yasr-settings-page.php CHANGED
@@ -29,7 +29,7 @@ if (!current_user_can('manage_options')) {
29
  ?>
30
 
31
  <div class="wrap">
32
- <h2>Yet Another Stars Rating: <?php _e("Settings", 'yet-another-stars-rating'); ?></h2>
33
  <?php
34
  if (isset($_GET['tab'])) {
35
  $active_tab = $_GET['tab'];
@@ -40,54 +40,56 @@ if (!current_user_can('manage_options')) {
40
  //Do the settings tab
41
  yasr_settings_tabs($active_tab);
42
  ?>
43
- <div class="yasr-settingsdiv">
44
- <?php
 
45
 
46
- if ($active_tab === 'general_settings') {
47
- ?>
48
- <form action="options.php" method="post" id="yasr_settings_form">
49
- <?php
50
- settings_fields('yasr_general_options_group');
51
- do_settings_sections('yasr_general_settings_tab');
52
- submit_button(YASR_SAVE_All_SETTINGS_TEXT);
53
  ?>
54
- </form>
55
- <?php
 
 
 
 
 
 
56
 
57
- } //End if tab 'general_settings'
58
 
59
- if ($active_tab === 'manage_multi') {
60
- include(YASR_ABSOLUTE_PATH_ADMIN . '/settings/multiset/yasr-settings-functions-multiset-page.php');
61
- } //End if ($active_tab=='manage_multi')
62
 
63
- if ($active_tab === 'style_options') {
64
- ?>
65
- <form action="options.php" method="post" enctype='multipart/form-data' id="yasr_settings_form">
66
- <?php
67
- settings_fields('yasr_style_options_group');
68
- do_settings_sections('yasr_style_tab');
69
- submit_button(YASR_SAVE_All_SETTINGS_TEXT);
70
  ?>
71
- </form>
72
- <?php
 
 
 
 
 
 
73
 
74
- } //End tab style
75
 
76
- if ($active_tab === 'rankings') {
77
- include(YASR_ABSOLUTE_PATH_ADMIN . '/settings/rankings/yasr-ranking-builder.php');
78
- } //End tab ur options
79
 
80
- if ($active_tab === 'migration_tools') {
81
- //include migration functions
82
- include(YASR_ABSOLUTE_PATH_ADMIN . '/settings/migrations/yasr-settings-migration-page.php');
83
- } //End tab migration
84
 
85
- //Adds new tab content here
86
- do_action('yasr_settings_tab_content', $active_tab);
87
 
88
- ?>
89
 
90
- </div> <!--End yasr-settingsdiv-->
 
91
 
92
  <div class="yasr-clear-both-dynamic"></div>
93
  <?php
29
  ?>
30
 
31
  <div class="wrap">
32
+ <h2>Yet Another Stars Rating: <?php esc_html_e('Settings', 'yet-another-stars-rating'); ?></h2>
33
  <?php
34
  if (isset($_GET['tab'])) {
35
  $active_tab = $_GET['tab'];
40
  //Do the settings tab
41
  yasr_settings_tabs($active_tab);
42
  ?>
43
+ <div class="yasr-settingsdiv">
44
+ <div class="yasr-settings-table">
45
+ <?php
46
 
47
+ if ($active_tab === 'general_settings') {
 
 
 
 
 
 
48
  ?>
49
+ <form action="options.php" method="post" id="yasr_settings_form">
50
+ <?php
51
+ settings_fields('yasr_general_options_group');
52
+ do_settings_sections('yasr_general_settings_tab');
53
+ submit_button(YASR_SAVE_All_SETTINGS_TEXT);
54
+ ?>
55
+ </form>
56
+ <?php
57
 
58
+ } //End if tab 'general_settings'
59
 
60
+ if ($active_tab === 'manage_multi') {
61
+ include(YASR_ABSOLUTE_PATH_ADMIN . '/settings/multiset/yasr-settings-functions-multiset-page.php');
62
+ } //End if ($active_tab=='manage_multi')
63
 
64
+ if ($active_tab === 'style_options') {
 
 
 
 
 
 
65
  ?>
66
+ <form action="options.php" method="post" enctype='multipart/form-data' id="yasr_settings_form">
67
+ <?php
68
+ settings_fields('yasr_style_options_group');
69
+ do_settings_sections('yasr_style_tab');
70
+ submit_button(YASR_SAVE_All_SETTINGS_TEXT);
71
+ ?>
72
+ </form>
73
+ <?php
74
 
75
+ } //End tab style
76
 
77
+ if ($active_tab === 'rankings') {
78
+ include(YASR_ABSOLUTE_PATH_ADMIN . '/settings/rankings/yasr-ranking-builder.php');
79
+ } //End tab ur options
80
 
81
+ if ($active_tab === 'migration_tools') {
82
+ //include migration functions
83
+ include(YASR_ABSOLUTE_PATH_ADMIN . '/settings/migrations/yasr-settings-migration-page.php');
84
+ } //End tab migration
85
 
86
+ //Adds new tab content here
87
+ do_action('yasr_settings_tab_content', $active_tab);
88
 
89
+ ?>
90
 
91
+ </div> <!--End yasr-settingsdiv-->
92
+ </div>
93
 
94
  <div class="yasr-clear-both-dynamic"></div>
95
  <?php
admin/settings/yasr-stats-page.php CHANGED
@@ -1,136 +1,136 @@
1
- <?php
2
-
3
- /*
4
-
5
- Copyright 2014 Dario Curvino (email : d.curvino@tiscali.it)
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 2 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see <http://www.gnu.org/licenses/>
19
- */
20
-
21
- if (!defined('ABSPATH')) {
22
- exit('You\'re not allowed to see this page');
23
- } // Exit if accessed directly
24
-
25
- if (!current_user_can('manage_options')) {
26
- wp_die(__('You do not have sufficient permissions to access this page.', 'yet-another-stars-rating'));
27
- }
28
-
29
- if (isset($_GET['tab'])) {
30
- $active_tab = $_GET['tab'];
31
- } else {
32
- $active_tab = 'logs';
33
- }
34
-
35
- ?>
36
-
37
- <div class="wrap">
38
- <h2>Yet Another Stars Rating: <?php _e("Ratings Stats", 'yet-another-stars-rating'); ?></h2>
39
-
40
- <h2 class="nav-tab-wrapper yasr-no-underline">
41
-
42
- <a href="?page=yasr_stats_page&tab=logs" class="nav-tab
43
- <?php echo ($active_tab === 'logs') ? 'nav-tab-active' : ''; ?>"
44
- >
45
- <?php _e("Visitor Votes", 'yet-another-stars-rating'); ?>
46
- </a>
47
-
48
- <a href="?page=yasr_stats_page&tab=logs_multi" class="nav-tab
49
- <?php echo ($active_tab === 'logs_multi') ? 'nav-tab-active' : ''; ?>"
50
- >
51
- <?php _e("MultiSet", 'yet-another-stars-rating'); ?>
52
- </a>
53
-
54
- <a href="?page=yasr_stats_page&tab=overall" class="nav-tab
55
- <?php echo ($active_tab === 'overall') ? 'nav-tab-active' : ''; ?>"
56
- >
57
- <?php _e("Overall Rating", 'yet-another-stars-rating'); ?>
58
- </a>
59
-
60
- <?php
61
- //Use this hooks to add tabs in the stats page
62
- do_action('yasr_add_stats_tab', $active_tab);
63
- ?>
64
-
65
- <a href="?page=yasr_settings_page-pricing" class="nav-tab">
66
- <?php _e("Upgrade", 'yet-another-stars-rating'); ?>
67
- </a>
68
-
69
- </h2>
70
-
71
- <?php
72
-
73
- if ($active_tab === 'logs' || $active_tab === '') {
74
- ?>
75
-
76
- <div class="yasr-settingsdiv yasr-settings-table">
77
- <div class="yasr-settings-table">
78
- <form action="#" id="" method="POST">
79
- <?php
80
- wp_nonce_field('yasr-delete-stats-logs', 'yasr-nonce-delete-stats-logs');
81
- $yasr_stats_log_table = new YasrStats($active_tab);
82
- $yasr_stats_log_table->prepare_items();
83
- $yasr_stats_log_table->display();
84
- ?>
85
- </form>
86
- </div>
87
- </div>
88
-
89
- <?php
90
-
91
- } //End if tab 'logs'
92
-
93
- if ($active_tab === 'logs_multi') {
94
- ?>
95
- <div class="yasr-settingsdiv yasr-settings-table">
96
- <div class="yasr-settings-table">
97
- <form action="#" id="" method="POST">
98
- <?php
99
- wp_nonce_field('yasr-delete-stats-logs', 'yasr-nonce-delete-stats-logs');
100
- $yasr_stats_log_table = new YasrStats($active_tab);
101
- $yasr_stats_log_table->prepare_items();
102
- $yasr_stats_log_table->display();
103
- ?>
104
- </form>
105
- </div>
106
- </div>
107
- <?php
108
-
109
- } //End if tab 'general_settings'
110
-
111
- if ($active_tab === 'overall') {
112
- ?>
113
- <div class="yasr-settingsdiv">
114
- <div class="yasr-settings-table">
115
- <form action="#" id="" method="POST">
116
- <?php
117
- wp_nonce_field('yasr-delete-stats-logs', 'yasr-nonce-delete-stats-logs');
118
- $yasr_stats_log_table = new YasrStats($active_tab);
119
- $yasr_stats_log_table->prepare_items();
120
- $yasr_stats_log_table->display();
121
- ?>
122
- </form>
123
- </div>
124
- </div>
125
- <?php
126
-
127
- } //End if tab 'overall'
128
-
129
- do_action('yasr_settings_check_active_tab', $active_tab);
130
- ?>
131
-
132
- <div class="yasr-clear-both-dynamic"></div>
133
-
134
- <?php yasr_right_settings_panel(); ?>
135
-
136
  </div><!--End div wrap-->
1
+ <?php
2
+
3
+ /*
4
+
5
+ Copyright 2014 Dario Curvino (email : d.curvino@tiscali.it)
6
+
7
+ This program is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 2 of the License, or
10
+ (at your option) any later version.
11
+
12
+ This program is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with this program. If not, see <http://www.gnu.org/licenses/>
19
+ */
20
+
21
+ if (!defined('ABSPATH')) {
22
+ exit('You\'re not allowed to see this page');
23
+ } // Exit if accessed directly
24
+
25
+ if (!current_user_can('manage_options')) {
26
+ wp_die(__('You do not have sufficient permissions to access this page.', 'yet-another-stars-rating'));
27
+ }
28
+
29
+ if (isset($_GET['tab'])) {
30
+ $active_tab = $_GET['tab'];
31
+ } else {
32
+ $active_tab = 'logs';
33
+ }
34
+
35
+ ?>
36
+
37
+ <div class="wrap">
38
+ <h2>Yet Another Stars Rating: <?php esc_html_e("Ratings Stats", 'yet-another-stars-rating'); ?></h2>
39
+
40
+ <h2 class="nav-tab-wrapper yasr-no-underline">
41
+
42
+ <a href="?page=yasr_stats_page&tab=logs" class="nav-tab
43
+ <?php echo ($active_tab === 'logs') ? 'nav-tab-active' : ''; ?>"
44
+ >
45
+ <?php esc_html_e("Visitor Votes", 'yet-another-stars-rating'); ?>
46
+ </a>
47
+
48
+ <a href="?page=yasr_stats_page&tab=logs_multi" class="nav-tab
49
+ <?php echo ($active_tab === 'logs_multi') ? 'nav-tab-active' : ''; ?>"
50
+ >
51
+ <?php esc_html_e("MultiSet", 'yet-another-stars-rating'); ?>
52
+ </a>
53
+
54
+ <a href="?page=yasr_stats_page&tab=overall" class="nav-tab
55
+ <?php echo ($active_tab === 'overall') ? 'nav-tab-active' : ''; ?>"
56
+ >
57
+ <?php esc_html_e("Overall Rating", 'yet-another-stars-rating'); ?>
58
+ </a>
59
+
60
+ <?php
61
+ //Use this hooks to add tabs in the stats page
62
+ do_action('yasr_add_stats_tab', $active_tab);
63
+ ?>
64
+
65
+ <a href="?page=yasr_settings_page-pricing" class="nav-tab">
66
+ <?php esc_html_e("Upgrade", 'yet-another-stars-rating'); ?>
67
+ </a>
68
+
69
+ </h2>
70
+
71
+ <?php
72
+
73
+ if ($active_tab === 'logs' || $active_tab === '') {
74
+ ?>
75
+
76
+ <div class="yasr-settingsdiv yasr-settings-table">
77
+ <div class="yasr-settings-table">
78
+ <form action="#" id="" method="POST">
79
+ <?php
80
+ wp_nonce_field('yasr-delete-stats-logs', 'yasr-nonce-delete-stats-logs');
81
+ $yasr_stats_log_table = new YasrStats($active_tab);
82
+ $yasr_stats_log_table->prepare_items();
83
+ $yasr_stats_log_table->display();
84
+ ?>
85
+ </form>
86
+ </div>
87
+ </div>
88
+
89
+ <?php
90
+
91
+ } //End if tab 'logs'
92
+
93
+ if ($active_tab === 'logs_multi') {
94
+ ?>
95
+ <div class="yasr-settingsdiv yasr-settings-table">
96
+ <div class="yasr-settings-table">
97
+ <form action="#" id="" method="POST">
98
+ <?php
99
+ wp_nonce_field('yasr-delete-stats-logs', 'yasr-nonce-delete-stats-logs');
100
+ $yasr_stats_log_table = new YasrStats($active_tab);
101
+ $yasr_stats_log_table->prepare_items();
102
+ $yasr_stats_log_table->display();
103
+ ?>
104
+ </form>
105
+ </div>
106
+ </div>
107
+ <?php
108
+
109
+ } //End if tab 'general_settings'
110
+
111
+ if ($active_tab === 'overall') {
112
+ ?>
113
+ <div class="yasr-settingsdiv">
114
+ <div class="yasr-settings-table">
115
+ <form action="#" id="" method="POST">
116
+ <?php
117
+ wp_nonce_field('yasr-delete-stats-logs', 'yasr-nonce-delete-stats-logs');
118
+ $yasr_stats_log_table = new YasrStats($active_tab);
119
+ $yasr_stats_log_table->prepare_items();
120
+ $yasr_stats_log_table->display();
121
+ ?>
122
+ </form>
123
+ </div>
124
+ </div>
125
+ <?php
126
+
127
+ } //End if tab 'overall'
128
+
129
+ do_action('yasr_settings_check_active_tab', $active_tab);
130
+ ?>
131
+
132
+ <div class="yasr-clear-both-dynamic"></div>
133
+
134
+ <?php yasr_right_settings_panel(); ?>
135
+
136
  </div><!--End div wrap-->
includes/yasr-includes-functions.php CHANGED
@@ -183,15 +183,19 @@ function yasr_select_itemtype($html_id=false, $term_id=false, $disabled=false) {
183
  }
184
  ?>
185
 
186
- <label for="<?php echo $html_id ?>"></label>
187
- <select name="yasr-review-type" id="<?php echo $html_id ?>">
188
  <?php
189
  foreach ($itemtypes_array as $itemType) {
190
  $itemType = trim($itemType);
191
  if ($itemType === $review_type_choosen) {
192
- echo "<option value='$itemType' selected >$itemType</option>";
 
 
193
  } else {
194
- echo "<option value='$itemType' $disabled_attribute>$itemType</option>";
 
 
195
  }
196
  }
197
  ?>
183
  }
184
  ?>
185
 
186
+ <label for="<?php echo esc_attr($html_id) ?>"></label>
187
+ <select name="yasr-review-type" id="<?php echo esc_attr($html_id) ?>">
188
  <?php
189
  foreach ($itemtypes_array as $itemType) {
190
  $itemType = trim($itemType);
191
  if ($itemType === $review_type_choosen) {
192
+ echo "<option value='".esc_attr($itemType)."' selected >
193
+ ".esc_html($itemType)."
194
+ </option>";
195
  } else {
196
+ echo "<option value='".esc_attr($itemType)."' ".esc_attr($disabled_attribute).">
197
+ ".esc_html($itemType)."
198
+ </option>";
199
  }
200
  }
201
  ?>
includes/yasr-widgets.php CHANGED
@@ -62,10 +62,10 @@ class Yasr_Overall_Rating_Widget extends WP_Widget {
62
  public function widget($args, $instance) {
63
 
64
  if (is_singular() && is_main_query()) {
65
- echo $args['before_widget'];
66
 
67
  if (!empty($instance['title'])) {
68
- echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
69
  }
70
 
71
  $size = array();
@@ -108,32 +108,41 @@ class Yasr_Overall_Rating_Widget extends WP_Widget {
108
  ?>
109
 
110
  <p>
111
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
112
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
113
- name="<?php echo $this->get_field_name('title'); ?>" type="text"
 
 
 
 
114
  value="<?php echo esc_attr($title); ?>">
115
  </p>
116
  <p>
117
- <legend><?php _e('Size:', 'yet-another-stars-rating'); ?></legend>
 
 
118
  <label>
119
- <input type="radio" name="<?php echo $this->get_field_name('size'); ?>"
120
- value="small" <?php if ($size === 'small') {echo 'checked';} ?> >
121
- <?php _e('Small', 'yet-another-stars-rating'); ?>
 
 
122
  </label>
123
 
124
  <br/>
125
 
126
  <label>
127
- <input type="radio" name="<?php echo $this->get_field_name('size'); ?>"
128
  value="medium" <?php if ($size === 'medium') {echo 'checked';} ?> >
129
- <?php _e('Medium', 'yet-another-stars-rating'); ?>
130
  </label>
131
  <br/>
132
 
133
  <label>
134
- <input type="radio" name="<?php echo $this->get_field_name('size'); ?>"
 
135
  value="large" <?php if ($size === 'large') {echo 'checked';} ?> >
136
- <?php _e('Large', 'yet-another-stars-rating'); ?>
137
  </label>
138
  </p>
139
 
@@ -220,11 +229,10 @@ class Yasr_Visitor_Votes_Widget extends WP_Widget {
220
  public function widget($args, $instance) {
221
 
222
  if (is_singular() && is_main_query()) {
223
-
224
- echo $args['before_widget'];
225
 
226
  if (!empty($instance['title'])) {
227
- echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
228
  }
229
 
230
  $atts = array();
@@ -279,39 +287,48 @@ class Yasr_Visitor_Votes_Widget extends WP_Widget {
279
  ?>
280
 
281
  <p>
282
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
283
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
284
- name="<?php echo $this->get_field_name('title'); ?>" type="text"
 
 
 
 
285
  value="<?php echo esc_attr($title); ?>">
286
  </p>
287
  <p>
288
- <input type="checkbox" id="<?php echo $this->get_field_id('readonly'); ?>"
289
- name="<?php echo $this->get_field_name('readonly'); ?>" value="yes" <?php if ($readonly === 'yes') {
290
- echo " checked='checked' ";
291
- } ?>>
292
- <label for="<?php echo $this->get_field_id('readonly'); ?>">Readonly?</label>
 
293
  </p>
294
 
295
  <p>
296
- <legend><?php _e('Size:', 'yet-another-stars-rating'); ?></legend>
297
  <label>
298
- <input type="radio" name="<?php echo $this->get_field_name('size'); ?>"
 
299
  value="small" <?php if ($size === 'small') {echo 'checked';} ?> >
300
- <?php _e('Small', 'yet-another-stars-rating'); ?>
301
  </label>
302
  <br/>
303
 
304
  <label>
305
- <input type="radio" name="<?php echo $this->get_field_name('size'); ?>"
 
306
  value="medium" <?php if ($size === 'medium') {echo 'checked';} ?> >
307
- <?php _e('Medium', 'yet-another-stars-rating'); ?>
308
  </label>
309
 
310
  <br/>
311
  <label>
312
- <input type="radio" name="<?php echo $this->get_field_name('size'); ?>"
313
- value="large" <?php if ($size === 'large') {echo 'checked';} ?> >
314
- <?php _e('Large', 'yet-another-stars-rating'); ?>
 
 
315
  </label>
316
  </p>
317
 
@@ -402,10 +419,10 @@ class Yasr_Recent_Ratings_Widget extends WP_Widget {
402
 
403
  public function widget($args, $instance) {
404
 
405
- echo $args['before_widget'];
406
 
407
  if (!empty($instance['title'])) {
408
- echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
409
  }
410
 
411
  global $wpdb;
@@ -492,9 +509,13 @@ class Yasr_Recent_Ratings_Widget extends WP_Widget {
492
  ?>
493
 
494
  <p>
495
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
496
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
497
- name="<?php echo $this->get_field_name('title'); ?>" type="text"
 
 
 
 
498
  value="<?php echo esc_attr($title); ?>">
499
  </p>
500
 
62
  public function widget($args, $instance) {
63
 
64
  if (is_singular() && is_main_query()) {
65
+ echo wp_kses_post($args['before_widget']);
66
 
67
  if (!empty($instance['title'])) {
68
+ echo wp_kses_post($args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']);
69
  }
70
 
71
  $size = array();
108
  ?>
109
 
110
  <p>
111
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>">
112
+ <?php esc_html_e('Title:'); ?>
113
+ </label>
114
+ <input class="widefat"
115
+ id="<?php echo esc_attr($this->get_field_id('title')); ?>"
116
+ name="<?php echo esc_attr($this->get_field_name('title')); ?>"
117
+ type="text"
118
  value="<?php echo esc_attr($title); ?>">
119
  </p>
120
  <p>
121
+ <legend>
122
+ <?php esc_html_e('Size:', 'yet-another-stars-rating'); ?>
123
+ </legend>
124
  <label>
125
+ <input type="radio"
126
+ name="<?php echo esc_attr($this->get_field_name('size')); ?>"
127
+ value="small" <?php if ($size === 'small') {echo 'checked';} ?>
128
+ >
129
+ <?php esc_html_e('Small', 'yet-another-stars-rating'); ?>
130
  </label>
131
 
132
  <br/>
133
 
134
  <label>
135
+ <input type="radio" name="<?php echo esc_attr($this->get_field_name('size')); ?>"
136
  value="medium" <?php if ($size === 'medium') {echo 'checked';} ?> >
137
+ <?php esc_html_e('Medium', 'yet-another-stars-rating'); ?>
138
  </label>
139
  <br/>
140
 
141
  <label>
142
+ <input type="radio"
143
+ name="<?php echo esc_attr($this->get_field_name('size')); ?>"
144
  value="large" <?php if ($size === 'large') {echo 'checked';} ?> >
145
+ <?php esc_html_e('Large', 'yet-another-stars-rating'); ?>
146
  </label>
147
  </p>
148
 
229
  public function widget($args, $instance) {
230
 
231
  if (is_singular() && is_main_query()) {
232
+ echo wp_kses_post($args['before_widget']);
 
233
 
234
  if (!empty($instance['title'])) {
235
+ echo wp_kses_post($args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']);
236
  }
237
 
238
  $atts = array();
287
  ?>
288
 
289
  <p>
290
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>">
291
+ <?php esc_html_e('Title:'); ?>
292
+ </label>
293
+ <input class="widefat"
294
+ id="<?php echo esc_attr($this->get_field_id('title')); ?>"
295
+ name="<?php echo esc_attr($this->get_field_name('title')); ?>"
296
+ type="text"
297
  value="<?php echo esc_attr($title); ?>">
298
  </p>
299
  <p>
300
+ <input type="checkbox"
301
+ id="<?php echo esc_attr($this->get_field_id('readonly')); ?>"
302
+ name="<?php echo esc_attr($this->get_field_name('readonly')); ?>"
303
+ value="yes" <?php if ($readonly === 'yes') { echo " checked='checked' ";} ?>
304
+ >
305
+ <label for="<?php echo esc_attr($this->get_field_id('readonly')); ?>">Readonly?</label>
306
  </p>
307
 
308
  <p>
309
+ <legend><?php esc_html_e('Size:', 'yet-another-stars-rating'); ?></legend>
310
  <label>
311
+ <input type="radio"
312
+ name="<?php echo esc_attr($this->get_field_name('size')); ?>"
313
  value="small" <?php if ($size === 'small') {echo 'checked';} ?> >
314
+ <?php esc_html_e('Small', 'yet-another-stars-rating'); ?>
315
  </label>
316
  <br/>
317
 
318
  <label>
319
+ <input type="radio"
320
+ name="<?php echo esc_attr($this->get_field_name('size')); ?>"
321
  value="medium" <?php if ($size === 'medium') {echo 'checked';} ?> >
322
+ <?php esc_html_e('Medium', 'yet-another-stars-rating'); ?>
323
  </label>
324
 
325
  <br/>
326
  <label>
327
+ <input type="radio"
328
+ name="<?php echo esc_attr($this->get_field_name('size')); ?>"
329
+ value="large" <?php if ($size === 'large') {echo 'checked';} ?>
330
+ >
331
+ <?php esc_html_e('Large', 'yet-another-stars-rating'); ?>
332
  </label>
333
  </p>
334
 
419
 
420
  public function widget($args, $instance) {
421
 
422
+ echo wp_kses_post($args['before_widget']);
423
 
424
  if (!empty($instance['title'])) {
425
+ echo wp_kses_post($args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']);
426
  }
427
 
428
  global $wpdb;
509
  ?>
510
 
511
  <p>
512
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>">
513
+ <?php esc_html_e('Title:'); ?>
514
+ </label>
515
+ <input class="widefat"
516
+ id="<?php echo esc_attr($this->get_field_id('title')); ?>"
517
+ name="<?php echo esc_attr($this->get_field_name('title')); ?>"
518
+ type="text"
519
  value="<?php echo esc_attr($title); ?>">
520
  </p>
521
 
public/classes/YasrRichSnippets.php CHANGED
@@ -101,14 +101,22 @@ class YasrRichSnippets {
101
  $rich_snippet_data = $this->richSnippetsGetData($post_id);
102
  $cleaned_content = wp_strip_all_tags(strip_shortcodes($content));
103
 
 
 
104
  //Add everywhere except for blogPosting
105
  if ($review_choosen !== 'BlogPosting') {
106
- $rich_snippet['Review'] = $this->richSnippetsReview($rich_snippet_data, $cleaned_content, $overall_rating);
 
 
 
107
 
108
  //if both are included, google will index AggregateRating instead of Review.
109
  //So, if post is selected as review, exclude AggregateRating
110
  if($rich_snippet_data['is_post_a_review'] !== 'yes') {
111
- $rich_snippet['aggregateRating'] = $this->richSnippetsAggregateRating($visitor_votes);
 
 
 
112
  }
113
  }
114
 
@@ -121,17 +129,14 @@ class YasrRichSnippets {
121
  }
122
 
123
  //if review and aggregateRating are still false after the filter, do not return rich snippets
124
- if((!isset($rich_snippet['Review']) || $rich_snippet['Review'] === false)
125
- && (!isset($rich_snippet['aggregateRating']) || $rich_snippet['aggregateRating'] === false)) {
126
  return false;
127
  }
128
 
129
- $rich_snippet = array_merge(
130
  $this->richSnippetsCommon($review_choosen, $rich_snippet_data, $cleaned_content),
131
  $rich_snippet
132
  );
133
-
134
- return $rich_snippet;
135
  }
136
 
137
  /**
101
  $rich_snippet_data = $this->richSnippetsGetData($post_id);
102
  $cleaned_content = wp_strip_all_tags(strip_shortcodes($content));
103
 
104
+ $rich_snippet = array();
105
+
106
  //Add everywhere except for blogPosting
107
  if ($review_choosen !== 'BlogPosting') {
108
+ $review = $this->richSnippetsReview($rich_snippet_data, $cleaned_content, $overall_rating);
109
+ if($review) {
110
+ $rich_snippet['Review'] = $review;
111
+ }
112
 
113
  //if both are included, google will index AggregateRating instead of Review.
114
  //So, if post is selected as review, exclude AggregateRating
115
  if($rich_snippet_data['is_post_a_review'] !== 'yes') {
116
+ $aggregate_rating = $this->richSnippetsAggregateRating($visitor_votes);
117
+ if($aggregate_rating) {
118
+ $rich_snippet['aggregateRating'] = $this->richSnippetsAggregateRating($visitor_votes);
119
+ }
120
  }
121
  }
122
 
129
  }
130
 
131
  //if review and aggregateRating are still false after the filter, do not return rich snippets
132
+ if((!isset($rich_snippet['Review'])) && !isset($rich_snippet['aggregateRating'])) {
 
133
  return false;
134
  }
135
 
136
+ return array_merge(
137
  $this->richSnippetsCommon($review_choosen, $rich_snippet_data, $cleaned_content),
138
  $rich_snippet
139
  );
 
 
140
  }
141
 
142
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: rating, rate post, rate page, star rating, google rating, votes
4
  Requires at least: 5.0
5
  Contributors: Dudo
6
  Tested up to: 5.9
7
- Stable tag: 2.9.1
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
@@ -197,7 +197,12 @@ Yes, YASR is 100% fully compatible with PHP 8
197
 
198
  The full changelog can be found in the plugin's directory. Recent entries:
199
 
200
- 2.9.1
 
 
 
 
 
201
  * FIXED: if shortcode exists for a post or page, but there are no ratings, wrong rich snippets are returned
202
 
203
 
4
  Requires at least: 5.0
5
  Contributors: Dudo
6
  Tested up to: 5.9
7
+ Stable tag: 2.9.2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
197
 
198
  The full changelog can be found in the plugin's directory. Recent entries:
199
 
200
+ = 2.9.2 =
201
+ * FIXED: rich snippets error that could occur in some circumstances
202
+ * FIXED: css fix
203
+ * TWEAKED: code cleanup
204
+
205
+ = 2.9.1 =
206
  * FIXED: if shortcode exists for a post or page, but there are no ratings, wrong rich snippets are returned
207
 
208
 
yet-another-stars-rating.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
- * Version: 2.9.1
8
  * Requires at least: 5.6
9
  * Requires PHP: 5.4
10
  * Author: Dario Curvino
@@ -78,7 +78,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
78
  yasr_fs();
79
  // Signal that SDK was initiated.
80
  do_action( 'yasr_fs_loaded' );
81
- define( 'YASR_VERSION_NUM', '2.9.1' );
82
  //Plugin absolute path
83
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
84
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
+ * Version: 2.9.2
8
  * Requires at least: 5.6
9
  * Requires PHP: 5.4
10
  * Author: Dario Curvino
78
  yasr_fs();
79
  // Signal that SDK was initiated.
80
  do_action( 'yasr_fs_loaded' );
81
+ define( 'YASR_VERSION_NUM', '2.9.2' );
82
  //Plugin absolute path
83
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
84
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );