WordPress Popular Posts - Version 5.4.1

Version Description

If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.

  • Widget block: fixes WPP block loading block editor JS files on the front end.
  • Adds filter hook to disable Block editor support.
  • Improves logic of filter hooks wpp_excerpt_more and wpp_title_more.
  • The Parameters section has been moved to the Wiki (see https://git.io/JEOrX).

Release notes

Download this release

Release Info

Developer hcabrera
Plugin Icon 128x128 WordPress Popular Posts
Version 5.4.1
Comparing to
See all releases

Code changes from version 5.4.0 to 5.4.1

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: 2021-08-19 11:59-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"
@@ -17,452 +17,449 @@ msgstr ""
17
  "X-Generator: Poedit 2.4.2\n"
18
  "X-Poedit-KeywordsList: _e;__;__ngettext;__ngettext_noop;_n_noop;_x;_nx;_nx_noop;_ex;"
19
  "esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;esc_html_x;_c;_nc;_n:1,2\n"
20
- "X-Poedit-Basepath: .\n"
21
  "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-SearchPath-0: .\n"
23
- "X-Poedit-SearchPath-1: ..\n"
 
 
 
24
 
25
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:125
26
  msgid "Preview"
27
  msgstr ""
28
 
29
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/Admin.php:1139
30
- #: ../src/Block/Widget/edit.js:125
31
  msgid "Edit"
32
  msgstr ""
33
 
34
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:176
35
- #: ../src/Widget/form.php:7
36
  msgid "Title"
37
  msgstr ""
38
 
39
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:143
40
- #: ../src/Block/Widget/edit.js:181
41
  msgid "Limit"
42
  msgstr ""
43
 
44
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:186
45
- #: ../src/Widget/form.php:19
46
  msgid "Sort posts by"
47
  msgstr ""
48
 
49
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:189
50
- #: ../src/Widget/form.php:22
51
  msgid "Total views"
52
  msgstr ""
53
 
54
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/Admin.php:765
55
- #: ../src/Block/Widget/edit.js:190 ../src/Widget/form.php:21
56
  msgid "Comments"
57
  msgstr ""
58
 
59
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:195
60
- #: ../src/Widget/form.php:32
61
  msgid "Time Range"
62
  msgstr ""
63
 
64
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:198
65
  msgid "Last 24 Hours"
66
  msgstr ""
67
 
68
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:199
69
- #: ../src/Block/Widget/edit.js:199 ../src/Widget/form.php:35
70
  msgid "Last 7 days"
71
  msgstr ""
72
 
73
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:200
74
- #: ../src/Block/Widget/edit.js:200 ../src/Widget/form.php:36
75
  msgid "Last 30 days"
76
  msgstr ""
77
 
78
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:201
79
- #: ../src/Widget/form.php:37
80
  msgid "All-time"
81
  msgstr ""
82
 
83
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:201
84
- #: ../src/Block/Widget/edit.js:202 ../src/Widget/form.php:38
85
  msgid "Custom"
86
  msgstr ""
87
 
88
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:209
89
  msgid "Time Quantity"
90
  msgstr ""
91
 
92
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:214
93
  msgid "Time Unit"
94
  msgstr ""
95
 
96
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:170
97
- #: ../src/Admin/admin-page.php:417 ../src/Block/Widget/edit.js:217
98
- #: ../src/Widget/form.php:45
99
  msgid "Minute(s)"
100
  msgstr ""
101
 
102
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:171
103
- #: ../src/Admin/admin-page.php:418 ../src/Block/Widget/edit.js:218
104
- #: ../src/Widget/form.php:46
105
  msgid "Hour(s)"
106
  msgstr ""
107
 
108
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:172
109
- #: ../src/Admin/admin-page.php:419 ../src/Block/Widget/edit.js:219
110
- #: ../src/Widget/form.php:47
111
  msgid "Day(s)"
112
  msgstr ""
113
 
114
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:146
115
- #: ../src/Block/Widget/edit.js:226 ../src/Widget/form.php:52
116
  msgid "Display only posts published within the selected Time Range"
117
  msgstr ""
118
 
119
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:327
120
- #: ../src/Widget/form.php:30
121
  msgid "Filters"
122
  msgstr ""
123
 
124
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:329
125
- #: ../src/Widget/form.php:54
126
  msgid "Post type(s)"
127
  msgstr ""
128
 
129
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:330
130
  msgid "Post types must be comma separated."
131
  msgstr ""
132
 
133
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:335
134
- #: ../src/Widget/form.php:57
135
  msgid "Post ID(s) to exclude"
136
  msgstr ""
137
 
138
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:336
139
- #: ../src/Block/Widget/edit.js:342
140
  msgid "IDs must be comma separated."
141
  msgstr ""
142
 
143
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:341
144
- #: ../src/Widget/form.php:88
145
  msgid "Author ID(s)"
146
  msgstr ""
147
 
148
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:351
149
  msgid "Term IDs must be comma separated, prefix a minus sign to exclude."
150
  msgstr ""
151
 
152
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:442
153
- #: ../src/Widget/form.php:94
154
  msgid "Posts settings"
155
  msgstr ""
156
 
157
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:444
158
- #: ../src/Widget/form.php:101
159
  msgid "Shorten title"
160
  msgstr ""
161
 
162
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:451
163
- #: ../src/Widget/form.php:104
164
  msgid "Shorten title to"
165
  msgstr ""
166
 
167
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:458
168
- #: ../src/Block/Widget/edit.js:485 ../src/Widget/form.php:105 ../src/Widget/form.php:115
169
  msgid "characters"
170
  msgstr ""
171
 
172
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:459
173
- #: ../src/Block/Widget/edit.js:486 ../src/Widget/form.php:106 ../src/Widget/form.php:116
174
  msgid "words"
175
  msgstr ""
176
 
177
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:466
178
- #: ../src/Widget/form.php:109
179
  msgid "Display post excerpt"
180
  msgstr ""
181
 
182
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:473
183
- #: ../src/Widget/form.php:112
184
  msgid "Keep text format and links"
185
  msgstr ""
186
 
187
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:478
188
- #: ../src/Widget/form.php:113
189
  msgid "Excerpt length"
190
  msgstr ""
191
 
192
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:493
193
- #: ../src/Widget/form.php:119
194
  msgid "Display post thumbnail"
195
  msgstr ""
196
 
197
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:502
198
- #: ../src/Widget/form.php:134
199
  msgid "Set size manually"
200
  msgstr ""
201
 
202
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:503
203
- #: ../src/Widget/form.php:122
204
  msgid "Use predefined size"
205
  msgstr ""
206
 
207
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:510
208
  msgid "Thumbnail width"
209
  msgstr ""
210
 
211
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:511
212
- #: ../src/Block/Widget/edit.js:517
213
  msgid "Size in px units (pixels)"
214
  msgstr ""
215
 
216
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:516
217
  msgid "Thumbnail height"
218
  msgstr ""
219
 
220
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:555
221
- #: ../src/Widget/form.php:146
222
  msgid "Stats Tag settings"
223
  msgstr ""
224
 
225
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:557
226
  msgid "Display comments count"
227
  msgstr ""
228
 
229
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:562
230
- #: ../src/Widget/form.php:150
231
  msgid "Display views"
232
  msgstr ""
233
 
234
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:567
235
- #: ../src/Widget/form.php:152
236
  msgid "Display author"
237
  msgstr ""
238
 
239
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:572
240
- #: ../src/Widget/form.php:154
241
  msgid "Display date"
242
  msgstr ""
243
 
244
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:579
245
- #: ../src/Widget/form.php:157
246
  msgid "Date Format"
247
  msgstr ""
248
 
249
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:582
250
- #: ../src/Widget/form.php:159
251
  msgid "Relative"
252
  msgstr ""
253
 
254
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:583
255
  msgid "Month Day, Year"
256
  msgstr ""
257
 
258
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:584
259
  msgid "yyyy/mm/dd"
260
  msgstr ""
261
 
262
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:585
263
  msgid "mm/dd/yyyy"
264
  msgstr ""
265
 
266
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:586
267
  msgid "dd/mm/yyyy"
268
  msgstr ""
269
 
270
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:593
271
- #: ../src/Widget/form.php:167
272
  msgid "Display taxonomy"
273
  msgstr ""
274
 
275
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:600
276
- #: ../src/Widget/form.php:60
277
  msgid "Taxonomy"
278
  msgstr ""
279
 
280
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Admin/admin-page.php:543
281
- #: ../src/Admin/admin-page.php:613 ../src/Admin/admin-page.php:620
282
- #: ../src/Admin/admin-page.php:627 ../src/Admin/admin-page.php:634
283
- #: ../src/Admin/admin-page.php:641 ../src/Block/Widget/edit.js:652
284
- #: ../src/Widget/form.php:226
285
  msgid "None"
286
  msgstr ""
287
 
288
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:669
289
- #: ../src/Widget/form.php:188
290
  msgid "HTML Markup settings"
291
  msgstr ""
292
 
293
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:671
294
- #: ../src/Widget/form.php:190
295
  msgid "Use custom HTML Markup"
296
  msgstr ""
297
 
298
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:679
299
  msgid "Before title"
300
  msgstr ""
301
 
302
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:685
303
  msgid "After title"
304
  msgstr ""
305
 
306
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:691
307
  msgid "Before popular posts"
308
  msgstr ""
309
 
310
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:697
311
  msgid "After popular posts"
312
  msgstr ""
313
 
314
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:702
315
  msgid "Post HTML markup"
316
  msgstr ""
317
 
318
- #: ../assets/js/blocks/block-wpp-widget.js:1 ../src/Block/Widget/edit.js:709
319
- #: ../src/Widget/form.php:218
320
  msgid "Theme"
321
  msgstr ""
322
 
323
- #: ../src/Admin/Admin.php:371
324
  #, php-format
325
  msgid "%s view in the last hour"
326
  msgid_plural "%s views in the last hour"
327
  msgstr[0] ""
328
  msgstr[1] ""
329
 
330
- #: ../src/Admin/Admin.php:405 ../src/Admin/admin-page.php:216
331
  msgid "Trending now"
332
  msgstr ""
333
 
334
- #: ../src/Admin/Admin.php:493
335
  msgid "View more"
336
  msgstr ""
337
 
338
- #: ../src/Admin/Admin.php:522
339
  msgid "Use this image"
340
  msgstr ""
341
 
342
- #: ../src/Admin/Admin.php:526
343
  msgid ""
344
  "This operation will delete all entries from WordPress Popular Posts' cache table and "
345
  "cannot be undone."
346
  msgstr ""
347
 
348
- #: ../src/Admin/Admin.php:527
349
  msgid "Success! The cache table has been cleared!"
350
  msgstr ""
351
 
352
- #: ../src/Admin/Admin.php:528
353
  msgid "Error: cache table does not exist."
354
  msgstr ""
355
 
356
- #: ../src/Admin/Admin.php:529
357
  msgid ""
358
  "This operation will delete all stored info from WordPress Popular Posts' data tables "
359
  "and cannot be undone."
360
  msgstr ""
361
 
362
- #: ../src/Admin/Admin.php:530
363
  msgid "Success! All data have been cleared!"
364
  msgstr ""
365
 
366
- #: ../src/Admin/Admin.php:531
367
  msgid "Error: one or both data tables are missing."
368
  msgstr ""
369
 
370
- #: ../src/Admin/Admin.php:532
371
  msgid "This operation will delete all cached thumbnails and cannot be undone."
372
  msgstr ""
373
 
374
- #: ../src/Admin/Admin.php:533
375
  msgid "Success! All files have been deleted!"
376
  msgstr ""
377
 
378
- #: ../src/Admin/Admin.php:534
379
  msgid "The thumbnail cache is already empty!"
380
  msgstr ""
381
 
382
- #: ../src/Admin/Admin.php:535
383
  msgid "Do you want to continue?"
384
  msgstr ""
385
 
386
- #: ../src/Admin/Admin.php:536
387
  msgid ""
388
  "Sorry, you do not have enough permissions to do this. Please contact the site "
389
  "administrator for support."
390
  msgstr ""
391
 
392
- #: ../src/Admin/Admin.php:537
393
  msgid "Invalid action."
394
  msgstr ""
395
 
396
- #: ../src/Admin/Admin.php:616
397
  msgid "Overview"
398
  msgstr ""
399
 
400
- #: ../src/Admin/Admin.php:617
401
  msgid ""
402
  "Welcome to WordPress Popular Posts' Dashboard! In this screen you will find statistics "
403
  "on what's popular on your site, tools to further tweak WPP to your needs, and more!"
404
  msgstr ""
405
 
406
- #: ../src/Admin/Admin.php:623
407
  msgid "Like this plugin?"
408
  msgstr ""
409
 
410
- #: ../src/Admin/Admin.php:625
411
  msgid ""
412
  "Each donation motivates me to keep releasing free stuff for the WordPress community!"
413
  msgstr ""
414
 
415
- #: ../src/Admin/Admin.php:632
416
  #, php-format
417
  msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
418
  msgstr ""
419
 
420
- #: ../src/Admin/Admin.php:639
421
  #, php-format
422
  msgid ""
423
  "<p><strong>For more information:</strong></p><ul><li><a href=\"%1$s\">Documentation</"
424
  "a></li><li><a href=\"%2$s\">Support</a></li></ul>"
425
  msgstr ""
426
 
427
- #: ../src/Admin/Admin.php:665
428
  msgid "Settings"
429
  msgstr ""
430
 
431
- #: ../src/Admin/Admin.php:666
432
  msgid "Support"
433
  msgstr ""
434
 
435
- #: ../src/Admin/Admin.php:744 ../src/Admin/Admin.php:1133 ../src/Admin/Admin.php:1137
436
- #: ../src/Output.php:760
437
  #, php-format
438
  msgid "%s view"
439
  msgid_plural "%s views"
440
  msgstr[0] ""
441
  msgstr[1] ""
442
 
443
- #: ../src/Admin/Admin.php:744 ../src/Admin/Admin.php:1135 ../src/Admin/Admin.php:1137
444
- #: ../src/Output.php:743
445
  #, php-format
446
  msgid "%s comment"
447
  msgid_plural "%s comments"
448
  msgstr[0] ""
449
  msgstr[1] ""
450
 
451
- #: ../src/Admin/Admin.php:769
452
  msgid "Views"
453
  msgstr ""
454
 
455
- #: ../src/Admin/Admin.php:1139
456
  msgid "View"
457
  msgstr ""
458
 
459
- #: ../src/Admin/Admin.php:1150
460
  msgid ""
461
  "Looks like your site's activity is a little low right now. <br />Spread the word and "
462
  "come back later!"
463
  msgstr ""
464
 
465
- #: ../src/Admin/Admin.php:1396
466
  #, php-format
467
  msgid ""
468
  "<strong>WordPress Popular Posts:</strong> It seems your site is popular (great!) You "
@@ -470,74 +467,73 @@ msgid ""
470
  "performance stays up to par."
471
  msgstr ""
472
 
473
- #: ../src/Admin/Admin.php:1400
474
  msgid "Dismiss"
475
  msgstr ""
476
 
477
- #: ../src/Admin/Admin.php:1400
478
  msgid "Remind me later"
479
  msgstr ""
480
 
481
- #: ../src/Admin/admin-page.php:6 ../src/Admin/admin-page.php:114
482
  msgid "Stats"
483
  msgstr ""
484
 
485
- #: ../src/Admin/admin-page.php:7 ../src/Admin/admin-page.php:115
486
  msgid "Tools"
487
  msgstr ""
488
 
489
- #: ../src/Admin/admin-page.php:8 ../src/Admin/admin-page.php:116
490
  msgid "Parameters"
491
  msgstr ""
492
 
493
- #: ../src/Admin/admin-page.php:30 ../src/Admin/admin-page.php:42
494
- #: ../src/Admin/admin-page.php:68 ../src/Admin/admin-page.php:104
495
  msgid "Settings saved."
496
  msgstr ""
497
 
498
- #: ../src/Admin/admin-page.php:53
499
  msgid "Please provide the name of your custom field."
500
  msgstr ""
501
 
502
- #: ../src/Admin/admin-page.php:113
503
  msgid "Menu"
504
  msgstr ""
505
 
506
- #: ../src/Admin/admin-page.php:140
507
  msgid "Post type"
508
  msgstr ""
509
 
510
- #: ../src/Admin/admin-page.php:152 ../src/Admin/admin-page.php:184
511
- #: ../src/Admin/admin-page.php:344 ../src/Admin/admin-page.php:451
512
- #: ../src/Admin/admin-page.php:497
513
  msgid "Apply"
514
  msgstr ""
515
 
516
- #: ../src/Admin/admin-page.php:153 ../src/Admin/admin-page.php:187
517
  msgid "Cancel"
518
  msgstr ""
519
 
520
- #: ../src/Admin/admin-page.php:162
521
  msgid "Custom Time Range"
522
  msgstr ""
523
 
524
- #: ../src/Admin/admin-page.php:163
525
  msgid "Date Range"
526
  msgstr ""
527
 
528
- #: ../src/Admin/admin-page.php:177
529
  msgid "Select a date..."
530
  msgstr ""
531
 
532
- #: ../src/Admin/admin-page.php:197
533
  msgid "Today"
534
  msgstr ""
535
 
536
- #: ../src/Admin/admin-page.php:198 ../src/Widget/form.php:34
537
  msgid "Last 24 hours"
538
  msgstr ""
539
 
540
- #: ../src/Admin/admin-page.php:205
541
  #, php-format
542
  msgid ""
543
  "Err... A nice little chart is supposed to be here, instead you are seeing this because "
@@ -545,196 +541,194 @@ msgid ""
545
  "browser</a>."
546
  msgstr ""
547
 
548
- #: ../src/Admin/admin-page.php:214
549
  msgid "Most viewed"
550
  msgstr ""
551
 
552
- #: ../src/Admin/admin-page.php:215
553
  msgid "Most commented"
554
  msgstr ""
555
 
556
- #: ../src/Admin/admin-page.php:217
557
  msgid "Hall of Fame"
558
  msgstr ""
559
 
560
- #: ../src/Admin/admin-page.php:257
561
  msgid "Thumbnails"
562
  msgstr ""
563
 
564
- #: ../src/Admin/admin-page.php:263
565
  msgid "Default thumbnail"
566
  msgstr ""
567
 
568
- #: ../src/Admin/admin-page.php:284
569
  msgid "Change thumbnail"
570
  msgstr ""
571
 
572
- #: ../src/Admin/admin-page.php:287
573
  msgid "This image will be displayed when no thumbnail is available"
574
  msgstr ""
575
 
576
- #: ../src/Admin/admin-page.php:291
577
  msgid "Pick image from"
578
  msgstr ""
579
 
580
- #: ../src/Admin/admin-page.php:294
581
  msgid "Featured image"
582
  msgstr ""
583
 
584
- #: ../src/Admin/admin-page.php:295
585
  msgid "First image on post"
586
  msgstr ""
587
 
588
- #: ../src/Admin/admin-page.php:296
589
  msgid "First attachment"
590
  msgstr ""
591
 
592
- #: ../src/Admin/admin-page.php:297
593
  msgid "Custom field"
594
  msgstr ""
595
 
596
- #: ../src/Admin/admin-page.php:300
597
  msgid "Tell WordPress Popular Posts where it should get thumbnails from"
598
  msgstr ""
599
 
600
- #: ../src/Admin/admin-page.php:304
601
  msgid "Lazy load"
602
  msgstr ""
603
 
604
- #: ../src/Admin/admin-page.php:304 ../src/Admin/admin-page.php:401
605
- #: ../src/Admin/admin-page.php:429 ../src/Widget/form.php:7 ../src/Widget/form.php:54
606
- #: ../src/Widget/form.php:60 ../src/Widget/form.php:88 ../src/Widget/form.php:98
607
- #: ../src/Widget/form.php:190
608
  msgid "What is this?"
609
  msgstr ""
610
 
611
- #: ../src/Admin/admin-page.php:307
612
  msgid "No"
613
  msgstr ""
614
 
615
- #: ../src/Admin/admin-page.php:308 ../src/Admin/admin-page.php:323
616
  msgid "Yes"
617
  msgstr ""
618
 
619
- #: ../src/Admin/admin-page.php:313
620
  msgid "Custom field name"
621
  msgstr ""
622
 
623
- #: ../src/Admin/admin-page.php:319
624
  msgid "Resize image from Custom field?"
625
  msgstr ""
626
 
627
- #: ../src/Admin/admin-page.php:322
628
  msgid "No, use image as is"
629
  msgstr ""
630
 
631
- #: ../src/Admin/admin-page.php:334
632
  msgid "Empty image cache"
633
  msgstr ""
634
 
635
- #: ../src/Admin/admin-page.php:335
636
  msgid "Use this button to clear WPP's thumbnails cache"
637
  msgstr ""
638
 
639
- #: ../src/Admin/admin-page.php:355
640
  msgid "Data"
641
  msgstr ""
642
 
643
- #: ../src/Admin/admin-page.php:361
644
  msgid "Log views from"
645
  msgstr ""
646
 
647
- #: ../src/Admin/admin-page.php:364
648
  msgid "Visitors only"
649
  msgstr ""
650
 
651
- #: ../src/Admin/admin-page.php:365
652
  msgid "Logged-in users only"
653
  msgstr ""
654
 
655
- #: ../src/Admin/admin-page.php:366
656
  msgid "Everyone"
657
  msgstr ""
658
 
659
- #: ../src/Admin/admin-page.php:372
660
  msgid "Log limit"
661
  msgstr ""
662
 
663
- #: ../src/Admin/admin-page.php:375 ../src/Admin/admin-page.php:392
664
- #: ../src/Admin/admin-page.php:432 ../src/Admin/admin-page.php:482
665
  msgid "Disabled"
666
  msgstr ""
667
 
668
- #: ../src/Admin/admin-page.php:376
669
  msgid "Keep data for"
670
  msgstr ""
671
 
672
- #: ../src/Admin/admin-page.php:380
673
  msgid "day(s)"
674
  msgstr ""
675
 
676
- #: ../src/Admin/admin-page.php:383
677
  msgid "Data older than the specified time frame will be automatically discarded"
678
  msgstr ""
679
 
680
- #: ../src/Admin/admin-page.php:389
681
  msgid "Ajaxify widget"
682
  msgstr ""
683
 
684
- #: ../src/Admin/admin-page.php:393 ../src/Admin/admin-page.php:433
685
- #: ../src/Admin/admin-page.php:481
686
  msgid "Enabled"
687
  msgstr ""
688
 
689
- #: ../src/Admin/admin-page.php:397
690
  msgid ""
691
  "If you are using a caching plugin such as WP Super Cache, enabling this feature will "
692
  "keep the popular list from being cached by it"
693
  msgstr ""
694
 
695
- #: ../src/Admin/admin-page.php:401
696
  msgid "Data Caching"
697
  msgstr ""
698
 
699
- #: ../src/Admin/admin-page.php:404
700
  msgid "Never cache"
701
  msgstr ""
702
 
703
- #: ../src/Admin/admin-page.php:405
704
  msgid "Enable caching"
705
  msgstr ""
706
 
707
- #: ../src/Admin/admin-page.php:409
708
  msgid ""
709
  "WPP can cache the popular list for a specified amount of time. Recommended for large / "
710
  "high traffic sites"
711
  msgstr ""
712
 
713
- #: ../src/Admin/admin-page.php:413
714
  msgid "Refresh cache every"
715
  msgstr ""
716
 
717
- #: ../src/Admin/admin-page.php:420
718
  msgid "Week(s)"
719
  msgstr ""
720
 
721
- #: ../src/Admin/admin-page.php:421
722
  msgid "Month(s)"
723
  msgstr ""
724
 
725
- #: ../src/Admin/admin-page.php:422
726
  msgid "Year(s)"
727
  msgstr ""
728
 
729
- #: ../src/Admin/admin-page.php:425
730
  msgid "Really? That long?"
731
  msgstr ""
732
 
733
- #: ../src/Admin/admin-page.php:429
734
  msgid "Data Sampling"
735
  msgstr ""
736
 
737
- #: ../src/Admin/admin-page.php:437
738
  #, php-format
739
  msgid ""
740
  "By default, WordPress Popular Posts stores in database every single visit your site "
@@ -745,49 +739,49 @@ msgid ""
745
  "(for more, <a href=\"%2$s\" target=\"_blank\">please read here</a>)"
746
  msgstr ""
747
 
748
- #: ../src/Admin/admin-page.php:441
749
  msgid "Sample Rate"
750
  msgstr ""
751
 
752
- #: ../src/Admin/admin-page.php:445
753
  #, php-format
754
  msgid ""
755
  "A sampling rate of %d is recommended for large / high traffic sites. For lower traffic "
756
  "sites, you should lower the value"
757
  msgstr ""
758
 
759
- #: ../src/Admin/admin-page.php:462
760
  msgid "Miscellaneous"
761
  msgstr ""
762
 
763
- #: ../src/Admin/admin-page.php:468
764
  msgid "Open links in"
765
  msgstr ""
766
 
767
- #: ../src/Admin/admin-page.php:471
768
  msgid "Current window"
769
  msgstr ""
770
 
771
- #: ../src/Admin/admin-page.php:472
772
  msgid "New tab/window"
773
  msgstr ""
774
 
775
- #: ../src/Admin/admin-page.php:478
776
  msgid "Use plugin's stylesheet"
777
  msgstr ""
778
 
779
- #: ../src/Admin/admin-page.php:485
780
  msgid ""
781
  "By default, the plugin includes a stylesheet called wpp.css which you can use to style "
782
  "your popular posts listing. If you wish to use your own stylesheet or do not want it "
783
  "to have it included in the header section of your site, use this."
784
  msgstr ""
785
 
786
- #: ../src/Admin/admin-page.php:489
787
  msgid "Enable experimental features"
788
  msgstr ""
789
 
790
- #: ../src/Admin/admin-page.php:511
791
  msgid ""
792
  "WordPress Popular Posts maintains data in two separate tables: one for storing the "
793
  "most popular entries on a daily basis (from now on, \"cache\"), and another one to "
@@ -796,568 +790,193 @@ msgid ""
796
  "tables, please use the buttons below to do so."
797
  msgstr ""
798
 
799
- #: ../src/Admin/admin-page.php:512
800
  msgid "Empty cache"
801
  msgstr ""
802
 
803
- #: ../src/Admin/admin-page.php:512
804
  msgid "Use this button to manually clear entries from WPP cache only"
805
  msgstr ""
806
 
807
- #: ../src/Admin/admin-page.php:513
808
  msgid "Clear all data"
809
  msgstr ""
810
 
811
- #: ../src/Admin/admin-page.php:513
812
  msgid "Use this button to manually clear entries from all WPP data tables"
813
  msgstr ""
814
 
815
- #: ../src/Admin/admin-page.php:521
816
- #, php-format
817
- msgid ""
818
- "With the following parameters you can customize the popular posts list when using "
819
- "either the <a href=\"%1$s\">wpp_get_mostpopular() template tag</a> or the <a href="
820
- "\"%2$s\">[wpp] shortcode</a>."
821
- msgstr ""
822
-
823
- #: ../src/Admin/admin-page.php:531
824
- msgid "Parameter"
825
- msgstr ""
826
-
827
- #: ../src/Admin/admin-page.php:532
828
- msgid "What it does "
829
- msgstr ""
830
-
831
- #: ../src/Admin/admin-page.php:533
832
- msgid "Possible values"
833
- msgstr ""
834
-
835
- #: ../src/Admin/admin-page.php:534
836
- msgid "Defaults to"
837
- msgstr ""
838
-
839
- #: ../src/Admin/admin-page.php:535
840
- msgid "Example"
841
- msgstr ""
842
-
843
- #: ../src/Admin/admin-page.php:541
844
- msgid "Sets a heading for the list"
845
- msgstr ""
846
-
847
- #: ../src/Admin/admin-page.php:542 ../src/Admin/admin-page.php:549
848
- #: ../src/Admin/admin-page.php:556 ../src/Admin/admin-page.php:605
849
- #: ../src/Admin/admin-page.php:612 ../src/Admin/admin-page.php:619
850
- #: ../src/Admin/admin-page.php:626 ../src/Admin/admin-page.php:633
851
- #: ../src/Admin/admin-page.php:640 ../src/Admin/admin-page.php:731
852
- #: ../src/Admin/admin-page.php:752 ../src/Admin/admin-page.php:759
853
- msgid "Text string"
854
- msgstr ""
855
-
856
- #: ../src/Admin/admin-page.php:544 ../src/Admin/admin-page.php:551
857
- #: ../src/Admin/admin-page.php:558 ../src/Admin/admin-page.php:565
858
- #: ../src/Admin/admin-page.php:572 ../src/Admin/admin-page.php:579
859
- #: ../src/Admin/admin-page.php:586 ../src/Admin/admin-page.php:593
860
- #: ../src/Admin/admin-page.php:600 ../src/Admin/admin-page.php:607
861
- #: ../src/Admin/admin-page.php:614 ../src/Admin/admin-page.php:621
862
- #: ../src/Admin/admin-page.php:628 ../src/Admin/admin-page.php:635
863
- #: ../src/Admin/admin-page.php:642 ../src/Admin/admin-page.php:649
864
- #: ../src/Admin/admin-page.php:656 ../src/Admin/admin-page.php:663
865
- #: ../src/Admin/admin-page.php:670 ../src/Admin/admin-page.php:677
866
- #: ../src/Admin/admin-page.php:684 ../src/Admin/admin-page.php:691
867
- #: ../src/Admin/admin-page.php:698 ../src/Admin/admin-page.php:705
868
- #: ../src/Admin/admin-page.php:712 ../src/Admin/admin-page.php:719
869
- #: ../src/Admin/admin-page.php:726 ../src/Admin/admin-page.php:733
870
- #: ../src/Admin/admin-page.php:740 ../src/Admin/admin-page.php:747
871
- #: ../src/Admin/admin-page.php:754 ../src/Admin/admin-page.php:761
872
- #: ../src/Admin/admin-page.php:768
873
- msgid "With wpp_get_mostpopular():"
874
- msgstr ""
875
-
876
- #: ../src/Admin/admin-page.php:544 ../src/Admin/admin-page.php:551
877
- #: ../src/Admin/admin-page.php:558 ../src/Admin/admin-page.php:565
878
- #: ../src/Admin/admin-page.php:572 ../src/Admin/admin-page.php:579
879
- #: ../src/Admin/admin-page.php:586 ../src/Admin/admin-page.php:593
880
- #: ../src/Admin/admin-page.php:600 ../src/Admin/admin-page.php:607
881
- #: ../src/Admin/admin-page.php:614 ../src/Admin/admin-page.php:621
882
- #: ../src/Admin/admin-page.php:628 ../src/Admin/admin-page.php:635
883
- #: ../src/Admin/admin-page.php:642 ../src/Admin/admin-page.php:649
884
- #: ../src/Admin/admin-page.php:656 ../src/Admin/admin-page.php:663
885
- #: ../src/Admin/admin-page.php:670 ../src/Admin/admin-page.php:677
886
- #: ../src/Admin/admin-page.php:684 ../src/Admin/admin-page.php:691
887
- #: ../src/Admin/admin-page.php:698 ../src/Admin/admin-page.php:705
888
- #: ../src/Admin/admin-page.php:712 ../src/Admin/admin-page.php:719
889
- #: ../src/Admin/admin-page.php:726 ../src/Admin/admin-page.php:733
890
- #: ../src/Admin/admin-page.php:740 ../src/Admin/admin-page.php:747
891
- #: ../src/Admin/admin-page.php:754 ../src/Admin/admin-page.php:761
892
- #: ../src/Admin/admin-page.php:768
893
- msgid "With the [wpp] shortcode:"
894
- msgstr ""
895
-
896
- #: ../src/Admin/admin-page.php:548
897
- msgid "Set the opening tag for the heading of the list"
898
- msgstr ""
899
-
900
- #: ../src/Admin/admin-page.php:555
901
- msgid "Set the closing tag for the heading of the list"
902
- msgstr ""
903
-
904
- #: ../src/Admin/admin-page.php:562
905
- msgid "Sets the maximum number of popular posts to be shown on the listing"
906
- msgstr ""
907
-
908
- #: ../src/Admin/admin-page.php:563 ../src/Admin/admin-page.php:577
909
- #: ../src/Admin/admin-page.php:647 ../src/Admin/admin-page.php:661
910
- #: ../src/Admin/admin-page.php:682 ../src/Admin/admin-page.php:689
911
- msgid "Positive integer"
912
- msgstr ""
913
-
914
- #: ../src/Admin/admin-page.php:569
915
- msgid ""
916
- "Tells WordPress Popular Posts to retrieve the most popular entries within the time "
917
- "range specified by you"
918
- msgstr ""
919
-
920
- #: ../src/Admin/admin-page.php:576
921
- msgid "Especifies the number of time units of the custom time range"
922
- msgstr ""
923
-
924
- #: ../src/Admin/admin-page.php:583
925
- msgid "Especifies the time unit of the custom time range"
926
- msgstr ""
927
-
928
- #: ../src/Admin/admin-page.php:590
929
- msgid ""
930
- "Tells WordPress Popular Posts to retrieve the most popular entries published within "
931
- "the time range specified by you"
932
- msgstr ""
933
-
934
- #: ../src/Admin/admin-page.php:597
935
- msgid "Sets the sorting option of the popular posts"
936
- msgstr ""
937
-
938
- #: ../src/Admin/admin-page.php:598
939
- msgid "(for average views per day)"
940
- msgstr ""
941
-
942
- #: ../src/Admin/admin-page.php:604
943
- msgid "Defines the type of posts to show on the listing"
944
- msgstr ""
945
-
946
- #: ../src/Admin/admin-page.php:611
947
- msgid ""
948
- "If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the "
949
- "listing."
950
- msgstr ""
951
-
952
- #: ../src/Admin/admin-page.php:618
953
- msgid ""
954
- "If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
955
- "category ID(s). If a minus sign is used, entries associated to the category will be "
956
- "excluded instead."
957
- msgstr ""
958
-
959
- #: ../src/Admin/admin-page.php:625
960
- msgid "If set, WordPress Popular Posts will filter posts by a given taxonomy."
961
- msgstr ""
962
-
963
- #: ../src/Admin/admin-page.php:632
964
- msgid ""
965
- "If set, WordPress Popular Posts will retrieve all entries that belong to the specified "
966
- "term ID(s). If a minus sign is used, entries associated to the term(s) will be "
967
- "excluded instead."
968
- msgstr ""
969
-
970
- #: ../src/Admin/admin-page.php:639
971
- msgid ""
972
- "If set, WordPress Popular Posts will retrieve all entries created by specified "
973
- "author(s) ID(s)."
974
- msgstr ""
975
-
976
- #: ../src/Admin/admin-page.php:646
977
- msgid ""
978
- "If set, WordPress Popular Posts will shorten each post title to \"n\" characters "
979
- "whenever possible"
980
- msgstr ""
981
-
982
- #: ../src/Admin/admin-page.php:653
983
- msgid ""
984
- "If set to 1, WordPress Popular Posts will shorten each post title to \"n\" words "
985
- "instead of characters"
986
- msgstr ""
987
-
988
- #: ../src/Admin/admin-page.php:660
989
- msgid ""
990
- "If set, WordPress Popular Posts will build and include an excerpt of \"n\" characters "
991
- "long from the content of each post listed as popular"
992
- msgstr ""
993
-
994
- #: ../src/Admin/admin-page.php:667
995
- msgid ""
996
- "If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) "
997
- "and hyperlinks found in the excerpt"
998
- msgstr ""
999
-
1000
- #: ../src/Admin/admin-page.php:674
1001
- msgid ""
1002
- "If set to 1, WordPress Popular Posts will shorten the excerpt to \"n\" words instead "
1003
- "of characters"
1004
- msgstr ""
1005
-
1006
- #: ../src/Admin/admin-page.php:681
1007
- msgid ""
1008
- "If set, and if your current server configuration allows it, you will be able to "
1009
- "display thumbnails of your posts. This attribute sets the width for thumbnails"
1010
- msgstr ""
1011
-
1012
- #: ../src/Admin/admin-page.php:688
1013
- msgid ""
1014
- "If set, and if your current server configuration allows it, you will be able to "
1015
- "display thumbnails of your posts. This attribute sets the height for thumbnails"
1016
- msgstr ""
1017
-
1018
- #: ../src/Admin/admin-page.php:695
1019
- msgid ""
1020
- "If set, and if the WP-PostRatings plugin is installed and enabled on your blog, "
1021
- "WordPress Popular Posts will show how your visitors are rating your entries"
1022
- msgstr ""
1023
-
1024
- #: ../src/Admin/admin-page.php:702
1025
- msgid ""
1026
- "If set, WordPress Popular Posts will show how many comments each popular post has got "
1027
- "during the specified time range"
1028
- msgstr ""
1029
-
1030
- #: ../src/Admin/admin-page.php:709
1031
- msgid ""
1032
- "If set, WordPress Popular Posts will show how many views each popular post has got "
1033
- "during the specified time range"
1034
- msgstr ""
1035
-
1036
- #: ../src/Admin/admin-page.php:716
1037
- msgid ""
1038
- "If set, WordPress Popular Posts will show who published each popular post on the list"
1039
- msgstr ""
1040
-
1041
- #: ../src/Admin/admin-page.php:723
1042
- msgid ""
1043
- "If set, WordPress Popular Posts will display the date when each popular post on the "
1044
- "list was published"
1045
- msgstr ""
1046
-
1047
- #: ../src/Admin/admin-page.php:730
1048
- msgid "Sets the date format"
1049
- msgstr ""
1050
-
1051
- #: ../src/Admin/admin-page.php:737
1052
- msgid ""
1053
- "If set, WordPress Popular Posts will display the categories associated to each entry"
1054
- msgstr ""
1055
-
1056
- #: ../src/Admin/admin-page.php:744
1057
- msgid ""
1058
- "If set, WordPress Popular Posts will display the taxonomies associated to each entry"
1059
- msgstr ""
1060
-
1061
- #: ../src/Admin/admin-page.php:751
1062
- msgid "Sets the opening tag for the listing"
1063
- msgstr ""
1064
-
1065
- #: ../src/Admin/admin-page.php:758
1066
- msgid "Sets the closing tag for the listing"
1067
- msgstr ""
1068
-
1069
- #: ../src/Admin/admin-page.php:765
1070
- msgid "Sets the HTML structure of each post"
1071
- msgstr ""
1072
-
1073
- #: ../src/Admin/admin-page.php:766
1074
- msgid "Text string, custom HTML"
1075
- msgstr ""
1076
-
1077
- #: ../src/Admin/admin-page.php:766
1078
- msgid "Available Content Tags"
1079
- msgstr ""
1080
-
1081
- #: ../src/Admin/admin-page.php:766
1082
- msgid ""
1083
- "returns thumbnail linked to post/page, requires thumbnail_width & thumbnail_height"
1084
- msgstr ""
1085
-
1086
- #: ../src/Admin/admin-page.php:766
1087
- msgid ""
1088
- "returns thumbnail image without linking to post/page, requires thumbnail_width & "
1089
- "thumbnail_height"
1090
- msgstr ""
1091
-
1092
- #: ../src/Admin/admin-page.php:766
1093
- msgid "returns thumbnail url, requires thumbnail_width & thumbnail_height"
1094
- msgstr ""
1095
-
1096
- #: ../src/Admin/admin-page.php:766
1097
- msgid "returns linked post/page title"
1098
- msgstr ""
1099
-
1100
- #: ../src/Admin/admin-page.php:766
1101
- msgid "returns the post/page ID"
1102
- msgstr ""
1103
-
1104
- #: ../src/Admin/admin-page.php:766
1105
- msgid "returns post/page excerpt, and requires excerpt_length to be greater than 0"
1106
- msgstr ""
1107
-
1108
- #: ../src/Admin/admin-page.php:766
1109
- msgid "returns the default stats tags"
1110
- msgstr ""
1111
-
1112
- #: ../src/Admin/admin-page.php:766
1113
- msgid "returns post/page current rating, requires WP-PostRatings installed and enabled"
1114
- msgstr ""
1115
-
1116
- #: ../src/Admin/admin-page.php:766
1117
- msgid ""
1118
- "returns post/page current rating as an integer, requires WP-PostRatings installed and "
1119
- "enabled"
1120
- msgstr ""
1121
-
1122
- #: ../src/Admin/admin-page.php:766
1123
- msgid "returns the URL of the post/page"
1124
- msgstr ""
1125
-
1126
- #: ../src/Admin/admin-page.php:766
1127
- msgid "returns post/page title, no link"
1128
- msgstr ""
1129
-
1130
- #: ../src/Admin/admin-page.php:766
1131
- msgid "similar to text_title, sanitized for use in title/alt attributes"
1132
- msgstr ""
1133
-
1134
- #: ../src/Admin/admin-page.php:766
1135
- msgid "returns linked author name, requires stats_author=1"
1136
- msgstr ""
1137
-
1138
- #: ../src/Admin/admin-page.php:766
1139
- msgid "returns linked author name with copy, requires stats_author=1"
1140
- msgstr ""
1141
-
1142
- #: ../src/Admin/admin-page.php:766
1143
- msgid "returns linked category name, requires stats_category=1"
1144
- msgstr ""
1145
-
1146
- #: ../src/Admin/admin-page.php:766
1147
- msgid "returns linked category name with copy, requires stats_category=1"
1148
- msgstr ""
1149
-
1150
- #: ../src/Admin/admin-page.php:766
1151
- msgid "returns linked taxonomy names, requires stats_taxonomy=1"
1152
- msgstr ""
1153
-
1154
- #: ../src/Admin/admin-page.php:766
1155
- msgid "returns linked taxonomy names with copy, requires stats_taxonomy=1"
1156
- msgstr ""
1157
-
1158
- #: ../src/Admin/admin-page.php:766
1159
- msgid "returns views count only, no text, requires stats_views=1"
1160
- msgstr ""
1161
-
1162
- #: ../src/Admin/admin-page.php:766
1163
- msgid "returns views count with copy, requires stats_views=1"
1164
- msgstr ""
1165
-
1166
- #: ../src/Admin/admin-page.php:766
1167
- msgid "returns comments count only, no text, requires stats_comments=1"
1168
- msgstr ""
1169
-
1170
- #: ../src/Admin/admin-page.php:766
1171
- msgid "returns comments count with copy, requires stats_comments=1"
1172
- msgstr ""
1173
-
1174
- #: ../src/Admin/admin-page.php:766
1175
- msgid "returns post/page date, requires stats_date=1"
1176
- msgstr ""
1177
-
1178
- #: ../src/Admin/admin-page.php:766
1179
- msgid "returns post/page date with copy, requires stats_date=1"
1180
- msgstr ""
1181
-
1182
- #: ../src/Admin/admin-page.php:766
1183
- msgid "outputs number of popular posts found"
1184
- msgstr ""
1185
-
1186
- #: ../src/Admin/admin-page.php:766
1187
- msgid "outputs the position of the post in the listing"
1188
- msgstr ""
1189
-
1190
- #: ../src/Block/Widget/widget.js:11
1191
  msgid "A highly customizable block that displays your most popular posts."
1192
  msgstr ""
1193
 
1194
- #: ../src/Output.php:245
1195
  msgid "Sorry. No data so far."
1196
  msgstr ""
1197
 
1198
- #: ../src/Output.php:591
1199
  #, php-format
1200
  msgid "%s ago"
1201
  msgstr ""
1202
 
1203
- #: ../src/Output.php:754
1204
  #, php-format
1205
  msgid "%s view per day"
1206
  msgid_plural "%s views per day"
1207
  msgstr[0] ""
1208
  msgstr[1] ""
1209
 
1210
- #: ../src/Output.php:772
1211
  #, php-format
1212
  msgid "by %s"
1213
  msgstr ""
1214
 
1215
- #: ../src/Output.php:777
1216
  #, php-format
1217
  msgid "posted %s"
1218
  msgstr ""
1219
 
1220
- #: ../src/Output.php:777
1221
  #, php-format
1222
  msgid "posted on %s"
1223
  msgstr ""
1224
 
1225
- #: ../src/Output.php:782
1226
  #, php-format
1227
  msgid "under %s"
1228
  msgstr ""
1229
 
1230
- #: ../src/Rest/PostsEndpoint.php:97
1231
  msgid "Return popular posts from specified custom post type(s)."
1232
  msgstr ""
1233
 
1234
- #: ../src/Rest/PostsEndpoint.php:104
1235
  msgid "The maximum number of popular posts to return."
1236
  msgstr ""
1237
 
1238
- #: ../src/Rest/PostsEndpoint.php:112
1239
  msgid "Retrieve the most popular entries published within the specified time range."
1240
  msgstr ""
1241
 
1242
- #: ../src/Rest/PostsEndpoint.php:120
1243
  msgid "An offset point for the collection."
1244
  msgstr ""
1245
 
1246
- #: ../src/Rest/PostsEndpoint.php:128
1247
  msgid "Set the sorting option of the popular posts."
1248
  msgstr ""
1249
 
1250
- #: ../src/Rest/PostsEndpoint.php:136
1251
  msgid "Return popular posts from a specified time range."
1252
  msgstr ""
1253
 
1254
- #: ../src/Rest/PostsEndpoint.php:144
1255
  msgid "Specifies the time unit of the custom time range."
1256
  msgstr ""
1257
 
1258
- #: ../src/Rest/PostsEndpoint.php:152
1259
  msgid "Specifies the number of time units of the custom time range."
1260
  msgstr ""
1261
 
1262
- #: ../src/Rest/PostsEndpoint.php:160
1263
  msgid "Post IDs to exclude from the listing."
1264
  msgstr ""
1265
 
1266
- #: ../src/Rest/PostsEndpoint.php:168
1267
  msgid "Include posts in a specified taxonomy."
1268
  msgstr ""
1269
 
1270
- #: ../src/Rest/PostsEndpoint.php:176
1271
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
1272
  msgstr ""
1273
 
1274
- #: ../src/Rest/PostsEndpoint.php:184
1275
  msgid "Include popular posts from author ID(s)."
1276
  msgstr ""
1277
 
1278
- #: ../src/Rest/ViewLoggerEndpoint.php:214
1279
  msgid "Security nonce."
1280
  msgstr ""
1281
 
1282
- #: ../src/Rest/ViewLoggerEndpoint.php:220
1283
  msgid "The post / page ID."
1284
  msgstr ""
1285
 
1286
- #: ../src/Rest/ViewLoggerEndpoint.php:227
1287
  msgid "Enables Data Sampling."
1288
  msgstr ""
1289
 
1290
- #: ../src/Rest/ViewLoggerEndpoint.php:234
1291
  msgid "Sets the Sampling Rate."
1292
  msgstr ""
1293
 
1294
- #: ../src/Rest/WidgetEndpoint.php:78
1295
  msgid "Invalid Widget Instance ID"
1296
  msgstr ""
1297
 
1298
- #: ../src/Widget/Widget.php:77
1299
  msgid "The most Popular Posts on your blog."
1300
  msgstr ""
1301
 
1302
- #: ../src/Widget/form.php:13
1303
  msgid "Show up to"
1304
  msgstr ""
1305
 
1306
- #: ../src/Widget/form.php:14
1307
  msgid "posts"
1308
  msgstr ""
1309
 
1310
- #: ../src/Widget/form.php:23
1311
  msgid "Avg. daily views"
1312
  msgstr ""
1313
 
1314
- #: ../src/Widget/form.php:82
1315
  #, php-format
1316
  msgid "%s IDs, separated by comma (prefix a minus sign to exclude)"
1317
  msgstr ""
1318
 
1319
- #: ../src/Widget/form.php:98
1320
  msgid "Display post rating"
1321
  msgstr ""
1322
 
1323
- #: ../src/Widget/form.php:136
1324
  msgid "Width"
1325
  msgstr ""
1326
 
1327
- #: ../src/Widget/form.php:139
1328
  msgid "Height"
1329
  msgstr ""
1330
 
1331
- #: ../src/Widget/form.php:148
1332
  msgid "Display comment count"
1333
  msgstr ""
1334
 
1335
- #: ../src/Widget/form.php:160
1336
  msgid "WordPress Date Format"
1337
  msgstr ""
1338
 
1339
- #: ../src/Widget/form.php:205
1340
  msgid "Before / after title"
1341
  msgstr ""
1342
 
1343
- #: ../src/Widget/form.php:208
1344
  msgid "Before / after Popular Posts"
1345
  msgstr ""
1346
 
1347
- #: ../src/Widget/form.php:211
1348
  msgid "Post HTML Markup"
1349
  msgstr ""
1350
 
1351
- #: ../src/Widget/form.php:218
1352
  #, php-format
1353
  msgid "see a <a href=\"%s\">list of supported browsers</a>"
1354
  msgstr ""
1355
 
1356
- #: ../src/Widget/form.php:234
1357
  msgid "Please save this widget (or reload this page) to enable WPP themes."
1358
  msgstr ""
1359
 
1360
- #: ../wordpress-popular-posts.php:52
1361
  #, php-format
1362
  msgid ""
1363
  "WordPress Popular Posts requires at least PHP %1$s and WordPress %2$s to function "
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: 2021-08-23 09:46-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"
17
  "X-Generator: Poedit 2.4.2\n"
18
  "X-Poedit-KeywordsList: _e;__;__ngettext;__ngettext_noop;_n_noop;_x;_nx;_nx_noop;_ex;"
19
  "esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;esc_html_x;_c;_nc;_n:1,2\n"
20
+ "X-Poedit-Basepath: ..\n"
21
  "X-Poedit-SourceCharset: UTF-8\n"
22
+ "X-Poedit-SearchPath-0: i18n\n"
23
+ "X-Poedit-SearchPath-1: .\n"
24
+ "X-Poedit-SearchPathExcluded-0: node_modules\n"
25
+ "X-Poedit-SearchPathExcluded-1: .github\n"
26
+ "X-Poedit-SearchPathExcluded-2: .git\n"
27
 
28
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:125
29
  msgid "Preview"
30
  msgstr ""
31
 
32
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/Admin.php:1139
33
+ #: src/Block/Widget/edit.js:125
34
  msgid "Edit"
35
  msgstr ""
36
 
37
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:176
38
+ #: src/Widget/form.php:7
39
  msgid "Title"
40
  msgstr ""
41
 
42
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:142
43
+ #: src/Block/Widget/edit.js:181
44
  msgid "Limit"
45
  msgstr ""
46
 
47
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:186
48
+ #: src/Widget/form.php:19
49
  msgid "Sort posts by"
50
  msgstr ""
51
 
52
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:189
53
+ #: src/Widget/form.php:22
54
  msgid "Total views"
55
  msgstr ""
56
 
57
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/Admin.php:765
58
+ #: src/Block/Widget/edit.js:190 src/Widget/form.php:21
59
  msgid "Comments"
60
  msgstr ""
61
 
62
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:195
63
+ #: src/Widget/form.php:32
64
  msgid "Time Range"
65
  msgstr ""
66
 
67
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:198
68
  msgid "Last 24 Hours"
69
  msgstr ""
70
 
71
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:198
72
+ #: src/Block/Widget/edit.js:199 src/Widget/form.php:35
73
  msgid "Last 7 days"
74
  msgstr ""
75
 
76
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:199
77
+ #: src/Block/Widget/edit.js:200 src/Widget/form.php:36
78
  msgid "Last 30 days"
79
  msgstr ""
80
 
81
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:201
82
+ #: src/Widget/form.php:37
83
  msgid "All-time"
84
  msgstr ""
85
 
86
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:200
87
+ #: src/Block/Widget/edit.js:202 src/Widget/form.php:38
88
  msgid "Custom"
89
  msgstr ""
90
 
91
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:209
92
  msgid "Time Quantity"
93
  msgstr ""
94
 
95
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:214
96
  msgid "Time Unit"
97
  msgstr ""
98
 
99
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:169
100
+ #: src/Admin/admin-page.php:416 src/Block/Widget/edit.js:217 src/Widget/form.php:45
 
101
  msgid "Minute(s)"
102
  msgstr ""
103
 
104
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:170
105
+ #: src/Admin/admin-page.php:417 src/Block/Widget/edit.js:218 src/Widget/form.php:46
 
106
  msgid "Hour(s)"
107
  msgstr ""
108
 
109
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:171
110
+ #: src/Admin/admin-page.php:418 src/Block/Widget/edit.js:219 src/Widget/form.php:47
 
111
  msgid "Day(s)"
112
  msgstr ""
113
 
114
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:145
115
+ #: src/Block/Widget/edit.js:226 src/Widget/form.php:52
116
  msgid "Display only posts published within the selected Time Range"
117
  msgstr ""
118
 
119
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:327
120
+ #: src/Widget/form.php:30
121
  msgid "Filters"
122
  msgstr ""
123
 
124
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:329
125
+ #: src/Widget/form.php:54
126
  msgid "Post type(s)"
127
  msgstr ""
128
 
129
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:330
130
  msgid "Post types must be comma separated."
131
  msgstr ""
132
 
133
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:335
134
+ #: src/Widget/form.php:57
135
  msgid "Post ID(s) to exclude"
136
  msgstr ""
137
 
138
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:336
139
+ #: src/Block/Widget/edit.js:342
140
  msgid "IDs must be comma separated."
141
  msgstr ""
142
 
143
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:341
144
+ #: src/Widget/form.php:88
145
  msgid "Author ID(s)"
146
  msgstr ""
147
 
148
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:351
149
  msgid "Term IDs must be comma separated, prefix a minus sign to exclude."
150
  msgstr ""
151
 
152
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:442
153
+ #: src/Widget/form.php:94
154
  msgid "Posts settings"
155
  msgstr ""
156
 
157
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:444
158
+ #: src/Widget/form.php:101
159
  msgid "Shorten title"
160
  msgstr ""
161
 
162
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:451
163
+ #: src/Widget/form.php:104
164
  msgid "Shorten title to"
165
  msgstr ""
166
 
167
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:458
168
+ #: src/Block/Widget/edit.js:485 src/Widget/form.php:105 src/Widget/form.php:115
169
  msgid "characters"
170
  msgstr ""
171
 
172
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:459
173
+ #: src/Block/Widget/edit.js:486 src/Widget/form.php:106 src/Widget/form.php:116
174
  msgid "words"
175
  msgstr ""
176
 
177
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:466
178
+ #: src/Widget/form.php:109
179
  msgid "Display post excerpt"
180
  msgstr ""
181
 
182
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:473
183
+ #: src/Widget/form.php:112
184
  msgid "Keep text format and links"
185
  msgstr ""
186
 
187
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:478
188
+ #: src/Widget/form.php:113
189
  msgid "Excerpt length"
190
  msgstr ""
191
 
192
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:493
193
+ #: src/Widget/form.php:119
194
  msgid "Display post thumbnail"
195
  msgstr ""
196
 
197
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:502
198
+ #: src/Widget/form.php:134
199
  msgid "Set size manually"
200
  msgstr ""
201
 
202
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:503
203
+ #: src/Widget/form.php:122
204
  msgid "Use predefined size"
205
  msgstr ""
206
 
207
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:510
208
  msgid "Thumbnail width"
209
  msgstr ""
210
 
211
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:511
212
+ #: src/Block/Widget/edit.js:517
213
  msgid "Size in px units (pixels)"
214
  msgstr ""
215
 
216
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:516
217
  msgid "Thumbnail height"
218
  msgstr ""
219
 
220
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:555
221
+ #: src/Widget/form.php:146
222
  msgid "Stats Tag settings"
223
  msgstr ""
224
 
225
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:557
226
  msgid "Display comments count"
227
  msgstr ""
228
 
229
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:562
230
+ #: src/Widget/form.php:150
231
  msgid "Display views"
232
  msgstr ""
233
 
234
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:567
235
+ #: src/Widget/form.php:152
236
  msgid "Display author"
237
  msgstr ""
238
 
239
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:572
240
+ #: src/Widget/form.php:154
241
  msgid "Display date"
242
  msgstr ""
243
 
244
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:579
245
+ #: src/Widget/form.php:157
246
  msgid "Date Format"
247
  msgstr ""
248
 
249
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:582
250
+ #: src/Widget/form.php:159
251
  msgid "Relative"
252
  msgstr ""
253
 
254
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:583
255
  msgid "Month Day, Year"
256
  msgstr ""
257
 
258
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:584
259
  msgid "yyyy/mm/dd"
260
  msgstr ""
261
 
262
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:585
263
  msgid "mm/dd/yyyy"
264
  msgstr ""
265
 
266
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:586
267
  msgid "dd/mm/yyyy"
268
  msgstr ""
269
 
270
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:593
271
+ #: src/Widget/form.php:167
272
  msgid "Display taxonomy"
273
  msgstr ""
274
 
275
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:600
276
+ #: src/Widget/form.php:60
277
  msgid "Taxonomy"
278
  msgstr ""
279
 
280
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:652
281
+ #: src/Widget/form.php:226
 
 
 
282
  msgid "None"
283
  msgstr ""
284
 
285
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:669
286
+ #: src/Widget/form.php:188
287
  msgid "HTML Markup settings"
288
  msgstr ""
289
 
290
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:671
291
+ #: src/Widget/form.php:190
292
  msgid "Use custom HTML Markup"
293
  msgstr ""
294
 
295
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:679
296
  msgid "Before title"
297
  msgstr ""
298
 
299
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:685
300
  msgid "After title"
301
  msgstr ""
302
 
303
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:691
304
  msgid "Before popular posts"
305
  msgstr ""
306
 
307
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:697
308
  msgid "After popular posts"
309
  msgstr ""
310
 
311
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:702
312
  msgid "Post HTML markup"
313
  msgstr ""
314
 
315
+ #: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:709
316
+ #: src/Widget/form.php:218
317
  msgid "Theme"
318
  msgstr ""
319
 
320
+ #: src/Admin/Admin.php:371
321
  #, php-format
322
  msgid "%s view in the last hour"
323
  msgid_plural "%s views in the last hour"
324
  msgstr[0] ""
325
  msgstr[1] ""
326
 
327
+ #: src/Admin/Admin.php:405 src/Admin/admin-page.php:215
328
  msgid "Trending now"
329
  msgstr ""
330
 
331
+ #: src/Admin/Admin.php:493
332
  msgid "View more"
333
  msgstr ""
334
 
335
+ #: src/Admin/Admin.php:522
336
  msgid "Use this image"
337
  msgstr ""
338
 
339
+ #: src/Admin/Admin.php:526
340
  msgid ""
341
  "This operation will delete all entries from WordPress Popular Posts' cache table and "
342
  "cannot be undone."
343
  msgstr ""
344
 
345
+ #: src/Admin/Admin.php:527
346
  msgid "Success! The cache table has been cleared!"
347
  msgstr ""
348
 
349
+ #: src/Admin/Admin.php:528
350
  msgid "Error: cache table does not exist."
351
  msgstr ""
352
 
353
+ #: src/Admin/Admin.php:529
354
  msgid ""
355
  "This operation will delete all stored info from WordPress Popular Posts' data tables "
356
  "and cannot be undone."
357
  msgstr ""
358
 
359
+ #: src/Admin/Admin.php:530
360
  msgid "Success! All data have been cleared!"
361
  msgstr ""
362
 
363
+ #: src/Admin/Admin.php:531
364
  msgid "Error: one or both data tables are missing."
365
  msgstr ""
366
 
367
+ #: src/Admin/Admin.php:532
368
  msgid "This operation will delete all cached thumbnails and cannot be undone."
369
  msgstr ""
370
 
371
+ #: src/Admin/Admin.php:533
372
  msgid "Success! All files have been deleted!"
373
  msgstr ""
374
 
375
+ #: src/Admin/Admin.php:534
376
  msgid "The thumbnail cache is already empty!"
377
  msgstr ""
378
 
379
+ #: src/Admin/Admin.php:535
380
  msgid "Do you want to continue?"
381
  msgstr ""
382
 
383
+ #: src/Admin/Admin.php:536
384
  msgid ""
385
  "Sorry, you do not have enough permissions to do this. Please contact the site "
386
  "administrator for support."
387
  msgstr ""
388
 
389
+ #: src/Admin/Admin.php:537
390
  msgid "Invalid action."
391
  msgstr ""
392
 
393
+ #: src/Admin/Admin.php:616
394
  msgid "Overview"
395
  msgstr ""
396
 
397
+ #: src/Admin/Admin.php:617
398
  msgid ""
399
  "Welcome to WordPress Popular Posts' Dashboard! In this screen you will find statistics "
400
  "on what's popular on your site, tools to further tweak WPP to your needs, and more!"
401
  msgstr ""
402
 
403
+ #: src/Admin/Admin.php:623
404
  msgid "Like this plugin?"
405
  msgstr ""
406
 
407
+ #: src/Admin/Admin.php:625
408
  msgid ""
409
  "Each donation motivates me to keep releasing free stuff for the WordPress community!"
410
  msgstr ""
411
 
412
+ #: src/Admin/Admin.php:632
413
  #, php-format
414
  msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
415
  msgstr ""
416
 
417
+ #: src/Admin/Admin.php:639
418
  #, php-format
419
  msgid ""
420
  "<p><strong>For more information:</strong></p><ul><li><a href=\"%1$s\">Documentation</"
421
  "a></li><li><a href=\"%2$s\">Support</a></li></ul>"
422
  msgstr ""
423
 
424
+ #: src/Admin/Admin.php:665
425
  msgid "Settings"
426
  msgstr ""
427
 
428
+ #: src/Admin/Admin.php:666
429
  msgid "Support"
430
  msgstr ""
431
 
432
+ #: src/Admin/Admin.php:744 src/Admin/Admin.php:1133 src/Admin/Admin.php:1137
433
+ #: src/Output.php:762
434
  #, php-format
435
  msgid "%s view"
436
  msgid_plural "%s views"
437
  msgstr[0] ""
438
  msgstr[1] ""
439
 
440
+ #: src/Admin/Admin.php:744 src/Admin/Admin.php:1135 src/Admin/Admin.php:1137
441
+ #: src/Output.php:745
442
  #, php-format
443
  msgid "%s comment"
444
  msgid_plural "%s comments"
445
  msgstr[0] ""
446
  msgstr[1] ""
447
 
448
+ #: src/Admin/Admin.php:769
449
  msgid "Views"
450
  msgstr ""
451
 
452
+ #: src/Admin/Admin.php:1139
453
  msgid "View"
454
  msgstr ""
455
 
456
+ #: src/Admin/Admin.php:1150
457
  msgid ""
458
  "Looks like your site's activity is a little low right now. <br />Spread the word and "
459
  "come back later!"
460
  msgstr ""
461
 
462
+ #: src/Admin/Admin.php:1396
463
  #, php-format
464
  msgid ""
465
  "<strong>WordPress Popular Posts:</strong> It seems your site is popular (great!) You "
467
  "performance stays up to par."
468
  msgstr ""
469
 
470
+ #: src/Admin/Admin.php:1400
471
  msgid "Dismiss"
472
  msgstr ""
473
 
474
+ #: src/Admin/Admin.php:1400
475
  msgid "Remind me later"
476
  msgstr ""
477
 
478
+ #: src/Admin/admin-page.php:6 src/Admin/admin-page.php:114
479
  msgid "Stats"
480
  msgstr ""
481
 
482
+ #: src/Admin/admin-page.php:7 src/Admin/admin-page.php:115
483
  msgid "Tools"
484
  msgstr ""
485
 
486
+ #: src/Admin/admin-page.php:8
487
  msgid "Parameters"
488
  msgstr ""
489
 
490
+ #: src/Admin/admin-page.php:30 src/Admin/admin-page.php:42 src/Admin/admin-page.php:68
491
+ #: src/Admin/admin-page.php:104
492
  msgid "Settings saved."
493
  msgstr ""
494
 
495
+ #: src/Admin/admin-page.php:53
496
  msgid "Please provide the name of your custom field."
497
  msgstr ""
498
 
499
+ #: src/Admin/admin-page.php:113
500
  msgid "Menu"
501
  msgstr ""
502
 
503
+ #: src/Admin/admin-page.php:139
504
  msgid "Post type"
505
  msgstr ""
506
 
507
+ #: src/Admin/admin-page.php:151 src/Admin/admin-page.php:183 src/Admin/admin-page.php:343
508
+ #: src/Admin/admin-page.php:450 src/Admin/admin-page.php:496
 
509
  msgid "Apply"
510
  msgstr ""
511
 
512
+ #: src/Admin/admin-page.php:152 src/Admin/admin-page.php:186
513
  msgid "Cancel"
514
  msgstr ""
515
 
516
+ #: src/Admin/admin-page.php:161
517
  msgid "Custom Time Range"
518
  msgstr ""
519
 
520
+ #: src/Admin/admin-page.php:162
521
  msgid "Date Range"
522
  msgstr ""
523
 
524
+ #: src/Admin/admin-page.php:176
525
  msgid "Select a date..."
526
  msgstr ""
527
 
528
+ #: src/Admin/admin-page.php:196
529
  msgid "Today"
530
  msgstr ""
531
 
532
+ #: src/Admin/admin-page.php:197 src/Widget/form.php:34
533
  msgid "Last 24 hours"
534
  msgstr ""
535
 
536
+ #: src/Admin/admin-page.php:204
537
  #, php-format
538
  msgid ""
539
  "Err... A nice little chart is supposed to be here, instead you are seeing this because "
541
  "browser</a>."
542
  msgstr ""
543
 
544
+ #: src/Admin/admin-page.php:213
545
  msgid "Most viewed"
546
  msgstr ""
547
 
548
+ #: src/Admin/admin-page.php:214
549
  msgid "Most commented"
550
  msgstr ""
551
 
552
+ #: src/Admin/admin-page.php:216
553
  msgid "Hall of Fame"
554
  msgstr ""
555
 
556
+ #: src/Admin/admin-page.php:256
557
  msgid "Thumbnails"
558
  msgstr ""
559
 
560
+ #: src/Admin/admin-page.php:262
561
  msgid "Default thumbnail"
562
  msgstr ""
563
 
564
+ #: src/Admin/admin-page.php:283
565
  msgid "Change thumbnail"
566
  msgstr ""
567
 
568
+ #: src/Admin/admin-page.php:286
569
  msgid "This image will be displayed when no thumbnail is available"
570
  msgstr ""
571
 
572
+ #: src/Admin/admin-page.php:290
573
  msgid "Pick image from"
574
  msgstr ""
575
 
576
+ #: src/Admin/admin-page.php:293
577
  msgid "Featured image"
578
  msgstr ""
579
 
580
+ #: src/Admin/admin-page.php:294
581
  msgid "First image on post"
582
  msgstr ""
583
 
584
+ #: src/Admin/admin-page.php:295
585
  msgid "First attachment"
586
  msgstr ""
587
 
588
+ #: src/Admin/admin-page.php:296
589
  msgid "Custom field"
590
  msgstr ""
591
 
592
+ #: src/Admin/admin-page.php:299
593
  msgid "Tell WordPress Popular Posts where it should get thumbnails from"
594
  msgstr ""
595
 
596
+ #: src/Admin/admin-page.php:303
597
  msgid "Lazy load"
598
  msgstr ""
599
 
600
+ #: src/Admin/admin-page.php:303 src/Admin/admin-page.php:400 src/Admin/admin-page.php:428
601
+ #: src/Widget/form.php:7 src/Widget/form.php:54 src/Widget/form.php:60
602
+ #: src/Widget/form.php:88 src/Widget/form.php:98 src/Widget/form.php:190
 
603
  msgid "What is this?"
604
  msgstr ""
605
 
606
+ #: src/Admin/admin-page.php:306
607
  msgid "No"
608
  msgstr ""
609
 
610
+ #: src/Admin/admin-page.php:307 src/Admin/admin-page.php:322
611
  msgid "Yes"
612
  msgstr ""
613
 
614
+ #: src/Admin/admin-page.php:312
615
  msgid "Custom field name"
616
  msgstr ""
617
 
618
+ #: src/Admin/admin-page.php:318
619
  msgid "Resize image from Custom field?"
620
  msgstr ""
621
 
622
+ #: src/Admin/admin-page.php:321
623
  msgid "No, use image as is"
624
  msgstr ""
625
 
626
+ #: src/Admin/admin-page.php:333
627
  msgid "Empty image cache"
628
  msgstr ""
629
 
630
+ #: src/Admin/admin-page.php:334
631
  msgid "Use this button to clear WPP's thumbnails cache"
632
  msgstr ""
633
 
634
+ #: src/Admin/admin-page.php:354
635
  msgid "Data"
636
  msgstr ""
637
 
638
+ #: src/Admin/admin-page.php:360
639
  msgid "Log views from"
640
  msgstr ""
641
 
642
+ #: src/Admin/admin-page.php:363
643
  msgid "Visitors only"
644
  msgstr ""
645
 
646
+ #: src/Admin/admin-page.php:364
647
  msgid "Logged-in users only"
648
  msgstr ""
649
 
650
+ #: src/Admin/admin-page.php:365
651
  msgid "Everyone"
652
  msgstr ""
653
 
654
+ #: src/Admin/admin-page.php:371
655
  msgid "Log limit"
656
  msgstr ""
657
 
658
+ #: src/Admin/admin-page.php:374 src/Admin/admin-page.php:391 src/Admin/admin-page.php:431
659
+ #: src/Admin/admin-page.php:481
660
  msgid "Disabled"
661
  msgstr ""
662
 
663
+ #: src/Admin/admin-page.php:375
664
  msgid "Keep data for"
665
  msgstr ""
666
 
667
+ #: src/Admin/admin-page.php:379
668
  msgid "day(s)"
669
  msgstr ""
670
 
671
+ #: src/Admin/admin-page.php:382
672
  msgid "Data older than the specified time frame will be automatically discarded"
673
  msgstr ""
674
 
675
+ #: src/Admin/admin-page.php:388
676
  msgid "Ajaxify widget"
677
  msgstr ""
678
 
679
+ #: src/Admin/admin-page.php:392 src/Admin/admin-page.php:432 src/Admin/admin-page.php:480
 
680
  msgid "Enabled"
681
  msgstr ""
682
 
683
+ #: src/Admin/admin-page.php:396
684
  msgid ""
685
  "If you are using a caching plugin such as WP Super Cache, enabling this feature will "
686
  "keep the popular list from being cached by it"
687
  msgstr ""
688
 
689
+ #: src/Admin/admin-page.php:400
690
  msgid "Data Caching"
691
  msgstr ""
692
 
693
+ #: src/Admin/admin-page.php:403
694
  msgid "Never cache"
695
  msgstr ""
696
 
697
+ #: src/Admin/admin-page.php:404
698
  msgid "Enable caching"
699
  msgstr ""
700
 
701
+ #: src/Admin/admin-page.php:408
702
  msgid ""
703
  "WPP can cache the popular list for a specified amount of time. Recommended for large / "
704
  "high traffic sites"
705
  msgstr ""
706
 
707
+ #: src/Admin/admin-page.php:412
708
  msgid "Refresh cache every"
709
  msgstr ""
710
 
711
+ #: src/Admin/admin-page.php:419
712
  msgid "Week(s)"
713
  msgstr ""
714
 
715
+ #: src/Admin/admin-page.php:420
716
  msgid "Month(s)"
717
  msgstr ""
718
 
719
+ #: src/Admin/admin-page.php:421
720
  msgid "Year(s)"
721
  msgstr ""
722
 
723
+ #: src/Admin/admin-page.php:424
724
  msgid "Really? That long?"
725
  msgstr ""
726
 
727
+ #: src/Admin/admin-page.php:428
728
  msgid "Data Sampling"
729
  msgstr ""
730
 
731
+ #: src/Admin/admin-page.php:436
732
  #, php-format
733
  msgid ""
734
  "By default, WordPress Popular Posts stores in database every single visit your site "
739
  "(for more, <a href=\"%2$s\" target=\"_blank\">please read here</a>)"
740
  msgstr ""
741
 
742
+ #: src/Admin/admin-page.php:440
743
  msgid "Sample Rate"
744
  msgstr ""
745
 
746
+ #: src/Admin/admin-page.php:444
747
  #, php-format
748
  msgid ""
749
  "A sampling rate of %d is recommended for large / high traffic sites. For lower traffic "
750
  "sites, you should lower the value"
751
  msgstr ""
752
 
753
+ #: src/Admin/admin-page.php:461
754
  msgid "Miscellaneous"
755
  msgstr ""
756
 
757
+ #: src/Admin/admin-page.php:467
758
  msgid "Open links in"
759
  msgstr ""
760
 
761
+ #: src/Admin/admin-page.php:470
762
  msgid "Current window"
763
  msgstr ""
764
 
765
+ #: src/Admin/admin-page.php:471
766
  msgid "New tab/window"
767
  msgstr ""
768
 
769
+ #: src/Admin/admin-page.php:477
770
  msgid "Use plugin's stylesheet"
771
  msgstr ""
772
 
773
+ #: src/Admin/admin-page.php:484
774
  msgid ""
775
  "By default, the plugin includes a stylesheet called wpp.css which you can use to style "
776
  "your popular posts listing. If you wish to use your own stylesheet or do not want it "
777
  "to have it included in the header section of your site, use this."
778
  msgstr ""
779
 
780
+ #: src/Admin/admin-page.php:488
781
  msgid "Enable experimental features"
782
  msgstr ""
783
 
784
+ #: src/Admin/admin-page.php:510
785
  msgid ""
786
  "WordPress Popular Posts maintains data in two separate tables: one for storing the "
787
  "most popular entries on a daily basis (from now on, \"cache\"), and another one to "
790
  "tables, please use the buttons below to do so."
791
  msgstr ""
792
 
793
+ #: src/Admin/admin-page.php:511
794
  msgid "Empty cache"
795
  msgstr ""
796
 
797
+ #: src/Admin/admin-page.php:511
798
  msgid "Use this button to manually clear entries from WPP cache only"
799
  msgstr ""
800
 
801
+ #: src/Admin/admin-page.php:512
802
  msgid "Clear all data"
803
  msgstr ""
804
 
805
+ #: src/Admin/admin-page.php:512
806
  msgid "Use this button to manually clear entries from all WPP data tables"
807
  msgstr ""
808
 
809
+ #: src/Block/Widget/widget.js:11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
810
  msgid "A highly customizable block that displays your most popular posts."
811
  msgstr ""
812
 
813
+ #: src/Output.php:245
814
  msgid "Sorry. No data so far."
815
  msgstr ""
816
 
817
+ #: src/Output.php:593
818
  #, php-format
819
  msgid "%s ago"
820
  msgstr ""
821
 
822
+ #: src/Output.php:756
823
  #, php-format
824
  msgid "%s view per day"
825
  msgid_plural "%s views per day"
826
  msgstr[0] ""
827
  msgstr[1] ""
828
 
829
+ #: src/Output.php:774
830
  #, php-format
831
  msgid "by %s"
832
  msgstr ""
833
 
834
+ #: src/Output.php:779
835
  #, php-format
836
  msgid "posted %s"
837
  msgstr ""
838
 
839
+ #: src/Output.php:779
840
  #, php-format
841
  msgid "posted on %s"
842
  msgstr ""
843
 
844
+ #: src/Output.php:784
845
  #, php-format
846
  msgid "under %s"
847
  msgstr ""
848
 
849
+ #: src/Rest/PostsEndpoint.php:97
850
  msgid "Return popular posts from specified custom post type(s)."
851
  msgstr ""
852
 
853
+ #: src/Rest/PostsEndpoint.php:104
854
  msgid "The maximum number of popular posts to return."
855
  msgstr ""
856
 
857
+ #: src/Rest/PostsEndpoint.php:112
858
  msgid "Retrieve the most popular entries published within the specified time range."
859
  msgstr ""
860
 
861
+ #: src/Rest/PostsEndpoint.php:120
862
  msgid "An offset point for the collection."
863
  msgstr ""
864
 
865
+ #: src/Rest/PostsEndpoint.php:128
866
  msgid "Set the sorting option of the popular posts."
867
  msgstr ""
868
 
869
+ #: src/Rest/PostsEndpoint.php:136
870
  msgid "Return popular posts from a specified time range."
871
  msgstr ""
872
 
873
+ #: src/Rest/PostsEndpoint.php:144
874
  msgid "Specifies the time unit of the custom time range."
875
  msgstr ""
876
 
877
+ #: src/Rest/PostsEndpoint.php:152
878
  msgid "Specifies the number of time units of the custom time range."
879
  msgstr ""
880
 
881
+ #: src/Rest/PostsEndpoint.php:160
882
  msgid "Post IDs to exclude from the listing."
883
  msgstr ""
884
 
885
+ #: src/Rest/PostsEndpoint.php:168
886
  msgid "Include posts in a specified taxonomy."
887
  msgstr ""
888
 
889
+ #: src/Rest/PostsEndpoint.php:176
890
  msgid "Taxonomy IDs, separated by comma (prefix a minus sign to exclude)."
891
  msgstr ""
892
 
893
+ #: src/Rest/PostsEndpoint.php:184
894
  msgid "Include popular posts from author ID(s)."
895
  msgstr ""
896
 
897
+ #: src/Rest/ViewLoggerEndpoint.php:214
898
  msgid "Security nonce."
899
  msgstr ""
900
 
901
+ #: src/Rest/ViewLoggerEndpoint.php:220
902
  msgid "The post / page ID."
903
  msgstr ""
904
 
905
+ #: src/Rest/ViewLoggerEndpoint.php:227
906
  msgid "Enables Data Sampling."
907
  msgstr ""
908
 
909
+ #: src/Rest/ViewLoggerEndpoint.php:234
910
  msgid "Sets the Sampling Rate."
911
  msgstr ""
912
 
913
+ #: src/Rest/WidgetEndpoint.php:78
914
  msgid "Invalid Widget Instance ID"
915
  msgstr ""
916
 
917
+ #: src/Widget/Widget.php:77
918
  msgid "The most Popular Posts on your blog."
919
  msgstr ""
920
 
921
+ #: src/Widget/form.php:13
922
  msgid "Show up to"
923
  msgstr ""
924
 
925
+ #: src/Widget/form.php:14
926
  msgid "posts"
927
  msgstr ""
928
 
929
+ #: src/Widget/form.php:23
930
  msgid "Avg. daily views"
931
  msgstr ""
932
 
933
+ #: src/Widget/form.php:82
934
  #, php-format
935
  msgid "%s IDs, separated by comma (prefix a minus sign to exclude)"
936
  msgstr ""
937
 
938
+ #: src/Widget/form.php:98
939
  msgid "Display post rating"
940
  msgstr ""
941
 
942
+ #: src/Widget/form.php:136
943
  msgid "Width"
944
  msgstr ""
945
 
946
+ #: src/Widget/form.php:139
947
  msgid "Height"
948
  msgstr ""
949
 
950
+ #: src/Widget/form.php:148
951
  msgid "Display comment count"
952
  msgstr ""
953
 
954
+ #: src/Widget/form.php:160
955
  msgid "WordPress Date Format"
956
  msgstr ""
957
 
958
+ #: src/Widget/form.php:205
959
  msgid "Before / after title"
960
  msgstr ""
961
 
962
+ #: src/Widget/form.php:208
963
  msgid "Before / after Popular Posts"
964
  msgstr ""
965
 
966
+ #: src/Widget/form.php:211
967
  msgid "Post HTML Markup"
968
  msgstr ""
969
 
970
+ #: src/Widget/form.php:218
971
  #, php-format
972
  msgid "see a <a href=\"%s\">list of supported browsers</a>"
973
  msgstr ""
974
 
975
+ #: src/Widget/form.php:234
976
  msgid "Please save this widget (or reload this page) to enable WPP themes."
977
  msgstr ""
978
 
979
+ #: wordpress-popular-posts.php:52
980
  #, php-format
981
  msgid ""
982
  "WordPress Popular Posts requires at least PHP %1$s and WordPress %2$s to function "
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: popular, posts, widget, popularity, top
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
  Requires PHP: 5.4
8
- Stable tag: 5.4.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -97,6 +97,17 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
 
 
 
 
 
100
  = 5.4.0 =
101
 
102
  **If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.**
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
  Requires PHP: 5.4
8
+ Stable tag: 5.4.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
97
 
98
  == Changelog ==
99
 
100
+ = 5.4.1 =
101
+
102
+ **If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.**
103
+
104
+ - Widget block: fixes WPP block loading block editor JS files on the front end.
105
+ - Adds filter hook to disable Block editor support.
106
+ - Improves logic of filter hooks `wpp_excerpt_more` and `wpp_title_more`.
107
+ - The Parameters section has been moved to the Wiki (see https://git.io/JEOrX).
108
+
109
+ [Release notes](https://cabrerahector.com/wordpress/wordpress-popular-posts-5-4-widget-block-improvements-plus-prep-work-for-csp-support/#5.4.1)
110
+
111
  = 5.4.0 =
112
 
113
  **If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.**
src/Admin/admin-page.php CHANGED
@@ -113,7 +113,6 @@ if ( isset($_POST['section']) ) {
113
  <li><a href="#" title="<?php esc_attr_e('Menu'); ?>"><span><?php _e('Menu'); ?></span></a></li>
114
  <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>
115
  <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>
116
- <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>
117
  <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>
118
  </ul>
119
  </nav>
@@ -515,265 +514,6 @@ if ( isset($_POST['section']) ) {
515
  </div>
516
  <!-- End tools -->
517
 
518
- <!-- Start params -->
519
- <div id="wpp_params" <?php echo ( "params" == $current ) ? '' : ' style="display: none;"'; ?>>
520
- <div>
521
- <p><?php printf( __('With the following parameters you can customize the popular posts list when using either the <a href="%1$s">wpp_get_mostpopular() template tag</a> or the <a href="%2$s">[wpp] shortcode</a>.', 'wordpress-popular-posts'),
522
- 'https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular',
523
- 'https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages'
524
- ); ?></p>
525
- <br />
526
-
527
- <div style="overflow-x: auto;">
528
- <table cellspacing="0" class="wp-list-table">
529
- <thead>
530
- <tr>
531
- <th class="manage-column column-title"><?php _e('Parameter', 'wordpress-popular-posts'); ?></th>
532
- <th class="manage-column column-title"><?php _e('What it does ', 'wordpress-popular-posts'); ?></th>
533
- <th class="manage-column column-title"><?php _e('Possible values', 'wordpress-popular-posts'); ?></th>
534
- <th class="manage-column column-title"><?php _e('Defaults to', 'wordpress-popular-posts'); ?></th>
535
- <th class="manage-column column-title"><?php _e('Example', 'wordpress-popular-posts'); ?></th>
536
- </tr>
537
- </thead>
538
- <tbody>
539
- <tr>
540
- <td><strong>header</strong></td>
541
- <td><?php _e('Sets a heading for the list', 'wordpress-popular-posts'); ?></td>
542
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
543
- <td><?php _e('None', 'wordpress-popular-posts'); ?></td>
544
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'header' => 'Popular Posts'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp header='Popular Posts']<br /><br /></td>
545
- </tr>
546
- <tr class="alternate">
547
- <td><strong>header_start</strong></td>
548
- <td><?php _e('Set the opening tag for the heading of the list', 'wordpress-popular-posts'); ?></td>
549
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
550
- <td>&lt;h2&gt;</td>
551
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'header' => 'Popular Posts', <br />&nbsp;&nbsp;&nbsp;&nbsp;'header_start' => '&lt;h3 class="title"&gt;',<br />&nbsp;&nbsp;&nbsp;&nbsp;'header_end' => '&lt;/h3&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp header='Popular Posts' header_start='&lt;h3 class="title"&gt;' header_end='&lt;/h3&gt;']<br /><br /></td>
552
- </tr>
553
- <tr>
554
- <td><strong>header_end</strong></td>
555
- <td><?php _e('Set the closing tag for the heading of the list', 'wordpress-popular-posts'); ?></td>
556
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
557
- <td>&lt;/h2&gt;</td>
558
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'header' => 'Popular Posts', <br />&nbsp;&nbsp;&nbsp;&nbsp;'header_start' => '&lt;h3 class="title"&gt;',<br />&nbsp;&nbsp;&nbsp;&nbsp;'header_end' => '&lt;/h3&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp header='Popular Posts' header_start='&lt;h3 class="title"&gt;' header_end='&lt;/h3&gt;']<br /><br /></td>
559
- </tr>
560
- <tr class="alternate">
561
- <td><strong>limit</strong></td>
562
- <td><?php _e('Sets the maximum number of popular posts to be shown on the listing', 'wordpress-popular-posts'); ?></td>
563
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
564
- <td>10</td>
565
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'limit' => 5<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp limit=5]<br /><br /></td>
566
- </tr>
567
- <tr>
568
- <td><strong>range</strong></td>
569
- <td><?php _e('Tells WordPress Popular Posts to retrieve the most popular entries within the time range specified by you', 'wordpress-popular-posts'); ?></td>
570
- <td>"last24hours", "last7days", "last30days", "all", "custom"</td>
571
- <td>last24hours</td>
572
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'range' => 'last7days'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp range='last7days']<br /><br /></td>
573
- </tr>
574
- <tr class="alternate">
575
- <td><strong>time_quantity</strong></td>
576
- <td><?php _e('Especifies the number of time units of the custom time range', 'wordpress-popular-posts'); ?></td>
577
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
578
- <td>24</td>
579
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'range' => 'custom',<br />&nbsp;&nbsp;&nbsp;&nbsp;'time_quantity' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'time_unit' => 'hour'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp range='custom' time_quantity=1 time_unit='hour']<br /><br /></td>
580
- </tr>
581
- <tr>
582
- <td><strong>time_unit</strong></td>
583
- <td><?php _e('Especifies the time unit of the custom time range', 'wordpress-popular-posts'); ?></td>
584
- <td>minute, hour, day, week, month</td>
585
- <td>hour</td>
586
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'range' => 'custom',<br />&nbsp;&nbsp;&nbsp;&nbsp;'time_quantity' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'time_unit' => 'hour'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp range='custom' time_quantity=1 time_unit='hour']<br /><br /></td>
587
- </tr>
588
- <tr class="alternate">
589
- <td><strong>freshness</strong></td>
590
- <td><?php _e('Tells WordPress Popular Posts to retrieve the most popular entries published within the time range specified by you', 'wordpress-popular-posts'); ?></td>
591
- <td>1 (true), 0 (false)</td>
592
- <td>0</td>
593
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'range' => 'weekly',<br />&nbsp;&nbsp;&nbsp;&nbsp;'freshness' => 1<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp range='last7days' freshness=1]<br /><br /></td>
594
- </tr>
595
- <tr>
596
- <td><strong>order_by</strong></td>
597
- <td><?php _e('Sets the sorting option of the popular posts', 'wordpress-popular-posts'); ?></td>
598
- <td>"comments", "views", "avg" <?php _e('(for average views per day)', 'wordpress-popular-posts'); ?></td>
599
- <td>views</td>
600
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'order_by' => 'comments'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp order_by='comments']<br /><br /></td>
601
- </tr>
602
- <tr class="alternate">
603
- <td><strong>post_type</strong></td>
604
- <td><?php _e('Defines the type of posts to show on the listing', 'wordpress-popular-posts'); ?></td>
605
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
606
- <td>post</td>
607
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'post_type' => 'post,page,your-custom-post-type'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp post_type='post,page,your-custom-post-type']<br /><br /></td>
608
- </tr>
609
- <tr>
610
- <td><strong>pid</strong></td>
611
- <td><?php _e('If set, WordPress Popular Posts will exclude the specified post(s) ID(s) form the listing.', 'wordpress-popular-posts'); ?></td>
612
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
613
- <td><?php _e('None', 'wordpress-popular-posts'); ?></td>
614
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'pid' => '60,25,31'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp pid='60,25,31']<br /><br /></td>
615
- </tr>
616
- <tr class="alternate">
617
- <td><strong>cat</strong></td>
618
- <td><?php _e('If set, WordPress Popular Posts will retrieve all entries that belong to the specified category ID(s). If a minus sign is used, entries associated to the category will be excluded instead.', 'wordpress-popular-posts'); ?></td>
619
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
620
- <td><?php _e('None', 'wordpress-popular-posts'); ?></td>
621
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'cat' => '1,55,-74'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp cat='1,55,-74']<br /><br /></td>
622
- </tr>
623
- <tr>
624
- <td><strong>taxonomy</strong></td>
625
- <td><?php _e('If set, WordPress Popular Posts will filter posts by a given taxonomy.', 'wordpress-popular-posts'); ?></td>
626
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
627
- <td><?php _e('None', 'wordpress-popular-posts'); ?></td>
628
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'taxonomy' => 'post_tag',<br />&nbsp;&nbsp;&nbsp;&nbsp;'term_id' => '118,75,15'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'taxonomy' => 'category; post_tag',<br />&nbsp;&nbsp;&nbsp;&nbsp;'term_id' => '1,55,-74; 118,75,15'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp taxonomy='post_tag' term_id='118,75,15']<br /><br />[wpp taxonomy='category; post_tag' term_id='1,55,-74; 118,75,15']<br /><br /></td>
629
- </tr>
630
- <tr class="alternate">
631
- <td><strong>term_id</strong></td>
632
- <td><?php _e('If set, WordPress Popular Posts will retrieve all entries that belong to the specified term ID(s). If a minus sign is used, entries associated to the term(s) will be excluded instead.', 'wordpress-popular-posts'); ?></td>
633
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
634
- <td><?php _e('None', 'wordpress-popular-posts'); ?></td>
635
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'taxonomy' => 'post_tag',<br />&nbsp;&nbsp;&nbsp;&nbsp;'term_id' => '118,75,15'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp taxonomy='post_tag' term_id='118,75,15']<br /><br /></td>
636
- </tr>
637
- <tr>
638
- <td><strong>author</strong></td>
639
- <td><?php _e('If set, WordPress Popular Posts will retrieve all entries created by specified author(s) ID(s).', 'wordpress-popular-posts'); ?></td>
640
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
641
- <td><?php _e('None', 'wordpress-popular-posts'); ?></td>
642
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'author' => '75,8,120'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp author='75,8,120']<br /><br /></td>
643
- </tr>
644
- <tr class="alternate">
645
- <td><strong>title_length</strong></td>
646
- <td><?php _e('If set, WordPress Popular Posts will shorten each post title to "n" characters whenever possible', 'wordpress-popular-posts'); ?></td>
647
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
648
- <td>25</td>
649
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'title_length' => 25<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp title_length=25]<br /><br /></td>
650
- </tr>
651
- <tr>
652
- <td><strong>title_by_words</strong></td>
653
- <td><?php _e('If set to 1, WordPress Popular Posts will shorten each post title to "n" words instead of characters', 'wordpress-popular-posts'); ?></td>
654
- <td>1 (true), (0) false</td>
655
- <td>0</td>
656
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'title_by_words' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'title_length' => 25<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp title_by_words=1 title_length=25]<br /><br /></td>
657
- </tr>
658
- <tr class="alternate">
659
- <td><strong>excerpt_length</strong></td>
660
- <td><?php _e('If set, WordPress Popular Posts will build and include an excerpt of "n" characters long from the content of each post listed as popular', 'wordpress-popular-posts'); ?></td>
661
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
662
- <td>0</td>
663
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'excerpt_length' => 55,<br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;{title} &lt;span class="wpp-excerpt"&gt;{summary}&lt;/span&gt;&lt;/li&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp excerpt_length=25 post_html='&lt;li&gt;{title} &lt;span class="wpp-excerpt"&gt;{summary}&lt;/span&gt;&lt;/li&gt;']<br /><br /></td>
664
- </tr>
665
- <tr>
666
- <td><strong>excerpt_format</strong></td>
667
- <td><?php _e('If set, WordPress Popular Posts will maintaing all styling tags (strong, italic, etc) and hyperlinks found in the excerpt', 'wordpress-popular-posts'); ?></td>
668
- <td>1 (true), (0) false</td>
669
- <td>0</td>
670
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'excerpt_format' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'excerpt_length' => 55,<br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;{title} &lt;span class="wpp-excerpt"&gt;{summary}&lt;/span&gt;&lt;/li&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp excerpt_format=1 excerpt_length=25 post_html='&lt;li&gt;{title} &lt;span class="wpp-excerpt"&gt;{summary}&lt;/span&gt;&lt;/li&gt;']<br /><br /></td>
671
- </tr>
672
- <tr class="alternate">
673
- <td><strong>excerpt_by_words</strong></td>
674
- <td><?php _e('If set to 1, WordPress Popular Posts will shorten the excerpt to "n" words instead of characters', 'wordpress-popular-posts'); ?></td>
675
- <td>1 (true), (0) false</td>
676
- <td>0</td>
677
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'excerpt_by_words' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'excerpt_length' => 55,<br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;{title} &lt;span class="wpp-excerpt"&gt;{summary}&lt;/span&gt;&lt;/li&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp excerpt_by_words=1 excerpt_length=55 post_html='&lt;li&gt;{title} &lt;span class="wpp-excerpt"&gt;{summary}&lt;/span&gt;&lt;/li&gt;']<br /><br /></td>
678
- </tr>
679
- <tr>
680
- <td><strong>thumbnail_width</strong></td>
681
- <td><?php _e('If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the width for thumbnails', 'wordpress-popular-posts'); ?></td>
682
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
683
- <td>0</td>
684
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'thumbnail_width' => 30,<br />&nbsp;&nbsp;&nbsp;&nbsp;'thumbnail_height' => 30<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp thumbnail_width=30 thumbnail_height=30]<br /><br /></td>
685
- </tr>
686
- <tr class="alternate">
687
- <td><strong>thumbnail_height</strong></td>
688
- <td><?php _e('If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the height for thumbnails', 'wordpress-popular-posts'); ?></td>
689
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
690
- <td>0</td>
691
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'thumbnail_width' => 30,<br />&nbsp;&nbsp;&nbsp;&nbsp;'thumbnail_height' => 30<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp thumbnail_width=30 thumbnail_height=30]<br /><br /></td>
692
- </tr>
693
- <tr>
694
- <td><strong>rating</strong></td>
695
- <td><?php _e('If set, and if the WP-PostRatings plugin is installed and enabled on your blog, WordPress Popular Posts will show how your visitors are rating your entries', 'wordpress-popular-posts'); ?></td>
696
- <td>1 (true), (0) false</td>
697
- <td>0</td>
698
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'rating' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;{title} {rating}&lt;/li&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp rating=1 post_html='&lt;li&gt;{title} {rating}&lt;/li&gt;']<br /><br /></td>
699
- </tr>
700
- <tr class="alternate">
701
- <td><strong>stats_comments</strong></td>
702
- <td><?php _e('If set, WordPress Popular Posts will show how many comments each popular post has got during the specified time range', 'wordpress-popular-posts'); ?></td>
703
- <td>1 (true), 0 (false)</td>
704
- <td>0</td>
705
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_comments' => 1<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_comments=1]<br /><br /></td>
706
- </tr>
707
- <tr>
708
- <td><strong>stats_views</strong></td>
709
- <td><?php _e('If set, WordPress Popular Posts will show how many views each popular post has got during the specified time range', 'wordpress-popular-posts'); ?></td>
710
- <td>1 (true), (0) false</td>
711
- <td>1</td>
712
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_views' => 0<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_views=0]<br /><br /></td>
713
- </tr>
714
- <tr class="alternate">
715
- <td><strong>stats_author</strong></td>
716
- <td><?php _e('If set, WordPress Popular Posts will show who published each popular post on the list', 'wordpress-popular-posts'); ?></td>
717
- <td>1 (true), (0) false</td>
718
- <td>0</td>
719
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_author' => 1<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_author=1]<br /><br /></td>
720
- </tr>
721
- <tr>
722
- <td><strong>stats_date</strong></td>
723
- <td><?php _e('If set, WordPress Popular Posts will display the date when each popular post on the list was published', 'wordpress-popular-posts'); ?></td>
724
- <td>1 (true), (0) false</td>
725
- <td>0</td>
726
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_date' => 1<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_date=1]<br /><br /></td>
727
- </tr>
728
- <tr class="alternate">
729
- <td><strong>stats_date_format</strong></td>
730
- <td><?php _e('Sets the date format', 'wordpress-popular-posts'); ?></td>
731
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
732
- <td>0</td>
733
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_date' => 1,<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_date_format' => 'F j, Y'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_date=1 stats_date_format='F j, Y']<br /><br /></td>
734
- </tr>
735
- <tr>
736
- <td><strong>stats_category</strong></td>
737
- <td><?php _e('If set, WordPress Popular Posts will display the categories associated to each entry', 'wordpress-popular-posts'); ?></td>
738
- <td>1 (true), (0) false</td>
739
- <td>0</td>
740
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_category' => 1, <br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;&lt;a href="{url}"&gt;{text_title}&lt;/a&gt; {category}&lt;/li&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_taxonomy=1 post_html='&lt;li&gt;&lt;a href="{url}"&gt;{text_title}&lt;/a&gt; {category}&lt;/li&gt;']<br /><br /></td>
741
- </tr>
742
- <tr class="alternate">
743
- <td><strong>stats_taxonomy</strong></td>
744
- <td><?php _e('If set, WordPress Popular Posts will display the taxonomies associated to each entry', 'wordpress-popular-posts'); ?></td>
745
- <td>1 (true), (0) false</td>
746
- <td>0</td>
747
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'stats_taxonomy' => 1, <br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;&lt;a href="{url}"&gt;{text_title}&lt;/a&gt; {taxonomy}&lt;/li&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp stats_taxonomy=1 post_html='&lt;li&gt;&lt;a href="{url}"&gt;{text_title}&lt;/a&gt; {taxonomy}&lt;/li&gt;']<br /><br /></td>
748
- </tr>
749
- <tr>
750
- <td><strong>wpp_start</strong></td>
751
- <td><?php _e('Sets the opening tag for the listing', 'wordpress-popular-posts'); ?></td>
752
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
753
- <td>&lt;ul&gt;</td>
754
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'wpp_start' => '&lt;ol&gt;',<br />&nbsp;&nbsp;&nbsp;&nbsp;'wpp_end' => '&lt;/ol&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp wpp_start='&lt;ol&gt;' wpp_end='&lt;/ol&gt;']<br /><br /></td>
755
- </tr>
756
- <tr class="alternate">
757
- <td><strong>wpp_end</strong></td>
758
- <td><?php _e('Sets the closing tag for the listing', 'wordpress-popular-posts'); ?></td>
759
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
760
- <td>&lt;/ul&gt;</td>
761
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'wpp_start' => '&lt;ol&gt;',<br />&nbsp;&nbsp;&nbsp;&nbsp;'wpp_end' => '&lt;/ol&gt;'<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp wpp_start='&lt;ol&gt;' wpp_end='&lt;/ol&gt;']<br /><br /></td>
762
- </tr>
763
- <tr>
764
- <td><strong>post_html</strong></td>
765
- <td><?php _e('Sets the HTML structure of each post', 'wordpress-popular-posts'); ?></td>
766
- <td><?php _e('Text string, custom HTML', 'wordpress-popular-posts'); ?>.<br /><br /><strong><?php _e('Available Content Tags', 'wordpress-popular-posts'); ?>:</strong> <br /><br /><em>{thumb}</em> (<?php _e('returns thumbnail linked to post/page, requires thumbnail_width & thumbnail_height', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{thumb_img}</em> (<?php _e('returns thumbnail image without linking to post/page, requires thumbnail_width & thumbnail_height', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{thumb_url}</em> (<?php _e('returns thumbnail url, requires thumbnail_width & thumbnail_height', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{title}</em> (<?php _e('returns linked post/page title', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{pid}</em> (<?php _e('returns the post/page ID', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{summary}</em> (<?php _e('returns post/page excerpt, and requires excerpt_length to be greater than 0', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{stats}</em> (<?php _e('returns the default stats tags', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{rating}</em> (<?php _e('returns post/page current rating, requires WP-PostRatings installed and enabled', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{score}</em> (<?php _e('returns post/page current rating as an integer, requires WP-PostRatings installed and enabled', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{url}</em> (<?php _e('returns the URL of the post/page', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{text_title}</em> (<?php _e('returns post/page title, no link', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{title_attr}</em> (<?php _e('similar to text_title, sanitized for use in title/alt attributes', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{author}</em> (<?php _e('returns linked author name, requires stats_author=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{author_copy}</em> (<?php _e('returns linked author name with copy, requires stats_author=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{category}</em> (<?php _e('returns linked category name, requires stats_category=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{category_copy}</em> (<?php _e('returns linked category name with copy, requires stats_category=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{taxonomy}</em> (<?php _e('returns linked taxonomy names, requires stats_taxonomy=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{taxonomy_copy}</em> (<?php _e('returns linked taxonomy names with copy, requires stats_taxonomy=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{views}</em> (<?php _e('returns views count only, no text, requires stats_views=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{views_copy}</em> (<?php _e('returns views count with copy, requires stats_views=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{comments}</em> (<?php _e('returns comments count only, no text, requires stats_comments=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{comments_copy}</em> (<?php _e('returns comments count with copy, requires stats_comments=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{date}</em> (<?php _e('returns post/page date, requires stats_date=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{date_copy}</em> (<?php _e('returns post/page date with copy, requires stats_date=1', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{total_items}</em> (<?php _e('outputs number of popular posts found', 'wordpress-popular-posts'); ?>)<br /><br /> <em>{item_position}</em> (<?php _e('outputs the position of the post in the listing', 'wordpress-popular-posts'); ?>)</td>
767
- <td>&lt;li&gt;{thumb} {title} &lt;span class="wpp-meta post-stats"&gt;{stats}&lt;/span&gt;&lt;/li&gt;</td>
768
- <td><strong><?php _e('With wpp_get_mostpopular():', 'wordpress-popular-posts'); ?></strong><br /><br />&lt;?php<br />$args = array(<br />&nbsp;&nbsp;&nbsp;&nbsp;'post_html' => '&lt;li&gt;{thumb} &lt;a href="{url}"&gt;{text_title}&lt;/a&gt;&lt;/li&gt;',<br />&nbsp;&nbsp;&nbsp;&nbsp;'thumbnail_width' => 100,<br />&nbsp;&nbsp;&nbsp;&nbsp;'thumbnail_height' => 75<br />);<br /><br />wpp_get_mostpopular($args);<br />?&gt;<br /><br /><hr /><br /><strong><?php _e('With the [wpp] shortcode:', 'wordpress-popular-posts'); ?></strong><br /><br />[wpp thumbnail_width=100 thumbnail_height=75 post_html='&lt;li&gt;{thumb} &lt;a href="{url}"&gt;{text_title}&lt;/a&gt;&lt;/li&gt;']<br /><br /></td>
769
- </tr>
770
- </tbody>
771
- </table>
772
- </div>
773
- </div>
774
- </div>
775
- <!-- End params -->
776
-
777
  <!-- Start debug -->
778
  <?php
779
  global $wpdb, $wp_version;
113
  <li><a href="#" title="<?php esc_attr_e('Menu'); ?>"><span><?php _e('Menu'); ?></span></a></li>
114
  <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>
115
  <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>
 
116
  <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>
117
  </ul>
118
  </nav>
514
  </div>
515
  <!-- End tools -->
516
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  <!-- Start debug -->
518
  <?php
519
  global $wpdb, $wp_version;
src/Block/Widget/Widget.php CHANGED
@@ -136,7 +136,13 @@ class Widget extends Block
136
  return;
137
  }
138
 
139
- wp_enqueue_script(
 
 
 
 
 
 
140
  'block-wpp-widget-js',
141
  plugin_dir_url(dirname(dirname(dirname(__FILE__)))) . 'assets/js/blocks/block-wpp-widget.js',
142
  ['wp-blocks', 'wp-i18n', 'wp-element', 'wp-block-editor', 'wp-server-side-render'],
136
  return;
137
  }
138
 
139
+ $block_editor_support = apply_filters('wpp_block_editor_support', true);
140
+
141
+ if ( ! $block_editor_support ) {
142
+ return;
143
+ }
144
+
145
+ wp_register_script(
146
  'block-wpp-widget-js',
147
  plugin_dir_url(dirname(dirname(dirname(__FILE__)))) . 'assets/js/blocks/block-wpp-widget.js',
148
  ['wp-blocks', 'wp-i18n', 'wp-element', 'wp-block-editor', 'wp-server-side-render'],
src/Helper.php CHANGED
@@ -268,7 +268,7 @@ class Helper {
268
 
269
  if ( count($words) > $length ) {
270
  array_pop($words);
271
- $text = rtrim(implode(" ", $words), ",.") . " {$more}";
272
  }
273
  }
274
  // Truncate by characters
268
 
269
  if ( count($words) > $length ) {
270
  array_pop($words);
271
+ $text = rtrim(implode(" ", $words), ",.") . $more;
272
  }
273
  }
274
  // Truncate by characters
src/Output.php CHANGED
@@ -283,7 +283,8 @@ class Output {
283
  ? $this->public_options['shorten_title']['length']
284
  : 25;
285
 
286
- $more = apply_filters('wpp_title_more', $this->more);
 
287
  $post_title = Helper::truncate($post_title, $length, $this->public_options['shorten_title']['words'], $more);
288
  }
289
 
@@ -545,7 +546,8 @@ class Output {
545
  // Balance tags, if needed
546
  if ( '' !== $excerpt ) {
547
 
548
- $more = apply_filters('wpp_excerpt_more', $this->more);
 
549
  $excerpt = Helper::truncate($excerpt, $this->public_options['post-excerpt']['length'], $this->public_options['post-excerpt']['words'], $more);
550
 
551
  if ( $this->public_options['post-excerpt']['keep_format'] )
283
  ? $this->public_options['shorten_title']['length']
284
  : 25;
285
 
286
+ $more = $this->public_options['shorten_title']['words'] ? ' ' . $this->more : $this->more;
287
+ $more = apply_filters('wpp_title_more', $more);
288
  $post_title = Helper::truncate($post_title, $length, $this->public_options['shorten_title']['words'], $more);
289
  }
290
 
546
  // Balance tags, if needed
547
  if ( '' !== $excerpt ) {
548
 
549
+ $more = $this->public_options['post-excerpt']['words'] ? ' ' . $this->more : $this->more;
550
+ $more = apply_filters('wpp_excerpt_more', $more);
551
  $excerpt = Helper::truncate($excerpt, $this->public_options['post-excerpt']['length'], $this->public_options['post-excerpt']['words'], $more);
552
 
553
  if ( $this->public_options['post-excerpt']['keep_format'] )
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.4.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.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.4.1
20
  * Author: Hector Cabrera
21
  * Author URI: https://cabrerahector.com/
22
  * License: GPL-2.0+
29
  die();
30
  }
31
 
32
+ define('WPP_VERSION', '5.4.1');
33
  define('WPP_MIN_PHP_VERSION', '5.4');
34
  define('WPP_MIN_WP_VERSION', '4.9');
35