Yasr – Yet Another Stars Rating - Version 0.9.4

Version Description

  • FIXED: all the ratings for a post or page get reset if choosen again the current schema type
  • FIXED: Schema errors
Download this release

Release Info

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

Code changes from version 0.9.2 to 0.9.4

languages/yasr-nl_NL.mo CHANGED
Binary file
languages/yasr-nl_NL.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Yet Another Stars Rating v0.6.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2015-05-07 09:51+0100\n"
6
- "PO-Revision-Date: 2015-05-07 09:51+0100\n"
7
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
8
  "Language-Team: NL\n"
9
  "Language: nl_NL\n"
@@ -951,36 +951,36 @@ msgstr "Je hebt niet genoeg rechten om Multi Set in te voegen"
951
  # @ yasr
952
  #: ../lib/yasr-functions.php:309
953
  msgid " reviewed by "
954
- msgstr "gerecenseerd door"
955
 
956
  # @ yasr
957
  #: ../lib/yasr-functions.php:310
958
  msgid " on "
959
- msgstr "op"
960
 
961
  # @ yasr
962
  #: ../lib/yasr-functions.php:311
963
  msgid " rated "
964
- msgstr "gestemd"
965
 
966
  #: ../lib/yasr-functions.php:311
967
  msgid " of"
968
- msgstr "van"
969
 
970
  # @ yasr
971
  #: ../lib/yasr-functions.php:358
972
  msgid " written by "
973
- msgstr "geschreven door "
974
 
975
  # @ yasr
976
  #: ../lib/yasr-functions.php:360
977
  msgid " average rating "
978
- msgstr " gemiddelde stemming"
979
 
980
  # @ yasr
981
  #: ../lib/yasr-functions.php:361
982
  msgid " user ratings"
983
- msgstr "gebruikersstemmen"
984
 
985
  # @ yasr
986
  #: ../lib/yasr-ajax-functions.php:96
3
  "Project-Id-Version: Yet Another Stars Rating v0.6.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2015-05-07 09:51+0100\n"
6
+ "PO-Revision-Date: 2015-07-18 17:40+0100\n"
7
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
8
  "Language-Team: NL\n"
9
  "Language: nl_NL\n"
951
  # @ yasr
952
  #: ../lib/yasr-functions.php:309
953
  msgid " reviewed by "
954
+ msgstr " gerecenseerd door "
955
 
956
  # @ yasr
957
  #: ../lib/yasr-functions.php:310
958
  msgid " on "
959
+ msgstr " op "
960
 
961
  # @ yasr
962
  #: ../lib/yasr-functions.php:311
963
  msgid " rated "
964
+ msgstr " gestemd "
965
 
966
  #: ../lib/yasr-functions.php:311
967
  msgid " of"
968
+ msgstr " van "
969
 
970
  # @ yasr
971
  #: ../lib/yasr-functions.php:358
972
  msgid " written by "
973
+ msgstr " geschreven door "
974
 
975
  # @ yasr
976
  #: ../lib/yasr-functions.php:360
977
  msgid " average rating "
978
+ msgstr " gemiddelde stemming "
979
 
980
  # @ yasr
981
  #: ../lib/yasr-functions.php:361
982
  msgid " user ratings"
983
+ msgstr " gebruikersstemmen"
984
 
985
  # @ yasr
986
  #: ../lib/yasr-ajax-functions.php:96
languages/yasr-pt_BR.mo CHANGED
Binary file
languages/yasr-pt_BR.po CHANGED
@@ -1,54 +1,242 @@
 
 
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: YASR lenguages\n"
4
- "POT-Creation-Date: 2015-05-07 09:51+0100\n"
5
- "PO-Revision-Date: 2015-05-07 09:51+0100\n"
6
- "Last-Translator: Dario <thedudoworld@gmail.com>\n"
7
- "Language-Team: \n"
8
- "Language: pt_BR\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.4\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
16
- "X-Poedit-SearchPath-0: ..\n"
17
- "X-Poedit-SearchPath-1: ../lib\n"
 
 
 
 
18
 
19
- #: ../yasr-metabox-top-right.php:65 ../yasr-metabox-top-right.php:99
20
- msgid "Rate this article / item"
21
- msgstr "Classifique este artigo / item"
 
 
22
 
23
- #: ../yasr-metabox-top-right.php:71 ../lib/yasr-shortcode-functions.php:124
24
- #: ../lib/yasr-shortcode-functions.php:527
25
- msgid "Loading, please wait"
26
- msgstr "Carregando, por favor aguarde"
27
 
28
- #: ../yasr-metabox-top-right.php:147
29
- msgid "Save Vote"
30
- msgstr "Salvar Voto"
31
 
32
- #: ../yasr-metabox-top-right.php:166
33
- msgid "This review is about a..."
34
- msgstr "Esta avaliação é sobre..."
35
 
36
- #: ../yasr-metabox-top-right.php:171
37
- msgid "Product, Place, Other"
38
  msgstr ""
39
 
40
- #: ../yasr-metabox-top-right.php:199 ../yasr-metabox-multiple-rating.php:46
41
- #: ../lib/yasr-settings-functions.php:542
42
- msgid "Select"
43
- msgstr "Selecionar"
44
 
45
- #: ../yasr-metabox-top-right.php:217
46
  msgid ""
47
- "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> "
48
- "where you want to display this rating"
49
  msgstr ""
50
- "Lembre-se de inserir este shortcode <strong>[yasr_overall_rating]</strong> "
51
- "onde você deseja exibir essa classificação"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  #: ../yasr-settings-page.php:24 ../lib/yasr-functions.php:111
54
  #: ../lib/yasr-ajax-functions.php:44 ../lib/yasr-ajax-functions.php:187
@@ -72,10 +260,6 @@ msgstr "Multi Sets"
72
  msgid "Styles"
73
  msgstr "Estilos"
74
 
75
- #: ../yasr-settings-page.php:79
76
- msgid "Pro Features!"
77
- msgstr "Recursos PRO!"
78
-
79
  #: ../yasr-settings-page.php:96 ../yasr-settings-page.php:255
80
  #: ../yasr-settings-page.php:295
81
  msgid "Save"
@@ -199,16 +383,35 @@ msgstr "Obrigado!"
199
  msgid "Choose wich set you want to use"
200
  msgstr "Escolha o conjunto que você deseja usar"
201
 
202
- #: ../lib/yasr-shortcode-functions.php:189
203
- #: ../lib/yasr-shortcode-functions.php:210
204
- #: ../lib/yasr-shortcode-functions.php:240
205
- msgid "You've already voted this article with"
206
- msgstr "Você já votou neste artigo com"
207
 
208
- #: ../lib/yasr-shortcode-functions.php:251
209
- #: ../lib/yasr-shortcode-functions.php:555
210
- msgid "You must sign to vote"
211
- msgstr "Você precisa estar logado para votar"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
 
213
  #: ../lib/yasr-shortcode-functions.php:293 ../lib/yasr-ajax-functions.php:1040
214
  #: ../lib/yasr-ajax-functions.php:1048 ../lib/yasr-ajax-functions.php:1181
@@ -219,20 +422,16 @@ msgstr "Total: "
219
  msgid "Average: "
220
  msgstr "Média: "
221
 
222
- #: ../lib/yasr-shortcode-functions.php:309
223
- msgid "bad, poor, ok, good, super"
224
- msgstr "Detestei, Não Gostei, Gostei, Gostei Muito, Adorei"
225
-
226
- #: ../lib/yasr-shortcode-functions.php:534
227
- #, fuzzy
228
- msgid "Thank you for voting! "
229
- msgstr "Obrigado!"
230
 
231
- #: ../lib/yasr-shortcode-functions.php:545
232
- #: ../lib/yasr-shortcode-functions.php:553
233
- #: ../lib/yasr-shortcode-functions.php:565
234
- msgid "Submit!"
235
- msgstr ""
236
 
237
  #: ../lib/yasr-shortcode-functions.php:710
238
  msgid "Rating"
@@ -242,11 +441,6 @@ msgstr "Avaliação"
242
  msgid "You don't have any votes stored"
243
  msgstr "Você não tem nenhum voto armazenado"
244
 
245
- #: ../lib/yasr-shortcode-functions.php:760
246
- #: ../lib/yasr-shortcode-functions.php:799
247
- msgid "Post / Page"
248
- msgstr "Post / Página"
249
-
250
  #: ../lib/yasr-shortcode-functions.php:761
251
  #: ../lib/yasr-shortcode-functions.php:800
252
  msgid "Order By"
@@ -272,30 +466,10 @@ msgstr "Total:"
272
  msgid "Average"
273
  msgstr "Média"
274
 
275
- #: ../lib/yasr-shortcode-functions.php:791
276
- msgid "You've not enough data"
277
- msgstr "Você não tem dados suficiente"
278
-
279
  #: ../lib/yasr-shortcode-functions.php:826
280
  msgid "You've not enought data"
281
  msgstr "Você não tem dados suficiente"
282
 
283
- #: ../lib/yasr-shortcode-functions.php:911
284
- msgid ""
285
- "Problem while retrieving the top 5 most active reviewers. Did you publish "
286
- "any review?"
287
- msgstr ""
288
- "Problema ao recuperar os revisores mais ativos do top 5. Você publicou "
289
- "alguma revisão?"
290
-
291
- #: ../lib/yasr-shortcode-functions.php:979
292
- msgid ""
293
- "Problem while retrieving the top 10 active users chart. Are you sure you "
294
- "have votes to show?"
295
- msgstr ""
296
- "Problema ao recuperar o gráfico de usuários ativos do top 10. Tem certeza de "
297
- "que você tem votos para mostrar?"
298
-
299
  #: ../lib/yasr-settings-functions.php:52
300
  msgid "General settings"
301
  msgstr "Configurações Gerais"
@@ -304,21 +478,13 @@ msgstr "Configurações Gerais"
304
  msgid "Auto insert options"
305
  msgstr "Opções do Auto-Inserir"
306
 
307
- #: ../lib/yasr-settings-functions.php:54
308
- msgid "Show \"Overall Rating\" in Archive Page?"
309
- msgstr "Mostrar \"Classificação Geral\" na página de arquivo?"
310
-
311
- #: ../lib/yasr-settings-functions.php:55
312
- msgid "Show \"Visitor Votes\" in Archive Page?"
313
- msgstr "Mostrar \"Votos de Visitantes\" na página de arquivo?"
314
-
315
  #: ../lib/yasr-settings-functions.php:56
316
  msgid "Insert custom text to show before / after stars"
317
  msgstr "Inserir texto personalizado para mostrar antes / depois das estrelas"
318
 
319
- #: ../lib/yasr-settings-functions.php:57
320
- msgid "Do you want show stats for visitors votes?"
321
- msgstr "Você quer mostrar estatísticas para os votos de visitantes?"
322
 
323
  #: ../lib/yasr-settings-functions.php:58
324
  msgid "Allow only logged in user to vote?"
@@ -431,51 +597,31 @@ msgstr ""
431
  "artigo ou página, mas também em páginas como Página Inicial, páginas de "
432
  "categorias ou arquivos."
433
 
434
- #: ../lib/yasr-settings-functions.php:241
435
- msgid ""
436
- "If you enable this, \"Visitor Votes\" will be showed not only in the single "
437
- "article or page, but also in pages like Home Page, category pages or "
438
- "archives."
439
- msgstr ""
440
- "Se você ativar isso, \"Votos de visitante\" serão mostrados não somente no "
441
- "artigo ou página, mas também em páginas como Página Inicial, páginas de "
442
- "categorias ou arquivos."
443
-
444
  #: ../lib/yasr-settings-functions.php:276
445
  msgid "Custom text to display before Overall Rating"
446
  msgstr "Texto personalizado para exibir antes da Classificação Geral"
447
 
448
- #: ../lib/yasr-settings-functions.php:281
449
- #, fuzzy
450
- msgid "Custom text to display BEFORE Visitor Rating"
451
- msgstr "Texto personalizado para exibir antes de um voto de visitante"
452
-
453
- #: ../lib/yasr-settings-functions.php:287
454
- #, fuzzy
455
- msgid "Custom text to display AFTER Visitor Rating"
456
- msgstr "Texto personalizado para exibir antes de um voto de visitante"
457
-
458
  #: ../lib/yasr-settings-functions.php:292
459
  msgid "Custom text to display when a non logged user has already rated"
460
  msgstr ""
461
  "Texto personalizado para exibir quando um usuário não conectado já tiver "
462
  "votado"
463
 
464
- #: ../lib/yasr-settings-functions.php:297
465
- msgid "Help"
466
- msgstr ""
467
 
468
- #: ../lib/yasr-settings-functions.php:301
469
- msgid ""
470
- "In the first field you can use %overall_rating% pattern to show the overall "
471
- "rating."
472
- msgstr ""
473
 
474
- #: ../lib/yasr-settings-functions.php:305
475
- msgid ""
476
- "In the Second and Third fields you can use %total_count% pattern to show the "
477
- "total count, and %average% pattern to show the average"
478
- msgstr ""
 
 
479
 
480
  #: ../lib/yasr-settings-functions.php:344
481
  msgid "Allow only logged-in users"
@@ -521,31 +667,6 @@ msgstr "Estrelas"
521
  msgid "Numbers"
522
  msgstr "Números"
523
 
524
- #: ../lib/yasr-settings-functions.php:431
525
- msgid "Which color scheme do you want to use?"
526
- msgstr "Qual esquema de cor você quer usar?"
527
-
528
- #: ../lib/yasr-settings-functions.php:452
529
- msgid "Light"
530
- msgstr "Claro"
531
-
532
- #: ../lib/yasr-settings-functions.php:457
533
- msgid "Dark"
534
- msgstr "Escuro"
535
-
536
- #: ../lib/yasr-settings-functions.php:462
537
- msgid "Preview"
538
- msgstr "Pré Visualização"
539
-
540
- #: ../lib/yasr-settings-functions.php:467
541
- msgid "Light theme"
542
- msgstr "Tema claro"
543
-
544
- #: ../lib/yasr-settings-functions.php:472
545
- #, fuzzy
546
- msgid "Dark theme"
547
- msgstr "Tema escuro"
548
-
549
  #: ../lib/yasr-settings-functions.php:487
550
  msgid "Add New Multiple Set"
551
  msgstr "Adicionar Novo Multi Set"
@@ -562,10 +683,6 @@ msgstr ""
562
  msgid "Name"
563
  msgstr "Nome"
564
 
565
- #: ../lib/yasr-settings-functions.php:496
566
- msgid "You can insert up to nine elements"
567
- msgstr "Você pode inserir até nove elementos"
568
-
569
  #: ../lib/yasr-settings-functions.php:501
570
  msgid "Element "
571
  msgstr "Elemento"
@@ -689,91 +806,18 @@ msgstr ""
689
  msgid "Leave it blank if you don't know what you're doing"
690
  msgstr "Deixe em branco se você não sabe o que está fazendo"
691
 
692
- #: ../lib/yasr-settings-functions.php:1231
693
- msgid "Looking for more features?"
694
- msgstr "Procurando por mais recursos?"
695
-
696
- #: ../lib/yasr-settings-functions.php:1232
697
- msgid "Upgrade to yasr pro!"
698
- msgstr "Atualize para yasr pro!"
699
-
700
- #: ../lib/yasr-settings-functions.php:1248
701
- msgid "Unlimited ratings and votes"
702
- msgstr "Votos e classificações ilimitadas"
703
-
704
- #: ../lib/yasr-settings-functions.php:1254
705
- msgid "Works with shortcodes"
706
- msgstr "Funciona com shortcodes"
707
-
708
- #: ../lib/yasr-settings-functions.php:1260
709
- msgid "Multi Set Support"
710
- msgstr "Suporte ao Multi Set"
711
-
712
- #: ../lib/yasr-settings-functions.php:1265
713
- msgid "Logs and stats for visitors votes"
714
- msgstr "Logs e estatísticas para os votos de visitantes"
715
-
716
- #: ../lib/yasr-settings-functions.php:1270
717
- msgid "Localization (.po and .mo files included)"
718
- msgstr "Localização (arquivos .po e. mo incluídos)"
719
-
720
- #: ../lib/yasr-settings-functions.php:1275
721
- msgid "Rich Snippet Support"
722
- msgstr "Suporte a Rich Snippet"
723
-
724
- #: ../lib/yasr-settings-functions.php:1280
725
- msgid "Rankings for reviews, votes and users"
726
- msgstr "Rankings para comentários, votos e usuários"
727
-
728
- #: ../lib/yasr-settings-functions.php:1285
729
- msgid "Rankings Customization"
730
- msgstr "Personalização de rankings"
731
-
732
- #: ../lib/yasr-settings-functions.php:1290
733
- msgid "Stars Customization"
734
- msgstr "Personalização de estrelas"
735
-
736
- #: ../lib/yasr-settings-functions.php:1291
737
- msgid "Size Only"
738
- msgstr "Tamanho Apenas"
739
-
740
- #: ../lib/yasr-settings-functions.php:1292
741
- msgid ""
742
- "Users can choose different ready to use sets or can upload their own images."
743
- msgstr ""
744
- "Os usuários podem escolher diferentes sets pronto para usar ou podem "
745
- "carregar suas próprias imagens."
746
-
747
- #: ../lib/yasr-settings-functions.php:1295
748
- msgid "Users can review in comments"
749
- msgstr "Os usuários podem avaliar comentários"
750
-
751
- #: ../lib/yasr-settings-functions.php:1306
752
- msgid "Not avaible yet"
753
- msgstr "Não disponível ainda"
754
-
755
- #: ../lib/yasr-settings-functions.php:1338
756
- #: ../lib/yasr-settings-functions.php:1365
757
- msgid "Follow YASR official site!"
758
- msgstr "Siga o site oficial do YASR!"
759
-
760
  #: ../lib/yasr-settings-functions.php:1395
761
  msgid "No previous Gd Star Rating installation was found"
762
  msgstr "Nenhuma instalação do Gd Star Rating anterior foi encontrada"
763
 
764
- #: ../lib/yasr-db-functions.php:310
765
- msgid "No recenet votes yet"
766
  msgstr "Nenhum voto recente ainda"
767
 
768
  #: ../lib/yasr-db-functions.php:325 ../lib/yasr-ajax-functions.php:778
769
  msgid "anonymous"
770
  msgstr "anônimo"
771
 
772
- #: ../lib/yasr-db-functions.php:334
773
- #, php-format
774
- msgid "Vote %d from %s on "
775
- msgstr ""
776
-
777
  #: ../lib/yasr-db-functions.php:350 ../lib/yasr-ajax-functions.php:803
778
  msgid "Ip address"
779
  msgstr "Endereço de IP"
@@ -826,6 +870,11 @@ msgstr " classificação média "
826
  msgid " user ratings"
827
  msgstr "votos de usuários"
828
 
 
 
 
 
 
829
  #: ../lib/yasr-ajax-functions.php:96
830
  msgid "You've rated it "
831
  msgstr "Você votou "
@@ -844,17 +893,6 @@ msgstr ""
844
  msgid "Choose a vote for each element"
845
  msgstr "Escolha um voto para cada elemento"
846
 
847
- #: ../lib/yasr-ajax-functions.php:257 ../lib/yasr-ajax-functions.php:301
848
- #, fuzzy
849
- msgid "If you want to insert this multiset, paste this shortcode "
850
- msgstr "Se você quer inserir um Multi Set, escolha um:"
851
-
852
- #: ../lib/yasr-ajax-functions.php:259 ../lib/yasr-ajax-functions.php:303
853
- msgid ""
854
- "If, instead, you want allow your visitor to vote on this multiset, use this "
855
- "shortcode"
856
- msgstr ""
857
-
858
  #: ../lib/yasr-ajax-functions.php:268
859
  msgid "Choose a vote for every element"
860
  msgstr "Escolha um voto para todos elementos"
@@ -903,21 +941,6 @@ msgstr "Se você quer inserir um Multi Set, escolha um:"
903
  msgid "Choose wich set you want to insert."
904
  msgstr "Escolha qual set você quer inserir."
905
 
906
- #: ../lib/yasr-ajax-functions.php:499 ../lib/yasr-ajax-functions.php:516
907
- msgid "Readonly?"
908
- msgstr ""
909
-
910
- #: ../lib/yasr-ajax-functions.php:501 ../lib/yasr-ajax-functions.php:517
911
- msgid ""
912
- "If Readonly is checked, only you can insert the votes (in the box above the "
913
- "editor)"
914
- msgstr ""
915
-
916
- #: ../lib/yasr-ajax-functions.php:502
917
- #, fuzzy
918
- msgid "Insert Multi Set"
919
- msgstr "Inserir Set Múltiplo"
920
-
921
  #: ../lib/yasr-ajax-functions.php:511
922
  msgid "Insert Multiset:"
923
  msgstr "Inserir Multi Set"
@@ -1034,72 +1057,10 @@ msgstr ""
1034
  msgid "Multisets were not found. Imported is done!"
1035
  msgstr "Nenhum Multi Set encontrado. A importação está feita!"
1036
 
1037
- #: ../lib/yasr-ajax-functions.php:765
1038
- msgid "No Recenet votes yet"
1039
- msgstr "Nenhum voto recente ainda"
1040
-
1041
- #: ../lib/yasr-ajax-functions.php:787
1042
- #, php-format
1043
- msgid "Vote %d from %s on"
1044
- msgstr ""
1045
-
1046
  #: ../lib/yasr-ajax-functions.php:937 ../lib/yasr-ajax-functions.php:1088
1047
  msgid "Error: you can't vote 0"
1048
  msgstr "Erro: você não pode votar 0"
1049
 
1050
- #: ../lib/yasr-ajax-functions.php:1040 ../lib/yasr-ajax-functions.php:1048
1051
- #, fuzzy
1052
- msgid "Average:"
1053
- msgstr "Média: "
1054
-
1055
  #: ../lib/yasr-ajax-functions.php:1041 ../lib/yasr-ajax-functions.php:1049
1056
  msgid "Vote Saved"
1057
  msgstr "Voto Salvo"
1058
-
1059
- #: ../lib/yasr-ajax-functions.php:1184
1060
- msgid "Vote updated"
1061
- msgstr "Voto atualizado"
1062
-
1063
- #: ../lib/yasr-ajax-functions.php:1325
1064
- #, fuzzy
1065
- msgid "Rating saved!"
1066
- msgstr "Configurações salvas"
1067
-
1068
- #: ../lib/yasr-ajax-functions.php:1331
1069
- msgid "Rating not saved. Please Try again"
1070
- msgstr ""
1071
-
1072
- #: ../lib/yasr-ajax-functions.php:1424
1073
- msgid "stars"
1074
- msgstr "estrelas"
1075
-
1076
- #: ../lib/yasr-ajax-functions.php:1429
1077
- msgid "star"
1078
- msgstr "estrela"
1079
-
1080
- #~ msgid "Visitors can vote on Multi Set"
1081
- #~ msgstr "Os visitantes podem votar em um Multi Set"
1082
-
1083
- #~ msgid "YASR"
1084
- #~ msgstr "YASR"
1085
-
1086
- #~ msgid "Overall Rating"
1087
- #~ msgstr "Classificação geral"
1088
-
1089
- #~ msgid "Remember to insert this shortcode"
1090
- #~ msgstr "Lembre-se de inserir este shortcode"
1091
-
1092
- #~ msgid "where you want to display this multi set"
1093
- #~ msgstr "onde você deseja exibir este Multi Set"
1094
-
1095
- #~ msgid "Insert multiple set in this post ?"
1096
- #~ msgstr "Inserir set múltiplo neste post?"
1097
-
1098
- #~ msgid "Average rating"
1099
- #~ msgstr "Classificação Média"
1100
-
1101
- #~ msgid "Average "
1102
- #~ msgstr "Média "
1103
-
1104
- #~ msgid "You've already voted this article"
1105
- #~ msgstr "Você já votou neste artigo"
1
+ # Translation of Yet Another Stars Rating in Portuguese (Brazil)
2
+ # This file is distributed under the same license as the Yet Another Stars Rating package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2015-07-18 17:42+0100\n"
 
 
 
 
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
9
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
10
+ "X-Generator: Poedit 1.5.4\n"
11
+ "Project-Id-Version: Yet Another Stars Rating\n"
12
+ "POT-Creation-Date: \n"
13
+ "Last-Translator: Dario <thedudoworld@gmail.com>\n"
14
+ "Language-Team: \n"
15
+ "Language: pt_BR\n"
16
 
17
+ #: ../lib/yasr-shortcode-functions.php:545
18
+ #: ../lib/yasr-shortcode-functions.php:553
19
+ #: ../lib/yasr-shortcode-functions.php:565
20
+ msgid "Submit!"
21
+ msgstr ""
22
 
23
+ #: ../yasr-metabox-top-right.php:171
24
+ msgid "Product, Place, Other"
25
+ msgstr ""
 
26
 
27
+ #: ../lib/yasr-shortcode-functions.php:534
28
+ msgid "Thank you for voting! "
29
+ msgstr ""
30
 
31
+ #: ../lib/yasr-settings-functions.php:281
32
+ msgid "Custom text to display BEFORE Visitor Rating"
33
+ msgstr ""
34
 
35
+ #: ../lib/yasr-settings-functions.php:287
36
+ msgid "Custom text to display AFTER Visitor Rating"
37
  msgstr ""
38
 
39
+ #: ../lib/yasr-settings-functions.php:297
40
+ msgid "Help"
41
+ msgstr ""
 
42
 
43
+ #: ../lib/yasr-settings-functions.php:301
44
  msgid ""
45
+ "In the first field you can use %overall_rating% pattern to show the overall "
46
+ "rating."
47
  msgstr ""
48
+
49
+ #: ../lib/yasr-settings-functions.php:305
50
+ msgid ""
51
+ "In the Second and Third fields you can use %total_count% pattern to show the "
52
+ "total count, and %average% pattern to show the average"
53
+ msgstr ""
54
+
55
+ #: ../lib/yasr-settings-functions.php:472
56
+ msgid "Dark theme"
57
+ msgstr ""
58
+
59
+ #: ../lib/yasr-db-functions.php:334
60
+ msgid "Vote %d from %s on "
61
+ msgstr ""
62
+
63
+ #: ../lib/yasr-ajax-functions.php:257 ../lib/yasr-ajax-functions.php:301
64
+ msgid "If you want to insert this multiset, paste this shortcode "
65
+ msgstr ""
66
+
67
+ #: ../lib/yasr-ajax-functions.php:259 ../lib/yasr-ajax-functions.php:303
68
+ msgid ""
69
+ "If, instead, you want allow your visitor to vote on this multiset, use this "
70
+ "shortcode"
71
+ msgstr ""
72
+
73
+ #: ../lib/yasr-ajax-functions.php:499 ../lib/yasr-ajax-functions.php:516
74
+ msgid "Readonly?"
75
+ msgstr ""
76
+
77
+ #: ../lib/yasr-ajax-functions.php:501 ../lib/yasr-ajax-functions.php:517
78
+ msgid ""
79
+ "If Readonly is checked, only you can insert the votes (in the box above the "
80
+ "editor)"
81
+ msgstr ""
82
+
83
+ #: ../lib/yasr-ajax-functions.php:502
84
+ msgid "Insert Multi Set"
85
+ msgstr ""
86
+
87
+ #: ../lib/yasr-ajax-functions.php:787
88
+ msgid "Vote %d from %s on"
89
+ msgstr ""
90
+
91
+ #: ../lib/yasr-ajax-functions.php:1040 ../lib/yasr-ajax-functions.php:1048
92
+ msgid "Average:"
93
+ msgstr ""
94
+
95
+ #: ../lib/yasr-ajax-functions.php:1325
96
+ msgid "Rating saved!"
97
+ msgstr ""
98
+
99
+ #: ../lib/yasr-ajax-functions.php:1331
100
+ msgid "Rating not saved. Please Try again"
101
+ msgstr ""
102
+
103
+ #: ../lib/yasr-shortcode-functions.php:309
104
+ msgid "bad, poor, ok, good, super"
105
+ msgstr "Detestei, Não Gostei, Gostei, Gostei Muito, Adorei"
106
+
107
+ #: ../lib/yasr-ajax-functions.php:1429
108
+ msgid "star"
109
+ msgstr "estrela"
110
+
111
+ #: ../lib/yasr-settings-functions.php:1291
112
+ msgid "Size Only"
113
+ msgstr "Tamanho Apenas"
114
+
115
+ #: ../lib/yasr-settings-functions.php:1292
116
+ msgid ""
117
+ "Users can choose different ready to use sets or can upload their own images."
118
+ msgstr ""
119
+ "Os usuários podem escolher diferentes sets pronto para usar ou podem "
120
+ "carregar suas próprias imagens."
121
+
122
+ #: ../lib/yasr-settings-functions.php:1248
123
+ msgid "Unlimited ratings and votes"
124
+ msgstr "Votos e classificações ilimitadas"
125
+
126
+ #: ../lib/yasr-settings-functions.php:1254
127
+ msgid "Works with shortcodes"
128
+ msgstr "Funciona com shortcodes"
129
+
130
+ #: ../lib/yasr-settings-functions.php:1260
131
+ msgid "Multi Set Support"
132
+ msgstr "Suporte ao Multi Set"
133
+
134
+ #: ../lib/yasr-settings-functions.php:1265
135
+ msgid "Logs and stats for visitors votes"
136
+ msgstr "Logs e estatísticas para os votos de visitantes"
137
+
138
+ #: ../lib/yasr-settings-functions.php:1270
139
+ msgid "Localization (.po and .mo files included)"
140
+ msgstr "Localização (arquivos .po e. mo incluídos)"
141
+
142
+ #: ../lib/yasr-settings-functions.php:1275
143
+ msgid "Rich Snippet Support"
144
+ msgstr "Suporte a Rich Snippet"
145
+
146
+ #: ../lib/yasr-settings-functions.php:1280
147
+ msgid "Rankings for reviews, votes and users"
148
+ msgstr "Rankings para comentários, votos e usuários"
149
+
150
+ #: ../lib/yasr-settings-functions.php:1285
151
+ msgid "Rankings Customization"
152
+ msgstr "Personalização de rankings"
153
+
154
+ #: ../lib/yasr-settings-functions.php:1290
155
+ msgid "Stars Customization"
156
+ msgstr "Personalização de estrelas"
157
+
158
+ #: ../lib/yasr-settings-functions.php:1295
159
+ msgid "Users can review in comments"
160
+ msgstr "Os usuários podem avaliar comentários"
161
+
162
+ #: ../lib/yasr-settings-functions.php:54
163
+ msgid "Show \"Overall Rating\" in Archive Page?"
164
+ msgstr "Mostrar \"Classificação Geral\" na página de arquivo?"
165
+
166
+ #: ../lib/yasr-settings-functions.php:55
167
+ msgid "Show \"Visitor Votes\" in Archive Page?"
168
+ msgstr "Mostrar \"Votos de Visitantes\" na página de arquivo?"
169
+
170
+ #: ../lib/yasr-settings-functions.php:241
171
+ msgid ""
172
+ "If you enable this, \"Visitor Votes\" will be showed not only in the single "
173
+ "article or page, but also in pages like Home Page, category pages or "
174
+ "archives."
175
+ msgstr ""
176
+ "Se você ativar isso, \"Votos de visitante\" serão mostrados não somente no "
177
+ "artigo ou página, mas também em páginas como Página Inicial, páginas de "
178
+ "categorias ou arquivos."
179
+
180
+ #: ../lib/yasr-ajax-functions.php:1424
181
+ msgid "stars"
182
+ msgstr "estrelas"
183
+
184
+ #: ../lib/yasr-shortcode-functions.php:791
185
+ msgid "You've not enough data"
186
+ msgstr "Você não tem dados suficiente"
187
+
188
+ #: ../lib/yasr-shortcode-functions.php:911
189
+ msgid ""
190
+ "Problem while retrieving the top 5 most active reviewers. Did you publish "
191
+ "any review?"
192
+ msgstr ""
193
+ "Problema ao recuperar os revisores mais ativos do top 5. Você publicou "
194
+ "alguma revisão?"
195
+
196
+ #: ../lib/yasr-shortcode-functions.php:979
197
+ msgid ""
198
+ "Problem while retrieving the top 10 active users chart. Are you sure you "
199
+ "have votes to show?"
200
+ msgstr ""
201
+ "Problema ao recuperar o gráfico de usuários ativos do top 10. Tem certeza de "
202
+ "que você tem votos para mostrar?"
203
+
204
+ #: ../lib/yasr-settings-functions.php:57
205
+ msgid "Do you want show stats for visitors votes?"
206
+ msgstr "Você quer mostrar estatísticas para os votos de visitantes?"
207
+
208
+ #: ../lib/yasr-settings-functions.php:496
209
+ msgid "You can insert up to nine elements"
210
+ msgstr "Você pode inserir até nove elementos"
211
+
212
+ #: ../lib/yasr-db-functions.php:310
213
+ msgid "No recenet votes yet"
214
+ msgstr "Nenhum voto recente ainda"
215
+
216
+ #: ../lib/yasr-ajax-functions.php:1184
217
+ msgid "Vote updated"
218
+ msgstr "Voto atualizado"
219
+
220
+ #: ../yasr-settings-page.php:79
221
+ msgid "Pro Features!"
222
+ msgstr "Recursos PRO!"
223
+
224
+ #: ../lib/yasr-settings-functions.php:1231
225
+ msgid "Looking for more features?"
226
+ msgstr "Procurando por mais recursos?"
227
+
228
+ #: ../lib/yasr-settings-functions.php:1232
229
+ msgid "Upgrade to yasr pro!"
230
+ msgstr "Atualize para yasr pro!"
231
+
232
+ #: ../lib/yasr-settings-functions.php:1306
233
+ msgid "Not avaible yet"
234
+ msgstr "Não disponível ainda"
235
+
236
+ #: ../lib/yasr-shortcode-functions.php:760
237
+ #: ../lib/yasr-shortcode-functions.php:799
238
+ msgid "Post / Page"
239
+ msgstr "Post / Página"
240
 
241
  #: ../yasr-settings-page.php:24 ../lib/yasr-functions.php:111
242
  #: ../lib/yasr-ajax-functions.php:44 ../lib/yasr-ajax-functions.php:187
260
  msgid "Styles"
261
  msgstr "Estilos"
262
 
 
 
 
 
263
  #: ../yasr-settings-page.php:96 ../yasr-settings-page.php:255
264
  #: ../yasr-settings-page.php:295
265
  msgid "Save"
383
  msgid "Choose wich set you want to use"
384
  msgstr "Escolha o conjunto que você deseja usar"
385
 
386
+ #: ../yasr-metabox-top-right.php:199 ../yasr-metabox-multiple-rating.php:46
387
+ #: ../lib/yasr-settings-functions.php:542
388
+ msgid "Select"
389
+ msgstr "Selecionar"
 
390
 
391
+ #: ../yasr-metabox-top-right.php:65 ../yasr-metabox-top-right.php:99
392
+ msgid "Rate this article / item"
393
+ msgstr "Classifique este artigo / item"
394
+
395
+ #: ../yasr-metabox-top-right.php:71 ../lib/yasr-shortcode-functions.php:124
396
+ #: ../lib/yasr-shortcode-functions.php:527
397
+ msgid "Loading, please wait"
398
+ msgstr "Carregando, por favor aguarde"
399
+
400
+ #: ../yasr-metabox-top-right.php:147
401
+ msgid "Save Vote"
402
+ msgstr "Salvar Voto"
403
+
404
+ #: ../yasr-metabox-top-right.php:166
405
+ msgid "This review is about a..."
406
+ msgstr "Esta avaliação é sobre..."
407
+
408
+ #: ../yasr-metabox-top-right.php:217
409
+ msgid ""
410
+ "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> "
411
+ "where you want to display this rating"
412
+ msgstr ""
413
+ "Lembre-se de inserir este shortcode <strong>[yasr_overall_rating]</strong> "
414
+ "onde você deseja exibir essa classificação"
415
 
416
  #: ../lib/yasr-shortcode-functions.php:293 ../lib/yasr-ajax-functions.php:1040
417
  #: ../lib/yasr-ajax-functions.php:1048 ../lib/yasr-ajax-functions.php:1181
422
  msgid "Average: "
423
  msgstr "Média: "
424
 
425
+ #: ../lib/yasr-shortcode-functions.php:189
426
+ #: ../lib/yasr-shortcode-functions.php:210
427
+ #: ../lib/yasr-shortcode-functions.php:240
428
+ msgid "You've already voted this article with"
429
+ msgstr "Você já votou neste artigo com"
 
 
 
430
 
431
+ #: ../lib/yasr-shortcode-functions.php:251
432
+ #: ../lib/yasr-shortcode-functions.php:555
433
+ msgid "You must sign to vote"
434
+ msgstr "Você precisa estar logado para votar"
 
435
 
436
  #: ../lib/yasr-shortcode-functions.php:710
437
  msgid "Rating"
441
  msgid "You don't have any votes stored"
442
  msgstr "Você não tem nenhum voto armazenado"
443
 
 
 
 
 
 
444
  #: ../lib/yasr-shortcode-functions.php:761
445
  #: ../lib/yasr-shortcode-functions.php:800
446
  msgid "Order By"
466
  msgid "Average"
467
  msgstr "Média"
468
 
 
 
 
 
469
  #: ../lib/yasr-shortcode-functions.php:826
470
  msgid "You've not enought data"
471
  msgstr "Você não tem dados suficiente"
472
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  #: ../lib/yasr-settings-functions.php:52
474
  msgid "General settings"
475
  msgstr "Configurações Gerais"
478
  msgid "Auto insert options"
479
  msgstr "Opções do Auto-Inserir"
480
 
 
 
 
 
 
 
 
 
481
  #: ../lib/yasr-settings-functions.php:56
482
  msgid "Insert custom text to show before / after stars"
483
  msgstr "Inserir texto personalizado para mostrar antes / depois das estrelas"
484
 
485
+ #: ../lib/yasr-settings-functions.php:431
486
+ msgid "Which color scheme do you want to use?"
487
+ msgstr "Qual esquema de cor você quer usar?"
488
 
489
  #: ../lib/yasr-settings-functions.php:58
490
  msgid "Allow only logged in user to vote?"
597
  "artigo ou página, mas também em páginas como Página Inicial, páginas de "
598
  "categorias ou arquivos."
599
 
 
 
 
 
 
 
 
 
 
 
600
  #: ../lib/yasr-settings-functions.php:276
601
  msgid "Custom text to display before Overall Rating"
602
  msgstr "Texto personalizado para exibir antes da Classificação Geral"
603
 
 
 
 
 
 
 
 
 
 
 
604
  #: ../lib/yasr-settings-functions.php:292
605
  msgid "Custom text to display when a non logged user has already rated"
606
  msgstr ""
607
  "Texto personalizado para exibir quando um usuário não conectado já tiver "
608
  "votado"
609
 
610
+ #: ../lib/yasr-settings-functions.php:452
611
+ msgid "Light"
612
+ msgstr "Claro"
613
 
614
+ #: ../lib/yasr-settings-functions.php:457
615
+ msgid "Dark"
616
+ msgstr "Escuro"
 
 
617
 
618
+ #: ../lib/yasr-settings-functions.php:462
619
+ msgid "Preview"
620
+ msgstr "Pré Visualização"
621
+
622
+ #: ../lib/yasr-settings-functions.php:467
623
+ msgid "Light theme"
624
+ msgstr "Tema claro"
625
 
626
  #: ../lib/yasr-settings-functions.php:344
627
  msgid "Allow only logged-in users"
667
  msgid "Numbers"
668
  msgstr "Números"
669
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
670
  #: ../lib/yasr-settings-functions.php:487
671
  msgid "Add New Multiple Set"
672
  msgstr "Adicionar Novo Multi Set"
683
  msgid "Name"
684
  msgstr "Nome"
685
 
 
 
 
 
686
  #: ../lib/yasr-settings-functions.php:501
687
  msgid "Element "
688
  msgstr "Elemento"
806
  msgid "Leave it blank if you don't know what you're doing"
807
  msgstr "Deixe em branco se você não sabe o que está fazendo"
808
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
809
  #: ../lib/yasr-settings-functions.php:1395
810
  msgid "No previous Gd Star Rating installation was found"
811
  msgstr "Nenhuma instalação do Gd Star Rating anterior foi encontrada"
812
 
813
+ #: ../lib/yasr-ajax-functions.php:765
814
+ msgid "No Recenet votes yet"
815
  msgstr "Nenhum voto recente ainda"
816
 
817
  #: ../lib/yasr-db-functions.php:325 ../lib/yasr-ajax-functions.php:778
818
  msgid "anonymous"
819
  msgstr "anônimo"
820
 
 
 
 
 
 
821
  #: ../lib/yasr-db-functions.php:350 ../lib/yasr-ajax-functions.php:803
822
  msgid "Ip address"
823
  msgstr "Endereço de IP"
870
  msgid " user ratings"
871
  msgstr "votos de usuários"
872
 
873
+ #: ../lib/yasr-settings-functions.php:1338
874
+ #: ../lib/yasr-settings-functions.php:1365
875
+ msgid "Follow YASR official site!"
876
+ msgstr "Siga o site oficial do YASR!"
877
+
878
  #: ../lib/yasr-ajax-functions.php:96
879
  msgid "You've rated it "
880
  msgstr "Você votou "
893
  msgid "Choose a vote for each element"
894
  msgstr "Escolha um voto para cada elemento"
895
 
 
 
 
 
 
 
 
 
 
 
 
896
  #: ../lib/yasr-ajax-functions.php:268
897
  msgid "Choose a vote for every element"
898
  msgstr "Escolha um voto para todos elementos"
941
  msgid "Choose wich set you want to insert."
942
  msgstr "Escolha qual set você quer inserir."
943
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
944
  #: ../lib/yasr-ajax-functions.php:511
945
  msgid "Insert Multiset:"
946
  msgstr "Inserir Multi Set"
1057
  msgid "Multisets were not found. Imported is done!"
1058
  msgstr "Nenhum Multi Set encontrado. A importação está feita!"
1059
 
 
 
 
 
 
 
 
 
 
1060
  #: ../lib/yasr-ajax-functions.php:937 ../lib/yasr-ajax-functions.php:1088
1061
  msgid "Error: you can't vote 0"
1062
  msgstr "Erro: você não pode votar 0"
1063
 
 
 
 
 
 
1064
  #: ../lib/yasr-ajax-functions.php:1041 ../lib/yasr-ajax-functions.php:1049
1065
  msgid "Vote Saved"
1066
  msgstr "Voto Salvo"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/yasr-ajax-functions.php CHANGED
@@ -149,7 +149,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
149
  );
150
 
151
  //if fail there is no row so make new one
152
- if(!$review_type) {
153
 
154
  $review_type = $wpdb->replace(
155
  YASR_VOTES_TABLE,
@@ -163,7 +163,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
163
 
164
  }
165
 
166
- if($review_type) {
167
  _e("$reviewtype selected", "yasr");
168
  }
169
  else {
@@ -199,6 +199,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
199
 
200
  //If this is a new post or post has no multi values data
201
  if (!$set_values) {
 
202
  echo "<p>";
203
 
204
  _e('Choose a vote for each element', 'yasr');
@@ -217,8 +218,11 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
217
 
218
  foreach ($set_name as $name) {
219
 
220
- //get the highest id in table
221
- /*$highest_id=$wpdb->get_results("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
 
 
 
222
 
223
  if (!$highest_id) {
224
  $new_id=0;
@@ -240,7 +244,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
240
  'sum_votes' => '0'
241
  ),
242
  array ("%d", "%d", "%d", "%s", "%d", "%d", "%d")
243
- );*/
 
244
 
245
  echo "<tr> <td>";
246
  echo "$name->name </td>";
@@ -977,6 +982,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
977
 
978
  yasr_wp_super_cache_support($post_id);
979
 
 
 
980
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
981
  die( 'Security check' );
982
  }
@@ -1133,6 +1140,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1133
 
1134
  yasr_wp_super_cache_support($post_id);
1135
 
 
 
1136
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
1137
  die( 'Security check' );
1138
  }
@@ -1317,16 +1326,20 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1317
 
1318
  else {
1319
 
 
1320
  $highest_id=$wpdb->get_results("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
1321
 
 
1322
  if (!$highest_id) {
1323
  $new_id=0;
1324
  }
1325
 
 
1326
  foreach ($highest_id as $id) {
1327
  $new_id=$id->id + 1;
1328
  }
1329
 
 
1330
  $query_success=$wpdb->replace(
1331
  YASR_MULTI_SET_VALUES_TABLE,
1332
  array (
149
  );
150
 
151
  //if fail there is no row so make new one
152
+ if($review_type === FALSE) {
153
 
154
  $review_type = $wpdb->replace(
155
  YASR_VOTES_TABLE,
163
 
164
  }
165
 
166
+ if($review_type || $reviewtype !== FALSE) {
167
  _e("$reviewtype selected", "yasr");
168
  }
169
  else {
199
 
200
  //If this is a new post or post has no multi values data
201
  if (!$set_values) {
202
+
203
  echo "<p>";
204
 
205
  _e('Choose a vote for each element', 'yasr');
218
 
219
  foreach ($set_name as $name) {
220
 
221
+ //// first, I've to rate all the values to -1, or if someone is leaved empty /////
222
+ //// will disappear later
223
+
224
+ //get the highest id in table cause it is not AI
225
+ $highest_id=$wpdb->get_results("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
226
 
227
  if (!$highest_id) {
228
  $new_id=0;
244
  'sum_votes' => '0'
245
  ),
246
  array ("%d", "%d", "%d", "%s", "%d", "%d", "%d")
247
+ );
248
+
249
 
250
  echo "<tr> <td>";
251
  echo "$name->name </td>";
982
 
983
  yasr_wp_super_cache_support($post_id);
984
 
985
+ yasr_wp_rocket_support($post_id);
986
+
987
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
988
  die( 'Security check' );
989
  }
1140
 
1141
  yasr_wp_super_cache_support($post_id);
1142
 
1143
+ yasr_wp_rocket_support($post_id);
1144
+
1145
  if ( ! wp_verify_nonce( $nonce_visitor, 'yasr_nonce_insert_visitor_rating' ) ) {
1146
  die( 'Security check' );
1147
  }
1326
 
1327
  else {
1328
 
1329
+ //Find the highest_id (it's not auto increment on db due to gd star compatibility)
1330
  $highest_id=$wpdb->get_results("SELECT id FROM " . YASR_MULTI_SET_VALUES_TABLE . " ORDER BY id DESC LIMIT 1 ");
1331
 
1332
+ //highest id is 0 in data is empty
1333
  if (!$highest_id) {
1334
  $new_id=0;
1335
  }
1336
 
1337
+ //or is n+1
1338
  foreach ($highest_id as $id) {
1339
  $new_id=$id->id + 1;
1340
  }
1341
 
1342
+
1343
  $query_success=$wpdb->replace(
1344
  YASR_MULTI_SET_VALUES_TABLE,
1345
  array (
lib/yasr-functions.php CHANGED
@@ -293,26 +293,42 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
293
  if(is_singular() && is_main_query() ) {
294
  global $post;
295
 
 
 
 
 
 
 
 
 
296
  if ($review_choosen == "Place") {
297
  $title = "<span itemprop=\"itemReviewed\" itemscope itemtype=\"http://schema.org/LocalBusiness\"> <span itemprop=\"name\">". get_the_title() ."</span></span>";
298
  }
299
 
300
- elseif ($review_choosen == "Other") {
301
- $title = "<span itemprop=\"itemReviewed\" itemscope itemType=\"http://schema.org/BlogPosting\"> <span itemprop=\"name\">". get_the_title() ."</span></span>";
302
  }
303
 
304
- else {
305
- $title = "<span itemprop=\"itemReviewed\" itemscope itemtype=\"http://schema.org/Product\"> <span itemprop=\"name\">". get_the_title() ."</span></span>";
 
 
 
306
  }
307
 
308
- $div = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/Review\">";
309
- $author = "<span itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">" . __(' reviewed by ', 'yasr') . "<span itemprop=\"name\">" . get_the_author() . "</span></span>";
310
- $date = __(' on ', 'yasr') . "<meta itemprop=\"datePublished\" content=\"" . get_the_date('c') . "\"> " . get_the_date();
311
  $rating = "<span itemprop=\"reviewRating\" itemscope itemtype=\"http://schema.org/Rating\"> ". __( ' rated ' , 'yasr' ) . "<span itemprop=\"ratingValue\">" . $overall_rating . "</span>" . __(' of', 'yasr') ." <span itemprop=\"bestRating\">5</span></span>";
312
  $end_div= "</div>";
313
 
 
314
  $schema = $div . $title . $author . $date . $rating . $end_div;
315
 
 
 
 
 
 
 
 
316
  }
317
 
318
  } //END id if $overall_rating != '-1'
@@ -343,26 +359,29 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
343
  $average_rating=round($average_rating, 1);
344
 
345
  if ($review_choosen == 'Place') {
346
- $div_1 = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/LocalBusiness\">";
 
347
  }
348
 
349
  if ($review_choosen == 'Other') {
350
- $div_1 = "<div class=\"yasr_schema\" itemscope itemType=\"http://schema.org/BlogPosting\">";
 
351
  }
352
 
353
- else {
354
- $div_1 = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/Product\">";
 
355
  }
356
 
357
- $title = "<span itemprop=\"name\">". get_the_title() ."</span>";
358
  $author = __( ' written by ' , 'yasr' ) . get_the_author();
 
359
  $span_1 = "<span itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">";
360
  $rating = __( ' average rating ' , 'yasr' ) . "<span itemprop=\"ratingValue\">" . $average_rating . "</span>/<span itemprop=\"bestRating\">5</span>";
361
  $n_ratings = " - <span itemprop=\"ratingCount\"> " . $visitor_rating['votes_number'] . "</span>" . __(' user ratings', 'yasr');
362
  $end_span_1 = "</span>";
363
  $end_div_1 = "</div>";
364
 
365
- $schema = $div_1 . $title . $author . $span_1 . $rating . $n_ratings . $end_span_1 . $end_div_1;
366
 
367
  }
368
 
@@ -485,6 +504,18 @@ function yasr_wp_super_cache_support($post_id) {
485
 
486
  }
487
 
 
 
 
 
 
 
 
 
 
 
 
 
488
 
489
  /*** Function to set cookie, since version 0.8.3 ***/
490
  function yasr_setcookie($cookiename, $value) {
293
  if(is_singular() && is_main_query() ) {
294
  global $post;
295
 
296
+ $div = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/Review\">";
297
+
298
+ $author = "<span itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">" . __(' reviewed by ', 'yasr') . "<span itemprop=\"name\">" . get_the_author() . "</span></span>";
299
+
300
+ $date = __(' on ', 'yasr') . "<meta itemprop=\"datePublished\" content=\"" . get_the_date('c') . "\"> " . get_the_date();
301
+
302
+ $title = NULL; //avoid undefined
303
+
304
  if ($review_choosen == "Place") {
305
  $title = "<span itemprop=\"itemReviewed\" itemscope itemtype=\"http://schema.org/LocalBusiness\"> <span itemprop=\"name\">". get_the_title() ."</span></span>";
306
  }
307
 
308
+ elseif ($review_choosen == "Product") {
309
+ $title = "<span itemprop=\"itemReviewed\" itemscope itemtype=\"http://schema.org/Product\"> <span itemprop=\"name\">". get_the_title() ."</span></span>";
310
  }
311
 
312
+ elseif ($review_choosen == "Other") {
313
+ $title = "<span itemprop=\"itemReviewed\" itemscope itemType=\"http://schema.org/BlogPosting\"> <span itemprop=\"name headline\">". get_the_title() ." </span>";
314
+ $date =__('reviewed on', 'yasr')."<meta itemprop=\"datePublished\" content=\"" . get_the_date('c') . "\"> " . get_the_date() . " </span>";
315
+ $author = "<span itemprop=\"author\" itemscope itemtype=\"http://schema.org/Person\">" . __('by ', 'yasr') . "<span itemprop=\"name\">" . get_the_author() . "</span></span>";
316
+
317
  }
318
 
 
 
 
319
  $rating = "<span itemprop=\"reviewRating\" itemscope itemtype=\"http://schema.org/Rating\"> ". __( ' rated ' , 'yasr' ) . "<span itemprop=\"ratingValue\">" . $overall_rating . "</span>" . __(' of', 'yasr') ." <span itemprop=\"bestRating\">5</span></span>";
320
  $end_div= "</div>";
321
 
322
+
323
  $schema = $div . $title . $author . $date . $rating . $end_div;
324
 
325
+ if ($review_choosen == "Other") {
326
+
327
+ $schema = $div . $title . $date . $author . $rating . $end_div;
328
+
329
+ }
330
+
331
+
332
  }
333
 
334
  } //END id if $overall_rating != '-1'
359
  $average_rating=round($average_rating, 1);
360
 
361
  if ($review_choosen == 'Place') {
362
+ $div_1 = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/LocalBusiness\"> <span itemprop=\"name\">". get_the_title() ."</span>";
363
+ $date = '';
364
  }
365
 
366
  if ($review_choosen == 'Other') {
367
+ $div_1 = "<div class=\"yasr_schema\" itemscope itemType=\"http://schema.org/BlogPosting\"><span itemprop=\"name headline\">". get_the_title() ."</span>";
368
+ $date = __(' on ', 'yasr') . "<meta itemprop=\"datePublished\" content=\"" . get_the_date('c') . "\"> " . get_the_date();
369
  }
370
 
371
+ elseif ($review_choosen == "Product") {
372
+ $div_1 = "<div class=\"yasr_schema\" itemscope itemtype=\"http://schema.org/Product\"><span itemprop=\"name\">". get_the_title() ."</span>";
373
+ $date = '';
374
  }
375
 
 
376
  $author = __( ' written by ' , 'yasr' ) . get_the_author();
377
+
378
  $span_1 = "<span itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">";
379
  $rating = __( ' average rating ' , 'yasr' ) . "<span itemprop=\"ratingValue\">" . $average_rating . "</span>/<span itemprop=\"bestRating\">5</span>";
380
  $n_ratings = " - <span itemprop=\"ratingCount\"> " . $visitor_rating['votes_number'] . "</span>" . __(' user ratings', 'yasr');
381
  $end_span_1 = "</span>";
382
  $end_div_1 = "</div>";
383
 
384
+ $schema = $div_1 . $author . $date . $span_1 . $rating . $n_ratings . $end_span_1 . $end_div_1;
385
 
386
  }
387
 
504
 
505
  }
506
 
507
+ /*** Add support for wp rocket, thanks to GeekPress
508
+ https://wordpress.org/support/topic/compatibility-with-wp-rocket-2
509
+ ***/
510
+
511
+ function yasr_wp_rocket_support($post_id) {
512
+
513
+ if(function_exists('rocket_clean_post')) {
514
+ rocket_clean_post($post_id);
515
+ }
516
+
517
+ }
518
+
519
 
520
  /*** Function to set cookie, since version 0.8.3 ***/
521
  function yasr_setcookie($cookiename, $value) {
lib/yasr-shortcode-functions.php CHANGED
@@ -437,7 +437,7 @@ function yasr_visitor_votes_readonly_callback ($atts) {
437
 
438
  $stars_attribute = yasr_stars_size($size);
439
 
440
- $shortcode_html = "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes_readonly\">";
441
  $span_after_rate_it = "";
442
 
443
  $shortcode_html .= "<div class=\"$stars_attribute[class]\" id=\"yasr_rateit_visitor_votes_readonly_$post_id\" data-rateit-starwidth=\"$stars_attribute[px_size]\" data-rateit-starheight=\"$stars_attribute[px_size]\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>";
437
 
438
  $stars_attribute = yasr_stars_size($size);
439
 
440
+ $shortcode_html = "<div id=\"yasr_visitor_votes_readonly_$post_id\" class=\"yasr-visitor-votes_readonly\">";
441
  $span_after_rate_it = "";
442
 
443
  $shortcode_html .= "<div class=\"$stars_attribute[class]\" id=\"yasr_rateit_visitor_votes_readonly_$post_id\" data-rateit-starwidth=\"$stars_attribute[px_size]\" data-rateit-starheight=\"$stars_attribute[px_size]\" data-rateit-value=\"$medium_rating\" data-rateit-step=\"1\" data-rateit-resetable=\"false\" data-rateit-readonly=\"true\"></div>";
readme.txt CHANGED
@@ -3,8 +3,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
3
  Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
- Tested up to: 4.2.3
7
- Stable tag: 0.9.2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
@@ -54,7 +54,7 @@ If with gd-star-rating you're using a different number of stars from the default
54
  Check [here](http://translate.yetanotherstarsrating.com/) to see if your translation is up to date
55
 
56
  In this video I'll show you the "Auto Insert" feature and manual placement of YASR basic shortcodes.
57
- [youtube https://youtu.be/M47xsJMQJ1E]
58
 
59
  = Related Link =
60
  * News and doc at [Yasr Official Site](http://yetanotherstarsrating.com/)
@@ -123,6 +123,14 @@ Of course not: you can easily add it on the visual editor just by clicking on th
123
 
124
  == Changelog ==
125
 
 
 
 
 
 
 
 
 
126
  = 0.9.2 =
127
  * FIXED: bugfix on yasr_visitor_multiset
128
  * FIXED: wrong review type showed in editing screen
3
  Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
+ Tested up to: 4.3
7
+ Stable tag: 0.9.4
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
54
  Check [here](http://translate.yetanotherstarsrating.com/) to see if your translation is up to date
55
 
56
  In this video I'll show you the "Auto Insert" feature and manual placement of YASR basic shortcodes.
57
+ [youtube https://www.youtube.com/watch?v=M47xsJMQJ1E]
58
 
59
  = Related Link =
60
  * News and doc at [Yasr Official Site](http://yetanotherstarsrating.com/)
123
 
124
  == Changelog ==
125
 
126
+ = 0.9.4 =
127
+ * FIXED: all the ratings for a post or page get reset if choosen again the current schema type
128
+ * FIXED: Schema errors
129
+
130
+ = 0.9.3 =
131
+ * NEW FEATURE: wp rocket support, thanks to geek press
132
+ * FIXED: missing filed if a multiset element is leaved empty in the edit screen
133
+
134
  = 0.9.2 =
135
  * FIXED: bugfix on yasr_visitor_multiset
136
  * FIXED: wrong review type showed in editing screen
yasr-metabox-multiple-rating.php CHANGED
@@ -87,7 +87,7 @@ elseif ($n_multi_set==1) {
87
 
88
  }
89
 
90
- yasrDisplayMultiMetabox (nMultiSet, postid, nonceMulti, setId)
91
 
92
 
93
  }); //End document ready
87
 
88
  }
89
 
90
+ yasrDisplayMultiMetabox (nMultiSet, postid, nonceMulti, setId);
91
 
92
 
93
  }); //End document ready
yet-another-stars-rating.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Rating system with rich snippets
6
- * Version: 0.9.2
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * License: GPL2
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
28
  */
29
 
30
 
31
- define('YASR_VERSION_NUM', '0.9.2');
32
 
33
  //Plugin relative path
34
  define( "YASR_RELATIVE_PATH", dirname(__FILE__) );
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Rating system with rich snippets
6
+ * Version: 0.9.4
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * License: GPL2
28
  */
29
 
30
 
31
+ define('YASR_VERSION_NUM', '0.9.4');
32
 
33
  //Plugin relative path
34
  define( "YASR_RELATIVE_PATH", dirname(__FILE__) );