Version Description
- A performance notice will be displayed for mid/high traffic sites (see #239).
- Fixed an issue with text_title content tag not being shortened (see #241).
- Added a link to the Debug screen to the plugin's dashboard for ease of access.
- Other minor improvements/changes.
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 5.0.2 |
Comparing to | |
See all releases |
Code changes from version 5.0.1 to 5.0.2
- i18n/wordpress-popular-posts.pot +222 -214
- readme.txt +10 -3
- src/Activation/Deactivator.php +1 -0
- src/Admin/Admin.php +116 -1
- src/Admin/admin-page.php +39 -2
- src/Bootstrap.php +3 -4
- src/Helper.php +12 -0
- src/Output.php +6 -1
- src/WPP_Query.php +0 -27
- src/deprecated.php +45 -0
- src/template-tags.php +0 -10
- uninstall.php +34 -49
- wordpress-popular-posts.php +2 -2
i18n/wordpress-popular-posts.pot
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Popular Posts\n"
|
7 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"PO-Revision-Date: 2015-04-24 13:30-0430\n"
|
10 |
"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
|
11 |
"Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
|
@@ -22,98 +22,106 @@ msgstr ""
|
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
"X-Poedit-SearchPath-1: ..\n"
|
24 |
|
25 |
-
#: ../src/Admin/Admin.php:
|
26 |
#, php-format
|
27 |
msgid "%s view in the last hour"
|
28 |
msgid_plural "%s views in the last hour"
|
29 |
msgstr[0] ""
|
30 |
msgstr[1] ""
|
31 |
|
32 |
-
#: ../src/Admin/Admin.php:
|
33 |
msgid "Trending now"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: ../src/Admin/Admin.php:
|
37 |
msgid "View more"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: ../src/Admin/Admin.php:
|
41 |
msgid "Use this image"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: ../src/Admin/Admin.php:
|
45 |
msgid "Overview"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: ../src/Admin/Admin.php:
|
49 |
msgid ""
|
50 |
"Welcome to WordPress Popular Posts' Dashboard! In this screen you will find statistics "
|
51 |
"on what's popular on your site, tools to further tweak WPP to your needs, and more!"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: ../src/Admin/Admin.php:
|
55 |
msgid "Like this plugin?"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: ../src/Admin/Admin.php:
|
59 |
msgid ""
|
60 |
"Each donation motivates me to keep releasing free stuff for the WordPress community!"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../src/Admin/Admin.php:
|
64 |
#, php-format
|
65 |
msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: ../src/Admin/Admin.php:
|
69 |
#, php-format
|
70 |
msgid ""
|
71 |
"<p><strong>For more information:</strong></p><ul><li><a href=\"%1$s\">Documentation</"
|
72 |
"a></li><li><a href=\"%2$s\">Support</a></li></ul>"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../src/Admin/Admin.php:
|
76 |
msgid "Settings"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../src/Admin/Admin.php:
|
80 |
-
#: ../src/Output.php:
|
81 |
#, php-format
|
82 |
msgid "%s view"
|
83 |
msgid_plural "%s views"
|
84 |
msgstr[0] ""
|
85 |
msgstr[1] ""
|
86 |
|
87 |
-
#: ../src/Admin/Admin.php:
|
88 |
-
#: ../src/Output.php:
|
89 |
#, php-format
|
90 |
msgid "%s comment"
|
91 |
msgid_plural "%s comments"
|
92 |
msgstr[0] ""
|
93 |
msgstr[1] ""
|
94 |
|
95 |
-
#: ../src/Admin/Admin.php:
|
96 |
msgid "Comments"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: ../src/Admin/Admin.php:
|
100 |
msgid "Views"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: ../src/Admin/Admin.php:
|
104 |
msgid "View"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: ../src/Admin/Admin.php:
|
108 |
msgid "Edit"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: ../src/Admin/Admin.php:
|
112 |
msgid ""
|
113 |
"Looks like your site's activity is a little low right now. <br />Spread the word and "
|
114 |
"come back later!"
|
115 |
msgstr ""
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
#: ../src/Admin/admin-page.php:6 ../src/Admin/admin-page.php:240
|
118 |
msgid "Stats"
|
119 |
msgstr ""
|
@@ -197,76 +205,76 @@ msgstr ""
|
|
197 |
msgid "Menu"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: ../src/Admin/admin-page.php:
|
201 |
msgid "Post type"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: ../src/Admin/admin-page.php:
|
205 |
msgid "Limit"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: ../src/Admin/admin-page.php:
|
209 |
msgid "Display only posts published within the selected Time Range"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: ../src/Admin/admin-page.php:
|
213 |
-
#: ../src/Admin/admin-page.php:
|
214 |
-
#: ../src/Admin/admin-page.php:
|
215 |
msgid "Apply"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: ../src/Admin/admin-page.php:
|
219 |
msgid "Cancel"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: ../src/Admin/admin-page.php:
|
223 |
msgid "Custom Time Range"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: ../src/Admin/admin-page.php:
|
227 |
msgid "Date Range"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: ../src/Admin/admin-page.php:
|
231 |
#: ../src/Widget/form.php:45
|
232 |
msgid "Minute(s)"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: ../src/Admin/admin-page.php:
|
236 |
#: ../src/Widget/form.php:46
|
237 |
msgid "Hour(s)"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: ../src/Admin/admin-page.php:
|
241 |
#: ../src/Widget/form.php:47
|
242 |
msgid "Day(s)"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: ../src/Admin/admin-page.php:
|
246 |
msgid "Select a date..."
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: ../src/Admin/admin-page.php:
|
250 |
msgid "Today"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: ../src/Admin/admin-page.php:
|
254 |
msgid "Last 24 hours"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: ../src/Admin/admin-page.php:
|
258 |
msgid "Last 7 days"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: ../src/Admin/admin-page.php:
|
262 |
msgid "Last 30 days"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: ../src/Admin/admin-page.php:
|
266 |
msgid "Custom"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: ../src/Admin/admin-page.php:
|
270 |
#, php-format
|
271 |
msgid ""
|
272 |
"Err... A nice little chart is supposed to be here, instead you are seeing this because "
|
@@ -274,196 +282,196 @@ msgid ""
|
|
274 |
"browser</a>."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: ../src/Admin/admin-page.php:
|
278 |
msgid "Most viewed"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: ../src/Admin/admin-page.php:
|
282 |
msgid "Most commented"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: ../src/Admin/admin-page.php:
|
286 |
msgid "Hall of Fame"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: ../src/Admin/admin-page.php:
|
290 |
msgid "Thumbnails"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: ../src/Admin/admin-page.php:
|
294 |
msgid "Default thumbnail"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: ../src/Admin/admin-page.php:
|
298 |
msgid "Change thumbnail"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: ../src/Admin/admin-page.php:
|
302 |
msgid "This image will be displayed when no thumbnail is available"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: ../src/Admin/admin-page.php:
|
306 |
msgid "Pick image from"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: ../src/Admin/admin-page.php:
|
310 |
msgid "Featured image"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: ../src/Admin/admin-page.php:
|
314 |
msgid "First image on post"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: ../src/Admin/admin-page.php:
|
318 |
msgid "First attachment"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: ../src/Admin/admin-page.php:
|
322 |
msgid "Custom field"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: ../src/Admin/admin-page.php:
|
326 |
msgid "Tell WordPress Popular Posts where it should get thumbnails from"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: ../src/Admin/admin-page.php:
|
330 |
msgid "Lazy load"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: ../src/Admin/admin-page.php:
|
334 |
-
#: ../src/Admin/admin-page.php:
|
335 |
#: ../src/Widget/form.php:60 ../src/Widget/form.php:88 ../src/Widget/form.php:98
|
336 |
#: ../src/Widget/form.php:190
|
337 |
msgid "What is this?"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: ../src/Admin/admin-page.php:
|
341 |
msgid "No"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: ../src/Admin/admin-page.php:
|
345 |
msgid "Yes"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: ../src/Admin/admin-page.php:
|
349 |
msgid "Custom field name"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: ../src/Admin/admin-page.php:
|
353 |
msgid "Resize image from Custom field?"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: ../src/Admin/admin-page.php:
|
357 |
msgid "No, I will upload my own thumbnail"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: ../src/Admin/admin-page.php:
|
361 |
msgid "Empty image cache"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: ../src/Admin/admin-page.php:
|
365 |
msgid "Use this button to clear WPP's thumbnails cache"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: ../src/Admin/admin-page.php:
|
369 |
msgid "Data"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: ../src/Admin/admin-page.php:
|
373 |
msgid "Log views from"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: ../src/Admin/admin-page.php:
|
377 |
msgid "Visitors only"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: ../src/Admin/admin-page.php:
|
381 |
msgid "Logged-in users only"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: ../src/Admin/admin-page.php:
|
385 |
msgid "Everyone"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: ../src/Admin/admin-page.php:
|
389 |
msgid "Log limit"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: ../src/Admin/admin-page.php:
|
393 |
-
#: ../src/Admin/admin-page.php:
|
394 |
msgid "Disabled"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: ../src/Admin/admin-page.php:
|
398 |
msgid "Keep data for"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: ../src/Admin/admin-page.php:
|
402 |
msgid "day(s)"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: ../src/Admin/admin-page.php:
|
406 |
msgid "Data older than the specified time frame will be automatically discarded"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: ../src/Admin/admin-page.php:
|
410 |
msgid "Ajaxify widget"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: ../src/Admin/admin-page.php:
|
414 |
-
#: ../src/Admin/admin-page.php:
|
415 |
msgid "Enabled"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: ../src/Admin/admin-page.php:
|
419 |
msgid ""
|
420 |
"If you are using a caching plugin such as WP Super Cache, enabling this feature will "
|
421 |
"keep the popular list from being cached by it"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: ../src/Admin/admin-page.php:
|
425 |
msgid "Data Caching"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: ../src/Admin/admin-page.php:
|
429 |
msgid "Never cache"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: ../src/Admin/admin-page.php:
|
433 |
msgid "Enable caching"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: ../src/Admin/admin-page.php:
|
437 |
msgid ""
|
438 |
"WPP can cache the popular list for a specified amount of time. Recommended for large / "
|
439 |
"high traffic sites"
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: ../src/Admin/admin-page.php:
|
443 |
msgid "Refresh cache every"
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: ../src/Admin/admin-page.php:
|
447 |
msgid "Week(s)"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: ../src/Admin/admin-page.php:
|
451 |
msgid "Month(s)"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: ../src/Admin/admin-page.php:
|
455 |
msgid "Year(s)"
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: ../src/Admin/admin-page.php:
|
459 |
msgid "Really? That long?"
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: ../src/Admin/admin-page.php:
|
463 |
msgid "Data Sampling"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: ../src/Admin/admin-page.php:
|
467 |
#, php-format
|
468 |
msgid ""
|
469 |
"By default, WordPress Popular Posts stores in database every single visit your site "
|
@@ -474,45 +482,45 @@ msgid ""
|
|
474 |
"(for more, <a href=\"%2$s\" target=\"_blank\">please read here</a>)"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: ../src/Admin/admin-page.php:
|
478 |
msgid "Sample Rate"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: ../src/Admin/admin-page.php:
|
482 |
#, php-format
|
483 |
msgid ""
|
484 |
"A sampling rate of %d is recommended for large / high traffic sites. For lower traffic "
|
485 |
"sites, you should lower the value"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: ../src/Admin/admin-page.php:
|
489 |
msgid "Miscellaneous"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: ../src/Admin/admin-page.php:
|
493 |
msgid "Open links in"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: ../src/Admin/admin-page.php:
|
497 |
msgid "Current window"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: ../src/Admin/admin-page.php:
|
501 |
msgid "New tab/window"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: ../src/Admin/admin-page.php:
|
505 |
msgid "Use plugin's stylesheet"
|
506 |
msgstr ""
|
507 |
|
508 |
-
#: ../src/Admin/admin-page.php:
|
509 |
msgid ""
|
510 |
"By default, the plugin includes a stylesheet called wpp.css which you can use to style "
|
511 |
"your popular posts listing. If you wish to use your own stylesheet or do not want it "
|
512 |
"to have it included in the header section of your site, use this."
|
513 |
msgstr ""
|
514 |
|
515 |
-
#: ../src/Admin/admin-page.php:
|
516 |
msgid ""
|
517 |
"WordPress Popular Posts maintains data in two separate tables: one for storing the "
|
518 |
"most popular entries on a daily basis (from now on, \"cache\"), and another one to "
|
@@ -521,23 +529,23 @@ msgid ""
|
|
521 |
"tables, please use the buttons below to do so."
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: ../src/Admin/admin-page.php:
|
525 |
msgid "Empty cache"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: ../src/Admin/admin-page.php:
|
529 |
msgid "Use this button to manually clear entries from WPP cache only"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: ../src/Admin/admin-page.php:
|
533 |
msgid "Clear all data"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: ../src/Admin/admin-page.php:
|
537 |
msgid "Use this button to manually clear entries from all WPP data tables"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: ../src/Admin/admin-page.php:
|
541 |
#, php-format
|
542 |
msgid ""
|
543 |
"With the following parameters you can customize the popular posts list when using "
|
@@ -545,349 +553,349 @@ msgid ""
|
|
545 |
"\"%2$s\">[wpp] shortcode</a>."
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: ../src/Admin/admin-page.php:
|
549 |
msgid "Parameter"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: ../src/Admin/admin-page.php:
|
553 |
msgid "What it does "
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: ../src/Admin/admin-page.php:
|
557 |
msgid "Possible values"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: ../src/Admin/admin-page.php:
|
561 |
msgid "Defaults to"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: ../src/Admin/admin-page.php:
|
565 |
msgid "Example"
|
566 |
msgstr ""
|
567 |
|
568 |
-
#: ../src/Admin/admin-page.php:
|
569 |
msgid "Sets a heading for the list"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: ../src/Admin/admin-page.php:
|
573 |
-
#: ../src/Admin/admin-page.php:
|
574 |
-
#: ../src/Admin/admin-page.php:
|
575 |
-
#: ../src/Admin/admin-page.php:
|
576 |
-
#: ../src/Admin/admin-page.php:
|
577 |
-
#: ../src/Admin/admin-page.php:
|
578 |
msgid "Text string"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: ../src/Admin/admin-page.php:
|
582 |
-
#: ../src/Admin/admin-page.php:
|
583 |
-
#: ../src/Admin/admin-page.php:
|
584 |
#: ../src/Widget/form.php:226
|
585 |
msgid "None"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: ../src/Admin/admin-page.php:
|
589 |
-
#: ../src/Admin/admin-page.php:
|
590 |
-
#: ../src/Admin/admin-page.php:
|
591 |
-
#: ../src/Admin/admin-page.php:
|
592 |
-
#: ../src/Admin/admin-page.php:
|
593 |
-
#: ../src/Admin/admin-page.php:
|
594 |
-
#: ../src/Admin/admin-page.php:
|
595 |
-
#: ../src/Admin/admin-page.php:
|
596 |
-
#: ../src/Admin/admin-page.php:
|
597 |
-
#: ../src/Admin/admin-page.php:
|
598 |
-
#: ../src/Admin/admin-page.php:
|
599 |
-
#: ../src/Admin/admin-page.php:
|
600 |
-
#: ../src/Admin/admin-page.php:
|
601 |
-
#: ../src/Admin/admin-page.php:
|
602 |
-
#: ../src/Admin/admin-page.php:
|
603 |
-
#: ../src/Admin/admin-page.php:
|
604 |
-
#: ../src/Admin/admin-page.php:
|
605 |
msgid "With wpp_get_mostpopular():"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: ../src/Admin/admin-page.php:
|
609 |
-
#: ../src/Admin/admin-page.php:
|
610 |
-
#: ../src/Admin/admin-page.php:
|
611 |
-
#: ../src/Admin/admin-page.php:
|
612 |
-
#: ../src/Admin/admin-page.php:
|
613 |
-
#: ../src/Admin/admin-page.php:
|
614 |
-
#: ../src/Admin/admin-page.php:
|
615 |
-
#: ../src/Admin/admin-page.php:
|
616 |
-
#: ../src/Admin/admin-page.php:
|
617 |
-
#: ../src/Admin/admin-page.php:
|
618 |
-
#: ../src/Admin/admin-page.php:
|
619 |
-
#: ../src/Admin/admin-page.php:
|
620 |
-
#: ../src/Admin/admin-page.php:
|
621 |
-
#: ../src/Admin/admin-page.php:
|
622 |
-
#: ../src/Admin/admin-page.php:
|
623 |
-
#: ../src/Admin/admin-page.php:
|
624 |
-
#: ../src/Admin/admin-page.php:
|
625 |
msgid "With the [wpp] shortcode:"
|
626 |
msgstr ""
|
627 |
|
628 |
-
#: ../src/Admin/admin-page.php:
|
629 |
msgid "Set the opening tag for the heading of the list"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: ../src/Admin/admin-page.php:
|
633 |
msgid "Set the closing tag for the heading of the list"
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: ../src/Admin/admin-page.php:
|
637 |
msgid "Sets the maximum number of popular posts to be shown on the listing"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: ../src/Admin/admin-page.php:
|
641 |
-
#: ../src/Admin/admin-page.php:
|
642 |
-
#: ../src/Admin/admin-page.php:
|
643 |
msgid "Positive integer"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: ../src/Admin/admin-page.php:
|
647 |
msgid ""
|
648 |
"Tells WordPress Popular Posts to retrieve the most popular entries within the time "
|
649 |
"range specified by you"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: ../src/Admin/admin-page.php:
|
653 |
msgid "Especifies the number of time units of the custom time range"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: ../src/Admin/admin-page.php:
|
657 |
msgid "Especifies the time unit of the custom time range"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: ../src/Admin/admin-page.php:
|
661 |
msgid ""
|
662 |
"Tells WordPress Popular Posts to retrieve the most popular entries published within "
|
663 |
"the time range specified by you"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: ../src/Admin/admin-page.php:
|
667 |
msgid "Sets the sorting option of the popular posts"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: ../src/Admin/admin-page.php:
|
671 |
msgid "(for average views per day)"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: ../src/Admin/admin-page.php:
|
675 |
msgid "Defines the type of posts to show on the listing"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: ../src/Admin/admin-page.php:
|
679 |
msgid ""
|
680 |
"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the "
|
681 |
"listing."
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: ../src/Admin/admin-page.php:
|
685 |
msgid ""
|
686 |
"If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
|
687 |
"category ID(s). If a minus sign is used, entries associated to the category will be "
|
688 |
"excluded instead."
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: ../src/Admin/admin-page.php:
|
692 |
msgid "If set, WordPress Popular Posts will filter posts by a given taxonomy."
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: ../src/Admin/admin-page.php:
|
696 |
msgid ""
|
697 |
"If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
|
698 |
"term ID(s). If a minus sign is used, entries associated to the term(s) will be "
|
699 |
"excluded instead."
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: ../src/Admin/admin-page.php:
|
703 |
msgid ""
|
704 |
"If set, WordPress Popular Posts will retrieve all entries created by specified "
|
705 |
"author(s) ID(s)."
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: ../src/Admin/admin-page.php:
|
709 |
msgid ""
|
710 |
"If set, WordPress Popular Posts will shorten each post title to \"n\" characters "
|
711 |
"whenever possible"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: ../src/Admin/admin-page.php:
|
715 |
msgid ""
|
716 |
"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" words "
|
717 |
"instead of characters"
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: ../src/Admin/admin-page.php:
|
721 |
msgid ""
|
722 |
"If set, WordPress Popular Posts will build and include an excerpt of \"n\" characters "
|
723 |
"long from the content of each post listed as popular"
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: ../src/Admin/admin-page.php:
|
727 |
msgid ""
|
728 |
"If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) "
|
729 |
"and hyperlinks found in the excerpt"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: ../src/Admin/admin-page.php:
|
733 |
msgid ""
|
734 |
"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words instead "
|
735 |
"of characters"
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: ../src/Admin/admin-page.php:
|
739 |
msgid ""
|
740 |
"If set, and if your current server configuration allows it, you will be able to "
|
741 |
"display thumbnails of your posts. This attribute sets the width for thumbnails"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: ../src/Admin/admin-page.php:
|
745 |
msgid ""
|
746 |
"If set, and if your current server configuration allows it, you will be able to "
|
747 |
"display thumbnails of your posts. This attribute sets the height for thumbnails"
|
748 |
msgstr ""
|
749 |
|
750 |
-
#: ../src/Admin/admin-page.php:
|
751 |
msgid ""
|
752 |
"If set, and if the WP-PostRatings plugin is installed and enabled on your blog, "
|
753 |
"WordPress Popular Posts will show how your visitors are rating your entries"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: ../src/Admin/admin-page.php:
|
757 |
msgid ""
|
758 |
"If set, WordPress Popular Posts will show how many comments each popular post has got "
|
759 |
"during the specified time range"
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: ../src/Admin/admin-page.php:
|
763 |
msgid ""
|
764 |
"If set, WordPress Popular Posts will show how many views each popular post has got "
|
765 |
"during the specified time range"
|
766 |
msgstr ""
|
767 |
|
768 |
-
#: ../src/Admin/admin-page.php:
|
769 |
msgid ""
|
770 |
"If set, WordPress Popular Posts will show who published each popular post on the list"
|
771 |
msgstr ""
|
772 |
|
773 |
-
#: ../src/Admin/admin-page.php:
|
774 |
msgid ""
|
775 |
"If set, WordPress Popular Posts will display the date when each popular post on the "
|
776 |
"list was published"
|
777 |
msgstr ""
|
778 |
|
779 |
-
#: ../src/Admin/admin-page.php:
|
780 |
msgid "Sets the date format"
|
781 |
msgstr ""
|
782 |
|
783 |
-
#: ../src/Admin/admin-page.php:
|
784 |
msgid ""
|
785 |
"If set, WordPress Popular Posts will display the categories associated to each entry"
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: ../src/Admin/admin-page.php:
|
789 |
msgid ""
|
790 |
"If set, WordPress Popular Posts will display the taxonomies associated to each entry"
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: ../src/Admin/admin-page.php:
|
794 |
msgid "Sets the opening tag for the listing"
|
795 |
msgstr ""
|
796 |
|
797 |
-
#: ../src/Admin/admin-page.php:
|
798 |
msgid "Sets the closing tag for the listing"
|
799 |
msgstr ""
|
800 |
|
801 |
-
#: ../src/Admin/admin-page.php:
|
802 |
msgid "Sets the HTML structure of each post"
|
803 |
msgstr ""
|
804 |
|
805 |
-
#: ../src/Admin/admin-page.php:
|
806 |
msgid "Text string, custom HTML"
|
807 |
msgstr ""
|
808 |
|
809 |
-
#: ../src/Admin/admin-page.php:
|
810 |
msgid "Available Content Tags"
|
811 |
msgstr ""
|
812 |
|
813 |
-
#: ../src/Admin/admin-page.php:
|
814 |
msgid ""
|
815 |
"returns thumbnail linked to post/page, requires thumbnail_width & thumbnail_height"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: ../src/Admin/admin-page.php:
|
819 |
msgid ""
|
820 |
"returns thumbnail image without linking to post/page, requires thumbnail_width & "
|
821 |
"thumbnail_height"
|
822 |
msgstr ""
|
823 |
|
824 |
-
#: ../src/Admin/admin-page.php:
|
825 |
msgid "returns thumbnail url, requires thumbnail_width & thumbnail_height"
|
826 |
msgstr ""
|
827 |
|
828 |
-
#: ../src/Admin/admin-page.php:
|
829 |
msgid "returns linked post/page title"
|
830 |
msgstr ""
|
831 |
|
832 |
-
#: ../src/Admin/admin-page.php:
|
833 |
msgid "returns the post/page ID"
|
834 |
msgstr ""
|
835 |
|
836 |
-
#: ../src/Admin/admin-page.php:
|
837 |
msgid "returns post/page excerpt, and requires excerpt_length to be greater than 0"
|
838 |
msgstr ""
|
839 |
|
840 |
-
#: ../src/Admin/admin-page.php:
|
841 |
msgid "returns the default stats tags"
|
842 |
msgstr ""
|
843 |
|
844 |
-
#: ../src/Admin/admin-page.php:
|
845 |
msgid "returns post/page current rating, requires WP-PostRatings installed and enabled"
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: ../src/Admin/admin-page.php:
|
849 |
msgid ""
|
850 |
"returns post/page current rating as an integer, requires WP-PostRatings installed and "
|
851 |
"enabled"
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: ../src/Admin/admin-page.php:
|
855 |
msgid "returns the URL of the post/page"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: ../src/Admin/admin-page.php:
|
859 |
msgid "returns post/page title, no link"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: ../src/Admin/admin-page.php:
|
863 |
msgid "returns linked author name, requires stats_author=1"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: ../src/Admin/admin-page.php:
|
867 |
msgid "returns linked category name, requires stats_category=1"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: ../src/Admin/admin-page.php:
|
871 |
msgid "returns linked taxonomy names, requires stats_taxonomy=1"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: ../src/Admin/admin-page.php:
|
875 |
msgid "returns views count only, no text"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: ../src/Admin/admin-page.php:
|
879 |
msgid "returns comments count only, no text, requires stats_comments=1"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: ../src/Admin/admin-page.php:
|
883 |
msgid "returns post/page date, requires stats_date=1"
|
884 |
msgstr ""
|
885 |
|
886 |
-
#: ../src/Admin/admin-page.php:
|
887 |
msgid "outputs number of popular posts found"
|
888 |
msgstr ""
|
889 |
|
890 |
-
#: ../src/Admin/admin-page.php:
|
891 |
msgid "outputs the position of the post in the listing"
|
892 |
msgstr ""
|
893 |
|
@@ -895,29 +903,29 @@ msgstr ""
|
|
895 |
msgid "Sorry. No data so far."
|
896 |
msgstr ""
|
897 |
|
898 |
-
#: ../src/Output.php:
|
899 |
#, php-format
|
900 |
msgid "%s view per day"
|
901 |
msgid_plural "%s views per day"
|
902 |
msgstr[0] ""
|
903 |
msgstr[1] ""
|
904 |
|
905 |
-
#: ../src/Output.php:
|
906 |
#, php-format
|
907 |
msgid "by %s"
|
908 |
msgstr ""
|
909 |
|
910 |
-
#: ../src/Output.php:
|
911 |
#, php-format
|
912 |
msgid "posted %s"
|
913 |
msgstr ""
|
914 |
|
915 |
-
#: ../src/Output.php:
|
916 |
#, php-format
|
917 |
msgid "posted on %s"
|
918 |
msgstr ""
|
919 |
|
920 |
-
#: ../src/Output.php:
|
921 |
#, php-format
|
922 |
msgid "under %s"
|
923 |
msgstr ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Popular Posts\n"
|
7 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
|
8 |
+
"POT-Creation-Date: 2020-01-11 11:57-0400\n"
|
9 |
"PO-Revision-Date: 2015-04-24 13:30-0430\n"
|
10 |
"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
|
11 |
"Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
"X-Poedit-SearchPath-1: ..\n"
|
24 |
|
25 |
+
#: ../src/Admin/Admin.php:371
|
26 |
#, php-format
|
27 |
msgid "%s view in the last hour"
|
28 |
msgid_plural "%s views in the last hour"
|
29 |
msgstr[0] ""
|
30 |
msgstr[1] ""
|
31 |
|
32 |
+
#: ../src/Admin/Admin.php:405 ../src/Admin/admin-page.php:349
|
33 |
msgid "Trending now"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: ../src/Admin/Admin.php:493
|
37 |
msgid "View more"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: ../src/Admin/Admin.php:522
|
41 |
msgid "Use this image"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: ../src/Admin/Admin.php:575
|
45 |
msgid "Overview"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: ../src/Admin/Admin.php:576
|
49 |
msgid ""
|
50 |
"Welcome to WordPress Popular Posts' Dashboard! In this screen you will find statistics "
|
51 |
"on what's popular on your site, tools to further tweak WPP to your needs, and more!"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: ../src/Admin/Admin.php:582
|
55 |
msgid "Like this plugin?"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: ../src/Admin/Admin.php:584
|
59 |
msgid ""
|
60 |
"Each donation motivates me to keep releasing free stuff for the WordPress community!"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../src/Admin/Admin.php:591
|
64 |
#, php-format
|
65 |
msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: ../src/Admin/Admin.php:598
|
69 |
#, php-format
|
70 |
msgid ""
|
71 |
"<p><strong>For more information:</strong></p><ul><li><a href=\"%1$s\">Documentation</"
|
72 |
"a></li><li><a href=\"%2$s\">Support</a></li></ul>"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../src/Admin/Admin.php:622
|
76 |
msgid "Settings"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../src/Admin/Admin.php:699 ../src/Admin/Admin.php:1088 ../src/Admin/Admin.php:1092
|
80 |
+
#: ../src/Output.php:719
|
81 |
#, php-format
|
82 |
msgid "%s view"
|
83 |
msgid_plural "%s views"
|
84 |
msgstr[0] ""
|
85 |
msgstr[1] ""
|
86 |
|
87 |
+
#: ../src/Admin/Admin.php:699 ../src/Admin/Admin.php:1090 ../src/Admin/Admin.php:1092
|
88 |
+
#: ../src/Output.php:702
|
89 |
#, php-format
|
90 |
msgid "%s comment"
|
91 |
msgid_plural "%s comments"
|
92 |
msgstr[0] ""
|
93 |
msgstr[1] ""
|
94 |
|
95 |
+
#: ../src/Admin/Admin.php:720 ../src/Widget/form.php:21
|
96 |
msgid "Comments"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: ../src/Admin/Admin.php:724
|
100 |
msgid "Views"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: ../src/Admin/Admin.php:1094
|
104 |
msgid "View"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: ../src/Admin/Admin.php:1094
|
108 |
msgid "Edit"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: ../src/Admin/Admin.php:1105
|
112 |
msgid ""
|
113 |
"Looks like your site's activity is a little low right now. <br />Spread the word and "
|
114 |
"come back later!"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: ../src/Admin/Admin.php:1367
|
118 |
+
#, php-format
|
119 |
+
msgid ""
|
120 |
+
"<strong>WordPress Popular Posts:</strong> It seems your site is popular (great!) You "
|
121 |
+
"may want to check <a href=\"%s\">these suggestions</a> to make sure your website's "
|
122 |
+
"performance stays up to par."
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
#: ../src/Admin/admin-page.php:6 ../src/Admin/admin-page.php:240
|
126 |
msgid "Stats"
|
127 |
msgstr ""
|
205 |
msgid "Menu"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: ../src/Admin/admin-page.php:266
|
209 |
msgid "Post type"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: ../src/Admin/admin-page.php:269
|
213 |
msgid "Limit"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: ../src/Admin/admin-page.php:272 ../src/Widget/form.php:52
|
217 |
msgid "Display only posts published within the selected Time Range"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: ../src/Admin/admin-page.php:278 ../src/Admin/admin-page.php:310
|
221 |
+
#: ../src/Admin/admin-page.php:462 ../src/Admin/admin-page.php:569
|
222 |
+
#: ../src/Admin/admin-page.php:609
|
223 |
msgid "Apply"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: ../src/Admin/admin-page.php:279 ../src/Admin/admin-page.php:313
|
227 |
msgid "Cancel"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: ../src/Admin/admin-page.php:288
|
231 |
msgid "Custom Time Range"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: ../src/Admin/admin-page.php:289
|
235 |
msgid "Date Range"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: ../src/Admin/admin-page.php:296 ../src/Admin/admin-page.php:535
|
239 |
#: ../src/Widget/form.php:45
|
240 |
msgid "Minute(s)"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: ../src/Admin/admin-page.php:297 ../src/Admin/admin-page.php:536
|
244 |
#: ../src/Widget/form.php:46
|
245 |
msgid "Hour(s)"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: ../src/Admin/admin-page.php:298 ../src/Admin/admin-page.php:537
|
249 |
#: ../src/Widget/form.php:47
|
250 |
msgid "Day(s)"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: ../src/Admin/admin-page.php:303
|
254 |
msgid "Select a date..."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: ../src/Admin/admin-page.php:323
|
258 |
msgid "Today"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: ../src/Admin/admin-page.php:324 ../src/Widget/form.php:34
|
262 |
msgid "Last 24 hours"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: ../src/Admin/admin-page.php:325 ../src/Widget/form.php:35
|
266 |
msgid "Last 7 days"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: ../src/Admin/admin-page.php:326 ../src/Widget/form.php:36
|
270 |
msgid "Last 30 days"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: ../src/Admin/admin-page.php:327 ../src/Widget/form.php:38
|
274 |
msgid "Custom"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: ../src/Admin/admin-page.php:331
|
278 |
#, php-format
|
279 |
msgid ""
|
280 |
"Err... A nice little chart is supposed to be here, instead you are seeing this because "
|
282 |
"browser</a>."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: ../src/Admin/admin-page.php:347
|
286 |
msgid "Most viewed"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: ../src/Admin/admin-page.php:348
|
290 |
msgid "Most commented"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: ../src/Admin/admin-page.php:350
|
294 |
msgid "Hall of Fame"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: ../src/Admin/admin-page.php:390
|
298 |
msgid "Thumbnails"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: ../src/Admin/admin-page.php:396
|
302 |
msgid "Default thumbnail"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: ../src/Admin/admin-page.php:402
|
306 |
msgid "Change thumbnail"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: ../src/Admin/admin-page.php:405
|
310 |
msgid "This image will be displayed when no thumbnail is available"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: ../src/Admin/admin-page.php:409
|
314 |
msgid "Pick image from"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: ../src/Admin/admin-page.php:412
|
318 |
msgid "Featured image"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: ../src/Admin/admin-page.php:413
|
322 |
msgid "First image on post"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: ../src/Admin/admin-page.php:414
|
326 |
msgid "First attachment"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: ../src/Admin/admin-page.php:415
|
330 |
msgid "Custom field"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: ../src/Admin/admin-page.php:418
|
334 |
msgid "Tell WordPress Popular Posts where it should get thumbnails from"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: ../src/Admin/admin-page.php:422
|
338 |
msgid "Lazy load"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: ../src/Admin/admin-page.php:422 ../src/Admin/admin-page.php:519
|
342 |
+
#: ../src/Admin/admin-page.php:547 ../src/Widget/form.php:7 ../src/Widget/form.php:54
|
343 |
#: ../src/Widget/form.php:60 ../src/Widget/form.php:88 ../src/Widget/form.php:98
|
344 |
#: ../src/Widget/form.php:190
|
345 |
msgid "What is this?"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: ../src/Admin/admin-page.php:425
|
349 |
msgid "No"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: ../src/Admin/admin-page.php:426 ../src/Admin/admin-page.php:441
|
353 |
msgid "Yes"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: ../src/Admin/admin-page.php:431
|
357 |
msgid "Custom field name"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: ../src/Admin/admin-page.php:437
|
361 |
msgid "Resize image from Custom field?"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: ../src/Admin/admin-page.php:440
|
365 |
msgid "No, I will upload my own thumbnail"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: ../src/Admin/admin-page.php:452
|
369 |
msgid "Empty image cache"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: ../src/Admin/admin-page.php:453
|
373 |
msgid "Use this button to clear WPP's thumbnails cache"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: ../src/Admin/admin-page.php:473
|
377 |
msgid "Data"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: ../src/Admin/admin-page.php:479
|
381 |
msgid "Log views from"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: ../src/Admin/admin-page.php:482
|
385 |
msgid "Visitors only"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: ../src/Admin/admin-page.php:483
|
389 |
msgid "Logged-in users only"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: ../src/Admin/admin-page.php:484
|
393 |
msgid "Everyone"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: ../src/Admin/admin-page.php:490
|
397 |
msgid "Log limit"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: ../src/Admin/admin-page.php:493 ../src/Admin/admin-page.php:510
|
401 |
+
#: ../src/Admin/admin-page.php:550 ../src/Admin/admin-page.php:600
|
402 |
msgid "Disabled"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: ../src/Admin/admin-page.php:494
|
406 |
msgid "Keep data for"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: ../src/Admin/admin-page.php:498
|
410 |
msgid "day(s)"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: ../src/Admin/admin-page.php:501
|
414 |
msgid "Data older than the specified time frame will be automatically discarded"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: ../src/Admin/admin-page.php:507
|
418 |
msgid "Ajaxify widget"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: ../src/Admin/admin-page.php:511 ../src/Admin/admin-page.php:551
|
422 |
+
#: ../src/Admin/admin-page.php:599
|
423 |
msgid "Enabled"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: ../src/Admin/admin-page.php:515
|
427 |
msgid ""
|
428 |
"If you are using a caching plugin such as WP Super Cache, enabling this feature will "
|
429 |
"keep the popular list from being cached by it"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: ../src/Admin/admin-page.php:519
|
433 |
msgid "Data Caching"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: ../src/Admin/admin-page.php:522
|
437 |
msgid "Never cache"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: ../src/Admin/admin-page.php:523
|
441 |
msgid "Enable caching"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: ../src/Admin/admin-page.php:527
|
445 |
msgid ""
|
446 |
"WPP can cache the popular list for a specified amount of time. Recommended for large / "
|
447 |
"high traffic sites"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: ../src/Admin/admin-page.php:531
|
451 |
msgid "Refresh cache every"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: ../src/Admin/admin-page.php:538
|
455 |
msgid "Week(s)"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: ../src/Admin/admin-page.php:539
|
459 |
msgid "Month(s)"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: ../src/Admin/admin-page.php:540
|
463 |
msgid "Year(s)"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: ../src/Admin/admin-page.php:543
|
467 |
msgid "Really? That long?"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: ../src/Admin/admin-page.php:547
|
471 |
msgid "Data Sampling"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: ../src/Admin/admin-page.php:555
|
475 |
#, php-format
|
476 |
msgid ""
|
477 |
"By default, WordPress Popular Posts stores in database every single visit your site "
|
482 |
"(for more, <a href=\"%2$s\" target=\"_blank\">please read here</a>)"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: ../src/Admin/admin-page.php:559
|
486 |
msgid "Sample Rate"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: ../src/Admin/admin-page.php:563
|
490 |
#, php-format
|
491 |
msgid ""
|
492 |
"A sampling rate of %d is recommended for large / high traffic sites. For lower traffic "
|
493 |
"sites, you should lower the value"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: ../src/Admin/admin-page.php:580
|
497 |
msgid "Miscellaneous"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: ../src/Admin/admin-page.php:586
|
501 |
msgid "Open links in"
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: ../src/Admin/admin-page.php:589
|
505 |
msgid "Current window"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: ../src/Admin/admin-page.php:590
|
509 |
msgid "New tab/window"
|
510 |
msgstr ""
|
511 |
|
512 |
+
#: ../src/Admin/admin-page.php:596
|
513 |
msgid "Use plugin's stylesheet"
|
514 |
msgstr ""
|
515 |
|
516 |
+
#: ../src/Admin/admin-page.php:603
|
517 |
msgid ""
|
518 |
"By default, the plugin includes a stylesheet called wpp.css which you can use to style "
|
519 |
"your popular posts listing. If you wish to use your own stylesheet or do not want it "
|
520 |
"to have it included in the header section of your site, use this."
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: ../src/Admin/admin-page.php:623
|
524 |
msgid ""
|
525 |
"WordPress Popular Posts maintains data in two separate tables: one for storing the "
|
526 |
"most popular entries on a daily basis (from now on, \"cache\"), and another one to "
|
529 |
"tables, please use the buttons below to do so."
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: ../src/Admin/admin-page.php:624
|
533 |
msgid "Empty cache"
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: ../src/Admin/admin-page.php:624
|
537 |
msgid "Use this button to manually clear entries from WPP cache only"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: ../src/Admin/admin-page.php:625
|
541 |
msgid "Clear all data"
|
542 |
msgstr ""
|
543 |
|
544 |
+
#: ../src/Admin/admin-page.php:625
|
545 |
msgid "Use this button to manually clear entries from all WPP data tables"
|
546 |
msgstr ""
|
547 |
|
548 |
+
#: ../src/Admin/admin-page.php:633
|
549 |
#, php-format
|
550 |
msgid ""
|
551 |
"With the following parameters you can customize the popular posts list when using "
|
553 |
"\"%2$s\">[wpp] shortcode</a>."
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: ../src/Admin/admin-page.php:643
|
557 |
msgid "Parameter"
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: ../src/Admin/admin-page.php:644
|
561 |
msgid "What it does "
|
562 |
msgstr ""
|
563 |
|
564 |
+
#: ../src/Admin/admin-page.php:645
|
565 |
msgid "Possible values"
|
566 |
msgstr ""
|
567 |
|
568 |
+
#: ../src/Admin/admin-page.php:646
|
569 |
msgid "Defaults to"
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: ../src/Admin/admin-page.php:647
|
573 |
msgid "Example"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: ../src/Admin/admin-page.php:653
|
577 |
msgid "Sets a heading for the list"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: ../src/Admin/admin-page.php:654 ../src/Admin/admin-page.php:661
|
581 |
+
#: ../src/Admin/admin-page.php:668 ../src/Admin/admin-page.php:717
|
582 |
+
#: ../src/Admin/admin-page.php:724 ../src/Admin/admin-page.php:731
|
583 |
+
#: ../src/Admin/admin-page.php:738 ../src/Admin/admin-page.php:745
|
584 |
+
#: ../src/Admin/admin-page.php:752 ../src/Admin/admin-page.php:843
|
585 |
+
#: ../src/Admin/admin-page.php:864 ../src/Admin/admin-page.php:871
|
586 |
msgid "Text string"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: ../src/Admin/admin-page.php:655 ../src/Admin/admin-page.php:725
|
590 |
+
#: ../src/Admin/admin-page.php:732 ../src/Admin/admin-page.php:739
|
591 |
+
#: ../src/Admin/admin-page.php:746 ../src/Admin/admin-page.php:753
|
592 |
#: ../src/Widget/form.php:226
|
593 |
msgid "None"
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: ../src/Admin/admin-page.php:656 ../src/Admin/admin-page.php:663
|
597 |
+
#: ../src/Admin/admin-page.php:670 ../src/Admin/admin-page.php:677
|
598 |
+
#: ../src/Admin/admin-page.php:684 ../src/Admin/admin-page.php:691
|
599 |
+
#: ../src/Admin/admin-page.php:698 ../src/Admin/admin-page.php:705
|
600 |
+
#: ../src/Admin/admin-page.php:712 ../src/Admin/admin-page.php:719
|
601 |
+
#: ../src/Admin/admin-page.php:726 ../src/Admin/admin-page.php:733
|
602 |
+
#: ../src/Admin/admin-page.php:740 ../src/Admin/admin-page.php:747
|
603 |
+
#: ../src/Admin/admin-page.php:754 ../src/Admin/admin-page.php:761
|
604 |
+
#: ../src/Admin/admin-page.php:768 ../src/Admin/admin-page.php:775
|
605 |
+
#: ../src/Admin/admin-page.php:782 ../src/Admin/admin-page.php:789
|
606 |
+
#: ../src/Admin/admin-page.php:796 ../src/Admin/admin-page.php:803
|
607 |
+
#: ../src/Admin/admin-page.php:810 ../src/Admin/admin-page.php:817
|
608 |
+
#: ../src/Admin/admin-page.php:824 ../src/Admin/admin-page.php:831
|
609 |
+
#: ../src/Admin/admin-page.php:838 ../src/Admin/admin-page.php:845
|
610 |
+
#: ../src/Admin/admin-page.php:852 ../src/Admin/admin-page.php:859
|
611 |
+
#: ../src/Admin/admin-page.php:866 ../src/Admin/admin-page.php:873
|
612 |
+
#: ../src/Admin/admin-page.php:880
|
613 |
msgid "With wpp_get_mostpopular():"
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: ../src/Admin/admin-page.php:656 ../src/Admin/admin-page.php:663
|
617 |
+
#: ../src/Admin/admin-page.php:670 ../src/Admin/admin-page.php:677
|
618 |
+
#: ../src/Admin/admin-page.php:684 ../src/Admin/admin-page.php:691
|
619 |
+
#: ../src/Admin/admin-page.php:698 ../src/Admin/admin-page.php:705
|
620 |
+
#: ../src/Admin/admin-page.php:712 ../src/Admin/admin-page.php:719
|
621 |
+
#: ../src/Admin/admin-page.php:726 ../src/Admin/admin-page.php:733
|
622 |
+
#: ../src/Admin/admin-page.php:740 ../src/Admin/admin-page.php:747
|
623 |
+
#: ../src/Admin/admin-page.php:754 ../src/Admin/admin-page.php:761
|
624 |
+
#: ../src/Admin/admin-page.php:768 ../src/Admin/admin-page.php:775
|
625 |
+
#: ../src/Admin/admin-page.php:782 ../src/Admin/admin-page.php:789
|
626 |
+
#: ../src/Admin/admin-page.php:796 ../src/Admin/admin-page.php:803
|
627 |
+
#: ../src/Admin/admin-page.php:810 ../src/Admin/admin-page.php:817
|
628 |
+
#: ../src/Admin/admin-page.php:824 ../src/Admin/admin-page.php:831
|
629 |
+
#: ../src/Admin/admin-page.php:838 ../src/Admin/admin-page.php:845
|
630 |
+
#: ../src/Admin/admin-page.php:852 ../src/Admin/admin-page.php:859
|
631 |
+
#: ../src/Admin/admin-page.php:866 ../src/Admin/admin-page.php:873
|
632 |
+
#: ../src/Admin/admin-page.php:880
|
633 |
msgid "With the [wpp] shortcode:"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: ../src/Admin/admin-page.php:660
|
637 |
msgid "Set the opening tag for the heading of the list"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: ../src/Admin/admin-page.php:667
|
641 |
msgid "Set the closing tag for the heading of the list"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: ../src/Admin/admin-page.php:674
|
645 |
msgid "Sets the maximum number of popular posts to be shown on the listing"
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: ../src/Admin/admin-page.php:675 ../src/Admin/admin-page.php:689
|
649 |
+
#: ../src/Admin/admin-page.php:759 ../src/Admin/admin-page.php:773
|
650 |
+
#: ../src/Admin/admin-page.php:794 ../src/Admin/admin-page.php:801
|
651 |
msgid "Positive integer"
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: ../src/Admin/admin-page.php:681
|
655 |
msgid ""
|
656 |
"Tells WordPress Popular Posts to retrieve the most popular entries within the time "
|
657 |
"range specified by you"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: ../src/Admin/admin-page.php:688
|
661 |
msgid "Especifies the number of time units of the custom time range"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: ../src/Admin/admin-page.php:695
|
665 |
msgid "Especifies the time unit of the custom time range"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: ../src/Admin/admin-page.php:702
|
669 |
msgid ""
|
670 |
"Tells WordPress Popular Posts to retrieve the most popular entries published within "
|
671 |
"the time range specified by you"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: ../src/Admin/admin-page.php:709
|
675 |
msgid "Sets the sorting option of the popular posts"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: ../src/Admin/admin-page.php:710
|
679 |
msgid "(for average views per day)"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: ../src/Admin/admin-page.php:716
|
683 |
msgid "Defines the type of posts to show on the listing"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: ../src/Admin/admin-page.php:723
|
687 |
msgid ""
|
688 |
"If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the "
|
689 |
"listing."
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: ../src/Admin/admin-page.php:730
|
693 |
msgid ""
|
694 |
"If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
|
695 |
"category ID(s). If a minus sign is used, entries associated to the category will be "
|
696 |
"excluded instead."
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: ../src/Admin/admin-page.php:737
|
700 |
msgid "If set, WordPress Popular Posts will filter posts by a given taxonomy."
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: ../src/Admin/admin-page.php:744
|
704 |
msgid ""
|
705 |
"If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
|
706 |
"term ID(s). If a minus sign is used, entries associated to the term(s) will be "
|
707 |
"excluded instead."
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: ../src/Admin/admin-page.php:751
|
711 |
msgid ""
|
712 |
"If set, WordPress Popular Posts will retrieve all entries created by specified "
|
713 |
"author(s) ID(s)."
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: ../src/Admin/admin-page.php:758
|
717 |
msgid ""
|
718 |
"If set, WordPress Popular Posts will shorten each post title to \"n\" characters "
|
719 |
"whenever possible"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: ../src/Admin/admin-page.php:765
|
723 |
msgid ""
|
724 |
"If set to 1, WordPress Popular Posts will shorten each post title to \"n\" words "
|
725 |
"instead of characters"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: ../src/Admin/admin-page.php:772
|
729 |
msgid ""
|
730 |
"If set, WordPress Popular Posts will build and include an excerpt of \"n\" characters "
|
731 |
"long from the content of each post listed as popular"
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: ../src/Admin/admin-page.php:779
|
735 |
msgid ""
|
736 |
"If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) "
|
737 |
"and hyperlinks found in the excerpt"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: ../src/Admin/admin-page.php:786
|
741 |
msgid ""
|
742 |
"If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words instead "
|
743 |
"of characters"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: ../src/Admin/admin-page.php:793
|
747 |
msgid ""
|
748 |
"If set, and if your current server configuration allows it, you will be able to "
|
749 |
"display thumbnails of your posts. This attribute sets the width for thumbnails"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: ../src/Admin/admin-page.php:800
|
753 |
msgid ""
|
754 |
"If set, and if your current server configuration allows it, you will be able to "
|
755 |
"display thumbnails of your posts. This attribute sets the height for thumbnails"
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: ../src/Admin/admin-page.php:807
|
759 |
msgid ""
|
760 |
"If set, and if the WP-PostRatings plugin is installed and enabled on your blog, "
|
761 |
"WordPress Popular Posts will show how your visitors are rating your entries"
|
762 |
msgstr ""
|
763 |
|
764 |
+
#: ../src/Admin/admin-page.php:814
|
765 |
msgid ""
|
766 |
"If set, WordPress Popular Posts will show how many comments each popular post has got "
|
767 |
"during the specified time range"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: ../src/Admin/admin-page.php:821
|
771 |
msgid ""
|
772 |
"If set, WordPress Popular Posts will show how many views each popular post has got "
|
773 |
"during the specified time range"
|
774 |
msgstr ""
|
775 |
|
776 |
+
#: ../src/Admin/admin-page.php:828
|
777 |
msgid ""
|
778 |
"If set, WordPress Popular Posts will show who published each popular post on the list"
|
779 |
msgstr ""
|
780 |
|
781 |
+
#: ../src/Admin/admin-page.php:835
|
782 |
msgid ""
|
783 |
"If set, WordPress Popular Posts will display the date when each popular post on the "
|
784 |
"list was published"
|
785 |
msgstr ""
|
786 |
|
787 |
+
#: ../src/Admin/admin-page.php:842
|
788 |
msgid "Sets the date format"
|
789 |
msgstr ""
|
790 |
|
791 |
+
#: ../src/Admin/admin-page.php:849
|
792 |
msgid ""
|
793 |
"If set, WordPress Popular Posts will display the categories associated to each entry"
|
794 |
msgstr ""
|
795 |
|
796 |
+
#: ../src/Admin/admin-page.php:856
|
797 |
msgid ""
|
798 |
"If set, WordPress Popular Posts will display the taxonomies associated to each entry"
|
799 |
msgstr ""
|
800 |
|
801 |
+
#: ../src/Admin/admin-page.php:863
|
802 |
msgid "Sets the opening tag for the listing"
|
803 |
msgstr ""
|
804 |
|
805 |
+
#: ../src/Admin/admin-page.php:870
|
806 |
msgid "Sets the closing tag for the listing"
|
807 |
msgstr ""
|
808 |
|
809 |
+
#: ../src/Admin/admin-page.php:877
|
810 |
msgid "Sets the HTML structure of each post"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: ../src/Admin/admin-page.php:878
|
814 |
msgid "Text string, custom HTML"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: ../src/Admin/admin-page.php:878
|
818 |
msgid "Available Content Tags"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: ../src/Admin/admin-page.php:878
|
822 |
msgid ""
|
823 |
"returns thumbnail linked to post/page, requires thumbnail_width & thumbnail_height"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: ../src/Admin/admin-page.php:878
|
827 |
msgid ""
|
828 |
"returns thumbnail image without linking to post/page, requires thumbnail_width & "
|
829 |
"thumbnail_height"
|
830 |
msgstr ""
|
831 |
|
832 |
+
#: ../src/Admin/admin-page.php:878
|
833 |
msgid "returns thumbnail url, requires thumbnail_width & thumbnail_height"
|
834 |
msgstr ""
|
835 |
|
836 |
+
#: ../src/Admin/admin-page.php:878
|
837 |
msgid "returns linked post/page title"
|
838 |
msgstr ""
|
839 |
|
840 |
+
#: ../src/Admin/admin-page.php:878
|
841 |
msgid "returns the post/page ID"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: ../src/Admin/admin-page.php:878
|
845 |
msgid "returns post/page excerpt, and requires excerpt_length to be greater than 0"
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: ../src/Admin/admin-page.php:878
|
849 |
msgid "returns the default stats tags"
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: ../src/Admin/admin-page.php:878
|
853 |
msgid "returns post/page current rating, requires WP-PostRatings installed and enabled"
|
854 |
msgstr ""
|
855 |
|
856 |
+
#: ../src/Admin/admin-page.php:878
|
857 |
msgid ""
|
858 |
"returns post/page current rating as an integer, requires WP-PostRatings installed and "
|
859 |
"enabled"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: ../src/Admin/admin-page.php:878
|
863 |
msgid "returns the URL of the post/page"
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: ../src/Admin/admin-page.php:878
|
867 |
msgid "returns post/page title, no link"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: ../src/Admin/admin-page.php:878
|
871 |
msgid "returns linked author name, requires stats_author=1"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: ../src/Admin/admin-page.php:878
|
875 |
msgid "returns linked category name, requires stats_category=1"
|
876 |
msgstr ""
|
877 |
|
878 |
+
#: ../src/Admin/admin-page.php:878
|
879 |
msgid "returns linked taxonomy names, requires stats_taxonomy=1"
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: ../src/Admin/admin-page.php:878
|
883 |
msgid "returns views count only, no text"
|
884 |
msgstr ""
|
885 |
|
886 |
+
#: ../src/Admin/admin-page.php:878
|
887 |
msgid "returns comments count only, no text, requires stats_comments=1"
|
888 |
msgstr ""
|
889 |
|
890 |
+
#: ../src/Admin/admin-page.php:878
|
891 |
msgid "returns post/page date, requires stats_date=1"
|
892 |
msgstr ""
|
893 |
|
894 |
+
#: ../src/Admin/admin-page.php:878
|
895 |
msgid "outputs number of popular posts found"
|
896 |
msgstr ""
|
897 |
|
898 |
+
#: ../src/Admin/admin-page.php:878
|
899 |
msgid "outputs the position of the post in the listing"
|
900 |
msgstr ""
|
901 |
|
903 |
msgid "Sorry. No data so far."
|
904 |
msgstr ""
|
905 |
|
906 |
+
#: ../src/Output.php:713
|
907 |
#, php-format
|
908 |
msgid "%s view per day"
|
909 |
msgid_plural "%s views per day"
|
910 |
msgstr[0] ""
|
911 |
msgstr[1] ""
|
912 |
|
913 |
+
#: ../src/Output.php:742
|
914 |
#, php-format
|
915 |
msgid "by %s"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: ../src/Output.php:748
|
919 |
#, php-format
|
920 |
msgid "posted %s"
|
921 |
msgstr ""
|
922 |
|
923 |
+
#: ../src/Output.php:748
|
924 |
#, php-format
|
925 |
msgid "posted on %s"
|
926 |
msgstr ""
|
927 |
|
928 |
+
#: ../src/Output.php:756
|
929 |
#, php-format
|
930 |
msgid "under %s"
|
931 |
msgstr ""
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: hcabrera
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabrerab%40gmail%2ecom&lc=GB&item_name=WordPress%20Popular%20Posts%20Plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 4.7
|
6 |
-
Tested up to: 5.3
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 5.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -63,7 +63,7 @@ Please make sure your site meets the [minimum requirements](https://github.com/c
|
|
63 |
2. If you have a caching plugin installed on your site, flush its cache now so WPP can start tracking your site.
|
64 |
3. If you have a security / firewall plugin installed on your site, make sure you [allow WPP access to the REST API](https://wordpress.org/support/topic/wpp-does-not-count-properly/#post-10411163) so it can start tracking your site.
|
65 |
4. Go to Appearance > Editor. Under "Templates", click on `header.php` and make sure that the `<?php wp_head(); ?>` tag is present (should be right before the closing `</head>` tag).
|
66 |
-
5. (Optional
|
67 |
|
68 |
That's it!
|
69 |
|
@@ -89,6 +89,13 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
89 |
4. Statistics panel.
|
90 |
|
91 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
= 5.0.1 =
|
93 |
|
94 |
**If you're using a caching plugin, flushing its cache right after installing / upgrading to this version is recommended.**
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabrerab%40gmail%2ecom&lc=GB&item_name=WordPress%20Popular%20Posts%20Plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 4.7
|
6 |
+
Tested up to: 5.3.2
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 5.0.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
63 |
2. If you have a caching plugin installed on your site, flush its cache now so WPP can start tracking your site.
|
64 |
3. If you have a security / firewall plugin installed on your site, make sure you [allow WPP access to the REST API](https://wordpress.org/support/topic/wpp-does-not-count-properly/#post-10411163) so it can start tracking your site.
|
65 |
4. Go to Appearance > Editor. Under "Templates", click on `header.php` and make sure that the `<?php wp_head(); ?>` tag is present (should be right before the closing `</head>` tag).
|
66 |
+
5. (Optional but highly recommended) Are you running a medium/high traffic site? If so, it might be a good idea to check [these suggestions](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance) to make sure your site's performance stays up to par.
|
67 |
|
68 |
That's it!
|
69 |
|
89 |
4. Statistics panel.
|
90 |
|
91 |
== Changelog ==
|
92 |
+
= 5.0.2 =
|
93 |
+
|
94 |
+
- A performance notice will be displayed for mid/high traffic sites (see [#239](https://github.com/cabrerahector/wordpress-popular-posts/issues/239)).
|
95 |
+
- Fixed an issue with text_title content tag not being shortened (see [#241](https://github.com/cabrerahector/wordpress-popular-posts/issues/241)).
|
96 |
+
- Added a link to the Debug screen to the plugin's dashboard for ease of access.
|
97 |
+
- Other minor improvements/changes.
|
98 |
+
|
99 |
= 5.0.1 =
|
100 |
|
101 |
**If you're using a caching plugin, flushing its cache right after installing / upgrading to this version is recommended.**
|
src/Activation/Deactivator.php
CHANGED
@@ -61,5 +61,6 @@ class Deactivator {
|
|
61 |
{
|
62 |
remove_shortcode('wpp');
|
63 |
wp_clear_scheduled_hook('wpp_cache_event');
|
|
|
64 |
}
|
65 |
}
|
61 |
{
|
62 |
remove_shortcode('wpp');
|
63 |
wp_clear_scheduled_hook('wpp_cache_event');
|
64 |
+
wp_clear_scheduled_hook('wpp_maybe_performance_nag');
|
65 |
}
|
66 |
}
|
src/Admin/Admin.php
CHANGED
@@ -69,6 +69,21 @@ class Admin {
|
|
69 |
|
70 |
// Allow WP themers / coders to override data sampling status (active/inactive)
|
71 |
$this->config['tools']['sampling']['active'] = apply_filters('wpp_data_sampling', $this->config['tools']['sampling']['active']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
@@ -115,6 +130,10 @@ class Admin {
|
|
115 |
add_action('admin_init', [$this, 'purge_post_data']);
|
116 |
// Purge old data on demand
|
117 |
add_action('wpp_cache_event', [$this, 'purge_data']);
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
/**
|
@@ -127,6 +146,45 @@ class Admin {
|
|
127 |
$this->upgrade_site();
|
128 |
}
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
/**
|
131 |
* Upgrades single site.
|
132 |
*
|
@@ -1024,7 +1082,7 @@ class Admin {
|
|
1024 |
<?php
|
1025 |
foreach( $posts as $post ) { ?>
|
1026 |
<li>
|
1027 |
-
<a href="<?php echo get_permalink($post->id); ?>" class="wpp-title"><?php echo sanitize_text_field($post->title); ?></a>
|
1028 |
<div>
|
1029 |
<?php if ( 'most-viewed' == $list ) : ?>
|
1030 |
<span><?php printf(_n('%s view', '%s views', $post->pageviews, 'wordpress-popular-posts' ), number_format_i18n($post->pageviews)); ?></span>
|
@@ -1261,4 +1319,61 @@ class Admin {
|
|
1261 |
global $wpdb;
|
1262 |
$wpdb->query("DELETE FROM {$wpdb->prefix}popularpostssummary WHERE view_date < DATE_SUB('" . Helper::curdate() . "', INTERVAL {$this->config['tools']['log']['expires_after']} DAY);");
|
1263 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1264 |
}
|
69 |
|
70 |
// Allow WP themers / coders to override data sampling status (active/inactive)
|
71 |
$this->config['tools']['sampling']['active'] = apply_filters('wpp_data_sampling', $this->config['tools']['sampling']['active']);
|
72 |
+
|
73 |
+
if (
|
74 |
+
! ( wp_using_ext_object_cache() && defined('WPP_CACHE_VIEWS') && WPP_CACHE_VIEWS ) // Not using a persistent object cache
|
75 |
+
&& ! $this->config['tools']['sampling']['active'] // Not using Data Sampling
|
76 |
+
) {
|
77 |
+
// Schedule performance nag
|
78 |
+
if ( ! wp_next_scheduled('wpp_maybe_performance_nag') ) {
|
79 |
+
wp_schedule_event(time(), 'hourly', 'wpp_maybe_performance_nag');
|
80 |
+
}
|
81 |
+
} else {
|
82 |
+
// Remove the scheduled performance nag if found
|
83 |
+
if ( $timestamp = wp_next_scheduled('wpp_maybe_performance_nag') ) {
|
84 |
+
wp_unschedule_event($timestamp, 'wpp_maybe_performance_nag');
|
85 |
+
}
|
86 |
+
}
|
87 |
}
|
88 |
|
89 |
/**
|
130 |
add_action('admin_init', [$this, 'purge_post_data']);
|
131 |
// Purge old data on demand
|
132 |
add_action('wpp_cache_event', [$this, 'purge_data']);
|
133 |
+
// Maybe performance nag
|
134 |
+
add_action('wpp_maybe_performance_nag', [$this, 'performance_check']);
|
135 |
+
// Show notices
|
136 |
+
add_action('admin_notices', [$this, 'notices']);
|
137 |
}
|
138 |
|
139 |
/**
|
146 |
$this->upgrade_site();
|
147 |
}
|
148 |
|
149 |
+
/**
|
150 |
+
* Checks whether a performance tweak may be necessary.
|
151 |
+
*
|
152 |
+
* @since 5.0.2
|
153 |
+
*/
|
154 |
+
public function performance_check()
|
155 |
+
{
|
156 |
+
$performance_nag = get_option('wpp_performance_nag');
|
157 |
+
|
158 |
+
if ( ! $performance_nag ) {
|
159 |
+
$performance_nag = [
|
160 |
+
'status' => 0,
|
161 |
+
'last_checked' => null
|
162 |
+
];
|
163 |
+
add_option('wpp_performance_nag', $performance_nag);
|
164 |
+
}
|
165 |
+
|
166 |
+
if ( 3 != $performance_nag['status'] ) { // 0 = inactive, 1 = active, 2 = remind me later, 3 = dismissed
|
167 |
+
global $wpdb;
|
168 |
+
|
169 |
+
$views_count = $wpdb->get_var(
|
170 |
+
$wpdb->prepare(
|
171 |
+
"SELECT IFNULL(SUM(pageviews), 0) AS views FROM {$wpdb->prefix}popularpostssummary WHERE view_datetime > DATE_SUB(%s, INTERVAL 1 HOUR);",
|
172 |
+
Helper::now()
|
173 |
+
)
|
174 |
+
);
|
175 |
+
|
176 |
+
// This site is probably a mid/high traffic one,
|
177 |
+
// display performance nag
|
178 |
+
if ( $views_count >= 420 ) {
|
179 |
+
if ( 0 == $performance_nag['status'] ) {
|
180 |
+
$performance_nag['status'] = 1;
|
181 |
+
$performance_nag['last_checked'] = Helper::timestamp();
|
182 |
+
update_option('wpp_performance_nag', $performance_nag);
|
183 |
+
}
|
184 |
+
}
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
/**
|
189 |
* Upgrades single site.
|
190 |
*
|
1082 |
<?php
|
1083 |
foreach( $posts as $post ) { ?>
|
1084 |
<li>
|
1085 |
+
<a href="<?php echo get_permalink($post->id); ?>" class="wpp-title"><?php echo sanitize_text_field(apply_filters('the_title', $post->title, $post->id)); ?></a>
|
1086 |
<div>
|
1087 |
<?php if ( 'most-viewed' == $list ) : ?>
|
1088 |
<span><?php printf(_n('%s view', '%s views', $post->pageviews, 'wordpress-popular-posts' ), number_format_i18n($post->pageviews)); ?></span>
|
1319 |
global $wpdb;
|
1320 |
$wpdb->query("DELETE FROM {$wpdb->prefix}popularpostssummary WHERE view_date < DATE_SUB('" . Helper::curdate() . "', INTERVAL {$this->config['tools']['log']['expires_after']} DAY);");
|
1321 |
}
|
1322 |
+
|
1323 |
+
/**
|
1324 |
+
* Displays admin notices.
|
1325 |
+
*
|
1326 |
+
* @since 5.0.2
|
1327 |
+
*/
|
1328 |
+
public function notices()
|
1329 |
+
{
|
1330 |
+
/** Performance nag */
|
1331 |
+
$performance_nag = get_option('wpp_performance_nag');
|
1332 |
+
|
1333 |
+
if (
|
1334 |
+
isset($performance_nag['status'])
|
1335 |
+
&& 3 != $performance_nag['status'] // 0 = inactive, 1 = active, 2 = remind me later, 3 = dismissed
|
1336 |
+
) {
|
1337 |
+
$now = Helper::timestamp();
|
1338 |
+
|
1339 |
+
if ( isset($_GET['wpp_dismiss_performance_notice']) || isset($_GET['wpp_remind_performance_notice']) ) {
|
1340 |
+
// User dismissed the notice
|
1341 |
+
if ( isset($_GET['wpp_dismiss_performance_notice']) ) {
|
1342 |
+
$performance_nag['status'] = 3;
|
1343 |
+
} // User asked us to remind them later
|
1344 |
+
else {
|
1345 |
+
$performance_nag['status'] = 2;
|
1346 |
+
$performance_nag['last_checked'] = $now;
|
1347 |
+
}
|
1348 |
+
|
1349 |
+
update_option('wpp_performance_nag', $performance_nag);
|
1350 |
+
echo '<script>window.location.replace("'. esc_url(remove_query_arg(['wpp_dismiss_performance_notice', 'wpp_remind_performance_notice'])) .'");</script>';
|
1351 |
+
} // Maybe display the notice
|
1352 |
+
else {
|
1353 |
+
// How much time has passed since the notice was last displayed?
|
1354 |
+
$last_checked = $performance_nag['last_checked'];
|
1355 |
+
|
1356 |
+
if ( $last_checked ) {
|
1357 |
+
$last_checked = ($now - $last_checked) / (60 * 60);
|
1358 |
+
}
|
1359 |
+
|
1360 |
+
if (
|
1361 |
+
1 == $performance_nag['status']
|
1362 |
+
|| ( 2 == $performance_nag['status'] && $last_checked && $last_checked >= 24 )
|
1363 |
+
) {
|
1364 |
+
?>
|
1365 |
+
<div class="notice notice-warning">
|
1366 |
+
<p><?php printf(
|
1367 |
+
__("<strong>WordPress Popular Posts:</strong> It seems your site is popular (great!) You may want to check <a href=\"%s\">these suggestions</a> to make sure your website's performance stays up to par.", 'wordpress-popular-posts'),
|
1368 |
+
'https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance'
|
1369 |
+
) ?></p>
|
1370 |
+
<?php if ( current_user_can('manage_options') ) : ?>
|
1371 |
+
<p><a href="<?php echo add_query_arg('wpp_dismiss_performance_notice', '1'); ?>">Dismiss</a> | <a href="<?php echo add_query_arg('wpp_remind_performance_notice', '1'); ?>">Remind me later</a></p>
|
1372 |
+
<?php endif; ?>
|
1373 |
+
</div>
|
1374 |
+
<?php
|
1375 |
+
}
|
1376 |
+
}
|
1377 |
+
}
|
1378 |
+
}
|
1379 |
}
|
src/Admin/admin-page.php
CHANGED
@@ -240,6 +240,7 @@ if ( ! $wpp_rand = get_option("wpp_rand") ) {
|
|
240 |
<li <?php echo ('stats' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=stats'); ?>" title="<?php esc_attr_e('Stats', 'wordpress-popular-posts'); ?>"><span><?php _e('Stats', 'wordpress-popular-posts'); ?></span></a></li>
|
241 |
<li <?php echo ('tools' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=tools'); ?>" title="<?php esc_attr_e('Tools', 'wordpress-popular-posts'); ?>"><span><?php _e('Tools', 'wordpress-popular-posts'); ?></span></a></li>
|
242 |
<li <?php echo ('params' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=params'); ?>" title="<?php esc_attr_e('Parameters', 'wordpress-popular-posts'); ?>"><span><?php _e('Parameters', 'wordpress-popular-posts'); ?></span></a></li>
|
|
|
243 |
</ul>
|
244 |
</nav>
|
245 |
|
@@ -892,6 +893,32 @@ if ( ! $wpp_rand = get_option("wpp_rand") ) {
|
|
892 |
$my_theme = wp_get_theme();
|
893 |
$site_plugins = get_plugins();
|
894 |
$plugin_names = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
895 |
|
896 |
foreach( $site_plugins as $main_file => $plugin_meta ) :
|
897 |
if ( ! is_plugin_active($main_file) )
|
@@ -900,14 +927,24 @@ if ( ! $wpp_rand = get_option("wpp_rand") ) {
|
|
900 |
endforeach;
|
901 |
?>
|
902 |
<div id="wpp_debug" <?php echo ( "debug" == $current ) ? '' : ' style="display: none;"'; ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
903 |
<p><strong>PHP version:</strong> <?php echo phpversion(); ?></p>
|
904 |
<p><strong>PHP extensions:</strong> <?php echo implode(', ', get_loaded_extensions()); ?></p>
|
905 |
<p><strong>Database version:</strong> <?php echo $wpdb->get_var("SELECT VERSION();"); ?></p>
|
906 |
<p><strong>InnoDB availability:</strong> <?php echo $wpdb->get_var("SELECT SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE = 'InnoDB';"); ?></p>
|
907 |
<p><strong>WordPress version:</strong> <?php echo $wp_version; ?></p>
|
908 |
<p><strong>Multisite:</strong> <?php echo ( function_exists('is_multisite') && is_multisite() ) ? 'Yes' : 'No'; ?></p>
|
909 |
-
<p><strong>External object cache:</strong> <?php echo ( wp_using_ext_object_cache() ) ? 'Yes' : 'No'; ?></p>
|
910 |
-
<p><strong>WPP_CACHE_VIEWS:</strong> <?php echo ( defined('WPP_CACHE_VIEWS') && WPP_CACHE_VIEWS ) ? 'Yes' : 'No'; ?></p>
|
911 |
<p><strong>Active plugins:</strong> <?php echo implode(', ', $plugin_names); ?></p>
|
912 |
<p><strong>Theme:</strong> <?php echo $my_theme->get('Name') . ' (' . $my_theme->get('Version') . ') by ' . $my_theme->get('Author'); ?></p>
|
913 |
</div>
|
240 |
<li <?php echo ('stats' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=stats'); ?>" title="<?php esc_attr_e('Stats', 'wordpress-popular-posts'); ?>"><span><?php _e('Stats', 'wordpress-popular-posts'); ?></span></a></li>
|
241 |
<li <?php echo ('tools' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=tools'); ?>" title="<?php esc_attr_e('Tools', 'wordpress-popular-posts'); ?>"><span><?php _e('Tools', 'wordpress-popular-posts'); ?></span></a></li>
|
242 |
<li <?php echo ('params' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=params'); ?>" title="<?php esc_attr_e('Parameters', 'wordpress-popular-posts'); ?>"><span><?php _e('Parameters', 'wordpress-popular-posts'); ?></span></a></li>
|
243 |
+
<li <?php echo ('debug' == $current ) ? 'class="current"' : ''; ?>><a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=debug'); ?>" title="Debug"><span>Debug</span></a></li>
|
244 |
</ul>
|
245 |
</nav>
|
246 |
|
893 |
$my_theme = wp_get_theme();
|
894 |
$site_plugins = get_plugins();
|
895 |
$plugin_names = [];
|
896 |
+
$performance_nag = get_option('wpp_performance_nag');
|
897 |
+
|
898 |
+
if ( ! $performance_nag ) {
|
899 |
+
$performance_nag = [
|
900 |
+
'status' => 0,
|
901 |
+
'last_checked' => null
|
902 |
+
];
|
903 |
+
}
|
904 |
+
|
905 |
+
switch($performance_nag['status']) {
|
906 |
+
case 0:
|
907 |
+
$performance_nag_status = 'Inactive';
|
908 |
+
break;
|
909 |
+
case 1:
|
910 |
+
$performance_nag_status = 'Active';
|
911 |
+
break;
|
912 |
+
case 2:
|
913 |
+
$performance_nag_status = 'Remind me later';
|
914 |
+
break;
|
915 |
+
case 3:
|
916 |
+
$performance_nag_status = 'Dismissed';
|
917 |
+
break;
|
918 |
+
default:
|
919 |
+
$performance_nag_status = 'Inactive';
|
920 |
+
break;
|
921 |
+
}
|
922 |
|
923 |
foreach( $site_plugins as $main_file => $plugin_meta ) :
|
924 |
if ( ! is_plugin_active($main_file) )
|
927 |
endforeach;
|
928 |
?>
|
929 |
<div id="wpp_debug" <?php echo ( "debug" == $current ) ? '' : ' style="display: none;"'; ?>>
|
930 |
+
<h3>Plugin Configuration</h3>
|
931 |
+
<p><strong>Performance Nag:</strong> <?php echo $performance_nag_status; ?></p>
|
932 |
+
<p><strong>Log Limit:</strong> <?php echo ( $this->config['tools']['log']['limit'] ) ? 'Yes, keep data for ' . $this->config['tools']['log']['expires_after'] . ' days' : 'No'; ?></p>
|
933 |
+
<p><strong>Log Views From:</strong> <?php echo ( 0 == $this->config['tools']['log']['level'] ) ? 'Visitors only' : ( (2 == $this->config['tools']['log']['level']) ? 'Logged-in users only' : 'Everyone' ); ?></p>
|
934 |
+
<p><strong>Data Caching:</strong> <?php echo ( $this->config['tools']['cache']['active'] ) ? 'Yes, ' . $this->config['tools']['cache']['interval']['value'] . ' ' . $this->config['tools']['cache']['interval']['time'] : 'No'; ?></p>
|
935 |
+
<p><strong>Data Sampling:</strong> <?php echo ( $this->config['tools']['sampling']['active'] ) ? 'Yes, with a rate of ' . $this->config['tools']['sampling']['rate'] : 'No'; ?></p>
|
936 |
+
<p><strong>External object cache:</strong> <?php echo ( wp_using_ext_object_cache() ) ? 'Yes' : 'No'; ?></p>
|
937 |
+
<p><strong>WPP_CACHE_VIEWS:</strong> <?php echo ( defined('WPP_CACHE_VIEWS') && WPP_CACHE_VIEWS ) ? 'Yes' : 'No'; ?></p>
|
938 |
+
|
939 |
+
<br />
|
940 |
+
|
941 |
+
<h3>System Info</h3>
|
942 |
<p><strong>PHP version:</strong> <?php echo phpversion(); ?></p>
|
943 |
<p><strong>PHP extensions:</strong> <?php echo implode(', ', get_loaded_extensions()); ?></p>
|
944 |
<p><strong>Database version:</strong> <?php echo $wpdb->get_var("SELECT VERSION();"); ?></p>
|
945 |
<p><strong>InnoDB availability:</strong> <?php echo $wpdb->get_var("SELECT SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE = 'InnoDB';"); ?></p>
|
946 |
<p><strong>WordPress version:</strong> <?php echo $wp_version; ?></p>
|
947 |
<p><strong>Multisite:</strong> <?php echo ( function_exists('is_multisite') && is_multisite() ) ? 'Yes' : 'No'; ?></p>
|
|
|
|
|
948 |
<p><strong>Active plugins:</strong> <?php echo implode(', ', $plugin_names); ?></p>
|
949 |
<p><strong>Theme:</strong> <?php echo $my_theme->get('Name') . ' (' . $my_theme->get('Version') . ') by ' . $my_theme->get('Author'); ?></p>
|
950 |
</div>
|
src/Bootstrap.php
CHANGED
@@ -18,9 +18,8 @@ $container->configure([
|
|
18 |
$WordPressPopularPosts = $container['wpp'];
|
19 |
add_action('plugins_loaded', [$WordPressPopularPosts, 'init']);
|
20 |
|
21 |
-
// WPP_Query will be removed on a future release.
|
22 |
-
// It was been superseeded by \WordPressPopularPosts\Query.
|
23 |
-
require __DIR__ . '/WPP_Query.php';
|
24 |
-
|
25 |
// WPP's template tags
|
26 |
require __DIR__ . '/template-tags.php';
|
|
|
|
|
|
18 |
$WordPressPopularPosts = $container['wpp'];
|
19 |
add_action('plugins_loaded', [$WordPressPopularPosts, 'init']);
|
20 |
|
|
|
|
|
|
|
|
|
21 |
// WPP's template tags
|
22 |
require __DIR__ . '/template-tags.php';
|
23 |
+
|
24 |
+
// Deprecated functions/classes
|
25 |
+
require __DIR__ . '/deprecated.php';
|
src/Helper.php
CHANGED
@@ -93,6 +93,18 @@ class Helper {
|
|
93 |
return current_time('mysql');
|
94 |
}
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
/**
|
97 |
* Returns site's timezone.
|
98 |
*
|
93 |
return current_time('mysql');
|
94 |
}
|
95 |
|
96 |
+
/**
|
97 |
+
* Returns current timestamp.
|
98 |
+
*
|
99 |
+
* @since 5.0.2
|
100 |
+
* @return string
|
101 |
+
*/
|
102 |
+
public static function timestamp()
|
103 |
+
{
|
104 |
+
// current_datetime() is WP 5.3+
|
105 |
+
return ( function_exists('current_datetime') ) ? current_datetime()->getTimestamp() : current_time('timestamp');
|
106 |
+
}
|
107 |
+
|
108 |
/**
|
109 |
* Returns site's timezone.
|
110 |
*
|
src/Output.php
CHANGED
@@ -319,7 +319,7 @@ class Output {
|
|
319 |
'img' => ( ! empty($post_thumbnail) ) ? '<a href="' . $permalink . '" ' . ($post_title_attr !== $post_title ? 'title="' . $post_title_attr . '" ' : '' ) . 'target="' . $this->admin_options['tools']['link']['target'] . '">' . $post_thumbnail . '</a>' : '',
|
320 |
'img_no_link' => $post_thumbnail,
|
321 |
'url' => $permalink,
|
322 |
-
'text_title' => $
|
323 |
'taxonomy' => $post_taxonomies,
|
324 |
'author' => ( ! empty($post_author) ) ? '<a href="' . get_author_posts_url($post_object->uid != $post_id ? get_post_field('post_author', $post_id) : $post_object->uid ) . '">' . $post_author . '</a>' : '',
|
325 |
'views' => ( $this->public_options['order_by'] == "views" || $this->public_options['order_by'] == "comments" ) ? number_format_i18n($post_views) : number_format_i18n($post_views, 2),
|
@@ -386,6 +386,11 @@ class Output {
|
|
386 |
} else {
|
387 |
$title = $post_object->title;
|
388 |
}
|
|
|
|
|
|
|
|
|
|
|
389 |
return apply_filters('wpp_the_title', $title, $post_object->id, $post_id);
|
390 |
}
|
391 |
|
319 |
'img' => ( ! empty($post_thumbnail) ) ? '<a href="' . $permalink . '" ' . ($post_title_attr !== $post_title ? 'title="' . $post_title_attr . '" ' : '' ) . 'target="' . $this->admin_options['tools']['link']['target'] . '">' . $post_thumbnail . '</a>' : '',
|
320 |
'img_no_link' => $post_thumbnail,
|
321 |
'url' => $permalink,
|
322 |
+
'text_title' => $post_title,
|
323 |
'taxonomy' => $post_taxonomies,
|
324 |
'author' => ( ! empty($post_author) ) ? '<a href="' . get_author_posts_url($post_object->uid != $post_id ? get_post_field('post_author', $post_id) : $post_object->uid ) . '">' . $post_author . '</a>' : '',
|
325 |
'views' => ( $this->public_options['order_by'] == "views" || $this->public_options['order_by'] == "comments" ) ? number_format_i18n($post_views) : number_format_i18n($post_views, 2),
|
386 |
} else {
|
387 |
$title = $post_object->title;
|
388 |
}
|
389 |
+
|
390 |
+
// Run the_title filter so core/plugin title hooks can
|
391 |
+
// be applied to the post title
|
392 |
+
$title = apply_filters('the_title', $title, $post_object->id);
|
393 |
+
|
394 |
return apply_filters('wpp_the_title', $title, $post_object->id, $post_id);
|
395 |
}
|
396 |
|
src/WPP_Query.php
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Queries the database for popular posts.
|
4 |
-
*
|
5 |
-
* To use this class, you must pass it an array of parameters (mostly the same ones used with
|
6 |
-
* the wpp_get_mostpopular() template tag). The very minimum required parameters are 'range', 'order_by'
|
7 |
-
* and 'limit'.
|
8 |
-
*
|
9 |
-
* eg.: $popular_posts = new WPP_Query( array('range' => 'last7days', 'order_by' => 'views', 'limit' => 5) );
|
10 |
-
*
|
11 |
-
* @since 4.0.0
|
12 |
-
* @package WordPressPopularPosts
|
13 |
-
*/
|
14 |
-
|
15 |
-
class WPP_Query extends \WordPressPopularPosts\Query {
|
16 |
-
/**
|
17 |
-
* Constructor.
|
18 |
-
*
|
19 |
-
* @since 4.0.0
|
20 |
-
* @param array $options
|
21 |
-
*/
|
22 |
-
public function __construct(array $options = [])
|
23 |
-
{
|
24 |
-
parent::__construct($options);
|
25 |
-
trigger_error('WPP_Query will be deprecated soon. Please use \WordPressPopularPosts\Query instead.', E_USER_NOTICE);
|
26 |
-
}
|
27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/deprecated.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Deprecated functions.
|
4 |
+
*/
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
|
8 |
+
*
|
9 |
+
* @since 1.0
|
10 |
+
* @param mixed $args
|
11 |
+
*/
|
12 |
+
function get_mostpopular($args = NULL) {
|
13 |
+
trigger_error( 'The get_mostpopular() template tag has been deprecated since 2.0.3. Please use wpp_get_mostpopular() instead.', E_USER_WARNING );
|
14 |
+
}
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Deprecated classes.
|
18 |
+
*/
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Queries the database for popular posts. Deprecated since 5.0.0, use \WordPressPopularPosts\Query instead.
|
22 |
+
*
|
23 |
+
* To use this class, you must pass it an array of parameters (mostly the same ones used with
|
24 |
+
* the wpp_get_mostpopular() template tag). The very minimum required parameters are 'range', 'order_by'
|
25 |
+
* and 'limit'.
|
26 |
+
*
|
27 |
+
* eg.: $popular_posts = new WPP_Query( array('range' => 'last7days', 'order_by' => 'views', 'limit' => 5) );
|
28 |
+
*
|
29 |
+
* @since 4.0.0
|
30 |
+
* @package WordPressPopularPosts
|
31 |
+
*/
|
32 |
+
|
33 |
+
class WPP_Query extends \WordPressPopularPosts\Query {
|
34 |
+
/**
|
35 |
+
* Constructor.
|
36 |
+
*
|
37 |
+
* @since 4.0.0
|
38 |
+
* @param array $options
|
39 |
+
*/
|
40 |
+
public function __construct(array $options = [])
|
41 |
+
{
|
42 |
+
parent::__construct($options);
|
43 |
+
trigger_error('The WPP_Query class has been deprecated since 5.0.0. Please use \WordPressPopularPosts\Query instead.', E_USER_NOTICE);
|
44 |
+
}
|
45 |
+
}
|
src/template-tags.php
CHANGED
@@ -101,13 +101,3 @@ function wpp_get_mostpopular($args = NULL)
|
|
101 |
|
102 |
echo do_shortcode($shortcode);
|
103 |
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
|
107 |
-
*
|
108 |
-
* @since 1.0
|
109 |
-
* @param mixed $args
|
110 |
-
*/
|
111 |
-
function get_mostpopular($args = NULL) {
|
112 |
-
trigger_error( 'The get_mostpopular() template tag has been deprecated since 2.0.3. Please use wpp_get_mostpopular() instead.', E_USER_WARNING );
|
113 |
-
}
|
101 |
|
102 |
echo do_shortcode($shortcode);
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uninstall.php
CHANGED
@@ -6,90 +6,75 @@
|
|
6 |
* @author Hector Cabrera <me@cabrerahector.com>
|
7 |
* @license GPL-2.0+
|
8 |
* @link https://cabrerahector.com
|
9 |
-
* @copyright 2008-
|
10 |
*/
|
11 |
|
12 |
-
// If uninstall
|
13 |
-
if ( !defined(
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
// Run uninstall for each blog in the network
|
18 |
-
if (
|
19 |
-
|
|
|
|
|
20 |
global $wpdb;
|
21 |
|
22 |
$original_blog_id = get_current_blog_id();
|
23 |
-
$blogs_ids = $wpdb->get_col(
|
24 |
|
25 |
foreach( $blogs_ids as $blog_id ) {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
// Delete plugin's options
|
30 |
-
delete_option( 'wpp_ver' );
|
31 |
-
delete_option( 'wpp_update' );
|
32 |
-
delete_option( 'wpp_settings_config' );
|
33 |
-
delete_option( 'wpp_rand' );
|
34 |
-
delete_option( 'wpp_transients' );
|
35 |
-
|
36 |
-
// delete tables
|
37 |
uninstall();
|
38 |
-
|
39 |
// delete thumbnails cache and its directory
|
40 |
delete_thumb_cache();
|
41 |
-
|
42 |
}
|
43 |
|
44 |
// Switch back to current blog
|
45 |
-
switch_to_blog(
|
46 |
-
|
47 |
} else {
|
48 |
-
|
49 |
-
// Delete plugin's options
|
50 |
-
delete_option( 'wpp_ver' );
|
51 |
-
delete_option( 'wpp_update' );
|
52 |
-
delete_option( 'wpp_settings_config' );
|
53 |
-
delete_option( 'wpp_rand' );
|
54 |
-
delete_option( 'wpp_transients' );
|
55 |
-
|
56 |
-
// delete tables
|
57 |
uninstall();
|
58 |
-
|
59 |
// delete thumbnails cache and its directory
|
60 |
delete_thumb_cache();
|
61 |
-
|
62 |
}
|
63 |
|
64 |
function delete_thumb_cache() {
|
65 |
$wp_upload_dir = wp_get_upload_dir();
|
66 |
|
67 |
-
if ( is_dir(
|
68 |
-
$files = glob(
|
69 |
|
70 |
-
if ( is_array($files) && !empty($files) ) {
|
71 |
-
foreach($files as $file){ // iterate files
|
72 |
if ( is_file($file) )
|
73 |
@unlink($file); // delete file
|
74 |
}
|
75 |
}
|
76 |
|
77 |
-
// Finally, delete
|
78 |
-
@rmdir(
|
79 |
-
|
80 |
}
|
81 |
}
|
82 |
|
83 |
-
function uninstall(){
|
84 |
-
|
85 |
global $wpdb;
|
86 |
|
87 |
-
// Delete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
$prefix = $wpdb->prefix . "popularposts";
|
89 |
-
$wpdb->query(
|
90 |
-
$wpdb->query(
|
91 |
-
$wpdb->query(
|
92 |
-
$wpdb->query(
|
93 |
-
$wpdb->query(
|
94 |
-
|
95 |
-
}
|
6 |
* @author Hector Cabrera <me@cabrerahector.com>
|
7 |
* @license GPL-2.0+
|
8 |
* @link https://cabrerahector.com
|
9 |
+
* @copyright 2008-2019 Hector Cabrera
|
10 |
*/
|
11 |
|
12 |
+
// If uninstall is not called from WordPress, exit
|
13 |
+
if ( ! defined('WP_UNINSTALL_PLUGIN') ) {
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
// Run uninstall for each blog in the network
|
18 |
+
if (
|
19 |
+
function_exists('is_multisite')
|
20 |
+
&& is_multisite()
|
21 |
+
) {
|
22 |
global $wpdb;
|
23 |
|
24 |
$original_blog_id = get_current_blog_id();
|
25 |
+
$blogs_ids = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
|
26 |
|
27 |
foreach( $blogs_ids as $blog_id ) {
|
28 |
+
switch_to_blog($blog_id);
|
29 |
+
// delete tables and options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
uninstall();
|
|
|
31 |
// delete thumbnails cache and its directory
|
32 |
delete_thumb_cache();
|
|
|
33 |
}
|
34 |
|
35 |
// Switch back to current blog
|
36 |
+
switch_to_blog($original_blog_id);
|
|
|
37 |
} else {
|
38 |
+
// delete tables and options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
uninstall();
|
|
|
40 |
// delete thumbnails cache and its directory
|
41 |
delete_thumb_cache();
|
|
|
42 |
}
|
43 |
|
44 |
function delete_thumb_cache() {
|
45 |
$wp_upload_dir = wp_get_upload_dir();
|
46 |
|
47 |
+
if ( is_dir($wp_upload_dir['basedir'] . "/wordpress-popular-posts") ) {
|
48 |
+
$files = glob($wp_upload_dir['basedir'] . "/wordpress-popular-posts/*"); // get all file names
|
49 |
|
50 |
+
if ( is_array($files) && ! empty($files) ) {
|
51 |
+
foreach( $files as $file ){ // iterate files
|
52 |
if ( is_file($file) )
|
53 |
@unlink($file); // delete file
|
54 |
}
|
55 |
}
|
56 |
|
57 |
+
// Finally, delete WPP's upload directory
|
58 |
+
@rmdir($wp_upload_dir['basedir'] . "/wordpress-popular-posts");
|
|
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
function uninstall() {
|
|
|
63 |
global $wpdb;
|
64 |
|
65 |
+
// Delete plugin's options
|
66 |
+
delete_option('wpp_ver');
|
67 |
+
delete_option('wpp_update');
|
68 |
+
delete_option('wpp_settings_config');
|
69 |
+
delete_option('wpp_rand');
|
70 |
+
delete_option('wpp_transients');
|
71 |
+
delete_option('wpp_performance_nag');
|
72 |
+
|
73 |
+
// Delete WPP's DB tables
|
74 |
$prefix = $wpdb->prefix . "popularposts";
|
75 |
+
$wpdb->query("DROP TABLE IF EXISTS {$prefix}data;");
|
76 |
+
$wpdb->query("DROP TABLE IF EXISTS {$prefix}datacache;");
|
77 |
+
$wpdb->query("DROP TABLE IF EXISTS {$prefix}datacache_backup;");
|
78 |
+
$wpdb->query("DROP TABLE IF EXISTS {$prefix}log;");
|
79 |
+
$wpdb->query("DROP TABLE IF EXISTS {$prefix}summary;");
|
80 |
+
}
|
|
wordpress-popular-posts.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: WordPress Popular Posts
|
17 |
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
|
18 |
* Description: A highly customizable widget that displays the most popular posts on your blog.
|
19 |
-
* Version: 5.0.
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: https://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|
@@ -29,7 +29,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
29 |
die();
|
30 |
}
|
31 |
|
32 |
-
define('WPP_VERSION', '5.0.
|
33 |
define('WPP_MIN_PHP_VERSION', '5.4');
|
34 |
define('WPP_MIN_WP_VERSION', '4.9');
|
35 |
|
16 |
* Plugin Name: WordPress Popular Posts
|
17 |
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
|
18 |
* Description: A highly customizable widget that displays the most popular posts on your blog.
|
19 |
+
* Version: 5.0.2
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: https://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|
29 |
die();
|
30 |
}
|
31 |
|
32 |
+
define('WPP_VERSION', '5.0.2');
|
33 |
define('WPP_MIN_PHP_VERSION', '5.4');
|
34 |
define('WPP_MIN_WP_VERSION', '4.9');
|
35 |
|