Yasr – Yet Another Stars Rating - Version 0.8.8

Version Description

  • NEW FEATURE: it's now possible to add the attribute postid on these shortcodes: yasr_overall_rating, yasr_visitor_votes, yasr_visitor_votes_readonly. It is only necessary when you wish to show another post/page's votes
  • TWEAKED: Added facebook box in the settings
  • TWEAKED: storage of the ip adress
  • TWEAKED: Added Croatian language
  • FIXED: support for rtl
  • Minor bugfixes
Download this release

Release Info

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

Code changes from version 0.8.7 to 0.8.8

css/yasr-admin.css CHANGED
@@ -208,12 +208,12 @@ div.bigstars .rateit-selected
208
  /*** End top navigation ***/
209
 
210
 
211
- @media (min-width: 972px) {
212
 
213
  .yasr-settingsdiv {
214
  float:left;
215
  display:block;
216
- width:70%;
217
  background-color:#FFF;
218
  border: 1px solid #DDD;
219
  padding-left: 25px;
@@ -224,7 +224,9 @@ div.bigstars .rateit-selected
224
  .yasr-donatedivdx {
225
  float:right;
226
  display:block !important;
 
227
  width:15%;
 
228
  background-color:#FFF;
229
  border: 1px solid #DDD;
230
  padding: 25px;
@@ -232,7 +234,7 @@ div.bigstars .rateit-selected
232
  }
233
  }
234
 
235
- @media (max-width: 971px) {
236
 
237
  .yasr-settingsdiv {
238
  float:left;
@@ -249,6 +251,7 @@ div.bigstars .rateit-selected
249
  display:block !important;
250
  width:95%;
251
  background-color:#FFF;
 
252
  border: 1px solid #DDD;
253
  padding: 10px;
254
  font-size: 12px;
208
  /*** End top navigation ***/
209
 
210
 
211
+ @media (min-width: 1177px) {
212
 
213
  .yasr-settingsdiv {
214
  float:left;
215
  display:block;
216
+ width:60%;
217
  background-color:#FFF;
218
  border: 1px solid #DDD;
219
  padding-left: 25px;
224
  .yasr-donatedivdx {
225
  float:right;
226
  display:block !important;
227
+ min-width: 290px;
228
  width:15%;
229
+ margin-bottom: 10px;
230
  background-color:#FFF;
231
  border: 1px solid #DDD;
232
  padding: 25px;
234
  }
235
  }
236
 
237
+ @media (max-width: 1176px) {
238
 
239
  .yasr-settingsdiv {
240
  float:left;
251
  display:block !important;
252
  width:95%;
253
  background-color:#FFF;
254
+ margin-top: 10px;
255
  border: 1px solid #DDD;
256
  padding: 10px;
257
  font-size: 12px;
css/yasr.css CHANGED
@@ -46,42 +46,22 @@
46
  left: 0px;
47
  }
48
 
49
- .rateit .rateit-hover-rtl, .rateit .rateit-selected-rtl
50
- {
51
- left: auto;
52
- right: 0px;
53
- }
54
-
55
  .rateit .rateit-hover
56
  {
57
  background: url('../img/star.png') left -16px;
58
  }
59
 
60
- .rateit .rateit-hover-rtl
61
- {
62
- background-position: right -16px;
63
- }
64
 
65
  .rateit .rateit-selected
66
  {
67
  background: url('../img/star.png') left -32px;
68
  }
69
 
70
- .rateit .rateit-selected-rtl
71
- {
72
- background-position: right -32px;
73
- }
74
-
75
  .rateit .rateit-preset
76
  {
77
  background: url('../img/star.png') left -48px;
78
  }
79
 
80
- .rateit .rateit-preset-rtl
81
- {
82
- background: url('../img/star.png') left -48px;
83
- }
84
-
85
  .rateit button.rateit-reset
86
  {
87
  background: url('../img/delete.gif') 0 0;
@@ -118,14 +98,6 @@ div.medium .rateit-range
118
  height: 24px;
119
  }
120
 
121
- div.medium-rtl .rateit-range
122
- {
123
- /*White*/
124
- background: url('../img/stars24.png') right 0px;
125
- width: 24px;
126
- height: 24px;
127
- }
128
-
129
  div.medium .rateit-hover
130
  {
131
  /*Red*/
@@ -136,16 +108,6 @@ div.medium .rateit-hover
136
 
137
  }
138
 
139
- div.medium-rtl .rateit-hover
140
- {
141
- /*Red*/
142
- background: url('../img/stars24.png') right -29px;
143
- width: 24px;
144
- height: 24px;
145
- display: none
146
-
147
- }
148
-
149
  div.medium .rateit-selected
150
  {
151
  /*Yellow*/
@@ -154,14 +116,6 @@ div.medium .rateit-selected
154
  height: 24px;
155
  }
156
 
157
- div.medium-rtl .rateit-selected
158
- {
159
- /*Yellow*/
160
- background: url('../img/stars24.png') right -58px ;
161
- width: 24px;
162
- height: 24px;
163
- }
164
-
165
  /* Creating set 32 */
166
 
167
  div.bigstars .rateit-range
46
  left: 0px;
47
  }
48
 
 
 
 
 
 
 
49
  .rateit .rateit-hover
50
  {
51
  background: url('../img/star.png') left -16px;
52
  }
53
 
 
 
 
 
54
 
55
  .rateit .rateit-selected
56
  {
57
  background: url('../img/star.png') left -32px;
58
  }
59
 
 
 
 
 
 
60
  .rateit .rateit-preset
61
  {
62
  background: url('../img/star.png') left -48px;
63
  }
64
 
 
 
 
 
 
65
  .rateit button.rateit-reset
66
  {
67
  background: url('../img/delete.gif') 0 0;
98
  height: 24px;
99
  }
100
 
 
 
 
 
 
 
 
 
101
  div.medium .rateit-hover
102
  {
103
  /*Red*/
108
 
109
  }
110
 
 
 
 
 
 
 
 
 
 
 
111
  div.medium .rateit-selected
112
  {
113
  /*Yellow*/
116
  height: 24px;
117
  }
118
 
 
 
 
 
 
 
 
 
119
  /* Creating set 32 */
120
 
121
  div.bigstars .rateit-range
languages/yasr-fr_FR.mo CHANGED
Binary file
languages/yasr-fr_FR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YASR lenguages\n"
4
  "POT-Creation-Date: 2015-05-07 09:50+0100\n"
5
- "PO-Revision-Date: 2015-05-07 09:50+0100\n"
6
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en\n"
@@ -22,7 +22,7 @@ msgstr "Evaluez cet article / ce produit"
22
  #: ../yasr-metabox-top-right.php:71 ../lib/yasr-shortcode-functions.php:124
23
  #: ../lib/yasr-shortcode-functions.php:527
24
  msgid "Loading, please wait"
25
- msgstr "Chargement, attendez s'il vous plais"
26
 
27
  #: ../yasr-metabox-top-right.php:147
28
  msgid "Save Vote"
@@ -219,7 +219,6 @@ msgid "Average: "
219
  msgstr "Moyenne : "
220
 
221
  #: ../lib/yasr-shortcode-functions.php:309
222
- #, fuzzy
223
  msgid "bad, poor, ok, good, super"
224
  msgstr "'Mauvais', 'faible', 'ok', 'bon', 'super'"
225
 
@@ -805,31 +804,31 @@ msgstr "Vous n'avez pas assez de privilège pour insérer un vote multiple"
805
 
806
  #: ../lib/yasr-functions.php:309
807
  msgid " reviewed by "
808
- msgstr "Evalué par"
809
 
810
  #: ../lib/yasr-functions.php:310
811
  msgid " on "
812
- msgstr "sur"
813
 
814
  #: ../lib/yasr-functions.php:311
815
  msgid " rated "
816
- msgstr "evalué"
817
 
818
  #: ../lib/yasr-functions.php:311
819
  msgid " of"
820
- msgstr "de "
821
 
822
  #: ../lib/yasr-functions.php:358
823
  msgid " written by "
824
- msgstr "Ecris par"
825
 
826
  #: ../lib/yasr-functions.php:360
827
  msgid " average rating "
828
- msgstr "Moyenne des votes"
829
 
830
  #: ../lib/yasr-functions.php:361
831
  msgid " user ratings"
832
- msgstr "evaluations visiteur"
833
 
834
  #: ../lib/yasr-ajax-functions.php:96
835
  msgid "You've rated it "
2
  msgstr ""
3
  "Project-Id-Version: YASR lenguages\n"
4
  "POT-Creation-Date: 2015-05-07 09:50+0100\n"
5
+ "PO-Revision-Date: 2015-05-28 13:52+0100\n"
6
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en\n"
22
  #: ../yasr-metabox-top-right.php:71 ../lib/yasr-shortcode-functions.php:124
23
  #: ../lib/yasr-shortcode-functions.php:527
24
  msgid "Loading, please wait"
25
+ msgstr "Chargement, attendez s'il vous plait"
26
 
27
  #: ../yasr-metabox-top-right.php:147
28
  msgid "Save Vote"
219
  msgstr "Moyenne : "
220
 
221
  #: ../lib/yasr-shortcode-functions.php:309
 
222
  msgid "bad, poor, ok, good, super"
223
  msgstr "'Mauvais', 'faible', 'ok', 'bon', 'super'"
224
 
804
 
805
  #: ../lib/yasr-functions.php:309
806
  msgid " reviewed by "
807
+ msgstr " evalué par"
808
 
809
  #: ../lib/yasr-functions.php:310
810
  msgid " on "
811
+ msgstr " sur"
812
 
813
  #: ../lib/yasr-functions.php:311
814
  msgid " rated "
815
+ msgstr " evalué"
816
 
817
  #: ../lib/yasr-functions.php:311
818
  msgid " of"
819
+ msgstr " de "
820
 
821
  #: ../lib/yasr-functions.php:358
822
  msgid " written by "
823
+ msgstr " ecris par"
824
 
825
  #: ../lib/yasr-functions.php:360
826
  msgid " average rating "
827
+ msgstr " moyenne des votes"
828
 
829
  #: ../lib/yasr-functions.php:361
830
  msgid " user ratings"
831
+ msgstr " evaluations visiteur"
832
 
833
  #: ../lib/yasr-ajax-functions.php:96
834
  msgid "You've rated it "
languages/yasr-hr.mo ADDED
Binary file
languages/yasr-hr.po ADDED
@@ -0,0 +1,950 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Yet Another Stars Rating in Croatian
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-05-23 00:51:41+0000\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=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
10
+ "X-Generator: GlotPress/0.1\n"
11
+ "Project-Id-Version: Yet Another Stars Rating\n"
12
+
13
+ #: ../lib/yasr-shortcode-functions.php:545
14
+ #: ../lib/yasr-shortcode-functions.php:553
15
+ #: ../lib/yasr-shortcode-functions.php:565
16
+ msgid "Submit!"
17
+ msgstr "Pošalji!"
18
+
19
+ #: ../yasr-metabox-top-right.php:171
20
+ msgid "Product, Place, Other"
21
+ msgstr "Proizvod, Mjesto, Ostalo"
22
+
23
+ #: ../lib/yasr-shortcode-functions.php:534
24
+ msgid "Thank you for voting! "
25
+ msgstr "Hvala vam za glasovanje!"
26
+
27
+ #: ../lib/yasr-settings-functions.php:281
28
+ msgid "Custom text to display BEFORE Visitor Rating"
29
+ msgstr "Prilagođeni tekst za prikaz PRIJE Ocjene Posjetitelja"
30
+
31
+ #: ../lib/yasr-settings-functions.php:287
32
+ msgid "Custom text to display AFTER Visitor Rating"
33
+ msgstr "Prilagođeni tekst za prikaz NAKON Ocjene Posjetitelja"
34
+
35
+ #: ../lib/yasr-settings-functions.php:297
36
+ msgid "Help"
37
+ msgstr "Pomoć"
38
+
39
+ #: ../lib/yasr-settings-functions.php:301
40
+ msgid "In the first field you can use %overall_rating% pattern to show the overall rating."
41
+ msgstr "U prvom polju možete koristiti %overall_rating% obrazac za prikaz ukupne ocjene."
42
+
43
+ #: ../lib/yasr-settings-functions.php:305
44
+ msgid "In the Second and Third fields you can use %total_count% pattern to show the total count, and %average% pattern to show the average"
45
+ msgstr "U drugom i trećem polju vi možete koristiti %total_count% obrazac da prikažete ukupan broj, a %average% obrazac da prikažete prosjek"
46
+
47
+ #: ../lib/yasr-settings-functions.php:472
48
+ msgid "Dark theme"
49
+ msgstr "Tamna tema"
50
+
51
+ #: ../lib/yasr-db-functions.php:334
52
+ msgid "Vote %d from %s on "
53
+ msgstr "Glasova %d od %s dana"
54
+
55
+ #: ../lib/yasr-ajax-functions.php:257 ../lib/yasr-ajax-functions.php:301
56
+ msgid "If you want to insert this multiset, paste this shortcode "
57
+ msgstr "Ako želite umetnuti ovu višestruku postavku, zaljepite ovaj shortcode"
58
+
59
+ #: ../lib/yasr-ajax-functions.php:259 ../lib/yasr-ajax-functions.php:303
60
+ msgid "If, instead, you want allow your visitor to vote on this multiset, use this shortcode"
61
+ msgstr "Ako, umjesto toga, želite dopustiti vašim posjetiteljima da glasuju u ovoj višestrukoj postavci, koristite ovaj shortcode"
62
+
63
+ #: ../lib/yasr-ajax-functions.php:499 ../lib/yasr-ajax-functions.php:516
64
+ msgid "Readonly?"
65
+ msgstr "Samo za čitanje?"
66
+
67
+ #: ../lib/yasr-ajax-functions.php:501 ../lib/yasr-ajax-functions.php:517
68
+ msgid "If Readonly is checked, only you can insert the votes (in the box above the editor)"
69
+ msgstr "Ako je uključeno Samo za čitanje, samo vi možete umetnuti glasove (u okviru iznad urednika)"
70
+
71
+ #: ../lib/yasr-ajax-functions.php:502
72
+ msgid "Insert Multi Set"
73
+ msgstr "Umetni Višestruki Komplet"
74
+
75
+ #: ../lib/yasr-ajax-functions.php:787
76
+ msgid "Vote %d from %s on"
77
+ msgstr "Glasova %d od %s dana"
78
+
79
+ #: ../lib/yasr-ajax-functions.php:1040 ../lib/yasr-ajax-functions.php:1048
80
+ msgid "Average:"
81
+ msgstr "Prosjek:"
82
+
83
+ #: ../lib/yasr-ajax-functions.php:1325
84
+ msgid "Rating saved!"
85
+ msgstr "Ocjena spremljena!"
86
+
87
+ #: ../lib/yasr-ajax-functions.php:1331
88
+ msgid "Rating not saved. Please Try again"
89
+ msgstr "Ocjena nije spremljena. Molimo pokušajte ponovo"
90
+
91
+ #: ../lib/yasr-shortcode-functions.php:309
92
+ msgid "bad, poor, ok, good, super"
93
+ msgstr "loše, slabo, zadovoljavajuće, dobro, super"
94
+
95
+ #: ../lib/yasr-ajax-functions.php:1429
96
+ msgid "star"
97
+ msgstr "zvjezdica"
98
+
99
+ #: ../lib/yasr-settings-functions.php:1291
100
+ msgid "Size Only"
101
+ msgstr "Samo Veličina"
102
+
103
+ #: ../lib/yasr-settings-functions.php:1292
104
+ msgid "Users can choose different ready to use sets or can upload their own images."
105
+ msgstr "Korisnici mogu odabrati različite postavke već spremne za korištenje ili mogu učitati vlastite slike."
106
+
107
+ #: ../lib/yasr-settings-functions.php:1248
108
+ msgid "Unlimited ratings and votes"
109
+ msgstr "Neograničene ocjene i glasovi"
110
+
111
+ #: ../lib/yasr-settings-functions.php:1254
112
+ msgid "Works with shortcodes"
113
+ msgstr "Radi sa shortcodes"
114
+
115
+ #: ../lib/yasr-settings-functions.php:1260
116
+ msgid "Multi Set Support"
117
+ msgstr "Podrška za Višestruki Komplet"
118
+
119
+ #: ../lib/yasr-settings-functions.php:1265
120
+ msgid "Logs and stats for visitors votes"
121
+ msgstr "Evidencije i statistike za glasove posjetitelja"
122
+
123
+ #: ../lib/yasr-settings-functions.php:1270
124
+ msgid "Localization (.po and .mo files included)"
125
+ msgstr "Lokalizacija (.po i .mo datoteke uključene)"
126
+
127
+ #: ../lib/yasr-settings-functions.php:1275
128
+ msgid "Rich Snippet Support"
129
+ msgstr "Podrška za Rich Snippet"
130
+
131
+ #: ../lib/yasr-settings-functions.php:1280
132
+ msgid "Rankings for reviews, votes and users"
133
+ msgstr "Ljestvica za mišljenja, glasove i korisnike"
134
+
135
+ #: ../lib/yasr-settings-functions.php:1285
136
+ msgid "Rankings Customization"
137
+ msgstr "Prilagođavanje ljestvice"
138
+
139
+ #: ../lib/yasr-settings-functions.php:1290
140
+ msgid "Stars Customization"
141
+ msgstr "Prilagođavanje zvijezdica"
142
+
143
+ #: ../lib/yasr-settings-functions.php:1295
144
+ msgid "Users can review in comments"
145
+ msgstr "Korisnici mogu dati ocjenu u komentarima"
146
+
147
+ #: ../lib/yasr-settings-functions.php:54
148
+ msgid "Show \"Overall Rating\" in Archive Page?"
149
+ msgstr "Prikazati \"Ukupna ocijena\" na stranici arhive?"
150
+
151
+ #: ../lib/yasr-settings-functions.php:55
152
+ msgid "Show \"Visitor Votes\" in Archive Page?"
153
+ msgstr "Prikazati \"Glasovi posjetitelja\" na stranici arhive? "
154
+
155
+ #: ../lib/yasr-settings-functions.php:241
156
+ msgid "If you enable this, \"Visitor Votes\" will be showed not only in the single article or page, but also in pages like Home Page, category pages or archives."
157
+ msgstr "Ako ovo omogućite, \"Glasovi posjetitelja\" će se prikazati ne samo u jednoj objavi ili stranici, nego također i na stranicama poput početne stranice, stranicama s kategorijama ili arhivama."
158
+
159
+ #: ../lib/yasr-ajax-functions.php:1424
160
+ msgid "stars"
161
+ msgstr "zvijezdica"
162
+
163
+ #: ../lib/yasr-shortcode-functions.php:791
164
+ msgid "You've not enough data"
165
+ msgstr "Vi nemate dovoljno podataka"
166
+
167
+ #: ../lib/yasr-shortcode-functions.php:911
168
+ msgid "Problem while retrieving the top 5 most active reviewers. Did you publish any review?"
169
+ msgstr "Problem prilikom dohvaćanja 5 najaktivnijih recenzija. Jeste li objaviti neki pregled?"
170
+
171
+ #: ../lib/yasr-shortcode-functions.php:979
172
+ msgid "Problem while retrieving the top 10 active users chart. Are you sure you have votes to show?"
173
+ msgstr "Problem prilikom dohvaćanja grafikona 10 najaktivnijih korisnika. Jeste li sigurni da imate glasove za prikazivanje?"
174
+
175
+ #: ../lib/yasr-settings-functions.php:57
176
+ msgid "Do you want show stats for visitors votes?"
177
+ msgstr "Želite li pokazati statistiku za glasove posjetitelja?"
178
+
179
+ #: ../lib/yasr-settings-functions.php:496
180
+ msgid "You can insert up to nine elements"
181
+ msgstr "Možete umetnuti do devet elemenata"
182
+
183
+ #: ../lib/yasr-db-functions.php:310
184
+ msgid "No recenet votes yet"
185
+ msgstr "Još nema novih glasova"
186
+
187
+ #: ../lib/yasr-ajax-functions.php:1184
188
+ msgid "Vote updated"
189
+ msgstr "Glasovanje ažurirano"
190
+
191
+ #: ../yasr-settings-page.php:79
192
+ msgid "Pro Features!"
193
+ msgstr "Pro značajke!"
194
+
195
+ #: ../lib/yasr-settings-functions.php:1231
196
+ msgid "Looking for more features?"
197
+ msgstr "Tražite više značajki?"
198
+
199
+ #: ../lib/yasr-settings-functions.php:1232
200
+ msgid "Upgrade to yasr pro!"
201
+ msgstr "Nadogradite na yasr pro!"
202
+
203
+ #: ../lib/yasr-settings-functions.php:1306
204
+ msgid "Not avaible yet"
205
+ msgstr "Još nije na raspolaganju"
206
+
207
+ #: ../lib/yasr-shortcode-functions.php:760
208
+ #: ../lib/yasr-shortcode-functions.php:799
209
+ msgid "Post / Page"
210
+ msgstr "Objava / Stranica"
211
+
212
+ #: ../yasr-settings-page.php:24 ../lib/yasr-functions.php:111
213
+ #: ../lib/yasr-ajax-functions.php:44 ../lib/yasr-ajax-functions.php:187
214
+ #: ../lib/yasr-ajax-functions.php:336 ../lib/yasr-ajax-functions.php:753
215
+ msgid "You do not have sufficient permissions to access this page."
216
+ msgstr "Nemate potrebne ovlasti za pristup ovoj stranici."
217
+
218
+ #: ../yasr-settings-page.php:33
219
+ msgid "Settings"
220
+ msgstr "Postavke"
221
+
222
+ #: ../yasr-settings-page.php:76
223
+ msgid "General Settings"
224
+ msgstr "Opće Postavke"
225
+
226
+ #: ../yasr-settings-page.php:77
227
+ msgid "Multi Sets"
228
+ msgstr "Višestruki Kompleti"
229
+
230
+ #: ../yasr-settings-page.php:78
231
+ msgid "Styles"
232
+ msgstr "Stilovi"
233
+
234
+ #: ../yasr-settings-page.php:96 ../yasr-settings-page.php:255
235
+ #: ../yasr-settings-page.php:295
236
+ msgid "Save"
237
+ msgstr "Spremi"
238
+
239
+ #: ../yasr-settings-page.php:116
240
+ msgid "Import Gd Star Rating"
241
+ msgstr "Uvoz Gd Star Rating"
242
+
243
+ #: ../yasr-settings-page.php:117
244
+ msgid "I've found a previous installation of Gd Star Rating."
245
+ msgstr "Nađena je prethodna instalacija od Gd Star Rating."
246
+
247
+ #: ../yasr-settings-page.php:117
248
+ msgid "Do you want proceed to import data?"
249
+ msgstr "Želite li nastaviti i uvesti podatke?"
250
+
251
+ #: ../yasr-settings-page.php:119
252
+ msgid "Yes, Begin Import"
253
+ msgstr "Da, započni uvoz"
254
+
255
+ #: ../yasr-settings-page.php:123
256
+ msgid "Click on Proceed to import Gd Star Rating data."
257
+ msgstr "Kliknite na Nastavi uvoziti Gd Star Rating podatke."
258
+
259
+ #: ../yasr-settings-page.php:126 ../yasr-settings-page.php:159
260
+ msgid "Proceed"
261
+ msgstr "Nastaniti"
262
+
263
+ #: ../yasr-settings-page.php:148
264
+ msgid "Manage GD Star Data"
265
+ msgstr "Upravljanje s GD Star podacima"
266
+
267
+ #: ../yasr-settings-page.php:149
268
+ msgid "Gd Star Rating has been already imported."
269
+ msgstr "Gd Star Rating je već uvezen."
270
+
271
+ #: ../yasr-settings-page.php:150
272
+ msgid "If you wish you can import it again, but"
273
+ msgstr "Ako želite to možete ponovno uvesti, ali"
274
+
275
+ #: ../yasr-settings-page.php:150
276
+ msgid "you will lose all data you've collect since the import!"
277
+ msgstr "izgubit ćete sve podatke koje ste prikupili nakon uvoza!"
278
+
279
+ #: ../yasr-settings-page.php:152
280
+ msgid "Ok, Import Again"
281
+ msgstr "U redu, Uvezi ponovo"
282
+
283
+ #: ../yasr-settings-page.php:156
284
+ msgid "Click on Proceed to import again Gd Star Rating data. This may take a while!"
285
+ msgstr "Kliknite na Nastaviti da ponovno uvezete Gd Star Rating podatke. To može potrajati neko vrijeme!"
286
+
287
+ #: ../yasr-settings-page.php:196
288
+ msgid "Manage Multi Set"
289
+ msgstr "Upravljanje Višestrukim Kompletom"
290
+
291
+ #: ../yasr-settings-page.php:200
292
+ msgid "What is a Multi Set?"
293
+ msgstr "Što je Višestruki Komplet?"
294
+
295
+ #: ../yasr-settings-page.php:205
296
+ msgid "Multi Set allows you to insert a rate for each aspect about the product / local business / whetever you're reviewing, example in the image below."
297
+ msgstr "Višestruki Komplet omogućuje umetanje ocjene za svaki aspekt o proizvodu / lokalnoj tvrtki / štogod da pregledavate, primjer je na slici ispod."
298
+
299
+ #: ../yasr-settings-page.php:209
300
+ msgid "You can create up to 99 different Multi Set and each one can contain up to 9 different fields. Once you've saved it, you can insert the rates while typing your article in the box below the editor, as you can see in this image (click to see it larger)"
301
+ msgstr "Možete kreirati do 99 različitih Višestrukih Kompleta a svaki od njih može sadržavati do 9 različitih polja. Nakon što to spremite, možete umetnuti ocjene dok pišete članak u polju ispod uređivača, kao što možete vidjeti na ovoj slici (kliknite da vidite veću sliku)"
302
+
303
+ #: ../yasr-settings-page.php:213
304
+ msgid "In order to insert your Multi Sets into a post or page, you can either past the short code that will appear at the bottom of the box or just click on the star in the graphic editor and select \"Insert Multi Set\"."
305
+ msgstr "Da bi dodali Višestruke Komplete u objavu ili stranicu, možete ili zaljepiti kratko kod koji će se pojaviti na dnu okvira ili samo kliknite na zvjezdicu u grafičkom uređivaču i odaberite \"Umetni Višestruki Komplet\"."
306
+
307
+ #: ../yasr-settings-page.php:219
308
+ msgid "Close this message"
309
+ msgstr "Zatvori ovu poruku"
310
+
311
+ #: ../yasr-settings-page.php:265 ../lib/yasr-settings-functions.php:1326
312
+ #: ../lib/yasr-settings-functions.php:1352
313
+ msgid "Donations"
314
+ msgstr "Donacije"
315
+
316
+ #: ../yasr-settings-page.php:267 ../lib/yasr-settings-functions.php:1328
317
+ #: ../lib/yasr-settings-functions.php:1354
318
+ msgid "If you have found this plugin useful, please consider making a donation to help support future development. Your support will be much appreciated. "
319
+ msgstr "Ako vam je ovaj plugin koristan, molimo vas da razmislite o donaciji koja će pomoći budući razvoj. Vaša podrška će se izuzetno cijeniti."
320
+
321
+ #: ../yasr-settings-page.php:269 ../lib/yasr-settings-functions.php:1330
322
+ #: ../lib/yasr-settings-functions.php:1356
323
+ msgid "Thank you!"
324
+ msgstr "Hvala!"
325
+
326
+ #: ../yasr-metabox-multiple-rating.php:35
327
+ msgid "Choose wich set you want to use"
328
+ msgstr "Odaberite komplet kojeg želite koristiti"
329
+
330
+ #: ../yasr-metabox-top-right.php:199 ../yasr-metabox-multiple-rating.php:46
331
+ #: ../lib/yasr-settings-functions.php:542
332
+ msgid "Select"
333
+ msgstr "Odaberi"
334
+
335
+ #: ../yasr-metabox-top-right.php:65 ../yasr-metabox-top-right.php:99
336
+ msgid "Rate this article / item"
337
+ msgstr "Ocijenite ovaj članak / stavku"
338
+
339
+ #: ../yasr-metabox-top-right.php:71 ../lib/yasr-shortcode-functions.php:124
340
+ #: ../lib/yasr-shortcode-functions.php:527
341
+ msgid "Loading, please wait"
342
+ msgstr "Učitavanje, molimo pričekajte"
343
+
344
+ #: ../yasr-metabox-top-right.php:147
345
+ msgid "Save Vote"
346
+ msgstr "Spremi Glas"
347
+
348
+ #: ../yasr-metabox-top-right.php:166
349
+ msgid "This review is about a..."
350
+ msgstr "Ovaj pregled je o ..."
351
+
352
+ #: ../yasr-metabox-top-right.php:217
353
+ msgid "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> where you want to display this rating"
354
+ msgstr "Ne zaboravite umetnuti ovaj shortcode <strong>[yasr_overall_rating]</strong> gdje želite prikazati ovu ocjenu"
355
+
356
+ #: ../lib/yasr-shortcode-functions.php:293 ../lib/yasr-ajax-functions.php:1040
357
+ #: ../lib/yasr-ajax-functions.php:1048 ../lib/yasr-ajax-functions.php:1181
358
+ msgid "Total: "
359
+ msgstr "Ukupno:"
360
+
361
+ #: ../lib/yasr-shortcode-functions.php:293
362
+ msgid "Average: "
363
+ msgstr "Prosječno:"
364
+
365
+ #: ../lib/yasr-shortcode-functions.php:189
366
+ #: ../lib/yasr-shortcode-functions.php:210
367
+ #: ../lib/yasr-shortcode-functions.php:240
368
+ msgid "You've already voted this article with"
369
+ msgstr "Već ste glasovali za ovaj članak sa"
370
+
371
+ #: ../lib/yasr-shortcode-functions.php:251
372
+ #: ../lib/yasr-shortcode-functions.php:555
373
+ msgid "You must sign to vote"
374
+ msgstr "Morate se prijaviti / logirati za glasovanje"
375
+
376
+ #: ../lib/yasr-shortcode-functions.php:710
377
+ msgid "Rating"
378
+ msgstr "Ocjena"
379
+
380
+ #: ../lib/yasr-shortcode-functions.php:724
381
+ msgid "You don't have any votes stored"
382
+ msgstr "Vi nemate spremljenih glasova"
383
+
384
+ #: ../lib/yasr-shortcode-functions.php:761
385
+ #: ../lib/yasr-shortcode-functions.php:800
386
+ msgid "Order By"
387
+ msgstr "Sortiraj po"
388
+
389
+ #: ../lib/yasr-shortcode-functions.php:761
390
+ #: ../lib/yasr-shortcode-functions.php:800
391
+ msgid "Most Rated"
392
+ msgstr "Najocjenjivanije"
393
+
394
+ #: ../lib/yasr-shortcode-functions.php:761
395
+ #: ../lib/yasr-shortcode-functions.php:800
396
+ msgid "Highest Rated"
397
+ msgstr "Najviše ocjenjeno"
398
+
399
+ #: ../lib/yasr-shortcode-functions.php:779
400
+ #: ../lib/yasr-shortcode-functions.php:814
401
+ msgid "Total:"
402
+ msgstr "Ukupno:"
403
+
404
+ #: ../lib/yasr-shortcode-functions.php:779
405
+ #: ../lib/yasr-shortcode-functions.php:814
406
+ msgid "Average"
407
+ msgstr "Prosjek"
408
+
409
+ #: ../lib/yasr-shortcode-functions.php:826
410
+ msgid "You've not enought data"
411
+ msgstr "Vi nemate dovoljno podataka"
412
+
413
+ #: ../lib/yasr-settings-functions.php:52
414
+ msgid "General settings"
415
+ msgstr "Opće Postavke"
416
+
417
+ #: ../lib/yasr-settings-functions.php:53
418
+ msgid "Auto insert options"
419
+ msgstr "Opcije automatskog umetanja"
420
+
421
+ #: ../lib/yasr-settings-functions.php:56
422
+ msgid "Insert custom text to show before / after stars"
423
+ msgstr "Umetnite prilagođeni tekst koji će se prikazati prije / nakon zvjezdica"
424
+
425
+ #: ../lib/yasr-settings-functions.php:431
426
+ msgid "Which color scheme do you want to use?"
427
+ msgstr "Koju shemu boje želite koristiti?"
428
+
429
+ #: ../lib/yasr-settings-functions.php:58
430
+ msgid "Allow only logged in user to vote?"
431
+ msgstr "Dopustiti glasovanje samo prijavljenim korisnicima?"
432
+
433
+ #: ../lib/yasr-settings-functions.php:59
434
+ msgid "Which rich snippets do you want to use?"
435
+ msgstr "Koji Rich Snippets isječak želite koristiti?"
436
+
437
+ #: ../lib/yasr-settings-functions.php:60
438
+ msgid "How do you want to rate \"Overall Rating\"?"
439
+ msgstr "Kako želite ocijeniti \"Ukupna ocjena\"?"
440
+
441
+ #: ../lib/yasr-settings-functions.php:74
442
+ msgid "Use Auto Insert?"
443
+ msgstr "Koristiti Auto Umetanje?"
444
+
445
+ #: ../lib/yasr-settings-functions.php:77 ../lib/yasr-settings-functions.php:146
446
+ #: ../lib/yasr-settings-functions.php:164
447
+ #: ../lib/yasr-settings-functions.php:206
448
+ #: ../lib/yasr-settings-functions.php:232
449
+ #: ../lib/yasr-settings-functions.php:266
450
+ #: ../lib/yasr-settings-functions.php:321
451
+ msgid "Yes"
452
+ msgstr "Da"
453
+
454
+ #: ../lib/yasr-settings-functions.php:91 ../lib/yasr-settings-functions.php:151
455
+ #: ../lib/yasr-settings-functions.php:169
456
+ #: ../lib/yasr-settings-functions.php:211
457
+ #: ../lib/yasr-settings-functions.php:237
458
+ #: ../lib/yasr-settings-functions.php:271
459
+ #: ../lib/yasr-settings-functions.php:326
460
+ msgid "No"
461
+ msgstr "Ne"
462
+
463
+ #: ../lib/yasr-settings-functions.php:97
464
+ msgid "What?"
465
+ msgstr "Što?"
466
+
467
+ #: ../lib/yasr-settings-functions.php:100
468
+ msgid "Overall Rating / Author Rating"
469
+ msgstr "Ukupna ocjena / Ocjena autora"
470
+
471
+ #: ../lib/yasr-settings-functions.php:104 ../lib/yasr-ajax-functions.php:471
472
+ msgid "Visitor Votes"
473
+ msgstr "Glasovi posjetitelja"
474
+
475
+ #: ../lib/yasr-settings-functions.php:108
476
+ msgid "Both"
477
+ msgstr "Oboje"
478
+
479
+ #: ../lib/yasr-settings-functions.php:112
480
+ msgid "Where?"
481
+ msgstr "Gdje?"
482
+
483
+ #: ../lib/yasr-settings-functions.php:115
484
+ msgid "Before the post"
485
+ msgstr "Prije objave"
486
+
487
+ #: ../lib/yasr-settings-functions.php:119
488
+ msgid "After the post"
489
+ msgstr "Nakon objave"
490
+
491
+ #: ../lib/yasr-settings-functions.php:124
492
+ msgid "Size"
493
+ msgstr "Veličina"
494
+
495
+ #: ../lib/yasr-settings-functions.php:128 ../lib/yasr-ajax-functions.php:461
496
+ #: ../lib/yasr-ajax-functions.php:479
497
+ msgid "Small"
498
+ msgstr "Mala"
499
+
500
+ #: ../lib/yasr-settings-functions.php:133 ../lib/yasr-ajax-functions.php:462
501
+ #: ../lib/yasr-ajax-functions.php:480
502
+ msgid "Medium"
503
+ msgstr "Srednja"
504
+
505
+ #: ../lib/yasr-settings-functions.php:138 ../lib/yasr-ajax-functions.php:463
506
+ #: ../lib/yasr-ajax-functions.php:481
507
+ msgid "Large"
508
+ msgstr "Velika"
509
+
510
+ #: ../lib/yasr-settings-functions.php:143
511
+ msgid "Exclude Pages?"
512
+ msgstr "Isključiti stranice?"
513
+
514
+ #: ../lib/yasr-settings-functions.php:161
515
+ msgid "Use only in custom post types?"
516
+ msgstr "Koristiti samo u prilagođenim vrstama objava?"
517
+
518
+ #: ../lib/yasr-settings-functions.php:173
519
+ msgid "You see this because you use custom post types."
520
+ msgstr "Ovo vidite jer koristite prilagođene vrste objava."
521
+
522
+ #: ../lib/yasr-settings-functions.php:175
523
+ msgid "If you want to use auto insert only in custom post types, choose Yes"
524
+ msgstr "Ako želite koristiti automatsko umetanje samo u prilagođenim vrstama objava, odaberite Da"
525
+
526
+ #: ../lib/yasr-settings-functions.php:215
527
+ msgid "If you enable this, \"Overall Rating\" will be showed not only in the single article or page, but also in pages like Home Page, category pages or archives."
528
+ msgstr "Ako omogućite ovo, \"Ukupna ocjena\" će se prikazati ne samo u jednom članku ili stranici, nego i na stranicama poput početne stranice, stranicama kategorija ili arhivama."
529
+
530
+ #: ../lib/yasr-settings-functions.php:276
531
+ msgid "Custom text to display before Overall Rating"
532
+ msgstr "Prilagođeni tekst za prikaz prije Ukupne ocjene"
533
+
534
+ #: ../lib/yasr-settings-functions.php:292
535
+ msgid "Custom text to display when a non logged user has already rated"
536
+ msgstr "Prilagođeni tekst za prikaz kada je neprijavljeni korisnik već ocijenio"
537
+
538
+ #: ../lib/yasr-settings-functions.php:452
539
+ msgid "Light"
540
+ msgstr "Svijetla"
541
+
542
+ #: ../lib/yasr-settings-functions.php:457
543
+ msgid "Dark"
544
+ msgstr "Tamna"
545
+
546
+ #: ../lib/yasr-settings-functions.php:462
547
+ msgid "Preview"
548
+ msgstr "Pregled"
549
+
550
+ #: ../lib/yasr-settings-functions.php:467
551
+ msgid "Light theme"
552
+ msgstr "Svijetla tema"
553
+
554
+ #: ../lib/yasr-settings-functions.php:344
555
+ msgid "Allow only logged-in users"
556
+ msgstr "Dopusti samo prijavljenim korisnicima"
557
+
558
+ #: ../lib/yasr-settings-functions.php:348
559
+ msgid "Allow everybody (logged in and anonymous)"
560
+ msgstr "Dopusti svima (prijavljenim i anonimnim)"
561
+
562
+ #: ../lib/yasr-settings-functions.php:365
563
+ msgid "Review Rating"
564
+ msgstr "Ocjena Recenzije"
565
+
566
+ #: ../lib/yasr-settings-functions.php:369
567
+ msgid "Aggregate Rating"
568
+ msgstr "Skupna Ocjena"
569
+
570
+ #: ../lib/yasr-settings-functions.php:374
571
+ msgid "What is this?"
572
+ msgstr "Što je ovo?"
573
+
574
+ #: ../lib/yasr-settings-functions.php:379
575
+ msgid "If you select \"Review Rating\", your site will be indexed from search engines like this: "
576
+ msgstr "Ako odaberete \"Ocjena Recenzije\", vaša će stranica biti indeksirana od tražilica na ovaj način:"
577
+
578
+ #: ../lib/yasr-settings-functions.php:384
579
+ msgid "If, instead, you choose \"Aggregate Rating\", your site will be indexed like this"
580
+ msgstr "Ako, umjesto toga, odaberete \"Skupna Ocjena\", vaša stranica će biti indeksirana na ovaj način"
581
+
582
+ #: ../lib/yasr-settings-functions.php:402
583
+ msgid "Stars"
584
+ msgstr "Zvjezdice"
585
+
586
+ #: ../lib/yasr-settings-functions.php:406
587
+ msgid "Numbers"
588
+ msgstr "Brojevi"
589
+
590
+ #: ../lib/yasr-settings-functions.php:487
591
+ msgid "Add New Multiple Set"
592
+ msgstr "Dodaj novi Višestruki Komplet"
593
+
594
+ #: ../lib/yasr-settings-functions.php:488
595
+ msgid "Name, Element#1 and Element#2 MUST be filled and must be long at least 3 characters"
596
+ msgstr "Nazivi, Element#1 i Element#2 MORAJU biti ispunjeni i sastojati se od najmanje 3 slova"
597
+
598
+ #: ../lib/yasr-settings-functions.php:491
599
+ msgid "Name"
600
+ msgstr "Naziv"
601
+
602
+ #: ../lib/yasr-settings-functions.php:501
603
+ msgid "Element "
604
+ msgstr "Element"
605
+
606
+ #: ../lib/yasr-settings-functions.php:511
607
+ msgid "Create New Set"
608
+ msgstr "Kreiraj novi komplet"
609
+
610
+ #: ../lib/yasr-settings-functions.php:532
611
+ #: ../lib/yasr-settings-functions.php:564
612
+ msgid "Manage Multiple Set"
613
+ msgstr "Upravljanje višestrukim kompletom"
614
+
615
+ #: ../lib/yasr-settings-functions.php:534
616
+ msgid "Wich set do you want to edit or remove?"
617
+ msgstr "Koji komplet želite urediti ili ukloniti?"
618
+
619
+ #: ../lib/yasr-settings-functions.php:574
620
+ #: ../lib/yasr-settings-functions.php:692
621
+ msgid "Field name"
622
+ msgstr "Naziv polja"
623
+
624
+ #: ../lib/yasr-settings-functions.php:578
625
+ #: ../lib/yasr-settings-functions.php:696
626
+ msgid "Remove"
627
+ msgstr "Ukloni"
628
+
629
+ #: ../lib/yasr-settings-functions.php:620
630
+ #: ../lib/yasr-settings-functions.php:738
631
+ msgid "Remove whole set?"
632
+ msgstr "Ukloniti cijeli komplet?"
633
+
634
+ #: ../lib/yasr-settings-functions.php:633
635
+ #: ../lib/yasr-settings-functions.php:751
636
+ msgid "If you remove something you will remove all the votes for that set or field. This operation CAN'T BE undone."
637
+ msgstr "Ako nešto uklonite vi ćete s tim ukloniti i sve glasove za taj komplet ili polje. Ovaj se postupak ne može poništiti."
638
+
639
+ #: ../lib/yasr-settings-functions.php:640
640
+ #: ../lib/yasr-settings-functions.php:758
641
+ msgid "You can use up to 9 elements"
642
+ msgstr "Možete koristiti do 9 elemenata"
643
+
644
+ #: ../lib/yasr-settings-functions.php:642
645
+ #: ../lib/yasr-settings-functions.php:760
646
+ msgid "Add element"
647
+ msgstr "Dodaj element"
648
+
649
+ #: ../lib/yasr-settings-functions.php:644
650
+ #: ../lib/yasr-settings-functions.php:762
651
+ msgid "Save changes"
652
+ msgstr "Spremi promjene"
653
+
654
+ #: ../lib/yasr-settings-functions.php:654
655
+ msgid "No Multiple Set were found"
656
+ msgstr "Višestruki Kompleti nisu pronađeni"
657
+
658
+ #: ../lib/yasr-settings-functions.php:904
659
+ #: ../lib/yasr-settings-functions.php:1172
660
+ msgid "Settings Saved"
661
+ msgstr "Postavke spremljene"
662
+
663
+ #: ../lib/yasr-settings-functions.php:909
664
+ msgid "Something goes wrong trying insert set field name. Please report it"
665
+ msgstr "Nešto je pošlo po krivu dok ste pokušavali umetnuti naziv polja. Molimo, prijavite ovo"
666
+
667
+ #: ../lib/yasr-settings-functions.php:915
668
+ msgid "Something goes wrong trying insert Multi Set name. Please report it"
669
+ msgstr "Nešto je pošlo po krivu dok ste pokušavali umetnuti naziv za Višestruki Komplet. Molimo, prijavite ovo"
670
+
671
+ #: ../lib/yasr-settings-functions.php:990
672
+ msgid "Something goes wrong trying to delete a Multi Set . Please report it"
673
+ msgstr "Nešto je pošlo po krivu dok ste pokušavali obrisati Višestruki Komplet. Molimo, prijavite ovo"
674
+
675
+ #: ../lib/yasr-settings-functions.php:1036
676
+ msgid "Something goes wrong trying to delete a Multi Set's element. Please report it"
677
+ msgstr "Nešto je pošlo po krivu dok ste pokušavali obrisati Višestruki Komplet element. Molimo, prijavite ovo"
678
+
679
+ #: ../lib/yasr-settings-functions.php:1100
680
+ msgid "Something goes wrong trying to update a Multi Set's element. Please report it"
681
+ msgstr "Nešto je pošlo po krivu dok ste pokušavali ažurirati Višestruki Komplet element. Molimo, prijavite ovo"
682
+
683
+ #: ../lib/yasr-settings-functions.php:1157
684
+ msgid "Something goes wrong trying to insert set field name in edit form. Please report it"
685
+ msgstr "Nešto je pošlo po krivu dok ste pokušavali umetnuti naziv polja u formi za uređivanje. Molimo, prijavite ovo"
686
+
687
+ #: ../lib/yasr-settings-functions.php:1200
688
+ msgid "Style Options"
689
+ msgstr "Opcije stila"
690
+
691
+ #: ../lib/yasr-settings-functions.php:1201
692
+ msgid "Custom CSS Styles"
693
+ msgstr "Prilagođeni CSS stilovi"
694
+
695
+ #: ../lib/yasr-settings-functions.php:1206
696
+ msgid "Please use text area below to write your own CSS styles to override the default ones."
697
+ msgstr "Molimo da koristite tekstualni prostor ispod da napišete vlastitie CSS stilove koji će nadjačati default."
698
+
699
+ #: ../lib/yasr-settings-functions.php:1208
700
+ msgid "Leave it blank if you don't know what you're doing"
701
+ msgstr "Ostavite to prazno, ako ne znate što radite"
702
+
703
+ #: ../lib/yasr-settings-functions.php:1395
704
+ msgid "No previous Gd Star Rating installation was found"
705
+ msgstr "Prethodna instalacija Gd Star Rating nije nađena"
706
+
707
+ #: ../lib/yasr-ajax-functions.php:765
708
+ msgid "No Recenet votes yet"
709
+ msgstr "Još nema novih glasova:"
710
+
711
+ #: ../lib/yasr-db-functions.php:325 ../lib/yasr-ajax-functions.php:778
712
+ msgid "anonymous"
713
+ msgstr "anonimno"
714
+
715
+ #: ../lib/yasr-db-functions.php:350 ../lib/yasr-ajax-functions.php:803
716
+ msgid "Ip address"
717
+ msgstr "IP adresa"
718
+
719
+ #: ../lib/yasr-db-functions.php:391 ../lib/yasr-ajax-functions.php:844
720
+ msgid "Pages"
721
+ msgstr "Stranice"
722
+
723
+ #: ../lib/yasr-functions.php:99 ../lib/yasr-functions.php:100
724
+ msgid "Yet Another Stars Rating: Settings"
725
+ msgstr "Yet Another Stars Rating: Postavke"
726
+
727
+ #: ../lib/yasr-functions.php:148
728
+ msgid "Yet Another Stars Rating: Multiple set"
729
+ msgstr "Yet Another Stars Rating: Višestruki Komplet"
730
+
731
+ #: ../lib/yasr-functions.php:159
732
+ msgid "You don't have enought privileges to insert Overall Rating"
733
+ msgstr "Vi nemate dovoljno ovlasti za umetanje Ukupne Ocjene"
734
+
735
+ #: ../lib/yasr-functions.php:169
736
+ msgid "You don't have enought privileges to insert Multi Set"
737
+ msgstr "Vi nemate dovoljno ovlasti za umetanje Višestrukog Kompleta"
738
+
739
+ #: ../lib/yasr-functions.php:309
740
+ msgid " reviewed by "
741
+ msgstr "pregledano od strane"
742
+
743
+ #: ../lib/yasr-functions.php:310
744
+ msgid " on "
745
+ msgstr "dana"
746
+
747
+ #: ../lib/yasr-functions.php:311
748
+ msgid " rated "
749
+ msgstr "ocijenjeno"
750
+
751
+ #: ../lib/yasr-functions.php:311
752
+ msgid " of"
753
+ msgstr "od"
754
+
755
+ #: ../lib/yasr-functions.php:358
756
+ msgid " written by "
757
+ msgstr "napisao"
758
+
759
+ #: ../lib/yasr-functions.php:360
760
+ msgid " average rating "
761
+ msgstr "prosječna ocjena"
762
+
763
+ #: ../lib/yasr-functions.php:361
764
+ msgid " user ratings"
765
+ msgstr "ocjena korisnika"
766
+
767
+ #: ../lib/yasr-settings-functions.php:1338
768
+ #: ../lib/yasr-settings-functions.php:1365
769
+ msgid "Follow YASR official site!"
770
+ msgstr "Pratite službenu stranicu YASR!"
771
+
772
+ #: ../lib/yasr-ajax-functions.php:96
773
+ msgid "You've rated it "
774
+ msgstr "To ste već ocijenili"
775
+
776
+ #: ../lib/yasr-ajax-functions.php:100
777
+ msgid "You've reset the vote"
778
+ msgstr "Vi ste resetirali glasovanje"
779
+
780
+ #: ../lib/yasr-ajax-functions.php:164
781
+ msgid "There was an error while trying to insert the review type. Please report it"
782
+ msgstr "Došlo je do greške prilikom pokušaja umetanja vrste recenzije. Molimo, prijavite to"
783
+
784
+ #: ../lib/yasr-ajax-functions.php:198
785
+ msgid "Choose a vote for each element"
786
+ msgstr "Odaberite glas za svaki element"
787
+
788
+ #: ../lib/yasr-ajax-functions.php:268
789
+ msgid "Choose a vote for every element"
790
+ msgstr "Odaberite glas za sve elemente"
791
+
792
+ #: ../lib/yasr-ajax-functions.php:441
793
+ msgid "Main"
794
+ msgstr "Glavno"
795
+
796
+ #: ../lib/yasr-ajax-functions.php:442
797
+ msgid "Charts"
798
+ msgstr "Karte"
799
+
800
+ #: ../lib/yasr-ajax-functions.php:444
801
+ msgid "Read the doc"
802
+ msgstr "Pročitaj dokument"
803
+
804
+ #: ../lib/yasr-ajax-functions.php:453
805
+ msgid "Overall Rating / Review"
806
+ msgstr "Ukupna ocijena / Recenzija"
807
+
808
+ #: ../lib/yasr-ajax-functions.php:455
809
+ msgid "Insert Overall Rating"
810
+ msgstr "Umetni Ukupna ocijena"
811
+
812
+ #: ../lib/yasr-ajax-functions.php:456
813
+ msgid "Insert Overall Rating / Review for this post"
814
+ msgstr "Umetni Ukupna ocijena / Recenzija za ovu objavu"
815
+
816
+ #: ../lib/yasr-ajax-functions.php:459 ../lib/yasr-ajax-functions.php:477
817
+ msgid "Choose Size"
818
+ msgstr "Odaberi veličinu"
819
+
820
+ #: ../lib/yasr-ajax-functions.php:473
821
+ msgid "Insert Visitor Votes"
822
+ msgstr "Umetni glasove posjetitelja"
823
+
824
+ #: ../lib/yasr-ajax-functions.php:474
825
+ msgid "Insert the ability for your visitor to vote"
826
+ msgstr "Umetni sposobnost za vaše posjetitelje da glasaju"
827
+
828
+ #: ../lib/yasr-ajax-functions.php:491
829
+ msgid "If you want to insert a Multi Set, pick one:"
830
+ msgstr "Ako želite umetnuti Višestruki Komplet, odaberite jedan:"
831
+
832
+ #: ../lib/yasr-ajax-functions.php:497
833
+ msgid "Choose wich set you want to insert."
834
+ msgstr "Odaberite koji komplet želite umetnuti."
835
+
836
+ #: ../lib/yasr-ajax-functions.php:511
837
+ msgid "Insert Multiset:"
838
+ msgstr "Umetni Višestruki Komplet:"
839
+
840
+ #: ../lib/yasr-ajax-functions.php:514
841
+ msgid "Insert Multiple Set"
842
+ msgstr "Umetni Višestruki Komplet"
843
+
844
+ #: ../lib/yasr-ajax-functions.php:532
845
+ msgid "Ranking reviews"
846
+ msgstr "Rangiranje recenzija"
847
+
848
+ #: ../lib/yasr-ajax-functions.php:533
849
+ msgid "Insert Ranking reviews"
850
+ msgstr "Umetni Rangiranje recenzija"
851
+
852
+ #: ../lib/yasr-ajax-functions.php:534
853
+ msgid "Insert Top 10 ranking for [yasr_overall_rating] shortcode"
854
+ msgstr "Umetni 10 najboljih rangiranja za [yasr_overall_rating] shortcode"
855
+
856
+ #: ../lib/yasr-ajax-functions.php:538
857
+ msgid "Users' ranking"
858
+ msgstr "Rangiranje korisnika"
859
+
860
+ #: ../lib/yasr-ajax-functions.php:539
861
+ msgid "Insert Users ranking"
862
+ msgstr "Umetni rangiranje korisnika"
863
+
864
+ #: ../lib/yasr-ajax-functions.php:540
865
+ msgid "Insert Top 10 ranking for [yasr_visitor_votes] shortcode"
866
+ msgstr "Umetni 10 najboljih rangiranja za [yasr_visitor_votes] shortcode"
867
+
868
+ #: ../lib/yasr-ajax-functions.php:544
869
+ msgid "Most active reviewers"
870
+ msgstr "Najaktivniji recenzenti"
871
+
872
+ #: ../lib/yasr-ajax-functions.php:545
873
+ msgid "Insert Most Active Reviewers"
874
+ msgstr "Umetni najaktivnije recenzente"
875
+
876
+ #: ../lib/yasr-ajax-functions.php:546
877
+ msgid "Insert Top 5 active reviewers"
878
+ msgstr "Umetni 5 najaktivnijih recenzenata"
879
+
880
+ #: ../lib/yasr-ajax-functions.php:550
881
+ msgid "Most Active Users"
882
+ msgstr "Najaktivniji korisnici"
883
+
884
+ #: ../lib/yasr-ajax-functions.php:551
885
+ msgid "Insert Most Active Users"
886
+ msgstr "Umetni najaktivnije korisnike"
887
+
888
+ #: ../lib/yasr-ajax-functions.php:552
889
+ msgid "Insert Top 10 voters [yasr_visitor_votes] shortcode"
890
+ msgstr "Umetni 10 najboljih glasača [yasr_visitor_votes] shortcode"
891
+
892
+ #: ../lib/yasr-ajax-functions.php:623
893
+ msgid "Reviews and Visitor Votes have been successfull imported."
894
+ msgstr "Recenzije i glasovi posjetitelja su uspješno uvezeni."
895
+
896
+ #: ../lib/yasr-ajax-functions.php:629
897
+ msgid "Step2: I will check if you used Multiple Sets and if so I will import them. THIS MAY TAKE A WHILE!"
898
+ msgstr "Korak2: Provjera, ako koristite Višestruke Komplete to će biti uveženo. OVO MOŽE POTRAJATI!"
899
+
900
+ #: ../lib/yasr-ajax-functions.php:631
901
+ msgid "Proceed Step 2"
902
+ msgstr "Nastaviti s Korak 2"
903
+
904
+ #: ../lib/yasr-ajax-functions.php:638
905
+ msgid "Something goes wrong! Refresh the page and try again!"
906
+ msgstr "Nešto je krenulo pogrešno! Osvježite stranicu i pokušajte ponovno!"
907
+
908
+ #: ../lib/yasr-ajax-functions.php:667
909
+ msgid "I've found Multiple Set! Importing..."
910
+ msgstr "Nađeni su Višestruki Kompleti! Uvoženje ..."
911
+
912
+ #: ../lib/yasr-ajax-functions.php:676
913
+ msgid "Multi Set's name has been successfull imported."
914
+ msgstr "Nazivi Višestrukih Kompleta su uvezeni uspješno."
915
+
916
+ #: ../lib/yasr-ajax-functions.php:678
917
+ msgid "Now I'm going to import Multi Set data"
918
+ msgstr "Sada ćemo uvesti podatke od Višestrukih Kompleta"
919
+
920
+ #: ../lib/yasr-ajax-functions.php:689
921
+ msgid "All votes has been successfull imported."
922
+ msgstr "Svi glasovi su uspješno uvezeni."
923
+
924
+ #: ../lib/yasr-ajax-functions.php:691
925
+ msgid "Done"
926
+ msgstr "Napravljeno"
927
+
928
+ #: ../lib/yasr-ajax-functions.php:696
929
+ msgid "I've found Multiple Set's votes but I couldn't insert into db"
930
+ msgstr "Nađeni su glasovi od Višestrukih Kompleta ali ih nije moguće umetnuti u bazu podataka"
931
+
932
+ #: ../lib/yasr-ajax-functions.php:704
933
+ msgid "I've found Multi Set but with no data"
934
+ msgstr "Nađeni su Višestruki Kompleti ali bez podataka"
935
+
936
+ #: ../lib/yasr-ajax-functions.php:713
937
+ msgid "I've found Multi Sets names but I couldn't insert into db"
938
+ msgstr "Nađeni su nazivi Višestrukih Kompleta ali ih nije moguće umetnuti u bazu podataka"
939
+
940
+ #: ../lib/yasr-ajax-functions.php:721
941
+ msgid "Multisets were not found. Imported is done!"
942
+ msgstr "Višestruki Kompleti nisu nađeni. Uvoženje je gotovo!"
943
+
944
+ #: ../lib/yasr-ajax-functions.php:937 ../lib/yasr-ajax-functions.php:1088
945
+ msgid "Error: you can't vote 0"
946
+ msgstr "Greška: vi ne možete glasovati sa 0"
947
+
948
+ #: ../lib/yasr-ajax-functions.php:1041 ../lib/yasr-ajax-functions.php:1049
949
+ msgid "Vote Saved"
950
+ msgstr "Glas spremljen"
lib/yasr-ajax-functions.php CHANGED
@@ -1016,6 +1016,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1016
  global $current_user;
1017
  get_currentuserinfo();
1018
 
 
 
1019
  $result_insert_log = $wpdb->replace (
1020
  YASR_LOG_TABLE,
1021
  array (
@@ -1024,7 +1026,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
1024
  'user_id' => $current_user->ID,
1025
  'vote' => $rating,
1026
  'date' => date('Y-m-d H:i:s'),
1027
- 'ip' => $_SERVER['REMOTE_ADDR']
1028
  ),
1029
  array ('%d', '%d', '%d', '%s', '%s', '%s')
1030
  );
1016
  global $current_user;
1017
  get_currentuserinfo();
1018
 
1019
+ $ip_adress = yasr_get_ip();
1020
+
1021
  $result_insert_log = $wpdb->replace (
1022
  YASR_LOG_TABLE,
1023
  array (
1026
  'user_id' => $current_user->ID,
1027
  'vote' => $rating,
1028
  'date' => date('Y-m-d H:i:s'),
1029
+ 'ip' => $ip_adress
1030
  ),
1031
  array ('%d', '%d', '%d', '%s', '%s', '%s')
1032
  );
lib/yasr-functions.php CHANGED
@@ -447,7 +447,7 @@ add_action( 'admin_init', 'yasr_get_custom_post_type');
447
  }
448
 
449
 
450
- /*** function that get the star size and return ***/
451
  function yasr_stars_size ($size) {
452
 
453
  $size = sanitize_text_field($size);
@@ -497,4 +497,44 @@ function yasr_wp_super_cache_support($post_id) {
497
 
498
  }
499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
500
  ?>
447
  }
448
 
449
 
450
+ /*** function that get the star size and return it***/
451
  function yasr_stars_size ($size) {
452
 
453
  $size = sanitize_text_field($size);
497
 
498
  }
499
 
500
+
501
+ /*** Function to get ip, since version 0.8.8 and 0.3.4
502
+ This code can be found on http://codex.wordpress.org/Plugin_API/Filter_Reference/pre_comment_user_ip
503
+ ***/
504
+
505
+ function yasr_get_ip() {
506
+
507
+ $REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
508
+
509
+ if (!empty($_SERVER['X_FORWARDED_FOR'])) {
510
+
511
+ $X_FORWARDED_FOR = explode(',', $_SERVER['X_FORWARDED_FOR']);
512
+
513
+ if (!empty($X_FORWARDED_FOR)) {
514
+ $REMOTE_ADDR = trim($X_FORWARDED_FOR[0]);
515
+ }
516
+
517
+ }
518
+
519
+ /*
520
+ * Some php environments will use the $_SERVER['HTTP_X_FORWARDED_FOR']
521
+ * variable to capture visitor address information.
522
+ */
523
+
524
+ elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
525
+
526
+ $HTTP_X_FORWARDED_FOR= explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
527
+
528
+ if (!empty($HTTP_X_FORWARDED_FOR)) {
529
+ $REMOTE_ADDR = trim($HTTP_X_FORWARDED_FOR[0]);
530
+ }
531
+
532
+ }
533
+
534
+ return preg_replace('/[^0-9a-f:\., ]/si', '', $REMOTE_ADDR);
535
+
536
+ }
537
+
538
+
539
+
540
  ?>
lib/yasr-settings-functions.php CHANGED
@@ -1311,7 +1311,6 @@ function yasr_go_pro () {
1311
 
1312
  </div>
1313
 
1314
-
1315
  <?php
1316
 
1317
  }
@@ -1370,6 +1369,62 @@ function yasr_donate_bottom () {
1370
 
1371
  }
1372
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1373
 
1374
 
1375
  /*************************BEGIN IMPORT FUNCTIONS*******************************/
1311
 
1312
  </div>
1313
 
 
1314
  <?php
1315
 
1316
  }
1369
 
1370
  }
1371
 
1372
+ function yasr_include_fb_sdk () {
1373
+
1374
+ $lang = get_locale();
1375
+
1376
+ $lang = json_encode("$lang");
1377
+
1378
+ ?>
1379
+
1380
+ <div id="fb-root"></div>
1381
+ <script>
1382
+ (function(d, s, id) {
1383
+ var lang = <?php echo ($lang); ?>;
1384
+ var js, fjs = d.getElementsByTagName(s)[0];
1385
+ if (d.getElementById(id)) return;
1386
+ js = d.createElement(s); js.id = id;
1387
+ js.src = "//connect.facebook.net/"+lang+"/sdk.js#xfbml=1&version=v2.3&appId=113845018658519";
1388
+ fjs.parentNode.insertBefore(js, fjs);
1389
+ }
1390
+ (document, 'script', 'facebook-jssdk'));
1391
+ </script>
1392
+
1393
+ <?php
1394
+
1395
+ }
1396
+
1397
+ function yasr_fb_box ($position=FALSE) {
1398
+
1399
+ if ($position && $position == "bottom") {
1400
+
1401
+ $yasr_fb_class = "yasr-donatedivbottom";
1402
+
1403
+ }
1404
+
1405
+ else {
1406
+
1407
+ $yasr_fb_class = "yasr-donatedivdx";
1408
+
1409
+ }
1410
+
1411
+ ?>
1412
+
1413
+ <div class="<?php echo $yasr_fb_class; ?>" style="display:none">
1414
+
1415
+ <h2><?php _e('Keep in touch!', 'yasr'); ?></h2>
1416
+
1417
+ <div class="fb-page" data-href="https://www.facebook.com/yetanotherstarsrating" data-hide-cover="false" data-show-facepile="true" data-show-posts="false">
1418
+ <div class="fb-xfbml-parse-ignore">
1419
+ <blockquote cite="https://www.facebook.com/yetanotherstarsrating"><a href="https://www.facebook.com/yetanotherstarsrating">YASR - Yet Another Stars Rating</a></blockquote>
1420
+ </div>
1421
+ </div>
1422
+ </div>
1423
+
1424
+ <?php
1425
+
1426
+ }
1427
+
1428
 
1429
 
1430
  /*************************BEGIN IMPORT FUNCTIONS*******************************/
lib/yasr-shortcode-functions.php CHANGED
@@ -25,19 +25,24 @@ add_shortcode ('yasr_overall_rating', 'shortcode_overall_rating_callback');
25
 
26
  function shortcode_overall_rating_callback ($atts) {
27
 
28
- if (!$atts) {
29
- $size = 'large';
30
- }
31
-
32
- else {
33
- extract( shortcode_atts (
34
  array(
35
- 'size' => 'string',
 
36
  ), $atts )
37
  );
 
 
 
 
 
38
  }
39
 
40
- $overall_rating=yasr_get_overall_rating();
 
 
 
 
41
 
42
  if (!$overall_rating) {
43
  $overall_rating = "-1";
@@ -94,11 +99,31 @@ function shortcode_visitor_votes_callback ($atts) {
94
 
95
  $shortcode_html = NULL; //Avoid undefined variable outside is_singular && is_main_query
96
 
97
- $post_id = get_the_ID();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  $ajax_nonce_visitor = wp_create_nonce( "yasr_nonce_insert_visitor_rating" );
100
 
101
- $votes=yasr_get_visitor_votes();
102
 
103
  $medium_rating=0; //Avoid undefined variable
104
 
@@ -125,18 +150,6 @@ function shortcode_visitor_votes_callback ($atts) {
125
 
126
  $medium_rating=round($medium_rating, 1);
127
 
128
- if (!$atts) {
129
- $size = 'large';
130
- }
131
-
132
- else {
133
- extract( shortcode_atts (
134
- array(
135
- 'size' => 'string',
136
- ), $atts )
137
- );
138
- }
139
-
140
  $stars_attribute = yasr_stars_size($size);
141
 
142
  $yasr_cookiename = 'yasr_visitor_vote_' . $post_id;
@@ -379,9 +392,27 @@ function yasr_visitor_votes_readonly_callback ($atts) {
379
 
380
  $shortcode_html = NULL; //Avoid undefined variable outside is_singular && is_main_query
381
 
382
- $post_id = get_the_ID();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
 
384
- $votes=yasr_get_visitor_votes();
 
 
385
 
386
  $medium_rating=0; //Avoid undefined variable
387
 
@@ -404,18 +435,6 @@ function yasr_visitor_votes_readonly_callback ($atts) {
404
 
405
  $medium_rating=round($medium_rating, 1);
406
 
407
- if (!$atts) {
408
- $size = 'large';
409
- }
410
-
411
- else {
412
- extract( shortcode_atts (
413
- array(
414
- 'size' => 'string',
415
- ), $atts )
416
- );
417
- }
418
-
419
  $stars_attribute = yasr_stars_size($size);
420
 
421
  $shortcode_html = "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes_readonly\">";
@@ -481,10 +500,10 @@ function shortcode_multi_set_callback( $atts ) {
481
  }
482
 
483
  else {
484
- $set_name=$wpdb->get_results("SELECT field_name AS name, field_id AS id
485
  FROM " . YASR_MULTI_SET_FIELDS_TABLE . "
486
- WHERE parent_set_id=$setid
487
- ORDER BY field_id ASC");
488
 
489
  $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
490
 
@@ -542,7 +561,7 @@ function yasr_visitor_multiset_callback ( $atts ) {
542
 
543
  if (YASR_ALLOWED_USER === 'allow_anonymous') {
544
 
545
- $button = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id\" class=\"button button-primary\" value=\"Vote!\" />";
546
  $star_readonly = 'false';
547
  $span_message_content = "";
548
 
@@ -550,7 +569,7 @@ function yasr_visitor_multiset_callback ( $atts ) {
550
 
551
  elseif (YASR_ALLOWED_USER === 'logged_only') {
552
 
553
- $button = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id\" class=\"button button-primary\" value=\"Vote!\" />";
554
  $star_readonly = 'true';
555
  $span_message_content = __("You must sign to vote", "yasr");;
556
 
@@ -562,7 +581,7 @@ function yasr_visitor_multiset_callback ( $atts ) {
562
  //Is user is logged in
563
  else {
564
 
565
- $button = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id\" class=\"button button-primary\" value=\"Vote!\" />";
566
  $star_readonly = 'false';
567
  $span_message_content = "";
568
 
@@ -617,10 +636,10 @@ function yasr_visitor_multiset_callback ( $atts ) {
617
 
618
  else {
619
 
620
- $set_name=$wpdb->get_results("SELECT field_name AS name, field_id AS id
621
  FROM " . YASR_MULTI_SET_FIELDS_TABLE . "
622
- WHERE parent_set_id=$setid
623
- ORDER BY field_id ASC");
624
 
625
  $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
626
 
25
 
26
  function shortcode_overall_rating_callback ($atts) {
27
 
28
+ extract( shortcode_atts (
 
 
 
 
 
29
  array(
30
+ 'size' => 'large',
31
+ 'postid' => FALSE
32
  ), $atts )
33
  );
34
+
35
+ if(!$postid) {
36
+
37
+ $overall_rating=yasr_get_overall_rating();
38
+
39
  }
40
 
41
+ else {
42
+
43
+ $overall_rating=yasr_get_overall_rating($postid);
44
+
45
+ }
46
 
47
  if (!$overall_rating) {
48
  $overall_rating = "-1";
99
 
100
  $shortcode_html = NULL; //Avoid undefined variable outside is_singular && is_main_query
101
 
102
+ extract( shortcode_atts (
103
+ array(
104
+ 'size' => 'large',
105
+ 'postid' => FALSE
106
+ ), $atts )
107
+ );
108
+
109
+ //If it's not specified use get_the_id
110
+ if (!$postid) {
111
+
112
+ $post_id = get_the_ID();
113
+
114
+ }
115
+
116
+ else {
117
+
118
+ $post_id = $postid;
119
+
120
+ }
121
+
122
+
123
 
124
  $ajax_nonce_visitor = wp_create_nonce( "yasr_nonce_insert_visitor_rating" );
125
 
126
+ $votes=yasr_get_visitor_votes($post_id); //always reference it
127
 
128
  $medium_rating=0; //Avoid undefined variable
129
 
150
 
151
  $medium_rating=round($medium_rating, 1);
152
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  $stars_attribute = yasr_stars_size($size);
154
 
155
  $yasr_cookiename = 'yasr_visitor_vote_' . $post_id;
392
 
393
  $shortcode_html = NULL; //Avoid undefined variable outside is_singular && is_main_query
394
 
395
+ extract( shortcode_atts (
396
+ array(
397
+ 'size' => 'small',
398
+ 'postid' => FALSE
399
+ ), $atts )
400
+ );
401
+
402
+ //If it's not specified use get_the_id
403
+ if (!$postid) {
404
+
405
+ $post_id = get_the_ID();
406
+
407
+ }
408
+
409
+ else {
410
+
411
+ $post_id = $postid;
412
 
413
+ }
414
+
415
+ $votes=yasr_get_visitor_votes($post_id);
416
 
417
  $medium_rating=0; //Avoid undefined variable
418
 
435
 
436
  $medium_rating=round($medium_rating, 1);
437
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  $stars_attribute = yasr_stars_size($size);
439
 
440
  $shortcode_html = "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes_readonly\">";
500
  }
501
 
502
  else {
503
+ $set_name=$wpdb->get_results($wpdb->prepare("SELECT field_name AS name, field_id AS id
504
  FROM " . YASR_MULTI_SET_FIELDS_TABLE . "
505
+ WHERE parent_set_id=%d
506
+ ORDER BY field_id ASC", $setid));
507
 
508
  $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
509
 
561
 
562
  if (YASR_ALLOWED_USER === 'allow_anonymous') {
563
 
564
+ $button = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id\" class=\"button button-primary\" value=\"". __('Submit!', 'yasr') . " \" />";
565
  $star_readonly = 'false';
566
  $span_message_content = "";
567
 
569
 
570
  elseif (YASR_ALLOWED_USER === 'logged_only') {
571
 
572
+ $button = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id\" class=\"button button-primary\" value=\"". __('Submit!', 'yasr') . " \" />";
573
  $star_readonly = 'true';
574
  $span_message_content = __("You must sign to vote", "yasr");;
575
 
581
  //Is user is logged in
582
  else {
583
 
584
+ $button = "<input type=\"submit\" name=\"submit\" id=\"yasr-send-visitor-multiset-$post_id\" class=\"button button-primary\" value=\"" . __('Submit!', 'yasr') . " \" />";
585
  $star_readonly = 'false';
586
  $span_message_content = "";
587
 
636
 
637
  else {
638
 
639
+ $set_name=$wpdb->get_results($wpdb->prepare("SELECT field_name AS name, field_id AS id
640
  FROM " . YASR_MULTI_SET_FIELDS_TABLE . "
641
+ WHERE parent_set_id=%d
642
+ ORDER BY field_id ASC", $setid));
643
 
644
  $shortcode_html="<table class=\"yasr_table_multi_set_shortcode\">";
645
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
  Tested up to: 4.2.2
7
- Stable tag: 0.8.7
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
@@ -49,11 +49,12 @@ If with gd-star-rating you're using a different number of stars from the default
49
  * Brazilian Portuguese (Thanks to [Iuri](http://assistirfilmesonline.info) )
50
  * Russian (Thanks to Ron)
51
  * Spanish (Thanks to [Carlos](http://CGlevel.com) )
 
52
 
53
  Check [here](http://translate.yetanotherstarsrating.com/) to see if your translation is up to date
54
 
55
  In this video I'll show you the "Auto Insert" feature and manual placement of YASR basic shortcodes.
56
- [youtube https://www.youtube.com/watch?v=M47xsJMQJ1E]
57
 
58
  = Related Link =
59
  * News and doc at [Yasr Official Site](http://yetanotherstarsrating.com/)
@@ -122,6 +123,14 @@ Of course not: you can easily add it on the visual editor just by clicking on th
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
 
 
 
125
  = 0.8.7 =
126
  * Minor changes and bugfixes
127
 
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
  Tested up to: 4.2.2
7
+ Stable tag: 0.8.8
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
49
  * Brazilian Portuguese (Thanks to [Iuri](http://assistirfilmesonline.info) )
50
  * Russian (Thanks to Ron)
51
  * Spanish (Thanks to [Carlos](http://CGlevel.com) )
52
+ * Croatian (Thanks to Sanjin Barac)
53
 
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
 
124
  == Changelog ==
125
 
126
+ = 0.8.8 =
127
+ * NEW FEATURE: it's now possible to add the attribute postid on these shortcodes: yasr_overall_rating, yasr_visitor_votes, yasr_visitor_votes_readonly. It is only necessary when you wish to show another post/page's votes
128
+ * TWEAKED: Added facebook box in the settings
129
+ * TWEAKED: storage of the ip adress
130
+ * TWEAKED: Added Croatian language
131
+ * FIXED: support for rtl
132
+ * Minor bugfixes
133
+
134
  = 0.8.7 =
135
  * Minor changes and bugfixes
136
 
yasr-settings-page.php CHANGED
@@ -26,6 +26,8 @@ if ( !current_user_can( 'manage_options' ) ) {
26
 
27
  $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset tab
28
 
 
 
29
  ?>
30
 
31
  <div class="wrap">
@@ -82,23 +84,29 @@ $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset ta
82
 
83
 
84
 
85
- <?php
86
 
87
  if ($active_tab == 'general_settings' || $active_tab != 'manage_multi' && $active_tab != 'style_options' && $active_tab != 'go_pro') {
88
 
89
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
- <div class="yasr-settingsdiv">
92
- <form action="options.php" method="post" id="yasr_settings_form">
93
- <?php
94
- settings_fields( 'yasr_general_options_group' );
95
- do_settings_sections('yasr_general_settings_tab' );
96
- submit_button( __('Save') );
97
- ?>
98
- </form>
99
- </div>
100
 
101
- <?php yasr_donate_dx(); ?>
 
 
102
 
103
  <div class="yasr-space-settings-div">
104
  </div>
@@ -240,7 +248,6 @@ $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset ta
240
 
241
  </div> <!--End yasr-multi-set-right-->
242
 
243
-
244
  <div class="yasr-space-settings-div">
245
  </div>
246
 
@@ -261,19 +268,14 @@ $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset ta
261
 
262
  </div>
263
 
264
- <div class="yasr-donatedivdx" style="display:none">
265
- <h3><?php _e('Donations', 'yasr'); ?></h3>
266
 
267
- <?php _e('If you have found this plugin useful, please consider making a donation to help support future development. Your support will be much appreciated. ', 'yasr'); ?>
268
- <br />
269
- <?php _e('Thank you!', 'yasr'); ?>
270
- <br />
271
-
272
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AXE284FYMNWDC">
273
- <?php echo("<img src=" . YASR_IMG_DIR . "/paypal.png>"); ?>
274
- </a>
275
 
276
- </div>
 
 
 
 
277
 
278
  <div class="yasr-space-settings-div">
279
  </div>
@@ -298,7 +300,13 @@ $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset ta
298
  </div>
299
 
300
 
301
- <?php yasr_donate_dx(); ?>
 
 
 
 
 
 
302
 
303
  <div class="yasr-space-settings-div">
304
  </div>
@@ -311,13 +319,23 @@ $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset ta
311
 
312
  if ($active_tab == 'go_pro') {
313
 
314
- yasr_go_pro();
 
 
 
 
315
 
316
  }
317
 
318
  ?>
319
 
320
- <?php yasr_donate_bottom (); ?>
 
 
 
 
 
 
321
 
322
  <!--End div wrap-->
323
  </div>
26
 
27
  $n_multi_set = NULL; //Evoid undefined variable when printed outside multiset tab
28
 
29
+ yasr_include_fb_sdk ();
30
+
31
  ?>
32
 
33
  <div class="wrap">
84
 
85
 
86
 
87
+ <?php
88
 
89
  if ($active_tab == 'general_settings' || $active_tab != 'manage_multi' && $active_tab != 'style_options' && $active_tab != 'go_pro') {
90
 
91
+ ?>
92
+
93
+ <div class="yasr-settingsdiv">
94
+ <form action="options.php" method="post" id="yasr_settings_form">
95
+ <?php
96
+ settings_fields( 'yasr_general_options_group' );
97
+ do_settings_sections('yasr_general_settings_tab' );
98
+ submit_button( __('Save') );
99
+ ?>
100
+ </form>
101
+ </div>
102
+
103
+ <?php
104
 
105
+ yasr_donate_dx ();
 
 
 
 
 
 
 
 
106
 
107
+ yasr_fb_box ();
108
+
109
+ ?>
110
 
111
  <div class="yasr-space-settings-div">
112
  </div>
248
 
249
  </div> <!--End yasr-multi-set-right-->
250
 
 
251
  <div class="yasr-space-settings-div">
252
  </div>
253
 
268
 
269
  </div>
270
 
 
 
271
 
272
+ <?php
 
 
 
 
 
 
 
273
 
274
+ yasr_donate_dx ();
275
+
276
+ yasr_fb_box ();
277
+
278
+ ?>
279
 
280
  <div class="yasr-space-settings-div">
281
  </div>
300
  </div>
301
 
302
 
303
+ <?php
304
+
305
+ yasr_donate_dx ();
306
+
307
+ yasr_fb_box ();
308
+
309
+ ?>
310
 
311
  <div class="yasr-space-settings-div">
312
  </div>
319
 
320
  if ($active_tab == 'go_pro') {
321
 
322
+ yasr_go_pro();
323
+
324
+ yasr_donate_dx ();
325
+
326
+ yasr_fb_box ();
327
 
328
  }
329
 
330
  ?>
331
 
332
+ <?php
333
+
334
+ yasr_donate_bottom ();
335
+
336
+ yasr_fb_box("bottom");
337
+
338
+ ?>
339
 
340
  <!--End div wrap-->
341
  </div>
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.8.7
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * License: GPL2
@@ -11,7 +11,7 @@
11
 
12
  /*
13
 
14
- Copyright 2014 Dario Curvino (email : d.curvino@tiscali.it)
15
 
16
  This program is free software: you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
@@ -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.8.7');
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.8.8
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * License: GPL2
11
 
12
  /*
13
 
14
+ Copyright 2015 Dario Curvino (email : d.curvino@tiscali.it)
15
 
16
  This program is free software: you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
28
  */
29
 
30
 
31
+ define('YASR_VERSION_NUM', '0.8.8');
32
 
33
  //Plugin relative path
34
  define( "YASR_RELATIVE_PATH", dirname(__FILE__) );