Version Description
If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.
- Fixes an issue where the WordPress Popular Posts block would, under specific conditions, output code that may break the page layout (thanks @shoelaced and @themosaurus for the report!)
- Fixes minor variable declaration bug in wpp.js.min.
- Cleans up inline style tag (thanks @gabu69 and Lohen Florent for the suggestions!)
- Other minor fixes & changes.
Release notes
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 5.5.1 |
Comparing to | |
See all releases |
Code changes from version 5.5.0 to 5.5.1
- assets/js/wpp.js +8 -7
- assets/js/wpp.min.js +7 -7
- i18n/wordpress-popular-posts.pot +130 -112
- readme.txt +26 -3
- src/Admin/admin-page.php +4 -4
- src/Block/Widget/Widget.php +1 -1
- src/Front/Front.php +9 -34
- wordpress-popular-posts.php +2 -2
assets/js/wpp.js
CHANGED
@@ -19,13 +19,14 @@ var WordPressPopularPosts = (function(){
|
|
19 |
var ajax = function( method, url, params, callback, additional_headers ){
|
20 |
/* Create XMLHttpRequest object and set variables */
|
21 |
var xhr = new XMLHttpRequest(),
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
29 |
|
30 |
/* Set request headers */
|
31 |
if ( 'POST' == method ) {
|
19 |
var ajax = function( method, url, params, callback, additional_headers ){
|
20 |
/* Create XMLHttpRequest object and set variables */
|
21 |
var xhr = new XMLHttpRequest(),
|
22 |
+
target = url,
|
23 |
+
args = params,
|
24 |
+
valid_methods = ["GET", "POST"],
|
25 |
+
headers = {
|
26 |
+
'X-Requested-With': 'XMLHttpRequest'
|
27 |
+
};
|
28 |
+
|
29 |
+
method = -1 != valid_methods.indexOf( method ) ? method : "GET";
|
30 |
|
31 |
/* Set request headers */
|
32 |
if ( 'POST' == method ) {
|
assets/js/wpp.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
var wpp_params=null,WordPressPopularPosts=function(){var m=function(){},h=!!HTMLElement.prototype.attachShadow,f=function(b,c,a,g,k){var e=new XMLHttpRequest;b=-1!=["GET","POST"].indexOf(b)?b:"GET";
|
2 |
-
e.readyState&&200<=e.status&&300>e.status&&"function"===typeof g&&g.call(void 0,e.response)};e.send("POST"==b?a:null)};return{get:function(b,c,a,g){a="function"===typeof a?a:m;f("GET",b,c,a,g)},post:function(b,c,a,g){a="function"===typeof a?a:m;f("POST",b,c,a,g)},ajax:f,theme:function(b){if(h){var c=document.createElement("style"),a=document.createElement("ul");a.innerHTML='<li><a href="#"></a></li>';b.parentNode.appendChild(a);var g=getComputedStyle(a.querySelector("li")),k=getComputedStyle(a.querySelector("li a"));
|
3 |
-
c.innerHTML=".wpp-list li {font-size: "+g.fontSize+"}";c.innerHTML+=".wpp-list li a {color: "+k.color+"}";b.parentNode.removeChild(a);a=b.attachShadow({mode:"open"});for(a.append(c);b.firstElementChild;)a.append(b.firstElementChild)}}}}();
|
4 |
-
(function(){try{var m=document.querySelector("script#wpp-json"),h=!0;wpp_params=JSON.parse(m.textContent);wpp_params.ID&&("1"==wpp_params.sampling_active&&(h=1===Math.floor(Math.random()*wpp_params.sampling_rate)+1),h&&WordPressPopularPosts.post(wpp_params.ajax_url,"_wpnonce="+wpp_params.token+"&wpp_id="+wpp_params.ID+"&sampling="+wpp_params.sampling_active+"&sampling_rate="+wpp_params.sampling_rate,function(f){wpp_params.debug&&window.console&&window.console.log&&window.console.log(JSON.parse(f))}))}catch(f){console.error("WPP: Couldn't read JSON data")}})();
|
5 |
-
document.addEventListener("DOMContentLoaded",function(){function m(b){var c=b.getAttribute("data-widget-id"),a="GET",g="",k={},e="";if(c)g=wpp_params.ajax_url+"/widget/"+c.split("-")[1],e="is_single="+wpp_params.ID+(wpp_params.lang?"&lang="+wpp_params.lang:"");else if(a="POST",g=wpp_params.api_url+"/v2/widget?is_single="+wpp_params.ID+(wpp_params.lang?"&lang="+wpp_params.lang:""),k={"Content-Type":"application/json"},c=b.parentNode.querySelector('script[type="application/json"]'))e=JSON.parse(c.textContent),
|
6 |
-
e=JSON.stringify(e);WordPressPopularPosts.ajax(a,g,e,function(d){b.insertAdjacentHTML("afterend",JSON.parse(d).widget);d=b.parentNode;var l=d.querySelector(".popular-posts-sr"),n=d.querySelector('script[type="application/json"]');n&&d.removeChild(n);d.removeChild(b);d.classList.add("wpp-ajax");l&&WordPressPopularPosts.theme(l);l=new Event("wpp-onload",{bubbles:!0,cancelable:!1});d.dispatchEvent(l)},k)}for(var h=document.querySelectorAll(".wpp-widget-placeholder, .wpp-widget-block-placeholder"),f=
|
7 |
-
0;f<h.length;)m(h[f]),f++;h=document.querySelectorAll(".popular-posts-sr");if(h.length)for(f=0;f<h.length;f++)WordPressPopularPosts.theme(h[f])});
|
1 |
+
var wpp_params=null,WordPressPopularPosts=function(){var m=function(){},h=!!HTMLElement.prototype.attachShadow,f=function(b,c,a,g,k){var e=new XMLHttpRequest,d={"X-Requested-With":"XMLHttpRequest"};b=-1!=["GET","POST"].indexOf(b)?b:"GET";"POST"==b&&(d["Content-Type"]="application/x-www-form-urlencoded");"object"==typeof k&&Object.keys(k).length&&(d=Object.assign({},d,k));e.open(b,c+("GET"==b?"?"+a:""),!0);for(var l in d)d.hasOwnProperty(l)&&e.setRequestHeader(l,d[l]);e.onreadystatechange=function(){4===
|
2 |
+
e.readyState&&200<=e.status&&300>e.status&&"function"===typeof g&&g.call(void 0,e.response)};e.send("POST"==b?a:null)};return{get:function(b,c,a,g){a="function"===typeof a?a:m;f("GET",b,c,a,g)},post:function(b,c,a,g){a="function"===typeof a?a:m;f("POST",b,c,a,g)},ajax:f,theme:function(b){if(h){var c=document.createElement("style"),a=document.createElement("ul");a.innerHTML='<li><a href="#"></a></li>';b.parentNode.appendChild(a);var g=getComputedStyle(a.querySelector("li")),k=getComputedStyle(a.querySelector("li a"));
|
3 |
+
c.innerHTML=".wpp-list li {font-size: "+g.fontSize+"}";c.innerHTML+=".wpp-list li a {color: "+k.color+"}";b.parentNode.removeChild(a);a=b.attachShadow({mode:"open"});for(a.append(c);b.firstElementChild;)a.append(b.firstElementChild)}}}}();
|
4 |
+
(function(){try{var m=document.querySelector("script#wpp-json"),h=!0;wpp_params=JSON.parse(m.textContent);wpp_params.ID&&("1"==wpp_params.sampling_active&&(h=1===Math.floor(Math.random()*wpp_params.sampling_rate)+1),h&&WordPressPopularPosts.post(wpp_params.ajax_url,"_wpnonce="+wpp_params.token+"&wpp_id="+wpp_params.ID+"&sampling="+wpp_params.sampling_active+"&sampling_rate="+wpp_params.sampling_rate,function(f){wpp_params.debug&&window.console&&window.console.log&&window.console.log(JSON.parse(f))}))}catch(f){console.error("WPP: Couldn't read JSON data")}})();
|
5 |
+
document.addEventListener("DOMContentLoaded",function(){function m(b){var c=b.getAttribute("data-widget-id"),a="GET",g="",k={},e="";if(c)g=wpp_params.ajax_url+"/widget/"+c.split("-")[1],e="is_single="+wpp_params.ID+(wpp_params.lang?"&lang="+wpp_params.lang:"");else if(a="POST",g=wpp_params.api_url+"/v2/widget?is_single="+wpp_params.ID+(wpp_params.lang?"&lang="+wpp_params.lang:""),k={"Content-Type":"application/json"},c=b.parentNode.querySelector('script[type="application/json"]'))e=JSON.parse(c.textContent),
|
6 |
+
e=JSON.stringify(e);WordPressPopularPosts.ajax(a,g,e,function(d){b.insertAdjacentHTML("afterend",JSON.parse(d).widget);d=b.parentNode;var l=d.querySelector(".popular-posts-sr"),n=d.querySelector('script[type="application/json"]');n&&d.removeChild(n);d.removeChild(b);d.classList.add("wpp-ajax");l&&WordPressPopularPosts.theme(l);l=new Event("wpp-onload",{bubbles:!0,cancelable:!1});d.dispatchEvent(l)},k)}for(var h=document.querySelectorAll(".wpp-widget-placeholder, .wpp-widget-block-placeholder"),f=
|
7 |
+
0;f<h.length;)m(h[f]),f++;h=document.querySelectorAll(".popular-posts-sr");if(h.length)for(f=0;f<h.length;f++)WordPressPopularPosts.theme(h[f])});
|
i18n/wordpress-popular-posts.pot
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: WordPress Popular Posts\n"
|
7 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"PO-Revision-Date: 2015-04-24 13:30-0430\n"
|
10 |
"Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
|
11 |
"Language-Team: Héctor Cabrera <me@cabrerahector.com>\n"
|
@@ -29,7 +29,7 @@ msgstr ""
|
|
29 |
msgid "Preview"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/Admin.php:
|
33 |
#: src/Block/Widget/edit.js:125
|
34 |
msgid "Edit"
|
35 |
msgstr ""
|
@@ -54,412 +54,422 @@ msgstr ""
|
|
54 |
msgid "Total views"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/
|
58 |
-
#: src/
|
|
|
|
|
|
|
|
|
|
|
59 |
msgid "Comments"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
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:
|
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:
|
78 |
msgid "Last 30 days"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
88 |
msgid "Custom"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
92 |
msgid "Time Quantity"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
139 |
-
#: src/Block/Widget/edit.js:
|
140 |
msgid "IDs must be comma separated."
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
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:
|
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:
|
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:
|
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:
|
168 |
-
#: src/Block/Widget/edit.js:
|
169 |
msgid "characters"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
173 |
-
#: src/Block/Widget/edit.js:
|
174 |
msgid "words"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
208 |
msgid "Thumbnail width"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
212 |
-
#: src/Block/Widget/edit.js:
|
213 |
msgid "Size in px units (pixels)"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
217 |
msgid "Thumbnail height"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
226 |
msgid "Display comments count"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
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:
|
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:
|
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:
|
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:
|
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:
|
255 |
msgid "Month Day, Year"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
259 |
msgid "yyyy/mm/dd"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
263 |
msgid "mm/dd/yyyy"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
267 |
msgid "dd/mm/yyyy"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
|
|
|
|
|
|
|
|
|
|
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:
|
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:
|
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:
|
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:
|
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:
|
296 |
msgid "Before title"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
300 |
msgid "After title"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
304 |
msgid "Before popular posts"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
308 |
msgid "After popular posts"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
312 |
msgid "Post HTML markup"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:
|
316 |
#: src/Widget/form.php:218
|
317 |
msgid "Theme"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: src/Admin/Admin.php:
|
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:
|
328 |
msgid "Trending now"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: src/Admin/Admin.php:
|
332 |
msgid "View more"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: src/Admin/Admin.php:
|
336 |
msgid "Use this image"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: src/Admin/Admin.php:
|
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:
|
346 |
msgid "Success! The cache table has been cleared!"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: src/Admin/Admin.php:
|
350 |
msgid "Error: cache table does not exist."
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: src/Admin/Admin.php:
|
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:
|
360 |
msgid "Success! All data have been cleared!"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: src/Admin/Admin.php:
|
364 |
msgid "Error: one or both data tables are missing."
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: src/Admin/Admin.php:
|
368 |
msgid "This operation will delete all cached thumbnails and cannot be undone."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: src/Admin/Admin.php:
|
372 |
msgid "Success! All files have been deleted!"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: src/Admin/Admin.php:
|
376 |
msgid "The thumbnail cache is already empty!"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: src/Admin/Admin.php:
|
380 |
msgid "Do you want to continue?"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: src/Admin/Admin.php:
|
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:
|
390 |
msgid "Invalid action."
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: src/Admin/Admin.php:
|
394 |
msgid "Overview"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: src/Admin/Admin.php:
|
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:
|
404 |
msgid "Like this plugin?"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: src/Admin/Admin.php:
|
408 |
msgid ""
|
409 |
"Each donation motivates me to keep releasing free stuff for the WordPress community!"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: src/Admin/Admin.php:
|
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:
|
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:
|
425 |
msgid "Settings"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: src/Admin/Admin.php:
|
429 |
msgid "Support"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: src/Admin/Admin.php:
|
433 |
-
#: src/Output.php:
|
434 |
#, php-format
|
435 |
msgid "%s view"
|
436 |
msgid_plural "%s views"
|
437 |
msgstr[0] ""
|
438 |
msgstr[1] ""
|
439 |
|
440 |
-
#: src/Admin/Admin.php:
|
441 |
-
#: src/Output.php:
|
442 |
#, php-format
|
443 |
msgid "%s comment"
|
444 |
msgid_plural "%s comments"
|
445 |
msgstr[0] ""
|
446 |
msgstr[1] ""
|
447 |
|
448 |
-
#: src/Admin/Admin.php:
|
449 |
msgid "Views"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: src/Admin/Admin.php:
|
453 |
msgid "View"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: src/Admin/Admin.php:
|
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:
|
463 |
#, php-format
|
464 |
msgid ""
|
465 |
"<strong>WordPress Popular Posts:</strong> It seems your site is popular (great!) You "
|
@@ -467,11 +477,11 @@ msgid ""
|
|
467 |
"performance stays up to par."
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: src/Admin/Admin.php:
|
471 |
msgid "Dismiss"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: src/Admin/Admin.php:
|
475 |
msgid "Remind me later"
|
476 |
msgstr ""
|
477 |
|
@@ -541,14 +551,30 @@ msgid ""
|
|
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 ""
|
@@ -810,38 +836,38 @@ msgstr ""
|
|
810 |
msgid "A highly customizable block that displays your most popular posts."
|
811 |
msgstr ""
|
812 |
|
813 |
-
#: src/Output.php:
|
814 |
msgid "Sorry. No data so far."
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: src/Output.php:
|
818 |
#, php-format
|
819 |
msgid "%s ago"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: src/Output.php:
|
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:
|
830 |
#, php-format
|
831 |
msgid "by %s"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: src/Output.php:
|
835 |
#, php-format
|
836 |
msgid "posted %s"
|
837 |
msgstr ""
|
838 |
|
839 |
-
#: src/Output.php:
|
840 |
#, php-format
|
841 |
msgid "posted on %s"
|
842 |
msgstr ""
|
843 |
|
844 |
-
#: src/Output.php:
|
845 |
#, php-format
|
846 |
msgid "under %s"
|
847 |
msgstr ""
|
@@ -926,10 +952,6 @@ msgstr ""
|
|
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)"
|
@@ -951,10 +973,6 @@ msgstr ""
|
|
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 ""
|
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: 2022-01-11 12:42-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"
|
29 |
msgid "Preview"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/Admin.php:1141
|
33 |
#: src/Block/Widget/edit.js:125
|
34 |
msgid "Edit"
|
35 |
msgstr ""
|
54 |
msgid "Total views"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:190
|
58 |
+
#: src/Widget/form.php:23
|
59 |
+
msgid "Avg. daily views"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/Admin.php:767
|
63 |
+
#: src/Block/Widget/edit.js:191 src/Widget/form.php:21
|
64 |
msgid "Comments"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:196
|
68 |
#: src/Widget/form.php:32
|
69 |
msgid "Time Range"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:199
|
73 |
msgid "Last 24 Hours"
|
74 |
msgstr ""
|
75 |
|
76 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:198
|
77 |
+
#: src/Block/Widget/edit.js:200 src/Widget/form.php:35
|
78 |
msgid "Last 7 days"
|
79 |
msgstr ""
|
80 |
|
81 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:199
|
82 |
+
#: src/Block/Widget/edit.js:201 src/Widget/form.php:36
|
83 |
msgid "Last 30 days"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:202
|
87 |
#: src/Widget/form.php:37
|
88 |
msgid "All-time"
|
89 |
msgstr ""
|
90 |
|
91 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:200
|
92 |
+
#: src/Block/Widget/edit.js:203 src/Widget/form.php:38
|
93 |
msgid "Custom"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:210
|
97 |
msgid "Time Quantity"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:215
|
101 |
msgid "Time Unit"
|
102 |
msgstr ""
|
103 |
|
104 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:169
|
105 |
+
#: src/Admin/admin-page.php:416 src/Block/Widget/edit.js:218 src/Widget/form.php:45
|
106 |
msgid "Minute(s)"
|
107 |
msgstr ""
|
108 |
|
109 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:170
|
110 |
+
#: src/Admin/admin-page.php:417 src/Block/Widget/edit.js:219 src/Widget/form.php:46
|
111 |
msgid "Hour(s)"
|
112 |
msgstr ""
|
113 |
|
114 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:171
|
115 |
+
#: src/Admin/admin-page.php:418 src/Block/Widget/edit.js:220 src/Widget/form.php:47
|
116 |
msgid "Day(s)"
|
117 |
msgstr ""
|
118 |
|
119 |
#: assets/js/blocks/block-wpp-widget.js:1 src/Admin/admin-page.php:145
|
120 |
+
#: src/Block/Widget/edit.js:227 src/Widget/form.php:52
|
121 |
msgid "Display only posts published within the selected Time Range"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:328
|
125 |
#: src/Widget/form.php:30
|
126 |
msgid "Filters"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:330
|
130 |
#: src/Widget/form.php:54
|
131 |
msgid "Post type(s)"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:331
|
135 |
msgid "Post types must be comma separated."
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:336
|
139 |
#: src/Widget/form.php:57
|
140 |
msgid "Post ID(s) to exclude"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:337
|
144 |
+
#: src/Block/Widget/edit.js:343
|
145 |
msgid "IDs must be comma separated."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:342
|
149 |
#: src/Widget/form.php:88
|
150 |
msgid "Author ID(s)"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:352
|
154 |
msgid "Term IDs must be comma separated, prefix a minus sign to exclude."
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:443
|
158 |
#: src/Widget/form.php:94
|
159 |
msgid "Posts settings"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:445
|
163 |
#: src/Widget/form.php:101
|
164 |
msgid "Shorten title"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:452
|
168 |
#: src/Widget/form.php:104
|
169 |
msgid "Shorten title to"
|
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:105 src/Widget/form.php:115
|
174 |
msgid "characters"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:460
|
178 |
+
#: src/Block/Widget/edit.js:487 src/Widget/form.php:106 src/Widget/form.php:116
|
179 |
msgid "words"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:467
|
183 |
#: src/Widget/form.php:109
|
184 |
msgid "Display post excerpt"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:474
|
188 |
#: src/Widget/form.php:112
|
189 |
msgid "Keep text format and links"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:479
|
193 |
#: src/Widget/form.php:113
|
194 |
msgid "Excerpt length"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:494
|
198 |
#: src/Widget/form.php:119
|
199 |
msgid "Display post thumbnail"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:503
|
203 |
#: src/Widget/form.php:134
|
204 |
msgid "Set size manually"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:504
|
208 |
#: src/Widget/form.php:122
|
209 |
msgid "Use predefined size"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:511
|
213 |
msgid "Thumbnail width"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:512
|
217 |
+
#: src/Block/Widget/edit.js:518
|
218 |
msgid "Size in px units (pixels)"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:517
|
222 |
msgid "Thumbnail height"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:556
|
226 |
#: src/Widget/form.php:146
|
227 |
msgid "Stats Tag settings"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:558
|
231 |
msgid "Display comments count"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:563
|
235 |
#: src/Widget/form.php:150
|
236 |
msgid "Display views"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:568
|
240 |
#: src/Widget/form.php:152
|
241 |
msgid "Display author"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:573
|
245 |
#: src/Widget/form.php:154
|
246 |
msgid "Display date"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:580
|
250 |
#: src/Widget/form.php:157
|
251 |
msgid "Date Format"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:583
|
255 |
#: src/Widget/form.php:159
|
256 |
msgid "Relative"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:584
|
260 |
msgid "Month Day, Year"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:585
|
264 |
msgid "yyyy/mm/dd"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:586
|
268 |
msgid "mm/dd/yyyy"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:587
|
272 |
msgid "dd/mm/yyyy"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:588
|
276 |
+
#: src/Widget/form.php:160
|
277 |
+
msgid "WordPress Date Format"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:595
|
281 |
#: src/Widget/form.php:167
|
282 |
msgid "Display taxonomy"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:602
|
286 |
#: src/Widget/form.php:60
|
287 |
msgid "Taxonomy"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:654
|
291 |
#: src/Widget/form.php:226
|
292 |
msgid "None"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:671
|
296 |
#: src/Widget/form.php:188
|
297 |
msgid "HTML Markup settings"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:673
|
301 |
#: src/Widget/form.php:190
|
302 |
msgid "Use custom HTML Markup"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:681
|
306 |
msgid "Before title"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:687
|
310 |
msgid "After title"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:693
|
314 |
msgid "Before popular posts"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:699
|
318 |
msgid "After popular posts"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:704
|
322 |
msgid "Post HTML markup"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: assets/js/blocks/block-wpp-widget.js:1 src/Block/Widget/edit.js:711
|
326 |
#: src/Widget/form.php:218
|
327 |
msgid "Theme"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: src/Admin/Admin.php:373
|
331 |
#, php-format
|
332 |
msgid "%s view in the last hour"
|
333 |
msgid_plural "%s views in the last hour"
|
334 |
msgstr[0] ""
|
335 |
msgstr[1] ""
|
336 |
|
337 |
+
#: src/Admin/Admin.php:407 src/Admin/admin-page.php:215
|
338 |
msgid "Trending now"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: src/Admin/Admin.php:495
|
342 |
msgid "View more"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: src/Admin/Admin.php:524
|
346 |
msgid "Use this image"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: src/Admin/Admin.php:528
|
350 |
msgid ""
|
351 |
"This operation will delete all entries from WordPress Popular Posts' cache table and "
|
352 |
"cannot be undone."
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: src/Admin/Admin.php:529
|
356 |
msgid "Success! The cache table has been cleared!"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: src/Admin/Admin.php:530
|
360 |
msgid "Error: cache table does not exist."
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: src/Admin/Admin.php:531
|
364 |
msgid ""
|
365 |
"This operation will delete all stored info from WordPress Popular Posts' data tables "
|
366 |
"and cannot be undone."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: src/Admin/Admin.php:532
|
370 |
msgid "Success! All data have been cleared!"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: src/Admin/Admin.php:533
|
374 |
msgid "Error: one or both data tables are missing."
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: src/Admin/Admin.php:534
|
378 |
msgid "This operation will delete all cached thumbnails and cannot be undone."
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: src/Admin/Admin.php:535
|
382 |
msgid "Success! All files have been deleted!"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: src/Admin/Admin.php:536
|
386 |
msgid "The thumbnail cache is already empty!"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: src/Admin/Admin.php:537
|
390 |
msgid "Do you want to continue?"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: src/Admin/Admin.php:538
|
394 |
msgid ""
|
395 |
"Sorry, you do not have enough permissions to do this. Please contact the site "
|
396 |
"administrator for support."
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: src/Admin/Admin.php:539
|
400 |
msgid "Invalid action."
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: src/Admin/Admin.php:618
|
404 |
msgid "Overview"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: src/Admin/Admin.php:619
|
408 |
msgid ""
|
409 |
"Welcome to WordPress Popular Posts' Dashboard! In this screen you will find statistics "
|
410 |
"on what's popular on your site, tools to further tweak WPP to your needs, and more!"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: src/Admin/Admin.php:625
|
414 |
msgid "Like this plugin?"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: src/Admin/Admin.php:627
|
418 |
msgid ""
|
419 |
"Each donation motivates me to keep releasing free stuff for the WordPress community!"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: src/Admin/Admin.php:634
|
423 |
#, php-format
|
424 |
msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: src/Admin/Admin.php:641
|
428 |
#, php-format
|
429 |
msgid ""
|
430 |
"<p><strong>For more information:</strong></p><ul><li><a href=\"%1$s\">Documentation</"
|
431 |
"a></li><li><a href=\"%2$s\">Support</a></li></ul>"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: src/Admin/Admin.php:667
|
435 |
msgid "Settings"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: src/Admin/Admin.php:668
|
439 |
msgid "Support"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: src/Admin/Admin.php:746 src/Admin/Admin.php:1135 src/Admin/Admin.php:1139
|
443 |
+
#: src/Output.php:788
|
444 |
#, php-format
|
445 |
msgid "%s view"
|
446 |
msgid_plural "%s views"
|
447 |
msgstr[0] ""
|
448 |
msgstr[1] ""
|
449 |
|
450 |
+
#: src/Admin/Admin.php:746 src/Admin/Admin.php:1137 src/Admin/Admin.php:1139
|
451 |
+
#: src/Output.php:771
|
452 |
#, php-format
|
453 |
msgid "%s comment"
|
454 |
msgid_plural "%s comments"
|
455 |
msgstr[0] ""
|
456 |
msgstr[1] ""
|
457 |
|
458 |
+
#: src/Admin/Admin.php:771
|
459 |
msgid "Views"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: src/Admin/Admin.php:1141
|
463 |
msgid "View"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: src/Admin/Admin.php:1152
|
467 |
msgid ""
|
468 |
"Looks like your site's activity is a little low right now. <br />Spread the word and "
|
469 |
"come back later!"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: src/Admin/Admin.php:1410
|
473 |
#, php-format
|
474 |
msgid ""
|
475 |
"<strong>WordPress Popular Posts:</strong> It seems your site is popular (great!) You "
|
477 |
"performance stays up to par."
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: src/Admin/Admin.php:1414
|
481 |
msgid "Dismiss"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: src/Admin/Admin.php:1414
|
485 |
msgid "Remind me later"
|
486 |
msgstr ""
|
487 |
|
551 |
"browser</a>."
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: src/Admin/admin-page.php:213
|
555 |
+
msgid "See your most viewed posts within the selected time range"
|
556 |
+
msgstr ""
|
557 |
+
|
558 |
#: src/Admin/admin-page.php:213
|
559 |
msgid "Most viewed"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: src/Admin/admin-page.php:214
|
563 |
+
msgid "See your most commented posts within the selected time range"
|
564 |
+
msgstr ""
|
565 |
+
|
566 |
#: src/Admin/admin-page.php:214
|
567 |
msgid "Most commented"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: src/Admin/admin-page.php:215
|
571 |
+
msgid "See your most viewed posts within the last hour"
|
572 |
+
msgstr ""
|
573 |
+
|
574 |
+
#: src/Admin/admin-page.php:216
|
575 |
+
msgid "See your most viewed posts of all time"
|
576 |
+
msgstr ""
|
577 |
+
|
578 |
#: src/Admin/admin-page.php:216
|
579 |
msgid "Hall of Fame"
|
580 |
msgstr ""
|
836 |
msgid "A highly customizable block that displays your most popular posts."
|
837 |
msgstr ""
|
838 |
|
839 |
+
#: src/Output.php:258
|
840 |
msgid "Sorry. No data so far."
|
841 |
msgstr ""
|
842 |
|
843 |
+
#: src/Output.php:609
|
844 |
#, php-format
|
845 |
msgid "%s ago"
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: src/Output.php:782
|
849 |
#, php-format
|
850 |
msgid "%s view per day"
|
851 |
msgid_plural "%s views per day"
|
852 |
msgstr[0] ""
|
853 |
msgstr[1] ""
|
854 |
|
855 |
+
#: src/Output.php:800
|
856 |
#, php-format
|
857 |
msgid "by %s"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: src/Output.php:805
|
861 |
#, php-format
|
862 |
msgid "posted %s"
|
863 |
msgstr ""
|
864 |
|
865 |
+
#: src/Output.php:805
|
866 |
#, php-format
|
867 |
msgid "posted on %s"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: src/Output.php:810
|
871 |
#, php-format
|
872 |
msgid "under %s"
|
873 |
msgstr ""
|
952 |
msgid "posts"
|
953 |
msgstr ""
|
954 |
|
|
|
|
|
|
|
|
|
955 |
#: src/Widget/form.php:82
|
956 |
#, php-format
|
957 |
msgid "%s IDs, separated by comma (prefix a minus sign to exclude)"
|
973 |
msgid "Display comment count"
|
974 |
msgstr ""
|
975 |
|
|
|
|
|
|
|
|
|
976 |
#: src/Widget/form.php:205
|
977 |
msgid "Before / after title"
|
978 |
msgstr ""
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: hcabrera
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabrerab%40gmail%2ecom&lc=GB&item_name=WordPress%20Popular%20Posts%20Plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 4.9
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 5.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -36,6 +36,18 @@ WordPress Popular Posts is a highly customizable widget that displays your most
|
|
36 |
* **Localization** - [Translate WPP into your own language](https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#i-want-to-translate-your-plugin-into-my-language--help-you-update-a-translation-what-do-i-need-to-do).
|
37 |
* **[WP-PostRatings](https://wordpress.org/plugins/wp-postratings/) support** - Show your visitors how your readers are rating your posts!
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
= Support the Project! =
|
40 |
|
41 |
If you'd like to support my work and efforts to creating and maintaining more open source projects your donations and messages of support mean a lot!
|
@@ -97,6 +109,17 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 5.5.0 =
|
101 |
|
102 |
- Adds the Sort by Average Daily Views option from the classic widget to the WordPress Popular Posts block.
|
@@ -146,5 +169,5 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
146 |
* Flame graphic by freevector/Vecteezy.com.
|
147 |
|
148 |
== Upgrade Notice ==
|
149 |
-
= 5.
|
150 |
If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabrerab%40gmail%2ecom&lc=GB&item_name=WordPress%20Popular%20Posts%20Plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 4.9
|
6 |
+
Tested up to: 5.9
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 5.5.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
36 |
* **Localization** - [Translate WPP into your own language](https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#i-want-to-translate-your-plugin-into-my-language--help-you-update-a-translation-what-do-i-need-to-do).
|
37 |
* **[WP-PostRatings](https://wordpress.org/plugins/wp-postratings/) support** - Show your visitors how your readers are rating your posts!
|
38 |
|
39 |
+
= PSA: do not use the classic WordPress Popular Posts widget with the new Widgets screen! =
|
40 |
+
|
41 |
+
The classic WordPress Popular Posts widget doesn't work very well / at all with the new Widgets screen introduced with WordPress 5.8.
|
42 |
+
|
43 |
+
This new Widgets screen expects WordPress blocks instead of regular WordPress widgets. If you're using the WordPress Popular Posts widget on your block-based Widgets screen please consider replacing it with the [WordPress Popular Posts block](https://cabrerahector.com/wordpress/wordpress-popular-posts-5-3-improved-php-8-support-retina-display-support-and-more/#block-editor-support) instead - it has the same features as the "classic" widget and will likely end up replacing it entirely in the future.
|
44 |
+
|
45 |
+
Bjorn from wplearninglab.com was kind enough to create a video explaining how to use the new block for all of you visual learners:
|
46 |
+
|
47 |
+
[youtube https://www.youtube.com/watch?v=mtzk6yNEaFs]
|
48 |
+
|
49 |
+
If for some reason you prefer using the "classic" WordPress Popular Posts widget with WordPress 5.8 and beyond please install the [Classic Widgets](https://wordpress.org/plugins/classic-widgets/) plugin.
|
50 |
+
|
51 |
= Support the Project! =
|
52 |
|
53 |
If you'd like to support my work and efforts to creating and maintaining more open source projects your donations and messages of support mean a lot!
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 5.5.1 =
|
113 |
+
|
114 |
+
**If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.**
|
115 |
+
|
116 |
+
- Fixes an issue where the WordPress Popular Posts block would, under specific conditions, output code that may break the page layout (thanks @shoelaced and @themosaurus for the report!)
|
117 |
+
- Fixes minor variable declaration bug in wpp.js.min.
|
118 |
+
- Cleans up inline style tag (thanks @gabu69 and Lohen Florent for the suggestions!)
|
119 |
+
- Other minor fixes & changes.
|
120 |
+
|
121 |
+
[Release notes](https://cabrerahector.com/wordpress/wordpress-popular-posts-5-5-qol-improvements-and-php-5-announcement/#minor-updates-and-hotfixes)
|
122 |
+
|
123 |
= 5.5.0 =
|
124 |
|
125 |
- Adds the Sort by Average Daily Views option from the classic widget to the WordPress Popular Posts block.
|
169 |
* Flame graphic by freevector/Vecteezy.com.
|
170 |
|
171 |
== Upgrade Notice ==
|
172 |
+
= 5.5.1 =
|
173 |
If you're using a caching plugin flushing its cache after upgrading to this version is highly recommended.
|
src/Admin/admin-page.php
CHANGED
@@ -210,10 +210,10 @@ if ( isset($_POST['section']) ) {
|
|
210 |
|
211 |
<div id="wpp-listing" class="wpp-content"<?php echo ('stats' == $current ) ? '' : ' style="display: none;"'; ?>>
|
212 |
<ul class="wpp-tabbed-nav">
|
213 |
-
<li class="active"><a href="#" title="<?php esc_attr_e('
|
214 |
-
<li><a href="#" title="<?php esc_attr_e('
|
215 |
-
<li><a href="#" title="<?php esc_attr_e('
|
216 |
-
<li><a href="#" title="<?php esc_attr_e('
|
217 |
</ul>
|
218 |
|
219 |
<div class="wpp-tab-content wpp-tab-content-active">
|
210 |
|
211 |
<div id="wpp-listing" class="wpp-content"<?php echo ('stats' == $current ) ? '' : ' style="display: none;"'; ?>>
|
212 |
<ul class="wpp-tabbed-nav">
|
213 |
+
<li class="active"><a href="#" title="<?php esc_attr_e('See your most viewed posts within the selected time range', 'wordpress-popular-posts'); ?>"><span class="wpp-icon-eye"></span><span><?php _e('Most viewed', 'wordpress-popular-posts'); ?></span></a></li>
|
214 |
+
<li><a href="#" title="<?php esc_attr_e('See your most commented posts within the selected time range', 'wordpress-popular-posts'); ?>"><span class="wpp-icon-comment"></span><span><?php _e('Most commented', 'wordpress-popular-posts'); ?></span></a></li>
|
215 |
+
<li><a href="#" title="<?php esc_attr_e('See your most viewed posts within the last hour', 'wordpress-popular-posts'); ?>"><span class="wpp-icon-rocket"></span><span><?php _e('Trending now', 'wordpress-popular-posts'); ?></span></a></li>
|
216 |
+
<li><a href="#" title="<?php esc_attr_e('See your most viewed posts of all time', 'wordpress-popular-posts'); ?>"><span class="wpp-icon-award"></span><span><?php _e('Hall of Fame', 'wordpress-popular-posts'); ?></span></a></li>
|
217 |
</ul>
|
218 |
|
219 |
<div class="wpp-tab-content wpp-tab-content-active">
|
src/Block/Widget/Widget.php
CHANGED
@@ -457,7 +457,7 @@ class Widget extends Block
|
|
457 |
$html .= '<script type="application/json">' . json_encode($query_args) . '</script>';
|
458 |
$html .= '<div class="wpp-widget-block-placeholder"></div>';
|
459 |
|
460 |
-
return $html;
|
461 |
}
|
462 |
|
463 |
// Return cached results
|
457 |
$html .= '<script type="application/json">' . json_encode($query_args) . '</script>';
|
458 |
$html .= '<div class="wpp-widget-block-placeholder"></div>';
|
459 |
|
460 |
+
return $html . '</div>';
|
461 |
}
|
462 |
|
463 |
// Return cached results
|
src/Front/Front.php
CHANGED
@@ -71,44 +71,19 @@ class Front {
|
|
71 |
}
|
72 |
|
73 |
/**
|
74 |
-
*
|
|
|
|
|
75 |
*/
|
76 |
public function inline_loading_css()
|
77 |
{
|
78 |
-
|
79 |
-
<style>
|
80 |
-
@-webkit-keyframes bgslide {
|
81 |
-
from {
|
82 |
-
background-position-x: 0;
|
83 |
-
}
|
84 |
-
to {
|
85 |
-
background-position-x: -200%;
|
86 |
-
}
|
87 |
-
}
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
background-position-x: -200%;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
.wpp-widget-placeholder {
|
99 |
-
margin: 0 auto;
|
100 |
-
width: 60px;
|
101 |
-
height: 3px;
|
102 |
-
background: #dd3737;
|
103 |
-
background: -webkit-gradient(linear, left top, right top, from(#dd3737), color-stop(10%, #571313), to(#dd3737));
|
104 |
-
background: linear-gradient(90deg, #dd3737 0%, #571313 10%, #dd3737 100%);
|
105 |
-
background-size: 200% auto;
|
106 |
-
border-radius: 3px;
|
107 |
-
-webkit-animation: bgslide 1s infinite linear;
|
108 |
-
animation: bgslide 1s infinite linear;
|
109 |
-
}
|
110 |
-
</style>
|
111 |
-
<?php
|
112 |
}
|
113 |
|
114 |
/**
|
71 |
}
|
72 |
|
73 |
/**
|
74 |
+
* Inserts CSS related to the loading animation into <head>
|
75 |
+
*
|
76 |
+
* @since 5.3.0
|
77 |
*/
|
78 |
public function inline_loading_css()
|
79 |
{
|
80 |
+
$wpp_insert_loading_animation_styles = apply_filters('wpp_insert_loading_animation_styles', true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
+
if ( $wpp_insert_loading_animation_styles ) :
|
83 |
+
?>
|
84 |
+
<style id="wpp-loading-animation-styles">@-webkit-keyframes bgslide{from{background-position-x:0}to{background-position-x:-200%}}@keyframes bgslide{from{background-position-x:0}to{background-position-x:-200%}}.wpp-widget-placeholder,.wpp-widget-block-placeholder{margin:0 auto;width:60px;height:3px;background:#dd3737;background:linear-gradient(90deg,#dd3737 0%,#571313 10%,#dd3737 100%);background-size:200% auto;border-radius:3px;-webkit-animation:bgslide 1s infinite linear;animation:bgslide 1s infinite linear}</style>
|
85 |
+
<?php
|
86 |
+
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
|
89 |
/**
|
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.5.
|
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.5.
|
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.5.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.5.1');
|
33 |
define('WPP_MIN_PHP_VERSION', '5.4');
|
34 |
define('WPP_MIN_WP_VERSION', '4.9');
|
35 |
|