Version Description
- Added: 3 new templates. (Rating Face, Rating Boy, Rating Girl) [PRO]
- Tweak: Added date range filter for top likers widget. [PRO]
- Tweak: Date range support in get counter value function.
- Tweak: Some improvements in button class names.
- Tweak: Added some improvements statistics panel.
- Fixed: Fix an issue with template callback.
Download this release
Release Info
Developer | alimir |
Plugin | WP ULike |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.4
- admin/assets/css/admin.css +20 -0
- admin/assets/css/plugins.css +1081 -277
- admin/assets/js/plugins.js +1 -1
- admin/assets/js/scripts.js +1 -1
- admin/classes/class-wp-ulike-stats.php +3 -48
- admin/classes/class-wp-ulike-widget.php +6 -7
- admin/includes/templates/go-pro.php +16 -26
- assets/css/wp-ulike.css +6 -6
- assets/css/wp-ulike.min.css +1 -1
- assets/js/wp-ulike.js +4 -6
- assets/js/wp-ulike.min.js +1 -1
- inc/classes/class-wp-ulike.php +10 -20
- inc/general-functions.php +71 -65
- readme.txt +9 -1
- wp-ulike.php +4 -4
admin/assets/css/admin.css
CHANGED
@@ -483,3 +483,23 @@ tr.hide-label td {
|
|
483 |
margin-left: 25px;
|
484 |
margin-right: 0;
|
485 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
margin-left: 25px;
|
484 |
margin-right: 0;
|
485 |
}
|
486 |
+
.rtl .wp-ulike-pro-stats-banner .wp-ulike-inner:before {
|
487 |
+
left: 5%;
|
488 |
+
right: 40%;
|
489 |
+
background-position: bottom left;
|
490 |
+
}
|
491 |
+
.rtl .wp-ulike-go-pro-page h2 {
|
492 |
+
text-align: right;
|
493 |
+
}
|
494 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-btn {
|
495 |
+
margin-left: 15px;
|
496 |
+
margin-right: 0;
|
497 |
+
}
|
498 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > th,
|
499 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > td,
|
500 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr > th,
|
501 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr > td,
|
502 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr > th,
|
503 |
+
.rtl .wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr > td {
|
504 |
+
text-align: right;
|
505 |
+
}
|
admin/assets/css/plugins.css
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
/*
|
2 |
-
/------------------------------------------\
|
|
|
3 |
| | / \ | | ___ \ | |(_)| | / /
|
4 |
| | / /\ \ | | |_/ / _| || || |/ / ___
|
5 |
| | / / \ \ | | __/ | | | || || | / _ \
|
@@ -19,317 +20,1120 @@ https://github.com/bgrins/spectrum
|
|
19 |
Author: Brian Grinstead
|
20 |
License: MIT
|
21 |
***/
|
22 |
-
.sp-container {
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
/* Fix for * { box-sizing: border-box; } */
|
27 |
-
.sp-container,
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
/* http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio */
|
30 |
-
.sp-top {
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
.sp-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
.sp-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
.sp-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
/* Don't allow text selection */
|
61 |
-
.sp-container, .sp-replacer, .sp-preview, .sp-dragger, .sp-slider, .sp-alpha, .sp-clear, .sp-alpha-handle, .sp-container.sp-dragging .sp-input, .sp-container button {
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
-
.sp-container.sp-input-disabled .sp-input-container {
|
|
|
|
|
64 |
|
65 |
-
.sp-container.sp-buttons-disabled .sp-button-container {
|
|
|
|
|
66 |
|
67 |
-
.sp-container.sp-palette-buttons-disabled .sp-palette-button-container {
|
|
|
|
|
68 |
|
69 |
-
.sp-palette-only .sp-picker-container {
|
|
|
|
|
70 |
|
71 |
-
.sp-palette-disabled .sp-palette-container {
|
|
|
|
|
72 |
|
73 |
-
.sp-initial-disabled .sp-initial {
|
|
|
|
|
74 |
|
75 |
/* Gradients for hue, saturation and value instead of images. Not pretty... but it works */
|
76 |
-
.sp-sat {
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
.sp-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
/* Clearfix hack */
|
98 |
-
.sp-cf:before, .sp-cf:after {
|
|
|
|
|
|
|
99 |
|
100 |
-
.sp-cf:after {
|
|
|
|
|
101 |
|
102 |
-
.sp-cf {
|
|
|
|
|
103 |
|
104 |
/* Mobile devices, make hue slider bigger so it is easier to slide */
|
105 |
-
@media (max-device-width: 480px) {
|
106 |
-
.sp-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
.sp-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
/*
|
113 |
Theme authors:
|
114 |
Here are the basic themeable display options (colors, fonts, global widths).
|
115 |
See http://bgrins.github.io/spectrum/themes/ for instructions.
|
116 |
*/
|
117 |
-
.sp-container {
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
|
125 |
/* Input */
|
126 |
-
.sp-input-container {
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
.sp-input
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
.sp-
|
137 |
-
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
|
140 |
/* Palettes */
|
141 |
-
.sp-palette-container {
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
.sp-palette .sp-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
.sp-thumb-el {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
/* Initial */
|
152 |
-
.sp-initial {
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
/* Buttons */
|
159 |
-
.sp-palette-button-container,
|
|
|
|
|
|
|
160 |
|
161 |
/* Replacer (the little preview div that shows up instead of the <input>) */
|
162 |
-
.sp-replacer {
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
.sp-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
/* Buttons: http://hellohappy.org/css3-buttons/ */
|
179 |
-
.sp-container button {
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
.
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
.
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
.
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
.
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
.
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
.
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
.wp-ulike-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
.wp-ulike-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
.wp-ulike-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
.wp-ulike-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
.wp-ulike-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
.wp-ulike-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
.wp-ulike-
|
325 |
-
|
326 |
-
|
327 |
-
.wp-ulike-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
.
|
335 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*
|
2 |
+
/------------------------------------------\
|
3 |
+
_ __ _ _____ _ _ _ _
|
4 |
| | / \ | | ___ \ | |(_)| | / /
|
5 |
| | / /\ \ | | |_/ / _| || || |/ / ___
|
6 |
| | / / \ \ | | __/ | | | || || | / _ \
|
20 |
Author: Brian Grinstead
|
21 |
License: MIT
|
22 |
***/
|
23 |
+
.sp-container {
|
24 |
+
position: absolute;
|
25 |
+
top: 0;
|
26 |
+
left: 0;
|
27 |
+
display: inline-block;
|
28 |
+
*display: inline;
|
29 |
+
*zoom: 1;
|
30 |
+
/* https://github.com/bgrins/spectrum/issues/40 */
|
31 |
+
z-index: 9999994;
|
32 |
+
overflow: hidden;
|
33 |
+
}
|
34 |
+
|
35 |
+
.sp-container.sp-flat {
|
36 |
+
position: relative;
|
37 |
+
}
|
38 |
|
39 |
/* Fix for * { box-sizing: border-box; } */
|
40 |
+
.sp-container,
|
41 |
+
.sp-container * {
|
42 |
+
-webkit-box-sizing: content-box;
|
43 |
+
-moz-box-sizing: content-box;
|
44 |
+
box-sizing: content-box;
|
45 |
+
}
|
46 |
|
47 |
/* http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio */
|
48 |
+
.sp-top {
|
49 |
+
position: relative;
|
50 |
+
width: 100%;
|
51 |
+
display: inline-block;
|
52 |
+
}
|
53 |
+
|
54 |
+
.sp-top-inner {
|
55 |
+
position: absolute;
|
56 |
+
top: 0;
|
57 |
+
left: 0;
|
58 |
+
bottom: 0;
|
59 |
+
right: 0;
|
60 |
+
}
|
61 |
+
|
62 |
+
.sp-color {
|
63 |
+
position: absolute;
|
64 |
+
top: 0;
|
65 |
+
left: 0;
|
66 |
+
bottom: 0;
|
67 |
+
right: 20%;
|
68 |
+
}
|
69 |
+
|
70 |
+
.sp-hue {
|
71 |
+
position: absolute;
|
72 |
+
top: 0;
|
73 |
+
right: 0;
|
74 |
+
bottom: 0;
|
75 |
+
left: 84%;
|
76 |
+
height: 100%;
|
77 |
+
}
|
78 |
+
|
79 |
+
.sp-clear-enabled .sp-hue {
|
80 |
+
top: 33px;
|
81 |
+
height: 77.5%;
|
82 |
+
}
|
83 |
+
|
84 |
+
.sp-fill {
|
85 |
+
padding-top: 80%;
|
86 |
+
}
|
87 |
+
|
88 |
+
.sp-sat, .sp-val {
|
89 |
+
position: absolute;
|
90 |
+
top: 0;
|
91 |
+
left: 0;
|
92 |
+
right: 0;
|
93 |
+
bottom: 0;
|
94 |
+
}
|
95 |
+
|
96 |
+
.sp-alpha-enabled .sp-top {
|
97 |
+
margin-bottom: 18px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.sp-alpha-enabled .sp-alpha {
|
101 |
+
display: block;
|
102 |
+
}
|
103 |
+
|
104 |
+
.sp-alpha-handle {
|
105 |
+
position: absolute;
|
106 |
+
top: -4px;
|
107 |
+
bottom: -4px;
|
108 |
+
width: 6px;
|
109 |
+
left: 50%;
|
110 |
+
cursor: pointer;
|
111 |
+
border: 1px solid black;
|
112 |
+
background: white;
|
113 |
+
opacity: .8;
|
114 |
+
}
|
115 |
+
|
116 |
+
.sp-alpha {
|
117 |
+
display: none;
|
118 |
+
position: absolute;
|
119 |
+
bottom: -14px;
|
120 |
+
right: 0;
|
121 |
+
left: 0;
|
122 |
+
height: 8px;
|
123 |
+
}
|
124 |
+
|
125 |
+
.sp-alpha-inner {
|
126 |
+
border: solid 1px #333;
|
127 |
+
}
|
128 |
+
|
129 |
+
.sp-clear {
|
130 |
+
display: none;
|
131 |
+
}
|
132 |
+
|
133 |
+
.sp-clear.sp-clear-display {
|
134 |
+
background-position: center;
|
135 |
+
}
|
136 |
+
|
137 |
+
.sp-clear-enabled .sp-clear {
|
138 |
+
display: block;
|
139 |
+
position: absolute;
|
140 |
+
top: 0px;
|
141 |
+
right: 0;
|
142 |
+
bottom: 0;
|
143 |
+
left: 84%;
|
144 |
+
height: 28px;
|
145 |
+
}
|
146 |
|
147 |
/* Don't allow text selection */
|
148 |
+
.sp-container, .sp-replacer, .sp-preview, .sp-dragger, .sp-slider, .sp-alpha, .sp-clear, .sp-alpha-handle, .sp-container.sp-dragging .sp-input, .sp-container button {
|
149 |
+
-webkit-user-select: none;
|
150 |
+
-moz-user-select: -moz-none;
|
151 |
+
-o-user-select: none;
|
152 |
+
user-select: none;
|
153 |
+
}
|
154 |
|
155 |
+
.sp-container.sp-input-disabled .sp-input-container {
|
156 |
+
display: none;
|
157 |
+
}
|
158 |
|
159 |
+
.sp-container.sp-buttons-disabled .sp-button-container {
|
160 |
+
display: none;
|
161 |
+
}
|
162 |
|
163 |
+
.sp-container.sp-palette-buttons-disabled .sp-palette-button-container {
|
164 |
+
display: none;
|
165 |
+
}
|
166 |
|
167 |
+
.sp-palette-only .sp-picker-container {
|
168 |
+
display: none;
|
169 |
+
}
|
170 |
|
171 |
+
.sp-palette-disabled .sp-palette-container {
|
172 |
+
display: none;
|
173 |
+
}
|
174 |
|
175 |
+
.sp-initial-disabled .sp-initial {
|
176 |
+
display: none;
|
177 |
+
}
|
178 |
|
179 |
/* Gradients for hue, saturation and value instead of images. Not pretty... but it works */
|
180 |
+
.sp-sat {
|
181 |
+
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0)));
|
182 |
+
background-image: -webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0));
|
183 |
+
background-image: -moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
|
184 |
+
background-image: -o-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
|
185 |
+
background-image: -ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
|
186 |
+
background-image: linear-gradient(to right, #ffffff, rgba(204, 154, 129, 0));
|
187 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";
|
188 |
+
filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81');
|
189 |
+
}
|
190 |
+
|
191 |
+
.sp-val {
|
192 |
+
background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0)));
|
193 |
+
background-image: -webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0));
|
194 |
+
background-image: -moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
|
195 |
+
background-image: -o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
|
196 |
+
background-image: -ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
|
197 |
+
background-image: linear-gradient(to top, #000000, rgba(204, 154, 129, 0));
|
198 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";
|
199 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000');
|
200 |
+
}
|
201 |
+
|
202 |
+
.sp-hue {
|
203 |
+
background: -moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
|
204 |
+
background: -ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
|
205 |
+
background: -o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
|
206 |
+
background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));
|
207 |
+
background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
|
208 |
+
background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
|
209 |
+
}
|
210 |
+
|
211 |
+
/* IE filters do not support multiple color stops.
|
212 |
+
Generate 6 divs, line them up, and do two color gradients for each.
|
213 |
+
Yes, really.
|
214 |
+
*/
|
215 |
+
.sp-1 {
|
216 |
+
height: 17%;
|
217 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00');
|
218 |
+
}
|
219 |
+
|
220 |
+
.sp-2 {
|
221 |
+
height: 16%;
|
222 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00');
|
223 |
+
}
|
224 |
+
|
225 |
+
.sp-3 {
|
226 |
+
height: 17%;
|
227 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff');
|
228 |
+
}
|
229 |
+
|
230 |
+
.sp-4 {
|
231 |
+
height: 17%;
|
232 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff');
|
233 |
+
}
|
234 |
+
|
235 |
+
.sp-5 {
|
236 |
+
height: 16%;
|
237 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff');
|
238 |
+
}
|
239 |
+
|
240 |
+
.sp-6 {
|
241 |
+
height: 17%;
|
242 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000');
|
243 |
+
}
|
244 |
+
|
245 |
+
.sp-hidden {
|
246 |
+
display: none !important;
|
247 |
+
}
|
248 |
|
249 |
/* Clearfix hack */
|
250 |
+
.sp-cf:before, .sp-cf:after {
|
251 |
+
content: "";
|
252 |
+
display: table;
|
253 |
+
}
|
254 |
|
255 |
+
.sp-cf:after {
|
256 |
+
clear: both;
|
257 |
+
}
|
258 |
|
259 |
+
.sp-cf {
|
260 |
+
*zoom: 1;
|
261 |
+
}
|
262 |
|
263 |
/* Mobile devices, make hue slider bigger so it is easier to slide */
|
264 |
+
@media (max-device-width: 480px) {
|
265 |
+
.sp-color {
|
266 |
+
right: 40%;
|
267 |
+
}
|
268 |
+
|
269 |
+
.sp-hue {
|
270 |
+
left: 63%;
|
271 |
+
}
|
272 |
+
|
273 |
+
.sp-fill {
|
274 |
+
padding-top: 60%;
|
275 |
+
}
|
276 |
+
}
|
277 |
+
.sp-dragger {
|
278 |
+
border-radius: 5px;
|
279 |
+
height: 5px;
|
280 |
+
width: 5px;
|
281 |
+
border: 1px solid #fff;
|
282 |
+
background: #000;
|
283 |
+
cursor: pointer;
|
284 |
+
position: absolute;
|
285 |
+
top: 0;
|
286 |
+
left: 0;
|
287 |
+
}
|
288 |
+
|
289 |
+
.sp-slider {
|
290 |
+
position: absolute;
|
291 |
+
top: 0;
|
292 |
+
cursor: pointer;
|
293 |
+
height: 3px;
|
294 |
+
left: -1px;
|
295 |
+
right: -1px;
|
296 |
+
border: 1px solid #000;
|
297 |
+
background: white;
|
298 |
+
opacity: .8;
|
299 |
+
}
|
300 |
|
301 |
/*
|
302 |
Theme authors:
|
303 |
Here are the basic themeable display options (colors, fonts, global widths).
|
304 |
See http://bgrins.github.io/spectrum/themes/ for instructions.
|
305 |
*/
|
306 |
+
.sp-container {
|
307 |
+
border-radius: 0;
|
308 |
+
background-color: #ECECEC;
|
309 |
+
border: solid 1px #f0c49B;
|
310 |
+
padding: 0;
|
311 |
+
}
|
312 |
+
|
313 |
+
.sp-container, .sp-container button, .sp-container input, .sp-color, .sp-hue, .sp-clear {
|
314 |
+
font: normal 12px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
315 |
+
-webkit-box-sizing: border-box;
|
316 |
+
-moz-box-sizing: border-box;
|
317 |
+
-ms-box-sizing: border-box;
|
318 |
+
box-sizing: border-box;
|
319 |
+
}
|
320 |
+
|
321 |
+
.sp-top {
|
322 |
+
margin-bottom: 3px;
|
323 |
+
}
|
324 |
+
|
325 |
+
.sp-color, .sp-hue, .sp-clear {
|
326 |
+
border: solid 1px #666;
|
327 |
+
}
|
328 |
|
329 |
/* Input */
|
330 |
+
.sp-input-container {
|
331 |
+
float: right;
|
332 |
+
width: 100px;
|
333 |
+
margin-bottom: 4px;
|
334 |
+
}
|
335 |
+
|
336 |
+
.sp-initial-disabled .sp-input-container {
|
337 |
+
width: 100%;
|
338 |
+
}
|
339 |
+
|
340 |
+
.sp-input {
|
341 |
+
font-size: 12px !important;
|
342 |
+
border: 1px inset;
|
343 |
+
padding: 4px 5px;
|
344 |
+
margin: 0;
|
345 |
+
width: 100%;
|
346 |
+
background: transparent;
|
347 |
+
border-radius: 3px;
|
348 |
+
color: #222;
|
349 |
+
}
|
350 |
+
|
351 |
+
.sp-input:focus {
|
352 |
+
border: 1px solid orange;
|
353 |
+
}
|
354 |
+
|
355 |
+
.sp-input.sp-validation-error {
|
356 |
+
border: 1px solid red;
|
357 |
+
background: #fdd;
|
358 |
+
}
|
359 |
+
|
360 |
+
.sp-picker-container, .sp-palette-container {
|
361 |
+
float: left;
|
362 |
+
position: relative;
|
363 |
+
padding: 10px;
|
364 |
+
padding-bottom: 300px;
|
365 |
+
margin-bottom: -290px;
|
366 |
+
}
|
367 |
+
|
368 |
+
.sp-picker-container {
|
369 |
+
width: 172px;
|
370 |
+
border-left: solid 1px #fff;
|
371 |
+
}
|
372 |
|
373 |
/* Palettes */
|
374 |
+
.sp-palette-container {
|
375 |
+
border-right: solid 1px #ccc;
|
376 |
+
}
|
377 |
+
|
378 |
+
.sp-palette-only .sp-palette-container {
|
379 |
+
border: 0;
|
380 |
+
}
|
381 |
+
|
382 |
+
.sp-palette .sp-thumb-el {
|
383 |
+
display: block;
|
384 |
+
position: relative;
|
385 |
+
float: left;
|
386 |
+
width: 24px;
|
387 |
+
height: 15px;
|
388 |
+
margin: 3px;
|
389 |
+
cursor: pointer;
|
390 |
+
border: solid 2px transparent;
|
391 |
+
}
|
392 |
+
|
393 |
+
.sp-palette .sp-thumb-el:hover, .sp-palette .sp-thumb-el.sp-thumb-active {
|
394 |
+
border-color: orange;
|
395 |
+
}
|
396 |
+
|
397 |
+
.sp-thumb-el {
|
398 |
+
position: relative;
|
399 |
+
}
|
400 |
|
401 |
/* Initial */
|
402 |
+
.sp-initial {
|
403 |
+
float: left;
|
404 |
+
border: solid 1px #333;
|
405 |
+
}
|
406 |
+
|
407 |
+
.sp-initial span {
|
408 |
+
width: 30px;
|
409 |
+
height: 25px;
|
410 |
+
border: none;
|
411 |
+
display: block;
|
412 |
+
float: left;
|
413 |
+
margin: 0;
|
414 |
+
}
|
415 |
+
|
416 |
+
.sp-initial .sp-clear-display {
|
417 |
+
background-position: center;
|
418 |
+
}
|
419 |
|
420 |
/* Buttons */
|
421 |
+
.sp-palette-button-container,
|
422 |
+
.sp-button-container {
|
423 |
+
float: right;
|
424 |
+
}
|
425 |
|
426 |
/* Replacer (the little preview div that shows up instead of the <input>) */
|
427 |
+
.sp-replacer {
|
428 |
+
margin: 0;
|
429 |
+
overflow: hidden;
|
430 |
+
cursor: pointer;
|
431 |
+
padding: 4px;
|
432 |
+
display: inline-block;
|
433 |
+
*zoom: 1;
|
434 |
+
*display: inline;
|
435 |
+
border: solid 1px #91765d;
|
436 |
+
background: #eee;
|
437 |
+
color: #333;
|
438 |
+
vertical-align: middle;
|
439 |
+
}
|
440 |
+
|
441 |
+
.sp-replacer:hover, .sp-replacer.sp-active {
|
442 |
+
border-color: #F0C49B;
|
443 |
+
color: #111;
|
444 |
+
}
|
445 |
+
|
446 |
+
.sp-replacer.sp-disabled {
|
447 |
+
cursor: default;
|
448 |
+
border-color: silver;
|
449 |
+
color: silver;
|
450 |
+
}
|
451 |
+
|
452 |
+
.sp-dd {
|
453 |
+
padding: 2px 0;
|
454 |
+
height: 16px;
|
455 |
+
line-height: 16px;
|
456 |
+
float: left;
|
457 |
+
font-size: 10px;
|
458 |
+
}
|
459 |
+
|
460 |
+
.sp-preview {
|
461 |
+
position: relative;
|
462 |
+
width: 25px;
|
463 |
+
height: 20px;
|
464 |
+
border: solid 1px #222;
|
465 |
+
margin-right: 5px;
|
466 |
+
float: left;
|
467 |
+
z-index: 0;
|
468 |
+
}
|
469 |
+
|
470 |
+
.sp-palette {
|
471 |
+
*width: 220px;
|
472 |
+
max-width: 220px;
|
473 |
+
}
|
474 |
+
|
475 |
+
.sp-palette .sp-thumb-el {
|
476 |
+
width: 16px;
|
477 |
+
height: 16px;
|
478 |
+
margin: 2px 1px;
|
479 |
+
border: solid 1px #d0d0d0;
|
480 |
+
}
|
481 |
+
|
482 |
+
.sp-container {
|
483 |
+
padding-bottom: 0;
|
484 |
+
}
|
485 |
|
486 |
/* Buttons: http://hellohappy.org/css3-buttons/ */
|
487 |
+
.sp-container button {
|
488 |
+
background-color: #eeeeee;
|
489 |
+
background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
|
490 |
+
background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
|
491 |
+
background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
|
492 |
+
background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
|
493 |
+
background-image: linear-gradient(to bottom, #eeeeee, #cccccc);
|
494 |
+
border: 1px solid #ccc;
|
495 |
+
border-bottom: 1px solid #bbb;
|
496 |
+
border-radius: 3px;
|
497 |
+
color: #333;
|
498 |
+
font-size: 14px;
|
499 |
+
line-height: 1;
|
500 |
+
padding: 5px 4px;
|
501 |
+
text-align: center;
|
502 |
+
text-shadow: 0 1px 0 #eee;
|
503 |
+
vertical-align: middle;
|
504 |
+
}
|
505 |
+
|
506 |
+
.sp-container button:hover {
|
507 |
+
background-color: #dddddd;
|
508 |
+
background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
|
509 |
+
background-image: -moz-linear-gradient(top, #dddddd, #bbbbbb);
|
510 |
+
background-image: -ms-linear-gradient(top, #dddddd, #bbbbbb);
|
511 |
+
background-image: -o-linear-gradient(top, #dddddd, #bbbbbb);
|
512 |
+
background-image: linear-gradient(to bottom, #dddddd, #bbbbbb);
|
513 |
+
border: 1px solid #bbb;
|
514 |
+
border-bottom: 1px solid #999;
|
515 |
+
cursor: pointer;
|
516 |
+
text-shadow: 0 1px 0 #ddd;
|
517 |
+
}
|
518 |
+
|
519 |
+
.sp-container button:active {
|
520 |
+
border: 1px solid #aaa;
|
521 |
+
border-bottom: 1px solid #888;
|
522 |
+
-webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
|
523 |
+
-moz-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
|
524 |
+
-ms-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
|
525 |
+
-o-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
|
526 |
+
box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
|
527 |
+
}
|
528 |
+
|
529 |
+
.sp-cancel {
|
530 |
+
font-size: 11px;
|
531 |
+
color: #d93f3f !important;
|
532 |
+
margin: 0;
|
533 |
+
padding: 2px;
|
534 |
+
margin-right: 5px;
|
535 |
+
vertical-align: middle;
|
536 |
+
text-decoration: none;
|
537 |
+
}
|
538 |
+
|
539 |
+
.sp-cancel:hover {
|
540 |
+
color: #d93f3f !important;
|
541 |
+
text-decoration: underline;
|
542 |
+
}
|
543 |
+
|
544 |
+
.sp-palette span:hover, .sp-palette span.sp-thumb-active {
|
545 |
+
border-color: #000;
|
546 |
+
}
|
547 |
+
|
548 |
+
.sp-preview, .sp-alpha, .sp-thumb-el {
|
549 |
+
position: relative;
|
550 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
551 |
+
}
|
552 |
+
|
553 |
+
.sp-preview-inner, .sp-alpha-inner, .sp-thumb-inner {
|
554 |
+
display: block;
|
555 |
+
position: absolute;
|
556 |
+
top: 0;
|
557 |
+
left: 0;
|
558 |
+
bottom: 0;
|
559 |
+
right: 0;
|
560 |
+
}
|
561 |
+
|
562 |
+
.sp-palette .sp-thumb-inner {
|
563 |
+
background-position: 50% 50%;
|
564 |
+
background-repeat: no-repeat;
|
565 |
+
}
|
566 |
+
|
567 |
+
.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner {
|
568 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=);
|
569 |
+
}
|
570 |
+
|
571 |
+
.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner {
|
572 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=);
|
573 |
+
}
|
574 |
+
|
575 |
+
.sp-clear-display {
|
576 |
+
background-repeat: no-repeat;
|
577 |
+
background-position: center;
|
578 |
+
background-image: url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==);
|
579 |
+
}
|
580 |
+
|
581 |
+
/**
|
582 |
+
* Visual Select
|
583 |
+
*/
|
584 |
+
.wp-ulike-visual-select {
|
585 |
+
height: auto;
|
586 |
+
display: inline-block;
|
587 |
+
width: 100%;
|
588 |
+
max-width: 900px;
|
589 |
+
}
|
590 |
+
.wp-ulike-visual-select .radio-img-item {
|
591 |
+
display: inline-block;
|
592 |
+
margin-right: 10px;
|
593 |
+
margin-bottom: 10px;
|
594 |
+
border: 3px solid #d8d8d8;
|
595 |
+
padding: 4px 15px;
|
596 |
+
width: 110px;
|
597 |
+
height: 60px;
|
598 |
+
cursor: pointer;
|
599 |
+
}
|
600 |
+
.wp-ulike-visual-select .radio-img-item.item-checked {
|
601 |
+
-webkit-filter: brightness(40%) sepia(100%) hue-rotate(170deg) saturate(250%);
|
602 |
+
filter: brightness(40%) sepia(100%) hue-rotate(170deg) saturate(250%);
|
603 |
+
}
|
604 |
+
.wp-ulike-visual-select .radio-img-item img {
|
605 |
+
display: block;
|
606 |
+
clear: both;
|
607 |
+
width: 100%;
|
608 |
+
height: 100%;
|
609 |
+
}
|
610 |
+
|
611 |
+
.wp-ulike-container {
|
612 |
+
width: 100%;
|
613 |
+
margin-left: auto;
|
614 |
+
margin-right: auto;
|
615 |
+
}
|
616 |
+
.wp-ulike-container .notice {
|
617 |
+
display: none;
|
618 |
+
}
|
619 |
+
|
620 |
+
.wp-ulike-row {
|
621 |
+
position: relative;
|
622 |
+
width: 100%;
|
623 |
+
}
|
624 |
+
|
625 |
+
.wp-ulike-flex {
|
626 |
+
display: flex;
|
627 |
+
align-items: center;
|
628 |
+
flex-wrap: wrap;
|
629 |
+
justify-content: center;
|
630 |
+
padding: 10px 0;
|
631 |
+
}
|
632 |
+
.wp-ulike-flex.wp-ulike-flex-end {
|
633 |
+
justify-content: flex-end;
|
634 |
+
}
|
635 |
+
.wp-ulike-flex.wp-ulike-flex-start {
|
636 |
+
justify-content: flex-start;
|
637 |
+
}
|
638 |
+
.wp-ulike-flex.wp-ulike-flex-space-between {
|
639 |
+
justify-content: space-between;
|
640 |
+
}
|
641 |
+
|
642 |
+
.wp-ulike-row [class^="col"] {
|
643 |
+
float: left;
|
644 |
+
margin: 2%;
|
645 |
+
}
|
646 |
+
|
647 |
+
.rtl .wp-ulike-row [class^="col"] {
|
648 |
+
float: right;
|
649 |
+
}
|
650 |
+
|
651 |
+
.wp-ulike-row::after {
|
652 |
+
content: "";
|
653 |
+
display: table;
|
654 |
+
clear: both;
|
655 |
+
}
|
656 |
+
|
657 |
+
.wp-ulike-row .col-1,
|
658 |
+
.wp-ulike-row .col-2,
|
659 |
+
.wp-ulike-row .col-3,
|
660 |
+
.wp-ulike-row .col-4,
|
661 |
+
.wp-ulike-row .col-5,
|
662 |
+
.wp-ulike-row .col-6,
|
663 |
+
.wp-ulike-row .col-7,
|
664 |
+
.wp-ulike-row .col-8,
|
665 |
+
.wp-ulike-row .col-9,
|
666 |
+
.wp-ulike-row .col-10,
|
667 |
+
.wp-ulike-row .col-11,
|
668 |
+
.wp-ulike-row .col-12 {
|
669 |
+
width: 96%;
|
670 |
+
}
|
671 |
+
.wp-ulike-row .col-1-sm {
|
672 |
+
width: 4.33333%;
|
673 |
+
}
|
674 |
+
.wp-ulike-row .col-2-sm {
|
675 |
+
width: 12.66667%;
|
676 |
+
}
|
677 |
+
.wp-ulike-row .col-3-sm {
|
678 |
+
width: 21%;
|
679 |
+
}
|
680 |
+
.wp-ulike-row .col-4-sm {
|
681 |
+
width: 29.33333%;
|
682 |
+
}
|
683 |
+
.wp-ulike-row .col-5-sm {
|
684 |
+
width: 37.66667%;
|
685 |
+
}
|
686 |
+
.wp-ulike-row .col-6-sm {
|
687 |
+
width: 46%;
|
688 |
+
}
|
689 |
+
.wp-ulike-row .col-7-sm {
|
690 |
+
width: 54.33333%;
|
691 |
+
}
|
692 |
+
.wp-ulike-row .col-8-sm {
|
693 |
+
width: 62.66667%;
|
694 |
+
}
|
695 |
+
.wp-ulike-row .col-9-sm {
|
696 |
+
width: 71%;
|
697 |
+
}
|
698 |
+
.wp-ulike-row .col-10-sm {
|
699 |
+
width: 79.33333%;
|
700 |
+
}
|
701 |
+
.wp-ulike-row .col-11-sm {
|
702 |
+
width: 87.66667%;
|
703 |
+
}
|
704 |
+
.wp-ulike-row .col-12-sm {
|
705 |
+
width: 96%;
|
706 |
+
}
|
707 |
+
|
708 |
+
@media only screen and (min-width: 45em) {
|
709 |
+
.wp-ulike-row .col-1 {
|
710 |
+
width: 4.33333%;
|
711 |
+
}
|
712 |
+
.wp-ulike-row .col-2 {
|
713 |
+
width: 12.66667%;
|
714 |
+
}
|
715 |
+
.wp-ulike-row .col-3 {
|
716 |
+
width: 21%;
|
717 |
+
}
|
718 |
+
.wp-ulike-row .col-4 {
|
719 |
+
width: 29.33333%;
|
720 |
+
}
|
721 |
+
.wp-ulike-row .col-5 {
|
722 |
+
width: 37.66667%;
|
723 |
+
}
|
724 |
+
.wp-ulike-row .col-6 {
|
725 |
+
width: 46%;
|
726 |
+
}
|
727 |
+
.wp-ulike-row .col-7 {
|
728 |
+
width: 54.33333%;
|
729 |
+
}
|
730 |
+
.wp-ulike-row .col-8 {
|
731 |
+
width: 62.66667%;
|
732 |
+
}
|
733 |
+
.wp-ulike-row .col-9 {
|
734 |
+
width: 71%;
|
735 |
+
}
|
736 |
+
.wp-ulike-row .col-10 {
|
737 |
+
width: 79.33333%;
|
738 |
+
}
|
739 |
+
.wp-ulike-row .col-11 {
|
740 |
+
width: 87.66667%;
|
741 |
+
}
|
742 |
+
.wp-ulike-row .col-12 {
|
743 |
+
width: 96%;
|
744 |
+
}
|
745 |
+
.wp-ulike-row .hidden-sm {
|
746 |
+
display: block;
|
747 |
+
}
|
748 |
+
}
|
749 |
+
@media only screen and (max-width: 45em) {
|
750 |
+
.wp-ulike-flex {
|
751 |
+
text-align: center;
|
752 |
+
}
|
753 |
+
}
|
754 |
+
/**
|
755 |
+
* Statistics Page
|
756 |
+
*/
|
757 |
+
.wp-ulike-page-title {
|
758 |
+
font-size: 38px;
|
759 |
+
line-height: 50px;
|
760 |
+
font-weight: 400;
|
761 |
+
margin: 0;
|
762 |
+
}
|
763 |
+
|
764 |
+
.wp-ulike-header {
|
765 |
+
margin: 0 2% 10px;
|
766 |
+
padding: 0 20px 35px;
|
767 |
+
display: flex;
|
768 |
+
justify-content: space-between;
|
769 |
+
position: relative;
|
770 |
+
align-items: center;
|
771 |
+
flex-wrap: wrap;
|
772 |
+
}
|
773 |
+
.wp-ulike-header:after {
|
774 |
+
content: "";
|
775 |
+
position: absolute;
|
776 |
+
bottom: 0;
|
777 |
+
height: 1px;
|
778 |
+
background: #dde3e7;
|
779 |
+
right: 20px;
|
780 |
+
left: 20px;
|
781 |
+
}
|
782 |
+
.wp-ulike-header .wp-ulike-widget-title {
|
783 |
+
text-transform: capitalize;
|
784 |
+
font-size: 22px;
|
785 |
+
font-weight: 500;
|
786 |
+
line-height: normal;
|
787 |
+
color: #3d3d3d;
|
788 |
+
margin: 0;
|
789 |
+
}
|
790 |
+
|
791 |
+
.wp-ulike-button {
|
792 |
+
background-color: #f9faff;
|
793 |
+
padding: 10px 25px;
|
794 |
+
text-decoration: none;
|
795 |
+
text-transform: uppercase;
|
796 |
+
color: #7e8996;
|
797 |
+
border: 1px solid #dde3e7;
|
798 |
+
border-radius: 50em;
|
799 |
+
font-size: 14px;
|
800 |
+
line-height: 20px;
|
801 |
+
}
|
802 |
+
.wp-ulike-button:hover {
|
803 |
+
background-color: #fff;
|
804 |
+
color: #42484e;
|
805 |
+
}
|
806 |
+
|
807 |
+
.wp-ulike-inner {
|
808 |
+
position: relative;
|
809 |
+
padding: 35px 20px;
|
810 |
+
border: 1px solid #e4e6eb;
|
811 |
+
background: #fff;
|
812 |
+
border-radius: 4px;
|
813 |
+
}
|
814 |
+
|
815 |
+
.wp-ulike-logs-count {
|
816 |
+
margin: 0 auto;
|
817 |
+
text-align: center;
|
818 |
+
}
|
819 |
+
.wp-ulike-logs-count .wp-ulike-icon {
|
820 |
+
font-size: 5vw;
|
821 |
+
color: #8B93A6;
|
822 |
+
line-height: 5vh;
|
823 |
+
}
|
824 |
+
.wp-ulike-logs-count .wp-ulike-var {
|
825 |
+
font-size: 3vw;
|
826 |
+
line-height: 4vw;
|
827 |
+
display: block;
|
828 |
+
}
|
829 |
+
.wp-ulike-logs-count .wp-ulike-text {
|
830 |
+
display: block;
|
831 |
+
color: #8B93A6;
|
832 |
+
font-size: 1.5vw;
|
833 |
+
line-height: 2.5vw;
|
834 |
+
}
|
835 |
+
|
836 |
+
.wp-ulike-is-loading {
|
837 |
+
padding: 10px 0;
|
838 |
+
}
|
839 |
+
.wp-ulike-is-loading:before {
|
840 |
+
content: "";
|
841 |
+
position: absolute;
|
842 |
+
left: 0;
|
843 |
+
width: 100%;
|
844 |
+
top: 0;
|
845 |
+
height: 100%;
|
846 |
+
background-color: white;
|
847 |
+
background-image: url(../../../assets/img/svg/statistics.svg);
|
848 |
+
background-repeat: no-repeat;
|
849 |
+
background-position: center center;
|
850 |
+
z-index: 9;
|
851 |
+
}
|
852 |
+
|
853 |
+
.wp-ulike-pro-stats-banner .wp-ulike-inner {
|
854 |
+
padding: 20px 40px;
|
855 |
+
}
|
856 |
+
.wp-ulike-pro-stats-banner .wp-ulike-inner:before {
|
857 |
+
content: "";
|
858 |
+
position: absolute;
|
859 |
+
right: 5%;
|
860 |
+
left: 40%;
|
861 |
+
bottom: 0;
|
862 |
+
height: 100%;
|
863 |
+
background-image: url(../../../assets/img/pro-stats-banner.svg);
|
864 |
+
background-size: contain;
|
865 |
+
background-repeat: no-repeat;
|
866 |
+
background-position: bottom right;
|
867 |
+
}
|
868 |
+
.wp-ulike-pro-stats-banner .wp-ulike-inner h3 {
|
869 |
+
margin: 0.5em 0;
|
870 |
+
font-size: 32px;
|
871 |
+
max-width: 360px;
|
872 |
+
line-height: 1.4;
|
873 |
+
font-weight: 500;
|
874 |
+
color: #017e52;
|
875 |
+
}
|
876 |
+
.wp-ulike-pro-stats-banner .wp-ulike-inner p {
|
877 |
+
max-width: 540px;
|
878 |
+
font-size: 15px;
|
879 |
+
line-height: 1.4em;
|
880 |
+
color: #8B93A6;
|
881 |
+
}
|
882 |
+
.wp-ulike-pro-stats-banner .wp-ulike-inner .wp-ulike-button-group {
|
883 |
+
margin: 2em 0 1em;
|
884 |
+
}
|
885 |
+
.wp-ulike-pro-stats-banner .wp-ulike-inner .wp-ulike-button-group .wp-ulike-btn {
|
886 |
+
margin: 0 5px;
|
887 |
+
}
|
888 |
+
|
889 |
+
.wp-ulike-table {
|
890 |
+
display: table;
|
891 |
+
}
|
892 |
+
.wp-ulike-table .wp-ulike-table-cell {
|
893 |
+
display: table-cell;
|
894 |
+
vertical-align: middle;
|
895 |
+
}
|
896 |
+
|
897 |
+
.wp-ulike-summary-charts .wp-ulike-info {
|
898 |
+
flex-basis: 35%;
|
899 |
+
}
|
900 |
+
.wp-ulike-summary-charts .wp-ulike-icon {
|
901 |
+
font-size: 3vw;
|
902 |
+
color: #8B93A6;
|
903 |
+
line-height: normal;
|
904 |
+
flex-basis: 25%;
|
905 |
+
}
|
906 |
+
.wp-ulike-summary-charts .wp-ulike-var {
|
907 |
+
font-size: 1.8vw;
|
908 |
+
line-height: normal;
|
909 |
+
display: block;
|
910 |
+
}
|
911 |
+
.wp-ulike-summary-charts .wp-ulike-text {
|
912 |
+
display: block;
|
913 |
+
color: #8B93A6;
|
914 |
+
font-size: 1vw;
|
915 |
+
line-height: normal;
|
916 |
+
}
|
917 |
+
|
918 |
+
.wp-ulike-top-likers {
|
919 |
+
margin: 0 2%;
|
920 |
+
}
|
921 |
+
.wp-ulike-top-likers .wp-ulike-users-list {
|
922 |
+
border-bottom: 1px solid #dde3e7;
|
923 |
+
font-size: 15px;
|
924 |
+
padding: 20px 0px;
|
925 |
+
margin: 5px;
|
926 |
+
}
|
927 |
+
.wp-ulike-top-likers .wp-ulike-users-list i {
|
928 |
+
color: #8B93A6;
|
929 |
+
margin: 0 5px;
|
930 |
+
}
|
931 |
+
.wp-ulike-top-likers .wp-ulike-info {
|
932 |
+
width: 60%;
|
933 |
+
}
|
934 |
+
.wp-ulike-top-likers .wp-ulike-counter {
|
935 |
+
width: 20%;
|
936 |
+
}
|
937 |
+
.wp-ulike-top-likers .wp-ulike-total {
|
938 |
+
width: 20%;
|
939 |
+
}
|
940 |
+
|
941 |
+
.wp-ulike-empty-stats {
|
942 |
+
text-align: center;
|
943 |
+
height: 50em;
|
944 |
+
position: relative;
|
945 |
+
}
|
946 |
+
.wp-ulike-empty-stats > div {
|
947 |
+
position: relative;
|
948 |
+
top: 50%;
|
949 |
+
transform: translateY(-50%);
|
950 |
+
}
|
951 |
+
.wp-ulike-empty-stats .wp-ulike-icon {
|
952 |
+
font-size: 110px;
|
953 |
+
color: #8B93A6;
|
954 |
+
}
|
955 |
+
.wp-ulike-empty-stats .wp-ulike-info {
|
956 |
+
font-size: 28px;
|
957 |
+
line-height: 42px;
|
958 |
+
font-weight: 300;
|
959 |
+
margin-top: 50px;
|
960 |
+
}
|
961 |
+
|
962 |
+
.wp-ulike-tops-list {
|
963 |
+
padding: 0 20px;
|
964 |
+
}
|
965 |
+
.wp-ulike-tops-list > ul {
|
966 |
+
font-size: 16px;
|
967 |
+
font-weight: 300;
|
968 |
+
line-height: 26px;
|
969 |
+
color: #3d3d3d;
|
970 |
+
margin: 0;
|
971 |
+
}
|
972 |
+
.wp-ulike-tops-list > ul > li {
|
973 |
+
display: flex;
|
974 |
+
justify-content: space-between;
|
975 |
+
border-bottom: 1px solid #dde3e7;
|
976 |
+
padding: 8px 0;
|
977 |
+
}
|
978 |
+
.wp-ulike-tops-list > ul > li a {
|
979 |
+
text-decoration: none;
|
980 |
+
color: #3d3d3d;
|
981 |
+
}
|
982 |
+
|
983 |
+
/**
|
984 |
+
* About Page
|
985 |
+
*/
|
986 |
+
.wp-ulike-about-page .ulike-badge {
|
987 |
+
background: url(../../../assets/img/wp-ulike-icon.svg) no-repeat scroll center 24px/95px 95px #FF7171;
|
988 |
+
color: #FFFFFF;
|
989 |
+
position: absolute;
|
990 |
+
top: 0px;
|
991 |
+
right: 0px;
|
992 |
+
font-size: 14px;
|
993 |
+
text-align: center;
|
994 |
+
font-weight: 600;
|
995 |
+
margin: 5px 0px 0px;
|
996 |
+
padding-top: 120px;
|
997 |
+
height: 40px;
|
998 |
+
display: inline-block;
|
999 |
+
width: 150px;
|
1000 |
+
text-rendering: optimizelegibility;
|
1001 |
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
|
1002 |
+
}
|
1003 |
+
.wp-ulike-about-page .wp_ulike_version {
|
1004 |
+
display: inline-block;
|
1005 |
+
position: absolute;
|
1006 |
+
top: 54px;
|
1007 |
+
left: 0;
|
1008 |
+
padding: 5px 10px;
|
1009 |
+
background: #e74c3c;
|
1010 |
+
color: #FFFFFF;
|
1011 |
+
font-size: 13px;
|
1012 |
+
font-weight: normal;
|
1013 |
+
}
|
1014 |
+
.wp-ulike-about-page .headline-feature h2 {
|
1015 |
+
margin: 1.1em 0px 0.2em;
|
1016 |
+
font-size: 2.4em;
|
1017 |
+
font-weight: 300;
|
1018 |
+
line-height: 1.3;
|
1019 |
+
text-align: center;
|
1020 |
+
}
|
1021 |
+
.wp-ulike-about-page .icon-container {
|
1022 |
+
text-align: center;
|
1023 |
+
font-size: 6vw;
|
1024 |
+
border: 1px solid #757575;
|
1025 |
+
padding: 35px 5px;
|
1026 |
+
}
|
1027 |
+
.wp-ulike-about-page .featured-image img {
|
1028 |
+
border: none;
|
1029 |
+
}
|
1030 |
+
|
1031 |
+
/**
|
1032 |
+
* Go Pro Page
|
1033 |
+
*/
|
1034 |
+
.wp-ulike-go-pro-page .has-1-columns, .wp-ulike-go-pro-page .has-2-columns, .wp-ulike-go-pro-page .has-3-columns, .wp-ulike-go-pro-page .has-4-columns {
|
1035 |
+
max-width: 1400px;
|
1036 |
+
margin-left: 0;
|
1037 |
+
margin-right: 0;
|
1038 |
+
}
|
1039 |
+
.wp-ulike-go-pro-page h1 {
|
1040 |
+
margin-bottom: 1em;
|
1041 |
+
}
|
1042 |
+
.wp-ulike-go-pro-page h2 {
|
1043 |
+
text-align: left;
|
1044 |
+
}
|
1045 |
+
.wp-ulike-go-pro-page .is-section-header {
|
1046 |
+
padding-top: 20px;
|
1047 |
+
margin-left: 20px;
|
1048 |
+
margin-right: 20px;
|
1049 |
+
}
|
1050 |
+
.wp-ulike-go-pro-page .wp-ulike-btn {
|
1051 |
+
margin-top: 5px;
|
1052 |
+
margin-right: 15px;
|
1053 |
+
}
|
1054 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table {
|
1055 |
+
width: 100%;
|
1056 |
+
max-width: 100%;
|
1057 |
+
margin-bottom: 2rem;
|
1058 |
+
background-color: transparent;
|
1059 |
+
}
|
1060 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr,
|
1061 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr,
|
1062 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr {
|
1063 |
+
-webkit-transition: all 0.3s ease;
|
1064 |
+
-o-transition: all 0.3s ease;
|
1065 |
+
transition: all 0.3s ease;
|
1066 |
+
}
|
1067 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > th,
|
1068 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > td,
|
1069 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr > th,
|
1070 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tbody > tr > td,
|
1071 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr > th,
|
1072 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tfoot > tr > td {
|
1073 |
+
text-align: left;
|
1074 |
+
padding: 1rem;
|
1075 |
+
vertical-align: top;
|
1076 |
+
border-top: 0;
|
1077 |
+
-webkit-transition: all 0.3s ease;
|
1078 |
+
-o-transition: all 0.3s ease;
|
1079 |
+
transition: all 0.3s ease;
|
1080 |
+
}
|
1081 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > thead > tr > th {
|
1082 |
+
font-weight: 600;
|
1083 |
+
color: #757575;
|
1084 |
+
vertical-align: bottom;
|
1085 |
+
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
1086 |
+
}
|
1087 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > caption + thead > tr:first-child > th,
|
1088 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > caption + thead > tr:first-child > td,
|
1089 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > colgroup + thead > tr:first-child > th,
|
1090 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > colgroup + thead > tr:first-child > td,
|
1091 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > thead:first-child > tr:first-child > th,
|
1092 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > thead:first-child > tr:first-child > td {
|
1093 |
+
border-top: 0;
|
1094 |
+
}
|
1095 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table > tbody + tbody {
|
1096 |
+
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
1097 |
+
}
|
1098 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table .table {
|
1099 |
+
background-color: transparent;
|
1100 |
+
}
|
1101 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table .no-border {
|
1102 |
+
border: 0;
|
1103 |
+
}
|
1104 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered {
|
1105 |
+
border: 0;
|
1106 |
+
}
|
1107 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > th,
|
1108 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > td,
|
1109 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tbody > tr > th,
|
1110 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tbody > tr > td,
|
1111 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tfoot > tr > th,
|
1112 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > tfoot > tr > td {
|
1113 |
+
border: 0;
|
1114 |
+
border-bottom: 1px solid #e0e0e0;
|
1115 |
+
}
|
1116 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > th,
|
1117 |
+
.wp-ulike-go-pro-page .wp-ulike-simple-table.table-bordered > thead > tr > td {
|
1118 |
+
border-bottom-width: 2px;
|
1119 |
+
}
|
1120 |
+
.wp-ulike-go-pro-page .wp-ulike-table-icon {
|
1121 |
+
width: 18px;
|
1122 |
+
height: 18px;
|
1123 |
+
}
|
1124 |
+
|
1125 |
+
/**
|
1126 |
+
* Logs Page
|
1127 |
+
*/
|
1128 |
+
.wp_ulike_logs .button {
|
1129 |
+
line-height: 20px;
|
1130 |
+
}
|
1131 |
+
.wp_ulike_logs i {
|
1132 |
+
font-size: 1.9em;
|
1133 |
+
}
|
1134 |
+
.wp_ulike_logs i.wp-ulike-icons-thumb_up:before {
|
1135 |
+
color: #4caf50;
|
1136 |
+
}
|
1137 |
+
.wp_ulike_logs i.wp-ulike-icons-thumb_down:before {
|
1138 |
+
color: #f44336;
|
1139 |
+
}
|
admin/assets/js/plugins.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WP ULike - v4.0.
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2019;
|
4 |
*/
|
1 |
+
/*! WP ULike - v4.0.4
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2019;
|
4 |
*/
|
admin/assets/js/scripts.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WP ULike - v4.0.
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2019;
|
4 |
*/
|
1 |
+
/*! WP ULike - v4.0.4
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2019;
|
4 |
*/
|
admin/classes/class-wp-ulike-stats.php
CHANGED
@@ -252,29 +252,8 @@ if ( ! class_exists( 'wp_ulike_stats' ) ) {
|
|
252 |
// Extract variables
|
253 |
extract( $parsed_args );
|
254 |
|
255 |
-
|
256 |
-
|
257 |
-
switch ( $date ) {
|
258 |
-
case 'today':
|
259 |
-
$query .= ' AND DATE( date_time ) = DATE( NOW() )';
|
260 |
-
break;
|
261 |
-
|
262 |
-
case 'yesterday':
|
263 |
-
$query .= ' AND DATE( date_time ) = DATE( subdate( current_date, 1 ) )';
|
264 |
-
break;
|
265 |
-
|
266 |
-
case 'week':
|
267 |
-
$query .= ' AND WEEK( DATE( date_time ) ) = WEEK( DATE( NOW() ) )';
|
268 |
-
break;
|
269 |
-
|
270 |
-
case 'month':
|
271 |
-
$query .= ' AND MONTH( DATE( date_time ) ) = MONTH( DATE( NOW() ) )';
|
272 |
-
break;
|
273 |
-
|
274 |
-
case 'year':
|
275 |
-
$query .= ' AND YEAR( DATE( date_time ) ) = YEAR( DATE( NOW() ) )';
|
276 |
-
break;
|
277 |
-
}
|
278 |
|
279 |
$result = $this->wpdb->get_var( $query );
|
280 |
|
@@ -324,31 +303,7 @@ if ( ! class_exists( 'wp_ulike_stats' ) ) {
|
|
324 |
* @return Array
|
325 |
*/
|
326 |
public function get_top_likers(){
|
327 |
-
|
328 |
-
SELECT T.user_id, SUM(T.CountUser) AS SumUser, T.ip
|
329 |
-
FROM(
|
330 |
-
SELECT user_id, count(user_id) AS CountUser, ip
|
331 |
-
FROM `%1$sulike`
|
332 |
-
GROUP BY user_id
|
333 |
-
UNION ALL
|
334 |
-
SELECT user_id, count(user_id) AS CountUser, ip
|
335 |
-
FROM `%1$sulike_activities`
|
336 |
-
GROUP BY user_id
|
337 |
-
UNION ALL
|
338 |
-
SELECT user_id, count(user_id) AS CountUser, ip
|
339 |
-
FROM `%1$sulike_comments`
|
340 |
-
GROUP BY user_id
|
341 |
-
UNION ALL
|
342 |
-
SELECT user_id, count(user_id) AS CountUser, ip
|
343 |
-
FROM `%1$sulike_forums`
|
344 |
-
GROUP BY user_id
|
345 |
-
) AS T
|
346 |
-
GROUP BY T.user_id
|
347 |
-
ORDER BY SumUser DESC LIMIT %2$d',
|
348 |
-
$this->wpdb->prefix,
|
349 |
-
5
|
350 |
-
);
|
351 |
-
return $this->wpdb->get_results( $query );
|
352 |
}
|
353 |
|
354 |
/**
|
252 |
// Extract variables
|
253 |
extract( $parsed_args );
|
254 |
|
255 |
+
$query = sprintf( "SELECT COUNT(*) FROM %s WHERE 1=1", $this->wpdb->prefix . $table );
|
256 |
+
$query .= wp_ulike_get_period_limit_sql( $date );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
|
258 |
$result = $this->wpdb->get_var( $query );
|
259 |
|
303 |
* @return Array
|
304 |
*/
|
305 |
public function get_top_likers(){
|
306 |
+
return wp_ulike_get_best_likers_info( 5, NULL );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
}
|
308 |
|
309 |
/**
|
admin/classes/class-wp-ulike-widget.php
CHANGED
@@ -65,7 +65,7 @@ if ( ! class_exists( 'wp_ulike_widget' ) ) {
|
|
65 |
foreach ($posts as $post) {
|
66 |
$post_title = stripslashes($post->post_title);
|
67 |
$permalink = get_permalink($post->ID);
|
68 |
-
$post_count = $this->get_counter_value($post->ID, 'post', 'all', false);
|
69 |
|
70 |
$result .= $before_item;
|
71 |
$result .= $show_thumb ? $this->get_post_thumbnail( $post->ID, $sizeOf ) : '';
|
@@ -117,7 +117,7 @@ if ( ! class_exists( 'wp_ulike_widget' ) ) {
|
|
117 |
$post_permalink = get_permalink($comment->comment_post_ID);
|
118 |
$post_title = get_the_title($comment->comment_post_ID);
|
119 |
$comment_permalink = get_permalink($comment->comment_ID);
|
120 |
-
$comment_likes_count = $this->get_counter_value($comment->comment_ID, 'comment', 'all', false);
|
121 |
|
122 |
$result .= $before_item;
|
123 |
$result .= $show_thumb ? get_avatar( $comment->comment_author_email, $sizeOf ) : '';
|
@@ -232,7 +232,7 @@ if ( ! class_exists( 'wp_ulike_widget' ) ) {
|
|
232 |
foreach ($posts as $post) {
|
233 |
$post_title = function_exists('bbp_get_forum_title') ? bbp_get_forum_title( $post->ID ) : $post->post_title;
|
234 |
$permalink = get_permalink( $post->ID );
|
235 |
-
$post_count = $this->get_counter_value($post->ID, 'topic', 'all', false);
|
236 |
|
237 |
$result .= $before_item;
|
238 |
$result .= '<a href="' . $permalink . '" title="' . $post_title.'" rel="nofollow">'. wp_trim_words( $post_title, $num_words = $trim, $more = null ) . '</a>';
|
@@ -290,7 +290,7 @@ if ( ! class_exists( 'wp_ulike_widget' ) ) {
|
|
290 |
foreach ($activities as $activity) {
|
291 |
$activity_permalink = function_exists('bp_activity_get_permalink') ? bp_activity_get_permalink( $activity->id ) : '';
|
292 |
$activity_action = ! empty( $activity->content ) ? $activity->content : $activity->action;
|
293 |
-
$post_count = $this->get_counter_value( $activity->id, 'activity', 'all', false );
|
294 |
|
295 |
// Skip empty activities
|
296 |
if( empty( $activity_action ) ){
|
@@ -386,9 +386,8 @@ if ( ! class_exists( 'wp_ulike_widget' ) ) {
|
|
386 |
* @param bool $is_distinct
|
387 |
* @return integer
|
388 |
*/
|
389 |
-
private function get_counter_value( $id, $slug, $status, $is_distinct ){
|
390 |
-
|
391 |
-
return ! is_wp_error( $counter_val ) ? $counter_val : 0;
|
392 |
}
|
393 |
|
394 |
/**
|
65 |
foreach ($posts as $post) {
|
66 |
$post_title = stripslashes($post->post_title);
|
67 |
$permalink = get_permalink($post->ID);
|
68 |
+
$post_count = $this->get_counter_value($post->ID, 'post', 'all', false, $period );
|
69 |
|
70 |
$result .= $before_item;
|
71 |
$result .= $show_thumb ? $this->get_post_thumbnail( $post->ID, $sizeOf ) : '';
|
117 |
$post_permalink = get_permalink($comment->comment_post_ID);
|
118 |
$post_title = get_the_title($comment->comment_post_ID);
|
119 |
$comment_permalink = get_permalink($comment->comment_ID);
|
120 |
+
$comment_likes_count = $this->get_counter_value($comment->comment_ID, 'comment', 'all', false, $period);
|
121 |
|
122 |
$result .= $before_item;
|
123 |
$result .= $show_thumb ? get_avatar( $comment->comment_author_email, $sizeOf ) : '';
|
232 |
foreach ($posts as $post) {
|
233 |
$post_title = function_exists('bbp_get_forum_title') ? bbp_get_forum_title( $post->ID ) : $post->post_title;
|
234 |
$permalink = get_permalink( $post->ID );
|
235 |
+
$post_count = $this->get_counter_value($post->ID, 'topic', 'all', false, $period);
|
236 |
|
237 |
$result .= $before_item;
|
238 |
$result .= '<a href="' . $permalink . '" title="' . $post_title.'" rel="nofollow">'. wp_trim_words( $post_title, $num_words = $trim, $more = null ) . '</a>';
|
290 |
foreach ($activities as $activity) {
|
291 |
$activity_permalink = function_exists('bp_activity_get_permalink') ? bp_activity_get_permalink( $activity->id ) : '';
|
292 |
$activity_action = ! empty( $activity->content ) ? $activity->content : $activity->action;
|
293 |
+
$post_count = $this->get_counter_value( $activity->id, 'activity', 'all', false, $period );
|
294 |
|
295 |
// Skip empty activities
|
296 |
if( empty( $activity_action ) ){
|
386 |
* @param bool $is_distinct
|
387 |
* @return integer
|
388 |
*/
|
389 |
+
private function get_counter_value( $id, $slug, $status, $is_distinct, $date_range = NULL ){
|
390 |
+
return wp_ulike_get_counter_value( $id, $slug, $status, $is_distinct, $date_range );
|
|
|
391 |
}
|
392 |
|
393 |
/**
|
admin/includes/templates/go-pro.php
CHANGED
@@ -103,44 +103,34 @@
|
|
103 |
?>
|
104 |
</div>
|
105 |
</div>
|
|
|
|
|
|
|
106 |
<div class="has-3-columns">
|
107 |
-
<h2 class="is-section-header">Our Features</h2>
|
108 |
-
|
109 |
<div class="column">
|
110 |
-
<h3
|
111 |
-
|
112 |
-
|
113 |
-
?>
|
114 |
</div>
|
115 |
<div class="column">
|
116 |
-
<h3
|
117 |
-
|
118 |
-
echo sprintf( '<p>%s</p>', __('WP ULike is already translated into +20 languages, with more always in progress.',WP_ULIKE_SLUG) );
|
119 |
-
?>
|
120 |
</div>
|
121 |
<div class="column">
|
122 |
-
<h3
|
123 |
-
|
124 |
-
echo sprintf( '<p>%s</p>', __('We’ve used the simplest and prettiest styles for designing like buttons.',WP_ULIKE_SLUG) );
|
125 |
-
?>
|
126 |
</div>
|
127 |
<div class="column">
|
128 |
-
<h3
|
129 |
-
|
130 |
-
echo sprintf( '<p>%s</p>', __('Using various hooks and functions, you can easily customize this plugin.',WP_ULIKE_SLUG) );
|
131 |
-
?>
|
132 |
</div>
|
133 |
<div class="column">
|
134 |
-
<h3
|
135 |
-
|
136 |
-
echo sprintf( '<p>%s</p>', __('You can choose from multiple gorgeous and professional designed templates.',WP_ULIKE_SLUG) );
|
137 |
-
?>
|
138 |
</div>
|
139 |
<div class="column">
|
140 |
-
<h3
|
141 |
-
|
142 |
-
echo sprintf( '<p>%s</p>', __('extract detailed reports and beautiful, useful and simple charts in an instant.',WP_ULIKE_SLUG) );
|
143 |
-
?>
|
144 |
</div>
|
145 |
</div>
|
146 |
</div>
|
103 |
?>
|
104 |
</div>
|
105 |
</div>
|
106 |
+
<div class="has-1-columns">
|
107 |
+
<h2 class="is-section-header">Frequently Asked Questions</h2>
|
108 |
+
</div>
|
109 |
<div class="has-3-columns">
|
|
|
|
|
110 |
<div class="column">
|
111 |
+
<h3>What's the difference between WP ULike Pro vs free?</h3>
|
112 |
+
<p>WP ULike's Free version offers limitless possibilities. WP ULike Pro, however, empowers you with more professional tools, up/down vote support and provide you a professional stats panel. See <a target="_blank" href="https://wpulike.com/blog/wp-ulike-pro-vs-free/?utm_source=go-pro-page&utm_campaign=gopro&utm_medium=wp-dash" title=" WP ULike Pro Vs. Free: Which One Helps You Better?
|
113 |
+
">full comparison here</a>.</p>
|
|
|
114 |
</div>
|
115 |
<div class="column">
|
116 |
+
<h3>What happens to buttons created in the free version after I upgrade?</h3>
|
117 |
+
<p>WP ULike Pro is an extension of free version. After you upgrade to Pro, you continue just where you left off, without any interruptions. In fact, you'll be able to leverage those buttons using the Pro features.</p>
|
|
|
|
|
118 |
</div>
|
119 |
<div class="column">
|
120 |
+
<h3>Do you offer a Demo version? Can I request a refund?</h3>
|
121 |
+
<p>We don't offer a demo version of WP ULike Pro for trial. However, we have a <a target="_blank" href="https://wpulike.com/refund-rules/?utm_source=go-pro-page&utm_campaign=gopro&utm_medium=wp-dash" title="My Account">refund policy</a> which lets you cancel your purchase and get a refund during the first 30 days.</p>
|
|
|
|
|
122 |
</div>
|
123 |
<div class="column">
|
124 |
+
<h3>What happens if I don't renew my license after one year? Will WP ULike Pro still work?</h3>
|
125 |
+
<p>Your existing project will remain intact. The only difference is support, updates and access to the new premium templates which constantly added each month.</p>
|
|
|
|
|
126 |
</div>
|
127 |
<div class="column">
|
128 |
+
<h3>Can I transfer the WP ULike Pro license key from one domain to another?</h3>
|
129 |
+
<p>Of course! You can manage it in your <a target="_blank" href="https://wpulike.com/user/?utm_source=go-pro-page&utm_campaign=gopro&utm_medium=wp-dash" title="My Account">account</a> via My Account > Licenses tab.</p>
|
|
|
|
|
130 |
</div>
|
131 |
<div class="column">
|
132 |
+
<h3>Can I ask a question before buying?</h3>
|
133 |
+
<p>Of course! If you have any questions about the bundle or the extensions, you can submit a pre-purchase question <a target="_blank" href="https://wpulike.com/support/?utm_source=go-pro-page&utm_campaign=gopro&utm_medium=wp-dash" title="Support">here</a>.</p>
|
|
|
|
|
134 |
</div>
|
135 |
</div>
|
136 |
</div>
|
assets/css/wp-ulike.css
CHANGED
@@ -86,7 +86,7 @@
|
|
86 |
top: 50%;
|
87 |
transform: translateX(-50%) translateY(-50%);
|
88 |
}
|
89 |
-
.wpulike-default .wp_ulike_put_image.
|
90 |
filter: invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%);
|
91 |
}
|
92 |
.wpulike-default .count-box {
|
@@ -184,7 +184,7 @@
|
|
184 |
top: 50%;
|
185 |
transform: translateX(-50%) translateY(-50%);
|
186 |
}
|
187 |
-
.wpulike-heart .wp_ulike_put_image.
|
188 |
filter: invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%);
|
189 |
}
|
190 |
.wpulike-heart .count-box {
|
@@ -448,13 +448,13 @@
|
|
448 |
width: 50px;
|
449 |
height: 50px;
|
450 |
}
|
451 |
-
.wpulike-animated-heart .wp_ulike_btn.
|
452 |
background-color: #ff6f63;
|
453 |
}
|
454 |
-
.wpulike-animated-heart .wp_ulike_btn.
|
455 |
fill: #ffffff;
|
456 |
}
|
457 |
-
.wpulike-animated-heart .wp_ulike_btn.
|
458 |
animation-direction: normal;
|
459 |
}
|
460 |
.wpulike-animated-heart .wp_ulike_btn:active {
|
@@ -539,7 +539,7 @@
|
|
539 |
width: 40px;
|
540 |
height: 40px;
|
541 |
}
|
542 |
-
#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn.
|
543 |
background-color: #ff6f63;
|
544 |
}
|
545 |
|
86 |
top: 50%;
|
87 |
transform: translateX(-50%) translateY(-50%);
|
88 |
}
|
89 |
+
.wpulike-default .wp_ulike_put_image.wp_ulike_btn_is_active:after {
|
90 |
filter: invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%);
|
91 |
}
|
92 |
.wpulike-default .count-box {
|
184 |
top: 50%;
|
185 |
transform: translateX(-50%) translateY(-50%);
|
186 |
}
|
187 |
+
.wpulike-heart .wp_ulike_put_image.wp_ulike_btn_is_active:after {
|
188 |
filter: invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%);
|
189 |
}
|
190 |
.wpulike-heart .count-box {
|
448 |
width: 50px;
|
449 |
height: 50px;
|
450 |
}
|
451 |
+
.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active {
|
452 |
background-color: #ff6f63;
|
453 |
}
|
454 |
+
.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart {
|
455 |
fill: #ffffff;
|
456 |
}
|
457 |
+
.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart-pop {
|
458 |
animation-direction: normal;
|
459 |
}
|
460 |
.wpulike-animated-heart .wp_ulike_btn:active {
|
539 |
width: 40px;
|
540 |
height: 40px;
|
541 |
}
|
542 |
+
#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active {
|
543 |
background-color: #ff6f63;
|
544 |
}
|
545 |
|
assets/css/wp-ulike.min.css
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* WP ULike
|
4 |
* @author Alimir [https://wordpress.org/plugins/wp-ulike/]
|
5 |
===============================================================
|
6 |
-
*/.wpulike{display:block;position:relative;line-height:normal;margin:0;padding:10px 0}.wpulike .wp_ulike_btn{margin:0;position:relative;display:inline-block;vertical-align:middle;border-radius:.25em;box-shadow:none;padding:15px 25px;border:none;text-align:center;transition-property:none;cursor:pointer}.wpulike .wp_ulike_btn:active,.wpulike .wp_ulike_btn:focus,.wpulike .wp_ulike_btn:hover{outline:0}.wpulike .wp_ulike_put_text{font-size:14px;font-weight:600;line-height:28px;padding:0 10px;min-width:50px}.wpulike .wp_ulike_general_class{display:inline-flex;align-items:center}.wpulike .wp_ulike_is_loading .wp_ulike_btn{background-image:url(../img/svg/loader.svg);background-repeat:no-repeat;background-position:center center}.wpulike .wp_ulike_is_loading .wp_ulike_btn span{visibility:hidden}.wpulike .wp_ulike_is_loading .wp_ulike_btn.wp_ulike_put_image:after{content:none}.wpulike.wpulike-hide-counter .count-box{display:none}.wp_ulike_click_is_disabled{pointer-events:none;cursor:default}.wp_ulike_hide_me{visibility:hidden}.wpulike-default .wp_ulike_btn{color:#616161;background:#e0e0e0;min-height:30px;min-width:50px}.wpulike-default .wp_ulike_is_liked .wp_ulike_btn{color:#757575}.wpulike-default .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/like.svg) no-repeat;background-size:contain;width:16px;height:16px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-default .wp_ulike_put_image.image-unlike:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-default .count-box{position:relative;border-radius:.25em;font-size:12px;text-decoration:none;background-color:#fff;margin-left:8px;line-height:28px;display:inline-block;padding:0 10px;box-shadow:0 0 0 1px #bdbdbd inset;color:#616161;vertical-align:middle;text-align:center}.wpulike-default .count-box:before{content:'';position:absolute;border:1px solid transparent;background:#fff;border-bottom-color:#bdbdbd;left:-5px;top:50%;border-left-color:#bdbdbd;transform:rotate(45deg) translatey(-50%);width:5px;height:5px;margin:0}#buddypress #activity-stream .activity-comments .wpulike,#buddypress #activity-stream .activity-meta .wpulike{display:flex;align-items:center;padding:0}#buddypress #activity-stream .activity-comments .wpulike-default .wp_ulike_btn,#buddypress #activity-stream .activity-meta .wpulike-default .wp_ulike_btn{border-radius:0;background-color:#fff;box-shadow:0 0 0 1px #bdbdbd inset;font-size:initial;padding:initial}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker,#buddypress #activity-stream .wp_ulike_likers_wrapper li{border:none;padding:0}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker a,#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker img,#buddypress #activity-stream .wp_ulike_likers_wrapper li a,#buddypress #activity-stream .wp_ulike_likers_wrapper li img{float:none;padding:0;margin:0}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul{margin:0!important}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list li,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul li{list-style-type:none}.wpulike-heart .wp_ulike_general_class{box-shadow:0 0 0 1px #bdbdbd inset;border-radius:.25em;padding:5px}.wpulike-heart .wp_ulike_put_text{padding:0 5px;text-transform:uppercase;font-weight:600;color:#757575}.wpulike-heart .wp_ulike_btn{background:0 0}.wpulike-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:10px}.wpulike-heart .wp_ulike_put_image{background:0 0;padding:15px}.wpulike-heart .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/love.svg) no-repeat;background-size:contain;width:20px;height:20px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-heart .wp_ulike_put_image.image-unlike:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-heart .count-box{font-size:14px;text-decoration:none;line-height:28px;display:inline-block;color:#616161;text-align:center;font-weight:600;vertical-align:middle;padding:0 5px}#buddypress #activity-stream .wpulike-heart .wp_ulike_btn{background:0 0;border:0;font-size:initial;padding:initial}#buddypress #activity-stream .wpulike-heart .wp_ulike_put_image{padding:10px 15px}#buddypress #activity-stream .wpulike-heart .wp_ulike_general_class{border-radius:0;padding:.2em .5em;margin-bottom:0}#buddypress #activity-stream .acomment-options,#buddypress #activity-stream .activity-meta{display:flex;align-items:center}@keyframes animateCircle{40%{transform:scale(10);opacity:1;fill:#dd4688}55%{transform:scale(11);opacity:1;fill:#d46abf}65%{transform:scale(12);opacity:1;fill:#cc8ef5}75%{transform:scale(13);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:.5}85%{transform:scale(17);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:.2}95%{transform:scale(18);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:.1}100%{transform:scale(19);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:0}}@keyframes animateHeart{0%{transform:scale(.2)}40%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes animateHeartOut{0%{transform:scale(1.4)}100%{transform:scale(1)}}.wpulike-robeen .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:5px}.wpulike-robeen .count-box{display:inline-block;vertical-align:middle;font-weight:600}.wpulike-robeen label{display:inline-block;margin:0}.wpulike-robeen svg{cursor:pointer;overflow:visible!important;width:50px;display:inline-block;vertical-align:middle}.wpulike-robeen svg .heart{transform-origin:center;animation:animateHeartOut .3s linear forwards}.wpulike-robeen svg .main-circ{transform-origin:29.5px 29.5px}.wpulike-robeen .wp_ulike_btn{display:none!important}.wpulike-robeen .wp_ulike_btn:checked+svg .heart{transform:scale(.2);fill:#e2264d;animation:animateHeart .3s linear forwards .25s}.wpulike-robeen .wp_ulike_btn:checked+svg .main-circ{transition:all 2s;animation:animateCircle .3s linear forwards;opacity:1}.wpulike-robeen .wp_ulike_btn:checked+svg .grp1{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp1 .oval1{transform:scale(0) translate(0,-30px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp1 .oval2{transform:scale(0) translate(10px,-50px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp2{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp2 .oval1{transform:scale(0) translate(30px,-15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp2 .oval2{transform:scale(0) translate(60px,-15px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp3{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp3 .oval1{transform:scale(0) translate(30px,0);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp3 .oval2{transform:scale(0) translate(60px,10px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp4{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp4 .oval1{transform:scale(0) translate(30px,15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp4 .oval2{transform:scale(0) translate(40px,50px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp5{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp5 .oval1{transform:scale(0) translate(-10px,20px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp5 .oval2{transform:scale(0) translate(-60px,30px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp6{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp6 .oval1{transform:scale(0) translate(-30px,0);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp6 .oval2{transform:scale(0) translate(-60px,-5px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp7{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp7 .oval1{transform:scale(0) translate(-30px,-15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp7 .oval2{transform:scale(0) translate(-55px,-30px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-animated-heart .wp_ulike_btn{position:relative;border-radius:50em;background-color:#fff;padding:0;box-shadow:0 5px 30px rgba(255,111,99,.4);border:0;width:50px;height:50px}.wpulike-animated-heart .wp_ulike_btn.image-unlike{background-color:#ff6f63}.wpulike-animated-heart .wp_ulike_btn.image-unlike .wpulike-svg-heart{fill:#fff}.wpulike-animated-heart .wp_ulike_btn.image-unlike .wpulike-svg-heart-pop{animation-direction:normal}.wpulike-animated-heart .wp_ulike_btn:active{box-shadow:0 0 4px 0 rgba(0,0,0,.25)}.wpulike-animated-heart .wpulike-svg-heart{width:20px;fill:#ff6f63;transition:fill .5s,transform .5s;pointer-events:none;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-animated-heart .wpulike-svg-heart-pop{position:absolute;width:30%;fill:#ff6f63;opacity:0;left:0;animation:popHearts 1s ease forwards reverse}.wpulike-animated-heart .wpulike-svg-heart-pop.one{left:1%;transform:rotate(-10deg);animation-delay:.45}.wpulike-animated-heart .wpulike-svg-heart-pop.two{left:15%;transform:rotate(8deg);animation-delay:.25s}.wpulike-animated-heart .wpulike-svg-heart-pop.three{left:30%;transform:rotate(-5deg);animation-delay:0}.wpulike-animated-heart .wpulike-svg-heart-pop.four{left:50%;transform:rotate(-8deg);animation-delay:.3s}.wpulike-animated-heart .wpulike-svg-heart-pop.five{left:60%;transform:rotate(-10deg);animation-delay:.9s}.wpulike-animated-heart .wpulike-svg-heart-pop.six{left:70%;transform:rotate(-8deg);animation-delay:.2}.wpulike-animated-heart .wpulike-svg-heart-pop.seven{left:85%;transform:rotate(6deg);animation-delay:.35s}.wpulike-animated-heart .wpulike-svg-heart-pop.eight{left:90%;transform:rotate(-4deg);animation-delay:.5s}.wpulike-animated-heart .wpulike-svg-heart-pop.nine{left:95%;transform:rotate(8deg);animation-delay:.2s}.wpulike-animated-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:30px}.wpulike-animated-heart .count-box{margin:0 15px;color:#ff6f63;display:inline-block;vertical-align:middle}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn{background:inherit;border:0;width:40px;height:40px}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn.image-unlike{background-color:#ff6f63}@keyframes popHearts{0%{left:calc(50% - 7px);top:10px}20%{opacity:1}80%{top:-20px}100%{opacity:0}}.wp_ulike_likers_wrapper{margin:10px 0;flex:0 0 100%}.wp_ulike_likers_wrapper:empty{display:none}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transition:all .5s cubic-bezier(.19,1,.22,1);display:block;position:absolute;left:0;transform:translateY(-30px);bottom:0;background:#eee;padding:5px;opacity:0;box-shadow:2px 2px 1px rgba(0,0,0,.1);border-radius:5px;z-index:9}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{content:'';position:absolute;top:100%;left:15px;width:0;height:0;border-top:8px solid #eee;border-right:8px solid transparent;border-left:8px solid transparent}.wp_ulike_likers_wrapper .tiles,.wp_ulike_likers_wrapper .wp-ulike-likers-list{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker,.wp_ulike_likers_wrapper .tiles li,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker,.wp_ulike_likers_wrapper .wp-ulike-likers-list li{padding:3px;margin:0;list-style:none}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .tiles li a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list li a>img{border-radius:5px;display:block;border:0;box-shadow:none}.wpulike:hover .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transform:translateY(-40px);opacity:1}.most_liked_users{list-style-type:none!important;position:relative!important;margin:10px 0!important;padding:0!important}.most_liked_users li{display:inline-table!important;cursor:pointer!important;margin:0 2px!important}.most_liked_users li img{display:block!important;float:none!important}.most_liked_users li.inactive{visibility:hidden!important;opacity:0!important}.commentlist .tiles .avatar,.commentlist .wp-ulike-liker .avatar{left:0!important}.wp_ulike_thumbnail{vertical-align:middle;margin:0 10px 0 0}.most_liked_comment .avatar{vertical-align:middle;margin:0 10px 0 0}.wp_ulike_style_simple .wp_counter_span:before{content:"("}.wp_ulike_style_simple .wp_counter_span:after{content:")"}.wp_ulike_style_love .wp_counter_span{float:right;display:inline-block;background:#f1f1f1 url(../img/icons/heart.png) 5px center no-repeat;color:#333;font-size:9px;line-height:17px;font-weight:400;margin:2px 0 0 2px;vertical-align:middle;border-radius:10px;padding:0 5px 0 23px;z-index:26}.wpulike-notification{position:fixed;z-index:999999;pointer-events:none;right:20px;bottom:20px}.wpulike-notification *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.wpulike-notification .wpulike-message{position:relative;pointer-events:auto;word-wrap:break-word;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 55px;width:280px;border-radius:3px;background-color:#00bcd4;color:#fff;animation:wpUlikeNotifitcationsAnimation .2s backwards;box-shadow:0 3px 5px rgba(0,0,0,.08);font-size:14px;font-weight:500}.wpulike-notification .wpulike-message:hover{opacity:.9;cursor:pointer}.wpulike-notification .wpulike-message:before{content:"";background-position:center center;background-repeat:no-repeat;background-image:url(../img/svg/info.svg);position:absolute;left:0;width:45px;top:0;height:100%;background-color:rgba(0,0,0,.08)}.wpulike-notification .wpulike-message.wpulike-success{background-color:#8bc34a}.wpulike-notification .wpulike-message.wpulike-success:before{background-image:url(../img/svg/success.svg)}.wpulike-notification .wpulike-message.wpulike-error{background-color:#ef5350}.wpulike-notification .wpulike-message.wpulike-error:before{background-image:url(../img/svg/error.svg)}.wpulike-notification .wpulike-message.wpulike-warning{background-color:#ffab00}.wpulike-notification .wpulike-message.wpulike-warning:before{background-image:url(../img/svg/warning.svg)}@keyframes wpUlikeNotifitcationsAnimation{from{opacity:0;transform:translateY(100%)}to{opacity:.8;transform:translateY(0)}}@media all and (max-width:240px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:11em}}@media all and (min-width:241px) and (max-width:480px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:18em}}@media all and (min-width:481px) and (max-width:768px){.wpulike-notification .wpulike-message{padding:15px 15px 15px 55px;width:25em}}/*!>>>>>>>>>>>>>>>>>>>>>>> #RTL <<<<<<<<<<<<<<<<<<<<<<<<<<< */.rtl .wpulike-default .count-box{margin-right:8px;margin-left:inherit}.rtl .wpulike-default .count-box:before{right:-1px;left:auto;border-color:#bdbdbd #bdbdbd transparent transparent}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){left:auto;right:0}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{left:auto;right:15px}.rtl .commentlist .tiles .avatar{left:inherit!important;right:0!important}.rtl .wp_ulike_thumbnail{margin:0 0 0 10px}.rtl .most_liked_comment .avatar{margin:0 0 0 10px}.rtl .wp_ulike_style_love .wp_counter_span{float:left;background:#f1f1f1 url(../img/icons/heart.png) no-repeat scroll 85% center;margin:2px 2px 0 0;padding:0 23px 0 5px}.rtl .wpulike-notification{left:20px;right:inherit}.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}.rtl .wpulike-notification .wpulike-message:before{left:auto;right:0}@media all and (max-width:240px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:241px) and (max-width:480px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:481px) and (max-width:768px){.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}}
|
3 |
* WP ULike
|
4 |
* @author Alimir [https://wordpress.org/plugins/wp-ulike/]
|
5 |
===============================================================
|
6 |
+
*/.wpulike{display:block;position:relative;line-height:normal;margin:0;padding:10px 0}.wpulike .wp_ulike_btn{margin:0;position:relative;display:inline-block;vertical-align:middle;border-radius:.25em;box-shadow:none;padding:15px 25px;border:none;text-align:center;transition-property:none;cursor:pointer}.wpulike .wp_ulike_btn:active,.wpulike .wp_ulike_btn:focus,.wpulike .wp_ulike_btn:hover{outline:0}.wpulike .wp_ulike_put_text{font-size:14px;font-weight:600;line-height:28px;padding:0 10px;min-width:50px}.wpulike .wp_ulike_general_class{display:inline-flex;align-items:center}.wpulike .wp_ulike_is_loading .wp_ulike_btn{background-image:url(../img/svg/loader.svg);background-repeat:no-repeat;background-position:center center}.wpulike .wp_ulike_is_loading .wp_ulike_btn span{visibility:hidden}.wpulike .wp_ulike_is_loading .wp_ulike_btn.wp_ulike_put_image:after{content:none}.wpulike.wpulike-hide-counter .count-box{display:none}.wp_ulike_click_is_disabled{pointer-events:none;cursor:default}.wp_ulike_hide_me{visibility:hidden}.wpulike-default .wp_ulike_btn{color:#616161;background:#e0e0e0;min-height:30px;min-width:50px}.wpulike-default .wp_ulike_is_liked .wp_ulike_btn{color:#757575}.wpulike-default .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/like.svg) no-repeat;background-size:contain;width:16px;height:16px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-default .wp_ulike_put_image.wp_ulike_btn_is_active:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-default .count-box{position:relative;border-radius:.25em;font-size:12px;text-decoration:none;background-color:#fff;margin-left:8px;line-height:28px;display:inline-block;padding:0 10px;box-shadow:0 0 0 1px #bdbdbd inset;color:#616161;vertical-align:middle;text-align:center}.wpulike-default .count-box:before{content:'';position:absolute;border:1px solid transparent;background:#fff;border-bottom-color:#bdbdbd;left:-5px;top:50%;border-left-color:#bdbdbd;transform:rotate(45deg) translatey(-50%);width:5px;height:5px;margin:0}#buddypress #activity-stream .activity-comments .wpulike,#buddypress #activity-stream .activity-meta .wpulike{display:flex;align-items:center;padding:0}#buddypress #activity-stream .activity-comments .wpulike-default .wp_ulike_btn,#buddypress #activity-stream .activity-meta .wpulike-default .wp_ulike_btn{border-radius:0;background-color:#fff;box-shadow:0 0 0 1px #bdbdbd inset;font-size:initial;padding:initial}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker,#buddypress #activity-stream .wp_ulike_likers_wrapper li{border:none;padding:0}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker a,#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker img,#buddypress #activity-stream .wp_ulike_likers_wrapper li a,#buddypress #activity-stream .wp_ulike_likers_wrapper li img{float:none;padding:0;margin:0}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul{margin:0!important}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list li,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul li{list-style-type:none}.wpulike-heart .wp_ulike_general_class{box-shadow:0 0 0 1px #bdbdbd inset;border-radius:.25em;padding:5px}.wpulike-heart .wp_ulike_put_text{padding:0 5px;text-transform:uppercase;font-weight:600;color:#757575}.wpulike-heart .wp_ulike_btn{background:0 0}.wpulike-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:10px}.wpulike-heart .wp_ulike_put_image{background:0 0;padding:15px}.wpulike-heart .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/love.svg) no-repeat;background-size:contain;width:20px;height:20px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-heart .wp_ulike_put_image.wp_ulike_btn_is_active:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-heart .count-box{font-size:14px;text-decoration:none;line-height:28px;display:inline-block;color:#616161;text-align:center;font-weight:600;vertical-align:middle;padding:0 5px}#buddypress #activity-stream .wpulike-heart .wp_ulike_btn{background:0 0;border:0;font-size:initial;padding:initial}#buddypress #activity-stream .wpulike-heart .wp_ulike_put_image{padding:10px 15px}#buddypress #activity-stream .wpulike-heart .wp_ulike_general_class{border-radius:0;padding:.2em .5em;margin-bottom:0}#buddypress #activity-stream .acomment-options,#buddypress #activity-stream .activity-meta{display:flex;align-items:center}@keyframes animateCircle{40%{transform:scale(10);opacity:1;fill:#dd4688}55%{transform:scale(11);opacity:1;fill:#d46abf}65%{transform:scale(12);opacity:1;fill:#cc8ef5}75%{transform:scale(13);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:.5}85%{transform:scale(17);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:.2}95%{transform:scale(18);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:.1}100%{transform:scale(19);opacity:1;fill:transparent;stroke:#cc8ef5;stroke-width:0}}@keyframes animateHeart{0%{transform:scale(.2)}40%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes animateHeartOut{0%{transform:scale(1.4)}100%{transform:scale(1)}}.wpulike-robeen .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:5px}.wpulike-robeen .count-box{display:inline-block;vertical-align:middle;font-weight:600}.wpulike-robeen label{display:inline-block;margin:0}.wpulike-robeen svg{cursor:pointer;overflow:visible!important;width:50px;display:inline-block;vertical-align:middle}.wpulike-robeen svg .heart{transform-origin:center;animation:animateHeartOut .3s linear forwards}.wpulike-robeen svg .main-circ{transform-origin:29.5px 29.5px}.wpulike-robeen .wp_ulike_btn{display:none!important}.wpulike-robeen .wp_ulike_btn:checked+svg .heart{transform:scale(.2);fill:#e2264d;animation:animateHeart .3s linear forwards .25s}.wpulike-robeen .wp_ulike_btn:checked+svg .main-circ{transition:all 2s;animation:animateCircle .3s linear forwards;opacity:1}.wpulike-robeen .wp_ulike_btn:checked+svg .grp1{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp1 .oval1{transform:scale(0) translate(0,-30px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp1 .oval2{transform:scale(0) translate(10px,-50px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp2{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp2 .oval1{transform:scale(0) translate(30px,-15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp2 .oval2{transform:scale(0) translate(60px,-15px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp3{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp3 .oval1{transform:scale(0) translate(30px,0);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp3 .oval2{transform:scale(0) translate(60px,10px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp4{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp4 .oval1{transform:scale(0) translate(30px,15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp4 .oval2{transform:scale(0) translate(40px,50px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp5{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp5 .oval1{transform:scale(0) translate(-10px,20px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp5 .oval2{transform:scale(0) translate(-60px,30px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp6{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp6 .oval1{transform:scale(0) translate(-30px,0);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp6 .oval2{transform:scale(0) translate(-60px,-5px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp7{opacity:1;transition:.1s all .3s;opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp7 .oval1{transform:scale(0) translate(-30px,-15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked+svg .grp7 .oval2{transform:scale(0) translate(-55px,-30px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-animated-heart .wp_ulike_btn{position:relative;border-radius:50em;background-color:#fff;padding:0;box-shadow:0 5px 30px rgba(255,111,99,.4);border:0;width:50px;height:50px}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active{background-color:#ff6f63}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart{fill:#fff}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart-pop{animation-direction:normal}.wpulike-animated-heart .wp_ulike_btn:active{box-shadow:0 0 4px 0 rgba(0,0,0,.25)}.wpulike-animated-heart .wpulike-svg-heart{width:20px;fill:#ff6f63;transition:fill .5s,transform .5s;pointer-events:none;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-animated-heart .wpulike-svg-heart-pop{position:absolute;width:30%;fill:#ff6f63;opacity:0;left:0;animation:popHearts 1s ease forwards reverse}.wpulike-animated-heart .wpulike-svg-heart-pop.one{left:1%;transform:rotate(-10deg);animation-delay:.45}.wpulike-animated-heart .wpulike-svg-heart-pop.two{left:15%;transform:rotate(8deg);animation-delay:.25s}.wpulike-animated-heart .wpulike-svg-heart-pop.three{left:30%;transform:rotate(-5deg);animation-delay:0}.wpulike-animated-heart .wpulike-svg-heart-pop.four{left:50%;transform:rotate(-8deg);animation-delay:.3s}.wpulike-animated-heart .wpulike-svg-heart-pop.five{left:60%;transform:rotate(-10deg);animation-delay:.9s}.wpulike-animated-heart .wpulike-svg-heart-pop.six{left:70%;transform:rotate(-8deg);animation-delay:.2}.wpulike-animated-heart .wpulike-svg-heart-pop.seven{left:85%;transform:rotate(6deg);animation-delay:.35s}.wpulike-animated-heart .wpulike-svg-heart-pop.eight{left:90%;transform:rotate(-4deg);animation-delay:.5s}.wpulike-animated-heart .wpulike-svg-heart-pop.nine{left:95%;transform:rotate(8deg);animation-delay:.2s}.wpulike-animated-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:30px}.wpulike-animated-heart .count-box{margin:0 15px;color:#ff6f63;display:inline-block;vertical-align:middle}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn{background:inherit;border:0;width:40px;height:40px}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active{background-color:#ff6f63}@keyframes popHearts{0%{left:calc(50% - 7px);top:10px}20%{opacity:1}80%{top:-20px}100%{opacity:0}}.wp_ulike_likers_wrapper{margin:10px 0;flex:0 0 100%}.wp_ulike_likers_wrapper:empty{display:none}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transition:all .5s cubic-bezier(.19,1,.22,1);display:block;position:absolute;left:0;transform:translateY(-30px);bottom:0;background:#eee;padding:5px;opacity:0;box-shadow:2px 2px 1px rgba(0,0,0,.1);border-radius:5px;z-index:9}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{content:'';position:absolute;top:100%;left:15px;width:0;height:0;border-top:8px solid #eee;border-right:8px solid transparent;border-left:8px solid transparent}.wp_ulike_likers_wrapper .tiles,.wp_ulike_likers_wrapper .wp-ulike-likers-list{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker,.wp_ulike_likers_wrapper .tiles li,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker,.wp_ulike_likers_wrapper .wp-ulike-likers-list li{padding:3px;margin:0;list-style:none}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .tiles li a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list li a>img{border-radius:5px;display:block;border:0;box-shadow:none}.wpulike:hover .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transform:translateY(-40px);opacity:1}.most_liked_users{list-style-type:none!important;position:relative!important;margin:10px 0!important;padding:0!important}.most_liked_users li{display:inline-table!important;cursor:pointer!important;margin:0 2px!important}.most_liked_users li img{display:block!important;float:none!important}.most_liked_users li.inactive{visibility:hidden!important;opacity:0!important}.commentlist .tiles .avatar,.commentlist .wp-ulike-liker .avatar{left:0!important}.wp_ulike_thumbnail{vertical-align:middle;margin:0 10px 0 0}.most_liked_comment .avatar{vertical-align:middle;margin:0 10px 0 0}.wp_ulike_style_simple .wp_counter_span:before{content:"("}.wp_ulike_style_simple .wp_counter_span:after{content:")"}.wp_ulike_style_love .wp_counter_span{float:right;display:inline-block;background:#f1f1f1 url(../img/icons/heart.png) 5px center no-repeat;color:#333;font-size:9px;line-height:17px;font-weight:400;margin:2px 0 0 2px;vertical-align:middle;border-radius:10px;padding:0 5px 0 23px;z-index:26}.wpulike-notification{position:fixed;z-index:999999;pointer-events:none;right:20px;bottom:20px}.wpulike-notification *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.wpulike-notification .wpulike-message{position:relative;pointer-events:auto;word-wrap:break-word;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 55px;width:280px;border-radius:3px;background-color:#00bcd4;color:#fff;animation:wpUlikeNotifitcationsAnimation .2s backwards;box-shadow:0 3px 5px rgba(0,0,0,.08);font-size:14px;font-weight:500}.wpulike-notification .wpulike-message:hover{opacity:.9;cursor:pointer}.wpulike-notification .wpulike-message:before{content:"";background-position:center center;background-repeat:no-repeat;background-image:url(../img/svg/info.svg);position:absolute;left:0;width:45px;top:0;height:100%;background-color:rgba(0,0,0,.08)}.wpulike-notification .wpulike-message.wpulike-success{background-color:#8bc34a}.wpulike-notification .wpulike-message.wpulike-success:before{background-image:url(../img/svg/success.svg)}.wpulike-notification .wpulike-message.wpulike-error{background-color:#ef5350}.wpulike-notification .wpulike-message.wpulike-error:before{background-image:url(../img/svg/error.svg)}.wpulike-notification .wpulike-message.wpulike-warning{background-color:#ffab00}.wpulike-notification .wpulike-message.wpulike-warning:before{background-image:url(../img/svg/warning.svg)}@keyframes wpUlikeNotifitcationsAnimation{from{opacity:0;transform:translateY(100%)}to{opacity:.8;transform:translateY(0)}}@media all and (max-width:240px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:11em}}@media all and (min-width:241px) and (max-width:480px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:18em}}@media all and (min-width:481px) and (max-width:768px){.wpulike-notification .wpulike-message{padding:15px 15px 15px 55px;width:25em}}/*!>>>>>>>>>>>>>>>>>>>>>>> #RTL <<<<<<<<<<<<<<<<<<<<<<<<<<< */.rtl .wpulike-default .count-box{margin-right:8px;margin-left:inherit}.rtl .wpulike-default .count-box:before{right:-1px;left:auto;border-color:#bdbdbd #bdbdbd transparent transparent}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){left:auto;right:0}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{left:auto;right:15px}.rtl .commentlist .tiles .avatar{left:inherit!important;right:0!important}.rtl .wp_ulike_thumbnail{margin:0 0 0 10px}.rtl .most_liked_comment .avatar{margin:0 0 0 10px}.rtl .wp_ulike_style_love .wp_counter_span{float:left;background:#f1f1f1 url(../img/icons/heart.png) no-repeat scroll 85% center;margin:2px 2px 0 0;padding:0 23px 0 5px}.rtl .wpulike-notification{left:20px;right:inherit}.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}.rtl .wpulike-notification .wpulike-message:before{left:auto;right:0}@media all and (max-width:240px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:241px) and (max-width:480px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:481px) and (max-width:768px){.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}}
|
assets/js/wp-ulike.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WP ULike - v4.0.
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2019;
|
4 |
*/
|
@@ -464,11 +464,9 @@
|
|
464 |
*/
|
465 |
_updateButton: function (btnText, likeStatus) {
|
466 |
if (this.buttonElement.hasClass("wp_ulike_put_image")) {
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
this.siblingElement.find(this.settings.buttonSelector).removeClass("image-unlike");
|
471 |
-
}
|
472 |
}
|
473 |
} else if (this.buttonElement.hasClass("wp_ulike_put_text") && btnText !== null) {
|
474 |
if (typeof btnText !== "object") {
|
1 |
+
/*! WP ULike - v4.0.4
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2019;
|
4 |
*/
|
464 |
*/
|
465 |
_updateButton: function (btnText, likeStatus) {
|
466 |
if (this.buttonElement.hasClass("wp_ulike_put_image")) {
|
467 |
+
this.buttonElement.toggleClass("image-unlike wp_ulike_btn_is_active");
|
468 |
+
if (this.siblingElement.length) {
|
469 |
+
this.siblingElement.find(this.settings.buttonSelector).removeClass("image-unlike wp_ulike_btn_is_active");
|
|
|
|
|
470 |
}
|
471 |
} else if (this.buttonElement.hasClass("wp_ulike_put_text") && btnText !== null) {
|
472 |
if (typeof btnText !== "object") {
|
assets/js/wp-ulike.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(i){"use strict";var s="WordpressUlikeNotifications",n={messageType:"success",messageText:"Hello World!",messageElement:"wpulike-message",notifContainer:"wpulike-notification"};function t(e,t){this.element=e,this.$element=i(e),this.settings=i.extend({},n,t),this._defaults=n,this._name=s,this.init()}i.extend(t.prototype,{init:function(){this._message(),this._container(),this._append(),this._remove()},_message:function(){this.$messageElement=i("<div/>").addClass(this.settings.messageElement+" wpulike-"+this.settings.messageType).text(this.settings.messageText)},_container:function(){i("."+this.settings.notifContainer).length||this.$element.append(i("<div/>").addClass(this.settings.notifContainer)),this.$notifContainer=this.$element.find("."+this.settings.notifContainer)},_append:function(){this.$notifContainer.append(this.$messageElement).trigger("WordpressUlikeNotificationAppend")},_remove:function(){var e=this;this.$messageElement.click(function(){i(this).fadeOut(300,function(){i(this).remove(),i("."+e.settings.messageElement).length||e.$notifContainer.remove()}).trigger("WordpressUlikeRemoveNotification")}),setTimeout(function(){e.$messageElement.fadeOut(300,function(){i(this).remove(),i("."+e.settings.messageElement).length||e.$notifContainer.remove()}).trigger("WordpressUlikeRemoveNotification")},8e3)}}),i.fn[s]=function(e){return this.each(function(){new t(this,e)})}}(jQuery,window,document),function(n,e,i){"use strict";var l="WordpressUlike",t=(n(e),n(i)),a={ID:0,nonce:0,type:"",append:"",appendTimeout:2e3,displayLikers:!1,disablePophover:!0,factor:"",counterSelector:".count-box",generalSelector:".wp_ulike_general_class",buttonSelector:".wp_ulike_btn",likersSelector:".wp_ulike_likers_wrapper"},o={"ulike-id":"ID","ulike-nonce":"nonce","ulike-type":"type","ulike-append":"append","ulike-display-likers":"displayLikers","ulike-disable-pophover":"disablePophover","ulike-append-timeout":"appendTimeout","ulike-factor":"factor"};function s(e,t){for(var i in this.element=e,this.$element=n(e),this.settings=n.extend({},a,t),this._defaults=a,this._name=l,this._refreshTheLikers=!1,this.buttonElement=this.$element.find(this.settings.buttonSelector),this.generalElement=this.$element.find(this.settings.generalSelector),this.counterElement=this.generalElement.find(this.settings.counterSelector),o){var s=this.buttonElement.data(i);void 0!==s&&(this.settings[o[i]]=s)}this.init()}n.extend(s.prototype,{init:function(){this.buttonElement.click(this._initLike.bind(this)),this.buttonElement.one("mouseenter",this._updateLikers.bind(this))},_ajax:function(e,t){n.ajax({url:wp_ulike_params.ajax_url,type:"POST",cache:!1,dataType:"json",data:e}).done(t)},_initLike:function(e){e.stopPropagation(),this._maybeUpdateElements(e),this._updateSameButtons(),this.buttonElement.prop("disabled",!0),t.trigger("WordpressUlikeLoading",this.element),this.generalElement.addClass("wp_ulike_is_loading"),this._ajax({action:"wp_ulike_process",id:this.settings.ID,nonce:this.settings.nonce,factor:this.settings.factor,type:this.settings.type},function(e){this.generalElement.removeClass("wp_ulike_is_loading"),e.success?(this._updateMarkup(e),this._appendChild()):this._sendNotification("error",e.data),this.buttonElement.prop("disabled",!1),t.trigger("WordpressUlikeUpdated",this.element)}.bind(this))},_maybeUpdateElements:function(e){this.buttonElement=n(e.currentTarget),this.generalElement=this.buttonElement.closest(this.settings.generalSelector),this.counterElement=this.generalElement.find(this.settings.counterSelector),this.settings.factor=this.buttonElement.data("ulike-factor")},_appendChild:function(){if(""!==this.settings.append){var e=n(this.settings.append);this.buttonElement.append(e),this.settings.appendTimeout&&setTimeout(function(){e.detach()},this.settings.appendTimeout)}},_updateMarkup:function(e){this._setSbilingElement(),this._updateGeneralClassNames(e.data.status),null!==e.data.data&&(e.data.status<5&&(this.__updateCounter(e.data.data),this._refreshTheLikers=!0),this._updateButton(e.data.btnText,e.data.status)),this._sendNotification(e.data.messageType,e.data.message),this._refreshTheLikers&&this._updateLikers()},_updateGeneralClassNames:function(e){var t="wp_ulike_is_not_liked",i="wp_ulike_is_liked",s="wp_ulike_is_unliked",n="wp_ulike_click_is_disabled";switch(this.siblingElement.length&&this.siblingElement.removeClass(this._arrayToString([i,s])),e){case 1:this.generalElement.addClass(i).removeClass(t),this.generalElement.children().first().addClass(n);break;case 2:this.generalElement.addClass(s).removeClass(i);break;case 3:this.generalElement.addClass(i).removeClass(s);break;default:this.generalElement.children().first().addClass(n),this.siblingElement.length&&this.siblingElement.children().first().addClass(n)}},_arrayToString:function(e){return e.join(" ")},_setSbilingElement:function(){this.siblingElement=this.generalElement.siblings()},__updateCounter:function(e){"object"!=typeof e?this.counterElement.text(e):"down"===this.settings.factor?(this.counterElement.text(e.down),this.siblingElement.length&&this.siblingElement.find(this.settings.counterSelector).text(e.up)):(this.counterElement.text(e.up),this.siblingElement.length&&this.siblingElement.find(this.settings.counterSelector).text(e.down)),t.trigger("WordpressUlikeCounterUpdated",[this.buttonElement])},_updateLikers:function(){this.likersElement=this._getLikersElement(),!this.settings.displayLikers||this.likersElement.length&&!this._refreshTheLikers||(this.generalElement.addClass("wp_ulike_is_getting_likers_list"),this._ajax({action:"wp_ulike_get_likers",id:this.settings.ID,nonce:this.settings.nonce,type:this.settings.type,disablePophover:this.settings.disablePophover,refresh:this._refreshTheLikers?1:0},function(e){this.generalElement.removeClass("wp_ulike_is_getting_likers_list"),e.success&&(this.likersElement.length||(this.likersElement=n("<div>",{class:e.data.class}).appendTo(this.$element)),e.data.template?this.likersElement.show().html(e.data.template):this.likersElement.hide()),this._refreshTheLikers=!1}.bind(this)))},_updateSameButtons:function(){var e=void 0!==this.settings.factor?this.settings.factor:"";this.sameButtons=t.find(".wp_"+this.settings.type.toLowerCase()+e+"_"+this.settings.ID),1<this.sameButtons.length&&(this.buttonElement=this.sameButtons,this.generalElement=this.buttonElement.closest(this.settings.generalSelector),this.counterElement=this.generalElement.find(this.settings.counterSelector))},_getLikersElement:function(){return 1<this.generalElement.length?this.generalElement.next(this.settings.likersSelector):this.$element.find(this.settings.likersSelector)},_updateButton:function(e,t){this.buttonElement.hasClass("wp_ulike_put_image")?
|
1 |
+
!function(i){"use strict";var s="WordpressUlikeNotifications",n={messageType:"success",messageText:"Hello World!",messageElement:"wpulike-message",notifContainer:"wpulike-notification"};function t(e,t){this.element=e,this.$element=i(e),this.settings=i.extend({},n,t),this._defaults=n,this._name=s,this.init()}i.extend(t.prototype,{init:function(){this._message(),this._container(),this._append(),this._remove()},_message:function(){this.$messageElement=i("<div/>").addClass(this.settings.messageElement+" wpulike-"+this.settings.messageType).text(this.settings.messageText)},_container:function(){i("."+this.settings.notifContainer).length||this.$element.append(i("<div/>").addClass(this.settings.notifContainer)),this.$notifContainer=this.$element.find("."+this.settings.notifContainer)},_append:function(){this.$notifContainer.append(this.$messageElement).trigger("WordpressUlikeNotificationAppend")},_remove:function(){var e=this;this.$messageElement.click(function(){i(this).fadeOut(300,function(){i(this).remove(),i("."+e.settings.messageElement).length||e.$notifContainer.remove()}).trigger("WordpressUlikeRemoveNotification")}),setTimeout(function(){e.$messageElement.fadeOut(300,function(){i(this).remove(),i("."+e.settings.messageElement).length||e.$notifContainer.remove()}).trigger("WordpressUlikeRemoveNotification")},8e3)}}),i.fn[s]=function(e){return this.each(function(){new t(this,e)})}}(jQuery,window,document),function(n,e,i){"use strict";var l="WordpressUlike",t=(n(e),n(i)),a={ID:0,nonce:0,type:"",append:"",appendTimeout:2e3,displayLikers:!1,disablePophover:!0,factor:"",counterSelector:".count-box",generalSelector:".wp_ulike_general_class",buttonSelector:".wp_ulike_btn",likersSelector:".wp_ulike_likers_wrapper"},o={"ulike-id":"ID","ulike-nonce":"nonce","ulike-type":"type","ulike-append":"append","ulike-display-likers":"displayLikers","ulike-disable-pophover":"disablePophover","ulike-append-timeout":"appendTimeout","ulike-factor":"factor"};function s(e,t){for(var i in this.element=e,this.$element=n(e),this.settings=n.extend({},a,t),this._defaults=a,this._name=l,this._refreshTheLikers=!1,this.buttonElement=this.$element.find(this.settings.buttonSelector),this.generalElement=this.$element.find(this.settings.generalSelector),this.counterElement=this.generalElement.find(this.settings.counterSelector),o){var s=this.buttonElement.data(i);void 0!==s&&(this.settings[o[i]]=s)}this.init()}n.extend(s.prototype,{init:function(){this.buttonElement.click(this._initLike.bind(this)),this.buttonElement.one("mouseenter",this._updateLikers.bind(this))},_ajax:function(e,t){n.ajax({url:wp_ulike_params.ajax_url,type:"POST",cache:!1,dataType:"json",data:e}).done(t)},_initLike:function(e){e.stopPropagation(),this._maybeUpdateElements(e),this._updateSameButtons(),this.buttonElement.prop("disabled",!0),t.trigger("WordpressUlikeLoading",this.element),this.generalElement.addClass("wp_ulike_is_loading"),this._ajax({action:"wp_ulike_process",id:this.settings.ID,nonce:this.settings.nonce,factor:this.settings.factor,type:this.settings.type},function(e){this.generalElement.removeClass("wp_ulike_is_loading"),e.success?(this._updateMarkup(e),this._appendChild()):this._sendNotification("error",e.data),this.buttonElement.prop("disabled",!1),t.trigger("WordpressUlikeUpdated",this.element)}.bind(this))},_maybeUpdateElements:function(e){this.buttonElement=n(e.currentTarget),this.generalElement=this.buttonElement.closest(this.settings.generalSelector),this.counterElement=this.generalElement.find(this.settings.counterSelector),this.settings.factor=this.buttonElement.data("ulike-factor")},_appendChild:function(){if(""!==this.settings.append){var e=n(this.settings.append);this.buttonElement.append(e),this.settings.appendTimeout&&setTimeout(function(){e.detach()},this.settings.appendTimeout)}},_updateMarkup:function(e){this._setSbilingElement(),this._updateGeneralClassNames(e.data.status),null!==e.data.data&&(e.data.status<5&&(this.__updateCounter(e.data.data),this._refreshTheLikers=!0),this._updateButton(e.data.btnText,e.data.status)),this._sendNotification(e.data.messageType,e.data.message),this._refreshTheLikers&&this._updateLikers()},_updateGeneralClassNames:function(e){var t="wp_ulike_is_not_liked",i="wp_ulike_is_liked",s="wp_ulike_is_unliked",n="wp_ulike_click_is_disabled";switch(this.siblingElement.length&&this.siblingElement.removeClass(this._arrayToString([i,s])),e){case 1:this.generalElement.addClass(i).removeClass(t),this.generalElement.children().first().addClass(n);break;case 2:this.generalElement.addClass(s).removeClass(i);break;case 3:this.generalElement.addClass(i).removeClass(s);break;default:this.generalElement.children().first().addClass(n),this.siblingElement.length&&this.siblingElement.children().first().addClass(n)}},_arrayToString:function(e){return e.join(" ")},_setSbilingElement:function(){this.siblingElement=this.generalElement.siblings()},__updateCounter:function(e){"object"!=typeof e?this.counterElement.text(e):"down"===this.settings.factor?(this.counterElement.text(e.down),this.siblingElement.length&&this.siblingElement.find(this.settings.counterSelector).text(e.up)):(this.counterElement.text(e.up),this.siblingElement.length&&this.siblingElement.find(this.settings.counterSelector).text(e.down)),t.trigger("WordpressUlikeCounterUpdated",[this.buttonElement])},_updateLikers:function(){this.likersElement=this._getLikersElement(),!this.settings.displayLikers||this.likersElement.length&&!this._refreshTheLikers||(this.generalElement.addClass("wp_ulike_is_getting_likers_list"),this._ajax({action:"wp_ulike_get_likers",id:this.settings.ID,nonce:this.settings.nonce,type:this.settings.type,disablePophover:this.settings.disablePophover,refresh:this._refreshTheLikers?1:0},function(e){this.generalElement.removeClass("wp_ulike_is_getting_likers_list"),e.success&&(this.likersElement.length||(this.likersElement=n("<div>",{class:e.data.class}).appendTo(this.$element)),e.data.template?this.likersElement.show().html(e.data.template):this.likersElement.hide()),this._refreshTheLikers=!1}.bind(this)))},_updateSameButtons:function(){var e=void 0!==this.settings.factor?this.settings.factor:"";this.sameButtons=t.find(".wp_"+this.settings.type.toLowerCase()+e+"_"+this.settings.ID),1<this.sameButtons.length&&(this.buttonElement=this.sameButtons,this.generalElement=this.buttonElement.closest(this.settings.generalSelector),this.counterElement=this.generalElement.find(this.settings.counterSelector))},_getLikersElement:function(){return 1<this.generalElement.length?this.generalElement.next(this.settings.likersSelector):this.$element.find(this.settings.likersSelector)},_updateButton:function(e,t){this.buttonElement.hasClass("wp_ulike_put_image")?(this.buttonElement.toggleClass("image-unlike wp_ulike_btn_is_active"),this.siblingElement.length&&this.siblingElement.find(this.settings.buttonSelector).removeClass("image-unlike wp_ulike_btn_is_active")):this.buttonElement.hasClass("wp_ulike_put_text")&&null!==e&&("object"!=typeof e?this.buttonElement.find("span").html(e):"down"===this.settings.factor?(this.buttonElement.find("span").html(e.down),this.siblingElement.length&&this.siblingElement.find(this.settings.buttonSelector).find("span").html(e.up)):(this.buttonElement.find("span").html(e.up),this.siblingElement.length&&this.siblingElement.find(this.settings.buttonSelector).find("span").html(e.down)))},_sendNotification:function(e,t){"1"===wp_ulike_params.notifications&&n(i.body).WordpressUlikeNotifications({messageType:e,messageText:t})}}),n.fn[l]=function(e){return this.each(function(){n.data(this,"plugin_"+l)||n.data(this,"plugin_"+l,new s(this,e))})}}(jQuery,window,document),function(t){t(function(){t(this).bind("DOMNodeInserted",function(e){t(".wpulike").WordpressUlike()})}),t(".wpulike").WordpressUlike()}(jQuery);
|
inc/classes/class-wp-ulike.php
CHANGED
@@ -365,10 +365,14 @@ if ( ! class_exists( 'wp_ulike' ) ) {
|
|
365 |
//Button text value
|
366 |
$button_text = '';
|
367 |
|
368 |
-
|
|
|
|
|
|
|
|
|
369 |
$button_class_name .= ' wp_ulike_put_image';
|
370 |
if($status == 2){
|
371 |
-
$button_class_name .= ' image-unlike';
|
372 |
}
|
373 |
} else {
|
374 |
$button_class_name .= ' wp_ulike_put_text';
|
@@ -378,6 +382,7 @@ if ( ! class_exists( 'wp_ulike' ) ) {
|
|
378 |
$button_text = wp_ulike_get_button_text( 'button_text' );
|
379 |
}
|
380 |
}
|
|
|
381 |
// Add unique class name for each button
|
382 |
$button_class_name .= strtolower( ' wp_' . $args['method'] . '_' . $args['id'] );
|
383 |
|
@@ -421,27 +426,12 @@ if ( ! class_exists( 'wp_ulike' ) ) {
|
|
421 |
"button_text" => $button_text,
|
422 |
"general_class" => esc_attr( $general_class_name ),
|
423 |
"button_class" => esc_attr( $button_class_name )
|
424 |
-
), $args
|
425 |
);
|
426 |
|
|
|
427 |
|
428 |
-
|
429 |
-
|
430 |
-
$output = '';
|
431 |
-
|
432 |
-
foreach( $wp_ulike_callback as $key => $value ){
|
433 |
-
if ( $key === $args['style'] ) {
|
434 |
-
$output = call_user_func( $value['callback'], $wp_ulike_template );
|
435 |
-
break;
|
436 |
-
}
|
437 |
-
}
|
438 |
-
|
439 |
-
// Get default template, if template key not exist anymore.
|
440 |
-
if( empty( $output ) ){
|
441 |
-
$output = call_user_func( 'wp_ulike_set_default_template', $wp_ulike_template );
|
442 |
-
}
|
443 |
-
|
444 |
-
return apply_filters( 'wp_ulike_return_final_templates', preg_replace( '~>\s*\n\s*<~', '><', $output ), $wp_ulike_template );
|
445 |
|
446 |
}
|
447 |
|
365 |
//Button text value
|
366 |
$button_text = '';
|
367 |
|
368 |
+
// Get all template callback list
|
369 |
+
$temp_list = call_user_func( 'wp_ulike_generate_templates_list' );
|
370 |
+
$func_name = isset( $temp_list[ $args['style'] ]['callback'] ) ? $temp_list[ $args['style'] ]['callback'] : 'wp_ulike_set_default_template';
|
371 |
+
|
372 |
+
if( $args['button_type'] == 'image' || ( isset( $temp_list[$args['style']]['is_text_support'] ) && ! $temp_list[$args['style']]['is_text_support'] ) ){
|
373 |
$button_class_name .= ' wp_ulike_put_image';
|
374 |
if($status == 2){
|
375 |
+
$button_class_name .= ' image-unlike wp_ulike_btn_is_active';
|
376 |
}
|
377 |
} else {
|
378 |
$button_class_name .= ' wp_ulike_put_text';
|
382 |
$button_text = wp_ulike_get_button_text( 'button_text' );
|
383 |
}
|
384 |
}
|
385 |
+
|
386 |
// Add unique class name for each button
|
387 |
$button_class_name .= strtolower( ' wp_' . $args['method'] . '_' . $args['id'] );
|
388 |
|
426 |
"button_text" => $button_text,
|
427 |
"general_class" => esc_attr( $general_class_name ),
|
428 |
"button_class" => esc_attr( $button_class_name )
|
429 |
+
), $args, $temp_list
|
430 |
);
|
431 |
|
432 |
+
$final_template = call_user_func( $func_name, $wp_ulike_template );
|
433 |
|
434 |
+
return apply_filters( 'wp_ulike_return_final_templates', preg_replace( '~>\s*\n\s*<~', '><', $final_template ), $wp_ulike_template );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
|
436 |
}
|
437 |
|
inc/general-functions.php
CHANGED
@@ -145,24 +145,28 @@ if( ! function_exists( 'wp_ulike_generate_templates_list' ) ){
|
|
145 |
function wp_ulike_generate_templates_list(){
|
146 |
$default = array(
|
147 |
'wpulike-default' => array(
|
148 |
-
'name'
|
149 |
-
'callback'
|
150 |
-
'symbol'
|
|
|
151 |
),
|
152 |
'wpulike-heart' => array(
|
153 |
-
'name'
|
154 |
-
'callback'
|
155 |
-
'symbol'
|
|
|
156 |
),
|
157 |
'wpulike-robeen' => array(
|
158 |
-
'name'
|
159 |
-
'callback'
|
160 |
-
'symbol'
|
|
|
161 |
),
|
162 |
'wpulike-animated-heart' => array(
|
163 |
-
'name'
|
164 |
-
'callback'
|
165 |
-
'symbol'
|
|
|
166 |
)
|
167 |
);
|
168 |
|
@@ -788,9 +792,10 @@ if( ! function_exists( 'wp_ulike_get_counter_value_info' ) ){
|
|
788 |
* @param string $type
|
789 |
* @param string $status
|
790 |
* @param boolean $is_distinct
|
|
|
791 |
* @return WP_Error[]|integer
|
792 |
*/
|
793 |
-
function wp_ulike_get_counter_value_info( $ID, $type, $status = 'like', $is_distinct = true ){
|
794 |
global $wpdb;
|
795 |
|
796 |
$status = ltrim( $status, 'un');
|
@@ -799,19 +804,23 @@ if( ! function_exists( 'wp_ulike_get_counter_value_info' ) ){
|
|
799 |
return new WP_Error( 'broke', __( "Please enter some value for required variables.", WP_ULIKE_SLUG ) );
|
800 |
}
|
801 |
|
|
|
|
|
|
|
802 |
// get table info
|
803 |
-
$table_info
|
804 |
if( empty( $table_info ) ){
|
805 |
return new WP_Error( 'broke', __( "Table info is empty.", WP_ULIKE_SLUG ) );
|
806 |
}
|
807 |
|
808 |
$query = sprintf(
|
809 |
-
"SELECT COUNT(%s) FROM %s WHERE %s AND `%s` = '%s'",
|
810 |
esc_sql( $is_distinct ? "DISTINCT `user_id`" : "*" ),
|
811 |
esc_sql( $wpdb->prefix . $table_info['table'] ),
|
812 |
-
esc_sql( $status !== 'all' ? "`status` = '$status'" : "
|
813 |
esc_sql( $table_info['column'] ),
|
814 |
-
esc_sql( $ID )
|
|
|
815 |
);
|
816 |
|
817 |
$result = $wpdb->get_var( stripslashes( $query ) );
|
@@ -834,10 +843,11 @@ if( ! function_exists( 'wp_ulike_get_counter_value' ) ){
|
|
834 |
* @param string $type
|
835 |
* @param string $status
|
836 |
* @param boolean $is_distinct
|
|
|
837 |
* @return integer
|
838 |
*/
|
839 |
-
function wp_ulike_get_counter_value( $ID, $type, $status = 'like', $is_distinct = true ){
|
840 |
-
$counter_info = wp_ulike_get_counter_value_info( $ID, $type, $status, $is_distinct );
|
841 |
return ! is_wp_error( $counter_info ) ? $counter_info : 0;
|
842 |
}
|
843 |
}
|
@@ -1588,33 +1598,7 @@ if( ! function_exists( 'wp_ulike_get_popular_items_info' ) ){
|
|
1588 |
);
|
1589 |
$parsed_args = wp_parse_args( $args, $defaults );
|
1590 |
$info_args = wp_ulike_get_table_info( $parsed_args['type'] );
|
1591 |
-
$period_limit = '';
|
1592 |
-
|
1593 |
-
if( is_array( $parsed_args['period'] ) && isset( $parsed_args['period']['start'] ) ){
|
1594 |
-
if( $parsed_args['period']['start'] === $parsed_args['period']['end'] ){
|
1595 |
-
$period_limit = sprintf( 'AND DATE(`date_time`) = \'%s\'', $parsed_args['period']['start'] );
|
1596 |
-
} else {
|
1597 |
-
$period_limit = sprintf( 'AND DATE(`date_time`) >= \'%s\' AND DATE(`date_time`) <= \'%s\'', $parsed_args['period']['start'], $parsed_args['period']['end'] );
|
1598 |
-
}
|
1599 |
-
} else {
|
1600 |
-
switch ($parsed_args['period']) {
|
1601 |
-
case "today":
|
1602 |
-
$period_limit = "AND DATE(date_time) = DATE(NOW())";
|
1603 |
-
break;
|
1604 |
-
case "yesterday":
|
1605 |
-
$period_limit = "AND DATE(date_time) = DATE(subdate(current_date, 1))";
|
1606 |
-
break;
|
1607 |
-
case "week":
|
1608 |
-
$period_limit = "AND week(DATE(date_time)) = week(DATE(NOW()))";
|
1609 |
-
break;
|
1610 |
-
case "month":
|
1611 |
-
$period_limit = "AND month(DATE(date_time)) = month(DATE(NOW()))";
|
1612 |
-
break;
|
1613 |
-
case "year":
|
1614 |
-
$period_limit = "AND year(DATE(date_time)) = year(DATE(NOW()))";
|
1615 |
-
break;
|
1616 |
-
}
|
1617 |
-
}
|
1618 |
|
1619 |
$status_type = '';
|
1620 |
if( is_array( $parsed_args['status'] ) ){
|
@@ -1858,7 +1842,7 @@ if( ! function_exists( 'wp_ulike_get_custom_style' ) ){
|
|
1858 |
|
1859 |
// Unlike Icon
|
1860 |
if( $get_like_icon = wp_get_attachment_url( wp_ulike_get_setting( 'wp_ulike_general', 'button_url_u' ) ) ) {
|
1861 |
-
$return_style .= '.wp_ulike_btn.wp_ulike_put_image.
|
1862 |
}
|
1863 |
|
1864 |
if( wp_ulike_get_setting( 'wp_ulike_customize', 'custom_style' ) ) {
|
@@ -2159,24 +2143,7 @@ if( ! function_exists('wp_ulike_get_best_likers_info') ){
|
|
2159 |
function wp_ulike_get_best_likers_info( $number, $peroid ){
|
2160 |
global $wpdb;
|
2161 |
// Peroid limit SQL
|
2162 |
-
$period_limit =
|
2163 |
-
switch ($peroid) {
|
2164 |
-
case "today":
|
2165 |
-
$period_limit = "AND DATE(date_time) = DATE(NOW())";
|
2166 |
-
break;
|
2167 |
-
case "yesterday":
|
2168 |
-
$period_limit = "AND DATE(date_time) = DATE(subdate(current_date, 1))";
|
2169 |
-
break;
|
2170 |
-
case "week":
|
2171 |
-
$period_limit = "AND week(DATE(date_time)) = week(DATE(NOW()))";
|
2172 |
-
break;
|
2173 |
-
case "month":
|
2174 |
-
$period_limit = "AND month(DATE(date_time)) = month(DATE(NOW()))";
|
2175 |
-
break;
|
2176 |
-
case "year":
|
2177 |
-
$period_limit = "AND year(DATE(date_time)) = year(DATE(NOW()))";
|
2178 |
-
break;
|
2179 |
-
}
|
2180 |
|
2181 |
$query = sprintf( 'SELECT T.user_id, SUM(T.CountUser) AS SumUser
|
2182 |
FROM(
|
@@ -2212,6 +2179,45 @@ if( ! function_exists('wp_ulike_get_best_likers_info') ){
|
|
2212 |
}
|
2213 |
}
|
2214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2215 |
|
2216 |
/*******************************************************
|
2217 |
Templates
|
145 |
function wp_ulike_generate_templates_list(){
|
146 |
$default = array(
|
147 |
'wpulike-default' => array(
|
148 |
+
'name' => __('Default', WP_ULIKE_SLUG),
|
149 |
+
'callback' => 'wp_ulike_set_default_template',
|
150 |
+
'symbol' => WP_ULIKE_ASSETS_URL . '/img/svg/default.svg',
|
151 |
+
'is_text_support' => true
|
152 |
),
|
153 |
'wpulike-heart' => array(
|
154 |
+
'name' => __('Heart', WP_ULIKE_SLUG),
|
155 |
+
'callback' => 'wp_ulike_set_simple_heart_template',
|
156 |
+
'symbol' => WP_ULIKE_ASSETS_URL . '/img/svg/heart.svg',
|
157 |
+
'is_text_support' => true
|
158 |
),
|
159 |
'wpulike-robeen' => array(
|
160 |
+
'name' => __('Twitter Heart', WP_ULIKE_SLUG),
|
161 |
+
'callback' => 'wp_ulike_set_robeen_template',
|
162 |
+
'symbol' => WP_ULIKE_ASSETS_URL . '/img/svg/twitter.svg',
|
163 |
+
'is_text_support' => false
|
164 |
),
|
165 |
'wpulike-animated-heart' => array(
|
166 |
+
'name' => __('Animated Heart', WP_ULIKE_SLUG),
|
167 |
+
'callback' => 'wp_ulike_set_animated_heart_template',
|
168 |
+
'symbol' => WP_ULIKE_ASSETS_URL . '/img/svg/animated-heart.svg',
|
169 |
+
'is_text_support' => false
|
170 |
)
|
171 |
);
|
172 |
|
792 |
* @param string $type
|
793 |
* @param string $status
|
794 |
* @param boolean $is_distinct
|
795 |
+
* @param string|array $date_range
|
796 |
* @return WP_Error[]|integer
|
797 |
*/
|
798 |
+
function wp_ulike_get_counter_value_info( $ID, $type, $status = 'like', $is_distinct = true, $date_range = NULL ){
|
799 |
global $wpdb;
|
800 |
|
801 |
$status = ltrim( $status, 'un');
|
804 |
return new WP_Error( 'broke', __( "Please enter some value for required variables.", WP_ULIKE_SLUG ) );
|
805 |
}
|
806 |
|
807 |
+
// Peroid limit SQL
|
808 |
+
$period_limit = wp_ulike_get_period_limit_sql( $date_range );
|
809 |
+
|
810 |
// get table info
|
811 |
+
$table_info = wp_ulike_get_table_info( $type );
|
812 |
if( empty( $table_info ) ){
|
813 |
return new WP_Error( 'broke', __( "Table info is empty.", WP_ULIKE_SLUG ) );
|
814 |
}
|
815 |
|
816 |
$query = sprintf(
|
817 |
+
"SELECT COUNT(%s) FROM %s WHERE %s AND `%s` = '%s' %s",
|
818 |
esc_sql( $is_distinct ? "DISTINCT `user_id`" : "*" ),
|
819 |
esc_sql( $wpdb->prefix . $table_info['table'] ),
|
820 |
+
esc_sql( $status !== 'all' ? "`status` = '$status'" : "`status` NOT LIKE 'un%'" ),
|
821 |
esc_sql( $table_info['column'] ),
|
822 |
+
esc_sql( $ID ),
|
823 |
+
esc_sql( $period_limit )
|
824 |
);
|
825 |
|
826 |
$result = $wpdb->get_var( stripslashes( $query ) );
|
843 |
* @param string $type
|
844 |
* @param string $status
|
845 |
* @param boolean $is_distinct
|
846 |
+
* @param string|array $date_range
|
847 |
* @return integer
|
848 |
*/
|
849 |
+
function wp_ulike_get_counter_value( $ID, $type, $status = 'like', $is_distinct = true, $date_range = NULL ){
|
850 |
+
$counter_info = wp_ulike_get_counter_value_info( $ID, $type, $status, $is_distinct, $date_range );
|
851 |
return ! is_wp_error( $counter_info ) ? $counter_info : 0;
|
852 |
}
|
853 |
}
|
1598 |
);
|
1599 |
$parsed_args = wp_parse_args( $args, $defaults );
|
1600 |
$info_args = wp_ulike_get_table_info( $parsed_args['type'] );
|
1601 |
+
$period_limit = wp_ulike_get_period_limit_sql( $parsed_args['period'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1602 |
|
1603 |
$status_type = '';
|
1604 |
if( is_array( $parsed_args['status'] ) ){
|
1842 |
|
1843 |
// Unlike Icon
|
1844 |
if( $get_like_icon = wp_get_attachment_url( wp_ulike_get_setting( 'wp_ulike_general', 'button_url_u' ) ) ) {
|
1845 |
+
$return_style .= '.wp_ulike_btn.wp_ulike_put_image.wp_ulike_btn_is_active:after { background-image: url('.$get_like_icon.') !important; filter: none; }';
|
1846 |
}
|
1847 |
|
1848 |
if( wp_ulike_get_setting( 'wp_ulike_customize', 'custom_style' ) ) {
|
2143 |
function wp_ulike_get_best_likers_info( $number, $peroid ){
|
2144 |
global $wpdb;
|
2145 |
// Peroid limit SQL
|
2146 |
+
$period_limit = wp_ulike_get_period_limit_sql( $peroid );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2147 |
|
2148 |
$query = sprintf( 'SELECT T.user_id, SUM(T.CountUser) AS SumUser
|
2149 |
FROM(
|
2179 |
}
|
2180 |
}
|
2181 |
|
2182 |
+
if( ! function_exists('wp_ulike_get_period_limit_sql') ){
|
2183 |
+
/**
|
2184 |
+
* Get period limit as a sql string
|
2185 |
+
*
|
2186 |
+
* @param string|array $date_range
|
2187 |
+
* @return string
|
2188 |
+
*/
|
2189 |
+
function wp_ulike_get_period_limit_sql( $date_range ){
|
2190 |
+
$period_limit = '';
|
2191 |
+
|
2192 |
+
if( is_array( $date_range ) && isset( $date_range['start'] ) ){
|
2193 |
+
if( $date_range['start'] === $date_range['end'] ){
|
2194 |
+
$period_limit = sprintf( 'AND DATE(`date_time`) = \'%s\'', $date_range['start'] );
|
2195 |
+
} else {
|
2196 |
+
$period_limit = sprintf( 'AND DATE(`date_time`) >= \'%s\' AND DATE(`date_time`) <= \'%s\'', $date_range['start'], $date_range['end'] );
|
2197 |
+
}
|
2198 |
+
} elseif( !empty( $date_range )) {
|
2199 |
+
switch ($date_range) {
|
2200 |
+
case "today":
|
2201 |
+
$period_limit = " AND DATE(date_time) = DATE(NOW())";
|
2202 |
+
break;
|
2203 |
+
case "yesterday":
|
2204 |
+
$period_limit = " AND DATE(date_time) = DATE(subdate(current_date, 1))";
|
2205 |
+
break;
|
2206 |
+
case "week":
|
2207 |
+
$period_limit = " AND week(DATE(date_time)) = week(DATE(NOW()))";
|
2208 |
+
break;
|
2209 |
+
case "month":
|
2210 |
+
$period_limit = " AND month(DATE(date_time)) = month(DATE(NOW()))";
|
2211 |
+
break;
|
2212 |
+
case "year":
|
2213 |
+
$period_limit = " AND year(DATE(date_time)) = year(DATE(NOW()))";
|
2214 |
+
break;
|
2215 |
+
}
|
2216 |
+
}
|
2217 |
+
|
2218 |
+
return $period_limit;
|
2219 |
+
}
|
2220 |
+
}
|
2221 |
|
2222 |
/*******************************************************
|
2223 |
Templates
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: wp ulike, like button, elementor, like, dislike, wordpress youlike plugin,
|
|
6 |
Requires PHP: 5.4
|
7 |
Requires at least: 3.5.0
|
8 |
Tested up to: 5.3.1
|
9 |
-
Stable tag: 4.0.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -184,6 +184,14 @@ define( 'WP_MEMORY_LIMIT', '256M' );
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
= 4.0.3 =
|
188 |
* Added: A new option for some users who have upgraded to version +4 and deleted their old logs which can add the number of old likes to the new figures.
|
189 |
* Added: A new condition to hide "leave review" banner.
|
6 |
Requires PHP: 5.4
|
7 |
Requires at least: 3.5.0
|
8 |
Tested up to: 5.3.1
|
9 |
+
Stable tag: 4.0.4
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 4.0.4 =
|
188 |
+
* Added: 3 new templates. (Rating Face, Rating Boy, Rating Girl) [PRO]
|
189 |
+
* Tweak: Added date range filter for top likers widget. [PRO]
|
190 |
+
* Tweak: Date range support in get counter value function.
|
191 |
+
* Tweak: Some improvements in button class names.
|
192 |
+
* Tweak: Added some improvements statistics panel.
|
193 |
+
* Fixed: Fix an issue with template callback.
|
194 |
+
|
195 |
= 4.0.3 =
|
196 |
* Added: A new option for some users who have upgraded to version +4 and deleted their old logs which can add the number of old likes to the new figures.
|
197 |
* Added: A new condition to hide "leave review" banner.
|
wp-ulike.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: WP ULike
|
11 |
* Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
12 |
* Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
|
13 |
-
* Version: 4.0.
|
14 |
* Author: Ali Mirzaei
|
15 |
* Author URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
16 |
* Text Domain: wp-ulike
|
@@ -46,7 +46,7 @@ if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
|
|
46 |
|
47 |
// Do not change these values
|
48 |
define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
|
49 |
-
define( 'WP_ULIKE_VERSION' , '4.0.
|
50 |
define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
|
51 |
define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
|
52 |
|
@@ -380,8 +380,8 @@ if ( ! class_exists( 'WpUlikeInit' ) ) :
|
|
380 |
public function after_activation( $plugin ) {
|
381 |
if( $plugin == WP_ULIKE_BASENAME ) {
|
382 |
// Redirect to the about page
|
383 |
-
if(
|
384 |
-
|
385 |
}
|
386 |
}
|
387 |
}
|
10 |
* Plugin Name: WP ULike
|
11 |
* Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
12 |
* Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
|
13 |
+
* Version: 4.0.4
|
14 |
* Author: Ali Mirzaei
|
15 |
* Author URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
16 |
* Text Domain: wp-ulike
|
46 |
|
47 |
// Do not change these values
|
48 |
define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
|
49 |
+
define( 'WP_ULIKE_VERSION' , '4.0.4' );
|
50 |
define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
|
51 |
define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
|
52 |
|
380 |
public function after_activation( $plugin ) {
|
381 |
if( $plugin == WP_ULIKE_BASENAME ) {
|
382 |
// Redirect to the about page
|
383 |
+
if( wp_safe_redirect( admin_url( 'admin.php?page=wp-ulike-about' ) ) ) {
|
384 |
+
exit;
|
385 |
}
|
386 |
}
|
387 |
}
|