WordPress Popular Posts - Version 3.0.0

Version Description

  • Plugin refactoring based on @tikaszvince's work (many thanks, Vince!).
  • Added WPML support.
  • Added experimental Wordpress Multisite support.
  • Added bot detection.
  • Added ability to filter posts by freshness.
  • Added own data caching method.
  • Added filters wpp_custom_html, wpp_post.
  • Added action wpp_update_views.
  • Dropped support on Dutch and Persian languages since the translations were outdated.
  • Several other fixes and improvements.
Download this release

Release Info

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

Code changes from version 2.3.7 to 3.0.0

admin.php DELETED
@@ -1,993 +0,0 @@
1
- <?php
2
- if (basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__)) exit('Please do not load this page directly');
3
-
4
- /**
5
- * Merges two associative arrays recursively
6
- * array_merge_recursive_distinct(array('key' => 'org value'), array('key' => 'new value'));
7
- * => array('key' => array('new value'));
8
- * Source: http://www.php.net/manual/en/function.array-merge-recursive.php#92195
9
- * Since 2.3.4
10
- */
11
- function array_merge_recursive_distinct( array &$array1, array &$array2 ) {
12
- $merged = $array1;
13
-
14
- foreach ( $array2 as $key => &$value ) {
15
- if ( is_array( $value ) && isset ( $merged[$key] ) && is_array( $merged[$key] ) ) {
16
- $merged[$key] = array_merge_recursive_distinct ( $merged[$key], $value );
17
- } else {
18
- $merged[$key] = $value;
19
- }
20
- }
21
-
22
- return $merged;
23
- }
24
-
25
- $wpp_settings_def = array(
26
- 'stats' => array(
27
- 'order_by' => 'views',
28
- 'limit' => 10,
29
- 'post_type' => 'post,page'
30
- ),
31
- 'tools' => array(
32
- 'ajax' => false,
33
- 'css' => true,
34
- 'stylesheet' => true,
35
- 'link' => array(
36
- 'target' => '_self'
37
- ),
38
- 'thumbnail' => array(
39
- 'source' => 'featured',
40
- 'field' => '_wpp_thumbnail',
41
- 'resize' => false,
42
- 'default' => ''
43
- ),
44
- 'log_loggedin' => false,
45
- 'cache' => array(
46
- 'active' => false,
47
- 'interval' => array(
48
- 'time' => 'hour',
49
- 'value' => 1
50
- )
51
- )
52
- )
53
- );
54
-
55
- $ops = get_option('wpp_settings_config');
56
- if ( !$ops ) {
57
- add_option('wpp_settings_config', $wpp_settings_def);
58
- $ops = $wpp_settings_def;
59
- } else {
60
- $ops = array_merge_recursive_distinct( $wpp_settings_def, $ops );
61
- }
62
-
63
- if ( isset($_POST['section']) ) {
64
- if ($_POST['section'] == "stats") {
65
- $ops['stats']['order_by'] = $_POST['stats_order'];
66
- $ops['stats']['limit'] = (is_numeric($_POST['stats_limit']) && $_POST['stats_limit'] > 0) ? $_POST['stats_limit'] : 10;
67
- $ops['stats']['post_type'] = empty($_POST['stats_type']) ? "post,page" : $_POST['stats_type'];
68
-
69
- update_option('wpp_settings_config', $ops);
70
- echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
71
-
72
- } else if ($_POST['section'] == "linking") {
73
-
74
- $ops['tools']['link']['target'] = $_POST['link_target'];
75
- update_option('wpp_settings_config', $ops);
76
- echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
77
-
78
- }else if ($_POST['section'] == "logging") {
79
-
80
- $ops['tools']['log_loggedin'] = $_POST['log_option'];
81
- update_option('wpp_settings_config', $ops);
82
- echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
83
-
84
- } else if ($_POST['section'] == "tools") {
85
-
86
- if ($_POST['thumb_source'] == "custom_field" && (!isset($_POST['thumb_field']) || empty($_POST['thumb_field']))) {
87
- echo '<div id="wpp-message" class="error fade"><p>'.__('Please provide the name of your custom field.', 'wordpress-popular-posts').'</p></div>';
88
- } else {
89
- $ops['tools']['thumbnail']['source'] = $_POST['thumb_source'];
90
- $ops['tools']['thumbnail']['field'] = ( !empty( $_POST['thumb_field']) ) ? $_POST['thumb_field'] : "_wpp_thumbnail";
91
- $ops['tools']['thumbnail']['default'] = ( !empty( $_POST['upload_thumb_src']) ) ? $_POST['upload_thumb_src'] : "";
92
- $ops['tools']['thumbnail']['resize'] = $_POST['thumb_field_resize'];
93
-
94
- update_option('wpp_settings_config', $ops);
95
- echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
96
- }
97
- } else if ($_POST['section'] == "ajax") {
98
-
99
- $ops['tools']['ajax'] = $_POST['ajax'];
100
-
101
- $ops['tools']['cache']['active'] = $_POST['cache'];
102
- $ops['tools']['cache']['interval']['time'] = $_POST['cache_interval_time'];
103
- $ops['tools']['cache']['interval']['value'] = $_POST['cache_interval_value'];
104
-
105
- update_option('wpp_settings_config', $ops);
106
- echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
107
-
108
- } else if ($_POST['section'] == "css") {
109
- $ops['tools']['css'] = $_POST['css'];
110
-
111
- //print_r($ops);
112
-
113
- update_option('wpp_settings_config', $ops);
114
- echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', 'wordpress-popular-posts' ) . "</strong></p></div>";
115
- }
116
- }
117
-
118
- $rand = md5(uniqid(rand(), true));
119
- $wpp_rand = get_option("wpp_rand");
120
- if (empty($wpp_rand)) {
121
- add_option("wpp_rand", $rand);
122
- } else {
123
- update_option("wpp_rand", $rand);
124
- }
125
-
126
- ?>
127
-
128
-
129
- <style>
130
- #wmpp-title {
131
- color:#666;
132
- font-family:Georgia, "Times New Roman", Times, serif;
133
- font-weight:100;
134
- font-size:24px;
135
- font-style:italic;
136
- }
137
-
138
- .wmpp-subtitle {
139
- margin:8px 0 15px 0;
140
- color:#666;
141
- font-family:Georgia, "Times New Roman", Times, serif;
142
- font-size:16px;
143
- font-weight:100;
144
- }
145
-
146
- .wpp_boxes {
147
- display:none;
148
- overflow:hidden;
149
- width:100%;
150
- }
151
-
152
- #wpp-options {
153
- width:100%;
154
- }
155
-
156
- #wpp-options fieldset {
157
- margin:0 0 15px 0;
158
- width:99%;
159
- }
160
-
161
- #wpp-options fieldset legend { font-weight:bold; }
162
-
163
- #wpp-options fieldset .lbl_wpp_stats {
164
- display:block;
165
- margin:0 0 8px 0;
166
- }
167
-
168
- #wpp-stats-tabs {
169
- padding:2px 0;
170
- }
171
-
172
- #wpp-stats-canvas {
173
- overflow:hidden;
174
- padding:2px 0;
175
- width:100%;
176
- }
177
-
178
- .wpp-stats {
179
- display:none;
180
- width:96%px;
181
- padding:1% 0;
182
- font-size:8px;
183
- background:#fff;
184
- border:#999 3px solid;
185
- }
186
-
187
- .wpp-stats-active {
188
- display:block;
189
- }
190
-
191
- .wpp-stats ol {
192
- margin:0;
193
- padding:0;
194
- }
195
-
196
- .wpp-stats ol li {
197
- overflow:hidden;
198
- margin:0 8px 10px 8px!important;
199
- padding:0 0 2px 0!important;
200
- font-size:12px;
201
- line-height:12px;
202
- color:#999;
203
- border-bottom:#eee 1px solid;
204
- }
205
-
206
- .wpp-post-title {
207
- /*display:block;*/
208
- display:inline;
209
- float:left;
210
- font-weight:bold;
211
- }
212
-
213
- .post-stats {
214
- display:inline;
215
- float:right;
216
- font-size:0.9em!important;
217
- text-align:right;
218
- color:#999;
219
- }
220
-
221
- .wpp-stats-unique-item, .wpp-stats-last-item {
222
- margin:0!important;
223
- padding:0!important;
224
- border:none!important;
225
- }
226
- /**/
227
- .wpp-stats p {
228
- margin:0;
229
- padding:0 8px;
230
- font-size:12px;
231
- }
232
-
233
- .wp-list-table h4 {
234
- margin:0 0 0 0;
235
- }
236
-
237
- .wpp-ans {
238
- display:none;
239
- width:100%;
240
- }
241
-
242
- .wpp-ans p {
243
- margin:0 0 0 0;
244
- padding:0;
245
- }
246
-
247
- </style>
248
-
249
- <script type="text/javascript">
250
- jQuery(document).ready(function(){
251
-
252
- // TABS
253
- jQuery(".subsubsub li a").click(function(e){
254
- var tab = jQuery(this);
255
- tab.addClass("current").parent().siblings().children("a").removeClass("current");
256
-
257
- jQuery(".wpp_boxes:visible").hide();
258
- jQuery("#" + tab.attr("rel")).fadeIn();
259
-
260
- e.preventDefault();
261
- });
262
-
263
- // STATISTICS TABS
264
- jQuery("#wpp-stats-tabs a").click(function(e){
265
- var activeTab = jQuery(this).attr("rel");
266
- jQuery(this).removeClass("button-secondary").addClass("button-primary").siblings().removeClass("button-primary").addClass("button-secondary");
267
- jQuery(".wpp-stats:visible").fadeOut("fast", function(){
268
- jQuery("#"+activeTab).slideDown("fast");
269
- });
270
-
271
- e.preventDefault();
272
- });
273
-
274
- jQuery(".wpp-stats").each(function(){
275
- if (jQuery("li", this).length == 1) {
276
- jQuery("li", this).addClass("wpp-stats-last-item");
277
- } else {
278
- jQuery("li:last", this).addClass("wpp-stats-last-item");
279
- }
280
- });
281
-
282
- // FAQ
283
- jQuery(".wp-list-table a").click(function(e){
284
- var ans = jQuery(this).attr("rel");
285
-
286
- jQuery(".wpp-ans:visible").hide();
287
- //jQuery("#"+ans).slideToggle();
288
- jQuery("#"+ans).show();
289
-
290
- e.preventDefault();
291
- });
292
-
293
- // TOOLS
294
- // thumb source selection
295
- jQuery("#thumb_source").change(function() {
296
- if (jQuery(this).val() == "custom_field") {
297
- jQuery("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").show();
298
- } else {
299
- jQuery("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").hide();
300
- }
301
- });
302
- // cache interval
303
- jQuery("#cache").change(function() {
304
- if (jQuery(this).val() == 1) {
305
- jQuery("#cache_refresh_interval").show();
306
- } else {
307
- jQuery("#cache_refresh_interval, #cache_too_long").hide();
308
- }
309
- });
310
- // interval
311
- jQuery("#cache_interval_time").change(function() {
312
- var value = parseInt( jQuery("#cache_interval_value").val() );
313
- var time = jQuery(this).val();
314
-
315
- console.log(time + " " + value);
316
-
317
- if ( time == "hour" && value > 72 ) {
318
- jQuery("#cache_too_long").show();
319
- } else if ( time == "day" && value > 3 ) {
320
- jQuery("#cache_too_long").show();
321
- } else if ( time == "week" && value > 1 ) {
322
- jQuery("#cache_too_long").show();
323
- } else if ( time == "month" && value >= 1 ) {
324
- jQuery("#cache_too_long").show();
325
- } else if ( time == "year" && value >= 1 ) {
326
- jQuery("#cache_too_long").show();
327
- } else {
328
- jQuery("#cache_too_long").hide();
329
- }
330
- });
331
-
332
- jQuery("#cache_interval_value").change(function() {
333
- var value = parseInt( jQuery(this).val() );
334
- var time = jQuery("#cache_interval_time").val();
335
-
336
- if ( time == "hour" && value > 72 ) {
337
- jQuery("#cache_too_long").show();
338
- } else if ( time == "day" && value > 3 ) {
339
- jQuery("#cache_too_long").show();
340
- } else if ( time == "week" && value > 1 ) {
341
- jQuery("#cache_too_long").show();
342
- } else if ( time == "month" && value >= 1 ) {
343
- jQuery("#cache_too_long").show();
344
- } else if ( time == "year" && value >= 1 ) {
345
- jQuery("#cache_too_long").show();
346
- } else {
347
- jQuery("#cache_too_long").hide();
348
- }
349
- });
350
-
351
- });
352
-
353
- // TOOLS
354
- function confirm_reset_cache() {
355
- if (confirm("<?php _e("This operation will delete all entries from Wordpress Popular Posts' cache table and cannot be undone.", "wordpress-popular-posts"); ?> \n" + "<?php _e("Do you want to continue?", "wordpress-popular-posts"); ?>")) {
356
- jQuery.post(ajaxurl, {action: 'wpp_clear_cache', token: '<?php echo get_option("wpp_rand"); ?>', clear: 'cache'}, function(data){
357
- alert(data);
358
- });
359
- }
360
- }
361
-
362
- function confirm_reset_all() {
363
- if (confirm("<?php _e("This operation will delete all stored info from Wordpress Popular Posts' data tables and cannot be undone.", "wordpress-popular-posts"); ?> \n" + "<?php _e("Do you want to continue?", "wordpress-popular-posts"); ?>")) {
364
- jQuery.post(ajaxurl, {action: 'wpp_clear_all', token: '<?php echo get_option("wpp_rand"); ?>', clear: 'all'}, function(data){
365
- alert(data);
366
- });
367
- }
368
- }
369
-
370
- </script>
371
-
372
- <div class="wrap">
373
- <div id="icon-options-general" class="icon32"><br /></div>
374
- <h2 id="wmpp-title">Wordpress Popular Posts</h2>
375
-
376
- <ul class="subsubsub">
377
- <li id="btn_stats"><a href="#" <?php if (!isset($_POST['section']) || (isset($_POST['section']) && $_POST['section'] == "stats") ) {?>class="current"<?php } ?> rel="wpp_stats"><?php _e("Stats", "wordpress-popular-posts"); ?></a> |</li>
378
- <li id="btn_faq"><a href="#" rel="wpp_faq"><?php _e("FAQ", "wordpress-popular-posts"); ?></a> |</li>
379
- <li id="btn_tools"><a href="#" rel="wpp_tools"<?php if (isset($_POST['section']) && ($_POST['section'] == "logging" || $_POST['section'] == "tools" || $_POST['section'] == "ajax" || $_POST['section'] == "css") ) {?> class="current"<?php } ?>><?php _e("Tools", "wordpress-popular-posts"); ?></a></li>
380
- </ul>
381
- <!-- Start stats -->
382
- <div id="wpp_stats" class="wpp_boxes"<?php if (!isset($_POST['section']) || (isset($_POST['section']) && $_POST['section'] == "stats") ) {?> style="display:block;"<?php } ?>>
383
- <p><?php _e("Click on each tab to see what are the most popular entries on your blog in the last 24 hours, this week, last 30 days or all time since Wordpress Popular Posts was installed.", "wordpress-popular-posts"); ?></p>
384
-
385
- <div class="tablenav top">
386
- <div class="alignleft actions">
387
- <form action="" method="post" id="wpp_stats_options" name="wpp_stats_options">
388
- <select name="stats_order">
389
- <option <?php if ($ops['stats']['order_by'] == "comments") {?>selected="selected"<?php } ?> value="comments"><?php _e("Order by comments", "wordpress-popular-posts"); ?></option>
390
- <option <?php if ($ops['stats']['order_by'] == "views") {?>selected="selected"<?php } ?> value="views"><?php _e("Order by views", "wordpress-popular-posts"); ?></option>
391
- <option <?php if ($ops['stats']['order_by'] == "avg") {?>selected="selected"<?php } ?> value="avg"><?php _e("Order by avg. daily views", "wordpress-popular-posts"); ?></option>
392
- </select>
393
- <label for="stats_type"><?php _e("Post type", "wordpress-popular-posts"); ?>:</label> <input type="text" name="stats_type" value="<?php echo $ops['stats']['post_type']; ?>" size="15" />
394
- <label for="stats_limits"><?php _e("Limit", "wordpress-popular-posts"); ?>:</label> <input type="text" name="stats_limit" value="<?php echo $ops['stats']['limit']; ?>" size="5" />
395
- <input type="hidden" name="section" value="stats" />
396
- <input type="submit" class="button-secondary action" value="<?php _e("Apply", "wordpress-popular-posts"); ?>" name="" />
397
- </form>
398
- </div>
399
- </div>
400
- <br />
401
- <div id="wpp-stats-tabs">
402
- <a href="#" class="button-primary" rel="wpp-daily"><?php _e("Last 24 hours", "wordpress-popular-posts"); ?></a>
403
- <a href="#" class="button-secondary" rel="wpp-weekly"><?php _e("Last 7 days", "wordpress-popular-posts"); ?></a>
404
- <a href="#" class="button-secondary" rel="wpp-monthly"><?php _e("Last 30 days", "wordpress-popular-posts"); ?></a>
405
- <a href="#" class="button-secondary" rel="wpp-all"><?php _e("All-time", "wordpress-popular-posts"); ?></a>
406
- </div>
407
- <div id="wpp-stats-canvas">
408
- <div class="wpp-stats wpp-stats-active" id="wpp-daily">
409
- <?php echo do_shortcode("[wpp range='daily' post_type='".$ops['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$ops['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$ops['stats']['limit']."]"); ?>
410
- </div>
411
- <div class="wpp-stats" id="wpp-weekly">
412
- <?php echo do_shortcode("[wpp range='weekly' post_type='".$ops['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$ops['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$ops['stats']['limit']."]"); ?>
413
- </div>
414
- <div class="wpp-stats" id="wpp-monthly">
415
- <?php echo do_shortcode("[wpp range='monthly' post_type='".$ops['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$ops['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$ops['stats']['limit']."]"); ?>
416
- </div>
417
- <div class="wpp-stats" id="wpp-all">
418
- <?php echo do_shortcode("[wpp range='all' post_type='".$ops['stats']['post_type']."' stats_views=1 order_by='".$ops['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$ops['stats']['limit']."]"); ?>
419
- </div>
420
- </div>
421
- </div>
422
- <!-- End stats -->
423
-
424
- <!-- Start faq -->
425
- <div id="wpp_faq" class="wpp_boxes">
426
- <h3 class="wmpp-subtitle"><?php _e("Frequently Asked Questions", "wordpress-popular-posts"); ?></h3>
427
- <table cellspacing="0" class="wp-list-table widefat fixed posts">
428
- <tr>
429
- <td valign="top"><!-- help area -->
430
- <h4>&raquo; <a href="#" rel="q-1"><?php _e('What does "Title" do?', 'wordpress-popular-posts'); ?></a></h4>
431
- <div class="wpp-ans" id="q-1">
432
- <p><?php _e('It allows you to show a heading for your most popular posts listing. If left empty, no heading will be displayed at all.', 'wordpress-popular-posts'); ?></p>
433
- </div>
434
-
435
- <h4>&raquo; <a href="#" rel="q-2"><?php _e('What is Time Range for?', 'wordpress-popular-posts'); ?></a></h4>
436
- <div class="wpp-ans" id="q-2">
437
- <p><?php _e('It will tell Wordpress Popular Posts to retrieve all posts with most views / comments within the selected time range.', 'wordpress-popular-posts'); ?></p>
438
- </div>
439
-
440
- <h4>&raquo; <a href="#" rel="q-3"><?php _e('What is "Sort post by" for?', 'wordpress-popular-posts'); ?></a></h4>
441
- <div class="wpp-ans" id="q-3">
442
- <p><?php _e('It allows you to decide whether to order your popular posts listing by total views, comments, or average views per day.', 'wordpress-popular-posts'); ?></p>
443
- </div>
444
-
445
- <h4>&raquo; <a href="#" rel="q-4"><?php _e('What does "Display post rating" do?', 'wordpress-popular-posts'); ?></a></h4>
446
- <div class="wpp-ans" id="q-4">
447
- <p><?php _e('If checked, Wordpress Popular Posts will show how your readers are rating your most popular posts. This feature requires having WP-PostRatings plugin installed and enabled on your blog for it to work.', 'wordpress-popular-posts'); ?></p>
448
- </div>
449
-
450
- <h4>&raquo; <a href="#" rel="q-5"><?php _e('What does "Shorten title" do?', 'wordpress-popular-posts'); ?></a></h4>
451
- <div class="wpp-ans" id="q-5">
452
- <p><?php _e('If checked, all posts titles will be shortened to "n" characters/words. A new "Shorten title to" option will appear so you can set it to whatever you like.', 'wordpress-popular-posts'); ?></p>
453
- </div>
454
-
455
- <h4>&raquo; <a href="#" rel="q-6"><?php _e('What does "Display post excerpt" do?', 'wordpress-popular-posts'); ?></a></h4>
456
- <div class="wpp-ans" id="q-6">
457
- <p><?php _e('If checked, Wordpress Popular Posts will also include a small extract of your posts in the list. Similarly to the previous option, you will be able to decide how long the post excerpt should be.', 'wordpress-popular-posts'); ?></p>
458
- </div>
459
-
460
- <h4>&raquo; <a href="#" rel="q-7"><?php _e('What does "Keep text format and links" do?', 'wordpress-popular-posts'); ?></a></h4>
461
- <div class="wpp-ans" id="q-7">
462
- <p><?php _e('If checked, and if the Post Excerpt feature is enabled, Wordpress Popular Posts will keep the styling tags (eg. bold, italic, etc) that were found in the excerpt. Hyperlinks will remain intact, too.', 'wordpress-popular-posts'); ?></p>
463
- </div>
464
-
465
- <h4>&raquo; <a href="#" rel="q-8"><?php _e('What is "Post type" for?', 'wordpress-popular-posts'); ?></a></h4>
466
- <div class="wpp-ans" id="q-8">
467
- <p><?php _e('This filter allows you to decide which post types to show on the listing. By default, it will retrieve only posts and pages (which should be fine for most cases).', 'wordpress-popular-posts'); ?></p>
468
- </div>
469
-
470
- <h4>&raquo; <a href="#" rel="q-9"><?php _e('What is "Category(ies) ID(s)" for?', 'wordpress-popular-posts'); ?></a></h4>
471
- <div class="wpp-ans" id="q-9">
472
- <p><?php _e('This filter allows you to select which categories should be included or excluded from the listing. A negative sign in front of the category ID number will exclude posts belonging to it from the list, for example. You can specify more than one ID with a comma separated list.', 'wordpress-popular-posts'); ?></p>
473
- </div>
474
-
475
- <h4>&raquo; <a href="#" rel="q-10"><?php _e('What is "Author(s) ID(s)" for?', 'wordpress-popular-posts'); ?></a></h4>
476
- <div class="wpp-ans" id="q-10">
477
- <p><?php _e('Just like the Category filter, this one lets you filter posts by author ID. You can specify more than one ID with a comma separated list.', 'wordpress-popular-posts'); ?></p>
478
- </div>
479
-
480
- <h4>&raquo; <a href="#" rel="q-11"><?php _e('What does "Display post thumbnail" do?', 'wordpress-popular-posts'); ?></a></h4>
481
- <div class="wpp-ans" id="q-11">
482
- <p><?php _e('If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail of each post. You can set up the source of the thumbnail via Settings - Wordpress Popular Posts - Tools.', 'wordpress-popular-posts'); ?></p>
483
- </div>
484
-
485
- <h4>&raquo; <a href="#" rel="q-12"><?php _e('What does "Display comment count" do?', 'wordpress-popular-posts'); ?></a></h4>
486
- <div class="wpp-ans" id="q-12">
487
- <p><?php _e('If checked, Wordpress Popular Posts will display how many comments each popular post has got in the selected Time Range.', 'wordpress-popular-posts'); ?></p>
488
- </div>
489
-
490
- <h4>&raquo; <a href="#" rel="q-13"><?php _e('What does "Display views" do?', 'wordpress-popular-posts'); ?></a></h4>
491
- <div class="wpp-ans" id="q-13">
492
- <p><?php _e('If checked, Wordpress Popular Posts will show how many pageviews a single post has gotten in the selected Time Range.', 'wordpress-popular-posts'); ?></p>
493
- </div>
494
-
495
- <h4>&raquo; <a href="#" rel="q-14"><?php _e('What does "Display author" do?', 'wordpress-popular-posts'); ?></a></h4>
496
- <div class="wpp-ans" id="q-14">
497
- <p><?php _e('If checked, Wordpress Popular Posts will display the name of the author of each entry listed.', 'wordpress-popular-posts'); ?></p>
498
- </div>
499
-
500
- <h4>&raquo; <a href="#" rel="q-15"><?php _e('What does "Display date" do?', 'wordpress-popular-posts'); ?></a></h4>
501
- <div class="wpp-ans" id="q-15">
502
- <p><?php _e('If checked, Wordpress Popular Posts will display the date when each popular posts was published.', 'wordpress-popular-posts'); ?></p>
503
- </div>
504
-
505
- <h4>&raquo; <a href="#" rel="q-16"><?php _e('What does "Use custom HTML Markup" do?', 'wordpress-popular-posts'); ?></a></h4>
506
- <div class="wpp-ans" id="q-16">
507
- <p><?php _e('If checked, you will be able to customize the HTML markup of your popular posts listing. For example, you can decide whether to wrap your posts in an unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is for you!', 'wordpress-popular-posts'); ?></p>
508
- </div>
509
-
510
- <h4>&raquo; <a href="#" rel="q-17"><?php _e('What are "Content Tags"?', 'wordpress-popular-posts'); ?></a></h4>
511
- <div class="wpp-ans" id="q-17">
512
- <p><?php _e('Content Tags are codes to display a variety of items on your popular posts custom HTML structure. For example, setting it to "{title}: {summary}" (without the quotes) would display "Post title: excerpt of the post here". For more Content Tags, see "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode".', 'wordpress-popular-posts'); ?></p>
513
- </div>
514
-
515
- <h4>&raquo; <a href="#" rel="q-18"><?php _e('What are "Template Tags"?', 'wordpress-popular-posts'); ?></a></h4>
516
- <div class="wpp-ans" id="q-18">
517
- <p><?php _e('Template Tags are simply php functions that allow you to perform certain actions. For example, Wordpress Popular Posts currently supports two different template tags: wpp_get_mostpopular() and wpp_get_views().', 'wordpress-popular-posts'); ?></p>
518
- </div>
519
-
520
- <h4>&raquo; <a href="#" rel="q-19"><?php _e('What are the template tags that Wordpress Popular Posts supports?', 'wordpress-popular-posts'); ?></a></h4>
521
- <div class="wpp-ans" id="q-19">
522
- <p><?php _e('The following are the template tags supported by Wordpress Popular Posts', 'wordpress-popular-posts'); ?>:</p>
523
- <table cellspacing="0" class="wp-list-table widefat fixed posts">
524
- <thead>
525
- <tr>
526
- <th class="manage-column column-title"><?php _e('Template tag', 'wordpress-popular-posts'); ?></th>
527
- <th class="manage-column column-title"><?php _e('What it does ', 'wordpress-popular-posts'); ?></th>
528
- <th class="manage-column column-title"><?php _e('Parameters', 'wordpress-popular-posts'); ?></th>
529
- <th class="manage-column column-title"><?php _e('Example', 'wordpress-popular-posts'); ?></th>
530
- </tr>
531
- </thead>
532
- <tbody>
533
- <tr>
534
- <td class="post type-post status-draft format-standard hentry category-js alternate iedit"><strong>wpp_get_mostpopular()</strong></td>
535
- <td class="post type-post status-draft format-standard hentry category-js iedit"><?php _e('Similar to the widget functionality, this tag retrieves the most popular posts on your blog. This function also accepts parameters so you can customize your popular listing, but these are not required.', 'wordpress-popular-posts'); ?></td>
536
- <td class="post type-post status-draft format-standard hentry category-js alternate iedit"><?php _e('Please refer to "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode".', 'wordpress-popular-posts'); ?></td>
537
- <td class="post type-post status-draft format-standard hentry category-js iedit">&lt;?php wpp_get_mostpopular(); ?&gt;<br />&lt;?php wpp_get_mostpopular("range=weekly&amp;limit=7"); ?&gt;</td>
538
- </tr>
539
- <tr>
540
- <td><strong>wpp_get_views()</strong></td>
541
- <td><?php _e('Displays the number of views of a single post. Post ID is required or it will return false.', 'wordpress-popular-posts'); ?></td>
542
- <td><?php _e('Post ID', 'wordpress-popular-posts'); ?>, range ("daily", "weekly", "monthly", "all")</td>
543
- <td>&lt;?php echo wpp_get_views($post->ID); ?&gt;<br />&lt;?php echo wpp_get_views(15, 'weekly'); ?&gt;</td>
544
- </tr>
545
- </tbody>
546
- </table>
547
- </div>
548
-
549
- <h4>&raquo; <a href="#" rel="q-20"><?php _e('What are "shortcodes"?', 'wordpress-popular-posts'); ?></a></h4>
550
- <div class="wpp-ans" id="q-20">
551
- <p><?php _e('Shortcodes are similar to BB Codes, these allow us to call a php function by simply typing something like [shortcode]. With Wordpress Popular Posts, the shortcode [wpp] will let you insert a list of the most popular posts in posts content and pages too! For more information about shortcodes, please visit', 'wordpress-popular-posts', 'wordpress-popular-posts'); ?> <a href="http://codex.wordpress.org/Shortcode_API" target="_blank">Wordpress Shortcode API</a>.</p>
552
- </div>
553
- <h4>&raquo; <a href="#" rel="q-21"><?php _e('List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode', 'wordpress-popular-posts'); ?></a></h4>
554
- <div class="wpp-ans" id="q-21" style="display:block;">
555
- <p><?php _e('These parameters can be used by both the template tag wpp_get_most_popular() and the shortcode [wpp].', 'wordpress-popular-posts'); ?>:</p>
556
- <table cellspacing="0" class="wp-list-table widefat fixed posts">
557
- <thead>
558
- <tr>
559
- <th class="manage-column column-title"><?php _e('Parameter', 'wordpress-popular-posts'); ?></th>
560
- <th class="manage-column column-title"><?php _e('What it does ', 'wordpress-popular-posts'); ?></th>
561
- <th class="manage-column column-title"><?php _e('Possible values', 'wordpress-popular-posts'); ?></th>
562
- <th class="manage-column column-title"><?php _e('Defaults to', 'wordpress-popular-posts'); ?></th>
563
- <th class="manage-column column-title"><?php _e('Example', 'wordpress-popular-posts'); ?></th>
564
- </tr>
565
- </thead>
566
- <tbody>
567
- <tr>
568
- <td><strong>header</strong></td>
569
- <td><?php _e('Sets a heading for the list', 'wordpress-popular-posts'); ?></td>
570
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
571
- <td><?php _e('Popular Posts', 'wordpress-popular-posts'); ?></td>
572
- <td>header="Popular Posts"</td>
573
- </tr>
574
- <tr class="alternate">
575
- <td><strong>header_start</strong></td>
576
- <td><?php _e('Set the opening tag for the heading of the list', 'wordpress-popular-posts'); ?></td>
577
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
578
- <td>&lt;h2&gt;</td>
579
- <td>header_start="&lt;h2&gt;"</td>
580
- </tr>
581
- <tr>
582
- <td><strong>header_end</strong></td>
583
- <td><?php _e('Set the closing tag for the heading of the list', 'wordpress-popular-posts'); ?></td>
584
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
585
- <td>&lt;/h2&gt;</td>
586
- <td>header_end="&lt;/h2&gt;"</td>
587
- </tr>
588
- <tr class="alternate">
589
- <td><strong>limit</strong></td>
590
- <td><?php _e('Sets the maximum number of popular posts to be shown on the listing', 'wordpress-popular-posts'); ?></td>
591
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
592
- <td>10</td>
593
- <td>limit=10</td>
594
- </tr>
595
- <tr>
596
- <td><strong>range</strong></td>
597
- <td><?php _e('Tells Wordpress Popular Posts to retrieve the most popular entries within the time range specified by you', 'wordpress-popular-posts'); ?></td>
598
- <td>"daily", "weekly", "monthly", "all"</td>
599
- <td>daily</td>
600
- <td>range="daily"</td>
601
- </tr>
602
- <tr class="alternate">
603
- <td><strong>order_by</strong></td>
604
- <td><?php _e('Sets the sorting option of the popular posts', 'wordpress-popular-posts'); ?></td>
605
- <td>"comments", "views", "avg" <?php _e('(for average views per day)', 'wordpress-popular-posts'); ?></td>
606
- <td>views</td>
607
- <td>order_by="comments"</td>
608
- </tr>
609
- <tr>
610
- <td><strong>post_type</strong></td>
611
- <td><?php _e('Defines the type of posts to show on the listing', 'wordpress-popular-posts'); ?></td>
612
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
613
- <td>post,page</td>
614
- <td>post_type=post,page,your-custom-post-type</td>
615
- </tr>
616
- <tr class="alternate">
617
- <td><strong>pid</strong></td>
618
- <td><?php _e('If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) form the listing.', '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>pid="60,25,31"</td>
622
- </tr>
623
- <tr>
624
- <td><strong>cat</strong></td>
625
- <td><?php _e('If set, Wordpress Popular Posts will retrieve all entries that belong to the specified category(ies) ID(s). If a minus sign is used, the category(ies) will be excluded instead.', '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>cat="1,55,-74"</td>
629
- </tr>
630
- <tr class="alternate">
631
- <td><strong>author</strong></td>
632
- <td><?php _e('If set, Wordpress Popular Posts will retrieve all entries created by specified author(s) ID(s).', '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>author="75,8,120"</td>
636
- </tr>
637
- <tr>
638
- <td><strong>title_length</strong></td>
639
- <td><?php _e('If set, Wordpress Popular Posts will shorten each post title to "n" characters whenever possible', 'wordpress-popular-posts'); ?></td>
640
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
641
- <td>25</td>
642
- <td>title_length=25</td>
643
- </tr>
644
- <tr>
645
- <td><strong>title_by_words</strong></td>
646
- <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>
647
- <td>1 (true), (0) false</td>
648
- <td>0</td>
649
- <td>title_by_words=1</td>
650
- </tr>
651
- <tr class="alternate">
652
- <td><strong>excerpt_length</strong></td>
653
- <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>
654
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
655
- <td>0</td>
656
- <td>excerpt_length=55</td>
657
- </tr>
658
- <tr>
659
- <td><strong>excerpt_format</strong></td>
660
- <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>
661
- <td>1 (true), (0) false</td>
662
- <td>0</td>
663
- <td>excerpt_format=1</td>
664
- </tr>
665
- <tr>
666
- <td><strong>excerpt_by_words</strong></td>
667
- <td><?php _e('If set to 1, Wordpress Popular Posts will shorten the excerpt to "n" words instead of characters', 'wordpress-popular-posts'); ?></td>
668
- <td>1 (true), (0) false</td>
669
- <td>0</td>
670
- <td>excerpt_by_words=1</td>
671
- </tr>
672
- <tr class="alternate">
673
- <td><strong>thumbnail_width</strong></td>
674
- <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>
675
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
676
- <td>15</td>
677
- <td>thumbnail_width=30</td>
678
- </tr>
679
- <tr>
680
- <td><strong>thumbnail_height</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 height for thumbnails', 'wordpress-popular-posts'); ?></td>
682
- <td><?php _e('Positive integer', 'wordpress-popular-posts'); ?></td>
683
- <td>15</td>
684
- <td>thumbnail_height=30</td>
685
- </tr>
686
- <tr class="alternate">
687
- <td><strong>rating</strong></td>
688
- <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>
689
- <td>1 (true), (0) false</td>
690
- <td>0</td>
691
- <td>rating=1</td>
692
- </tr>
693
- <tr>
694
- <td><strong>stats_comments</strong></td>
695
- <td><?php _e('If set, Wordpress Popular Posts will show how many comments each popular post has got until now', 'wordpress-popular-posts'); ?></td>
696
- <td>1 (true), 0 (false)</td>
697
- <td>1</td>
698
- <td>stats_comments=1</td>
699
- </tr>
700
- <tr class="alternate">
701
- <td><strong>stats_views</strong></td>
702
- <td><?php _e('If set, Wordpress Popular Posts will show how many views each popular post has got since it was installed', 'wordpress-popular-posts'); ?></td>
703
- <td>1 (true), (0) false</td>
704
- <td>0</td>
705
- <td>stats_views=1</td>
706
- </tr>
707
- <tr>
708
- <td><strong>stats_author</strong></td>
709
- <td><?php _e('If set, Wordpress Popular Posts will show who published each popular post on the list', 'wordpress-popular-posts'); ?></td>
710
- <td>1 (true), (0) false</td>
711
- <td>0</td>
712
- <td>stats_author=1</td>
713
- </tr>
714
- <tr class="alternate">
715
- <td><strong>stats_date</strong></td>
716
- <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>
717
- <td>1 (true), (0) false</td>
718
- <td>0</td>
719
- <td>stats_date=1</td>
720
- </tr>
721
- <tr>
722
- <td><strong>stats_date_format</strong></td>
723
- <td><?php _e('Sets the date format', 'wordpress-popular-posts'); ?></td>
724
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
725
- <td>0</td>
726
- <td>stats_date_format='F j, Y'</td>
727
- </tr>
728
- <tr class="alternate">
729
- <td><strong>stats_category</strong></td>
730
- <td><?php _e('If set, Wordpress Popular Posts will display the category', 'wordpress-popular-posts'); ?></td>
731
- <td>1 (true), (0) false</td>
732
- <td>0</td>
733
- <td>stats_category=1</td>
734
- </tr>
735
- <tr>
736
- <td><strong>wpp_start</strong></td>
737
- <td><?php _e('Sets the opening tag for the listing', 'wordpress-popular-posts'); ?></td>
738
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
739
- <td>&lt;ul&gt;</td>
740
- <td>wpp_start="&lt;ul&gt;"</td>
741
- </tr>
742
- <tr class="alternate">
743
- <td><strong>wpp_end</strong></td>
744
- <td><?php _e('Sets the closing tag for the listing', 'wordpress-popular-posts'); ?></td>
745
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
746
- <td>&lt;/ul&gt;</td>
747
- <td>wpp_end="&lt;/ul&gt;"</td>
748
- </tr>
749
- <tr>
750
- <td><strong>post_html</strong></td>
751
- <td><?php _e('Sets the HTML structure of each post', 'wordpress-popular-posts'); ?></td>
752
- <td><?php _e('Text string, custom HTML', 'wordpress-popular-posts'); ?>.<br /><br /><strong><?php _e('Available Content Tags', 'wordpress-popular-posts'); ?>:</strong> <br /><em>{thumb}</em> (<?php _e('displays thumbnail linked to post/page', 'wordpress-popular-posts'); ?>)<br /> <em>{title}</em> (<?php _e('displays linked post/page title', 'wordpress-popular-posts'); ?>)<br /> <em>{summary}</em> (<?php _e('displays post/page excerpt, and requires excerpt_length to be greater than 0', 'wordpress-popular-posts'); ?>)<br /> <em>{stats}</em> (<?php _e('displays the default stats tags', 'wordpress-popular-posts'); ?>)<br /> <em>{rating}</em> (<?php _e('displays post/page current rating, requires WP-PostRatings installed and enabled', 'wordpress-popular-posts'); ?>)<br /> <em>{score}</em> (<?php _e('displays post/page current rating as an integer, requires WP-PostRatings installed and enabled', 'wordpress-popular-posts'); ?>)<br /> <em>{url}</em> (<?php _e('outputs the URL of the post/page', 'wordpress-popular-posts'); ?>)<br /> <em>{text_title}</em> (<?php _e('displays post/page title, no link', 'wordpress-popular-posts'); ?>)<br /> <em>{author}</em> (<?php _e('displays linked author name, requires stats_author=1', 'wordpress-popular-posts'); ?>)<br /> <em>{category}</em> (<?php _e('displays linked category name, requires stats_category=1', 'wordpress-popular-posts'); ?>)<br /> <em>{views}</em> (<?php _e('displays views count only, no text', 'wordpress-popular-posts'); ?>)<br /> <em>{comments}</em> (<?php _e('displays comments count only, no text, requires stats_comments=1', 'wordpress-popular-posts'); ?>)</td>
753
- <td>&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;</td>
754
- <td>post_html="&lt;li&gt;{thumb} &lt;a href='{url}'&gt;{text_title}&lt;/a&gt; &lt;/li&gt;"</td>
755
- </tr>
756
- <!--<tr class="alternate">
757
- <td><strong>post_start</strong></td>
758
- <td><?php _e('Sets the opening tag for each item on the list', 'wordpress-popular-posts'); ?></td>
759
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
760
- <td>&lt;li&gt;</td>
761
- <td>post_start="&lt;li&gt;"</td>
762
- </tr>
763
- <tr>
764
- <td><strong>post_end</strong></td>
765
- <td><?php _e('Sets the closing tag for each item on the list', 'wordpress-popular-posts'); ?></td>
766
- <td><?php _e('Text string', 'wordpress-popular-posts'); ?></td>
767
- <td>&lt;/li&gt;</td>
768
- <td>post_end="&lt;/li&gt;"</td>
769
- </tr>
770
- <tr class="alternate">
771
- <td><strong>do_pattern</strong></td>
772
- <td><?php _e('If set, this option will allow you to decide the order of the contents within each item on the list.', 'wordpress-popular-posts'); ?></td>
773
- <td>1 (true), (0) false</td>
774
- <td>0</td>
775
- <td>do_pattern=1</td>
776
- </tr>
777
- <tr>
778
- <td><strong>pattern_form</strong></td>
779
- <td><?php _e('If set, you can decide the order of each content inside a single item on the list. For example, setting it to "{title}: {summary}" would output something like "Your Post Title: summary here". This attribute requires do_pattern to be true.', 'wordpress-popular-posts'); ?></td>
780
- <td><?php _e('Available tags', 'wordpress-popular-posts'); ?>: {thumb}, {title}, {summary}, {stats}, {rating}, {url}, {text_title}, {author}, {category}, {views}, {comments}</td>
781
- <td>{image} {thumb}: {summary} {stats}</td>
782
- <td>pattern_form="{thumb} {title}: {summary} {stats}"</td>
783
- </tr>-->
784
- </tbody>
785
- </table>
786
- </div>
787
- </td>
788
- </tr>
789
- </table>
790
- </div>
791
- <!-- End faq -->
792
-
793
- <!-- Start tools -->
794
- <div id="wpp_tools" class="wpp_boxes"<?php if (isset($_POST['section']) && ($_POST['section'] == "linking" || $_POST['section'] == "logging" || $_POST['section'] == "tools" || $_POST['section'] == "ajax" || $_POST['section'] == "css") ) {?> style="display:block;"<?php } ?>>
795
- <p><?php _e("Here you will find a handy group of options to tweak Wordpress Popular Posts.", "wordpress-popular-posts"); ?></p><br />
796
-
797
- <h3 class="wmpp-subtitle"><?php _e("Popular Posts links behavior", "wordpress-popular-posts"); ?></h3>
798
-
799
- <form action="" method="post" id="wpp_link_options" name="wpp_link_options">
800
- <table class="form-table">
801
- <tbody>
802
- <tr valign="top">
803
- <th scope="row"><label for="link_target"><?php _e("Open links in", "wordpress-popular-posts"); ?>:</label></th>
804
- <td>
805
- <select name="link_target" id="link_target">
806
- <option <?php if (!isset($ops['tools']['link']['target']) || $ops['tools']['link']['target'] == '_self') {?>selected="selected"<?php } ?> value="_self"><?php _e("Current window", "wordpress-popular-posts"); ?></option>
807
- <option <?php if (isset($ops['tools']['link']['target']) && $ops['tools']['link']['target'] == '_blank') {?>selected="selected"<?php } ?> value="_blank"><?php _e("New tab/window", "wordpress-popular-posts"); ?></option>
808
- </select>
809
- <br />
810
- </td>
811
- </tr>
812
- <tr valign="top">
813
- <td colspan="2">
814
- <input type="hidden" name="section" value="linking" />
815
- <input type="submit" class="button-secondary action" id="btn_link_ops" value="<?php _e("Apply", "wordpress-popular-posts"); ?>" name="" />
816
- </td>
817
- </tr>
818
- </tbody>
819
- </table>
820
- </form>
821
- <br />
822
- <p style="display:block; float:none; clear:both">&nbsp;</p>
823
-
824
- <h3 class="wmpp-subtitle"><?php _e("Views logging behavior", "wordpress-popular-posts"); ?></h3>
825
-
826
- <form action="" method="post" id="wpp_log_options" name="wpp_log_options">
827
- <table class="form-table">
828
- <tbody>
829
- <tr valign="top">
830
- <th scope="row"><label for="log_option"><?php _e("Log views from", "wordpress-popular-posts"); ?>:</label></th>
831
- <td>
832
- <select name="log_option" id="log_option">
833
- <option <?php if (!isset($ops['tools']['log_loggedin']) || $ops['tools']['log_loggedin'] == 0) {?>selected="selected"<?php } ?> value="0"><?php _e("Visitors only", "wordpress-popular-posts"); ?></option>
834
- <option <?php if (isset($ops['tools']['log_loggedin']) && $ops['tools']['log_loggedin'] == 1) {?>selected="selected"<?php } ?> value="1"><?php _e("Everyone", "wordpress-popular-posts"); ?></option>
835
- </select>
836
- <br />
837
- </td>
838
- </tr>
839
- <tr valign="top">
840
- <td colspan="2">
841
- <input type="hidden" name="section" value="logging" />
842
- <input type="submit" class="button-secondary action" id="btn_log_ops" value="<?php _e("Apply", "wordpress-popular-posts"); ?>" name="" />
843
- </td>
844
- </tr>
845
- </tbody>
846
- </table>
847
- </form>
848
- <br />
849
- <p style="display:block; float:none; clear:both">&nbsp;</p>
850
-
851
- <h3 class="wmpp-subtitle"><?php _e("Thumbnail source", "wordpress-popular-posts"); ?></h3>
852
-
853
- <form action="" method="post" id="wpp_thumbnail_options" name="wpp_thumbnail_options">
854
- <table class="form-table">
855
- <tbody>
856
- <tr valign="top">
857
- <th scope="row"><label for="thumb_default"><?php _e("Default thumbnail", "wordpress-popular-posts"); ?>:</label></th>
858
- <td>
859
- <input id="upload_thumb_button" type="button" class="button" value="<?php _e( "Upload thumbnail", "wordpress-popular-posts" ); ?>" />
860
- <input type="hidden" id="upload_thumb_src" name="upload_thumb_src" value="" />
861
- <br />
862
- <p class="description"><?php _e("How-to: upload (or select) an image, set Size to Full and click on Upload. After it's done, hit on Apply to save changes", "wordpress-popular-posts"); ?></p>
863
- <div style="display:<?php if ( !empty($ops['tools']['thumbnail']['default']) ) : ?>block<?php else: ?>none<?php endif; ?>;">
864
- <label><?php _e("Preview", "wordpress-popular-posts"); ?>:</label>
865
- <div id="thumb-review">
866
- <img src="<?php echo $ops['tools']['thumbnail']['default']; ?>" alt="" border="0" />
867
- </div>
868
- </div>
869
- </td>
870
- </tr>
871
- <tr valign="top">
872
- <th scope="row"><label for="thumb_source"><?php _e("Pick image from", "wordpress-popular-posts"); ?>:</label></th>
873
- <td>
874
- <select name="thumb_source" id="thumb_source">
875
- <option <?php if ($ops['tools']['thumbnail']['source'] == "featured") {?>selected="selected"<?php } ?> value="featured"><?php _e("Featured image", "wordpress-popular-posts"); ?></option>
876
- <option <?php if ($ops['tools']['thumbnail']['source'] == "first_image") {?>selected="selected"<?php } ?> value="first_image"><?php _e("First image on post", "wordpress-popular-posts"); ?></option>
877
- <option <?php if ($ops['tools']['thumbnail']['source'] == "custom_field") {?>selected="selected"<?php } ?> value="custom_field"><?php _e("Custom field", "wordpress-popular-posts"); ?></option>
878
- </select>
879
- <br />
880
- <p class="description"><?php _e("Tell Wordpress Popular Posts where it should get thumbnails from", "wordpress-popular-posts"); ?></p>
881
- </td>
882
- </tr>
883
- <tr valign="top" <?php if ($ops['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field">
884
- <th scope="row"><label for="thumb_field"><?php _e("Custom field name", "wordpress-popular-posts"); ?>:</label></th>
885
- <td>
886
- <input type="text" id="thumb_field" name="thumb_field" value="<?php echo $ops['tools']['thumbnail']['field']; ?>" size="10" <?php if ($ops['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> />
887
- </td>
888
- </tr>
889
- <tr valign="top" <?php if ($ops['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field_resize">
890
- <th scope="row"><label for="thumb_field_resize"><?php _e("Resize image from Custom field?", "wordpress-popular-posts"); ?>:</label></th>
891
- <td>
892
- <select name="thumb_field_resize" id="thumb_field_resize">
893
- <option <?php if ( !isset($ops['tools']['thumbnail']['resize']) || !$ops['tools']['thumbnail']['resize'] ) {?>selected="selected"<?php } ?> value="0"><?php _e("No, I will upload my own thumbnail", "wordpress-popular-posts"); ?></option>
894
- <option <?php if ( isset($ops['tools']['thumbnail']['resize'] ) && $ops['tools']['thumbnail']['resize'] == 1 ) {?>selected="selected"<?php } ?> value="1"><?php _e("Yes", "wordpress-popular-posts"); ?></option>
895
- </select>
896
- </td>
897
- </tr>
898
- <tr valign="top">
899
- <td colspan="2">
900
- <input type="hidden" name="section" value="tools" />
901
- <input type="submit" class="button-secondary action" id="btn_th_ops" value="<?php _e("Apply", "wordpress-popular-posts"); ?>" name="" />
902
- </td>
903
- </tr>
904
- </tbody>
905
- </table>
906
- </form>
907
-
908
- <br />
909
- <p style="display:block; float:none; clear:both">&nbsp;</p>
910
-
911
- <h3 class="wmpp-subtitle"><?php _e("Wordpress Popular Posts Stylesheet", "wordpress-popular-posts"); ?></h3>
912
- <p><?php _e("By default, the plugin includes a stylesheet called wpp.css which you can use to style your popular posts listing. If you wish to use your own stylesheet or do not want it to have it included in the header section of your site, use this.", "wordpress-popular-posts"); ?></p>
913
- <div class="tablenav top">
914
- <div class="alignleft actions">
915
- <form action="" method="post" id="wpp_css_options" name="wpp_css_options">
916
- <select name="css" id="css">
917
- <option <?php if ($ops['tools']['css']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", "wordpress-popular-posts"); ?></option>
918
- <option <?php if (!$ops['tools']['css']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", "wordpress-popular-posts"); ?></option>
919
- </select>
920
- <input type="hidden" name="section" value="css" />
921
- <input type="submit" class="button-secondary action" id="btn_css_ops" value="<?php _e("Apply", "wordpress-popular-posts"); ?>" name="" />
922
- </form>
923
- </div>
924
- </div>
925
- <br /><br />
926
-
927
- <h3 class="wmpp-subtitle"><?php _e("Data tools", "wordpress-popular-posts"); ?></h3>
928
- <form action="" method="post" id="wpp_ajax_options" name="wpp_ajax_options">
929
- <table class="form-table">
930
- <tbody>
931
- <tr valign="top">
932
- <th scope="row"><label for="thumb_source"><?php _e("Ajaxify widget", "wordpress-popular-posts"); ?>:</label></th>
933
- <td>
934
- <select name="ajax" id="ajax">
935
- <option <?php if (!$ops['tools']['ajax']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", "wordpress-popular-posts"); ?></option>
936
- <option <?php if ($ops['tools']['ajax']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", "wordpress-popular-posts"); ?></option>
937
- </select>
938
-
939
- <br />
940
- <p class="description"><?php _e("If you are using a caching plugin such as WP Super Cache, enabling this feature will keep the popular list from being cached by it", "wordpress-popular-posts"); ?></p>
941
- </td>
942
- </tr>
943
- <tr valign="top" style="display:none;">
944
- <th scope="row"><label for="thumb_source"><?php _e("Popular posts listing refresh interval", "wordpress-popular-posts"); ?>:</label></th>
945
- <td>
946
- <select name="cache" id="cache">
947
- <option <?php if ( !isset($ops['tools']['cache']['active']) || !$ops['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Live", "wordpress-popular-posts"); ?></option>
948
- <option <?php if ( isset($ops['tools']['cache']['active']) && $ops['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="1"><?php _e("Custom interval", "wordpress-popular-posts"); ?></option>
949
- </select>
950
-
951
- <br />
952
- <p class="description"><?php _e("Sets how often the listing should be updated. For most sites the Live option should be fine, however if you are experiencing slowdowns or your blog gets a lot of visitors then you might want to change the refresh rate", "wordpress-popular-posts"); ?></p>
953
- </td>
954
- </tr>
955
- <tr valign="top" <?php if ( !isset($ops['tools']['cache']['active']) || !$ops['tools']['cache']['active'] ) { ?>style="display:none;"<?php } ?> id="cache_refresh_interval">
956
- <th scope="row"><label for="thumb_field_resize"><?php _e("Refresh interval", "wordpress-popular-posts"); ?>:</label></th>
957
- <td>
958
- <input name="cache_interval_value" type="text" id="cache_interval_value" value="<?php echo ( isset($ops['tools']['cache']['interval']['value']) ) ? (int) $ops['tools']['cache']['interval']['value'] : 1; ?>" class="small-text">
959
- <select name="cache_interval_time" id="cache_interval_time">
960
- <option <?php if ($ops['tools']['cache']['interval']['time'] == "hour") {?>selected="selected"<?php } ?> value="hour"><?php _e("Hour(s)", "wordpress-popular-posts"); ?></option>
961
- <option <?php if ($ops['tools']['cache']['interval']['time'] == "day") {?>selected="selected"<?php } ?> value="day"><?php _e("Day(s)", "wordpress-popular-posts"); ?></option>
962
- <option <?php if ($ops['tools']['cache']['interval']['time'] == "week") {?>selected="selected"<?php } ?> value="week"><?php _e("Week(s)", "wordpress-popular-posts"); ?></option>
963
- <option <?php if ($ops['tools']['cache']['interval']['time'] == "month") {?>selected="selected"<?php } ?> value="month"><?php _e("Month(s)", "wordpress-popular-posts"); ?></option>
964
- <option <?php if ($ops['tools']['cache']['interval']['time'] == "year") {?>selected="selected"<?php } ?> value="month"><?php _e("Year(s)", "wordpress-popular-posts"); ?></option>
965
- </select>
966
- <br />
967
- <p class="description" style="display:none;" id="cache_too_long"><?php _e("Really? That long?", "wordpress-popular-posts"); ?></p>
968
- </td>
969
- </tr>
970
- <tr valign="top">
971
- <td colspan="2">
972
- <input type="hidden" name="section" value="ajax" />
973
- <input type="submit" class="button-secondary action" id="btn_ajax_ops" value="<?php _e("Apply", "wordpress-popular-posts"); ?>" name="" />
974
- </td>
975
- </tr>
976
- </tbody>
977
- </table>
978
- </form>
979
-
980
- <br /><br />
981
-
982
- <p><?php _e('Wordpress Popular Posts maintains data in two separate tables: one for storing the most popular entries in the past 30 days (from now on, "cache"), and another one to keep the All-time data (from now on, "historical data" or just "data"). If for some reason you need to clear the cache table, or even both historical and cache tables, please use the buttons below to do so.', 'wordpress-popular-posts') ?></p>
983
- <p><input type="button" name="wpp-reset-cache" id="wpp-reset-cache" class="button-secondary" value="<?php _e("Empty cache", "wordpress-popular-posts"); ?>" onclick="confirm_reset_cache()" /> <label for="wpp-reset-cache"><small><?php _e('Use this button to manually clear entries from WPP cache only', 'wordpress-popular-posts'); ?></small></label></p>
984
- <p><input type="button" name="wpp-reset-all" id="wpp-reset-all" class="button-secondary" value="<?php _e("Clear all data", "wordpress-popular-posts"); ?>" onclick="confirm_reset_all()" /> <label for="wpp-reset-all"><small><?php _e('Use this button to manually clear entries from all WPP data tables', 'wordpress-popular-posts'); ?></small></label></p>
985
- </div>
986
- <!-- End tools -->
987
-
988
- <br />
989
- <hr />
990
- <p><?php _e('Do you like this plugin?', 'wordpress-popular-posts'); ?> <a title="<?php _e('Rate Wordpress Popular Posts!', 'wordpress-popular-posts'); ?>" href="http://wordpress.org/extend/plugins/wordpress-popular-posts/#rate-response" target="_blank"><strong><?php _e('Rate it', 'wordpress-popular-posts'); ?></strong></a> <?php _e('on the official Plugin Directory!', 'wordpress-popular-posts'); ?></p>
991
- <p><?php _e('Do you love this plugin?', 'wordpress-popular-posts'); ?> <a title="<?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?>" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dadslayer%40gmail%2ecom&lc=GB&item_name=Wordpress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted" target="_blank"><strong><?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?></strong></a>. <?php _e('Each donation motivates me to keep releasing free stuff for the Wordpress community!', 'wordpress-popular-posts'); ?></p>
992
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dadslayer%40gmail%2ecom&lc=GB&item_name=Wordpress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted" target="_blank" rel="external nofollow"><img src="<?php echo get_bloginfo('url') . "/" . PLUGINDIR; ?>/wordpress-popular-posts/btn_donateCC_LG_global.gif" width="122" height="47" alt="<?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?>" border="0" /></a>
993
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
btn_donateCC_LG_global.gif DELETED
Binary file
index.php CHANGED
@@ -1,3 +1 @@
1
- <?php
2
- // Silence is golden.
3
- ?>
1
+ <?php // Silence is golden ?>
 
 
js/admin.js ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ "use strict";
3
+ $(function () {
4
+
5
+ // STATISTICS TABS
6
+ $("#wpp-stats-tabs a").click(function(e){
7
+ var activeTab = $(this).attr("rel");
8
+ $(this).removeClass("button-secondary").addClass("button-primary").siblings().removeClass("button-primary").addClass("button-secondary");
9
+ $(".wpp-stats:visible").hide("fast", function(){
10
+ $("#"+activeTab).slideDown("fast");
11
+ });
12
+
13
+ e.preventDefault();
14
+ });
15
+
16
+ $(".wpp-stats").each(function(){
17
+ if ($("li", this).length == 1) {
18
+ $("li", this).addClass("wpp-stats-last-item");
19
+ } else {
20
+ $("li:last", this).addClass("wpp-stats-last-item");
21
+ }
22
+ });
23
+
24
+ // TOOLS
25
+ // thumb source selection
26
+ $("#thumb_source").change(function() {
27
+ if ($(this).val() == "custom_field") {
28
+ $("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").show();
29
+ } else {
30
+ $("#lbl_field, #thumb_field, #row_custom_field, #row_custom_field_resize").hide();
31
+ }
32
+ });
33
+ // file upload
34
+ $('#upload_thumb_button').click(function(e) {
35
+ tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
36
+ e.preventDefault();
37
+ });
38
+ window.send_to_editor = function(html) {
39
+ var image_url = $('img',html).attr('src');
40
+ $('#upload_thumb_src').val(image_url);
41
+
42
+ var img = new Image();
43
+ img.src = image_url;
44
+
45
+ $("#thumb-review").html( img );
46
+ $("#thumb-review").parent().show();
47
+
48
+ tb_remove();
49
+ };
50
+ // cache interval
51
+ $("#cache").change(function() {
52
+ if ($(this).val() == 1) {
53
+ $("#cache_refresh_interval").show();
54
+ } else {
55
+ $("#cache_refresh_interval, #cache_too_long").hide();
56
+ }
57
+ });
58
+ // interval
59
+ $("#cache_interval_time").change(function() {
60
+ var value = parseInt( $("#cache_interval_value").val() );
61
+ var time = $(this).val();
62
+
63
+ console.log(time + " " + value);
64
+
65
+ if ( time == "hour" && value > 72 ) {
66
+ $("#cache_too_long").show();
67
+ } else if ( time == "day" && value > 3 ) {
68
+ $("#cache_too_long").show();
69
+ } else if ( time == "week" && value > 1 ) {
70
+ $("#cache_too_long").show();
71
+ } else if ( time == "month" && value >= 1 ) {
72
+ $("#cache_too_long").show();
73
+ } else if ( time == "year" && value >= 1 ) {
74
+ $("#cache_too_long").show();
75
+ } else {
76
+ $("#cache_too_long").hide();
77
+ }
78
+ });
79
+
80
+ $("#cache_interval_value").change(function() {
81
+ var value = parseInt( $(this).val() );
82
+ var time = $("#cache_interval_time").val();
83
+
84
+ if ( time == "hour" && value > 72 ) {
85
+ $("#cache_too_long").show();
86
+ } else if ( time == "day" && value > 3 ) {
87
+ $("#cache_too_long").show();
88
+ } else if ( time == "week" && value > 1 ) {
89
+ $("#cache_too_long").show();
90
+ } else if ( time == "month" && value >= 1 ) {
91
+ $("#cache_too_long").show();
92
+ } else if ( time == "year" && value >= 1 ) {
93
+ $("#cache_too_long").show();
94
+ } else {
95
+ $("#cache_too_long").hide();
96
+ }
97
+ });
98
+ });
99
+ }(jQuery));
js/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden ?>
js/widget.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ (function ($) {
2
+ "use strict";
3
+ $(function () {
4
+ // Place your public-facing JavaScript here
5
+ });
6
+ }(jQuery));
js/wpp-upload.js CHANGED
@@ -1,10 +1,8 @@
1
  jQuery(document).ready(function($) {
2
 
3
  $('#upload_thumb_button').click(function(e) {
4
-
5
- tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
6
  e.preventDefault();
7
-
8
  });
9
 
10
  window.send_to_editor = function(html) {
1
  jQuery(document).ready(function($) {
2
 
3
  $('#upload_thumb_button').click(function(e) {
 
 
4
  e.preventDefault();
5
+ tb_show('Upload a thumbnail', 'media-upload.php?referer=wpp_admin&type=image&TB_iframe=true&post_id=0', false);
6
  });
7
 
8
  window.send_to_editor = function(html) {
lang/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden ?>
lang/wordpress-popular-posts-de_DE.mo CHANGED
Binary file
lang/wordpress-popular-posts-de_DE.po CHANGED
@@ -2,29 +2,32 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-05-31 19:43+0100\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Martin Stehle <m.stehle@gmx.de>\n"
8
- "Language-Team: Héctor Cabrera <admin@rauru.com>\n"
9
- "Language: en_VE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-SourceCharset: iso-8859-1\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.5\n"
 
17
  "X-Poedit-SearchPath-0: .\n"
 
18
 
19
- #: admin.php:43 admin.php:49 admin.php:60 admin.php:71 admin.php:79
 
20
  msgid "Settings saved."
21
  msgstr "Einstellungen gespeichert"
22
 
23
- #: admin.php:54
24
  msgid "Please provide the name of your custom field."
25
  msgstr "Gebe einen Namen für das benutzerdefinierte Feld an."
26
 
27
- #: admin.php:320
28
  msgid ""
29
  "This operation will delete all entries from Wordpress Popular Posts' cache "
30
  "table and cannot be undone."
@@ -32,11 +35,11 @@ msgstr ""
32
  "Alle Einträge im Cache werden gelöscht und können nicht mehr wieder "
33
  "hergestellt werden."
34
 
35
- #: admin.php:320 admin.php:328
36
  msgid "Do you want to continue?"
37
- msgstr "Möchtest du fortsetzen?"
38
 
39
- #: admin.php:328
40
  msgid ""
41
  "This operation will delete all stored info from Wordpress Popular Posts' "
42
  "data tables and cannot be undone."
@@ -44,446 +47,357 @@ msgstr ""
44
  "Alle gespeicherten Daten von Wordpress Popular Posts werden gelöscht und "
45
  "können nicht wieder hergestellt werden."
46
 
47
- #: admin.php:342
48
  msgid "Stats"
49
- msgstr "Statistik"
50
 
51
- #: admin.php:343
 
 
 
 
 
 
 
 
52
  msgid "FAQ"
53
  msgstr "Häufige Fragen und Antworten"
54
 
55
- #: admin.php:344
56
- msgid "Tools"
57
- msgstr "Werkzeuge"
58
 
59
- #: admin.php:348
60
  msgid ""
61
  "Click on each tab to see what are the most popular entries on your blog in "
62
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
63
  "Popular Posts was installed."
64
  msgstr ""
65
  "Klicke auf jeden Reiter, um die beliebtesten Beiträge deines Blogs von den "
66
- "letzten 24 Stunden, dieser Woche, den letzten 30 Tagen oder allzeit seit der "
67
- "Installation von Wordpress Popular Posts zu sehen."
68
 
69
- #: admin.php:354
70
  msgid "Order by comments"
71
  msgstr "Sortiert nach Kommentaren"
72
 
73
- #: admin.php:355
74
  msgid "Order by views"
75
  msgstr "Sortiert nach Seitenaufrufen"
76
 
77
- #: admin.php:356
78
  msgid "Order by avg. daily views"
79
  msgstr "Sortierte nach durchschn. Tagesaufrufen"
80
 
81
- #: admin.php:358
 
 
 
 
82
  msgid "Limit"
83
  msgstr "Max. aufzulistende Einträge:"
84
 
85
- #: admin.php:360 admin.php:765 admin.php:809 admin.php:829 admin.php:881
 
 
 
 
 
86
  msgid "Apply"
87
  msgstr "Anwenden"
88
 
89
- #: admin.php:366 wordpress-popular-posts.php:376
90
  msgid "Last 24 hours"
91
  msgstr "Letzte 24 Stunden"
92
 
93
- #: admin.php:367 wordpress-popular-posts.php:377
94
  msgid "Last 7 days"
95
  msgstr "Letzte 7 Tage"
96
 
97
- #: admin.php:368 wordpress-popular-posts.php:378
98
  msgid "Last 30 days"
99
  msgstr "Letzte 30 Tage"
100
 
101
- #: admin.php:369 wordpress-popular-posts.php:379
102
  msgid "All-time"
103
  msgstr "Allzeithoch"
104
 
105
- #: admin.php:390
106
- msgid "Frequently Asked Questions"
107
- msgstr "Häufig gestellte Fragen"
108
-
109
- #: admin.php:394
110
- msgid "What does \"Title\" do?"
111
- msgstr "Was macht \"Titel\"?"
112
-
113
- #: admin.php:396
114
- msgid ""
115
- "It allows you to show a heading for your most popular posts listing. If left "
116
- "empty, no heading will be displayed at all."
117
- msgstr ""
118
- "Ermöglicht dir, eine Überschrift für die Auflistung anzugeben. Falls leer "
119
- "belassen wird keine Überschrift angezeigt."
120
 
121
- #: admin.php:399
122
- msgid "What is Time Range for?"
123
- msgstr "Für was steht die Zeitspanne?"
124
-
125
- #: admin.php:401
126
- msgid ""
127
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
128
- "comments within the selected time range."
129
- msgstr ""
130
- "Weist Wordpress Popular Posts an, alle Beiträge mit den meisten Aufrufen "
131
- "bzw. Kommentaren innerhalb der eingestellten Zeitspanne anzuzeigen."
132
 
133
- #: admin.php:404
134
- msgid "What is \"Sort post by\" for?"
135
- msgstr "Für was steht \"Sortiere Beiträge nach\"?"
136
 
137
- #: admin.php:406
138
  msgid ""
139
- "It allows you to decide whether to order your popular posts listing by total "
140
- "views, comments, or average views per day."
141
  msgstr ""
142
- "Ermöglicht dir zu entscheiden, ob die Listeneinträge nach absoluter Anzahl "
143
- "der Aufrufe, Kommentare oder durchschnittlichen Aufrufen pro Tag geordnet "
144
- "werden."
145
-
146
- #: admin.php:409
147
- msgid "What does \"Display post rating\" do?"
148
- msgstr "Was macht \"Zeige Bewertung\"?"
149
 
150
- #: admin.php:411
151
- msgid ""
152
- "If checked, Wordpress Popular Posts will show how your readers are rating "
153
- "your most popular posts. This feature requires having WP-PostRatings plugin "
154
- "installed and enabled on your blog for it to work."
155
- msgstr ""
156
- "Falls aktiviert, zeigt Wordpress Popular Posts an, wie deine Leser deine "
157
- "beliebtesten Beiträge bewertet haben. Diese Funktion erfordert die "
158
- "Installation und Aktivierung des Plugins WP-PostRatings."
159
 
160
- #: admin.php:414
161
- msgid "What does \"Shorten title\" do?"
162
- msgstr "Was macht \"Kürze den Titel\"?"
163
 
164
- #: admin.php:416
165
- msgid ""
166
- "If checked, all posts titles will be shortened to \"n\" characters. A new "
167
- "\"Shorten title to\" option will appear so you can set it to whatever you "
168
- "like."
169
- msgstr ""
170
- "Falls aktiviert, werden alle Titel auf \"n\" Zeichen gekürzt. Eine neue "
171
- "Auswahl \"Kürze den Titel\" wird erscheinen, mit der du die Titellänge "
172
- "setzen kannst."
173
 
174
- #: admin.php:419
175
- msgid "What does \"Display post excerpt\" do?"
176
- msgstr "Was macht \"Zeige Auszug\"?"
177
 
178
- #: admin.php:421
179
- msgid ""
180
- "If checked, Wordpress Popular Posts will also include a small extract of "
181
- "your posts in the list. Similarly to the previous option, you will be able "
182
- "to decide how long the post excerpt should be."
183
- msgstr ""
184
- "Falls aktiviert, zeigt Wordpress Popular Posts zusätzlich einen kurzen "
185
- "Auszug Deines Beitrags in der Liste an. Wie bei der vorhergehenden Auswahl "
186
- "ist es dir möglich, die Länge des Auszugs einzustellen."
187
 
188
- #: admin.php:424
189
- msgid "What does \"Keep text format and links\" do?"
190
- msgstr "Was macht \"Behalte Textformat und Links bei\"?"
191
 
192
- #: admin.php:426
193
- msgid ""
194
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
195
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
196
- "the excerpt. Hyperlinks will remain intact, too."
197
- msgstr ""
198
- "Falls aktiviert und wenn die Darstellung von Auszügen aktiviert ist, behält "
199
- "Wordpress Popular Posts die formatierenden Tags (z. B. fett, kursiv usw.) im "
200
- "Auszug. Auch Links bleiben unverändert."
201
 
202
- #: admin.php:429
203
- msgid "What is \"Post type\" for?"
204
- msgstr "Für was steht \"Post-Type\"?"
205
 
206
- #: admin.php:431
207
- msgid ""
208
- "This filter allows you to decide which post types to show on the listing. By "
209
- "default, it will retrieve only posts and pages (which should be fine for "
210
- "most cases)."
211
- msgstr ""
212
- "Dieser Filter erlaubt dir zu entscheiden, welche Post-Types aufgelistet "
213
- "werden. Per Voreinstellung werden nur Seiten und Beiträge angezeigt (was in "
214
- "den meisten Fällen ausreicht)."
215
 
216
- #: admin.php:434
217
- msgid "What is \"Category(ies) ID(s)\" for?"
218
- msgstr "Für was steht \"Kategorie(n)-ID(s)\"?"
219
 
220
- #: admin.php:436
221
- msgid ""
222
- "This filter allows you to select which categories should be included or "
223
- "excluded from the listing. A negative sign in front of the category ID "
224
- "number will exclude posts belonging to it from the list, for example. You "
225
- "can specify more than one ID with a comma separated list."
226
- msgstr ""
227
- "Dieser Filter erlaubt dir auszuwählen, welche Kategorien in der Auflistung "
228
- "eingeschlossen oder ausgeschlossen werden sollten. Ein Minus-Zeichen vor "
229
- "einer Kategorien-ID schließt Beiträge, die die ID zugewiesen bekamen, von "
230
- "der Liste aus. du kannst mehr als eine ID, mit Kommas getrennt, angeben."
231
-
232
- #: admin.php:439
233
- msgid "What is \"Author(s) ID(s)\" for?"
234
- msgstr "Für was steht \"Autor(en)-ID(s)\"?"
235
 
236
- #: admin.php:441
237
- msgid ""
238
- "Just like the Category filter, this one lets you filter posts by author ID. "
239
- "You can specify more than one ID with a comma separated list."
240
- msgstr ""
241
- "Wie beim Kategorienfilter kannst du auch Beiträge nach Autoren filtern. Du "
242
- "kannst mehr als eine Autoren-ID, getrennt durch Kommas, angeben."
243
 
244
- #: admin.php:444
245
- msgid "What does \"Display post thumbnail\" do?"
246
- msgstr "Was macht \"Zeige Vorschaubild\"?"
247
 
248
- #: admin.php:446
249
- msgid ""
250
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
251
- "of each post. You can set up the source of the thumbnail via Settings - "
252
- "Wordpress Popular Posts - Tools."
253
- msgstr ""
254
- "Falls aktiviert, versucht Wordpress Popular Posts, das Vorschaubild von "
255
- "jedem Beitrag darzustellen. Du kannst die Quelle des Vorschaubildes unter "
256
- "\"Werkzeuge\" einstellen."
257
 
258
- #: admin.php:449
259
- msgid "What does \"Display comment count\" do?"
260
- msgstr "Was macht \"Zeige Anzahl Kommentare\"?"
261
 
262
- #: admin.php:451
263
- msgid ""
264
- "If checked, Wordpress Popular Posts will display how many comments each "
265
- "popular post has got in the selected Time Range."
266
- msgstr ""
267
- "Falls aktiviert, zeigt Wordpress Popular Posts an, wie viele Kommentare "
268
- "jeder beliebte Beitrag in der eingestellten Zeitspanne erhielt."
269
 
270
- #: admin.php:454
271
- msgid "What does \"Display views\" do?"
272
- msgstr "Was macht \"Zeige Aufrufe\"?"
273
 
274
- #: admin.php:456
275
  msgid ""
276
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
277
- "post has gotten in the selected Time Range."
278
  msgstr ""
279
- "Falls aktiviert, zeigt Wordpress Popular Posts an, wie viele Seitenaufrufe "
280
- "jeder einzelne Beitrag in der eingestellten Zeitspanne erhielt."
281
 
282
- #: admin.php:459
283
- msgid "What does \"Display author\" do?"
284
- msgstr "Was macht \"Zeige Autor\"?"
285
 
286
- #: admin.php:461
287
- msgid ""
288
- "If checked, Wordpress Popular Posts will display the name of the author of "
289
- "each entry listed."
290
- msgstr ""
291
- "Falls aktiviert, zeigt Wordpress Popular Posts den Autorennamen in jedem "
292
- "Listeneintrag an."
293
 
294
- #: admin.php:464
295
- msgid "What does \"Display date\" do?"
296
- msgstr "Was macht \"Zeige Datum\"?"
297
 
298
- #: admin.php:466
299
  msgid ""
300
- "If checked, Wordpress Popular Posts will display the date when each popular "
301
- "posts was published."
 
302
  msgstr ""
303
- "Falls aktiviert, zeigt Wordpress Popular Posts das Veröffentlichungsdatum "
304
- "jeden Beitrags an."
305
-
306
- #: admin.php:469
307
- msgid "What does \"Use custom HTML Markup\" do?"
308
- msgstr "Was macht \"Verwende nutzerdefinierten HTML-Code\"?"
309
 
310
- #: admin.php:471
311
- msgid ""
312
- "If checked, you will be able to customize the HTML markup of your popular "
313
- "posts listing. For example, you can decide whether to wrap your posts in an "
314
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
315
- "for you!"
316
- msgstr ""
317
- "Falls aktiviert, ist es dir möglich, eigenen HTML-Code in der Auflistung "
318
- "einzusetzen. Du kannst z. B. bestimmen, ob die Einträge in einer "
319
- "ungeordneten Liste, geordneten Liste, einem DIV oder was auch immer gesetzt "
320
- "werden. Wenn du HTML und CSS kannst, ist diese Auswahl dein Freund."
321
 
322
- #: admin.php:474
323
- msgid "What are \"Content Tags\"?"
324
- msgstr "Was sind \"Content-Tags\"?"
325
 
326
- #: admin.php:476
327
- msgid ""
328
- "Content Tags are codes to display a variety of items on your popular posts "
329
- "custom HTML structure. For example, setting it to \"{title}: "
330
- "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
331
- "post here\". For more Content Tags, see \"List of parameters accepted by "
332
- "wpp_get_mostpopular() and the [wpp] shortcode\"."
333
- msgstr ""
334
- "Content-Tags sind Code-Schnipsel, um verschiedene Angaben über die "
335
- "beliebtesten Beiträge in deiner selbst definierten HTML-Struktur anzuzeigen. "
336
- "Zum Beispiel zeigt \"{title}: {summary}\" (ohne die Anführungszeichen) "
337
- "\"Überschrift: Auszug des Beitrags\" an. Für weitere Content-Tags siehe "
338
- "\"Liste der gültigen Parameter von wpp_gewt-mostpopular() und des [wpp]-"
339
- "Shortcodes\"."
340
 
341
- #: admin.php:479
342
- msgid "What are \"Template Tags\"?"
343
- msgstr "Was sind \"Template-Tags\"?"
344
 
345
- #: admin.php:481
346
- msgid ""
347
- "Template Tags are simply php functions that allow you to perform certain "
348
- "actions. For example, Wordpress Popular Posts currently supports two "
349
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
350
- msgstr ""
351
- "Template-Tags sind schlicht und einfach PHP-Funktionen, die bestimmten "
352
- "Aktionen ausführen. Zum Beispiel unterstützt Wordpress Popular Posts zwei "
353
- "verschiedene Template-Tags: wpp_get_mostpopular() und wpp_get_views()."
354
 
355
- #: admin.php:484
356
- msgid "What are the template tags that Wordpress Popular Posts supports?"
357
- msgstr "Welche Template-Tags unterstützt Wordpress Popular Posts?"
358
 
359
- #: admin.php:486
360
- msgid ""
361
- "The following are the template tags supported by Wordpress Popular Posts"
362
- msgstr "Die folgenden Template-Tags unterstützt Wordpress Popular Posts"
363
 
364
- #: admin.php:490
365
- msgid "Template tag"
366
- msgstr "Template-Tag"
367
 
368
- #: admin.php:491 admin.php:524
369
- msgid "What it does "
370
- msgstr "Was es macht"
371
 
372
- #: admin.php:492
373
- msgid "Parameters"
374
- msgstr "Parameter"
375
 
376
- #: admin.php:493 admin.php:527
377
- msgid "Example"
378
- msgstr "Beispiel"
379
 
380
- #: admin.php:499
381
- msgid ""
382
- "Similar to the widget functionality, this tag retrieves the most popular "
383
- "posts on your blog. This function also accepts parameters so you can "
384
- "customize your popular listing, but these are not required."
385
- msgstr ""
386
- "Ähnlich wie das Widget zeigt dieser Tag die beliebtesten Beiträge Deines "
387
- "Blogs an. Diese Funktion akzeptiert auch Parameter, so dass du die "
388
- "Auflistung nach deinen Vorstellungen setzen kannst, aber sie sind sind "
389
- "erforderlich."
390
 
391
- #: admin.php:500
392
  msgid ""
393
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
394
- "the [wpp] shortcode\"."
 
 
395
  msgstr ""
396
- "Bitte schlage nach bei \"Liste der gültigen Parameter von wpp_gewt-"
397
- "mostpopular() und des [wpp]-Shortcodes\"."
 
 
398
 
399
- #: admin.php:505
 
400
  msgid ""
401
- "Displays the number of views of a single post. Post ID is required or it "
402
- "will return false."
 
 
 
403
  msgstr ""
404
- "Zeigt die Anzahl der Aufrufe eines einzelnen Beitrags an. Die Post-ID ist "
405
- "erforderlich, andersfalls wird false zurückgegeben."
406
-
407
- #: admin.php:506
408
- msgid "Post ID"
409
- msgstr "Post-ID"
410
 
411
- #: admin.php:513
412
- msgid "What are \"shortcodes\"?"
413
- msgstr "Was sind \"Shortcodes\"?"
414
 
415
- #: admin.php:515
416
- msgid ""
417
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
418
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
419
- "shortcode [wpp] will let you insert a list of the most popular posts in "
420
- "posts content and pages too! For more information about shortcodes, please "
421
- "visit"
422
  msgstr ""
423
- "Shortcodes sind vergleichbar mit BB-Codes. Sie erlauben uns, eine PHP-"
424
- "Funktion aufzurufen durch einen einfachen Text wie [shortcode]. Der "
425
- "Shortcode [wpp] fügt die Liste der beliebtesten Beiträge in den Text sowohl "
426
- "von Beiträgen als auch Seiten ein. Für mehr Informationen über Shortcodes "
427
- "besuche"
428
 
429
- #: admin.php:517
430
- msgid ""
431
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
 
 
 
432
  msgstr ""
433
- "Liste der gültigen Parameter von wpp_gewt-mostpopular() und des [wpp]-"
434
- "Shortcodes"
435
 
436
- #: admin.php:519
 
437
  msgid ""
438
- "These parameters can be used by both the template tag wpp_get_most_popular() "
439
- "and the shortcode [wpp]."
 
440
  msgstr ""
441
- "Diese Parameter können sowohl im Template-Tag wpp_get_most_popular() als "
442
- "auch im Shortcode [wpp] eingesetzt werden."
443
 
444
- #: admin.php:523
445
  msgid "Parameter"
446
  msgstr "Parameter"
447
 
448
- #: admin.php:525
 
 
 
 
449
  msgid "Possible values"
450
  msgstr "Erlaubte Werte"
451
 
452
- #: admin.php:526
453
  msgid "Defaults to"
454
  msgstr "Voreinstellung"
455
 
456
- #: admin.php:533
 
 
 
 
457
  msgid "Sets a heading for the list"
458
  msgstr "Bestimmt die Überschrift der Liste"
459
 
460
- #: admin.php:534 admin.php:541 admin.php:548 admin.php:576 admin.php:583
461
- #: admin.php:590 admin.php:597 admin.php:674 admin.php:688 admin.php:695
462
- #: admin.php:709 admin.php:716
 
463
  msgid "Text string"
464
  msgstr "Zeichenkette"
465
 
466
- #: admin.php:535 wordpress-popular-posts.php:123
467
  msgid "Popular Posts"
468
  msgstr "Beliebteste Beiträge"
469
 
470
- #: admin.php:540
471
  msgid "Set the opening tag for the heading of the list"
472
  msgstr "Bestimmt den öffnenden Tag der Listenüberschrift"
473
 
474
- #: admin.php:547
475
  msgid "Set the closing tag for the heading of the list"
476
  msgstr "Bestimmt den schließenden Tag der Listenüberschrift"
477
 
478
- #: admin.php:554
479
  msgid "Sets the maximum number of popular posts to be shown on the listing"
480
  msgstr "Bestimmt die maximale Anzahl der beliebten Beiträge in der Auflistung"
481
 
482
- #: admin.php:555 admin.php:604 admin.php:611 admin.php:625 admin.php:632
 
483
  msgid "Positive integer"
484
  msgstr "Positive Ganzzahl"
485
 
486
- #: admin.php:561
487
  msgid ""
488
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
489
  "the time range specified by you"
@@ -491,19 +405,28 @@ msgstr ""
491
  "Weist Wordpress Popular Posts an, die beliebtesten Beiträge innerhalt der "
492
  "eingestellten Zeitspanne anzuzeigen."
493
 
494
- #: admin.php:568
 
 
 
 
 
 
 
 
 
495
  msgid "Sets the sorting option of the popular posts"
496
  msgstr "Bestimmt die Auswahl der Reihenfolge der beliebten Beiträge"
497
 
498
- #: admin.php:569
499
  msgid "(for average views per day)"
500
  msgstr "(für durchschn. Aufrufe pro Tag)"
501
 
502
- #: admin.php:575
503
  msgid "Defines the type of posts to show on the listing"
504
  msgstr "Bestimmt die Art der Dokumente, die aufgelistet werden"
505
 
506
- #: admin.php:582
507
  msgid ""
508
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
509
  "form the listing."
@@ -511,11 +434,11 @@ msgstr ""
511
  "Falls gesetzt, zeigt Wordpress Popular Posts die Beiträge und Seiten anhand "
512
  "ihrer angegebener ID(s) in der Liste nicht an."
513
 
514
- #: admin.php:584 admin.php:591 admin.php:598
515
  msgid "None"
516
  msgstr "nichts"
517
 
518
- #: admin.php:589
519
  msgid ""
520
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
521
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
@@ -525,7 +448,7 @@ msgstr ""
525
  "angegebenen Kategorie-IDs zugeordnet sind, an. Ein Minus-Zeichen vor der ID "
526
  "schließt die Beiträge dieser Kategorie aus."
527
 
528
- #: admin.php:596
529
  msgid ""
530
  "If set, Wordpress Popular Posts will retrieve all entries created by "
531
  "specified author(s) ID(s)."
@@ -533,7 +456,7 @@ msgstr ""
533
  "Falls gesetzt, wird Wordpress Popular Posts alle Einträge anhand angegebener "
534
  "Autor(en)-ID(s) ausgeben."
535
 
536
- #: admin.php:603
537
  msgid ""
538
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
539
  "characters whenever possible"
@@ -541,7 +464,15 @@ msgstr ""
541
  "Falls gesetzt, kürzt Wordpress Popular Posts jeden Titel, wenn möglich, auf "
542
  "\"n\" Zeichen."
543
 
544
- #: admin.php:610
 
 
 
 
 
 
 
 
545
  msgid ""
546
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
547
  "characters long from the content of each post listed as popular"
@@ -549,7 +480,7 @@ msgstr ""
549
  "Falls gesetzt, zeigt Wordpress Popular Posts einen Auszug von \"n\" "
550
  "Buchstaben Länge bei jedem Beitrag an."
551
 
552
- #: admin.php:617
553
  msgid ""
554
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
555
  "italic, etc) and hyperlinks found in the excerpt"
@@ -557,7 +488,15 @@ msgstr ""
557
  "Falls gesetzt, behält Wordpress Popular Posts die formatierenden Tags (fett, "
558
  "kursiv usw.) und die Links im Auszug bei."
559
 
560
- #: admin.php:624
 
 
 
 
 
 
 
 
561
  msgid ""
562
  "If set, and if your current server configuration allows it, you will be able "
563
  "to display thumbnails of your posts. This attribute sets the width for "
@@ -567,7 +506,7 @@ msgstr ""
567
  "Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
568
  "bestimmt die Breite der Vorschaubilder."
569
 
570
- #: admin.php:631
571
  msgid ""
572
  "If set, and if your current server configuration allows it, you will be able "
573
  "to display thumbnails of your posts. This attribute sets the height for "
@@ -577,7 +516,7 @@ msgstr ""
577
  "Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
578
  "bestimmt die Höhe der Vorschaubilder."
579
 
580
- #: admin.php:638
581
  msgid ""
582
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
583
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
@@ -586,7 +525,7 @@ msgstr ""
586
  "Falls gesetzt und wenn das Plugin WP-PostRatings in Deinem Blog läuft, zeigt "
587
  "Wordpress Popular Posts die Bewertungen der Nutzer an."
588
 
589
- #: admin.php:645
590
  msgid ""
591
  "If set, Wordpress Popular Posts will show how many comments each popular "
592
  "post has got until now"
@@ -594,7 +533,7 @@ msgstr ""
594
  "Falls gesetzt, zeigt Wordpress Popular Posts an, wie viele Kommentare jeder "
595
  "Beitrag bis jetzt erhielt."
596
 
597
- #: admin.php:652
598
  msgid ""
599
  "If set, Wordpress Popular Posts will show how many views each popular post "
600
  "has got since it was installed"
@@ -602,7 +541,7 @@ msgstr ""
602
  "Falls gesetzt, zeigt Wordpress Popular Posts an, wie viele Aufrufe jeder "
603
  "Beitrag seit der Installation erhielt."
604
 
605
- #: admin.php:659
606
  msgid ""
607
  "If set, Wordpress Popular Posts will show who published each popular post on "
608
  "the list"
@@ -610,7 +549,7 @@ msgstr ""
610
  "Falls gesetzt, zeigt Wordpress Popular Posts an, wer welchen Beitrag "
611
  "veröffentlicht hat."
612
 
613
- #: admin.php:666
614
  msgid ""
615
  "If set, Wordpress Popular Posts will display the date when each popular post "
616
  "on the list was published"
@@ -618,54 +557,54 @@ msgstr ""
618
  "Falls gesetzt, zeigt Wordpress Popular Posts das Veröffentlichungsdatum "
619
  "jeden Beitrags in der Liste an."
620
 
621
- #: admin.php:673
622
  msgid "Sets the date format"
623
  msgstr "Bestimmt das Datumsformat"
624
 
625
- #: admin.php:680
626
  msgid "If set, Wordpress Popular Posts will display the category"
627
  msgstr "Falls gesetzt, zeigt Wordpress Popular Posts die Kategorie an"
628
 
629
- #: admin.php:687
630
  msgid "Sets the opening tag for the listing"
631
- msgstr "Bestimmt den öffnenden Tag der Auflistung"
632
 
633
- #: admin.php:694
634
  msgid "Sets the closing tag for the listing"
635
- msgstr "Bestimmt den schließenden Tag der Auflistung"
636
 
637
- #: admin.php:701
638
  msgid "Sets the HTML structure of each post"
639
  msgstr "Setzt die HTML-Struktur jeden Beitrags"
640
 
641
- #: admin.php:702
642
  msgid "Text string, custom HTML"
643
  msgstr "Zeichenkette, benutzerdefiniertes HTML"
644
 
645
- #: admin.php:702
646
  msgid "Available Content Tags"
647
  msgstr "Verfügbare Content-Tags"
648
 
649
- #: admin.php:702
650
  msgid "displays thumbnail linked to post/page"
651
  msgstr "zeigt verlinktes Vorschaubild des Beitrags/der Seite an"
652
 
653
- #: admin.php:702
654
  msgid "displays linked post/page title"
655
  msgstr "zeigt den verlinkten Titel des Beitrags/der Seiten an"
656
 
657
- #: admin.php:702
658
  msgid ""
659
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
660
  msgstr ""
661
  "zeigt den Auszug (excerpt) des Beitrags/der Seite an, erfordert "
662
  "excerpt_length größer als 0"
663
 
664
- #: admin.php:702
665
  msgid "displays the default stats tags"
666
  msgstr "zeigt die standard&shy;mäßigen Statistik-Tags an"
667
 
668
- #: admin.php:702
669
  msgid ""
670
  "displays post/page current rating, requires WP-PostRatings installed and "
671
  "enabled"
@@ -673,280 +612,376 @@ msgstr ""
673
  "zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
674
  "installierte und aktivierte Plugin WP-PostRatings"
675
 
676
- #: admin.php:702
 
 
 
 
 
 
 
 
677
  msgid "outputs the URL of the post/page"
678
  msgstr "gibt die URL des Beitrags/der Seite aus"
679
 
680
- #: admin.php:702
681
  msgid "displays post/page title, no link"
682
  msgstr "zeigt den Titel des Beitrags/der Seite an, ohne Link"
683
 
684
- #: admin.php:702
685
  msgid "displays linked author name, requires stats_author=1"
686
  msgstr "zeigt den verlinkten Autoren&shy;namen an, erfordert stats_author=1"
687
 
688
- #: admin.php:702
689
  msgid "displays linked category name, requires stats_category=1"
690
  msgstr ""
691
  "zeigt den verlinkten Kategorien&shy;namen an, erfordert stats_category=1"
692
 
693
- #: admin.php:702
694
  msgid "displays views count only, no text"
695
  msgstr "zeigt nur die Anzahl an, ohne Text"
696
 
697
- #: admin.php:702
698
  msgid "displays comments count only, no text, requires stats_comments=1"
699
  msgstr ""
700
  "zeigt nur die Anzahl der Kom&shy;men&shy;tare an, ohne Text, erfordert "
701
  "stats_comment=1"
702
 
703
- #: admin.php:708
704
- msgid "Sets the opening tag for each item on the list"
705
- msgstr "Bestimmt den öffnenden Tag für jeden Listeneintrag"
 
 
 
 
 
 
 
 
706
 
707
- #: admin.php:715
708
- msgid "Sets the closing tag for each item on the list"
709
- msgstr "Bestimmt den schließenden Tag für jeden Listeneintrag"
710
 
711
- #: admin.php:722
712
  msgid ""
713
- "If set, this option will allow you to decide the order of the contents "
714
- "within each item on the list."
715
  msgstr ""
716
- "Falls gesetzt, kannst du die Reihenfolge der Einträge in der Liste bestimmen."
 
 
 
 
 
717
 
718
- #: admin.php:729
719
  msgid ""
720
- "If set, you can decide the order of each content inside a single item on the "
721
- "list. For example, setting it to \"{title}: {summary}\" would output "
722
- "something like \"Your Post Title: summary here\". This attribute requires "
723
- "do_pattern to be true."
724
- msgstr ""
725
- "Falls gesetzt, kannst du die Reihenfolge des Inhalts innerhalbs eines "
726
- "einzelnen Listeneintrags einstellen. Zum Beispiel zeigt \"{title}: "
727
- "{summary}\" (ohne Anführungszeichen) sowas wie \"Überschrift: Text des "
728
- "Auszugs\" an. Dieses Attribut erfordert, dass do_pattern auf 1 (true) "
729
- "gesetzt ist."
730
-
731
- #: admin.php:730
732
- msgid "Available tags"
733
- msgstr "Verfügbare Tags"
734
-
735
- #: admin.php:745
736
  msgid ""
737
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
 
 
738
  msgstr ""
739
- "Hier findest du einen überschaubaren Bereich an Einstellungen, um Wordpress "
740
- "Popular Posts zu optimieren."
 
741
 
742
- #: admin.php:747
743
- msgid "Views logging behavior"
744
- msgstr "Zählverhalten"
745
 
746
- #: admin.php:753
747
- msgid "Log views from"
748
- msgstr "Erfasse Aufrufe von"
 
 
 
 
 
 
749
 
750
- #: admin.php:756
751
- msgid "Visitors only"
752
- msgstr "jedem außer eingeloggten Benutzern"
753
 
754
- #: admin.php:757
755
- msgid "Everyone"
756
- msgstr "jedem"
 
 
 
 
 
 
757
 
758
- #: admin.php:774
759
- msgid "Thumbnail source"
760
- msgstr "Quelle der Vorschaubilder"
761
 
762
- #: admin.php:780
763
- msgid "Pick image from"
764
- msgstr "Wähle Bildquelle"
 
 
 
 
 
 
765
 
766
- #: admin.php:783
767
- msgid "Featured image"
768
- msgstr "Beitragsbild"
769
 
770
- #: admin.php:784
771
- msgid "First image on post"
772
- msgstr "Erstes Bild im Beitrag"
 
 
 
 
 
 
773
 
774
- #: admin.php:785
775
- msgid "Custom field"
776
- msgstr "Benutzerdefiniertes Feld"
777
 
778
- #: admin.php:788
779
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
780
- msgstr "Woher kommen die Vorschaubilder?"
 
 
 
 
 
 
 
 
781
 
782
- #: admin.php:792
783
- msgid "Custom field name"
784
- msgstr "Name des benutzerdefiniertes Feldes"
785
 
786
- #: admin.php:798
787
- msgid "Resize image from Custom field?"
788
- msgstr "Bild aus benutzerdefiniertem Feld skalieren?"
 
 
 
 
789
 
790
- #: admin.php:801
791
- msgid "No, I will upload my own thumbnail"
792
- msgstr "Nein, ich lade mein eigenes Vorschaubild hoch"
793
 
794
- #: admin.php:802
795
- msgid "Yes"
796
- msgstr "Ja"
 
 
 
 
 
 
797
 
798
- #: admin.php:819
799
- msgid "Wordpress Popular Posts Stylesheet"
800
- msgstr "Wordpress Popular Posts Stylesheet"
801
 
802
- #: admin.php:820
803
  msgid ""
804
- "By default, the plugin includes a stylesheet called wpp.css which you can "
805
- "use to style your popular posts listing. If you wish to use your own "
806
- "stylesheet or do not want it to have it included in the header section of "
807
- "your site, use this."
808
  msgstr ""
809
- "Als Voreinstellung schließt dieses Plugin eine Stylesheet-Datei wpp.css ein. "
810
- "Du kannst mit ihr die Auflistung beliebter Beiträge gestalten. Falls du dein "
811
- "eigenes Stylesheet verwenden oder die wpp.css nicht im HEAD-Abschnitt "
812
- "einbinden willst, deaktiviere die Einbindung."
813
-
814
- #: admin.php:825 admin.php:844
815
- msgid "Enabled"
816
- msgstr "Aktiviert"
817
 
818
- #: admin.php:826 admin.php:843
819
- msgid "Disabled"
820
- msgstr "Deaktiviert"
821
 
822
- #: admin.php:835
823
- msgid "Data tools"
824
- msgstr "Datenwerkzeuge"
 
 
 
 
825
 
826
- #: admin.php:840
827
- msgid "Ajaxify widget"
828
- msgstr "Widget via Ajax"
829
 
830
- #: admin.php:848
831
  msgid ""
832
- "If you are using a caching plugin such as WP Super Cache, enabling this "
833
- "feature will keep the popular list from being cached by it"
834
  msgstr ""
835
- "Falls du ein Cache-Plugin wie z. B. WP Super Cache verwendest, verhindert "
836
- "das Aktivieren, dass die Liste nicht gecachet wird und stets aktuell ist."
837
 
838
- #: admin.php:852
839
- msgid "Popular posts listing refresh interval"
840
- msgstr "Aktualisierungsintervall der Liste"
841
 
842
- #: admin.php:855
843
- msgid "Live"
844
- msgstr "Echtzeit"
 
 
 
 
845
 
846
- #: admin.php:856
847
- msgid "Custom interval"
848
- msgstr "Benutzerdefiniertes Intervall"
849
 
850
- #: admin.php:860
851
  msgid ""
852
- "Sets how often the listing should be updated. For most sites the Live option "
853
- "should be fine, however if you are experiencing slowdowns or your blog gets "
854
- "a lot of visitors then you might want to change the refresh rate"
855
  msgstr ""
856
- "Stellt ein, wie oft die Liste aktualisiert wird. Für die meisten Websites "
857
- "erreicht die Echtzeit-Einstellung gute Werte. Solltest du jedoch "
858
- "Verlangsamungen feststellen oder deine Website erreicht viele Besucher, "
859
- "solltest du die Aktualisierungsrate ändern."
860
 
861
- #: admin.php:864
862
- msgid "Refresh interval"
863
- msgstr "Benutzerdefiniertes Intervall"
864
 
865
- #: admin.php:868
866
- msgid "Hour(s)"
867
- msgstr "Stunde(n)"
 
 
 
 
 
 
 
 
868
 
869
- #: admin.php:869
870
- msgid "Day(s)"
871
- msgstr "Tag(e)"
872
 
873
- #: admin.php:870
874
- msgid "Week(s)"
875
- msgstr "Woche(n)"
 
 
 
 
 
 
 
 
 
 
 
 
876
 
877
- #: admin.php:871
878
- msgid "Month(s)"
879
- msgstr "Monat(e)"
880
 
881
- #: admin.php:872
882
- msgid "Year(s)"
883
- msgstr "Jahr(e)"
 
 
 
 
 
 
884
 
885
- #: admin.php:875
886
- msgid "Really? That long?"
887
- msgstr "Wirklich? So lang?"
888
 
889
- #: admin.php:890
890
  msgid ""
891
- "Wordpress Popular Posts maintains data in two separate tables: one for "
892
- "storing the most popular entries in the past 30 days (from now on, \"cache"
893
- "\"), and another one to keep the All-time data (from now on, \"historical "
894
- "data\" or just \"data\"). If for some reason you need to clear the cache "
895
- "table, or even both historical and cache tables, please use the buttons "
896
- "below to do so."
897
- msgstr ""
898
- "Wordpress Popular Posts speichert Daten in zwei getrennten Tabellen: eine "
899
- "für die beliebtesten Beiträge der letzten 30 Tage (auch: \"Cache-Tabelle\"), "
900
- "und die andere für die Allzeit-Daten (auch \"historische Daten\" oder "
901
- "einfach \"Datentabelle\"). Solltest du aus verschiedenen Gründen die Cache-"
902
- "Tabelle leeren wollen oder sowohl die Datentabelle als auch die Cache-"
903
- "Tabelle, nutze die folgenden Schaltflächen."
904
 
905
- #: admin.php:891
906
- msgid "Empty cache"
907
- msgstr "Cache leeren"
908
 
909
- #: admin.php:891
910
- msgid "Use this button to manually clear entries from WPP cache only"
 
 
 
 
911
  msgstr ""
912
- "Nutze diese Schaltfläche, um die Cache-Tabelle von Wordpress Popular Posts "
913
- "zu leeren."
 
 
914
 
915
- #: admin.php:892
916
- msgid "Clear all data"
917
- msgstr "Alle Daten löschen"
 
 
 
918
 
919
- #: admin.php:892
920
- msgid "Use this button to manually clear entries from all WPP data tables"
 
 
921
  msgstr ""
922
- "Nutze diese Schaltfläche, um alle Einträge in der Datentabelle von Wordpress "
923
- "Popular Posts zu löschen."
924
 
925
- #: admin.php:898
926
- msgid "Do you like this plugin?"
927
- msgstr "Gefällt dir dieses Plugin?"
928
 
929
- #: admin.php:898
930
- msgid "Rate Wordpress Popular Posts!"
931
- msgstr "Bewerte Wordpress Popular Posts!"
932
 
933
- #: admin.php:898
934
- msgid "Rate it"
935
- msgstr "Bewerte es"
 
 
 
 
 
 
 
 
 
 
 
936
 
937
- #: admin.php:898
938
- msgid "on the official Plugin Directory!"
939
- msgstr "im offiziellen Plugin-Verzeichnis!"
 
940
 
941
- #: admin.php:899
942
- msgid "Do you love this plugin?"
943
- msgstr "Magst du dieses Plugin?"
944
 
945
- #: admin.php:899 admin.php:900
946
- msgid "Buy me a beer!"
947
- msgstr "Spende mir ein Bier!"
948
 
949
- #: admin.php:899
950
  msgid ""
951
  "Each donation motivates me to keep releasing free stuff for the Wordpress "
952
  "community!"
@@ -954,198 +989,260 @@ msgstr ""
954
  "Jede Spende motiviert mich, der Wordpress-Gemeinschaft nützliches Zeugs "
955
  "weiterhin kostenlos zur Verfügung zu stellen!"
956
 
957
- #: wordpress-popular-posts.php:126
958
- msgid "The most Popular Posts on your blog."
959
- msgstr "Die beliebtesten Beiträge deines Blogs."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
960
 
961
- #: wordpress-popular-posts.php:370
962
- msgid "Title:"
963
  msgstr "Titel:"
964
 
965
- #: wordpress-popular-posts.php:370 wordpress-popular-posts.php:372
966
- #: wordpress-popular-posts.php:374 wordpress-popular-posts.php:382
967
- #: wordpress-popular-posts.php:393 wordpress-popular-posts.php:395
968
- #: wordpress-popular-posts.php:399 wordpress-popular-posts.php:403
969
- #: wordpress-popular-posts.php:412 wordpress-popular-posts.php:426
970
- #: wordpress-popular-posts.php:438 wordpress-popular-posts.php:439
971
- #: wordpress-popular-posts.php:440 wordpress-popular-posts.php:441
972
- #: wordpress-popular-posts.php:451 wordpress-popular-posts.php:457
973
  msgid "What is this?"
974
  msgstr "Was ist das?"
975
 
976
- #: wordpress-popular-posts.php:372
977
- msgid "Show up to:"
978
  msgstr "Zeige bis zu:"
979
 
980
- #: wordpress-popular-posts.php:373
981
  msgid "posts"
982
  msgstr "Beiträge"
983
 
984
- #: wordpress-popular-posts.php:374
985
- msgid "Time Range:"
986
- msgstr "Zeitspanne"
987
-
988
- #: wordpress-popular-posts.php:382
989
- msgid "Sort posts by:"
990
  msgstr "Sortiere Beiträge nach:"
991
 
992
- #: wordpress-popular-posts.php:384
993
  msgid "Comments"
994
  msgstr "Kommentaren"
995
 
996
- #: wordpress-popular-posts.php:385
997
  msgid "Total views"
998
  msgstr "Zahl der Aufrufe"
999
 
1000
- #: wordpress-popular-posts.php:386
1001
  msgid "Avg. daily views"
1002
  msgstr "Durchschn. tägl. Aufrufe"
1003
 
1004
- #: wordpress-popular-posts.php:391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1005
  msgid "Posts settings"
1006
  msgstr "Einstellungen für Beiträge"
1007
 
1008
- #: wordpress-popular-posts.php:393
1009
  msgid "Display post rating"
1010
  msgstr "Zeige Bewertung"
1011
 
1012
- #: wordpress-popular-posts.php:395
1013
  msgid "Shorten title"
1014
  msgstr "Kürze den Titel"
1015
 
1016
- #: wordpress-popular-posts.php:397
1017
  msgid "Shorten title to"
1018
  msgstr "Kürze den Titel auf"
1019
 
1020
- #: wordpress-popular-posts.php:397 wordpress-popular-posts.php:404
1021
  msgid "characters"
1022
  msgstr "Buchstaben"
1023
 
1024
- #: wordpress-popular-posts.php:399
 
 
 
 
1025
  msgid "Display post excerpt"
1026
  msgstr "Zeige Auszug"
1027
 
1028
- #: wordpress-popular-posts.php:402
1029
- msgid "Excerpt Properties"
1030
- msgstr "Eigenschaften des Auszugs"
1031
-
1032
- #: wordpress-popular-posts.php:403
1033
  msgid "Keep text format and links"
1034
  msgstr "Behalte Textformat und Links bei"
1035
 
1036
- #: wordpress-popular-posts.php:404
1037
- msgid "Excerpt length:"
1038
  msgstr "Länge des Auszugs:"
1039
 
1040
- #: wordpress-popular-posts.php:412
1041
- msgid "Filters:"
1042
- msgstr "Filter:"
1043
-
1044
- #: wordpress-popular-posts.php:413
1045
- msgid "Post type(s):"
1046
- msgstr "Post-Type(s)"
1047
-
1048
- #: wordpress-popular-posts.php:415
1049
- msgid "Post(s) ID(s) to exclude:"
1050
- msgstr "Post-IDs, die ausgeschlossen werden:"
1051
-
1052
- #: wordpress-popular-posts.php:417
1053
- msgid "Category(ies) ID(s):"
1054
- msgstr "Kategorie(n)-ID(s):"
1055
-
1056
- #: wordpress-popular-posts.php:419
1057
- msgid "Author(s) ID(s):"
1058
- msgstr "Autor(en)-ID(s):"
1059
-
1060
- #: wordpress-popular-posts.php:425
1061
- msgid "Thumbnail settings"
1062
- msgstr "Einstellungen für die Vorschaubilder"
1063
-
1064
- #: wordpress-popular-posts.php:426
1065
  msgid "Display post thumbnail"
1066
  msgstr "Zeige Vorschaubild"
1067
 
1068
- #: wordpress-popular-posts.php:428
1069
- msgid "Width:"
1070
  msgstr "Breite:"
1071
 
1072
- #: wordpress-popular-posts.php:429 wordpress-popular-posts.php:431
1073
  msgid "px"
1074
  msgstr "px"
1075
 
1076
- #: wordpress-popular-posts.php:430
1077
- msgid "Height:"
1078
  msgstr "Höhe:"
1079
 
1080
- #: wordpress-popular-posts.php:437
1081
  msgid "Stats Tag settings"
1082
  msgstr "Einstellungen des Statistik-Tags"
1083
 
1084
- #: wordpress-popular-posts.php:438
1085
  msgid "Display comment count"
1086
  msgstr "Zeige Anzahl Kommentare"
1087
 
1088
- #: wordpress-popular-posts.php:439
1089
  msgid "Display views"
1090
  msgstr "Zeige Aufrufe"
1091
 
1092
- #: wordpress-popular-posts.php:440
1093
  msgid "Display author"
1094
  msgstr "Zeige Autor"
1095
 
1096
- #: wordpress-popular-posts.php:441
1097
  msgid "Display date"
1098
  msgstr "Zeige Datum"
1099
 
1100
- #: wordpress-popular-posts.php:444
1101
  msgid "Date Format"
1102
  msgstr "Datumsformat"
1103
 
1104
- #: wordpress-popular-posts.php:451
 
 
 
 
1105
  msgid "Display category"
1106
  msgstr "Zeige Kategorie"
1107
 
1108
- #: wordpress-popular-posts.php:456
1109
  msgid "HTML Markup settings"
1110
  msgstr "Einstellungen des HTML-Codes"
1111
 
1112
- #: wordpress-popular-posts.php:457
1113
  msgid "Use custom HTML Markup"
1114
  msgstr "Verwende nutzerdefinierten HTML-Code"
1115
 
1116
- #: wordpress-popular-posts.php:460
1117
- msgid "Before / after title:"
1118
- msgstr "Vor / nach dem Titel"
1119
 
1120
- #: wordpress-popular-posts.php:462
1121
- msgid "Before / after Popular Posts:"
1122
- msgstr "Vor / nach Beliebte Beiträge"
1123
 
1124
- #: wordpress-popular-posts.php:465
1125
- msgid "Post HTML Markup:"
1126
  msgstr "Zeige HTML-Code"
1127
 
1128
- #: wordpress-popular-posts.php:652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1129
  msgid "Success! The cache table has been cleared!"
1130
  msgstr "Erfolg: Die Cache-Tabelle wurde geleert!"
1131
 
1132
- #: wordpress-popular-posts.php:654
1133
  msgid "Error: cache table does not exist."
1134
  msgstr "Fehler: Cache-Tabelle ist nicht vorhanden."
1135
 
1136
- #: wordpress-popular-posts.php:660
1137
  msgid "Success! All data have been cleared!"
1138
  msgstr "Erfolg: Alle Daten wurden gelöscht!"
1139
 
1140
- #: wordpress-popular-posts.php:662
1141
  msgid "Error: one or both data tables are missing."
1142
  msgstr "Fehler: Eine oder beide Tabellen fehlen."
1143
 
1144
- #: wordpress-popular-posts.php:665
1145
  msgid "Invalid action."
1146
  msgstr "Ungültige Aktion."
1147
 
1148
- #: wordpress-popular-posts.php:668
1149
  msgid ""
1150
  "Sorry, you do not have enough permissions to do this. Please contact the "
1151
  "site administrator for support."
@@ -1153,66 +1250,153 @@ msgstr ""
1153
  "Du hast nicht die erforderlichen Rechte um das zu tun. Bitte wende dich an "
1154
  "den Administrator für weitere Hilfe."
1155
 
1156
- #: wordpress-popular-posts.php:1102
1157
  msgid "Sorry. No data so far."
1158
  msgstr "Noch keine Daten vorhanden."
1159
 
1160
- #: wordpress-popular-posts.php:1158
1161
- msgid "comment"
1162
- msgstr "Komentar"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1163
 
1164
- #: wordpress-popular-posts.php:1158
1165
- msgid "comments"
1166
- msgstr "Komentare"
1167
-
1168
- #: wordpress-popular-posts.php:1166
1169
- msgid "view per day"
1170
- msgstr "Aufruf pro Tag"
1171
-
1172
- #: wordpress-popular-posts.php:1166
1173
- msgid "views per day"
1174
- msgstr "Aufrufe pro Tag"
1175
-
1176
- #: wordpress-popular-posts.php:1170
1177
- msgid "view"
1178
- msgstr "Aufruf"
1179
-
1180
- #: wordpress-popular-posts.php:1170
1181
- msgid "views"
1182
- msgstr "Aufrufe"
1183
-
1184
- #: wordpress-popular-posts.php:1179
1185
- msgid "by"
1186
- msgstr "von"
1187
-
1188
- #: wordpress-popular-posts.php:1183
1189
- msgid "posted on"
1190
- msgstr "veröffentlicht am"
1191
-
1192
- #: wordpress-popular-posts.php:1191
1193
- msgid "under"
1194
- msgstr "in"
1195
-
1196
- #: wordpress-popular-posts.php:1700
1197
- msgid ""
1198
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
1199
- "at least version 2.8 to function correctly. Please update your blog via "
1200
- "Tools &gt; Upgrade."
1201
- msgstr ""
1202
- "Deine Wordpress-Version ist zu alt. Das Plugin\"Wordpress Popular Posts\" "
1203
- "benötigt mindestens Version 2.8. Bitte aktualisiere Wordpress via Dashboard "
1204
- "&gt; Aktualisieren."
1205
-
1206
- #: wordpress-popular-posts.php:1709
1207
- msgid ""
1208
- "Your PHP installation is too old. Wordpress Popular Posts Plugin requires at "
1209
- "least PHP v5.2.0 to function correctly. Please contact your hosting provider "
1210
- "and ask them to upgrade PHP to 5.2.x or higher."
1211
- msgstr ""
1212
- "Deine PHP-Version ist zu alt. Das Plugin\"Wordpress Popular Posts\" benötigt "
1213
- "mindestens PHP-Version 5.2.0 für die einwandfreie Funktion. Bitte nehme "
1214
- "Kontakt mit deinem Hosting-Provider auf und bitte ihn, PHP auf v5.2.x oder "
1215
- "höher zu aktualisieren."
1216
 
1217
  #~ msgid "What does \"Use content formatting tags\" do?"
1218
  #~ msgstr "Was macht \"Verwende textformatierende Tags\"?"
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-05-27 18:12-0430\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
8
+ "Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
9
+ "Language: de_DE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-SourceCharset: UTF-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
+ "X-Generator: Poedit 1.6.5\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SearchPath-1: ..\n"
20
 
21
+ #: ../views/admin.php:23 ../views/admin.php:32 ../views/admin.php:46
22
+ #: ../views/admin.php:67
23
  msgid "Settings saved."
24
  msgstr "Einstellungen gespeichert"
25
 
26
+ #: ../views/admin.php:38
27
  msgid "Please provide the name of your custom field."
28
  msgstr "Gebe einen Namen für das benutzerdefinierte Feld an."
29
 
30
+ #: ../views/admin.php:84
31
  msgid ""
32
  "This operation will delete all entries from Wordpress Popular Posts' cache "
33
  "table and cannot be undone."
35
  "Alle Einträge im Cache werden gelöscht und können nicht mehr wieder "
36
  "hergestellt werden."
37
 
38
+ #: ../views/admin.php:84 ../views/admin.php:92
39
  msgid "Do you want to continue?"
40
+ msgstr "Möchtest du fortfahren?"
41
 
42
+ #: ../views/admin.php:92
43
  msgid ""
44
  "This operation will delete all stored info from Wordpress Popular Posts' "
45
  "data tables and cannot be undone."
47
  "Alle gespeicherten Daten von Wordpress Popular Posts werden gelöscht und "
48
  "können nicht wieder hergestellt werden."
49
 
50
+ #: ../views/admin.php:109
51
  msgid "Stats"
52
+ msgstr "Statistiken"
53
 
54
+ #: ../views/admin.php:110
55
+ msgid "Tools"
56
+ msgstr "Werkzeuge"
57
+
58
+ #: ../views/admin.php:111 ../views/admin.php:662
59
+ msgid "Parameters"
60
+ msgstr "Parameter"
61
+
62
+ #: ../views/admin.php:112
63
  msgid "FAQ"
64
  msgstr "Häufige Fragen und Antworten"
65
 
66
+ #: ../views/admin.php:113
67
+ msgid "About"
68
+ msgstr "Über"
69
 
70
+ #: ../views/admin.php:124
71
  msgid ""
72
  "Click on each tab to see what are the most popular entries on your blog in "
73
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
74
  "Popular Posts was installed."
75
  msgstr ""
76
  "Klicke auf jeden Reiter, um die beliebtesten Beiträge deines Blogs von den "
77
+ "letzten 24 Stunden, dieser Woche, den letzten 30 Tagen oder des gesamten "
78
+ "Zeitraums seit der Installation von Wordpress Popular Posts zu sehen."
79
 
80
+ #: ../views/admin.php:130
81
  msgid "Order by comments"
82
  msgstr "Sortiert nach Kommentaren"
83
 
84
+ #: ../views/admin.php:131
85
  msgid "Order by views"
86
  msgstr "Sortiert nach Seitenaufrufen"
87
 
88
+ #: ../views/admin.php:132
89
  msgid "Order by avg. daily views"
90
  msgstr "Sortierte nach durchschn. Tagesaufrufen"
91
 
92
+ #: ../views/admin.php:134
93
+ msgid "Post type"
94
+ msgstr "Post-Type"
95
+
96
+ #: ../views/admin.php:135
97
  msgid "Limit"
98
  msgstr "Max. aufzulistende Einträge:"
99
 
100
+ #: ../views/admin.php:136 ../views/form.php:32
101
+ msgid "Display only posts published within the selected Time Range"
102
+ msgstr ""
103
+
104
+ #: ../views/admin.php:138 ../views/admin.php:215 ../views/admin.php:281
105
+ #: ../views/admin.php:318
106
  msgid "Apply"
107
  msgstr "Anwenden"
108
 
109
+ #: ../views/admin.php:144 ../views/form.php:26
110
  msgid "Last 24 hours"
111
  msgstr "Letzte 24 Stunden"
112
 
113
+ #: ../views/admin.php:145 ../views/form.php:27
114
  msgid "Last 7 days"
115
  msgstr "Letzte 7 Tage"
116
 
117
+ #: ../views/admin.php:146 ../views/form.php:28
118
  msgid "Last 30 days"
119
  msgstr "Letzte 30 Tage"
120
 
121
+ #: ../views/admin.php:147 ../views/form.php:29
122
  msgid "All-time"
123
  msgstr "Allzeithoch"
124
 
125
+ #: ../views/admin.php:169
126
+ msgid "Thumbnails"
127
+ msgstr "Vorschaubilder"
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
+ #: ../views/admin.php:174
130
+ msgid "Default thumbnail"
131
+ msgstr "Standardvorschaubild"
 
 
 
 
 
 
 
 
132
 
133
+ #: ../views/admin.php:179
134
+ msgid "Upload thumbnail"
135
+ msgstr "Vorschaubild hochladen"
136
 
137
+ #: ../views/admin.php:182
138
  msgid ""
139
+ "How-to: upload (or select) an image, set Size to Full and click on Upload. "
140
+ "After it's done, hit on Apply to save changes"
141
  msgstr ""
142
+ "Anleitung: ein Bild hochladen (oder aus existierenden wählen) und "
143
+ "\"vollständige Größe\" einstellen. Anschließend \"Anwenden\" anklicken."
 
 
 
 
 
144
 
145
+ #: ../views/admin.php:186
146
+ msgid "Pick image from"
147
+ msgstr "Wähle Bildquelle"
 
 
 
 
 
 
148
 
149
+ #: ../views/admin.php:189
150
+ msgid "Featured image"
151
+ msgstr "Beitragsbild"
152
 
153
+ #: ../views/admin.php:190
154
+ msgid "First image on post"
155
+ msgstr "Erstes Bild im Beitrag"
 
 
 
 
 
 
156
 
157
+ #: ../views/admin.php:191
158
+ msgid "Custom field"
159
+ msgstr "Benutzerdefiniertes Feld"
160
 
161
+ #: ../views/admin.php:194
162
+ msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
163
+ msgstr "Woher kommen die Vorschaubilder?"
 
 
 
 
 
 
164
 
165
+ #: ../views/admin.php:198
166
+ msgid "Custom field name"
167
+ msgstr "Name des benutzerdefiniertes Feldes"
168
 
169
+ #: ../views/admin.php:204
170
+ msgid "Resize image from Custom field?"
171
+ msgstr "Bild aus benutzerdefiniertem Feld skalieren?"
 
 
 
 
 
 
172
 
173
+ #: ../views/admin.php:207
174
+ msgid "No, I will upload my own thumbnail"
175
+ msgstr "Nein, ich lade mein eigenes Vorschaubild hoch"
176
 
177
+ #: ../views/admin.php:208
178
+ msgid "Yes"
179
+ msgstr "Ja"
 
 
 
 
 
 
180
 
181
+ #: ../views/admin.php:224
182
+ msgid "Data"
183
+ msgstr "Daten"
184
 
185
+ #: ../views/admin.php:229
186
+ msgid "Log views from"
187
+ msgstr "Erfasse Aufrufe"
 
 
 
 
 
 
 
 
 
 
 
 
188
 
189
+ #: ../views/admin.php:232
190
+ msgid "Visitors only"
191
+ msgstr "von jedem außer eingeloggten Benutzern"
 
 
 
 
192
 
193
+ #: ../views/admin.php:233
194
+ msgid "Logged-in users only"
195
+ msgstr "nur von eingeloggten Benutzern"
196
 
197
+ #: ../views/admin.php:234
198
+ msgid "Everyone"
199
+ msgstr "von jedem"
 
 
 
 
 
 
200
 
201
+ #: ../views/admin.php:240
202
+ msgid "Ajaxify widget"
203
+ msgstr "Widget via Ajax"
204
 
205
+ #: ../views/admin.php:243 ../views/admin.php:309
206
+ msgid "Disabled"
207
+ msgstr "Deaktiviert"
 
 
 
 
208
 
209
+ #: ../views/admin.php:244 ../views/admin.php:308
210
+ msgid "Enabled"
211
+ msgstr "Aktiviert"
212
 
213
+ #: ../views/admin.php:248
214
  msgid ""
215
+ "If you are using a caching plugin such as WP Super Cache, enabling this "
216
+ "feature will keep the popular list from being cached by it"
217
  msgstr ""
218
+ "Falls du ein Cache-Plugin wie z. B. WP Super Cache verwendest, verhindert "
219
+ "das Aktivieren, dass die Liste nicht gecachet wird und stets aktuell ist."
220
 
221
+ #: ../views/admin.php:252
222
+ msgid "Listing refresh interval"
223
+ msgstr "Aktualisierungsintervall der Liste"
224
 
225
+ #: ../views/admin.php:255
226
+ msgid "Live"
227
+ msgstr "Echtzeit"
 
 
 
 
228
 
229
+ #: ../views/admin.php:256
230
+ msgid "Custom interval"
231
+ msgstr "Benutzerdefiniertes Intervall"
232
 
233
+ #: ../views/admin.php:260
234
  msgid ""
235
+ "Sets how often the listing should be updated. For most sites the Live option "
236
+ "should be fine, however if you are experiencing slowdowns or your blog gets "
237
+ "a lot of visitors then you might want to change the refresh rate"
238
  msgstr ""
239
+ "Stellt ein, wie oft die Liste aktualisiert wird. Für die meisten Websites "
240
+ "erreicht die Echtzeit-Einstellung gute Werte. Solltest du jedoch "
241
+ "Verlangsamungen feststellen oder deine Website erreicht viele Besucher, "
242
+ "solltest du die Aktualisierungsrate ändern."
 
 
243
 
244
+ #: ../views/admin.php:264
245
+ msgid "Refresh list every"
246
+ msgstr "Benutzerdefiniertes Intervall"
 
 
 
 
 
 
 
 
247
 
248
+ #: ../views/admin.php:268
249
+ msgid "Hour(s)"
250
+ msgstr "Stunde(n)"
251
 
252
+ #: ../views/admin.php:269
253
+ msgid "Day(s)"
254
+ msgstr "Tag(e)"
 
 
 
 
 
 
 
 
 
 
 
255
 
256
+ #: ../views/admin.php:270
257
+ msgid "Week(s)"
258
+ msgstr "Woche(n)"
259
 
260
+ #: ../views/admin.php:271
261
+ msgid "Month(s)"
262
+ msgstr "Monat(e)"
 
 
 
 
 
 
263
 
264
+ #: ../views/admin.php:272
265
+ msgid "Year(s)"
266
+ msgstr "Jahr(e)"
267
 
268
+ #: ../views/admin.php:275
269
+ msgid "Really? That long?"
270
+ msgstr "Wirklich? So lang?"
 
271
 
272
+ #: ../views/admin.php:290
273
+ msgid "Miscellaneous"
274
+ msgstr "Sonstiges"
275
 
276
+ #: ../views/admin.php:295
277
+ msgid "Open links in"
278
+ msgstr "Links öffnen in"
279
 
280
+ #: ../views/admin.php:298
281
+ msgid "Current window"
282
+ msgstr "aktuellem Fenster"
283
 
284
+ #: ../views/admin.php:299
285
+ msgid "New tab/window"
286
+ msgstr "Neuem Tab/Fenster"
287
 
288
+ #: ../views/admin.php:305
289
+ msgid "Use plugin's stylesheet"
290
+ msgstr "Stylesheet des Plugins benutzen"
 
 
 
 
 
 
 
291
 
292
+ #: ../views/admin.php:312
293
  msgid ""
294
+ "By default, the plugin includes a stylesheet called wpp.css which you can "
295
+ "use to style your popular posts listing. If you wish to use your own "
296
+ "stylesheet or do not want it to have it included in the header section of "
297
+ "your site, use this."
298
  msgstr ""
299
+ "Als Voreinstellung schließt dieses Plugin eine Stylesheet-Datei wpp.css ein. "
300
+ "Du kannst mit ihr die Auflistung beliebter Beiträge gestalten. Falls du dein "
301
+ "eigenes Stylesheet verwenden oder die wpp.css nicht im HEAD-Abschnitt "
302
+ "einbinden willst, deaktiviere die Einbindung."
303
 
304
+ #: ../views/admin.php:329
305
+ #, fuzzy
306
  msgid ""
307
+ "Wordpress Popular Posts maintains data in two separate tables: one for "
308
+ "storing the most popular entries on a daily basis (from now on, \"cache\"), "
309
+ "and another one to keep the All-time data (from now on, \"historical data\" "
310
+ "or just \"data\"). If for some reason you need to clear the cache table, or "
311
+ "even both historical and cache tables, please use the buttons below to do so."
312
  msgstr ""
313
+ "Wordpress Popular Posts speichert Daten in zwei getrennten Tabellen: eine "
314
+ "für die beliebtesten Beiträge der letzten 30 Tage (auch: \"Cache-Tabelle\"), "
315
+ "und die andere für die Allzeit-Daten (auch \"historische Daten\" oder "
316
+ "einfach \"Datentabelle\"). Solltest du aus verschiedenen Gründen die Cache-"
317
+ "Tabelle leeren wollen oder sowohl die Datentabelle als auch die Cache-"
318
+ "Tabelle, nutze die folgenden Schaltflächen."
319
 
320
+ #: ../views/admin.php:330
321
+ msgid "Empty cache"
322
+ msgstr "Cache leeren"
323
 
324
+ #: ../views/admin.php:330
325
+ msgid "Use this button to manually clear entries from WPP cache only"
 
 
 
 
 
326
  msgstr ""
327
+ "Nutze diese Schaltfläche, um die Cache-Tabelle von Wordpress Popular Posts "
328
+ "zu leeren."
 
 
 
329
 
330
+ #: ../views/admin.php:331
331
+ msgid "Clear all data"
332
+ msgstr "Alle Daten löschen"
333
+
334
+ #: ../views/admin.php:331
335
+ msgid "Use this button to manually clear entries from all WPP data tables"
336
  msgstr ""
337
+ "Nutze diese Schaltfläche, um alle Einträge in der Datentabelle von Wordpress "
338
+ "Popular Posts zu löschen."
339
 
340
+ #: ../views/admin.php:338
341
+ #, php-format
342
  msgid ""
343
+ "With the following parameters you can customize the popular posts list when "
344
+ "using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
345
+ "the <a href=\"%2$s\">[wpp] shortcode</a>."
346
  msgstr ""
 
 
347
 
348
+ #: ../views/admin.php:346
349
  msgid "Parameter"
350
  msgstr "Parameter"
351
 
352
+ #: ../views/admin.php:347 ../views/admin.php:661
353
+ msgid "What it does "
354
+ msgstr "Was es macht"
355
+
356
+ #: ../views/admin.php:348
357
  msgid "Possible values"
358
  msgstr "Erlaubte Werte"
359
 
360
+ #: ../views/admin.php:349
361
  msgid "Defaults to"
362
  msgstr "Voreinstellung"
363
 
364
+ #: ../views/admin.php:350 ../views/admin.php:663
365
+ msgid "Example"
366
+ msgstr "Beispiel"
367
+
368
+ #: ../views/admin.php:356
369
  msgid "Sets a heading for the list"
370
  msgstr "Bestimmt die Überschrift der Liste"
371
 
372
+ #: ../views/admin.php:357 ../views/admin.php:364 ../views/admin.php:371
373
+ #: ../views/admin.php:406 ../views/admin.php:413 ../views/admin.php:420
374
+ #: ../views/admin.php:427 ../views/admin.php:518 ../views/admin.php:532
375
+ #: ../views/admin.php:539
376
  msgid "Text string"
377
  msgstr "Zeichenkette"
378
 
379
+ #: ../views/admin.php:358
380
  msgid "Popular Posts"
381
  msgstr "Beliebteste Beiträge"
382
 
383
+ #: ../views/admin.php:363
384
  msgid "Set the opening tag for the heading of the list"
385
  msgstr "Bestimmt den öffnenden Tag der Listenüberschrift"
386
 
387
+ #: ../views/admin.php:370
388
  msgid "Set the closing tag for the heading of the list"
389
  msgstr "Bestimmt den schließenden Tag der Listenüberschrift"
390
 
391
+ #: ../views/admin.php:377
392
  msgid "Sets the maximum number of popular posts to be shown on the listing"
393
  msgstr "Bestimmt die maximale Anzahl der beliebten Beiträge in der Auflistung"
394
 
395
+ #: ../views/admin.php:378 ../views/admin.php:434 ../views/admin.php:448
396
+ #: ../views/admin.php:469 ../views/admin.php:476
397
  msgid "Positive integer"
398
  msgstr "Positive Ganzzahl"
399
 
400
+ #: ../views/admin.php:384
401
  msgid ""
402
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
403
  "the time range specified by you"
405
  "Weist Wordpress Popular Posts an, die beliebtesten Beiträge innerhalt der "
406
  "eingestellten Zeitspanne anzuzeigen."
407
 
408
+ #: ../views/admin.php:391
409
+ #, fuzzy
410
+ msgid ""
411
+ "Tells Wordpress Popular Posts to retrieve the most popular entries published "
412
+ "within the time range specified by you"
413
+ msgstr ""
414
+ "Weist Wordpress Popular Posts an, die beliebtesten Beiträge innerhalt der "
415
+ "eingestellten Zeitspanne anzuzeigen."
416
+
417
+ #: ../views/admin.php:398
418
  msgid "Sets the sorting option of the popular posts"
419
  msgstr "Bestimmt die Auswahl der Reihenfolge der beliebten Beiträge"
420
 
421
+ #: ../views/admin.php:399
422
  msgid "(for average views per day)"
423
  msgstr "(für durchschn. Aufrufe pro Tag)"
424
 
425
+ #: ../views/admin.php:405
426
  msgid "Defines the type of posts to show on the listing"
427
  msgstr "Bestimmt die Art der Dokumente, die aufgelistet werden"
428
 
429
+ #: ../views/admin.php:412
430
  msgid ""
431
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
432
  "form the listing."
434
  "Falls gesetzt, zeigt Wordpress Popular Posts die Beiträge und Seiten anhand "
435
  "ihrer angegebener ID(s) in der Liste nicht an."
436
 
437
+ #: ../views/admin.php:414 ../views/admin.php:421 ../views/admin.php:428
438
  msgid "None"
439
  msgstr "nichts"
440
 
441
+ #: ../views/admin.php:419
442
  msgid ""
443
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
444
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
448
  "angegebenen Kategorie-IDs zugeordnet sind, an. Ein Minus-Zeichen vor der ID "
449
  "schließt die Beiträge dieser Kategorie aus."
450
 
451
+ #: ../views/admin.php:426
452
  msgid ""
453
  "If set, Wordpress Popular Posts will retrieve all entries created by "
454
  "specified author(s) ID(s)."
456
  "Falls gesetzt, wird Wordpress Popular Posts alle Einträge anhand angegebener "
457
  "Autor(en)-ID(s) ausgeben."
458
 
459
+ #: ../views/admin.php:433
460
  msgid ""
461
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
462
  "characters whenever possible"
464
  "Falls gesetzt, kürzt Wordpress Popular Posts jeden Titel, wenn möglich, auf "
465
  "\"n\" Zeichen."
466
 
467
+ #: ../views/admin.php:440
468
+ msgid ""
469
+ "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
470
+ "words instead of characters"
471
+ msgstr ""
472
+ "Falls gesetzt, kürzt Wordpress Popular Posts jeden Titel, wenn möglich, auf "
473
+ "\"n\" Wörter anstatt Zeichen."
474
+
475
+ #: ../views/admin.php:447
476
  msgid ""
477
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
478
  "characters long from the content of each post listed as popular"
480
  "Falls gesetzt, zeigt Wordpress Popular Posts einen Auszug von \"n\" "
481
  "Buchstaben Länge bei jedem Beitrag an."
482
 
483
+ #: ../views/admin.php:454
484
  msgid ""
485
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
486
  "italic, etc) and hyperlinks found in the excerpt"
488
  "Falls gesetzt, behält Wordpress Popular Posts die formatierenden Tags (fett, "
489
  "kursiv usw.) und die Links im Auszug bei."
490
 
491
+ #: ../views/admin.php:461
492
+ msgid ""
493
+ "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
494
+ "instead of characters"
495
+ msgstr ""
496
+ "Falls gesetzt, kürzt Wordpress Popular Posts jeden Auszug, wenn möglich, auf "
497
+ "\"n\" Wörter anstatt Zeichen."
498
+
499
+ #: ../views/admin.php:468
500
  msgid ""
501
  "If set, and if your current server configuration allows it, you will be able "
502
  "to display thumbnails of your posts. This attribute sets the width for "
506
  "Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
507
  "bestimmt die Breite der Vorschaubilder."
508
 
509
+ #: ../views/admin.php:475
510
  msgid ""
511
  "If set, and if your current server configuration allows it, you will be able "
512
  "to display thumbnails of your posts. This attribute sets the height for "
516
  "Anzeige von Vorschaubildern deiner Beiträge möglich. Dieses Attribut "
517
  "bestimmt die Höhe der Vorschaubilder."
518
 
519
+ #: ../views/admin.php:482
520
  msgid ""
521
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
522
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
525
  "Falls gesetzt und wenn das Plugin WP-PostRatings in Deinem Blog läuft, zeigt "
526
  "Wordpress Popular Posts die Bewertungen der Nutzer an."
527
 
528
+ #: ../views/admin.php:489
529
  msgid ""
530
  "If set, Wordpress Popular Posts will show how many comments each popular "
531
  "post has got until now"
533
  "Falls gesetzt, zeigt Wordpress Popular Posts an, wie viele Kommentare jeder "
534
  "Beitrag bis jetzt erhielt."
535
 
536
+ #: ../views/admin.php:496
537
  msgid ""
538
  "If set, Wordpress Popular Posts will show how many views each popular post "
539
  "has got since it was installed"
541
  "Falls gesetzt, zeigt Wordpress Popular Posts an, wie viele Aufrufe jeder "
542
  "Beitrag seit der Installation erhielt."
543
 
544
+ #: ../views/admin.php:503
545
  msgid ""
546
  "If set, Wordpress Popular Posts will show who published each popular post on "
547
  "the list"
549
  "Falls gesetzt, zeigt Wordpress Popular Posts an, wer welchen Beitrag "
550
  "veröffentlicht hat."
551
 
552
+ #: ../views/admin.php:510
553
  msgid ""
554
  "If set, Wordpress Popular Posts will display the date when each popular post "
555
  "on the list was published"
557
  "Falls gesetzt, zeigt Wordpress Popular Posts das Veröffentlichungsdatum "
558
  "jeden Beitrags in der Liste an."
559
 
560
+ #: ../views/admin.php:517
561
  msgid "Sets the date format"
562
  msgstr "Bestimmt das Datumsformat"
563
 
564
+ #: ../views/admin.php:524
565
  msgid "If set, Wordpress Popular Posts will display the category"
566
  msgstr "Falls gesetzt, zeigt Wordpress Popular Posts die Kategorie an"
567
 
568
+ #: ../views/admin.php:531
569
  msgid "Sets the opening tag for the listing"
570
+ msgstr "Bestimmt das öffnende Tag der Auflistung"
571
 
572
+ #: ../views/admin.php:538
573
  msgid "Sets the closing tag for the listing"
574
+ msgstr "Bestimmt das schließende Tag der Auflistung"
575
 
576
+ #: ../views/admin.php:545
577
  msgid "Sets the HTML structure of each post"
578
  msgstr "Setzt die HTML-Struktur jeden Beitrags"
579
 
580
+ #: ../views/admin.php:546
581
  msgid "Text string, custom HTML"
582
  msgstr "Zeichenkette, benutzerdefiniertes HTML"
583
 
584
+ #: ../views/admin.php:546
585
  msgid "Available Content Tags"
586
  msgstr "Verfügbare Content-Tags"
587
 
588
+ #: ../views/admin.php:546
589
  msgid "displays thumbnail linked to post/page"
590
  msgstr "zeigt verlinktes Vorschaubild des Beitrags/der Seite an"
591
 
592
+ #: ../views/admin.php:546
593
  msgid "displays linked post/page title"
594
  msgstr "zeigt den verlinkten Titel des Beitrags/der Seiten an"
595
 
596
+ #: ../views/admin.php:546
597
  msgid ""
598
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
599
  msgstr ""
600
  "zeigt den Auszug (excerpt) des Beitrags/der Seite an, erfordert "
601
  "excerpt_length größer als 0"
602
 
603
+ #: ../views/admin.php:546
604
  msgid "displays the default stats tags"
605
  msgstr "zeigt die standard&shy;mäßigen Statistik-Tags an"
606
 
607
+ #: ../views/admin.php:546
608
  msgid ""
609
  "displays post/page current rating, requires WP-PostRatings installed and "
610
  "enabled"
612
  "zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
613
  "installierte und aktivierte Plugin WP-PostRatings"
614
 
615
+ #: ../views/admin.php:546
616
+ msgid ""
617
+ "displays post/page current rating as an integer, requires WP-PostRatings "
618
+ "installed and enabled"
619
+ msgstr ""
620
+ "zeigt die aktuelle Bewertung des Beitrags/der Seite an, erfordert das "
621
+ "installierte und aktivierte Plugin WP-PostRatings"
622
+
623
+ #: ../views/admin.php:546
624
  msgid "outputs the URL of the post/page"
625
  msgstr "gibt die URL des Beitrags/der Seite aus"
626
 
627
+ #: ../views/admin.php:546
628
  msgid "displays post/page title, no link"
629
  msgstr "zeigt den Titel des Beitrags/der Seite an, ohne Link"
630
 
631
+ #: ../views/admin.php:546
632
  msgid "displays linked author name, requires stats_author=1"
633
  msgstr "zeigt den verlinkten Autoren&shy;namen an, erfordert stats_author=1"
634
 
635
+ #: ../views/admin.php:546
636
  msgid "displays linked category name, requires stats_category=1"
637
  msgstr ""
638
  "zeigt den verlinkten Kategorien&shy;namen an, erfordert stats_category=1"
639
 
640
+ #: ../views/admin.php:546
641
  msgid "displays views count only, no text"
642
  msgstr "zeigt nur die Anzahl an, ohne Text"
643
 
644
+ #: ../views/admin.php:546
645
  msgid "displays comments count only, no text, requires stats_comments=1"
646
  msgstr ""
647
  "zeigt nur die Anzahl der Kom&shy;men&shy;tare an, ohne Text, erfordert "
648
  "stats_comment=1"
649
 
650
+ #: ../views/admin.php:558
651
+ msgid "What does \"Title\" do?"
652
+ msgstr "Was macht \"Titel\"?"
653
+
654
+ #: ../views/admin.php:561
655
+ msgid ""
656
+ "It allows you to show a heading for your most popular posts listing. If left "
657
+ "empty, no heading will be displayed at all."
658
+ msgstr ""
659
+ "Ermöglicht dir, eine Überschrift für die Auflistung anzugeben. Falls leer "
660
+ "belassen, wird keine Überschrift angezeigt."
661
 
662
+ #: ../views/admin.php:564
663
+ msgid "What is Time Range for?"
664
+ msgstr "Für was steht die Zeitspanne?"
665
 
666
+ #: ../views/admin.php:566
667
  msgid ""
668
+ "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
669
+ "comments within the selected time range."
670
  msgstr ""
671
+ "Weist Wordpress Popular Posts an, alle Beiträge mit den meisten Aufrufen "
672
+ "bzw. Kommentaren innerhalb der eingestellten Zeitspanne anzuzeigen."
673
+
674
+ #: ../views/admin.php:569
675
+ msgid "What is \"Sort post by\" for?"
676
+ msgstr "Für was steht \"Sortiere Beiträge nach\"?"
677
 
678
+ #: ../views/admin.php:571
679
  msgid ""
680
+ "It allows you to decide whether to order your popular posts listing by total "
681
+ "views, comments, or average views per day."
682
+ msgstr ""
683
+ "Ermöglicht dir zu entscheiden, ob die Listeneinträge nach absoluter Anzahl "
684
+ "der Aufrufe, Kommentare oder durchschnittlichen Aufrufen pro Tag geordnet "
685
+ "werden."
686
+
687
+ #: ../views/admin.php:574
688
+ msgid "What does \"Display post rating\" do?"
689
+ msgstr "Was macht \"Zeige Bewertung\"?"
690
+
691
+ #: ../views/admin.php:576
 
 
 
 
692
  msgid ""
693
+ "If checked, Wordpress Popular Posts will show how your readers are rating "
694
+ "your most popular posts. This feature requires having WP-PostRatings plugin "
695
+ "installed and enabled on your blog for it to work."
696
  msgstr ""
697
+ "Falls aktiviert, zeigt Wordpress Popular Posts an, wie deine Leser deine "
698
+ "beliebtesten Beiträge bewertet haben. Diese Funktion erfordert die "
699
+ "Installation und Aktivierung des Plugins WP-PostRatings."
700
 
701
+ #: ../views/admin.php:579
702
+ msgid "What does \"Shorten title\" do?"
703
+ msgstr "Was macht \"Kürze den Titel\"?"
704
 
705
+ #: ../views/admin.php:581
706
+ msgid ""
707
+ "If checked, all posts titles will be shortened to \"n\" characters/words. A "
708
+ "new \"Shorten title to\" option will appear so you can set it to whatever "
709
+ "you like."
710
+ msgstr ""
711
+ "Falls aktiviert, werden alle Titel auf \"n\" Zeichen gekürzt. Eine neue "
712
+ "Auswahl \"Kürze den Titel zu\" wird erscheinen, mit der du die Titellänge "
713
+ "setzen kannst."
714
 
715
+ #: ../views/admin.php:584
716
+ msgid "What does \"Display post excerpt\" do?"
717
+ msgstr "Was macht \"Zeige Auszug\"?"
718
 
719
+ #: ../views/admin.php:586
720
+ msgid ""
721
+ "If checked, Wordpress Popular Posts will also include a small extract of "
722
+ "your posts in the list. Similarly to the previous option, you will be able "
723
+ "to decide how long the post excerpt should be."
724
+ msgstr ""
725
+ "Falls aktiviert, zeigt Wordpress Popular Posts zusätzlich einen kurzen "
726
+ "Auszug Deines Beitrags in der Liste an. Wie bei der vorhergehenden Auswahl "
727
+ "ist es dir möglich, die Länge des Auszugs einzustellen."
728
 
729
+ #: ../views/admin.php:589
730
+ msgid "What does \"Keep text format and links\" do?"
731
+ msgstr "Was macht \"Behalte Textformat und Links bei\"?"
732
 
733
+ #: ../views/admin.php:591
734
+ msgid ""
735
+ "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
736
+ "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
737
+ "the excerpt. Hyperlinks will remain intact, too."
738
+ msgstr ""
739
+ "Falls aktiviert und wenn die Darstellung von Auszügen aktiviert ist, behält "
740
+ "Wordpress Popular Posts die formatierenden Tags (z. B. fett, kursiv usw.) im "
741
+ "Auszug. Auch Links bleiben unverändert."
742
 
743
+ #: ../views/admin.php:594
744
+ msgid "What is \"Post type\" for?"
745
+ msgstr "Für was steht \"Post-Type\"?"
746
 
747
+ #: ../views/admin.php:596
748
+ msgid ""
749
+ "This filter allows you to decide which post types to show on the listing. By "
750
+ "default, it will retrieve only posts and pages (which should be fine for "
751
+ "most cases)."
752
+ msgstr ""
753
+ "Dieser Filter erlaubt dir zu entscheiden, welche Post-Types aufgelistet "
754
+ "werden. Per Voreinstellung werden nur Seiten und Beiträge angezeigt (was in "
755
+ "den meisten Fällen ausreicht)."
756
 
757
+ #: ../views/admin.php:599
758
+ msgid "What is \"Category(ies) ID(s)\" for?"
759
+ msgstr "Für was steht \"Kategorie(n)-ID(s)\"?"
760
 
761
+ #: ../views/admin.php:601
762
+ msgid ""
763
+ "This filter allows you to select which categories should be included or "
764
+ "excluded from the listing. A negative sign in front of the category ID "
765
+ "number will exclude posts belonging to it from the list, for example. You "
766
+ "can specify more than one ID with a comma separated list."
767
+ msgstr ""
768
+ "Dieser Filter erlaubt dir auszuwählen, welche Kategorien in der Auflistung "
769
+ "eingeschlossen oder ausgeschlossen werden sollten. Ein Minus-Zeichen vor "
770
+ "einer Kategorien-ID schließt Beiträge, die die ID zugewiesen bekamen, von "
771
+ "der Liste aus. du kannst mehr als eine ID, mit Kommas getrennt, angeben."
772
 
773
+ #: ../views/admin.php:604
774
+ msgid "What is \"Author(s) ID(s)\" for?"
775
+ msgstr "Für was steht \"Autor(en)-ID(s)\"?"
776
 
777
+ #: ../views/admin.php:606
778
+ msgid ""
779
+ "Just like the Category filter, this one lets you filter posts by author ID. "
780
+ "You can specify more than one ID with a comma separated list."
781
+ msgstr ""
782
+ "Wie beim Kategorienfilter kannst du auch Beiträge nach Autoren filtern. Du "
783
+ "kannst mehr als eine Autoren-ID, getrennt durch Kommas, angeben."
784
 
785
+ #: ../views/admin.php:609
786
+ msgid "What does \"Display post thumbnail\" do?"
787
+ msgstr "Was macht \"Zeige Vorschaubild\"?"
788
 
789
+ #: ../views/admin.php:611
790
+ msgid ""
791
+ "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
792
+ "of each post. You can set up the source of the thumbnail via Settings - "
793
+ "Wordpress Popular Posts - Tools."
794
+ msgstr ""
795
+ "Falls aktiviert, versucht Wordpress Popular Posts, das Vorschaubild von "
796
+ "jedem Beitrag darzustellen. Du kannst die Quelle des Vorschaubildes unter "
797
+ "\"Werkzeuge\" einstellen."
798
 
799
+ #: ../views/admin.php:614
800
+ msgid "What does \"Display comment count\" do?"
801
+ msgstr "Was macht \"Zeige Anzahl Kommentare\"?"
802
 
803
+ #: ../views/admin.php:616
804
  msgid ""
805
+ "If checked, Wordpress Popular Posts will display how many comments each "
806
+ "popular post has got in the selected Time Range."
 
 
807
  msgstr ""
808
+ "Falls aktiviert, zeigt Wordpress Popular Posts an, wie viele Kommentare "
809
+ "jeder beliebte Beitrag in der eingestellten Zeitspanne erhielt."
 
 
 
 
 
 
810
 
811
+ #: ../views/admin.php:619
812
+ msgid "What does \"Display views\" do?"
813
+ msgstr "Was macht \"Zeige Aufrufe\"?"
814
 
815
+ #: ../views/admin.php:621
816
+ msgid ""
817
+ "If checked, Wordpress Popular Posts will show how many pageviews a single "
818
+ "post has gotten in the selected Time Range."
819
+ msgstr ""
820
+ "Falls aktiviert, zeigt Wordpress Popular Posts an, wie viele Seitenaufrufe "
821
+ "jeder einzelne Beitrag in der eingestellten Zeitspanne erhielt."
822
 
823
+ #: ../views/admin.php:624
824
+ msgid "What does \"Display author\" do?"
825
+ msgstr "Was macht \"Zeige Autor\"?"
826
 
827
+ #: ../views/admin.php:626
828
  msgid ""
829
+ "If checked, Wordpress Popular Posts will display the name of the author of "
830
+ "each entry listed."
831
  msgstr ""
832
+ "Falls aktiviert, zeigt Wordpress Popular Posts den Autorennamen in jedem "
833
+ "Listeneintrag an."
834
 
835
+ #: ../views/admin.php:629
836
+ msgid "What does \"Display date\" do?"
837
+ msgstr "Was macht \"Zeige Datum\"?"
838
 
839
+ #: ../views/admin.php:631
840
+ msgid ""
841
+ "If checked, Wordpress Popular Posts will display the date when each popular "
842
+ "posts was published."
843
+ msgstr ""
844
+ "Falls aktiviert, zeigt Wordpress Popular Posts das Veröffentlichungsdatum "
845
+ "jeden Beitrags an."
846
 
847
+ #: ../views/admin.php:634
848
+ msgid "What does \"Display category\" do?"
849
+ msgstr "Was macht \"Zeige Kategorie\"?"
850
 
851
+ #: ../views/admin.php:636
852
  msgid ""
853
+ "If checked, Wordpress Popular Posts will display the category of each post."
 
 
854
  msgstr ""
855
+ "Falls aktiviert, zeigt Wordpress Popular Posts den Kategorie in jedem "
856
+ "Listeneintrag an."
 
 
857
 
858
+ #: ../views/admin.php:639
859
+ msgid "What does \"Use custom HTML Markup\" do?"
860
+ msgstr "Was macht \"Verwende benutzerdefinierten HTML-Code\"?"
861
 
862
+ #: ../views/admin.php:641
863
+ msgid ""
864
+ "If checked, you will be able to customize the HTML markup of your popular "
865
+ "posts listing. For example, you can decide whether to wrap your posts in an "
866
+ "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
867
+ "for you!"
868
+ msgstr ""
869
+ "Falls aktiviert, ist es dir möglich, eigenen HTML-Code in der Auflistung "
870
+ "einzusetzen. Du kannst z. B. bestimmen, ob die Einträge in einer "
871
+ "ungeordneten Liste, geordneten Liste, einem DIV oder was auch immer gesetzt "
872
+ "werden. Wenn du HTML und CSS kannst, ist diese Auswahl dein Freund."
873
 
874
+ #: ../views/admin.php:644
875
+ msgid "What are \"Content Tags\"?"
876
+ msgstr "Was sind \"Content-Tags\"?"
877
 
878
+ #: ../views/admin.php:646
879
+ #, fuzzy, php-format
880
+ msgid ""
881
+ "Content Tags are codes to display a variety of items on your popular posts "
882
+ "custom HTML structure. For example, setting it to \"{title}: "
883
+ "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
884
+ "post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
885
+ "\">Parameters</a> section."
886
+ msgstr ""
887
+ "Content-Tags sind Code-Schnipsel, um verschiedene Angaben über die "
888
+ "beliebtesten Beiträge in deiner selbst definierten HTML-Struktur anzuzeigen. "
889
+ "Zum Beispiel zeigt \"{title}: {summary}\" (ohne die Anführungszeichen) "
890
+ "\"Überschrift: Auszug des Beitrags\" an. Für weitere Content-Tags siehe "
891
+ "\"Liste der gültigen Parameter von wpp_gewt-mostpopular() und des [wpp]-"
892
+ "Shortcodes\"."
893
 
894
+ #: ../views/admin.php:649
895
+ msgid "What are \"Template Tags\"?"
896
+ msgstr "Was sind \"Template-Tags\"?"
897
 
898
+ #: ../views/admin.php:651
899
+ msgid ""
900
+ "Template Tags are simply php functions that allow you to perform certain "
901
+ "actions. For example, Wordpress Popular Posts currently supports two "
902
+ "different template tags: wpp_get_mostpopular() and wpp_get_views()."
903
+ msgstr ""
904
+ "Template-Tags sind schlicht und einfach PHP-Funktionen, die bestimmten "
905
+ "Aktionen ausführen. Zum Beispiel unterstützt Wordpress Popular Posts zwei "
906
+ "verschiedene Template-Tags: wpp_get_mostpopular() und wpp_get_views()."
907
 
908
+ #: ../views/admin.php:654
909
+ msgid "What are the template tags that Wordpress Popular Posts supports?"
910
+ msgstr "Welche Template-Tags unterstützt Wordpress Popular Posts?"
911
 
912
+ #: ../views/admin.php:656
913
  msgid ""
914
+ "The following are the template tags supported by Wordpress Popular Posts"
915
+ msgstr "Die folgenden Template-Tags unterstützt Wordpress Popular Posts"
 
 
 
 
 
 
 
 
 
 
 
916
 
917
+ #: ../views/admin.php:660
918
+ msgid "Template tag"
919
+ msgstr "Template-Tag"
920
 
921
+ #: ../views/admin.php:669
922
+ #, fuzzy, php-format
923
+ msgid ""
924
+ "Similar to the widget functionality, this tag retrieves the most popular "
925
+ "posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
926
+ "a> so you can customize your popular listing, but these are not required."
927
  msgstr ""
928
+ "Ähnlich wie das Widget zeigt dieser Tag die beliebtesten Beiträge Deines "
929
+ "Blogs an. Diese Funktion akzeptiert auch Parameter, so dass du die "
930
+ "Auflistung nach deinen Vorstellungen setzen kannst, aber sie sind sind "
931
+ "erforderlich."
932
 
933
+ #: ../views/admin.php:670
934
+ #, php-format
935
+ msgid ""
936
+ "Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
937
+ "list of attributes."
938
+ msgstr ""
939
 
940
+ #: ../views/admin.php:675
941
+ msgid ""
942
+ "Displays the number of views of a single post. Post ID is required or it "
943
+ "will return false."
944
  msgstr ""
945
+ "Zeigt die Anzahl der Aufrufe eines einzelnen Beitrags an. Die Post-ID ist "
946
+ "erforderlich, andersfalls wird false zurückgegeben."
947
 
948
+ #: ../views/admin.php:676
949
+ msgid "Post ID"
950
+ msgstr "Post-ID"
951
 
952
+ #: ../views/admin.php:683
953
+ msgid "What are \"shortcodes\"?"
954
+ msgstr "Was sind \"Shortcodes\"?"
955
 
956
+ #: ../views/admin.php:685
957
+ #, php-format
958
+ msgid ""
959
+ "Shortcodes are similar to BB Codes, these allow us to call a php function by "
960
+ "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
961
+ "shortcode [wpp] will let you insert a list of the most popular posts in "
962
+ "posts content and pages too! For more information about shortcodes, please "
963
+ "visit the <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a> page."
964
+ msgstr ""
965
+ "Shortcodes sind vergleichbar mit BB-Codes. Sie erlauben uns, eine PHP-"
966
+ "Funktion aufzurufen durch einen einfachen Text wie [shortcode]. Der "
967
+ "Shortcode [wpp] fügt die Liste der beliebtesten Beiträge in den Text sowohl "
968
+ "von Beiträgen als auch Seiten ein. Für mehr Informationen über Shortcodes "
969
+ "besuche <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a>."
970
 
971
+ #: ../views/admin.php:694
972
+ #, php-format
973
+ msgid "About Wordpress Popular Posts %s"
974
+ msgstr "Über Wordpress Popular Posts %s"
975
 
976
+ #: ../views/admin.php:695
977
+ msgid "This version includes the following changes"
978
+ msgstr "Diese Version enthält die folgenden Änderungen"
979
 
980
+ #: ../views/admin.php:709
981
+ msgid "Do you like this plugin?"
982
+ msgstr "Gefällt dir dieses Plugin?"
983
 
984
+ #: ../views/admin.php:716
985
  msgid ""
986
  "Each donation motivates me to keep releasing free stuff for the Wordpress "
987
  "community!"
989
  "Jede Spende motiviert mich, der Wordpress-Gemeinschaft nützliches Zeugs "
990
  "weiterhin kostenlos zur Verfügung zu stellen!"
991
 
992
+ #: ../views/admin.php:717
993
+ #, php-format
994
+ msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
995
+ msgstr ""
996
+
997
+ #: ../views/admin.php:721
998
+ msgid "Need help?"
999
+ msgstr "Brauchen Sie Hilfe?"
1000
+
1001
+ #: ../views/admin.php:722
1002
+ #, php-format
1003
+ msgid ""
1004
+ "Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
1005
+ "and feedback."
1006
+ msgstr ""
1007
+
1008
+ #: ../views/admin.php:723
1009
+ msgid "Let's make this plugin even better!"
1010
+ msgstr ""
1011
 
1012
+ #: ../views/form.php:2
1013
+ msgid "Title"
1014
  msgstr "Titel:"
1015
 
1016
+ #: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
1017
+ #: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
1018
+ #: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
1019
+ #: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
1020
+ #: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
1021
+ #: ../views/form.php:105 ../views/form.php:111
 
 
1022
  msgid "What is this?"
1023
  msgstr "Was ist das?"
1024
 
1025
+ #: ../views/form.php:7
1026
+ msgid "Show up to"
1027
  msgstr "Zeige bis zu:"
1028
 
1029
+ #: ../views/form.php:8
1030
  msgid "posts"
1031
  msgstr "Beiträge"
1032
 
1033
+ #: ../views/form.php:12
1034
+ msgid "Sort posts by"
 
 
 
 
1035
  msgstr "Sortiere Beiträge nach:"
1036
 
1037
+ #: ../views/form.php:14
1038
  msgid "Comments"
1039
  msgstr "Kommentaren"
1040
 
1041
+ #: ../views/form.php:15
1042
  msgid "Total views"
1043
  msgstr "Zahl der Aufrufe"
1044
 
1045
+ #: ../views/form.php:16
1046
  msgid "Avg. daily views"
1047
  msgstr "Durchschn. tägl. Aufrufe"
1048
 
1049
+ #: ../views/form.php:22
1050
+ msgid "Filters"
1051
+ msgstr "Filter:"
1052
+
1053
+ #: ../views/form.php:24
1054
+ msgid "Time Range"
1055
+ msgstr "Zeitspanne:"
1056
+
1057
+ #: ../views/form.php:34
1058
+ msgid "Post type(s)"
1059
+ msgstr "Post-Type(s):"
1060
+
1061
+ #: ../views/form.php:37
1062
+ msgid "Post(s) ID(s) to exclude"
1063
+ msgstr "Post-ID(s), die ausgeschlossen werden:"
1064
+
1065
+ #: ../views/form.php:40
1066
+ msgid "Category(ies) ID(s)"
1067
+ msgstr "Kategorie(n)-ID(s):"
1068
+
1069
+ #: ../views/form.php:43
1070
+ msgid "Author(s) ID(s)"
1071
+ msgstr "Autor(en)-ID(s):"
1072
+
1073
+ #: ../views/form.php:48
1074
  msgid "Posts settings"
1075
  msgstr "Einstellungen für Beiträge"
1076
 
1077
+ #: ../views/form.php:52
1078
  msgid "Display post rating"
1079
  msgstr "Zeige Bewertung"
1080
 
1081
+ #: ../views/form.php:55
1082
  msgid "Shorten title"
1083
  msgstr "Kürze den Titel"
1084
 
1085
+ #: ../views/form.php:58
1086
  msgid "Shorten title to"
1087
  msgstr "Kürze den Titel auf"
1088
 
1089
+ #: ../views/form.php:59 ../views/form.php:69
1090
  msgid "characters"
1091
  msgstr "Buchstaben"
1092
 
1093
+ #: ../views/form.php:60 ../views/form.php:70
1094
+ msgid "words"
1095
+ msgstr "Wörter"
1096
+
1097
+ #: ../views/form.php:63
1098
  msgid "Display post excerpt"
1099
  msgstr "Zeige Auszug"
1100
 
1101
+ #: ../views/form.php:66
 
 
 
 
1102
  msgid "Keep text format and links"
1103
  msgstr "Behalte Textformat und Links bei"
1104
 
1105
+ #: ../views/form.php:67
1106
+ msgid "Excerpt length"
1107
  msgstr "Länge des Auszugs:"
1108
 
1109
+ #: ../views/form.php:73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1110
  msgid "Display post thumbnail"
1111
  msgstr "Zeige Vorschaubild"
1112
 
1113
+ #: ../views/form.php:76
1114
+ msgid "Width"
1115
  msgstr "Breite:"
1116
 
1117
+ #: ../views/form.php:77 ../views/form.php:80
1118
  msgid "px"
1119
  msgstr "px"
1120
 
1121
+ #: ../views/form.php:79
1122
+ msgid "Height"
1123
  msgstr "Höhe:"
1124
 
1125
+ #: ../views/form.php:85
1126
  msgid "Stats Tag settings"
1127
  msgstr "Einstellungen des Statistik-Tags"
1128
 
1129
+ #: ../views/form.php:87
1130
  msgid "Display comment count"
1131
  msgstr "Zeige Anzahl Kommentare"
1132
 
1133
+ #: ../views/form.php:89
1134
  msgid "Display views"
1135
  msgstr "Zeige Aufrufe"
1136
 
1137
+ #: ../views/form.php:91
1138
  msgid "Display author"
1139
  msgstr "Zeige Autor"
1140
 
1141
+ #: ../views/form.php:93
1142
  msgid "Display date"
1143
  msgstr "Zeige Datum"
1144
 
1145
+ #: ../views/form.php:96
1146
  msgid "Date Format"
1147
  msgstr "Datumsformat"
1148
 
1149
+ #: ../views/form.php:98
1150
+ msgid "Wordpress Date Format"
1151
+ msgstr "Datumsformat Wordpress"
1152
+
1153
+ #: ../views/form.php:105
1154
  msgid "Display category"
1155
  msgstr "Zeige Kategorie"
1156
 
1157
+ #: ../views/form.php:109
1158
  msgid "HTML Markup settings"
1159
  msgstr "Einstellungen des HTML-Codes"
1160
 
1161
+ #: ../views/form.php:111
1162
  msgid "Use custom HTML Markup"
1163
  msgstr "Verwende nutzerdefinierten HTML-Code"
1164
 
1165
+ #: ../views/form.php:114
1166
+ msgid "Before / after title"
1167
+ msgstr "Vor / nach dem Titel:"
1168
 
1169
+ #: ../views/form.php:117
1170
+ msgid "Before / after Popular Posts"
1171
+ msgstr "Vor / nach Beliebte Beiträge:"
1172
 
1173
+ #: ../views/form.php:120
1174
+ msgid "Post HTML Markup"
1175
  msgstr "Zeige HTML-Code"
1176
 
1177
+ #: ../wordpress-popular-posts.php:269
1178
+ msgid "The most Popular Posts on your blog."
1179
+ msgstr "Die beliebtesten Beiträge deines Blogs."
1180
+
1181
+ #: ../wordpress-popular-posts.php:410
1182
+ msgid ""
1183
+ "Error: cannot ajaxify Wordpress Popular Posts on this theme. It's missing "
1184
+ "the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
1185
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1186
+ "\"nofollow\">register_sidebar</a> for more)."
1187
+ msgstr ""
1188
+
1189
+ #: ../wordpress-popular-posts.php:636
1190
+ msgid "Upload"
1191
+ msgstr "Hochladen"
1192
+
1193
+ #: ../wordpress-popular-posts.php:1002
1194
+ #, php-format
1195
+ msgid ""
1196
+ "Your PHP installation is too old. Wordpress Popular Posts requires at least "
1197
+ "PHP version %1$s to function correctly. Please contact your hosting provider "
1198
+ "and ask them to upgrade PHP to %1$s or higher."
1199
+ msgstr ""
1200
+ "Deine PHP-Version ist zu alt. Das Plugin\"Wordpress Popular Posts\" benötigt "
1201
+ "mindestens PHP-Version %1$s für die einwandfreie Funktion. Bitte nehme "
1202
+ "Kontakt mit deinem Hosting-Provider auf und bitte ihn, PHP auf v%1$s oder "
1203
+ "höher zu aktualisieren."
1204
+
1205
+ #: ../wordpress-popular-posts.php:1009
1206
+ #, php-format
1207
+ msgid ""
1208
+ "Your Wordpress version is too old. Wordpress Popular Posts requires at least "
1209
+ "Wordpress version %1$s to function correctly. Please update your blog via "
1210
+ "Dashboard &gt; Update."
1211
+ msgstr ""
1212
+ "Deine Wordpress-Version ist zu alt. Das Plugin Wordpress Popular Posts "
1213
+ "benötigt mindestens Version %1$s. Bitte aktualisiere Wordpress via Dashboard "
1214
+ "&gt; Aktualisieren."
1215
+
1216
+ #: ../wordpress-popular-posts.php:1034
1217
+ #, php-format
1218
+ msgid ""
1219
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
1220
+ "strong>.</p></div>"
1221
+ msgstr ""
1222
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> wurde <strong>deaktiviert</"
1223
+ "strong>.</p></div>"
1224
+
1225
+ #: ../wordpress-popular-posts.php:1094
1226
  msgid "Success! The cache table has been cleared!"
1227
  msgstr "Erfolg: Die Cache-Tabelle wurde geleert!"
1228
 
1229
+ #: ../wordpress-popular-posts.php:1096
1230
  msgid "Error: cache table does not exist."
1231
  msgstr "Fehler: Cache-Tabelle ist nicht vorhanden."
1232
 
1233
+ #: ../wordpress-popular-posts.php:1103
1234
  msgid "Success! All data have been cleared!"
1235
  msgstr "Erfolg: Alle Daten wurden gelöscht!"
1236
 
1237
+ #: ../wordpress-popular-posts.php:1105
1238
  msgid "Error: one or both data tables are missing."
1239
  msgstr "Fehler: Eine oder beide Tabellen fehlen."
1240
 
1241
+ #: ../wordpress-popular-posts.php:1108
1242
  msgid "Invalid action."
1243
  msgstr "Ungültige Aktion."
1244
 
1245
+ #: ../wordpress-popular-posts.php:1111
1246
  msgid ""
1247
  "Sorry, you do not have enough permissions to do this. Please contact the "
1248
  "site administrator for support."
1250
  "Du hast nicht die erforderlichen Rechte um das zu tun. Bitte wende dich an "
1251
  "den Administrator für weitere Hilfe."
1252
 
1253
+ #: ../wordpress-popular-posts.php:1639
1254
  msgid "Sorry. No data so far."
1255
  msgstr "Noch keine Daten vorhanden."
1256
 
1257
+ #: ../wordpress-popular-posts.php:2111
1258
+ #, php-format
1259
+ msgid "1 comment"
1260
+ msgid_plural "%s comments"
1261
+ msgstr[0] "1 Kommentar"
1262
+ msgstr[1] "%s Kommentare"
1263
+
1264
+ #: ../wordpress-popular-posts.php:2123
1265
+ #, php-format
1266
+ msgid "1 view per day"
1267
+ msgid_plural "%s views per day"
1268
+ msgstr[0] "1 Aufruf pro Tag"
1269
+ msgstr[1] "%s Aufrufe pro Tag"
1270
+
1271
+ #: ../wordpress-popular-posts.php:2129
1272
+ #, php-format
1273
+ msgid "1 view"
1274
+ msgid_plural "%s views"
1275
+ msgstr[0] "1 Aufruf"
1276
+ msgstr[1] "%s Aufrufe"
1277
+
1278
+ #: ../wordpress-popular-posts.php:2141
1279
+ #, php-format
1280
+ msgid "by %s"
1281
+ msgstr "von %s"
1282
+
1283
+ #: ../wordpress-popular-posts.php:2147
1284
+ #, php-format
1285
+ msgid "posted on %s"
1286
+ msgstr "veröffentlicht am %s"
1287
+
1288
+ #: ../wordpress-popular-posts.php:2155
1289
+ #, php-format
1290
+ msgid "under %s"
1291
+ msgstr "in %s"
1292
+
1293
+ #~ msgid ""
1294
+ #~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
1295
+ #~ "and the [wpp] shortcode\"."
1296
+ #~ msgstr ""
1297
+ #~ "Bitte schlage nach bei \"Liste der gültigen Parameter von wpp_gewt-"
1298
+ #~ "mostpopular() und des [wpp]-Shortcodes\"."
1299
+
1300
+ #~ msgid ""
1301
+ #~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
1302
+ #~ "shortcode"
1303
+ #~ msgstr ""
1304
+ #~ "Liste der gültigen Parameter von wpp_get-mostpopular() und des [wpp]-"
1305
+ #~ "Shortcodes"
1306
+
1307
+ #~ msgid ""
1308
+ #~ "These parameters can be used by both the template tag "
1309
+ #~ "wpp_get_most_popular() and the shortcode [wpp]."
1310
+ #~ msgstr ""
1311
+ #~ "Diese Parameter können sowohl im Template-Tag wpp_get_most_popular() als "
1312
+ #~ "auch im Shortcode [wpp] eingesetzt werden."
1313
+
1314
+ #~ msgid "Preview"
1315
+ #~ msgstr "Vorschau"
1316
+
1317
+ #~ msgid "Excerpt Properties"
1318
+ #~ msgstr "Eigenschaften des Auszugs"
1319
+
1320
+ #~ msgid "Thumbnail settings"
1321
+ #~ msgstr "Einstellungen für die Vorschaubilder"
1322
+
1323
+ #~ msgid ""
1324
+ #~ "Here you will find a handy group of options to tweak Wordpress Popular "
1325
+ #~ "Posts."
1326
+ #~ msgstr ""
1327
+ #~ "Hier findest du einen überschaubaren Bereich an Einstellungen, um "
1328
+ #~ "Wordpress Popular Posts zu optimieren."
1329
+
1330
+ #, fuzzy
1331
+ #~ msgid "Popular Posts links behavior"
1332
+ #~ msgstr "Aktualisierungsintervall der Liste"
1333
+
1334
+ #~ msgid "Views logging behavior"
1335
+ #~ msgstr "Zählverhalten"
1336
+
1337
+ #~ msgid "Wordpress Popular Posts Stylesheet"
1338
+ #~ msgstr "Wordpress Popular Posts Stylesheet"
1339
+
1340
+ #~ msgid "Data tools"
1341
+ #~ msgstr "Datenwerkzeuge"
1342
+
1343
+ #~ msgid "Popular posts listing refresh interval"
1344
+ #~ msgstr "Aktualisierungsintervall der Liste"
1345
+
1346
+ #~ msgid "Frequently Asked Questions"
1347
+ #~ msgstr "Häufig gestellte Fragen"
1348
+
1349
+ #~ msgid "Sets the opening tag for each item on the list"
1350
+ #~ msgstr "Bestimmt den öffnenden Tag für jeden Listeneintrag"
1351
+
1352
+ #~ msgid "Sets the closing tag for each item on the list"
1353
+ #~ msgstr "Bestimmt den schließenden Tag für jeden Listeneintrag"
1354
+
1355
+ #~ msgid ""
1356
+ #~ "If set, this option will allow you to decide the order of the contents "
1357
+ #~ "within each item on the list."
1358
+ #~ msgstr ""
1359
+ #~ "Falls gesetzt, kannst du die Reihenfolge der Einträge in der Liste "
1360
+ #~ "bestimmen."
1361
+
1362
+ #~ msgid ""
1363
+ #~ "If set, you can decide the order of each content inside a single item on "
1364
+ #~ "the list. For example, setting it to \"{title}: {summary}\" would output "
1365
+ #~ "something like \"Your Post Title: summary here\". This attribute requires "
1366
+ #~ "do_pattern to be true."
1367
+ #~ msgstr ""
1368
+ #~ "Falls gesetzt, kannst du die Reihenfolge des Inhalts innerhalbs eines "
1369
+ #~ "einzelnen Listeneintrags einstellen. Zum Beispiel zeigt \"{title}: "
1370
+ #~ "{summary}\" (ohne Anführungszeichen) sowas wie \"Überschrift: Text des "
1371
+ #~ "Auszugs\" an. Dieses Attribut erfordert, dass do_pattern auf 1 (true) "
1372
+ #~ "gesetzt ist."
1373
+
1374
+ #~ msgid "Available tags"
1375
+ #~ msgstr "Verfügbare Tags"
1376
+
1377
+ #~ msgid "Rate it"
1378
+ #~ msgstr "Bewerte es"
1379
+
1380
+ #~ msgid "on the official Plugin Directory!"
1381
+ #~ msgstr "im offiziellen Plugin-Verzeichnis!"
1382
+
1383
+ #~ msgid "Do you love this plugin?"
1384
+ #~ msgstr "Magst du dieses Plugin?"
1385
+
1386
+ #~ msgid "Buy me a beer!"
1387
+ #~ msgstr "Spende mir ein Bier!"
1388
+
1389
+ #~ msgid "comments"
1390
+ #~ msgstr "Komentare"
1391
+
1392
+ #~ msgid "views per day"
1393
+ #~ msgstr "Aufrufe pro Tag"
1394
+
1395
+ #~ msgid "views"
1396
+ #~ msgstr "Aufrufe"
1397
 
1398
+ #~ msgid "by"
1399
+ #~ msgstr "von"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1400
 
1401
  #~ msgid "What does \"Use content formatting tags\" do?"
1402
  #~ msgstr "Was macht \"Verwende textformatierende Tags\"?"
lang/wordpress-popular-posts-es_ES.mo CHANGED
Binary file
lang/wordpress-popular-posts-es_ES.po CHANGED
@@ -2,41 +2,44 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-06-02 11:54-0430\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Hector Cabrera <hcabrerab@gmail.com>\n"
8
- "Language-Team: Héctor Cabrera <admin@rauru.com>\n"
9
- "Language: en_VE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-SourceCharset: iso-8859-1\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.5\n"
 
17
  "X-Poedit-SearchPath-0: .\n"
 
18
 
19
- #: admin.php:67 admin.php:73 admin.php:85 admin.php:96 admin.php:104
 
20
  msgid "Settings saved."
21
  msgstr "Configuraci&oacute;n guardada."
22
 
23
- #: admin.php:78
24
  msgid "Please provide the name of your custom field."
25
  msgstr "Por favor indica el nombre de tu custom field."
26
 
27
- #: admin.php:345
28
  msgid ""
29
  "This operation will delete all entries from Wordpress Popular Posts' cache "
30
  "table and cannot be undone."
31
  msgstr ""
32
  "Esta operaci\\363n borrar\\341 todas las entradas en el cach\\351 de "
33
- "Wordpress Popular Posts y no puede ser reversado."
34
 
35
- #: admin.php:345 admin.php:353
36
  msgid "Do you want to continue?"
37
  msgstr "Deseas continuar?"
38
 
39
- #: admin.php:353
40
  msgid ""
41
  "This operation will delete all stored info from Wordpress Popular Posts' "
42
  "data tables and cannot be undone."
@@ -44,19 +47,27 @@ msgstr ""
44
  "Esta operaci\\363n borrar\\341 toda la informaci\\363n guardada en las "
45
  "tablas de Wordpress Popular Posts y no puede ser reversado."
46
 
47
- #: admin.php:367
48
  msgid "Stats"
49
  msgstr "Estad&iacute;sticas"
50
 
51
- #: admin.php:368
 
 
 
 
 
 
 
 
52
  msgid "FAQ"
53
  msgstr "FAQ"
54
 
55
- #: admin.php:369
56
- msgid "Tools"
57
- msgstr "Herramientas"
58
 
59
- #: admin.php:373
60
  msgid ""
61
  "Click on each tab to see what are the most popular entries on your blog in "
62
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
@@ -66,437 +77,335 @@ msgstr ""
66
  "de tu blog en las &uacute;ltimas 24 horas, esta semana, los &uacute;ltimos "
67
  "30 d&iacute;as o de todos los tiempos."
68
 
69
- #: admin.php:379
70
  msgid "Order by comments"
71
  msgstr "Ordenar por comentarios"
72
 
73
- #: admin.php:380
74
  msgid "Order by views"
75
  msgstr "Ordenar por vistas"
76
 
77
- #: admin.php:381
78
  msgid "Order by avg. daily views"
79
  msgstr "Ordenar por average de vistas diarias"
80
 
81
- #: admin.php:383
82
  msgid "Post type"
83
  msgstr "Post type"
84
 
85
- #: admin.php:384
86
  msgid "Limit"
87
  msgstr "L&iacute;mite"
88
 
89
- #: admin.php:386 admin.php:805 admin.php:864 admin.php:884 admin.php:936
 
 
 
 
 
 
90
  msgid "Apply"
91
  msgstr "Aplicar"
92
 
93
- #: admin.php:392 wordpress-popular-posts.php:382
94
  msgid "Last 24 hours"
95
  msgstr "&Uacute;ltimas 24 horas"
96
 
97
- #: admin.php:393 wordpress-popular-posts.php:383
98
  msgid "Last 7 days"
99
  msgstr "&Uacute;ltimos 7 d&iacute;as"
100
 
101
- #: admin.php:394 wordpress-popular-posts.php:384
102
  msgid "Last 30 days"
103
  msgstr "&Uacute;ltimos 30 d&iacute;as"
104
 
105
- #: admin.php:395 wordpress-popular-posts.php:385
106
  msgid "All-time"
107
  msgstr "Todos los tiempos"
108
 
109
- #: admin.php:416
110
- msgid "Frequently Asked Questions"
111
- msgstr "Preguntas Frecuentes (FAQ)"
112
 
113
- #: admin.php:420
114
- msgid "What does \"Title\" do?"
115
- msgstr "&iquest;Para qu&eacute; es \"T&iacute;tulo\"?"
116
-
117
- #: admin.php:422
118
- msgid ""
119
- "It allows you to show a heading for your most popular posts listing. If left "
120
- "empty, no heading will be displayed at all."
121
- msgstr ""
122
- "Te permite mostrar un encabezado para tu lista de entradas populares. Si se "
123
- "deja vac&iacute;o, no se mostrar&aacute; el encabezado."
124
-
125
- #: admin.php:425
126
- msgid "What is Time Range for?"
127
- msgstr "&iquest;Para qu&eacute; es \"Rango de Tiempo\"?"
128
-
129
- #: admin.php:427
130
- msgid ""
131
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
132
- "comments within the selected time range."
133
- msgstr ""
134
- "Le indica a Wordpress Popular Posts que muestre las entradas m&aacute;s "
135
- "vistas / comentadas en el rango de tiempo seleccionado."
136
 
137
- #: admin.php:430
138
- msgid "What is \"Sort post by\" for?"
139
- msgstr "&iquest;Para qu&eacute; es \"Ordenar entradas por\"?"
140
 
141
- #: admin.php:432
142
  msgid ""
143
- "It allows you to decide whether to order your popular posts listing by total "
144
- "views, comments, or average views per day."
145
  msgstr ""
146
- "Te permite decidir si ordenar tus entradas populares por la cantidad total "
147
- "de vistas, comentarios, o por el porcentaje diario de vistas."
148
-
149
- #: admin.php:435
150
- msgid "What does \"Display post rating\" do?"
151
- msgstr "&iquest;Qu&eacute; hace \"Mostrar rating de la entrada\"?"
152
 
153
- #: admin.php:437
154
- msgid ""
155
- "If checked, Wordpress Popular Posts will show how your readers are rating "
156
- "your most popular posts. This feature requires having WP-PostRatings plugin "
157
- "installed and enabled on your blog for it to work."
158
- msgstr ""
159
- "Si se tilda, Wordpress Popular Posts mostrar&aacute; c&oacute;mo tus "
160
- "lectores est&aacute;n calificando tus entradas populares. Esta "
161
- "caracter&iacute;stica requiere que el plugin WP-PostRatings est&eacute; "
162
- "instalado y habilitado en tu blog para que funcione."
163
 
164
- #: admin.php:440
165
- msgid "What does \"Shorten title\" do?"
166
- msgstr "&iquest;Qu&eacute; hace \"Acortar t&iacute;tulo\"?"
167
 
168
- #: admin.php:442
169
- msgid ""
170
- "If checked, all posts titles will be shortened to \"n\" characters/words. A "
171
- "new \"Shorten title to\" option will appear so you can set it to whatever "
172
- "you like."
173
- msgstr ""
174
- "Si se tilda, todos los t&iacute;tulos de las entradas se acortar&aacute;n \"n"
175
- "\" caracteres/palabras. Una nueva opci&oacute;n \"Acortar t&iacute;tulo en\" "
176
- "se mostrar&aacute; para que puedas configurarlo como quieras."
177
 
178
- #: admin.php:445
179
- msgid "What does \"Display post excerpt\" do?"
180
- msgstr "&iquest;Qu&eacute; hace \"Mostrar resumen de la entrada\"?"
181
 
182
- #: admin.php:447
183
- msgid ""
184
- "If checked, Wordpress Popular Posts will also include a small extract of "
185
- "your posts in the list. Similarly to the previous option, you will be able "
186
- "to decide how long the post excerpt should be."
187
  msgstr ""
188
- "Si se tilda, Wordpress Popular Posts incluir&aacute; un peque&ntilde;o "
189
- "extracto de tus entradas en la lista. Similar a la opci&oacute;n anterior, "
190
- "podr&aacute;s decidir qu&eacute; tan largo debe ser el extracto."
191
-
192
- #: admin.php:450
193
- msgid "What does \"Keep text format and links\" do?"
194
- msgstr "&iquest;Qu&eacute; hace \"Mantener el formato de texto y links\"?"
195
 
196
- #: admin.php:452
197
- msgid ""
198
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
199
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
200
- "the excerpt. Hyperlinks will remain intact, too."
201
- msgstr ""
202
- "Si se tilda, y si la opci&oacute;n Mostrar Resumen est&aacute; habilitada, "
203
- "Wordpress Popular Posts mantendr&aacute; las etiquetas de estilos que se "
204
- "encontraron en el extracto. Los hiperv&iacute;nculos tambi&eacute;n se "
205
- "mantendr&aacute;n."
206
 
207
- #: admin.php:455
208
- msgid "What is \"Post type\" for?"
209
- msgstr "&iquest;Para qu&eacute; es el \"Post type\"?"
210
 
211
- #: admin.php:457
212
- msgid ""
213
- "This filter allows you to decide which post types to show on the listing. By "
214
- "default, it will retrieve only posts and pages (which should be fine for "
215
- "most cases)."
216
- msgstr ""
217
- "Este filtro te permite decidir que tipo de entradas deseas mostrar en el "
218
- "listado. Por defecto, trater&aacute; s&oacute;lo entradas y p&aacute;ginas "
219
- "(que es lo que se quiere, en la mayor&iacute;a de los casos)."
220
 
221
- #: admin.php:460
222
- msgid "What is \"Category(ies) ID(s)\" for?"
223
- msgstr "&iquest;Para qu&eacute; es el \"ID(s) de Categor&iacute;a(s)\"?"
224
 
225
- #: admin.php:462
226
- msgid ""
227
- "This filter allows you to select which categories should be included or "
228
- "excluded from the listing. A negative sign in front of the category ID "
229
- "number will exclude posts belonging to it from the list, for example. You "
230
- "can specify more than one ID with a comma separated list."
231
- msgstr ""
232
- "Este filtro te permite seleccionar qu&eacute; categor&iacute;as deber&iacute;"
233
- "an ser inclu&iacute;das o exclu&iacute;das del listado. Un signo negativo "
234
- "enfrente del ID de la categor&iacute;a la excluir&aacute; de la lista, por "
235
- "ejemplo. Puedes especificar m&aacute;s de un ID separ&aacute;ndolos con "
236
- "comas."
237
 
238
- #: admin.php:465
239
- msgid "What is \"Author(s) ID(s)\" for?"
240
- msgstr "&iquest;Para qu&eacute; es el \"ID de Autor(es)\"?"
241
 
242
- #: admin.php:467
243
- msgid ""
244
- "Just like the Category filter, this one lets you filter posts by author ID. "
245
- "You can specify more than one ID with a comma separated list."
246
- msgstr ""
247
- "Justo como el filtro de Categor&iacute;a, &eacute;ste te permite filtrar "
248
- "entradas por ID del autor. Puedes especificar m&aacute;s de un ID "
249
- "separ&aacute;ndolos con comas."
250
 
251
- #: admin.php:470
252
- msgid "What does \"Display post thumbnail\" do?"
253
- msgstr "&iquest;Qu&eacute; hace \"Mostrar miniatura de la entrada\"?"
254
 
255
- #: admin.php:472
256
- msgid ""
257
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
258
- "of each post. You can set up the source of the thumbnail via Settings - "
259
- "Wordpress Popular Posts - Tools."
260
- msgstr ""
261
- "Si se tilda, Wordpress Popular Posts intentar&aacute; obtener la imagen "
262
- "miniatura de cada entrada. Puedes configurar la fuente de la miniatura via "
263
- "Configuraci&oacute;n - Wordpress Popular Posts - Herramientas."
264
 
265
- #: admin.php:475
266
- msgid "What does \"Display comment count\" do?"
267
- msgstr "&iquest;Qu&eacute; hace \"Mostrar cantidad de comentarios\"?"
268
 
269
- #: admin.php:477
270
- msgid ""
271
- "If checked, Wordpress Popular Posts will display how many comments each "
272
- "popular post has got in the selected Time Range."
273
- msgstr ""
274
- "Si se tilda, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntos "
275
- "comentarios ha obtenido cada entrada popular dentro del Rango de Tiempo "
276
- "seleccionado."
277
 
278
- #: admin.php:480
279
- msgid "What does \"Display views\" do?"
280
- msgstr "&iquest;Qu&eacute; hace \"Mostrar vistas\"?"
281
 
282
- #: admin.php:482
283
  msgid ""
284
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
285
- "post has gotten in the selected Time Range."
286
  msgstr ""
287
- "Si se tilda, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntas vistas "
288
- "ha obtenido cada entrada en el Rango de Tiempo seleccionado."
 
289
 
290
- #: admin.php:485
291
- msgid "What does \"Display author\" do?"
292
- msgstr "&iquest;Qu&eacute; hace \"Mostrar autor\"?"
293
 
294
- #: admin.php:487
295
- msgid ""
296
- "If checked, Wordpress Popular Posts will display the name of the author of "
297
- "each entry listed."
298
- msgstr ""
299
- "Si se tilda, Wordpress Popular Posts mostrar&aacute; el nombre del autor de "
300
- "cada entrada listada."
301
 
302
- #: admin.php:490
303
- msgid "What does \"Display date\" do?"
304
- msgstr "&iquest;Qu&eacute; hace \"Mostrar fecha\"?"
305
 
306
- #: admin.php:492
307
  msgid ""
308
- "If checked, Wordpress Popular Posts will display the date when each popular "
309
- "posts was published."
 
310
  msgstr ""
311
- "Si se tilda, Wordpress Popular Posts mostrar&aacute; la fecha en la que fue "
312
- "publicada cada entrada popular."
 
 
 
313
 
314
- #: admin.php:495
315
- msgid "What does \"Use custom HTML Markup\" do?"
316
- msgstr "&iquest;Qu&eacute; hace \"Utilizar Markup HTML personalizado\"?"
317
 
318
- #: admin.php:497
319
- msgid ""
320
- "If checked, you will be able to customize the HTML markup of your popular "
321
- "posts listing. For example, you can decide whether to wrap your posts in an "
322
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
323
- "for you!"
324
- msgstr ""
325
- "Si se tilda, podr&aacute;s personalizad el markup HTML de tu listado de "
326
- "entradas populares. Por ejemplo, podr&aacute;s decidir si colocar tu listado "
327
- "en una lista desordenada, una ordenada, dentro de un div, etc. Si sabes "
328
- "xHTML/CSS, &iexcl;esto es para ti!"
329
 
330
- #: admin.php:500
331
- msgid "What are \"Content Tags\"?"
332
- msgstr "&iquest;Qu&eacute; son los \"Content Tags\"?"
333
 
334
- #: admin.php:502
335
- msgid ""
336
- "Content Tags are codes to display a variety of items on your popular posts "
337
- "custom HTML structure. For example, setting it to \"{title}: "
338
- "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
339
- "post here\". For more Content Tags, see \"List of parameters accepted by "
340
- "wpp_get_mostpopular() and the [wpp] shortcode\"."
341
- msgstr ""
342
- "Los Content Tags son etiquetas que sirven para mostrar una variedad de items "
343
- "en la estructura HTML de tu lista. Por ejemplo, configurarlo como \"{title}: "
344
- "{summary}\" (sin las comillas) mostrar&iacute;a \"T&iacute;tulo de la "
345
- "entrada: extracto de la entrada aqu&iacute;\". Para ver otras Content Tags, "
346
- "ver \"Listado de par&aacute;metros aceptados por wpp_get_mostpopular() y el "
347
- "shortcode [wpp]\"."
348
 
349
- #: admin.php:505
350
- msgid "What are \"Template Tags\"?"
351
- msgstr "&iquest;Qu&eacute; son los \"Template Tags\"?"
352
 
353
- #: admin.php:507
354
- msgid ""
355
- "Template Tags are simply php functions that allow you to perform certain "
356
- "actions. For example, Wordpress Popular Posts currently supports two "
357
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
358
- msgstr ""
359
- "Los Template Tags son simplemente funciones php que nos permiten realizar "
360
- "ciertas acciones. Por ejemplo, Wordpress Popular Posts actualmente soporta "
361
- "dos template tags diferentes: wpp_get_mostpopular() y wpp_get_views()."
362
 
363
- #: admin.php:510
364
- msgid "What are the template tags that Wordpress Popular Posts supports?"
365
- msgstr ""
366
- "&iquest;Cu&aacute;les son los Template Tags soportados por Wordpress Popular "
367
- "Posts?"
368
 
369
- #: admin.php:512
370
- msgid ""
371
- "The following are the template tags supported by Wordpress Popular Posts"
372
- msgstr ""
373
- "Los siguientes son los template tags soportados por Wordpress Popular Posts"
374
 
375
- #: admin.php:516
376
- msgid "Template tag"
377
- msgstr "Template tag"
378
 
379
- #: admin.php:517 admin.php:550
380
- msgid "What it does "
381
- msgstr "Qu&eacute; hace"
382
 
383
- #: admin.php:518
384
- msgid "Parameters"
385
- msgstr "Par&aacute;metros"
386
 
387
- #: admin.php:519 admin.php:553
388
- msgid "Example"
389
- msgstr "Ejemplo"
390
 
391
- #: admin.php:525
392
  msgid ""
393
- "Similar to the widget functionality, this tag retrieves the most popular "
394
- "posts on your blog. This function also accepts parameters so you can "
395
- "customize your popular listing, but these are not required."
 
396
  msgstr ""
397
- "Parecido a la funcionalidad del widget, esta etiqueta obtiene las entradas "
398
- "m&aacute;s populares de tu blog. Esta funci&oacute;n tambi&eacute;n acepta "
399
- "par&aacute;metros para que puedas personalizar el listado, pero no es "
400
- "requerido."
401
 
402
- #: admin.php:526
403
  msgid ""
404
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
405
- "the [wpp] shortcode\"."
 
 
 
406
  msgstr ""
407
- "Por favor revisa \"Listado de par&aacute;metros aceptados por "
408
- "wpp_get_mostpopular() y el shortcode [wpp]\"."
 
 
 
 
 
 
 
 
 
409
 
410
- #: admin.php:531
411
- msgid ""
412
- "Displays the number of views of a single post. Post ID is required or it "
413
- "will return false."
414
  msgstr ""
415
- "Muestra la cantidad de vistas de una entrada. El ID de la entrada es "
416
- "requerido, o la funci&oacute;n devolver&aacute; false."
417
-
418
- #: admin.php:532
419
- msgid "Post ID"
420
- msgstr "ID de la entrada"
421
-
422
- #: admin.php:539
423
- msgid "What are \"shortcodes\"?"
424
- msgstr "&iquest;Qu&eacute; son los \"shortcodes\"?"
425
 
426
- #: admin.php:541
427
- msgid ""
428
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
429
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
430
- "shortcode [wpp] will let you insert a list of the most popular posts in "
431
- "posts content and pages too! For more information about shortcodes, please "
432
- "visit"
433
- msgstr ""
434
- "Los Shortcodes son similares a los BB Codes, &eacute;stos nos permiten "
435
- "llamar a una funci&oacute;n php simplemente escribiendo algo como "
436
- "[shortcode]. Con Wordpress Popular Posts, el shortcode [wpp] te "
437
- "permitir&aacute; insertar una lista de las entradas m&aacute;s populares en "
438
- "el contenido de tus entradas y en p&aacute;ginas tambi&eacute;n. Para mayor "
439
- "informaci&oacute;n sobre los shortcodes, por favor visita"
440
 
441
- #: admin.php:543
442
- msgid ""
443
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
444
  msgstr ""
445
- "Lista de par&aacute;metros aceptados por wpp_get_mostpopular() y el "
446
- "shortcode [wpp]"
447
 
448
- #: admin.php:545
 
449
  msgid ""
450
- "These parameters can be used by both the template tag wpp_get_most_popular() "
451
- "and the shortcode [wpp]."
 
452
  msgstr ""
453
- "Estos par&aacute;metros pueden ser utilizados tanto por el template tag "
454
- "wpp_get_mostpopular() como por el shortcode [wpp]."
 
 
455
 
456
- #: admin.php:549
457
  msgid "Parameter"
458
  msgstr "Par&aacute;metro"
459
 
460
- #: admin.php:551
 
 
 
 
461
  msgid "Possible values"
462
  msgstr "Valores posibles"
463
 
464
- #: admin.php:552
465
  msgid "Defaults to"
466
  msgstr "Por defecto"
467
 
468
- #: admin.php:559
 
 
 
 
469
  msgid "Sets a heading for the list"
470
  msgstr "Configura el encabezado de la lista"
471
 
472
- #: admin.php:560 admin.php:567 admin.php:574 admin.php:602 admin.php:609
473
- #: admin.php:616 admin.php:623 admin.php:714 admin.php:728 admin.php:735
474
- #: admin.php:749 admin.php:756
 
475
  msgid "Text string"
476
  msgstr "Texto"
477
 
478
- #: admin.php:561 wordpress-popular-posts.php:126
479
  msgid "Popular Posts"
480
  msgstr "Entradas Populares"
481
 
482
- #: admin.php:566
483
  msgid "Set the opening tag for the heading of the list"
484
  msgstr "Configura la etiqueta de apertura para el encabezado de la lista"
485
 
486
- #: admin.php:573
487
  msgid "Set the closing tag for the heading of the list"
488
  msgstr "Configura la etiqueta de cierre para el encabezado de la lista"
489
 
490
- #: admin.php:580
491
  msgid "Sets the maximum number of popular posts to be shown on the listing"
492
  msgstr ""
493
  "Configura el m&aacute;ximo de entradas populares a ser mostradas en la lista"
494
 
495
- #: admin.php:581 admin.php:630 admin.php:644 admin.php:665 admin.php:672
 
496
  msgid "Positive integer"
497
  msgstr "Entero positivo"
498
 
499
- #: admin.php:587
500
  msgid ""
501
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
502
  "the time range specified by you"
@@ -504,19 +413,27 @@ msgstr ""
504
  "Le indica a Wordpress Popular Posts que debe listar aquellas entradas que "
505
  "hayan sido populares dentro del rango de tiempo especificado por ti"
506
 
507
- #: admin.php:594
 
 
 
 
 
 
 
 
508
  msgid "Sets the sorting option of the popular posts"
509
  msgstr "Configura el ordenado de las entradas populares"
510
 
511
- #: admin.php:595
512
  msgid "(for average views per day)"
513
  msgstr "(para el porcentaje de vistas por d&iacute;a)"
514
 
515
- #: admin.php:601
516
  msgid "Defines the type of posts to show on the listing"
517
  msgstr "Define el tipo de entrada a mostrar en el listado"
518
 
519
- #: admin.php:608
520
  msgid ""
521
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
522
  "form the listing."
@@ -524,11 +441,11 @@ msgstr ""
524
  "Si se configura, Wordpress Popular Posts excluir&aacute; todos los IDs de "
525
  "las entradas especificadas."
526
 
527
- #: admin.php:610 admin.php:617 admin.php:624
528
  msgid "None"
529
  msgstr "Ninguno"
530
 
531
- #: admin.php:615
532
  msgid ""
533
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
534
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
@@ -538,7 +455,7 @@ msgstr ""
538
  "que pertenecen a la(s) categor&iacute;a(s) especificada(s). Si se usa un "
539
  "signo negativo, la(s) categor&iacute;a(s) ser&aacute;(n) exclu&iacute;da(s)."
540
 
541
- #: admin.php:622
542
  msgid ""
543
  "If set, Wordpress Popular Posts will retrieve all entries created by "
544
  "specified author(s) ID(s)."
@@ -546,7 +463,7 @@ msgstr ""
546
  "Si se configura, Wordpress Popular Posts traer&aacute; todas las entradas "
547
  "creadas por el (los) ID(s) de autor(es) especificado(s)."
548
 
549
- #: admin.php:629
550
  msgid ""
551
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
552
  "characters whenever possible"
@@ -554,7 +471,7 @@ msgstr ""
554
  "Si se configura, Wordpress Popular Posts acortar&aacute; cada titulo en \"n"
555
  "\" caracteres cuando sea posible"
556
 
557
- #: admin.php:636
558
  msgid ""
559
  "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
560
  "words instead of characters"
@@ -562,7 +479,7 @@ msgstr ""
562
  "Si se pasa el valor 1, Wordpress Popular Posts acortar&aacute; cada titulo "
563
  "en \"n\" palabras en vez de "
564
 
565
- #: admin.php:643
566
  msgid ""
567
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
568
  "characters long from the content of each post listed as popular"
@@ -571,7 +488,7 @@ msgstr ""
571
  "un extracto de \"n\" caracteres del contenido de cada entrada listada como "
572
  "popular"
573
 
574
- #: admin.php:650
575
  msgid ""
576
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
577
  "italic, etc) and hyperlinks found in the excerpt"
@@ -580,7 +497,7 @@ msgstr ""
580
  "etiquetas de estilo (strong, italic, etc) y los hiperv&iacute;nculos "
581
  "encontrados en el extracto"
582
 
583
- #: admin.php:657
584
  msgid ""
585
  "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
586
  "instead of characters"
@@ -588,7 +505,7 @@ msgstr ""
588
  "Si se configura, Wordpress Popular Posts acortar&aacute; el resumen en \"n\" "
589
  "palabras en vez de caracteres"
590
 
591
- #: admin.php:664
592
  msgid ""
593
  "If set, and if your current server configuration allows it, you will be able "
594
  "to display thumbnails of your posts. This attribute sets the width for "
@@ -598,7 +515,7 @@ msgstr ""
598
  "permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
599
  "configura el ancho de tus miniaturas"
600
 
601
- #: admin.php:671
602
  msgid ""
603
  "If set, and if your current server configuration allows it, you will be able "
604
  "to display thumbnails of your posts. This attribute sets the height for "
@@ -608,7 +525,7 @@ msgstr ""
608
  "permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
609
  "configura el alto de tus miniaturas"
610
 
611
- #: admin.php:678
612
  msgid ""
613
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
614
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
@@ -618,7 +535,7 @@ msgstr ""
618
  "habilitado en tu blog, Wordpress Popular Posts mostrar&aacute; como tus "
619
  "visitantes han calificado a tus entradas"
620
 
621
- #: admin.php:685
622
  msgid ""
623
  "If set, Wordpress Popular Posts will show how many comments each popular "
624
  "post has got until now"
@@ -626,7 +543,7 @@ msgstr ""
626
  "Si se configura, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntos "
627
  "comentarios ha obtenido cada entrada popular hasta ahora"
628
 
629
- #: admin.php:692
630
  msgid ""
631
  "If set, Wordpress Popular Posts will show how many views each popular post "
632
  "has got since it was installed"
@@ -634,7 +551,7 @@ msgstr ""
634
  "Si se configura, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntas "
635
  "vistas ha obtenido cada entrada popular hasta ahora"
636
 
637
- #: admin.php:699
638
  msgid ""
639
  "If set, Wordpress Popular Posts will show who published each popular post on "
640
  "the list"
@@ -642,7 +559,7 @@ msgstr ""
642
  "Si se configura, Wordpress Popular Posts mostrar&aacute; qui&eacute;n "
643
  "public&oacute; cada entrada popular de la lista"
644
 
645
- #: admin.php:706
646
  msgid ""
647
  "If set, Wordpress Popular Posts will display the date when each popular post "
648
  "on the list was published"
@@ -650,56 +567,56 @@ msgstr ""
650
  "Si se tilda, Wordpress Popular Posts mostrar&aacute; la fecha en la que fue "
651
  "publicada cada entrada popular"
652
 
653
- #: admin.php:713
654
  msgid "Sets the date format"
655
  msgstr "Configura el formato de la fecha"
656
 
657
- #: admin.php:720
658
  msgid "If set, Wordpress Popular Posts will display the category"
659
  msgstr ""
660
  "Si se tilda, Wordpress Popular Posts mostrar&aacute; la categor&iacute;a"
661
 
662
- #: admin.php:727
663
  msgid "Sets the opening tag for the listing"
664
  msgstr "Configura la etiqueta de apertura del listado"
665
 
666
- #: admin.php:734
667
  msgid "Sets the closing tag for the listing"
668
  msgstr "Configura la etiqueta de cierre del listado"
669
 
670
- #: admin.php:741
671
  msgid "Sets the HTML structure of each post"
672
  msgstr "Configura la estructura HTML de cada entrada"
673
 
674
- #: admin.php:742
675
  msgid "Text string, custom HTML"
676
  msgstr "Texto, HTML personalizado"
677
 
678
- #: admin.php:742
679
  msgid "Available Content Tags"
680
  msgstr "Content Tags disponibles"
681
 
682
- #: admin.php:742
683
  msgid "displays thumbnail linked to post/page"
684
  msgstr "muestra la miniatura vinculada a la entrada/p&aacute;gina"
685
 
686
- #: admin.php:742
687
  msgid "displays linked post/page title"
688
  msgstr ""
689
  "muestra el t&iacute;tulo de la entrada/p&aacute;gina con v&iacute;nculo"
690
 
691
- #: admin.php:742
692
  msgid ""
693
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
694
  msgstr ""
695
  "muestra el resumen de la entrada/p&aacute;gina, requiere que excerpt_length "
696
  "sea mayor a 0"
697
 
698
- #: admin.php:742
699
  msgid "displays the default stats tags"
700
  msgstr "muestra el stats tag por defecto"
701
 
702
- #: admin.php:742
703
  msgid ""
704
  "displays post/page current rating, requires WP-PostRatings installed and "
705
  "enabled"
@@ -707,304 +624,388 @@ msgstr ""
707
  "muestra el rating actual de la entrada/p&aacute;gina, requiere que WP-"
708
  "PostRatings est&eacute; instalado y activo"
709
 
710
- #: admin.php:742
 
 
 
 
 
 
 
 
711
  msgid "outputs the URL of the post/page"
712
  msgstr "muestra la URL de la entrada/p&aacute;gina"
713
 
714
- #: admin.php:742
715
  msgid "displays post/page title, no link"
716
  msgstr ""
717
  "muestra el t&iacute;tulo de la entrada/p&aacute;gina, sin v&iacute;nculo"
718
 
719
- #: admin.php:742
720
  msgid "displays linked author name, requires stats_author=1"
721
  msgstr ""
722
  "muestra el nombre del autor con v&iacute;nculo, requiere stats_author=1"
723
 
724
- #: admin.php:742
725
  msgid "displays linked category name, requires stats_category=1"
726
  msgstr ""
727
  "muestra el nombre de la categor&iacute;a vinculado, requiere stats_category=1"
728
 
729
- #: admin.php:742
730
  msgid "displays views count only, no text"
731
  msgstr "muestra el n&uacute;mero de vistas, sin texto adicional"
732
 
733
- #: admin.php:742
734
  msgid "displays comments count only, no text, requires stats_comments=1"
735
  msgstr ""
736
  "muestra el n&uacute;mero de comentarios, sin texto adicional, requiere "
737
  "stats_comments=1"
738
 
739
- #: admin.php:748
740
- msgid "Sets the opening tag for each item on the list"
741
- msgstr "Configura la etiqueta de apertura de cada &iacute;tem del listado"
742
-
743
- #: admin.php:755
744
- msgid "Sets the closing tag for each item on the list"
745
- msgstr "Configura la etiqueta de cierre de cada &iacute;tem del listado"
746
 
747
- #: admin.php:762
748
  msgid ""
749
- "If set, this option will allow you to decide the order of the contents "
750
- "within each item on the list."
751
  msgstr ""
752
- "Si se configura, esta opci&oacute;n te permitir&aacute; decidir el orden de "
753
- "los contenidos dentro de cada item en la lista."
 
 
 
 
754
 
755
- #: admin.php:769
756
  msgid ""
757
- "If set, you can decide the order of each content inside a single item on the "
758
- "list. For example, setting it to \"{title}: {summary}\" would output "
759
- "something like \"Your Post Title: summary here\". This attribute requires "
760
- "do_pattern to be true."
761
  msgstr ""
762
- "Si se configura, puedes decidir el orden de cada contenido dentro de cada "
763
- "item en la lista. Por ejemplo, configurarlo como \"{title}: {summary}\" "
764
- "mostrar&iacute;a \"El t&iacute;tulo de tu entrada: resumen aqu&iacute;\". "
765
- "Este atributo requiere que do_pattern sea true."
766
 
767
- #: admin.php:770
768
- msgid "Available tags"
769
- msgstr "Etiquetas disponibles"
770
 
771
- #: admin.php:785
772
  msgid ""
773
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
 
774
  msgstr ""
775
- "Aqu&iacute; encontrar&aacute;s un &uacute;til grupo de opciones para ajustar "
776
- "a Wordpress Popular Posts."
777
 
778
- #: admin.php:787
779
- msgid "Views logging behavior"
780
- msgstr "Comportamiento del registro de vistas"
781
 
782
- #: admin.php:793
783
- msgid "Log views from"
784
- msgstr "Registrar vistas de"
 
 
 
 
 
 
 
785
 
786
- #: admin.php:796
787
- msgid "Visitors only"
788
- msgstr "S&oacute;lo visitantes"
789
 
790
- #: admin.php:797
791
- msgid "Everyone"
792
- msgstr "Todos"
 
 
 
 
 
 
793
 
794
- #: admin.php:814
795
- msgid "Thumbnail source"
796
- msgstr "Fuente de la miniatura"
797
 
798
- #: admin.php:820
799
- msgid "Default thumbnail"
800
- msgstr "Miniatura por defecto"
 
 
 
 
 
 
801
 
802
- #: admin.php:822
803
- msgid "Upload thumbnail"
804
- msgstr "Subir miniatura"
805
 
806
- #: admin.php:825
807
  msgid ""
808
- "How-to: upload (or select) an image, set Size to Full and click on Upload. "
809
- "After it's done, hit on Apply to save changes"
 
810
  msgstr ""
811
- "Tutorial: sube (o selecciona) una imagen, selecciona Tama&ntilde;o Completo "
812
- "y haz clic en Subir. Cuando termine, dale a Aplicar para guardar los cambios"
 
 
813
 
814
- #: admin.php:827
815
- msgid "Preview"
816
- msgstr "Vista previa"
817
 
818
- #: admin.php:835
819
- msgid "Pick image from"
820
- msgstr "Seleccionar imagen desde"
 
 
 
 
 
 
821
 
822
- #: admin.php:838
823
- msgid "Featured image"
824
- msgstr "Imagen destacada"
825
 
826
- #: admin.php:839
827
- msgid "First image on post"
828
- msgstr "Primera imagen de la entrada"
 
 
 
 
 
 
 
 
 
829
 
830
- #: admin.php:840
831
- msgid "Custom field"
832
- msgstr "Custom field"
833
 
834
- #: admin.php:843
835
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
 
 
836
  msgstr ""
837
- "Dile a Wordpress Popular Posts de d&oacute;nde debe obtener las miniaturas"
 
 
838
 
839
- #: admin.php:847
840
- msgid "Custom field name"
841
- msgstr "Nombre del custom field"
842
 
843
- #: admin.php:853
844
- msgid "Resize image from Custom field?"
845
- msgstr "&iexcl;Ajustar la imagen del Custom field?"
 
 
 
 
 
 
846
 
847
- #: admin.php:856
848
- msgid "No, I will upload my own thumbnail"
849
- msgstr "No, subir&eacute; mi propia miniatura"
850
 
851
- #: admin.php:857
852
- msgid "Yes"
853
- msgstr "S&iacute;"
 
 
 
 
 
854
 
855
- #: admin.php:874
856
- msgid "Wordpress Popular Posts Stylesheet"
857
- msgstr "Hoja de estilos de Wordpress Popular Posts"
858
 
859
- #: admin.php:875
860
  msgid ""
861
- "By default, the plugin includes a stylesheet called wpp.css which you can "
862
- "use to style your popular posts listing. If you wish to use your own "
863
- "stylesheet or do not want it to have it included in the header section of "
864
- "your site, use this."
865
  msgstr ""
866
- "Por defecto, el plugin incluye una hoja de estilos llamada wpp.css que "
867
- "puedes utilizar para darle estilos a tu listado de entradas populares. Si "
868
- "deseas utilizar tu propia hoja de estilos, o no quieres que wpp.css se "
869
- "incluya en el header de tu sitio web, utiliza esto."
870
-
871
- #: admin.php:880 admin.php:899
872
- msgid "Enabled"
873
- msgstr "Habilitado"
874
 
875
- #: admin.php:881 admin.php:898
876
- msgid "Disabled"
877
- msgstr "Deshabilitado"
878
 
879
- #: admin.php:890
880
- msgid "Data tools"
881
- msgstr "Herramientas de datos"
 
 
 
 
882
 
883
- #: admin.php:895
884
- msgid "Ajaxify widget"
885
- msgstr "Usar Ajax con el widget"
886
 
887
- #: admin.php:903
888
  msgid ""
889
- "If you are using a caching plugin such as WP Super Cache, enabling this "
890
- "feature will keep the popular list from being cached by it"
891
  msgstr ""
892
- "Si est&aacute;s utilizando un plugin de cacheo como WP Super Cache, "
893
- "habilitar esta caracter&iacute;stica evitar&aacute; que la lista de entradas "
894
- "populares sea guardada en cach&eacute;"
895
 
896
- #: admin.php:907
897
- msgid "Popular posts listing refresh interval"
898
- msgstr "Intervalo de refrescamiento de las Entradas Populares"
899
 
900
- #: admin.php:910
901
- msgid "Live"
902
- msgstr "En vivo"
 
 
 
903
 
904
- #: admin.php:911
905
- msgid "Custom interval"
906
- msgstr "Intervalo personalizado"
907
 
908
- #: admin.php:915
909
  msgid ""
910
- "Sets how often the listing should be updated. For most sites the Live option "
911
- "should be fine, however if you are experiencing slowdowns or your blog gets "
912
- "a lot of visitors then you might want to change the refresh rate"
 
913
  msgstr ""
914
- "Configura la frecuencia con la que se debe actualizar el listado. Para la "
915
- "mayor&iacute;a de los sitios la opci&oacute;n En Vivo deber&iacute;a estar "
916
- "bien, pero si est&aacute;s experimentando lentitud o tu blog recibe muchos "
917
- "visitantes entonces quiz&aacute;s quieres cambiar la rata de refrescamiento"
918
 
919
- #: admin.php:919
920
- msgid "Refresh interval"
921
- msgstr "Intervalo de refrescamiento"
922
 
923
- #: admin.php:923
924
- msgid "Hour(s)"
925
- msgstr "Hora(s)"
 
 
 
 
 
 
 
 
 
 
 
926
 
927
- #: admin.php:924
928
- msgid "Day(s)"
929
- msgstr "D&iacute;a(s)"
930
 
931
- #: admin.php:925
932
- msgid "Week(s)"
933
- msgstr "Semana(s)"
 
 
 
 
 
 
934
 
935
- #: admin.php:926
936
- msgid "Month(s)"
937
- msgstr "Mes(es)"
 
 
938
 
939
- #: admin.php:927
940
- msgid "Year(s)"
941
- msgstr "A&ntilde;o(s)"
 
 
942
 
943
- #: admin.php:930
944
- msgid "Really? That long?"
945
- msgstr "&iquest;En serio? &iquest;Tanto tiempo?"
946
 
947
- #: admin.php:945
 
948
  msgid ""
949
- "Wordpress Popular Posts maintains data in two separate tables: one for "
950
- "storing the most popular entries in the past 30 days (from now on, \"cache"
951
- "\"), and another one to keep the All-time data (from now on, \"historical "
952
- "data\" or just \"data\"). If for some reason you need to clear the cache "
953
- "table, or even both historical and cache tables, please use the buttons "
954
- "below to do so."
955
  msgstr ""
956
- "Wordpress Popular Posts mantiene la data en dos tablas separadas: una para "
957
- "guardar las entradas m&aacute;s populares de los &uacute;ltimos 30 d&iacute;"
958
- "as (\"cach&eacute;\", de aqu&iacute; en adelante), y otra tabla para "
959
- "almacenar la data de Todos los tiempos (\"data hist&oacute;rica\" o "
960
- "simplemente \"data\"). Si por alguna raz&oacute;n necesitas vaciar la tabla "
961
- "cach&eacute;, o inclusive las dos tablas hist&oacute;ricas y de "
962
- "cach&eacute;, por favor utiliza los botones de abajo."
963
-
964
- #: admin.php:946
965
- msgid "Empty cache"
966
- msgstr "Vaciar el cach&eacute;"
967
 
968
- #: admin.php:946
969
- msgid "Use this button to manually clear entries from WPP cache only"
 
 
 
970
  msgstr ""
971
- "Utiliza este bot&oacute;n para vaciar manualmente s&oacute;lo las entradas "
972
- "del cach&eacute; de WPP"
973
 
974
- #: admin.php:947
975
- msgid "Clear all data"
976
- msgstr "Eliminar toda la data"
977
-
978
- #: admin.php:947
979
- msgid "Use this button to manually clear entries from all WPP data tables"
980
  msgstr ""
981
- "Utiliza este bot&oacute;n para limpiar manualmente las tablas de datos de WPP"
 
982
 
983
- #: admin.php:953
984
- msgid "Do you like this plugin?"
985
- msgstr "&iquest;Te gusta este plugin?"
986
 
987
- #: admin.php:953
988
- msgid "Rate Wordpress Popular Posts!"
989
- msgstr "&iexcl;Califica a Wordpress Popular Posts!"
990
 
991
- #: admin.php:953
992
- msgid "Rate it"
993
- msgstr "&iexcl;Calif&iacute;calo"
 
 
 
 
 
 
 
 
 
 
 
 
 
994
 
995
- #: admin.php:953
996
- msgid "on the official Plugin Directory!"
997
- msgstr "en el Directorio Oficial de Plugins!"
 
998
 
999
- #: admin.php:954
1000
- msgid "Do you love this plugin?"
1001
- msgstr "&iquest;Adoras este plugin?"
1002
 
1003
- #: admin.php:954 admin.php:955
1004
- msgid "Buy me a beer!"
1005
- msgstr "&iexcl;C&oacute;mprame una cerveza!"
1006
 
1007
- #: admin.php:954
1008
  msgid ""
1009
  "Each donation motivates me to keep releasing free stuff for the Wordpress "
1010
  "community!"
@@ -1012,202 +1013,268 @@ msgstr ""
1012
  "&iexcl;Cada donaci&oacute;n me motiva a seguir publicando cosas gratuitas "
1013
  "para la comunidad de Wordpress!"
1014
 
1015
- #: wordpress-popular-posts.php:129
1016
- msgid "The most Popular Posts on your blog."
1017
- msgstr "Las entradas m&aacute;s populares en tu blog."
 
 
 
1018
 
1019
- #: wordpress-popular-posts.php:376
1020
- msgid "Title:"
1021
- msgstr "T&iacute;tulo:"
1022
-
1023
- #: wordpress-popular-posts.php:376 wordpress-popular-posts.php:378
1024
- #: wordpress-popular-posts.php:380 wordpress-popular-posts.php:388
1025
- #: wordpress-popular-posts.php:399 wordpress-popular-posts.php:401
1026
- #: wordpress-popular-posts.php:408 wordpress-popular-posts.php:412
1027
- #: wordpress-popular-posts.php:425 wordpress-popular-posts.php:439
1028
- #: wordpress-popular-posts.php:451 wordpress-popular-posts.php:452
1029
- #: wordpress-popular-posts.php:453 wordpress-popular-posts.php:454
1030
- #: wordpress-popular-posts.php:464 wordpress-popular-posts.php:470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1031
  msgid "What is this?"
1032
  msgstr "&iquest;Qu&eacute; es esto?"
1033
 
1034
- #: wordpress-popular-posts.php:378
1035
- msgid "Show up to:"
1036
- msgstr "Mostrar hasta:"
1037
 
1038
- #: wordpress-popular-posts.php:379
1039
  msgid "posts"
1040
  msgstr "entradas"
1041
 
1042
- #: wordpress-popular-posts.php:380
1043
- msgid "Time Range:"
1044
- msgstr "Rango de Tiempo"
1045
-
1046
- #: wordpress-popular-posts.php:388
1047
- msgid "Sort posts by:"
1048
- msgstr "Ordenar entradas por:"
1049
 
1050
- #: wordpress-popular-posts.php:390
1051
  msgid "Comments"
1052
  msgstr "Comentarios"
1053
 
1054
- #: wordpress-popular-posts.php:391
1055
  msgid "Total views"
1056
  msgstr "Total de vistas"
1057
 
1058
- #: wordpress-popular-posts.php:392
1059
  msgid "Avg. daily views"
1060
  msgstr "Porcentaje de vistas diarias"
1061
 
1062
- #: wordpress-popular-posts.php:397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1063
  msgid "Posts settings"
1064
  msgstr "Configuraci&oacute;n de las entradas"
1065
 
1066
- #: wordpress-popular-posts.php:399
1067
  msgid "Display post rating"
1068
  msgstr "Mostrar rating de la entrada"
1069
 
1070
- #: wordpress-popular-posts.php:401
1071
  msgid "Shorten title"
1072
  msgstr "Acortar t&iacute;tulo"
1073
 
1074
- #: wordpress-popular-posts.php:404
1075
  msgid "Shorten title to"
1076
  msgstr "Acortar t&iacute;tulo en"
1077
 
1078
- #: wordpress-popular-posts.php:405 wordpress-popular-posts.php:415
1079
  msgid "characters"
1080
  msgstr "caracteres"
1081
 
1082
- #: wordpress-popular-posts.php:406 wordpress-popular-posts.php:416
1083
  msgid "words"
1084
  msgstr "palabras"
1085
 
1086
- #: wordpress-popular-posts.php:408
1087
  msgid "Display post excerpt"
1088
  msgstr "Mostrar resumen de la entrada"
1089
 
1090
- #: wordpress-popular-posts.php:411
1091
- msgid "Excerpt Properties"
1092
- msgstr "Propiedades del resumen"
1093
-
1094
- #: wordpress-popular-posts.php:412
1095
  msgid "Keep text format and links"
1096
  msgstr "Mantener formato de texto y links"
1097
 
1098
- #: wordpress-popular-posts.php:413
1099
- msgid "Excerpt length:"
1100
- msgstr "Largo del resumen:"
1101
 
1102
- #: wordpress-popular-posts.php:425
1103
- msgid "Filters:"
1104
- msgstr "Filtros:"
1105
-
1106
- #: wordpress-popular-posts.php:426
1107
- msgid "Post type(s):"
1108
- msgstr "Post type(s):"
1109
-
1110
- #: wordpress-popular-posts.php:428
1111
- msgid "Post(s) ID(s) to exclude:"
1112
- msgstr "ID(s) de Entrada(s) a excluir:"
1113
-
1114
- #: wordpress-popular-posts.php:430
1115
- msgid "Category(ies) ID(s):"
1116
- msgstr "ID(s) de Categor&iacute;a(s):"
1117
-
1118
- #: wordpress-popular-posts.php:432
1119
- msgid "Author(s) ID(s):"
1120
- msgstr "ID(s) de Autor(es):"
1121
-
1122
- #: wordpress-popular-posts.php:438
1123
- msgid "Thumbnail settings"
1124
- msgstr "Configuraci&oacute;n de miniatura"
1125
-
1126
- #: wordpress-popular-posts.php:439
1127
  msgid "Display post thumbnail"
1128
  msgstr "Mostrar miniatura"
1129
 
1130
- #: wordpress-popular-posts.php:441
1131
- msgid "Width:"
1132
- msgstr "Ancho:"
1133
 
1134
- #: wordpress-popular-posts.php:442 wordpress-popular-posts.php:444
1135
  msgid "px"
1136
  msgstr "px"
1137
 
1138
- #: wordpress-popular-posts.php:443
1139
- msgid "Height:"
1140
- msgstr "Alto:"
1141
 
1142
- #: wordpress-popular-posts.php:450
1143
  msgid "Stats Tag settings"
1144
  msgstr "Configuraci&oacute;n del Stats Tag"
1145
 
1146
- #: wordpress-popular-posts.php:451
1147
  msgid "Display comment count"
1148
  msgstr "Mostrar cantidad de comentarios"
1149
 
1150
- #: wordpress-popular-posts.php:452
1151
  msgid "Display views"
1152
  msgstr "Mostrar vistas"
1153
 
1154
- #: wordpress-popular-posts.php:453
1155
  msgid "Display author"
1156
  msgstr "Mostrar autor"
1157
 
1158
- #: wordpress-popular-posts.php:454
1159
  msgid "Display date"
1160
  msgstr "Mostrar fecha"
1161
 
1162
- #: wordpress-popular-posts.php:457
1163
  msgid "Date Format"
1164
  msgstr "Formato de la fecha"
1165
 
1166
- #: wordpress-popular-posts.php:464
 
 
 
 
1167
  msgid "Display category"
1168
  msgstr "Mostrar categor&iacute;a"
1169
 
1170
- #: wordpress-popular-posts.php:469
1171
  msgid "HTML Markup settings"
1172
  msgstr "Configuraci&oacute;n del Markup HTML"
1173
 
1174
- #: wordpress-popular-posts.php:470
1175
  msgid "Use custom HTML Markup"
1176
  msgstr "Utilizar Markup HTML personalizado"
1177
 
1178
- #: wordpress-popular-posts.php:473
1179
- msgid "Before / after title:"
1180
- msgstr "Antes / despu&eacute;s del t&iacute;tulo:"
1181
 
1182
- #: wordpress-popular-posts.php:475
1183
- msgid "Before / after Popular Posts:"
1184
  msgstr "Antes / despu&eacute;s de las entradas populares"
1185
 
1186
- #: wordpress-popular-posts.php:478
1187
- msgid "Post HTML Markup:"
1188
- msgstr "Markup HTML de la Entrada:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1189
 
1190
- #: wordpress-popular-posts.php:628
1191
  msgid "Success! The cache table has been cleared!"
1192
  msgstr "&iexcl;&Eacute;xito! &iexcl;La tabla cach&eacute; ha sido borrada!"
1193
 
1194
- #: wordpress-popular-posts.php:630
1195
  msgid "Error: cache table does not exist."
1196
  msgstr "Error: la tabla cach&eacute; no existe."
1197
 
1198
- #: wordpress-popular-posts.php:636
1199
  msgid "Success! All data have been cleared!"
1200
  msgstr "&iexcl;&Eacute;xito! &iexcl;Toda la data ha sido borrada!"
1201
 
1202
- #: wordpress-popular-posts.php:638
1203
  msgid "Error: one or both data tables are missing."
1204
  msgstr "Error: una o ambas tablas de datos no existen."
1205
 
1206
- #: wordpress-popular-posts.php:641
1207
  msgid "Invalid action."
1208
  msgstr "Acci&oacute;n inv&aacute;lida."
1209
 
1210
- #: wordpress-popular-posts.php:644
1211
  msgid ""
1212
  "Sorry, you do not have enough permissions to do this. Please contact the "
1213
  "site administrator for support."
@@ -1215,70 +1282,151 @@ msgstr ""
1215
  "Lo lamento, no tienes permisos suficientes para hacer esto. Por favor "
1216
  "contacta al administrador del sitio."
1217
 
1218
- #: wordpress-popular-posts.php:1068
1219
  msgid "Sorry. No data so far."
1220
  msgstr "Lo lamentamos. No hay nada que mostrar a&uacute;n."
1221
 
1222
- #: wordpress-popular-posts.php:1150
1223
- msgid "comment"
1224
- msgstr "comentario"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1225
 
1226
- #: wordpress-popular-posts.php:1150
1227
- msgid "comments"
1228
- msgstr "comentarios"
 
 
 
1229
 
1230
- #: wordpress-popular-posts.php:1158
1231
- msgid "view per day"
1232
- msgstr "vista por d&iacute;a"
 
 
 
1233
 
1234
- #: wordpress-popular-posts.php:1158
1235
- msgid "views per day"
1236
- msgstr "vistas por d&iacute;a"
1237
 
1238
- #: wordpress-popular-posts.php:1162
1239
- msgid "view"
1240
- msgstr "vista"
1241
 
1242
- #: wordpress-popular-posts.php:1162
1243
- msgid "views"
1244
- msgstr "vistas"
1245
 
1246
- #: wordpress-popular-posts.php:1171
1247
- msgid "by"
1248
- msgstr "por"
 
 
 
1249
 
1250
- #: wordpress-popular-posts.php:1175
1251
- msgid "posted on"
1252
- msgstr "publicado el"
1253
 
1254
- #: wordpress-popular-posts.php:1183
1255
- msgid "under"
1256
- msgstr "bajo"
1257
 
1258
- #: wordpress-popular-posts.php:1753
1259
- msgid "Upload"
1260
- msgstr "Subir"
1261
 
1262
- #: wordpress-popular-posts.php:1765
1263
- msgid ""
1264
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
1265
- "at least version 2.8 to function correctly. Please update your blog via "
1266
- "Tools &gt; Upgrade."
1267
- msgstr ""
1268
- "Tu versi&oacute;n de Wordpress es muy antigua. El plugin Wordpress Popular "
1269
- "Posts requiere al menos la versi&oacute;n 2.8 para funcionar correctamente. "
1270
- "Por favor actualiza tu blog via Herramientas &gt; Actualizaciones."
1271
 
1272
- #: wordpress-popular-posts.php:1774
1273
- msgid ""
1274
- "Your PHP installation is too old. Wordpress Popular Posts Plugin requires at "
1275
- "least PHP v5.2.0 to function correctly. Please contact your hosting provider "
1276
- "and ask them to upgrade PHP to 5.2.x or higher."
1277
- msgstr ""
1278
- "Tu versi&oacute;n de PHP es muy antigua. El plugin Wordpress Popular Posts "
1279
- "requiere al menos PHP v5.2.0 para funcionar correctamente. Por favor "
1280
- "contacta a tu proveedor de hosting y solicita que se actualice PHP a 5.2.x o "
1281
- "mejor."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1282
 
1283
  #~ msgid "What does \"Use content formatting tags\" do?"
1284
  #~ msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-05-27 18:11-0430\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
8
+ "Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
9
+ "Language: es_ES\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-SourceCharset: UTF-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
+ "X-Generator: Poedit 1.6.5\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SearchPath-1: ..\n"
20
 
21
+ #: ../views/admin.php:23 ../views/admin.php:32 ../views/admin.php:46
22
+ #: ../views/admin.php:67
23
  msgid "Settings saved."
24
  msgstr "Configuraci&oacute;n guardada."
25
 
26
+ #: ../views/admin.php:38
27
  msgid "Please provide the name of your custom field."
28
  msgstr "Por favor indica el nombre de tu custom field."
29
 
30
+ #: ../views/admin.php:84
31
  msgid ""
32
  "This operation will delete all entries from Wordpress Popular Posts' cache "
33
  "table and cannot be undone."
34
  msgstr ""
35
  "Esta operaci\\363n borrar\\341 todas las entradas en el cach\\351 de "
36
+ "Wordpress Popular Posts y no se puede deshacer."
37
 
38
+ #: ../views/admin.php:84 ../views/admin.php:92
39
  msgid "Do you want to continue?"
40
  msgstr "Deseas continuar?"
41
 
42
+ #: ../views/admin.php:92
43
  msgid ""
44
  "This operation will delete all stored info from Wordpress Popular Posts' "
45
  "data tables and cannot be undone."
47
  "Esta operaci\\363n borrar\\341 toda la informaci\\363n guardada en las "
48
  "tablas de Wordpress Popular Posts y no puede ser reversado."
49
 
50
+ #: ../views/admin.php:109
51
  msgid "Stats"
52
  msgstr "Estad&iacute;sticas"
53
 
54
+ #: ../views/admin.php:110
55
+ msgid "Tools"
56
+ msgstr "Herramientas"
57
+
58
+ #: ../views/admin.php:111 ../views/admin.php:662
59
+ msgid "Parameters"
60
+ msgstr "Par&aacute;metros"
61
+
62
+ #: ../views/admin.php:112
63
  msgid "FAQ"
64
  msgstr "FAQ"
65
 
66
+ #: ../views/admin.php:113
67
+ msgid "About"
68
+ msgstr "Acerca de"
69
 
70
+ #: ../views/admin.php:124
71
  msgid ""
72
  "Click on each tab to see what are the most popular entries on your blog in "
73
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
77
  "de tu blog en las &uacute;ltimas 24 horas, esta semana, los &uacute;ltimos "
78
  "30 d&iacute;as o de todos los tiempos."
79
 
80
+ #: ../views/admin.php:130
81
  msgid "Order by comments"
82
  msgstr "Ordenar por comentarios"
83
 
84
+ #: ../views/admin.php:131
85
  msgid "Order by views"
86
  msgstr "Ordenar por vistas"
87
 
88
+ #: ../views/admin.php:132
89
  msgid "Order by avg. daily views"
90
  msgstr "Ordenar por average de vistas diarias"
91
 
92
+ #: ../views/admin.php:134
93
  msgid "Post type"
94
  msgstr "Post type"
95
 
96
+ #: ../views/admin.php:135
97
  msgid "Limit"
98
  msgstr "L&iacute;mite"
99
 
100
+ #: ../views/admin.php:136 ../views/form.php:32
101
+ msgid "Display only posts published within the selected Time Range"
102
+ msgstr ""
103
+ "Mostrar s&oacute;lo entradas publicadas en el Rango de Tiempo seleccionado"
104
+
105
+ #: ../views/admin.php:138 ../views/admin.php:215 ../views/admin.php:281
106
+ #: ../views/admin.php:318
107
  msgid "Apply"
108
  msgstr "Aplicar"
109
 
110
+ #: ../views/admin.php:144 ../views/form.php:26
111
  msgid "Last 24 hours"
112
  msgstr "&Uacute;ltimas 24 horas"
113
 
114
+ #: ../views/admin.php:145 ../views/form.php:27
115
  msgid "Last 7 days"
116
  msgstr "&Uacute;ltimos 7 d&iacute;as"
117
 
118
+ #: ../views/admin.php:146 ../views/form.php:28
119
  msgid "Last 30 days"
120
  msgstr "&Uacute;ltimos 30 d&iacute;as"
121
 
122
+ #: ../views/admin.php:147 ../views/form.php:29
123
  msgid "All-time"
124
  msgstr "Todos los tiempos"
125
 
126
+ #: ../views/admin.php:169
127
+ msgid "Thumbnails"
128
+ msgstr "Miniaturas"
129
 
130
+ #: ../views/admin.php:174
131
+ msgid "Default thumbnail"
132
+ msgstr "Miniatura por defecto"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
 
134
+ #: ../views/admin.php:179
135
+ msgid "Upload thumbnail"
136
+ msgstr "Subir miniatura"
137
 
138
+ #: ../views/admin.php:182
139
  msgid ""
140
+ "How-to: upload (or select) an image, set Size to Full and click on Upload. "
141
+ "After it's done, hit on Apply to save changes"
142
  msgstr ""
143
+ "Tutorial: sube (o selecciona) una imagen, selecciona Tama&ntilde;o Completo "
144
+ "y haz clic en Subir. Cuando termine, dale a Aplicar para guardar los cambios"
 
 
 
 
145
 
146
+ #: ../views/admin.php:186
147
+ msgid "Pick image from"
148
+ msgstr "Seleccionar imagen desde"
 
 
 
 
 
 
 
149
 
150
+ #: ../views/admin.php:189
151
+ msgid "Featured image"
152
+ msgstr "Imagen destacada"
153
 
154
+ #: ../views/admin.php:190
155
+ msgid "First image on post"
156
+ msgstr "Primera imagen de la entrada"
 
 
 
 
 
 
157
 
158
+ #: ../views/admin.php:191
159
+ msgid "Custom field"
160
+ msgstr "Custom field"
161
 
162
+ #: ../views/admin.php:194
163
+ msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
 
 
 
164
  msgstr ""
165
+ "Dile a Wordpress Popular Posts de d&oacute;nde debe obtener las miniaturas"
 
 
 
 
 
 
166
 
167
+ #: ../views/admin.php:198
168
+ msgid "Custom field name"
169
+ msgstr "Nombre del custom field"
 
 
 
 
 
 
 
170
 
171
+ #: ../views/admin.php:204
172
+ msgid "Resize image from Custom field?"
173
+ msgstr "&iexcl;Ajustar la imagen del Custom field?"
174
 
175
+ #: ../views/admin.php:207
176
+ msgid "No, I will upload my own thumbnail"
177
+ msgstr "No, subir&eacute; mi propia miniatura"
 
 
 
 
 
 
178
 
179
+ #: ../views/admin.php:208
180
+ msgid "Yes"
181
+ msgstr "S&iacute;"
182
 
183
+ #: ../views/admin.php:224
184
+ msgid "Data"
185
+ msgstr "Datos"
 
 
 
 
 
 
 
 
 
186
 
187
+ #: ../views/admin.php:229
188
+ msgid "Log views from"
189
+ msgstr "Registrar vistas de"
190
 
191
+ #: ../views/admin.php:232
192
+ msgid "Visitors only"
193
+ msgstr "S&oacute;lo visitantes"
 
 
 
 
 
194
 
195
+ #: ../views/admin.php:233
196
+ msgid "Logged-in users only"
197
+ msgstr "S&oacute;lo usuarios conectados"
198
 
199
+ #: ../views/admin.php:234
200
+ msgid "Everyone"
201
+ msgstr "Todos"
 
 
 
 
 
 
202
 
203
+ #: ../views/admin.php:240
204
+ msgid "Ajaxify widget"
205
+ msgstr "Usar Ajax con el widget"
206
 
207
+ #: ../views/admin.php:243 ../views/admin.php:309
208
+ msgid "Disabled"
209
+ msgstr "Deshabilitado"
 
 
 
 
 
210
 
211
+ #: ../views/admin.php:244 ../views/admin.php:308
212
+ msgid "Enabled"
213
+ msgstr "Habilitado"
214
 
215
+ #: ../views/admin.php:248
216
  msgid ""
217
+ "If you are using a caching plugin such as WP Super Cache, enabling this "
218
+ "feature will keep the popular list from being cached by it"
219
  msgstr ""
220
+ "Si est&aacute;s utilizando un plugin de cacheo como WP Super Cache, "
221
+ "habilitar esta caracter&iacute;stica evitar&aacute; que la lista de entradas "
222
+ "populares sea guardada en cach&eacute;"
223
 
224
+ #: ../views/admin.php:252
225
+ msgid "Listing refresh interval"
226
+ msgstr "Intervalo de refrescamiento del listado"
227
 
228
+ #: ../views/admin.php:255
229
+ msgid "Live"
230
+ msgstr "En vivo"
 
 
 
 
231
 
232
+ #: ../views/admin.php:256
233
+ msgid "Custom interval"
234
+ msgstr "Intervalo personalizado"
235
 
236
+ #: ../views/admin.php:260
237
  msgid ""
238
+ "Sets how often the listing should be updated. For most sites the Live option "
239
+ "should be fine, however if you are experiencing slowdowns or your blog gets "
240
+ "a lot of visitors then you might want to change the refresh rate"
241
  msgstr ""
242
+ "Configura cu&aacute;n frecuentemente debe actualizarse listado. Para la "
243
+ "mayor&iacute;a de los sitios la opci&oacute;n En Vivo deber&iacute;a estar "
244
+ "bien, sin embargo si est&aacute;s experimentando lentitud o tu blog recibe "
245
+ "muchos visitantes entonces quiz&aacute;s prefieras cambiar la tasa de "
246
+ "refrescamiento"
247
 
248
+ #: ../views/admin.php:264
249
+ msgid "Refresh list every"
250
+ msgstr "Refrescar la lista cada"
251
 
252
+ #: ../views/admin.php:268
253
+ msgid "Hour(s)"
254
+ msgstr "Hora(s)"
 
 
 
 
 
 
 
 
255
 
256
+ #: ../views/admin.php:269
257
+ msgid "Day(s)"
258
+ msgstr "D&iacute;a(s)"
259
 
260
+ #: ../views/admin.php:270
261
+ msgid "Week(s)"
262
+ msgstr "Semana(s)"
 
 
 
 
 
 
 
 
 
 
 
263
 
264
+ #: ../views/admin.php:271
265
+ msgid "Month(s)"
266
+ msgstr "Mes(es)"
267
 
268
+ #: ../views/admin.php:272
269
+ msgid "Year(s)"
270
+ msgstr "A&ntilde;o(s)"
 
 
 
 
 
 
271
 
272
+ #: ../views/admin.php:275
273
+ msgid "Really? That long?"
274
+ msgstr "&iquest;En serio? &iquest;Tanto tiempo?"
 
 
275
 
276
+ #: ../views/admin.php:290
277
+ msgid "Miscellaneous"
278
+ msgstr "Miscel&aacute;neos"
 
 
279
 
280
+ #: ../views/admin.php:295
281
+ msgid "Open links in"
282
+ msgstr "Abrir links en"
283
 
284
+ #: ../views/admin.php:298
285
+ msgid "Current window"
286
+ msgstr "Ventana actual"
287
 
288
+ #: ../views/admin.php:299
289
+ msgid "New tab/window"
290
+ msgstr "Nueva pesta&ntilde;a/ventana"
291
 
292
+ #: ../views/admin.php:305
293
+ msgid "Use plugin's stylesheet"
294
+ msgstr "Utilizar la hoja de estilos del plugin"
295
 
296
+ #: ../views/admin.php:312
297
  msgid ""
298
+ "By default, the plugin includes a stylesheet called wpp.css which you can "
299
+ "use to style your popular posts listing. If you wish to use your own "
300
+ "stylesheet or do not want it to have it included in the header section of "
301
+ "your site, use this."
302
  msgstr ""
303
+ "Por defecto, el plugin incluye una hoja de estilos llamada wpp.css que "
304
+ "puedes utilizar para darle estilos a tu listado de entradas populares. Si "
305
+ "deseas utilizar tu propia hoja de estilos, o no quieres que wpp.css se "
306
+ "incluya en el header de tu sitio web, utiliza esto."
307
 
308
+ #: ../views/admin.php:329
309
  msgid ""
310
+ "Wordpress Popular Posts maintains data in two separate tables: one for "
311
+ "storing the most popular entries on a daily basis (from now on, \"cache\"), "
312
+ "and another one to keep the All-time data (from now on, \"historical data\" "
313
+ "or just \"data\"). If for some reason you need to clear the cache table, or "
314
+ "even both historical and cache tables, please use the buttons below to do so."
315
  msgstr ""
316
+ "Wordpress Popular Posts mantiene la data en dos tablas separadas: una para "
317
+ "guardar diariamente las entradas m&aacute;s populares (\"cach&eacute;\", de "
318
+ "aqu&iacute; en adelante), y otra tabla para almacenar la data de Todos los "
319
+ "tiempos (\"data hist&oacute;rica\" o simplemente \"data\"). Si por alguna "
320
+ "raz&oacute;n necesitas vaciar la tabla cach&eacute;, o inclusive las dos "
321
+ "tablas hist&oacute;ricas y de cach&eacute;, por favor utiliza los botones de "
322
+ "abajo."
323
+
324
+ #: ../views/admin.php:330
325
+ msgid "Empty cache"
326
+ msgstr "Vaciar el cach&eacute;"
327
 
328
+ #: ../views/admin.php:330
329
+ msgid "Use this button to manually clear entries from WPP cache only"
 
 
330
  msgstr ""
331
+ "Utiliza este bot&oacute;n para vaciar manualmente s&oacute;lo las entradas "
332
+ "del cach&eacute; de WPP"
 
 
 
 
 
 
 
 
333
 
334
+ #: ../views/admin.php:331
335
+ msgid "Clear all data"
336
+ msgstr "Eliminar toda la data"
 
 
 
 
 
 
 
 
 
 
 
337
 
338
+ #: ../views/admin.php:331
339
+ msgid "Use this button to manually clear entries from all WPP data tables"
 
340
  msgstr ""
341
+ "Utiliza este bot&oacute;n para limpiar manualmente las tablas de datos de WPP"
 
342
 
343
+ #: ../views/admin.php:338
344
+ #, php-format
345
  msgid ""
346
+ "With the following parameters you can customize the popular posts list when "
347
+ "using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
348
+ "the <a href=\"%2$s\">[wpp] shortcode</a>."
349
  msgstr ""
350
+ "Con los siguientes par&aacute;metros puedes personalizar la lista de "
351
+ "entradas populares al utilizar tanto el <a href=\"%1$s"
352
+ "\">wpp_get_most_popular() template tag</a> como el <a href=\"%2$s\">[wpp] "
353
+ "shortcode</a>."
354
 
355
+ #: ../views/admin.php:346
356
  msgid "Parameter"
357
  msgstr "Par&aacute;metro"
358
 
359
+ #: ../views/admin.php:347 ../views/admin.php:661
360
+ msgid "What it does "
361
+ msgstr "Qu&eacute; hace"
362
+
363
+ #: ../views/admin.php:348
364
  msgid "Possible values"
365
  msgstr "Valores posibles"
366
 
367
+ #: ../views/admin.php:349
368
  msgid "Defaults to"
369
  msgstr "Por defecto"
370
 
371
+ #: ../views/admin.php:350 ../views/admin.php:663
372
+ msgid "Example"
373
+ msgstr "Ejemplo"
374
+
375
+ #: ../views/admin.php:356
376
  msgid "Sets a heading for the list"
377
  msgstr "Configura el encabezado de la lista"
378
 
379
+ #: ../views/admin.php:357 ../views/admin.php:364 ../views/admin.php:371
380
+ #: ../views/admin.php:406 ../views/admin.php:413 ../views/admin.php:420
381
+ #: ../views/admin.php:427 ../views/admin.php:518 ../views/admin.php:532
382
+ #: ../views/admin.php:539
383
  msgid "Text string"
384
  msgstr "Texto"
385
 
386
+ #: ../views/admin.php:358
387
  msgid "Popular Posts"
388
  msgstr "Entradas Populares"
389
 
390
+ #: ../views/admin.php:363
391
  msgid "Set the opening tag for the heading of the list"
392
  msgstr "Configura la etiqueta de apertura para el encabezado de la lista"
393
 
394
+ #: ../views/admin.php:370
395
  msgid "Set the closing tag for the heading of the list"
396
  msgstr "Configura la etiqueta de cierre para el encabezado de la lista"
397
 
398
+ #: ../views/admin.php:377
399
  msgid "Sets the maximum number of popular posts to be shown on the listing"
400
  msgstr ""
401
  "Configura el m&aacute;ximo de entradas populares a ser mostradas en la lista"
402
 
403
+ #: ../views/admin.php:378 ../views/admin.php:434 ../views/admin.php:448
404
+ #: ../views/admin.php:469 ../views/admin.php:476
405
  msgid "Positive integer"
406
  msgstr "Entero positivo"
407
 
408
+ #: ../views/admin.php:384
409
  msgid ""
410
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
411
  "the time range specified by you"
413
  "Le indica a Wordpress Popular Posts que debe listar aquellas entradas que "
414
  "hayan sido populares dentro del rango de tiempo especificado por ti"
415
 
416
+ #: ../views/admin.php:391
417
+ msgid ""
418
+ "Tells Wordpress Popular Posts to retrieve the most popular entries published "
419
+ "within the time range specified by you"
420
+ msgstr ""
421
+ "Le indica a Wordpress Popular Posts que debe listar aquellas entradas "
422
+ "populares publicadas dentro del rango de tiempo especificado por ti"
423
+
424
+ #: ../views/admin.php:398
425
  msgid "Sets the sorting option of the popular posts"
426
  msgstr "Configura el ordenado de las entradas populares"
427
 
428
+ #: ../views/admin.php:399
429
  msgid "(for average views per day)"
430
  msgstr "(para el porcentaje de vistas por d&iacute;a)"
431
 
432
+ #: ../views/admin.php:405
433
  msgid "Defines the type of posts to show on the listing"
434
  msgstr "Define el tipo de entrada a mostrar en el listado"
435
 
436
+ #: ../views/admin.php:412
437
  msgid ""
438
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
439
  "form the listing."
441
  "Si se configura, Wordpress Popular Posts excluir&aacute; todos los IDs de "
442
  "las entradas especificadas."
443
 
444
+ #: ../views/admin.php:414 ../views/admin.php:421 ../views/admin.php:428
445
  msgid "None"
446
  msgstr "Ninguno"
447
 
448
+ #: ../views/admin.php:419
449
  msgid ""
450
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
451
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
455
  "que pertenecen a la(s) categor&iacute;a(s) especificada(s). Si se usa un "
456
  "signo negativo, la(s) categor&iacute;a(s) ser&aacute;(n) exclu&iacute;da(s)."
457
 
458
+ #: ../views/admin.php:426
459
  msgid ""
460
  "If set, Wordpress Popular Posts will retrieve all entries created by "
461
  "specified author(s) ID(s)."
463
  "Si se configura, Wordpress Popular Posts traer&aacute; todas las entradas "
464
  "creadas por el (los) ID(s) de autor(es) especificado(s)."
465
 
466
+ #: ../views/admin.php:433
467
  msgid ""
468
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
469
  "characters whenever possible"
471
  "Si se configura, Wordpress Popular Posts acortar&aacute; cada titulo en \"n"
472
  "\" caracteres cuando sea posible"
473
 
474
+ #: ../views/admin.php:440
475
  msgid ""
476
  "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
477
  "words instead of characters"
479
  "Si se pasa el valor 1, Wordpress Popular Posts acortar&aacute; cada titulo "
480
  "en \"n\" palabras en vez de "
481
 
482
+ #: ../views/admin.php:447
483
  msgid ""
484
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
485
  "characters long from the content of each post listed as popular"
488
  "un extracto de \"n\" caracteres del contenido de cada entrada listada como "
489
  "popular"
490
 
491
+ #: ../views/admin.php:454
492
  msgid ""
493
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
494
  "italic, etc) and hyperlinks found in the excerpt"
497
  "etiquetas de estilo (strong, italic, etc) y los hiperv&iacute;nculos "
498
  "encontrados en el extracto"
499
 
500
+ #: ../views/admin.php:461
501
  msgid ""
502
  "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
503
  "instead of characters"
505
  "Si se configura, Wordpress Popular Posts acortar&aacute; el resumen en \"n\" "
506
  "palabras en vez de caracteres"
507
 
508
+ #: ../views/admin.php:468
509
  msgid ""
510
  "If set, and if your current server configuration allows it, you will be able "
511
  "to display thumbnails of your posts. This attribute sets the width for "
515
  "permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
516
  "configura el ancho de tus miniaturas"
517
 
518
+ #: ../views/admin.php:475
519
  msgid ""
520
  "If set, and if your current server configuration allows it, you will be able "
521
  "to display thumbnails of your posts. This attribute sets the height for "
525
  "permite, podr&aacute;s mostrar miniaturas de tus entradas. Este atributo "
526
  "configura el alto de tus miniaturas"
527
 
528
+ #: ../views/admin.php:482
529
  msgid ""
530
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
531
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
535
  "habilitado en tu blog, Wordpress Popular Posts mostrar&aacute; como tus "
536
  "visitantes han calificado a tus entradas"
537
 
538
+ #: ../views/admin.php:489
539
  msgid ""
540
  "If set, Wordpress Popular Posts will show how many comments each popular "
541
  "post has got until now"
543
  "Si se configura, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntos "
544
  "comentarios ha obtenido cada entrada popular hasta ahora"
545
 
546
+ #: ../views/admin.php:496
547
  msgid ""
548
  "If set, Wordpress Popular Posts will show how many views each popular post "
549
  "has got since it was installed"
551
  "Si se configura, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntas "
552
  "vistas ha obtenido cada entrada popular hasta ahora"
553
 
554
+ #: ../views/admin.php:503
555
  msgid ""
556
  "If set, Wordpress Popular Posts will show who published each popular post on "
557
  "the list"
559
  "Si se configura, Wordpress Popular Posts mostrar&aacute; qui&eacute;n "
560
  "public&oacute; cada entrada popular de la lista"
561
 
562
+ #: ../views/admin.php:510
563
  msgid ""
564
  "If set, Wordpress Popular Posts will display the date when each popular post "
565
  "on the list was published"
567
  "Si se tilda, Wordpress Popular Posts mostrar&aacute; la fecha en la que fue "
568
  "publicada cada entrada popular"
569
 
570
+ #: ../views/admin.php:517
571
  msgid "Sets the date format"
572
  msgstr "Configura el formato de la fecha"
573
 
574
+ #: ../views/admin.php:524
575
  msgid "If set, Wordpress Popular Posts will display the category"
576
  msgstr ""
577
  "Si se tilda, Wordpress Popular Posts mostrar&aacute; la categor&iacute;a"
578
 
579
+ #: ../views/admin.php:531
580
  msgid "Sets the opening tag for the listing"
581
  msgstr "Configura la etiqueta de apertura del listado"
582
 
583
+ #: ../views/admin.php:538
584
  msgid "Sets the closing tag for the listing"
585
  msgstr "Configura la etiqueta de cierre del listado"
586
 
587
+ #: ../views/admin.php:545
588
  msgid "Sets the HTML structure of each post"
589
  msgstr "Configura la estructura HTML de cada entrada"
590
 
591
+ #: ../views/admin.php:546
592
  msgid "Text string, custom HTML"
593
  msgstr "Texto, HTML personalizado"
594
 
595
+ #: ../views/admin.php:546
596
  msgid "Available Content Tags"
597
  msgstr "Content Tags disponibles"
598
 
599
+ #: ../views/admin.php:546
600
  msgid "displays thumbnail linked to post/page"
601
  msgstr "muestra la miniatura vinculada a la entrada/p&aacute;gina"
602
 
603
+ #: ../views/admin.php:546
604
  msgid "displays linked post/page title"
605
  msgstr ""
606
  "muestra el t&iacute;tulo de la entrada/p&aacute;gina con v&iacute;nculo"
607
 
608
+ #: ../views/admin.php:546
609
  msgid ""
610
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
611
  msgstr ""
612
  "muestra el resumen de la entrada/p&aacute;gina, requiere que excerpt_length "
613
  "sea mayor a 0"
614
 
615
+ #: ../views/admin.php:546
616
  msgid "displays the default stats tags"
617
  msgstr "muestra el stats tag por defecto"
618
 
619
+ #: ../views/admin.php:546
620
  msgid ""
621
  "displays post/page current rating, requires WP-PostRatings installed and "
622
  "enabled"
624
  "muestra el rating actual de la entrada/p&aacute;gina, requiere que WP-"
625
  "PostRatings est&eacute; instalado y activo"
626
 
627
+ #: ../views/admin.php:546
628
+ msgid ""
629
+ "displays post/page current rating as an integer, requires WP-PostRatings "
630
+ "installed and enabled"
631
+ msgstr ""
632
+ "muestra el rating actual de la entrada/p&aacute;gina como un entero, "
633
+ "requiere que WP-PostRatings est&eacute; instalado y activo"
634
+
635
+ #: ../views/admin.php:546
636
  msgid "outputs the URL of the post/page"
637
  msgstr "muestra la URL de la entrada/p&aacute;gina"
638
 
639
+ #: ../views/admin.php:546
640
  msgid "displays post/page title, no link"
641
  msgstr ""
642
  "muestra el t&iacute;tulo de la entrada/p&aacute;gina, sin v&iacute;nculo"
643
 
644
+ #: ../views/admin.php:546
645
  msgid "displays linked author name, requires stats_author=1"
646
  msgstr ""
647
  "muestra el nombre del autor con v&iacute;nculo, requiere stats_author=1"
648
 
649
+ #: ../views/admin.php:546
650
  msgid "displays linked category name, requires stats_category=1"
651
  msgstr ""
652
  "muestra el nombre de la categor&iacute;a vinculado, requiere stats_category=1"
653
 
654
+ #: ../views/admin.php:546
655
  msgid "displays views count only, no text"
656
  msgstr "muestra el n&uacute;mero de vistas, sin texto adicional"
657
 
658
+ #: ../views/admin.php:546
659
  msgid "displays comments count only, no text, requires stats_comments=1"
660
  msgstr ""
661
  "muestra el n&uacute;mero de comentarios, sin texto adicional, requiere "
662
  "stats_comments=1"
663
 
664
+ #: ../views/admin.php:558
665
+ msgid "What does \"Title\" do?"
666
+ msgstr "&iquest;Para qu&eacute; es \"T&iacute;tulo\"?"
 
 
 
 
667
 
668
+ #: ../views/admin.php:561
669
  msgid ""
670
+ "It allows you to show a heading for your most popular posts listing. If left "
671
+ "empty, no heading will be displayed at all."
672
  msgstr ""
673
+ "Te permite mostrar un encabezado para tu lista de entradas populares. Si se "
674
+ "deja vac&iacute;o, no se mostrar&aacute; el encabezado."
675
+
676
+ #: ../views/admin.php:564
677
+ msgid "What is Time Range for?"
678
+ msgstr "&iquest;Para qu&eacute; es \"Rango de Tiempo\"?"
679
 
680
+ #: ../views/admin.php:566
681
  msgid ""
682
+ "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
683
+ "comments within the selected time range."
 
 
684
  msgstr ""
685
+ "Le indica a Wordpress Popular Posts que muestre las entradas m&aacute;s "
686
+ "vistas / comentadas en el rango de tiempo seleccionado."
 
 
687
 
688
+ #: ../views/admin.php:569
689
+ msgid "What is \"Sort post by\" for?"
690
+ msgstr "&iquest;Para qu&eacute; es \"Ordenar entradas por\"?"
691
 
692
+ #: ../views/admin.php:571
693
  msgid ""
694
+ "It allows you to decide whether to order your popular posts listing by total "
695
+ "views, comments, or average views per day."
696
  msgstr ""
697
+ "Te permite decidir si ordenar tus entradas populares por la cantidad total "
698
+ "de vistas, comentarios, o por el porcentaje diario de vistas."
699
 
700
+ #: ../views/admin.php:574
701
+ msgid "What does \"Display post rating\" do?"
702
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar rating de la entrada\"?"
703
 
704
+ #: ../views/admin.php:576
705
+ msgid ""
706
+ "If checked, Wordpress Popular Posts will show how your readers are rating "
707
+ "your most popular posts. This feature requires having WP-PostRatings plugin "
708
+ "installed and enabled on your blog for it to work."
709
+ msgstr ""
710
+ "Si se tilda, Wordpress Popular Posts mostrar&aacute; c&oacute;mo tus "
711
+ "lectores est&aacute;n calificando tus entradas populares. Esta "
712
+ "caracter&iacute;stica requiere que el plugin WP-PostRatings est&eacute; "
713
+ "instalado y habilitado en tu blog para que funcione."
714
 
715
+ #: ../views/admin.php:579
716
+ msgid "What does \"Shorten title\" do?"
717
+ msgstr "&iquest;Qu&eacute; hace \"Acortar t&iacute;tulo\"?"
718
 
719
+ #: ../views/admin.php:581
720
+ msgid ""
721
+ "If checked, all posts titles will be shortened to \"n\" characters/words. A "
722
+ "new \"Shorten title to\" option will appear so you can set it to whatever "
723
+ "you like."
724
+ msgstr ""
725
+ "Si se tilda, todos los t&iacute;tulos de las entradas se acortar&aacute;n \"n"
726
+ "\" caracteres/palabras. Una nueva opci&oacute;n \"Acortar t&iacute;tulo en\" "
727
+ "se mostrar&aacute; para que puedas configurarlo como quieras."
728
 
729
+ #: ../views/admin.php:584
730
+ msgid "What does \"Display post excerpt\" do?"
731
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar resumen de la entrada\"?"
732
 
733
+ #: ../views/admin.php:586
734
+ msgid ""
735
+ "If checked, Wordpress Popular Posts will also include a small extract of "
736
+ "your posts in the list. Similarly to the previous option, you will be able "
737
+ "to decide how long the post excerpt should be."
738
+ msgstr ""
739
+ "Si se tilda, Wordpress Popular Posts incluir&aacute; un peque&ntilde;o "
740
+ "extracto de tus entradas en la lista. Similar a la opci&oacute;n anterior, "
741
+ "podr&aacute;s decidir qu&eacute; tan largo debe ser el extracto."
742
 
743
+ #: ../views/admin.php:589
744
+ msgid "What does \"Keep text format and links\" do?"
745
+ msgstr "&iquest;Qu&eacute; hace \"Mantener el formato de texto y links\"?"
746
 
747
+ #: ../views/admin.php:591
748
  msgid ""
749
+ "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
750
+ "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
751
+ "the excerpt. Hyperlinks will remain intact, too."
752
  msgstr ""
753
+ "Si se tilda, y si la opci&oacute;n Mostrar Resumen est&aacute; habilitada, "
754
+ "Wordpress Popular Posts mantendr&aacute; las etiquetas de estilos que se "
755
+ "encontraron en el extracto. Los hiperv&iacute;nculos tambi&eacute;n se "
756
+ "mantendr&aacute;n."
757
 
758
+ #: ../views/admin.php:594
759
+ msgid "What is \"Post type\" for?"
760
+ msgstr "&iquest;Para qu&eacute; es el \"Post type\"?"
761
 
762
+ #: ../views/admin.php:596
763
+ msgid ""
764
+ "This filter allows you to decide which post types to show on the listing. By "
765
+ "default, it will retrieve only posts and pages (which should be fine for "
766
+ "most cases)."
767
+ msgstr ""
768
+ "Este filtro te permite decidir que tipo de entradas deseas mostrar en el "
769
+ "listado. Por defecto, trater&aacute; s&oacute;lo entradas y p&aacute;ginas "
770
+ "(que es lo que se quiere, en la mayor&iacute;a de los casos)."
771
 
772
+ #: ../views/admin.php:599
773
+ msgid "What is \"Category(ies) ID(s)\" for?"
774
+ msgstr "&iquest;Para qu&eacute; es el \"ID(s) de Categor&iacute;a(s)\"?"
775
 
776
+ #: ../views/admin.php:601
777
+ msgid ""
778
+ "This filter allows you to select which categories should be included or "
779
+ "excluded from the listing. A negative sign in front of the category ID "
780
+ "number will exclude posts belonging to it from the list, for example. You "
781
+ "can specify more than one ID with a comma separated list."
782
+ msgstr ""
783
+ "Este filtro te permite seleccionar qu&eacute; categor&iacute;as deber&iacute;"
784
+ "an ser inclu&iacute;das o exclu&iacute;das del listado. Un signo negativo "
785
+ "enfrente del ID de la categor&iacute;a la excluir&aacute; de la lista, por "
786
+ "ejemplo. Puedes especificar m&aacute;s de un ID separ&aacute;ndolos con "
787
+ "comas."
788
 
789
+ #: ../views/admin.php:604
790
+ msgid "What is \"Author(s) ID(s)\" for?"
791
+ msgstr "&iquest;Para qu&eacute; es el \"ID de Autor(es)\"?"
792
 
793
+ #: ../views/admin.php:606
794
+ msgid ""
795
+ "Just like the Category filter, this one lets you filter posts by author ID. "
796
+ "You can specify more than one ID with a comma separated list."
797
  msgstr ""
798
+ "Justo como el filtro de Categor&iacute;a, &eacute;ste te permite filtrar "
799
+ "entradas por ID del autor. Puedes especificar m&aacute;s de un ID "
800
+ "separ&aacute;ndolos con comas."
801
 
802
+ #: ../views/admin.php:609
803
+ msgid "What does \"Display post thumbnail\" do?"
804
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar miniatura de la entrada\"?"
805
 
806
+ #: ../views/admin.php:611
807
+ msgid ""
808
+ "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
809
+ "of each post. You can set up the source of the thumbnail via Settings - "
810
+ "Wordpress Popular Posts - Tools."
811
+ msgstr ""
812
+ "Si se tilda, Wordpress Popular Posts intentar&aacute; obtener la imagen "
813
+ "miniatura de cada entrada. Puedes configurar la fuente de la miniatura via "
814
+ "Configuraci&oacute;n - Wordpress Popular Posts - Herramientas."
815
 
816
+ #: ../views/admin.php:614
817
+ msgid "What does \"Display comment count\" do?"
818
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar cantidad de comentarios\"?"
819
 
820
+ #: ../views/admin.php:616
821
+ msgid ""
822
+ "If checked, Wordpress Popular Posts will display how many comments each "
823
+ "popular post has got in the selected Time Range."
824
+ msgstr ""
825
+ "Si se tilda, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntos "
826
+ "comentarios ha obtenido cada entrada popular dentro del Rango de Tiempo "
827
+ "seleccionado."
828
 
829
+ #: ../views/admin.php:619
830
+ msgid "What does \"Display views\" do?"
831
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar vistas\"?"
832
 
833
+ #: ../views/admin.php:621
834
  msgid ""
835
+ "If checked, Wordpress Popular Posts will show how many pageviews a single "
836
+ "post has gotten in the selected Time Range."
 
 
837
  msgstr ""
838
+ "Si se tilda, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntas vistas "
839
+ "ha obtenido cada entrada en el Rango de Tiempo seleccionado."
 
 
 
 
 
 
840
 
841
+ #: ../views/admin.php:624
842
+ msgid "What does \"Display author\" do?"
843
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar autor\"?"
844
 
845
+ #: ../views/admin.php:626
846
+ msgid ""
847
+ "If checked, Wordpress Popular Posts will display the name of the author of "
848
+ "each entry listed."
849
+ msgstr ""
850
+ "Si se tilda, Wordpress Popular Posts mostrar&aacute; el nombre del autor de "
851
+ "cada entrada listada."
852
 
853
+ #: ../views/admin.php:629
854
+ msgid "What does \"Display date\" do?"
855
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar fecha\"?"
856
 
857
+ #: ../views/admin.php:631
858
  msgid ""
859
+ "If checked, Wordpress Popular Posts will display the date when each popular "
860
+ "posts was published."
861
  msgstr ""
862
+ "Si se tilda, Wordpress Popular Posts mostrar&aacute; la fecha en la que fue "
863
+ "publicada cada entrada popular."
 
864
 
865
+ #: ../views/admin.php:634
866
+ msgid "What does \"Display category\" do?"
867
+ msgstr "&iquest;Qu&eacute; hace \"Mostrar categor&iacute;a\"?"
868
 
869
+ #: ../views/admin.php:636
870
+ msgid ""
871
+ "If checked, Wordpress Popular Posts will display the category of each post."
872
+ msgstr ""
873
+ "Si se tilda, Wordpress Popular Posts mostrar&aacute; la categor&iacute;a de "
874
+ "cada entrada."
875
 
876
+ #: ../views/admin.php:639
877
+ msgid "What does \"Use custom HTML Markup\" do?"
878
+ msgstr "&iquest;Qu&eacute; hace \"Utilizar Markup HTML personalizado\"?"
879
 
880
+ #: ../views/admin.php:641
881
  msgid ""
882
+ "If checked, you will be able to customize the HTML markup of your popular "
883
+ "posts listing. For example, you can decide whether to wrap your posts in an "
884
+ "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
885
+ "for you!"
886
  msgstr ""
887
+ "Si se tilda, podr&aacute;s personalizad el markup HTML de tu listado de "
888
+ "entradas populares. Por ejemplo, podr&aacute;s decidir si colocar tu listado "
889
+ "en una lista desordenada, una ordenada, dentro de un div, etc. Si sabes "
890
+ "xHTML/CSS, &iexcl;esto es para ti!"
891
 
892
+ #: ../views/admin.php:644
893
+ msgid "What are \"Content Tags\"?"
894
+ msgstr "&iquest;Qu&eacute; son los \"Content Tags\"?"
895
 
896
+ #: ../views/admin.php:646
897
+ #, php-format
898
+ msgid ""
899
+ "Content Tags are codes to display a variety of items on your popular posts "
900
+ "custom HTML structure. For example, setting it to \"{title}: "
901
+ "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
902
+ "post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
903
+ "\">Parameters</a> section."
904
+ msgstr ""
905
+ "Los Content Tags son etiquetas que sirven para mostrar una variedad de items "
906
+ "en la estructura HTML de tu lista. Por ejemplo, configurarlo como \"{title}: "
907
+ "{summary}\" (sin las comillas) mostrar&iacute;a \"T&iacute;tulo de la "
908
+ "entrada: extracto de la entrada aqu&iacute;\". Para ver otras Content Tags, "
909
+ "ver la secci&oacute;n <a href=\"%s\" target=\"_blank\">Par&aacute;metros</a."
910
 
911
+ #: ../views/admin.php:649
912
+ msgid "What are \"Template Tags\"?"
913
+ msgstr "&iquest;Qu&eacute; son los \"Template Tags\"?"
914
 
915
+ #: ../views/admin.php:651
916
+ msgid ""
917
+ "Template Tags are simply php functions that allow you to perform certain "
918
+ "actions. For example, Wordpress Popular Posts currently supports two "
919
+ "different template tags: wpp_get_mostpopular() and wpp_get_views()."
920
+ msgstr ""
921
+ "Los Template Tags son simplemente funciones php que nos permiten realizar "
922
+ "ciertas acciones. Por ejemplo, Wordpress Popular Posts actualmente soporta "
923
+ "dos template tags diferentes: wpp_get_mostpopular() y wpp_get_views()."
924
 
925
+ #: ../views/admin.php:654
926
+ msgid "What are the template tags that Wordpress Popular Posts supports?"
927
+ msgstr ""
928
+ "&iquest;Cu&aacute;les son los Template Tags soportados por Wordpress Popular "
929
+ "Posts?"
930
 
931
+ #: ../views/admin.php:656
932
+ msgid ""
933
+ "The following are the template tags supported by Wordpress Popular Posts"
934
+ msgstr ""
935
+ "Los siguientes son los template tags soportados por Wordpress Popular Posts"
936
 
937
+ #: ../views/admin.php:660
938
+ msgid "Template tag"
939
+ msgstr "Template tag"
940
 
941
+ #: ../views/admin.php:669
942
+ #, php-format
943
  msgid ""
944
+ "Similar to the widget functionality, this tag retrieves the most popular "
945
+ "posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
946
+ "a> so you can customize your popular listing, but these are not required."
 
 
 
947
  msgstr ""
948
+ "Parecido a la funcionalidad del widget, esta etiqueta obtiene las entradas "
949
+ "m&aacute;s populares de tu blog. Esta funci&oacute;n tambi&eacute;n acepta "
950
+ "<a href=\"%1$s\">par&aacute;metros</a> para que puedas personalizar el "
951
+ "listado, pero &eacute;stos no son requeridos."
 
 
 
 
 
 
 
952
 
953
+ #: ../views/admin.php:670
954
+ #, php-format
955
+ msgid ""
956
+ "Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
957
+ "list of attributes."
958
  msgstr ""
959
+ "Por favor ver la <a href=\"%1$s\">secci&oacute;n Par&aacute;metros</a> para "
960
+ "la lista completa de atributos."
961
 
962
+ #: ../views/admin.php:675
963
+ msgid ""
964
+ "Displays the number of views of a single post. Post ID is required or it "
965
+ "will return false."
 
 
966
  msgstr ""
967
+ "Muestra la cantidad de vistas de una entrada. El ID de la entrada es "
968
+ "requerido, o la funci&oacute;n devolver&aacute; false."
969
 
970
+ #: ../views/admin.php:676
971
+ msgid "Post ID"
972
+ msgstr "ID de la entrada"
973
 
974
+ #: ../views/admin.php:683
975
+ msgid "What are \"shortcodes\"?"
976
+ msgstr "&iquest;Qu&eacute; son los \"shortcodes\"?"
977
 
978
+ #: ../views/admin.php:685
979
+ #, php-format
980
+ msgid ""
981
+ "Shortcodes are similar to BB Codes, these allow us to call a php function by "
982
+ "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
983
+ "shortcode [wpp] will let you insert a list of the most popular posts in "
984
+ "posts content and pages too! For more information about shortcodes, please "
985
+ "visit the <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a> page."
986
+ msgstr ""
987
+ "Los Shortcodes son similares a los BB Codes, &eacute;stos nos permiten "
988
+ "llamar a una funci&oacute;n php simplemente escribiendo algo como "
989
+ "[shortcode]. Con Wordpress Popular Posts, el shortcode [wpp] te "
990
+ "permitir&aacute; insertar una lista de las entradas m&aacute;s populares en "
991
+ "el contenido de tus entradas y en p&aacute;ginas tambi&eacute;n. Para mayor "
992
+ "informaci&oacute;n sobre los shortcodes, por favor visita la p&aacute;gina "
993
+ "<a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a>."
994
 
995
+ #: ../views/admin.php:694
996
+ #, php-format
997
+ msgid "About Wordpress Popular Posts %s"
998
+ msgstr "Acerca de Wordpress Popular Posts %s"
999
 
1000
+ #: ../views/admin.php:695
1001
+ msgid "This version includes the following changes"
1002
+ msgstr "Esta versi&oacute;n incluye los siguientes cambios"
1003
 
1004
+ #: ../views/admin.php:709
1005
+ msgid "Do you like this plugin?"
1006
+ msgstr "&iquest;Te gusta este plugin?"
1007
 
1008
+ #: ../views/admin.php:716
1009
  msgid ""
1010
  "Each donation motivates me to keep releasing free stuff for the Wordpress "
1011
  "community!"
1013
  "&iexcl;Cada donaci&oacute;n me motiva a seguir publicando cosas gratuitas "
1014
  "para la comunidad de Wordpress!"
1015
 
1016
+ #: ../views/admin.php:717
1017
+ #, php-format
1018
+ msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
1019
+ msgstr ""
1020
+ "&iexcl;Puedes <a href=\"%s\" target=\"_blank\">dejar una rese&ntilde;a</a> "
1021
+ "tambi&eacute;n!"
1022
 
1023
+ #: ../views/admin.php:721
1024
+ msgid "Need help?"
1025
+ msgstr "&iquest;Necesitas ayuda?"
1026
+
1027
+ #: ../views/admin.php:722
1028
+ #, php-format
1029
+ msgid ""
1030
+ "Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
1031
+ "and feedback."
1032
+ msgstr ""
1033
+ "Visita <a href=\"%s\" target=\"_blank\">el foro</a> para obtener soporte, "
1034
+ "hacer preguntas y dejar tu feedback."
1035
+
1036
+ #: ../views/admin.php:723
1037
+ msgid "Let's make this plugin even better!"
1038
+ msgstr "&iexcl;Hagamos a este plugin inclusive mejor!"
1039
+
1040
+ #: ../views/form.php:2
1041
+ msgid "Title"
1042
+ msgstr "T&iacute;tulo"
1043
+
1044
+ #: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
1045
+ #: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
1046
+ #: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
1047
+ #: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
1048
+ #: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
1049
+ #: ../views/form.php:105 ../views/form.php:111
1050
  msgid "What is this?"
1051
  msgstr "&iquest;Qu&eacute; es esto?"
1052
 
1053
+ #: ../views/form.php:7
1054
+ msgid "Show up to"
1055
+ msgstr "Mostrar hasta"
1056
 
1057
+ #: ../views/form.php:8
1058
  msgid "posts"
1059
  msgstr "entradas"
1060
 
1061
+ #: ../views/form.php:12
1062
+ msgid "Sort posts by"
1063
+ msgstr "Ordenar entradas por"
 
 
 
 
1064
 
1065
+ #: ../views/form.php:14
1066
  msgid "Comments"
1067
  msgstr "Comentarios"
1068
 
1069
+ #: ../views/form.php:15
1070
  msgid "Total views"
1071
  msgstr "Total de vistas"
1072
 
1073
+ #: ../views/form.php:16
1074
  msgid "Avg. daily views"
1075
  msgstr "Porcentaje de vistas diarias"
1076
 
1077
+ #: ../views/form.php:22
1078
+ msgid "Filters"
1079
+ msgstr "Filtros"
1080
+
1081
+ #: ../views/form.php:24
1082
+ msgid "Time Range"
1083
+ msgstr "Rango de Tiempo"
1084
+
1085
+ #: ../views/form.php:34
1086
+ msgid "Post type(s)"
1087
+ msgstr "Post type(s)"
1088
+
1089
+ #: ../views/form.php:37
1090
+ msgid "Post(s) ID(s) to exclude"
1091
+ msgstr "ID(s) de Entrada(s) a excluir"
1092
+
1093
+ #: ../views/form.php:40
1094
+ msgid "Category(ies) ID(s)"
1095
+ msgstr "ID(s) de Categor&iacute;a(s)"
1096
+
1097
+ #: ../views/form.php:43
1098
+ msgid "Author(s) ID(s)"
1099
+ msgstr "ID(s) de Autor(es)"
1100
+
1101
+ #: ../views/form.php:48
1102
  msgid "Posts settings"
1103
  msgstr "Configuraci&oacute;n de las entradas"
1104
 
1105
+ #: ../views/form.php:52
1106
  msgid "Display post rating"
1107
  msgstr "Mostrar rating de la entrada"
1108
 
1109
+ #: ../views/form.php:55
1110
  msgid "Shorten title"
1111
  msgstr "Acortar t&iacute;tulo"
1112
 
1113
+ #: ../views/form.php:58
1114
  msgid "Shorten title to"
1115
  msgstr "Acortar t&iacute;tulo en"
1116
 
1117
+ #: ../views/form.php:59 ../views/form.php:69
1118
  msgid "characters"
1119
  msgstr "caracteres"
1120
 
1121
+ #: ../views/form.php:60 ../views/form.php:70
1122
  msgid "words"
1123
  msgstr "palabras"
1124
 
1125
+ #: ../views/form.php:63
1126
  msgid "Display post excerpt"
1127
  msgstr "Mostrar resumen de la entrada"
1128
 
1129
+ #: ../views/form.php:66
 
 
 
 
1130
  msgid "Keep text format and links"
1131
  msgstr "Mantener formato de texto y links"
1132
 
1133
+ #: ../views/form.php:67
1134
+ msgid "Excerpt length"
1135
+ msgstr "Largo del resumen"
1136
 
1137
+ #: ../views/form.php:73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1138
  msgid "Display post thumbnail"
1139
  msgstr "Mostrar miniatura"
1140
 
1141
+ #: ../views/form.php:76
1142
+ msgid "Width"
1143
+ msgstr "Ancho"
1144
 
1145
+ #: ../views/form.php:77 ../views/form.php:80
1146
  msgid "px"
1147
  msgstr "px"
1148
 
1149
+ #: ../views/form.php:79
1150
+ msgid "Height"
1151
+ msgstr "Alto"
1152
 
1153
+ #: ../views/form.php:85
1154
  msgid "Stats Tag settings"
1155
  msgstr "Configuraci&oacute;n del Stats Tag"
1156
 
1157
+ #: ../views/form.php:87
1158
  msgid "Display comment count"
1159
  msgstr "Mostrar cantidad de comentarios"
1160
 
1161
+ #: ../views/form.php:89
1162
  msgid "Display views"
1163
  msgstr "Mostrar vistas"
1164
 
1165
+ #: ../views/form.php:91
1166
  msgid "Display author"
1167
  msgstr "Mostrar autor"
1168
 
1169
+ #: ../views/form.php:93
1170
  msgid "Display date"
1171
  msgstr "Mostrar fecha"
1172
 
1173
+ #: ../views/form.php:96
1174
  msgid "Date Format"
1175
  msgstr "Formato de la fecha"
1176
 
1177
+ #: ../views/form.php:98
1178
+ msgid "Wordpress Date Format"
1179
+ msgstr "Formato de fecha de Wordpress"
1180
+
1181
+ #: ../views/form.php:105
1182
  msgid "Display category"
1183
  msgstr "Mostrar categor&iacute;a"
1184
 
1185
+ #: ../views/form.php:109
1186
  msgid "HTML Markup settings"
1187
  msgstr "Configuraci&oacute;n del Markup HTML"
1188
 
1189
+ #: ../views/form.php:111
1190
  msgid "Use custom HTML Markup"
1191
  msgstr "Utilizar Markup HTML personalizado"
1192
 
1193
+ #: ../views/form.php:114
1194
+ msgid "Before / after title"
1195
+ msgstr "Antes / despu&eacute;s del t&iacute;tulo"
1196
 
1197
+ #: ../views/form.php:117
1198
+ msgid "Before / after Popular Posts"
1199
  msgstr "Antes / despu&eacute;s de las entradas populares"
1200
 
1201
+ #: ../views/form.php:120
1202
+ msgid "Post HTML Markup"
1203
+ msgstr "Markup HTML de la Entrada"
1204
+
1205
+ #: ../wordpress-popular-posts.php:269
1206
+ msgid "The most Popular Posts on your blog."
1207
+ msgstr "Las entradas m&aacute;s populares en tu blog."
1208
+
1209
+ #: ../wordpress-popular-posts.php:410
1210
+ msgid ""
1211
+ "Error: cannot ajaxify Wordpress Popular Posts on this theme. It's missing "
1212
+ "the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
1213
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1214
+ "\"nofollow\">register_sidebar</a> for more)."
1215
+ msgstr ""
1216
+ "Error: no es posible ajaxificar Wordpress Popular Posts en este tema. Falta "
1217
+ "el atributo <em>id</em> en before_widget (ver <a href=\"http://codex."
1218
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1219
+ "\"nofollow\">register_sidebar</a> para m&aacute;s informaci&oacute;n)."
1220
+
1221
+ #: ../wordpress-popular-posts.php:636
1222
+ msgid "Upload"
1223
+ msgstr "Subir"
1224
+
1225
+ #: ../wordpress-popular-posts.php:1002
1226
+ #, php-format
1227
+ msgid ""
1228
+ "Your PHP installation is too old. Wordpress Popular Posts requires at least "
1229
+ "PHP version %1$s to function correctly. Please contact your hosting provider "
1230
+ "and ask them to upgrade PHP to %1$s or higher."
1231
+ msgstr ""
1232
+ "Tu versi&oacute;n de PHP es muy antigua. El plugin Wordpress Popular Posts "
1233
+ "requiere al menos PHP version %1$s para funcionar correctamente. Por favor "
1234
+ "contacta a tu proveedor de hosting y solicita que se actualice PHP a %1$s o "
1235
+ "mejor."
1236
+
1237
+ #: ../wordpress-popular-posts.php:1009
1238
+ #, php-format
1239
+ msgid ""
1240
+ "Your Wordpress version is too old. Wordpress Popular Posts requires at least "
1241
+ "Wordpress version %1$s to function correctly. Please update your blog via "
1242
+ "Dashboard &gt; Update."
1243
+ msgstr ""
1244
+ "Tu versi&oacute;n de Wordpress es muy antigua. El plugin Wordpress Popular "
1245
+ "Posts requiere al menos la versi&oacute;n %1$s para funcionar correctamente. "
1246
+ "Por favor actualiza tu blog via Escritorio &gt; Actualizaciones."
1247
+
1248
+ #: ../wordpress-popular-posts.php:1034
1249
+ #, php-format
1250
+ msgid ""
1251
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
1252
+ "strong>.</p></div>"
1253
+ msgstr ""
1254
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> ha sido <strong>desactivado</"
1255
+ "strong>.</p></div>"
1256
 
1257
+ #: ../wordpress-popular-posts.php:1094
1258
  msgid "Success! The cache table has been cleared!"
1259
  msgstr "&iexcl;&Eacute;xito! &iexcl;La tabla cach&eacute; ha sido borrada!"
1260
 
1261
+ #: ../wordpress-popular-posts.php:1096
1262
  msgid "Error: cache table does not exist."
1263
  msgstr "Error: la tabla cach&eacute; no existe."
1264
 
1265
+ #: ../wordpress-popular-posts.php:1103
1266
  msgid "Success! All data have been cleared!"
1267
  msgstr "&iexcl;&Eacute;xito! &iexcl;Toda la data ha sido borrada!"
1268
 
1269
+ #: ../wordpress-popular-posts.php:1105
1270
  msgid "Error: one or both data tables are missing."
1271
  msgstr "Error: una o ambas tablas de datos no existen."
1272
 
1273
+ #: ../wordpress-popular-posts.php:1108
1274
  msgid "Invalid action."
1275
  msgstr "Acci&oacute;n inv&aacute;lida."
1276
 
1277
+ #: ../wordpress-popular-posts.php:1111
1278
  msgid ""
1279
  "Sorry, you do not have enough permissions to do this. Please contact the "
1280
  "site administrator for support."
1282
  "Lo lamento, no tienes permisos suficientes para hacer esto. Por favor "
1283
  "contacta al administrador del sitio."
1284
 
1285
+ #: ../wordpress-popular-posts.php:1639
1286
  msgid "Sorry. No data so far."
1287
  msgstr "Lo lamentamos. No hay nada que mostrar a&uacute;n."
1288
 
1289
+ #: ../wordpress-popular-posts.php:2111
1290
+ #, php-format
1291
+ msgid "1 comment"
1292
+ msgid_plural "%s comments"
1293
+ msgstr[0] "1 comentario"
1294
+ msgstr[1] "%s comentarios"
1295
+
1296
+ #: ../wordpress-popular-posts.php:2123
1297
+ #, php-format
1298
+ msgid "1 view per day"
1299
+ msgid_plural "%s views per day"
1300
+ msgstr[0] "1 vista por d&iacute;a"
1301
+ msgstr[1] "%s vistas por d&iacute;a"
1302
+
1303
+ #: ../wordpress-popular-posts.php:2129
1304
+ #, php-format
1305
+ msgid "1 view"
1306
+ msgid_plural "%s views"
1307
+ msgstr[0] "1 vista"
1308
+ msgstr[1] "%s vistas"
1309
+
1310
+ #: ../wordpress-popular-posts.php:2141
1311
+ #, php-format
1312
+ msgid "by %s"
1313
+ msgstr "por %s"
1314
+
1315
+ #: ../wordpress-popular-posts.php:2147
1316
+ #, php-format
1317
+ msgid "posted on %s"
1318
+ msgstr "publicado el %s"
1319
+
1320
+ #: ../wordpress-popular-posts.php:2155
1321
+ #, php-format
1322
+ msgid "under %s"
1323
+ msgstr "bajo %s"
1324
+
1325
+ #~ msgid ""
1326
+ #~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
1327
+ #~ "and the [wpp] shortcode\"."
1328
+ #~ msgstr ""
1329
+ #~ "Por favor revisa \"Listado de par&aacute;metros aceptados por "
1330
+ #~ "wpp_get_mostpopular() y el shortcode [wpp]\"."
1331
 
1332
+ #~ msgid ""
1333
+ #~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
1334
+ #~ "shortcode"
1335
+ #~ msgstr ""
1336
+ #~ "Lista de par&aacute;metros aceptados por wpp_get_mostpopular() y el "
1337
+ #~ "shortcode [wpp]"
1338
 
1339
+ #~ msgid ""
1340
+ #~ "These parameters can be used by both the template tag "
1341
+ #~ "wpp_get_most_popular() and the shortcode [wpp]."
1342
+ #~ msgstr ""
1343
+ #~ "Estos par&aacute;metros pueden ser utilizados tanto por el template tag "
1344
+ #~ "wpp_get_mostpopular() como por el shortcode [wpp]."
1345
 
1346
+ #~ msgid "Preview"
1347
+ #~ msgstr "Vista previa"
 
1348
 
1349
+ #~ msgid "Excerpt Properties"
1350
+ #~ msgstr "Propiedades del resumen"
 
1351
 
1352
+ #~ msgid "Thumbnail settings"
1353
+ #~ msgstr "Configuraci&oacute;n de miniatura"
 
1354
 
1355
+ #~ msgid ""
1356
+ #~ "Here you will find a handy group of options to tweak Wordpress Popular "
1357
+ #~ "Posts."
1358
+ #~ msgstr ""
1359
+ #~ "Aqu&iacute; encontrar&aacute;s un &uacute;til grupo de opciones para "
1360
+ #~ "ajustar a Wordpress Popular Posts."
1361
 
1362
+ #~ msgid "Popular Posts links behavior"
1363
+ #~ msgstr "Comportamiento de los link en las Entradas Populares"
 
1364
 
1365
+ #~ msgid "Views logging behavior"
1366
+ #~ msgstr "Comportamiento del registro de vistas"
 
1367
 
1368
+ #~ msgid "Wordpress Popular Posts Stylesheet"
1369
+ #~ msgstr "Hoja de estilos de Wordpress Popular Posts"
 
1370
 
1371
+ #~ msgid "Data tools"
1372
+ #~ msgstr "Herramientas de datos"
 
 
 
 
 
 
 
1373
 
1374
+ #~ msgid "Popular posts listing refresh interval"
1375
+ #~ msgstr "Intervalo de refrescamiento de las Entradas Populares"
1376
+
1377
+ #~ msgid "Frequently Asked Questions"
1378
+ #~ msgstr "Preguntas Frecuentes (FAQ)"
1379
+
1380
+ #~ msgid "Sets the opening tag for each item on the list"
1381
+ #~ msgstr "Configura la etiqueta de apertura de cada &iacute;tem del listado"
1382
+
1383
+ #~ msgid "Sets the closing tag for each item on the list"
1384
+ #~ msgstr "Configura la etiqueta de cierre de cada &iacute;tem del listado"
1385
+
1386
+ #~ msgid ""
1387
+ #~ "If set, this option will allow you to decide the order of the contents "
1388
+ #~ "within each item on the list."
1389
+ #~ msgstr ""
1390
+ #~ "Si se configura, esta opci&oacute;n te permitir&aacute; decidir el orden "
1391
+ #~ "de los contenidos dentro de cada item en la lista."
1392
+
1393
+ #~ msgid ""
1394
+ #~ "If set, you can decide the order of each content inside a single item on "
1395
+ #~ "the list. For example, setting it to \"{title}: {summary}\" would output "
1396
+ #~ "something like \"Your Post Title: summary here\". This attribute requires "
1397
+ #~ "do_pattern to be true."
1398
+ #~ msgstr ""
1399
+ #~ "Si se configura, puedes decidir el orden de cada contenido dentro de cada "
1400
+ #~ "item en la lista. Por ejemplo, configurarlo como \"{title}: {summary}\" "
1401
+ #~ "mostrar&iacute;a \"El t&iacute;tulo de tu entrada: resumen aqu&iacute;\". "
1402
+ #~ "Este atributo requiere que do_pattern sea true."
1403
+
1404
+ #~ msgid "Available tags"
1405
+ #~ msgstr "Etiquetas disponibles"
1406
+
1407
+ #~ msgid "Rate it"
1408
+ #~ msgstr "&iexcl;Calif&iacute;calo"
1409
+
1410
+ #~ msgid "on the official Plugin Directory!"
1411
+ #~ msgstr "en el Directorio Oficial de Plugins!"
1412
+
1413
+ #~ msgid "Do you love this plugin?"
1414
+ #~ msgstr "&iquest;Adoras este plugin?"
1415
+
1416
+ #~ msgid "Buy me a beer!"
1417
+ #~ msgstr "&iexcl;C&oacute;mprame una cerveza!"
1418
+
1419
+ #~ msgid "comments"
1420
+ #~ msgstr "comentarios"
1421
+
1422
+ #~ msgid "views per day"
1423
+ #~ msgstr "vistas por d&iacute;a"
1424
+
1425
+ #~ msgid "views"
1426
+ #~ msgstr "vistas"
1427
+
1428
+ #~ msgid "by"
1429
+ #~ msgstr "por"
1430
 
1431
  #~ msgid "What does \"Use content formatting tags\" do?"
1432
  #~ msgstr ""
lang/wordpress-popular-posts-fa_IR.mo DELETED
Binary file
lang/wordpress-popular-posts-fa_IR.po DELETED
@@ -1,1120 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Wordpress Popular Posts\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-06-30 12:50+0330\n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Hector Cabrera <me@cabrerahector.com>\n"
8
- "Language-Team: Higgs <msz.zarei@gmail.com>\n"
9
- "Language: fa_IR\n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
- "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.5\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
- "X-Poedit-SearchPath-1: ..\n"
19
-
20
- #: ../admin.php:67 ../admin.php:73 ../admin.php:85 ../admin.php:96
21
- #: ../admin.php:104
22
- msgid "Settings saved."
23
- msgstr "ذخیره تنظیمات"
24
-
25
- #: ../admin.php:78
26
- msgid "Please provide the name of your custom field."
27
- msgstr ""
28
-
29
- #: ../admin.php:345
30
- msgid ""
31
- "This operation will delete all entries from Wordpress Popular Posts' cache "
32
- "table and cannot be undone."
33
- msgstr ""
34
-
35
- #: ../admin.php:345 ../admin.php:353
36
- msgid "Do you want to continue?"
37
- msgstr "میخواهید ادامه دهید؟"
38
-
39
- #: ../admin.php:353
40
- msgid ""
41
- "This operation will delete all stored info from Wordpress Popular Posts' "
42
- "data tables and cannot be undone."
43
- msgstr ""
44
-
45
- #: ../admin.php:367
46
- msgid "Stats"
47
- msgstr "آمار"
48
-
49
- #: ../admin.php:368
50
- msgid "FAQ"
51
- msgstr "راهنمایی"
52
-
53
- #: ../admin.php:369
54
- msgid "Tools"
55
- msgstr "ابزار"
56
-
57
- #: ../admin.php:373
58
- msgid ""
59
- "Click on each tab to see what are the most popular entries on your blog in "
60
- "the last 24 hours, this week, last 30 days or all time since Wordpress "
61
- "Popular Posts was installed."
62
- msgstr ""
63
-
64
- #: ../admin.php:379
65
- msgid "Order by comments"
66
- msgstr "مرتب سازی بر اساس دیدگاه"
67
-
68
- #: ../admin.php:380
69
- msgid "Order by views"
70
- msgstr "مرتب سازی بر اساس بازدید"
71
-
72
- #: ../admin.php:381
73
- msgid "Order by avg. daily views"
74
- msgstr "مرتب سازی بر اساس میانگین بازدید روزانه"
75
-
76
- #: ../admin.php:383
77
- msgid "Post type"
78
- msgstr "نوع نوشته:"
79
-
80
- #: ../admin.php:384
81
- msgid "Limit"
82
- msgstr "محدود"
83
-
84
- #: ../admin.php:386 ../admin.php:805 ../admin.php:864 ../admin.php:884
85
- #: ../admin.php:936
86
- msgid "Apply"
87
- msgstr "اعمال کردن"
88
-
89
- #: ../admin.php:392 ../wordpress-popular-posts.php:382
90
- msgid "Last 24 hours"
91
- msgstr "24 ساعت گذشته"
92
-
93
- #: ../admin.php:393 ../wordpress-popular-posts.php:383
94
- msgid "Last 7 days"
95
- msgstr "هفت روز گذشته"
96
-
97
- #: ../admin.php:394 ../wordpress-popular-posts.php:384
98
- msgid "Last 30 days"
99
- msgstr "30 روز گذشته"
100
-
101
- #: ../admin.php:395 ../wordpress-popular-posts.php:385
102
- msgid "All-time"
103
- msgstr "همه زمان ها"
104
-
105
- #: ../admin.php:416
106
- msgid "Frequently Asked Questions"
107
- msgstr ""
108
-
109
- #: ../admin.php:420
110
- msgid "What does \"Title\" do?"
111
- msgstr ""
112
-
113
- #: ../admin.php:422
114
- msgid ""
115
- "It allows you to show a heading for your most popular posts listing. If left "
116
- "empty, no heading will be displayed at all."
117
- msgstr ""
118
-
119
- #: ../admin.php:425
120
- msgid "What is Time Range for?"
121
- msgstr ""
122
-
123
- #: ../admin.php:427
124
- msgid ""
125
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
126
- "comments within the selected time range."
127
- msgstr ""
128
-
129
- #: ../admin.php:430
130
- msgid "What is \"Sort post by\" for?"
131
- msgstr ""
132
-
133
- #: ../admin.php:432
134
- msgid ""
135
- "It allows you to decide whether to order your popular posts listing by total "
136
- "views, comments, or average views per day."
137
- msgstr ""
138
-
139
- #: ../admin.php:435
140
- msgid "What does \"Display post rating\" do?"
141
- msgstr ""
142
-
143
- #: ../admin.php:437
144
- msgid ""
145
- "If checked, Wordpress Popular Posts will show how your readers are rating "
146
- "your most popular posts. This feature requires having WP-PostRatings plugin "
147
- "installed and enabled on your blog for it to work."
148
- msgstr ""
149
-
150
- #: ../admin.php:440
151
- msgid "What does \"Shorten title\" do?"
152
- msgstr ""
153
-
154
- #: ../admin.php:442
155
- msgid ""
156
- "If checked, all posts titles will be shortened to \"n\" characters/words. A "
157
- "new \"Shorten title to\" option will appear so you can set it to whatever "
158
- "you like."
159
- msgstr ""
160
-
161
- #: ../admin.php:445
162
- msgid "What does \"Display post excerpt\" do?"
163
- msgstr ""
164
-
165
- #: ../admin.php:447
166
- msgid ""
167
- "If checked, Wordpress Popular Posts will also include a small extract of "
168
- "your posts in the list. Similarly to the previous option, you will be able "
169
- "to decide how long the post excerpt should be."
170
- msgstr ""
171
-
172
- #: ../admin.php:450
173
- msgid "What does \"Keep text format and links\" do?"
174
- msgstr ""
175
-
176
- #: ../admin.php:452
177
- msgid ""
178
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
179
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
180
- "the excerpt. Hyperlinks will remain intact, too."
181
- msgstr ""
182
-
183
- #: ../admin.php:455
184
- msgid "What is \"Post type\" for?"
185
- msgstr ""
186
-
187
- #: ../admin.php:457
188
- msgid ""
189
- "This filter allows you to decide which post types to show on the listing. By "
190
- "default, it will retrieve only posts and pages (which should be fine for "
191
- "most cases)."
192
- msgstr ""
193
-
194
- #: ../admin.php:460
195
- msgid "What is \"Category(ies) ID(s)\" for?"
196
- msgstr ""
197
-
198
- #: ../admin.php:462
199
- msgid ""
200
- "This filter allows you to select which categories should be included or "
201
- "excluded from the listing. A negative sign in front of the category ID "
202
- "number will exclude posts belonging to it from the list, for example. You "
203
- "can specify more than one ID with a comma separated list."
204
- msgstr ""
205
-
206
- #: ../admin.php:465
207
- msgid "What is \"Author(s) ID(s)\" for?"
208
- msgstr ""
209
-
210
- #: ../admin.php:467
211
- msgid ""
212
- "Just like the Category filter, this one lets you filter posts by author ID. "
213
- "You can specify more than one ID with a comma separated list."
214
- msgstr ""
215
-
216
- #: ../admin.php:470
217
- msgid "What does \"Display post thumbnail\" do?"
218
- msgstr ""
219
-
220
- #: ../admin.php:472
221
- msgid ""
222
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
223
- "of each post. You can set up the source of the thumbnail via Settings - "
224
- "Wordpress Popular Posts - Tools."
225
- msgstr ""
226
-
227
- #: ../admin.php:475
228
- msgid "What does \"Display comment count\" do?"
229
- msgstr ""
230
-
231
- #: ../admin.php:477
232
- msgid ""
233
- "If checked, Wordpress Popular Posts will display how many comments each "
234
- "popular post has got in the selected Time Range."
235
- msgstr ""
236
-
237
- #: ../admin.php:480
238
- msgid "What does \"Display views\" do?"
239
- msgstr ""
240
-
241
- #: ../admin.php:482
242
- msgid ""
243
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
244
- "post has gotten in the selected Time Range."
245
- msgstr ""
246
-
247
- #: ../admin.php:485
248
- msgid "What does \"Display author\" do?"
249
- msgstr ""
250
-
251
- #: ../admin.php:487
252
- msgid ""
253
- "If checked, Wordpress Popular Posts will display the name of the author of "
254
- "each entry listed."
255
- msgstr ""
256
-
257
- #: ../admin.php:490
258
- msgid "What does \"Display date\" do?"
259
- msgstr ""
260
-
261
- #: ../admin.php:492
262
- msgid ""
263
- "If checked, Wordpress Popular Posts will display the date when each popular "
264
- "posts was published."
265
- msgstr ""
266
-
267
- #: ../admin.php:495
268
- msgid "What does \"Use custom HTML Markup\" do?"
269
- msgstr ""
270
-
271
- #: ../admin.php:497
272
- msgid ""
273
- "If checked, you will be able to customize the HTML markup of your popular "
274
- "posts listing. For example, you can decide whether to wrap your posts in an "
275
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
276
- "for you!"
277
- msgstr ""
278
-
279
- #: ../admin.php:500
280
- msgid "What are \"Content Tags\"?"
281
- msgstr "\"مطالب و محتوا برچسب ها\" چیست؟"
282
-
283
- #: ../admin.php:502
284
- msgid ""
285
- "Content Tags are codes to display a variety of items on your popular posts "
286
- "custom HTML structure. For example, setting it to \"{title}: "
287
- "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
288
- "post here\". For more Content Tags, see \"List of parameters accepted by "
289
- "wpp_get_mostpopular() and the [wpp] shortcode\"."
290
- msgstr ""
291
-
292
- #: ../admin.php:505
293
- msgid "What are \"Template Tags\"?"
294
- msgstr ""
295
-
296
- #: ../admin.php:507
297
- msgid ""
298
- "Template Tags are simply php functions that allow you to perform certain "
299
- "actions. For example, Wordpress Popular Posts currently supports two "
300
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
301
- msgstr ""
302
-
303
- #: ../admin.php:510
304
- msgid "What are the template tags that Wordpress Popular Posts supports?"
305
- msgstr ""
306
-
307
- #: ../admin.php:512
308
- msgid ""
309
- "The following are the template tags supported by Wordpress Popular Posts"
310
- msgstr ""
311
-
312
- #: ../admin.php:516
313
- msgid "Template tag"
314
- msgstr "قالب برچسب"
315
-
316
- #: ../admin.php:517 ../admin.php:550
317
- msgid "What it does "
318
- msgstr ""
319
-
320
- #: ../admin.php:518
321
- msgid "Parameters"
322
- msgstr "پارامتر ها"
323
-
324
- #: ../admin.php:519 ../admin.php:553
325
- msgid "Example"
326
- msgstr "مثال"
327
-
328
- #: ../admin.php:525
329
- msgid ""
330
- "Similar to the widget functionality, this tag retrieves the most popular "
331
- "posts on your blog. This function also accepts parameters so you can "
332
- "customize your popular listing, but these are not required."
333
- msgstr ""
334
-
335
- #: ../admin.php:526
336
- msgid ""
337
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
338
- "the [wpp] shortcode\"."
339
- msgstr ""
340
-
341
- #: ../admin.php:531
342
- msgid ""
343
- "Displays the number of views of a single post. Post ID is required or it "
344
- "will return false."
345
- msgstr ""
346
-
347
- #: ../admin.php:532
348
- msgid "Post ID"
349
- msgstr "شناسه نوشته"
350
-
351
- #: ../admin.php:539
352
- msgid "What are \"shortcodes\"?"
353
- msgstr "کد های کوتاه چه هستند؟"
354
-
355
- #: ../admin.php:541
356
- msgid ""
357
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
358
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
359
- "shortcode [wpp] will let you insert a list of the most popular posts in "
360
- "posts content and pages too! For more information about shortcodes, please "
361
- "visit"
362
- msgstr ""
363
-
364
- #: ../admin.php:543
365
- msgid ""
366
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
367
- msgstr ""
368
-
369
- #: ../admin.php:545
370
- msgid ""
371
- "These parameters can be used by both the template tag wpp_get_most_popular() "
372
- "and the shortcode [wpp]."
373
- msgstr ""
374
-
375
- #: ../admin.php:549
376
- msgid "Parameter"
377
- msgstr "پارامتر ها"
378
-
379
- #: ../admin.php:551
380
- msgid "Possible values"
381
- msgstr ""
382
-
383
- #: ../admin.php:552
384
- msgid "Defaults to"
385
- msgstr ""
386
-
387
- #: ../admin.php:559
388
- msgid "Sets a heading for the list"
389
- msgstr ""
390
-
391
- #: ../admin.php:560 ../admin.php:567 ../admin.php:574 ../admin.php:602
392
- #: ../admin.php:609 ../admin.php:616 ../admin.php:623 ../admin.php:714
393
- #: ../admin.php:728 ../admin.php:735 ../admin.php:749 ../admin.php:756
394
- msgid "Text string"
395
- msgstr "رشته متن"
396
-
397
- #: ../admin.php:561 ../wordpress-popular-posts.php:126
398
- msgid "Popular Posts"
399
- msgstr "محبوبترین نوشته ها"
400
-
401
- #: ../admin.php:566
402
- msgid "Set the opening tag for the heading of the list"
403
- msgstr ""
404
-
405
- #: ../admin.php:573
406
- msgid "Set the closing tag for the heading of the list"
407
- msgstr ""
408
-
409
- #: ../admin.php:580
410
- msgid "Sets the maximum number of popular posts to be shown on the listing"
411
- msgstr ""
412
-
413
- #: ../admin.php:581 ../admin.php:630 ../admin.php:644 ../admin.php:665
414
- #: ../admin.php:672
415
- msgid "Positive integer"
416
- msgstr "مقدار صحیح مثبت"
417
-
418
- #: ../admin.php:587
419
- msgid ""
420
- "Tells Wordpress Popular Posts to retrieve the most popular entries within "
421
- "the time range specified by you"
422
- msgstr ""
423
-
424
- #: ../admin.php:594
425
- msgid "Sets the sorting option of the popular posts"
426
- msgstr ""
427
-
428
- #: ../admin.php:595
429
- msgid "(for average views per day)"
430
- msgstr ""
431
-
432
- #: ../admin.php:601
433
- msgid "Defines the type of posts to show on the listing"
434
- msgstr ""
435
-
436
- #: ../admin.php:608
437
- msgid ""
438
- "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
439
- "form the listing."
440
- msgstr ""
441
-
442
- #: ../admin.php:610 ../admin.php:617 ../admin.php:624
443
- msgid "None"
444
- msgstr "هیچ"
445
-
446
- #: ../admin.php:615
447
- msgid ""
448
- "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
449
- "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
450
- "will be excluded instead."
451
- msgstr ""
452
-
453
- #: ../admin.php:622
454
- msgid ""
455
- "If set, Wordpress Popular Posts will retrieve all entries created by "
456
- "specified author(s) ID(s)."
457
- msgstr ""
458
-
459
- #: ../admin.php:629
460
- msgid ""
461
- "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
462
- "characters whenever possible"
463
- msgstr ""
464
-
465
- #: ../admin.php:636
466
- msgid ""
467
- "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
468
- "words instead of characters"
469
- msgstr ""
470
-
471
- #: ../admin.php:643
472
- msgid ""
473
- "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
474
- "characters long from the content of each post listed as popular"
475
- msgstr ""
476
-
477
- #: ../admin.php:650
478
- msgid ""
479
- "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
480
- "italic, etc) and hyperlinks found in the excerpt"
481
- msgstr ""
482
-
483
- #: ../admin.php:657
484
- msgid ""
485
- "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
486
- "instead of characters"
487
- msgstr ""
488
-
489
- #: ../admin.php:664
490
- msgid ""
491
- "If set, and if your current server configuration allows it, you will be able "
492
- "to display thumbnails of your posts. This attribute sets the width for "
493
- "thumbnails"
494
- msgstr ""
495
-
496
- #: ../admin.php:671
497
- msgid ""
498
- "If set, and if your current server configuration allows it, you will be able "
499
- "to display thumbnails of your posts. This attribute sets the height for "
500
- "thumbnails"
501
- msgstr ""
502
-
503
- #: ../admin.php:678
504
- msgid ""
505
- "If set, and if the WP-PostRatings plugin is installed and enabled on your "
506
- "blog, Wordpress Popular Posts will show how your visitors are rating your "
507
- "entries"
508
- msgstr ""
509
-
510
- #: ../admin.php:685
511
- msgid ""
512
- "If set, Wordpress Popular Posts will show how many comments each popular "
513
- "post has got until now"
514
- msgstr ""
515
-
516
- #: ../admin.php:692
517
- msgid ""
518
- "If set, Wordpress Popular Posts will show how many views each popular post "
519
- "has got since it was installed"
520
- msgstr ""
521
-
522
- #: ../admin.php:699
523
- msgid ""
524
- "If set, Wordpress Popular Posts will show who published each popular post on "
525
- "the list"
526
- msgstr ""
527
-
528
- #: ../admin.php:706
529
- msgid ""
530
- "If set, Wordpress Popular Posts will display the date when each popular post "
531
- "on the list was published"
532
- msgstr ""
533
-
534
- #: ../admin.php:713
535
- msgid "Sets the date format"
536
- msgstr "ثبت فرمت تاریخ"
537
-
538
- #: ../admin.php:720
539
- msgid "If set, Wordpress Popular Posts will display the category"
540
- msgstr "اگر ست شد،دسته محبوترین نوشته های وردپرس نمایش خواهد یافت"
541
-
542
- #: ../admin.php:727
543
- msgid "Sets the opening tag for the listing"
544
- msgstr ""
545
-
546
- #: ../admin.php:734
547
- msgid "Sets the closing tag for the listing"
548
- msgstr ""
549
-
550
- #: ../admin.php:741
551
- msgid "Sets the HTML structure of each post"
552
- msgstr ""
553
-
554
- #: ../admin.php:742
555
- msgid "Text string, custom HTML"
556
- msgstr "رشته متن، html دلخواه"
557
-
558
- #: ../admin.php:742
559
- msgid "Available Content Tags"
560
- msgstr "برچسب های محتوای موجود"
561
-
562
- #: ../admin.php:742
563
- msgid "displays thumbnail linked to post/page"
564
- msgstr ""
565
-
566
- #: ../admin.php:742
567
- msgid "displays linked post/page title"
568
- msgstr ""
569
-
570
- #: ../admin.php:742
571
- msgid ""
572
- "displays post/page excerpt, and requires excerpt_length to be greater than 0"
573
- msgstr ""
574
-
575
- #: ../admin.php:742
576
- msgid "displays the default stats tags"
577
- msgstr ""
578
-
579
- #: ../admin.php:742
580
- msgid ""
581
- "displays post/page current rating, requires WP-PostRatings installed and "
582
- "enabled"
583
- msgstr ""
584
-
585
- #: ../admin.php:742
586
- msgid "outputs the URL of the post/page"
587
- msgstr ""
588
-
589
- #: ../admin.php:742
590
- msgid "displays post/page title, no link"
591
- msgstr ""
592
-
593
- #: ../admin.php:742
594
- msgid "displays linked author name, requires stats_author=1"
595
- msgstr ""
596
-
597
- #: ../admin.php:742
598
- msgid "displays linked category name, requires stats_category=1"
599
- msgstr ""
600
-
601
- #: ../admin.php:742
602
- msgid "displays views count only, no text"
603
- msgstr ""
604
-
605
- #: ../admin.php:742
606
- msgid "displays comments count only, no text, requires stats_comments=1"
607
- msgstr ""
608
-
609
- #: ../admin.php:748
610
- msgid "Sets the opening tag for each item on the list"
611
- msgstr ""
612
-
613
- #: ../admin.php:755
614
- msgid "Sets the closing tag for each item on the list"
615
- msgstr ""
616
-
617
- #: ../admin.php:762
618
- msgid ""
619
- "If set, this option will allow you to decide the order of the contents "
620
- "within each item on the list."
621
- msgstr ""
622
-
623
- #: ../admin.php:769
624
- msgid ""
625
- "If set, you can decide the order of each content inside a single item on the "
626
- "list. For example, setting it to \"{title}: {summary}\" would output "
627
- "something like \"Your Post Title: summary here\". This attribute requires "
628
- "do_pattern to be true."
629
- msgstr ""
630
-
631
- #: ../admin.php:770
632
- msgid "Available tags"
633
- msgstr "برچسب های موجود"
634
-
635
- #: ../admin.php:785
636
- msgid ""
637
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
638
- msgstr ""
639
-
640
- #: ../admin.php:787
641
- msgid "Views logging behavior"
642
- msgstr ""
643
-
644
- #: ../admin.php:793
645
- msgid "Log views from"
646
- msgstr ""
647
-
648
- #: ../admin.php:796
649
- msgid "Visitors only"
650
- msgstr "تنها بازدید کننده"
651
-
652
- #: ../admin.php:797
653
- msgid "Everyone"
654
- msgstr "هر کسی"
655
-
656
- #: ../admin.php:814
657
- msgid "Thumbnail source"
658
- msgstr "منبع بند انگشتی"
659
-
660
- #: ../admin.php:820
661
- msgid "Default thumbnail"
662
- msgstr "بند انگشتی پیشفرض"
663
-
664
- #: ../admin.php:822
665
- msgid "Upload thumbnail"
666
- msgstr "آپلود بند انگشتی"
667
-
668
- #: ../admin.php:825
669
- msgid ""
670
- "How-to: upload (or select) an image, set Size to Full and click on Upload. "
671
- "After it's done, hit on Apply to save changes"
672
- msgstr ""
673
-
674
- #: ../admin.php:827
675
- msgid "Preview"
676
- msgstr "پیش بازدید"
677
-
678
- #: ../admin.php:835
679
- msgid "Pick image from"
680
- msgstr ""
681
-
682
- #: ../admin.php:838
683
- msgid "Featured image"
684
- msgstr "تصویر شاخص"
685
-
686
- #: ../admin.php:839
687
- msgid "First image on post"
688
- msgstr "اولین تصویر نوشته"
689
-
690
- #: ../admin.php:840
691
- msgid "Custom field"
692
- msgstr "فیلد دلخواه"
693
-
694
- #: ../admin.php:843
695
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
696
- msgstr ""
697
-
698
- #: ../admin.php:847
699
- msgid "Custom field name"
700
- msgstr "نام فیلد دلخواه"
701
-
702
- #: ../admin.php:853
703
- msgid "Resize image from Custom field?"
704
- msgstr ""
705
-
706
- #: ../admin.php:856
707
- msgid "No, I will upload my own thumbnail"
708
- msgstr "خیر، من تصویر شخصی بنداگشتی را آپلود می کنم"
709
-
710
- #: ../admin.php:857
711
- msgid "Yes"
712
- msgstr "بله"
713
-
714
- #: ../admin.php:874
715
- msgid "Wordpress Popular Posts Stylesheet"
716
- msgstr "استایل محبوبترین نوشته های وردپرس"
717
-
718
- #: ../admin.php:875
719
- msgid ""
720
- "By default, the plugin includes a stylesheet called wpp.css which you can "
721
- "use to style your popular posts listing. If you wish to use your own "
722
- "stylesheet or do not want it to have it included in the header section of "
723
- "your site, use this."
724
- msgstr ""
725
-
726
- #: ../admin.php:880 ../admin.php:899
727
- msgid "Enabled"
728
- msgstr "فعال"
729
-
730
- #: ../admin.php:881 ../admin.php:898
731
- msgid "Disabled"
732
- msgstr "غیر فعال"
733
-
734
- #: ../admin.php:890
735
- msgid "Data tools"
736
- msgstr "ابزار های اطلاعات"
737
-
738
- #: ../admin.php:895
739
- msgid "Ajaxify widget"
740
- msgstr "ابزارک آجاکسی"
741
-
742
- #: ../admin.php:903
743
- msgid ""
744
- "If you are using a caching plugin such as WP Super Cache, enabling this "
745
- "feature will keep the popular list from being cached by it"
746
- msgstr ""
747
-
748
- #: ../admin.php:907
749
- msgid "Popular posts listing refresh interval"
750
- msgstr ""
751
-
752
- #: ../admin.php:910
753
- msgid "Live"
754
- msgstr "زنده"
755
-
756
- #: ../admin.php:911
757
- msgid "Custom interval"
758
- msgstr "فاصله سفارشی"
759
-
760
- #: ../admin.php:915
761
- msgid ""
762
- "Sets how often the listing should be updated. For most sites the Live option "
763
- "should be fine, however if you are experiencing slowdowns or your blog gets "
764
- "a lot of visitors then you might want to change the refresh rate"
765
- msgstr ""
766
-
767
- #: ../admin.php:919
768
- msgid "Refresh interval"
769
- msgstr "فراخوانی فاصله"
770
-
771
- #: ../admin.php:923
772
- msgid "Hour(s)"
773
- msgstr "ساعت"
774
-
775
- #: ../admin.php:924
776
- msgid "Day(s)"
777
- msgstr "روز"
778
-
779
- #: ../admin.php:925
780
- msgid "Week(s)"
781
- msgstr "هفته"
782
-
783
- #: ../admin.php:926
784
- msgid "Month(s)"
785
- msgstr "ماه"
786
-
787
- #: ../admin.php:927
788
- msgid "Year(s)"
789
- msgstr "سال"
790
-
791
- #: ../admin.php:930
792
- msgid "Really? That long?"
793
- msgstr ""
794
-
795
- #: ../admin.php:945
796
- msgid ""
797
- "Wordpress Popular Posts maintains data in two separate tables: one for "
798
- "storing the most popular entries in the past 30 days (from now on, \"cache"
799
- "\"), and another one to keep the All-time data (from now on, \"historical "
800
- "data\" or just \"data\"). If for some reason you need to clear the cache "
801
- "table, or even both historical and cache tables, please use the buttons "
802
- "below to do so."
803
- msgstr ""
804
-
805
- #: ../admin.php:946
806
- msgid "Empty cache"
807
- msgstr "خالی کردن کش"
808
-
809
- #: ../admin.php:946
810
- msgid "Use this button to manually clear entries from WPP cache only"
811
- msgstr ""
812
-
813
- #: ../admin.php:947
814
- msgid "Clear all data"
815
- msgstr "حذف تمامی اطلاعات"
816
-
817
- #: ../admin.php:947
818
- msgid "Use this button to manually clear entries from all WPP data tables"
819
- msgstr ""
820
-
821
- #: ../admin.php:953
822
- msgid "Do you like this plugin?"
823
- msgstr "آیا شما این افزونه را دوست دارید؟"
824
-
825
- #: ../admin.php:953
826
- msgid "Rate Wordpress Popular Posts!"
827
- msgstr "امتیاز محبوبترین نوشته های وردپرس"
828
-
829
- #: ../admin.php:953
830
- msgid "Rate it"
831
- msgstr "امتیاز آن"
832
-
833
- #: ../admin.php:953
834
- msgid "on the official Plugin Directory!"
835
- msgstr ""
836
-
837
- #: ../admin.php:954
838
- msgid "Do you love this plugin?"
839
- msgstr ""
840
-
841
- #: ../admin.php:954 ../admin.php:955
842
- msgid "Buy me a beer!"
843
- msgstr ""
844
-
845
- #: ../admin.php:954
846
- msgid ""
847
- "Each donation motivates me to keep releasing free stuff for the Wordpress "
848
- "community!"
849
- msgstr ""
850
-
851
- #: ../wordpress-popular-posts.php:129
852
- msgid "The most Popular Posts on your blog."
853
- msgstr ""
854
-
855
- #: ../wordpress-popular-posts.php:376
856
- msgid "Title:"
857
- msgstr "عنوان:"
858
-
859
- #: ../wordpress-popular-posts.php:376 ../wordpress-popular-posts.php:378
860
- #: ../wordpress-popular-posts.php:380 ../wordpress-popular-posts.php:388
861
- #: ../wordpress-popular-posts.php:399 ../wordpress-popular-posts.php:401
862
- #: ../wordpress-popular-posts.php:408 ../wordpress-popular-posts.php:412
863
- #: ../wordpress-popular-posts.php:425 ../wordpress-popular-posts.php:439
864
- #: ../wordpress-popular-posts.php:451 ../wordpress-popular-posts.php:452
865
- #: ../wordpress-popular-posts.php:453 ../wordpress-popular-posts.php:454
866
- #: ../wordpress-popular-posts.php:464 ../wordpress-popular-posts.php:470
867
- msgid "What is this?"
868
- msgstr "این چه هست؟"
869
-
870
- #: ../wordpress-popular-posts.php:378
871
- msgid "Show up to:"
872
- msgstr "نمایش تا:"
873
-
874
- #: ../wordpress-popular-posts.php:379
875
- msgid "posts"
876
- msgstr "نوشته"
877
-
878
- #: ../wordpress-popular-posts.php:380
879
- msgid "Time Range:"
880
- msgstr "محدوده زمانی:"
881
-
882
- #: ../wordpress-popular-posts.php:388
883
- msgid "Sort posts by:"
884
- msgstr "مرتبط سازی بر اساس:"
885
-
886
- #: ../wordpress-popular-posts.php:390
887
- msgid "Comments"
888
- msgstr "دیدگاه "
889
-
890
- #: ../wordpress-popular-posts.php:391
891
- msgid "Total views"
892
- msgstr "بازدید "
893
-
894
- #: ../wordpress-popular-posts.php:392
895
- msgid "Avg. daily views"
896
- msgstr "میانگین.بازدید روزانه"
897
-
898
- #: ../wordpress-popular-posts.php:397
899
- msgid "Posts settings"
900
- msgstr "تنظیمات نوشته"
901
-
902
- #: ../wordpress-popular-posts.php:399
903
- msgid "Display post rating"
904
- msgstr "نمایش امتیاز نوشته"
905
-
906
- #: ../wordpress-popular-posts.php:401
907
- msgid "Shorten title"
908
- msgstr "عنوان کوتاه"
909
-
910
- #: ../wordpress-popular-posts.php:404
911
- msgid "Shorten title to"
912
- msgstr "کوتاه شدن عنوان"
913
-
914
- #: ../wordpress-popular-posts.php:405 ../wordpress-popular-posts.php:415
915
- msgid "characters"
916
- msgstr "کاراکتر ها"
917
-
918
- #: ../wordpress-popular-posts.php:406 ../wordpress-popular-posts.php:416
919
- msgid "words"
920
- msgstr "کلمات "
921
-
922
- #: ../wordpress-popular-posts.php:408
923
- msgid "Display post excerpt"
924
- msgstr "نمایش چکیده نوشته"
925
-
926
- #: ../wordpress-popular-posts.php:411
927
- msgid "Excerpt Properties"
928
- msgstr "تنظیمات چکیده"
929
-
930
- #: ../wordpress-popular-posts.php:412
931
- msgid "Keep text format and links"
932
- msgstr "فرمت متن و لینک ها را نگه دارید"
933
-
934
- #: ../wordpress-popular-posts.php:413
935
- msgid "Excerpt length:"
936
- msgstr "طول چکیده:"
937
-
938
- #: ../wordpress-popular-posts.php:425
939
- msgid "Filters:"
940
- msgstr "صافی ها:"
941
-
942
- #: ../wordpress-popular-posts.php:426
943
- msgid "Post type(s):"
944
- msgstr "نوع(های) نوشته:"
945
-
946
- #: ../wordpress-popular-posts.php:428
947
- msgid "Post(s) ID(s) to exclude:"
948
- msgstr "نادیده گرفتن نوشته (ها) با شناسه (های):"
949
-
950
- #: ../wordpress-popular-posts.php:430
951
- msgid "Category(ies) ID(s):"
952
- msgstr "شناسه (های) دسته (ها):"
953
-
954
- #: ../wordpress-popular-posts.php:432
955
- msgid "Author(s) ID(s):"
956
- msgstr "شناسه (های) نوشته (ها) :"
957
-
958
- #: ../wordpress-popular-posts.php:438
959
- msgid "Thumbnail settings"
960
- msgstr "تنظیمات بند انگشتی"
961
-
962
- #: ../wordpress-popular-posts.php:439
963
- msgid "Display post thumbnail"
964
- msgstr "نمایش بند انگشتی نوشته"
965
-
966
- #: ../wordpress-popular-posts.php:441
967
- msgid "Width:"
968
- msgstr "پهنا:"
969
-
970
- #: ../wordpress-popular-posts.php:442 ../wordpress-popular-posts.php:444
971
- msgid "px"
972
- msgstr "پیکسل"
973
-
974
- #: ../wordpress-popular-posts.php:443
975
- msgid "Height:"
976
- msgstr "ارتفاع:"
977
-
978
- #: ../wordpress-popular-posts.php:450
979
- msgid "Stats Tag settings"
980
- msgstr "تنظیمات آمار برچسب ها"
981
-
982
- #: ../wordpress-popular-posts.php:451
983
- msgid "Display comment count"
984
- msgstr "نمایش تعداد دیدگاه"
985
-
986
- #: ../wordpress-popular-posts.php:452
987
- msgid "Display views"
988
- msgstr "نمایش بازدید ها"
989
-
990
- #: ../wordpress-popular-posts.php:453
991
- msgid "Display author"
992
- msgstr "نمایش نویسنده"
993
-
994
- #: ../wordpress-popular-posts.php:454
995
- msgid "Display date"
996
- msgstr "نمایش روز"
997
-
998
- #: ../wordpress-popular-posts.php:457
999
- msgid "Date Format"
1000
- msgstr "فرمت تاریخ"
1001
-
1002
- #: ../wordpress-popular-posts.php:464
1003
- msgid "Display category"
1004
- msgstr "نمایش دسته"
1005
-
1006
- #: ../wordpress-popular-posts.php:469
1007
- msgid "HTML Markup settings"
1008
- msgstr "تنظیمات نشانه گزاری HTML"
1009
-
1010
- #: ../wordpress-popular-posts.php:470
1011
- msgid "Use custom HTML Markup"
1012
- msgstr "استفاده ار نشانه گزاری دلخواه HTML"
1013
-
1014
- #: ../wordpress-popular-posts.php:473
1015
- msgid "Before / after title:"
1016
- msgstr "قبل / بعد عنوان:"
1017
-
1018
- #: ../wordpress-popular-posts.php:475
1019
- msgid "Before / after Popular Posts:"
1020
- msgstr "قبل / بعد نوشته های محبوب:"
1021
-
1022
- #: ../wordpress-popular-posts.php:478
1023
- msgid "Post HTML Markup:"
1024
- msgstr "نشانه گزاری html نوشته:"
1025
-
1026
- #: ../wordpress-popular-posts.php:628
1027
- msgid "Success! The cache table has been cleared!"
1028
- msgstr "موفقیت آمیز! جداول کش شده حذف گردید!"
1029
-
1030
- #: ../wordpress-popular-posts.php:630
1031
- msgid "Error: cache table does not exist."
1032
- msgstr "خطا: کش جداول وجود ندارد."
1033
-
1034
- #: ../wordpress-popular-posts.php:636
1035
- msgid "Success! All data have been cleared!"
1036
- msgstr "مفقیت آمیز! همه داده ها پاک شدند."
1037
-
1038
- #: ../wordpress-popular-posts.php:638
1039
- msgid "Error: one or both data tables are missing."
1040
- msgstr "خطا: یک یا دو جدول داده گم شده است."
1041
-
1042
- #: ../wordpress-popular-posts.php:641
1043
- msgid "Invalid action."
1044
- msgstr "اقدام نامعتبر است."
1045
-
1046
- #: ../wordpress-popular-posts.php:644
1047
- msgid ""
1048
- "Sorry, you do not have enough permissions to do this. Please contact the "
1049
- "site administrator for support."
1050
- msgstr ""
1051
-
1052
- #: ../wordpress-popular-posts.php:1068
1053
- msgid "Sorry. No data so far."
1054
- msgstr "متاسفیم.تا کنون هیچ داده ای نیست."
1055
-
1056
- #: ../wordpress-popular-posts.php:1150
1057
- msgid "comment"
1058
- msgstr "دیدگاه"
1059
-
1060
- #: ../wordpress-popular-posts.php:1150
1061
- msgid "comments"
1062
- msgstr "دیدگاه"
1063
-
1064
- #: ../wordpress-popular-posts.php:1158
1065
- msgid "view per day"
1066
- msgstr "بازدید در روز "
1067
-
1068
- #: ../wordpress-popular-posts.php:1158
1069
- msgid "views per day"
1070
- msgstr "بازدید در روز "
1071
-
1072
- #: ../wordpress-popular-posts.php:1162
1073
- msgid "view"
1074
- msgstr "بازدید "
1075
-
1076
- #: ../wordpress-popular-posts.php:1162
1077
- msgid "views"
1078
- msgstr "بازدید "
1079
-
1080
- #: ../wordpress-popular-posts.php:1171
1081
- msgid "by"
1082
- msgstr "توسط "
1083
-
1084
- #: ../wordpress-popular-posts.php:1175
1085
- msgid "posted on"
1086
- msgstr "ارسال شده در "
1087
-
1088
- #: ../wordpress-popular-posts.php:1183
1089
- msgid "under"
1090
- msgstr ""
1091
-
1092
- #: ../wordpress-popular-posts.php:1753
1093
- msgid "Upload"
1094
- msgstr "آپلود"
1095
-
1096
- #: ../wordpress-popular-posts.php:1765
1097
- msgid ""
1098
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
1099
- "at least version 3.3 to function correctly. Please update your blog via "
1100
- "Tools &gt; Upgrade."
1101
- msgstr ""
1102
-
1103
- #: ../wordpress-popular-posts.php:1774
1104
- msgid ""
1105
- "Your PHP installation is too old. Wordpress Popular Posts Plugin requires at "
1106
- "least PHP v5.2.0 to function correctly. Please contact your hosting provider "
1107
- "and ask them to upgrade PHP to 5.2.x or higher."
1108
- msgstr ""
1109
-
1110
- #~ msgid "Before / after each post:"
1111
- #~ msgstr "قبل / بعد هر نوشته:"
1112
-
1113
- #~ msgid "Use content formatting tags"
1114
- #~ msgstr "استفاده از تگ های قالب بندی محتوا"
1115
-
1116
- #~ msgid "Content format:"
1117
- #~ msgstr "قالب مطالب و محتوا:"
1118
-
1119
- #~ msgid "Wordpress Popular Posts Stats"
1120
- #~ msgstr "آمار محبوبترین نوشته های وردپرس"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wordpress-popular-posts-fr_FR.mo CHANGED
Binary file
lang/wordpress-popular-posts-fr_FR.po CHANGED
@@ -2,28 +2,32 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-08-31 11:31-0430\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Le raconteur <leraconteur@maintenantunehistoire.fr>\n"
8
- "Language-Team: Héctor Cabrera <admin@rauru.com>\n"
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "Language: en_VE\n"
13
  "X-Poedit-SourceCharset: iso-8859-1\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
 
 
16
  "X-Poedit-SearchPath-0: .\n"
 
17
 
18
- #: admin.php:33 admin.php:44 admin.php:50 admin.php:57
 
19
  msgid "Settings saved."
20
- msgstr "Param&egrave;tres sauvegard&eacute;s."
21
 
22
- #: admin.php:38
23
  msgid "Please provide the name of your custom field."
24
  msgstr "Veuillez indiquer le nom de votre champ personnalis&eacute;."
25
 
26
- #: admin.php:247
27
  msgid ""
28
  "This operation will delete all entries from Wordpress Popular Posts' cache "
29
  "table and cannot be undone."
@@ -31,11 +35,11 @@ msgstr ""
31
  "Cette op&eacute;ration va supprimer d&eacute;finitivement toutes les "
32
  "donn&eacute;es de la table de cache de Wordpress Popular Posts."
33
 
34
- #: admin.php:247 admin.php:255
35
  msgid "Do you want to continue?"
36
- msgstr "Voulez-vous continuer ?"
37
 
38
- #: admin.php:255
39
  msgid ""
40
  "This operation will delete all stored info from Wordpress Popular Posts' "
41
  "data tables and cannot be undone."
@@ -43,482 +47,405 @@ msgstr ""
43
  "Cette op&eacute;ration va supprimer d&eacute;finitivement toutes les "
44
  "donn&eacute;es des tables de Wordpress Popular Posts."
45
 
46
- #: admin.php:269
47
  msgid "Stats"
48
  msgstr "Statistiques"
49
 
50
- #: admin.php:270
 
 
 
 
 
 
 
 
51
  msgid "FAQ"
52
  msgstr "FAQ"
53
 
54
- #: admin.php:271
55
- msgid "Tools"
56
- msgstr "Outils"
57
 
58
- #: admin.php:275
 
59
  msgid ""
60
- "Click on each tab to see what are the most popular entries on your blog "
61
- "today, this week, last 30 days or all time since Wordpress Popular Posts was "
62
- "installed."
63
  msgstr ""
64
  "Cliquer sur chaque onglet pour voir quelles sont les entr&eacute;es les plus "
65
  "populaires sur votre blog aujourd'hui, cette semaine, les 30 derniers jours "
66
  "ou depuis que Wordpress Popular Posts a &eacute;t&eacute; install&eacute;."
67
 
68
- #: admin.php:281
69
  msgid "Order by comments"
70
  msgstr "Trier par commentaires"
71
 
72
- #: admin.php:282
73
  msgid "Order by views"
74
  msgstr "Trier par vues"
75
 
76
- #: admin.php:283
77
  msgid "Order by avg. daily views"
78
  msgstr "Trier par vues moyenne par jour"
79
 
80
- #: admin.php:285
 
 
 
 
81
  msgid "Limit"
82
  msgstr "Limite"
83
 
84
- #: admin.php:287 admin.php:667 admin.php:683 admin.php:700
 
 
 
 
 
85
  msgid "Apply"
86
  msgstr "Appliquer"
87
 
88
- #: admin.php:293 wordpress-popular-posts.php:307
89
  msgid "Last 24 hours"
90
  msgstr "Derni&egrave;res 24 heures"
91
 
92
- #: admin.php:294 wordpress-popular-posts.php:308
93
  msgid "Last 7 days"
94
  msgstr "7 derniers jours "
95
 
96
- #: admin.php:295 wordpress-popular-posts.php:309
97
  msgid "Last 30 days"
98
  msgstr "30 derniers jours "
99
 
100
- #: admin.php:296 wordpress-popular-posts.php:310
101
  msgid "All-time"
102
  msgstr "Depuis le d&eacute;but"
103
 
104
- #: admin.php:317
105
- msgid "Frequently Asked Questions"
106
- msgstr "Questions fr&eacute;quentes"
107
-
108
- #: admin.php:321
109
- msgid "What does \"Title\" do?"
110
- msgstr "Que fait \"Titre\" ?"
111
-
112
- #: admin.php:323
113
- msgid ""
114
- "It allows you to show a heading for your most popular posts listing. If left "
115
- "empty, no heading will be displayed at all."
116
- msgstr ""
117
- "Il vous permet d'afficher un titre au-dessus de la liste des messages les "
118
- "plus populaires. Si le champ est laiss&eacute; vide, aucun titre ne sera "
119
- "affich&eacute;. "
120
-
121
- #: admin.php:326
122
- msgid "What is Time Range for?"
123
- msgstr "Qu'est-ce que la Plage de temps ?"
124
 
125
- #: admin.php:328
126
- msgid ""
127
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
128
- "comments within the selected time range."
129
- msgstr ""
130
- "Wordpress Popular Posts r&eacute;cup&egrave;re les posts les plus vus/"
131
- "comment&eacute;s durant l'intervelle de temps s&eacute;lectionn&eacute;."
132
 
133
- #: admin.php:331
134
- msgid "What is \"Sort post by\" for?"
135
- msgstr "Que fait \"Trier les posts par\" ?"
136
 
137
- #: admin.php:333
138
  msgid ""
139
- "It allows you to decide whether to order your popular posts listing by total "
140
- "views, comments, or average views per day."
141
  msgstr ""
142
- "Cela vous permet de d&eacute;cider si vous voulez ordonner votre liste de "
143
- "posts populaires par nombre de vues total, par nombre de commentaires, ou "
144
- "par nombre de vues moyennes par jour."
145
-
146
- #: admin.php:336
147
- msgid "What does \"Display post rating\" do?"
148
- msgstr "Que fait \"Afficher la note du post\" ?"
149
 
150
- #: admin.php:338
151
- msgid ""
152
- "If checked, Wordpress Popular Posts will show how your readers are rating "
153
- "your most popular posts. This feature requires having WP-PostRatings plugin "
154
- "installed and enabled on your blog for it to work."
155
- msgstr ""
156
- "Si c'est coch&eacute;e,Wordpress Popular Posts affichera la liste des posts "
157
- "les mieux not&eacute;s par vos lecteurs. Cette fonction n&eacute;cessite "
158
- "d'avoir le plugin WP-PostRatings install&eacute; et activ&eacute; sur votre "
159
- "blog pour que cela fonctionne."
160
 
161
- #: admin.php:341
162
- msgid "What does \"Shorten title\" do?"
163
- msgstr "Que fait \"Raccourcir le titre\" ?"
164
 
165
- #: admin.php:343
166
- msgid ""
167
- "If checked, all posts titles will be shortened to \"n\" characters. A new "
168
- "\"Shorten title to\" option will appear so you can set it to whatever you "
169
- "like."
170
- msgstr ""
171
- "Si c'est coch&eacute;, les titres des posts sont raccourci &agrave; \"n\" "
172
- "caract&egrave;res. Une option \"Raccourcir le titre de\" appara&icirc;tra "
173
- "afin que vous puissiez le r&eacute;gler le nombre \"n\" de caract&egrave;res "
174
- "que vous voulez garder."
175
 
176
- #: admin.php:346
177
- msgid "What does \"Display post excerpt\" do?"
178
- msgstr "Que fait \"Afficher un extrait du post\" ?"
179
 
180
- #: admin.php:348
181
- msgid ""
182
- "If checked, Wordpress Popular Posts will also include a small extract of "
183
- "your posts in the list. Similarly to the previous option, you will be able "
184
- "to decide how long the post excerpt should be."
185
  msgstr ""
186
- "Si c'est coch&eacute;, Wordpress Popular Post permet d'inclure un petit "
187
- "extrait de vos posts dans la liste. Comme la pr&eacute;c&eacute;dente "
188
- "option, une option appara&icirc;tra pour que vous choisissiez la longueur de "
189
- "l'extrait &agrave; afficher."
190
-
191
- #: admin.php:351
192
- msgid "What does \"Keep text format and links\" do?"
193
- msgstr "Que fait \"Garder le formatage du texte et les liens\" ?"
194
 
195
- #: admin.php:353
196
- msgid ""
197
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
198
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
199
- "the excerpt. Hyperlinks will remain intact, too."
200
- msgstr ""
201
- "Si c'est coch&eacute; et que la fonction \"extrait du post\" est "
202
- "activ&eacute;, Wordpress Popular Posts garde les balises de formatage (ex : "
203
- "gras, italique, etc.) qui se trouvent dans l'extrait. Les liens hypertexte "
204
- "sont aussi affich&eacute;s &agrave; l'identique."
205
 
206
- #: admin.php:356
207
- msgid "What is \"Post type\" for?"
208
- msgstr "Que fait \"Type de posts\" ?"
209
 
210
- #: admin.php:358
211
- msgid ""
212
- "This filter allows you to decide which post types to show on the listing. By "
213
- "default, it will retrieve only posts and pages (which should be fine for "
214
- "most cases)."
215
- msgstr ""
216
- "Ce filtre vous permet de choisir quels types de posts doivent &ecirc;tre "
217
- "afficher ; par d&eacute;faut, il permet de r&eacute;cup&eacute;rer les "
218
- "articles et les pages (ce qui est suffisant dans la plupart des cas)"
219
 
220
- #: admin.php:361
221
- msgid "What is \"Category(ies) ID(s)\" for?"
222
- msgstr "Que fait \"Cat&eacute;gories ID\" ?"
223
 
224
- #: admin.php:363
225
- msgid ""
226
- "This filter allows you to select which categories should be included or "
227
- "excluded from the listing. A negative sign in front of the category ID "
228
- "number will exclude posts belonging to it from the list, for example. You "
229
- "can specify more than one ID with a comma separated list."
230
- msgstr ""
231
- "Ce filtre vous permet de s&eacute;lectionner quelles cat&eacute;gories "
232
- "doivent &ecirc;tre inclus ou exclus de la liste. Un signe n&eacute;gatif "
233
- "devant le num&eacute;ro de cat&eacute;gories ID permet exclure les posts de "
234
- "cette cat&eacute;gorie de la liste. Vous pouvez sp&eacute;cifier plusieurs "
235
- "ID d'une liste s&eacute;par&eacute;e par des virgules."
236
 
237
- #: admin.php:366
238
- msgid "What is \"Author(s) ID(s)\" for?"
239
- msgstr "Que fait \"Auteur ID\" ?"
240
 
241
- #: admin.php:368
242
- msgid ""
243
- "Just like the Category filter, this one lets you filter posts by author ID. "
244
- "You can specify more than one ID with a comma separated list."
245
- msgstr ""
246
- "Fait exactement comme le filtre Cat&eacute;gorie, celui-ci vous permet de "
247
- "filtrer les messages par auteur ID. Vous pouvez sp&eacute;cifier plusieurs "
248
- "ID s&eacute;par&eacute; par des virgules."
249
 
250
- #: admin.php:371
251
- msgid "What does \"Display post thumbnail\" do?"
252
- msgstr "Que fait \"Afficher les vignettes des posts\" ?"
253
 
254
- #: admin.php:373
255
- msgid ""
256
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
257
- "of each post. You can set up the source of the thumbnail via Settings - "
258
- "Wordpress Popular Posts - Tools."
259
- msgstr ""
260
- "Si c'est coch&eacute;, Wordpress Popular Posts tentera de r&eacute;"
261
- "cup&eacute;rer la vignette de chaque post. Vous pouvez configurer la source "
262
- "de la vignette via Param&egrave;tres - Wordpress Popular Posts - Outils."
263
 
264
- #: admin.php:376
265
- msgid "What does \"Display comment count\" do?"
266
- msgstr "Que fait \"Affichage du nombre de commentaires\" ?"
267
 
268
- #: admin.php:378
269
- msgid ""
270
- "If checked, Wordpress Popular Posts will display how many comments each "
271
- "popular post has got in the selected Time Range."
272
- msgstr ""
273
- "Si c'est coch&eacute;, Wordpress Popular Posts affiche le nombre de "
274
- "commentaires que chaque post a eu durant la plage de temps s&eacute;"
275
- "lectionn&eacute;e."
276
 
277
- #: admin.php:381
278
- msgid "What does \"Display views\" do?"
279
- msgstr "Que fait \"Affichage des vues\" ?"
280
 
281
- #: admin.php:383
 
282
  msgid ""
283
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
284
- "post has gotten in the selected Time Range."
285
  msgstr ""
286
- "Si c'est coch&eacute;, Wordpress Popular Posts affichera le nombre de fois "
287
- "o&ugrave; le post a &eacute;t&eacute; vu durant la plage de temps s&eacute;"
288
- "lectionn&eacute;e."
289
 
290
- #: admin.php:386
291
- msgid "What does \"Display author\" do?"
292
- msgstr "Que fait \"Affichage de l'auteur\" ?"
293
 
294
- #: admin.php:388
295
- msgid ""
296
- "If checked, Wordpress Popular Posts will display the name of the author of "
297
- "each entry listed."
298
- msgstr ""
299
- "Si c'est coch&eacute;, Wordpress Popular Posts affichera le nom de l'auteur "
300
- "des posts."
301
 
302
- #: admin.php:391
303
- msgid "What does \"Display date\" do?"
304
- msgstr "Que fait \"Affichage de la date\" ?"
305
 
306
- #: admin.php:393
307
  msgid ""
308
- "If checked, Wordpress Popular Posts will display the date when each popular "
309
- "posts was published."
 
310
  msgstr ""
311
- "Si c'est s&eacute;lectionn&eacute;, Wordpress Popular Posts affichera la "
312
- "date de publication des posts."
313
-
314
- #: admin.php:396
315
- msgid "What does \"Use custom HTML Markup\" do?"
316
- msgstr "Que fait \"Formatage HTML de l'affichage\" ?"
317
 
318
- #: admin.php:398
319
- msgid ""
320
- "If checked, you will be able to customize the HTML markup of your popular "
321
- "posts listing. For example, you can decide whether to wrap your posts in an "
322
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
323
- "for you!"
324
- msgstr ""
325
- "Si c'est s&eacute;lectionn&eacute;, cela vous permet de personnaliser le "
326
- "formatage HTML de l'affichage de la liste des posts. Par exemple vous pouvez "
327
- "d&eacute;cider d'afficher les posts en utilisant une liste, un div, etc. Si "
328
- "vous connaissez xHTML/CSS, ceci est pour vous !"
329
 
330
- #: admin.php:401
331
- msgid "What does \"Use content formatting tags\" do?"
332
- msgstr "Que fait \"Utiliser les balises de formatage de contenu\" ?"
333
 
334
- #: admin.php:403
335
- msgid ""
336
- "If checked, you can decide the order of the items displayed on each entry. "
337
- "For example, setting it to \"{title}: {summary}\" (without the quotes) would "
338
- "display \"Post title: excerpt of the post here\". Available tags: {image}, "
339
- "{title}, {summary}, {stats} and {rating}."
340
- msgstr ""
341
- "Si c'est s&eacute;lectionn&eacute;, vous pouvez d&eacute;cider la façon dont "
342
- "les &eacute;l&eacute;ments sont affich&eacute;s pour chaque post. Par "
343
- "exemple, si vous mettez \"{title} : {summary} \" (sans les guillemets), "
344
- "cela va afficher \"Titre du post : extrait du post \". Les balises "
345
- "disponibles sont : {image}, {title}, {summary}, {stats} et {rating}."
346
 
347
- #: admin.php:406
348
- msgid "What are \"Template Tags\"?"
349
- msgstr "Qu'est-ce que les \"Marqueurs de Modele\" ?"
350
 
351
- #: admin.php:408
352
- msgid ""
353
- "Template Tags are simply php functions that allow you to perform certain "
354
- "actions. For example, Wordpress Popular Posts currently supports two "
355
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
356
- msgstr ""
357
- "Les marqueurs de mod&egrave;le sont simplement des fonctions php qui "
358
- "permettent de r&eacute;aliser certaines actions. Par exemple, Wordpress "
359
- "Popular Posts g&egrave;re deux marqueurs de mod&egrave;le diff&eacute;"
360
- "rents : wpp_get_mostpopular() et wpp_get_views()."
361
 
362
- #: admin.php:411
363
- msgid "What are the template tags that Wordpress Popular Posts supports?"
364
- msgstr ""
365
- "Quels sont les marqueurs de mod&egrave;le que Wordpresse Popular Posts "
366
- "supporte ?"
367
 
368
- #: admin.php:413
369
- msgid ""
370
- "The following are the template tags supported by Wordpress Popular Posts"
371
- msgstr ""
372
- "Ci-dessous les param&egrave;tres que le marqueur de mod&egrave;le Wordpress "
373
- "Popular Posts accepte"
374
 
375
- #: admin.php:417
376
- msgid "Template tag"
377
- msgstr "Marqueur de mod&egrave;le"
378
 
379
- #: admin.php:418 admin.php:451
380
- msgid "What it does "
381
- msgstr "Qu'est-ce que ça fait ?"
382
 
383
- #: admin.php:419
384
- msgid "Parameters"
385
- msgstr "Param&egrave;tres"
386
 
387
- #: admin.php:420 admin.php:454
388
- msgid "Example"
389
- msgstr "Exemple"
390
 
391
- #: admin.php:426
392
- msgid ""
393
- "Similar to the widget functionality, this tag retrieves the most popular "
394
- "posts on your blog. This function also accepts parameters so you can "
395
- "customize your popular listing, but these are not required."
396
- msgstr ""
397
- "Fonctionnalit&eacute;s similaire au widget Wordpress Popular Posts, cette "
398
- "balise r&eacute;cup&egrave;re les posts les plus populaires sur votre blog. "
399
- "Cette fonction accepte &eacute;galement les param&egrave;tres pour "
400
- "personnaliser la liste des posts les plus populaires, mais ceux-ci ne sont "
401
- "pas indispensables."
402
 
403
- #: admin.php:427
404
  msgid ""
405
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
406
- "the [wpp] shortcode\"."
 
 
407
  msgstr ""
408
- "Veuillez consulter la \"Liste des param&egrave;tres accept&eacute;s par "
409
- "wpp_get_mostpopular() et le shortcode [wpp]\""
 
 
 
410
 
411
- #: admin.php:432
 
412
  msgid ""
413
- "Displays the number of views of a single post. Post ID is required or it "
414
- "will return false."
 
 
 
415
  msgstr ""
416
- "Affiche le nombre de vues d'un seul poste. Le post ID est n&eacute;cessaire "
417
- "sinon la fonction retourne false."
418
-
419
- #: admin.php:433
420
- msgid "Post ID"
421
- msgstr "Post ID"
422
 
423
- #: admin.php:440
424
- msgid "What are \"shortcodes\"?"
425
- msgstr "Qu'est-ce que \"shortcodes\" ?"
426
 
427
- #: admin.php:442
428
- msgid ""
429
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
430
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
431
- "shortcode [wpp] will let you insert a list of the most popular posts in "
432
- "posts content and pages too! For more information about shortcodes, please "
433
- "visit"
434
  msgstr ""
435
- "Les shortcodes sont similaires aux BB Codes, cela permet d'appeler une "
436
- "fonction php en tapant simplement quelque chose comme [shortcode]. Avec "
437
- "Wordpress Popular Posts, le shortcode [wpp] permet d'ins&eacute;rer une "
438
- "liste des posts les plus populaires dans les messages et les pages de "
439
- "contenu aussi ! Pour plus d'informations sur les shortcodes, veuillez visiter"
440
 
441
- #: admin.php:444
442
- msgid ""
443
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
 
 
 
444
  msgstr ""
445
- "Liste des param&egrave;tres accept&eacute;s par wpp_get_mostpopular() et le "
446
- "shortcode [wpp]"
447
 
448
- #: admin.php:446
 
449
  msgid ""
450
- "These parameters can be used by both the template tag wpp_get_most_popular() "
451
- "and the shortcode [wpp]."
 
452
  msgstr ""
453
- "Ces param&egrave;tres peuvent &ecirc;tre utilis&eacute;s aussi bien par le "
454
- "marqueur de mod&egrave;le wpp_get_most_popular() que par le shortcode [wpp]."
455
 
456
- #: admin.php:450
457
  msgid "Parameter"
458
  msgstr "Param&egrave;tres"
459
 
460
- #: admin.php:452
 
 
 
 
461
  msgid "Possible values"
462
  msgstr "Valeurs possibles"
463
 
464
- #: admin.php:453
465
  msgid "Defaults to"
466
  msgstr "Par d&eacute;faut"
467
 
468
- #: admin.php:460
 
 
 
 
469
  msgid "Sets a heading for the list"
470
  msgstr "Met un ent&ecirc;te &agrave; la liste"
471
 
472
- #: admin.php:461 admin.php:468 admin.php:475 admin.php:503 admin.php:510
473
- #: admin.php:517 admin.php:594 admin.php:601 admin.php:608 admin.php:615
474
- #: admin.php:622
 
475
  msgid "Text string"
476
  msgstr "Texte"
477
 
478
- #: admin.php:462 wordpress-popular-posts.php:250
479
  msgid "Popular Posts"
480
  msgstr "Popular Posts"
481
 
482
- #: admin.php:467
483
  msgid "Set the opening tag for the heading of the list"
484
- msgstr "D&eacute;finit la balise d'ouverture de l'en-t&ecirc;te de la liste"
 
 
485
 
486
- #: admin.php:474
487
  msgid "Set the closing tag for the heading of the list"
488
- msgstr "D&eacute;finit la balise de fermeture de l'en-t&ecirc;te de la liste"
 
489
 
490
- #: admin.php:481
491
  msgid "Sets the maximum number of popular posts to be shown on the listing"
492
  msgstr ""
493
  "D&eacute;finit le nombre maximum de posts populaires que doit afficher la "
494
  "liste"
495
 
496
- #: admin.php:482 admin.php:524 admin.php:531 admin.php:545 admin.php:552
 
497
  msgid "Positive integer"
498
  msgstr "Entier positif"
499
 
500
- #: admin.php:488
501
  msgid ""
502
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
503
  "the time range specified by you"
504
  msgstr ""
505
  "Permet &agrave; Wordpress Popular Posts de r&eacute;cup&eacute;rer les posts "
 
 
 
 
 
 
 
 
 
 
506
  "les plus populaires dans l'intervalle de temps que vous avez sp&eacute;"
507
  "cifi&eacute;"
508
 
509
- #: admin.php:495
510
  msgid "Sets the sorting option of the popular posts"
511
  msgstr "D&eacute;finit les options de tri des posts les plus populaires"
512
 
513
- #: admin.php:496
514
  msgid "(for average views per day)"
515
  msgstr "(Pour le nb de vues moyenne par jour)"
516
 
517
- #: admin.php:502
518
  msgid "Defines the type of posts to show on the listing"
519
  msgstr "D&eacute;finit le type de messages &agrave; afficher sur la liste"
520
 
521
- #: admin.php:509
 
 
 
 
 
 
 
 
 
 
 
 
 
522
  msgid ""
523
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
524
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
@@ -526,46 +453,60 @@ msgid ""
526
  msgstr ""
527
  "Ce param&egrave;tre vous permet de r&eacute;cuperer les posts les plus "
528
  "populaires appartenant aux cat&eacute;gories sp&eacute;cifi&eacute;e "
529
- "(&agrave; l'aide des Categories ID). En utilisant le signe - devant l'ID, "
530
- "les cat&eacute;gories seront exclus."
531
 
532
- #: admin.php:511 admin.php:518
533
- msgid "None"
534
- msgstr "Non"
535
-
536
- #: admin.php:516
537
  msgid ""
538
  "If set, Wordpress Popular Posts will retrieve all entries created by "
539
  "specified author(s) ID(s)."
540
  msgstr ""
541
  "Cet attribut vous permet de s&eacute;lectionner les posts les plus "
542
- "populaires ayant ce num&eacute;ro d'auteur ID."
543
 
544
- #: admin.php:523
545
  msgid ""
546
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
547
  "characters whenever possible"
548
  msgstr ""
549
  "Vous pouvez raccourcir les titres des posts &agrave; \"n\" caract&egrave;"
 
 
 
 
 
 
 
 
 
550
  "res, si c'est n&eacute;cessaire"
551
 
552
- #: admin.php:530
553
  msgid ""
554
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
555
  "characters long from the content of each post listed as popular"
556
  msgstr ""
557
- "Cet attribut permet de définir la longueur de \"n\" caract&egrave;res de "
558
- "l'extrait des posts les plus populaires"
559
 
560
- #: admin.php:537
561
  msgid ""
562
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
563
  "italic, etc) and hyperlinks found in the excerpt"
564
  msgstr ""
565
- "Cet attribut permet l'affichage des balises de style (gras, italique, etc.) "
566
- "ainsi que des liens trouv&eacute;s dans l'extrait"
567
 
568
- #: admin.php:544
 
 
 
 
 
 
 
 
 
569
  msgid ""
570
  "If set, and if your current server configuration allows it, you will be able "
571
  "to display thumbnails of your posts. This attribute sets the width for "
@@ -574,7 +515,7 @@ msgstr ""
574
  "Si la configuration de votre serveur le permet, cet attribut d&eacute;finit "
575
  "la largeur des vignettes"
576
 
577
- #: admin.php:551
578
  msgid ""
579
  "If set, and if your current server configuration allows it, you will be able "
580
  "to display thumbnails of your posts. This attribute sets the height for "
@@ -583,7 +524,7 @@ msgstr ""
583
  "Si la configuration de votre serveur le permet, cet attribut d&eacute;finit "
584
  "la hauteur des vignettes"
585
 
586
- #: admin.php:558
587
  msgid ""
588
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
589
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
@@ -593,209 +534,468 @@ msgstr ""
593
  "blog, cette option vous permet d'afficher les notes que vos visiteurs ont "
594
  "donn&eacute;es &agrave; vos posts"
595
 
596
- #: admin.php:565
597
  msgid ""
598
  "If set, Wordpress Popular Posts will show how many comments each popular "
599
  "post has got until now"
600
  msgstr "Affiche le nombre de commentaires pour chaque post de la liste"
601
 
602
- #: admin.php:572
603
  msgid ""
604
  "If set, Wordpress Popular Posts will show how many views each popular post "
605
  "has got since it was installed"
606
  msgstr ""
607
  "Affiche le nombre de vues pour chaque post de la liste depuis que le plugin "
608
- "est install&eacute;"
609
 
610
- #: admin.php:579
611
  msgid ""
612
  "If set, Wordpress Popular Posts will show who published each popular post on "
613
  "the list"
614
- msgstr "Permet l'affichage de l'auteur de chaque post de la liste"
615
 
616
- #: admin.php:586
617
  msgid ""
618
  "If set, Wordpress Popular Posts will display the date when each popular post "
619
  "on the list was published"
620
  msgstr ""
621
- "Permet l'affichage de la date de publication pour chaque post de la liste"
 
622
 
623
- #: admin.php:593
624
  msgid "Sets the date format"
625
  msgstr "D&eacute;finit le format de la date"
626
 
627
- #: admin.php:600
628
- msgid "Sets the opening tag for the listing"
629
- msgstr "D&eacute;finit la balise de d&eacute;but de liste"
 
 
 
 
 
 
 
630
 
631
- #: admin.php:607
632
  msgid "Sets the closing tag for the listing"
633
  msgstr "D&eacute;finit la balise de fin de liste"
634
 
635
- #: admin.php:614
636
- msgid "Sets the opening tag for each item on the list"
 
 
 
 
 
 
 
 
 
 
 
 
637
  msgstr ""
638
- "D&eacute;finit la balise d'ouverture pour chaque &eacute;l&eacute;ment de la "
639
- "liste"
640
 
641
- #: admin.php:621
642
- msgid "Sets the closing tag for each item on the list"
643
  msgstr ""
644
- "D&eacute;finit la balise de fermeture pour chaque &eacute;l&eacute;ment de "
645
- "la liste"
646
 
647
- #: admin.php:628
648
  msgid ""
649
- "If set, this option will allow you to decide the order of the contents "
650
- "within each item on the list."
 
 
 
651
  msgstr ""
652
- "Cette option vous permet de d'activer le choix de l'ordre du contenu dans "
653
- "chaque &eacute;l&eacute;ment de la liste."
654
 
655
- #: admin.php:635
656
  msgid ""
657
- "If set, you can decide the order of each content inside a single item on the "
658
- "list. For example, setting it to \"{title}: {summary}\" would output "
659
- "something like \"Your Post Title: summary here\". This attribute requires "
660
- "do_pattern to be true."
661
- msgstr ""
662
- "Permet de choisir l'ordre des &eacute;l&eacute;ments &agrave; afficher pour "
663
- "chaque post de la liste. Par exemple, mettre \"{title} : {summary} \" "
664
- "affichera quelque chose comme \"Titre de votre message : r&eacute;"
665
- "sum&eacute; \". Cette fonctionnalit&eacute; est active si le param&egrave;"
666
- "tre pr&eacute;c&eacute;dent do_pattern=1."
667
-
668
- #: admin.php:636
669
- msgid "Available tags"
670
- msgstr "Balises disponibles"
671
-
672
- #: admin.php:651
673
  msgid ""
674
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
 
675
  msgstr ""
676
- "Vous trouverez ici des options pour personnaliser Wordpress Popular Posts."
677
 
678
- #: admin.php:653
679
- msgid "Thumbnail source"
680
- msgstr "Source des vignettes"
681
 
682
- #: admin.php:654
683
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
684
  msgstr ""
685
- "Indiquer o&ugrave; Wordpress Popular Posts doit aller prendre les vignettes "
686
- "de"
687
 
688
- #: admin.php:659
689
- msgid "Featured image"
690
- msgstr "Choix de l'image"
691
 
692
- #: admin.php:660
693
- msgid "First image on post"
694
- msgstr "Premi&egrave;re image du post"
695
 
696
- #: admin.php:661
697
- msgid "Custom field"
698
- msgstr "Champ personalis&eacute;"
699
 
700
- #: admin.php:664
701
- msgid "Custom field name"
702
- msgstr "Nom du champ personalis&eacute;"
703
 
704
- #: admin.php:673
705
- msgid "Wordpress Popular Posts Stylesheet"
706
- msgstr "Feuille de style pour Wordpress Popular Posts"
707
 
708
- #: admin.php:674
709
  msgid ""
710
- "By default, the plugin includes a stylesheet called wpp.css which you can "
711
- "use to style your popular posts listing. If you wish to use your own "
712
- "stylesheet or do not want it to have it included in the header section of "
713
- "your site, use this."
714
  msgstr ""
715
- "Par d&eacute;faut, le plugin comprend une feuille de style appel&eacute;e "
716
- "wpp.css que vous pouvez utiliser pour mettre en forme la liste des messages "
717
- "populaires. Si vous souhaitez utiliser votre propre feuille de style ou ne "
718
- "voulez pas de l'inclure dans la section d'en-t&ecirc;te de votre site, "
719
- "utilisez ceci."
720
 
721
- #: admin.php:679 admin.php:696
722
- msgid "Enabled"
723
- msgstr "Activ&eacute;"
724
 
725
- #: admin.php:680 admin.php:697
726
- msgid "Disabled"
727
- msgstr "D&eacute;sactiv&eacute;"
 
 
 
 
728
 
729
- #: admin.php:689
730
- msgid "Data tools"
731
- msgstr "Gestion des donn&eacute;es"
732
 
733
- #: admin.php:691
734
  msgid ""
735
- "AJAX update. If you are using a caching plugin such as WP Super Cache, "
736
- "enabling this feature will keep the popular list from being cached."
737
  msgstr ""
738
- "Mise &agrave; jour AJAX. Si vous utilisez un plugin de mise en cache comme "
739
- "WP Super Cache, l'activation de cette fonction permet d'avoir la liste des "
740
- "posts les plus populaire malgr&eacute; la mise en cache."
741
 
742
- #: admin.php:706
 
 
 
 
743
  msgid ""
744
- "Wordpress Popular Posts keeps historical data of your most popular entries "
745
- "for up to 30 days. If for some reason you need to clear the cache table, or "
746
- "even both historical and cache tables, please use the buttons below to do so."
747
  msgstr ""
748
- "Wordpress Popular Posts conserve les donn&eacute;es historiques de vos posts "
749
- "les plus populaires pour un maximum de 30 jours. Si, pour une raison "
750
- "quelconque, vous devez effacer la table du cache, ou m&ecirc;me les deux "
751
- "tables d'historiques et de cache, veuillez utiliser les boutons ci-dessous "
752
- "pour le faire."
753
 
754
- #: admin.php:707
755
- msgid "Empty cache"
756
- msgstr "Vider le cache"
757
 
758
- #: admin.php:707
759
- msgid "Use this button to manually clear entries from WPP cache only"
 
 
 
 
760
  msgstr ""
761
- "Utiliser ce bouton pour effacer manuellement les donn&eacute;es en caches de "
762
- "WPP"
 
 
763
 
764
- #: admin.php:708
765
- msgid "Clear all data"
766
- msgstr "Effacer toutes les donn&eacute;es"
767
 
768
- #: admin.php:708
769
- msgid "Use this button to manually clear entries from all WPP data tables"
 
 
 
770
  msgstr ""
771
- "Utiliser ce bouton pour effacer manuellement les donn&eacute;es de toutes "
772
- "les tables de donn&eacute;es WPP"
 
 
773
 
774
- #: admin.php:714
775
- msgid "Do you like this plugin?"
776
- msgstr "Aimez-vous ce plugin ?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
777
 
778
- #: admin.php:714
779
- msgid "Rate Wordpress Popular Posts!"
780
- msgstr "Noter Wordpress Popular Posts !"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
781
 
782
- #: admin.php:714
783
- msgid "Rate it"
784
- msgstr "Notez le"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
785
 
786
- #: admin.php:714
787
- msgid "on the official Plugin Directory!"
788
- msgstr "sur le site officiel des plugins !"
 
789
 
790
- #: admin.php:715
791
- msgid "Do you love this plugin?"
792
- msgstr "Si vous appreciez-vous ce plugin, "
793
 
794
- #: admin.php:715 admin.php:716
795
- msgid "Buy me a beer!"
796
- msgstr "payez moi une bi&egrave;re !"
797
 
798
- #: admin.php:715
799
  msgid ""
800
  "Each donation motivates me to keep releasing free stuff for the Wordpress "
801
  "community!"
@@ -803,241 +1003,409 @@ msgstr ""
803
  "Chaque don me motive pour maintenir la gratuit&eacute; des d&eacute;"
804
  "veloppements pour la communaut&eacute; Wordpress"
805
 
806
- #: wordpress-popular-posts.php:47
807
- msgid "The most Popular Posts on your blog."
808
- msgstr "Les posts les plus populaires sur votre blog."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
809
 
810
- #: wordpress-popular-posts.php:301
811
- msgid "Title:"
812
- msgstr "Titre :"
813
-
814
- #: wordpress-popular-posts.php:301 wordpress-popular-posts.php:303
815
- #: wordpress-popular-posts.php:305 wordpress-popular-posts.php:313
816
- #: wordpress-popular-posts.php:324 wordpress-popular-posts.php:326
817
- #: wordpress-popular-posts.php:330 wordpress-popular-posts.php:334
818
- #: wordpress-popular-posts.php:343 wordpress-popular-posts.php:355
819
- #: wordpress-popular-posts.php:367 wordpress-popular-posts.php:368
820
- #: wordpress-popular-posts.php:369 wordpress-popular-posts.php:370
821
- #: wordpress-popular-posts.php:385 wordpress-popular-posts.php:396
822
  msgid "What is this?"
823
- msgstr "Qu'est-ce que c'est ?"
824
 
825
- #: wordpress-popular-posts.php:303
826
- msgid "Show up to:"
827
- msgstr "Pr&eacute;sentez-vous :"
828
 
829
- #: wordpress-popular-posts.php:304
830
  msgid "posts"
831
  msgstr "posts"
832
 
833
- #: wordpress-popular-posts.php:305
834
- msgid "Time Range:"
835
- msgstr "Plage de temps :"
836
 
837
- #: wordpress-popular-posts.php:313
838
- msgid "Sort posts by:"
839
- msgstr "Trier les posts par :"
840
-
841
- #: wordpress-popular-posts.php:315
842
  msgid "Comments"
843
  msgstr "Commentaires"
844
 
845
- #: wordpress-popular-posts.php:316
846
  msgid "Total views"
847
  msgstr "Nombre de vues"
848
 
849
- #: wordpress-popular-posts.php:317
850
  msgid "Avg. daily views"
851
  msgstr "Moy. vues par jour"
852
 
853
- #: wordpress-popular-posts.php:322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
854
  msgid "Posts settings"
855
  msgstr "R&eacute;glage des posts"
856
 
857
- #: wordpress-popular-posts.php:324
858
  msgid "Display post rating"
859
  msgstr "Afficher la note du post"
860
 
861
- #: wordpress-popular-posts.php:326
862
  msgid "Shorten title"
863
  msgstr "Raccourcir le titre"
864
 
865
- #: wordpress-popular-posts.php:328
866
  msgid "Shorten title to"
867
  msgstr "Raccourcir le titre de"
868
 
869
- #: wordpress-popular-posts.php:328 wordpress-popular-posts.php:335
870
  msgid "characters"
871
  msgstr "caract."
872
 
873
- #: wordpress-popular-posts.php:330
 
 
 
 
874
  msgid "Display post excerpt"
875
  msgstr "Afficher un extrait du post"
876
 
877
- #: wordpress-popular-posts.php:333
878
- msgid "Excerpt Properties"
879
- msgstr "Propri&eacute;t&eacute; de l'extrait"
880
-
881
- #: wordpress-popular-posts.php:334
882
  msgid "Keep text format and links"
883
  msgstr "Garder le formatage du texte et les liens"
884
 
885
- #: wordpress-popular-posts.php:335
886
- msgid "Excerpt length:"
887
- msgstr "Longueur de l'extrait :"
888
-
889
- #: wordpress-popular-posts.php:343
890
- msgid "Filters:"
891
- msgstr "Filtres :"
892
 
893
- #: wordpress-popular-posts.php:344
894
- msgid "Post type(s):"
895
- msgstr "Type de posts"
896
-
897
- #: wordpress-popular-posts.php:346
898
- msgid "Category(ies) ID(s):"
899
- msgstr "Cat&eacute;gories ID :"
900
-
901
- #: wordpress-popular-posts.php:348
902
- msgid "Author(s) ID(s):"
903
- msgstr "Auteurs ID :"
904
-
905
- #: wordpress-popular-posts.php:354
906
- msgid "Thumbnail settings"
907
- msgstr "R&eacute;glages des vignettes"
908
-
909
- #: wordpress-popular-posts.php:355
910
  msgid "Display post thumbnail"
911
  msgstr "Afficher les vignettes des posts"
912
 
913
- #: wordpress-popular-posts.php:357
914
- msgid "Width:"
915
- msgstr "Largeur :"
916
 
917
- #: wordpress-popular-posts.php:358 wordpress-popular-posts.php:360
918
  msgid "px"
919
  msgstr "px"
920
 
921
- #: wordpress-popular-posts.php:359
922
- msgid "Height:"
923
- msgstr "Hauteur :"
924
 
925
- #: wordpress-popular-posts.php:366
926
  msgid "Stats Tag settings"
927
- msgstr "Options d'affichage"
928
 
929
- #: wordpress-popular-posts.php:367
930
  msgid "Display comment count"
931
  msgstr "Affichage du nombre de commentaires"
932
 
933
- #: wordpress-popular-posts.php:368
934
  msgid "Display views"
935
  msgstr "Affichage le nb de vues"
936
 
937
- #: wordpress-popular-posts.php:369
938
  msgid "Display author"
939
- msgstr "Affichage de l'auteur"
940
 
941
- #: wordpress-popular-posts.php:370
942
  msgid "Display date"
943
  msgstr "Affichage de la date"
944
 
945
- #: wordpress-popular-posts.php:373
946
  msgid "Date Format"
947
  msgstr "Format de la date"
948
 
949
- #: wordpress-popular-posts.php:384
 
 
 
 
 
 
 
 
950
  msgid "HTML Markup settings"
951
- msgstr "Formatage HTML de l'affichage"
952
 
953
- #: wordpress-popular-posts.php:385
954
  msgid "Use custom HTML Markup"
955
  msgstr "Utiliser du code HTML"
956
 
957
- #: wordpress-popular-posts.php:388
958
- msgid "Before / after title:"
959
- msgstr "Avant/Apr&egrave;s le titre :"
 
 
 
 
960
 
961
- #: wordpress-popular-posts.php:390
962
- msgid "Before / after Popular Posts:"
963
- msgstr "Avant/Apr&egrave;s Popular Posts :"
 
 
 
 
964
 
965
- #: wordpress-popular-posts.php:392
966
- msgid "Before / after each post:"
967
- msgstr "Avant/Apr&egrave;s chaque post :"
 
 
 
 
968
 
969
- #: wordpress-popular-posts.php:396
970
- msgid "Use content formatting tags"
971
- msgstr "Utiliser les balises de formatage de contenu."
972
 
973
- #: wordpress-popular-posts.php:399
974
- msgid "Content format:"
975
- msgstr "Format de contenu :"
 
 
 
 
 
 
 
 
976
 
977
- #: wordpress-popular-posts.php:505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
978
  msgid "Success! The cache table has been cleared!"
979
- msgstr "Ok ! La table de cache est bien effac&eacute;e !"
980
 
981
- #: wordpress-popular-posts.php:507
982
  msgid "Error: cache table does not exist."
983
- msgstr "Erreur : la table de cache n'existe pas."
984
 
985
- #: wordpress-popular-posts.php:513
986
  msgid "Success! All data have been cleared!"
987
- msgstr "Ok ! Toutes les donn&eacute;es ont &eacute;t&eacute; effac&eacute;es !"
988
 
989
- #: wordpress-popular-posts.php:515
990
  msgid "Error: one or both data tables are missing."
991
  msgstr "Erreur : une ou deux tables de donn&eacute;es sont manquantes. "
992
 
993
- #: wordpress-popular-posts.php:518
994
  msgid "Invalid action."
995
  msgstr "Action invalide"
996
 
997
- #: wordpress-popular-posts.php:521
998
  msgid ""
999
  "Sorry, you do not have enough permissions to do this. Please contact the "
1000
  "site administrator for support."
1001
  msgstr ""
1002
- "D&eacute;sol&eacute;, vous n'avez pas les autorisations suffisantes pour "
1003
- "faire cela. Contactez, s'il vous pla&icirc;t, l'administrateur du site pour "
1004
- "avoir de l'aide."
1005
 
1006
- #: wordpress-popular-posts.php:852
1007
  msgid "Sorry. No data so far."
1008
  msgstr "D&eacute;sol&eacute;. Aucune donn&eacute;e &agrave; ce jour."
1009
 
1010
- #: wordpress-popular-posts.php:928
1011
- msgid "comment(s)"
1012
- msgstr "commentaire(s)"
1013
-
1014
- #: wordpress-popular-posts.php:932
1015
- msgid "view(s)"
1016
- msgstr "vue(s)"
1017
-
1018
- #: wordpress-popular-posts.php:935
1019
- msgid "view(s) per day"
1020
- msgstr "vue(s) par jour"
1021
-
1022
- #: wordpress-popular-posts.php:943
1023
- msgid "by"
1024
- msgstr "par"
1025
-
1026
- #: wordpress-popular-posts.php:947
1027
- msgid "posted on"
1028
- msgstr "post&eacute; le"
1029
-
1030
- #: wordpress-popular-posts.php:1292
1031
- msgid ""
1032
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
1033
- "at least version 2.8 to function correctly. Please update your blog via "
1034
- "Tools &gt; Upgrade."
 
 
 
 
 
 
 
 
 
1035
  msgstr ""
1036
- "Votre version de Wordpress est trop vielle. Le plugin Wordpress Popular "
1037
- "Posts requiert une version > 2.8 pour fonctionner correctement. Veuillez "
1038
- "mettre &agrave; jour votre blog &agrave; l'aide de l'outil \"Mise &agrave; "
1039
- "jour\"."
1040
 
1041
- #: wordpress-popular-posts.php:1416
1042
- msgid "Wordpress Popular Posts Stats"
1043
- msgstr "Statistiques Wordpress Popular Posts"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-05-27 18:12-0430\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
8
+ "Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
9
+ "Language: fr_FR\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
 
13
  "X-Poedit-SourceCharset: iso-8859-1\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "X-Generator: Poedit 1.6.5\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SearchPath-1: ..\n"
20
 
21
+ #: ../views/admin.php:23 ../views/admin.php:32 ../views/admin.php:46
22
+ #: ../views/admin.php:67
23
  msgid "Settings saved."
24
+ msgstr "Param&egrave;tres enregistr&eacute;s."
25
 
26
+ #: ../views/admin.php:38
27
  msgid "Please provide the name of your custom field."
28
  msgstr "Veuillez indiquer le nom de votre champ personnalis&eacute;."
29
 
30
+ #: ../views/admin.php:84
31
  msgid ""
32
  "This operation will delete all entries from Wordpress Popular Posts' cache "
33
  "table and cannot be undone."
35
  "Cette op&eacute;ration va supprimer d&eacute;finitivement toutes les "
36
  "donn&eacute;es de la table de cache de Wordpress Popular Posts."
37
 
38
+ #: ../views/admin.php:84 ../views/admin.php:92
39
  msgid "Do you want to continue?"
40
+ msgstr "Voulez-vous continuer?"
41
 
42
+ #: ../views/admin.php:92
43
  msgid ""
44
  "This operation will delete all stored info from Wordpress Popular Posts' "
45
  "data tables and cannot be undone."
47
  "Cette op&eacute;ration va supprimer d&eacute;finitivement toutes les "
48
  "donn&eacute;es des tables de Wordpress Popular Posts."
49
 
50
+ #: ../views/admin.php:109
51
  msgid "Stats"
52
  msgstr "Statistiques"
53
 
54
+ #: ../views/admin.php:110
55
+ msgid "Tools"
56
+ msgstr "Outils"
57
+
58
+ #: ../views/admin.php:111 ../views/admin.php:662
59
+ msgid "Parameters"
60
+ msgstr "Param&egrave;tres"
61
+
62
+ #: ../views/admin.php:112
63
  msgid "FAQ"
64
  msgstr "FAQ"
65
 
66
+ #: ../views/admin.php:113
67
+ msgid "About"
68
+ msgstr "Sur"
69
 
70
+ #: ../views/admin.php:124
71
+ #, fuzzy
72
  msgid ""
73
+ "Click on each tab to see what are the most popular entries on your blog in "
74
+ "the last 24 hours, this week, last 30 days or all time since Wordpress "
75
+ "Popular Posts was installed."
76
  msgstr ""
77
  "Cliquer sur chaque onglet pour voir quelles sont les entr&eacute;es les plus "
78
  "populaires sur votre blog aujourd'hui, cette semaine, les 30 derniers jours "
79
  "ou depuis que Wordpress Popular Posts a &eacute;t&eacute; install&eacute;."
80
 
81
+ #: ../views/admin.php:130
82
  msgid "Order by comments"
83
  msgstr "Trier par commentaires"
84
 
85
+ #: ../views/admin.php:131
86
  msgid "Order by views"
87
  msgstr "Trier par vues"
88
 
89
+ #: ../views/admin.php:132
90
  msgid "Order by avg. daily views"
91
  msgstr "Trier par vues moyenne par jour"
92
 
93
+ #: ../views/admin.php:134
94
+ msgid "Post type"
95
+ msgstr "Post type"
96
+
97
+ #: ../views/admin.php:135
98
  msgid "Limit"
99
  msgstr "Limite"
100
 
101
+ #: ../views/admin.php:136 ../views/form.php:32
102
+ msgid "Display only posts published within the selected Time Range"
103
+ msgstr ""
104
+
105
+ #: ../views/admin.php:138 ../views/admin.php:215 ../views/admin.php:281
106
+ #: ../views/admin.php:318
107
  msgid "Apply"
108
  msgstr "Appliquer"
109
 
110
+ #: ../views/admin.php:144 ../views/form.php:26
111
  msgid "Last 24 hours"
112
  msgstr "Derni&egrave;res 24 heures"
113
 
114
+ #: ../views/admin.php:145 ../views/form.php:27
115
  msgid "Last 7 days"
116
  msgstr "7 derniers jours "
117
 
118
+ #: ../views/admin.php:146 ../views/form.php:28
119
  msgid "Last 30 days"
120
  msgstr "30 derniers jours "
121
 
122
+ #: ../views/admin.php:147 ../views/form.php:29
123
  msgid "All-time"
124
  msgstr "Depuis le d&eacute;but"
125
 
126
+ #: ../views/admin.php:169
127
+ msgid "Thumbnails"
128
+ msgstr "Vignettes"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130
+ #: ../views/admin.php:174
131
+ msgid "Default thumbnail"
132
+ msgstr "Par d&eacute;faut vignettes"
 
 
 
 
133
 
134
+ #: ../views/admin.php:179
135
+ msgid "Upload thumbnail"
136
+ msgstr "T&eacute;l&eacute;chargez la vignette"
137
 
138
+ #: ../views/admin.php:182
139
  msgid ""
140
+ "How-to: upload (or select) an image, set Size to Full and click on Upload. "
141
+ "After it's done, hit on Apply to save changes"
142
  msgstr ""
 
 
 
 
 
 
 
143
 
144
+ #: ../views/admin.php:186
145
+ msgid "Pick image from"
146
+ msgstr "Choisissez l&#8217;image de"
 
 
 
 
 
 
 
147
 
148
+ #: ../views/admin.php:189
149
+ msgid "Featured image"
150
+ msgstr "Choix de l#8217;image"
151
 
152
+ #: ../views/admin.php:190
153
+ msgid "First image on post"
154
+ msgstr "Premi&egrave;re image du post"
 
 
 
 
 
 
 
155
 
156
+ #: ../views/admin.php:191
157
+ msgid "Custom field"
158
+ msgstr "Champ personalis&eacute;"
159
 
160
+ #: ../views/admin.php:194
161
+ msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
 
 
 
162
  msgstr ""
163
+ "Indiquer o&ugrave; Wordpress Popular Posts doit aller prendre les vignettes "
164
+ "de"
 
 
 
 
 
 
165
 
166
+ #: ../views/admin.php:198
167
+ msgid "Custom field name"
168
+ msgstr "Nom du champ personalis&eacute;"
 
 
 
 
 
 
 
169
 
170
+ #: ../views/admin.php:204
171
+ msgid "Resize image from Custom field?"
172
+ msgstr "Redimensionner l&#8217;image de Custom field?"
173
 
174
+ #: ../views/admin.php:207
175
+ msgid "No, I will upload my own thumbnail"
176
+ msgstr "Non, Je vais t&eacute;l&eacute;charger ma propre vignette"
 
 
 
 
 
 
177
 
178
+ #: ../views/admin.php:208
179
+ msgid "Yes"
180
+ msgstr "Oui"
181
 
182
+ #: ../views/admin.php:224
183
+ msgid "Data"
184
+ msgstr "Donn&eacute;es"
 
 
 
 
 
 
 
 
 
185
 
186
+ #: ../views/admin.php:229
187
+ msgid "Log views from"
188
+ msgstr "Connectez-vous vues de"
189
 
190
+ #: ../views/admin.php:232
191
+ msgid "Visitors only"
192
+ msgstr "Les visiteurs ne"
 
 
 
 
 
193
 
194
+ #: ../views/admin.php:233
195
+ msgid "Logged-in users only"
196
+ msgstr "Les utilisateurs inscrits seulement"
197
 
198
+ #: ../views/admin.php:234
199
+ msgid "Everyone"
200
+ msgstr "Tout le monde"
 
 
 
 
 
 
201
 
202
+ #: ../views/admin.php:240
203
+ msgid "Ajaxify widget"
204
+ msgstr "Ajaxify widget"
205
 
206
+ #: ../views/admin.php:243 ../views/admin.php:309
207
+ msgid "Disabled"
208
+ msgstr "D&eacute;sactiv&eacute;"
 
 
 
 
 
209
 
210
+ #: ../views/admin.php:244 ../views/admin.php:308
211
+ msgid "Enabled"
212
+ msgstr "Activ&eacute;"
213
 
214
+ #: ../views/admin.php:248
215
+ #, fuzzy
216
  msgid ""
217
+ "If you are using a caching plugin such as WP Super Cache, enabling this "
218
+ "feature will keep the popular list from being cached by it"
219
  msgstr ""
220
+ "Mise &agrave; jour AJAX. Si vous utilisez un plugin de mise en cache comme "
221
+ "WP Super Cache, l'activation de cette fonction permet d'avoir la liste des "
222
+ "posts les plus populaire malgr&eacute; la mise en cache."
223
 
224
+ #: ../views/admin.php:252
225
+ msgid "Listing refresh interval"
226
+ msgstr "Listing intervalle d&#8217;actualisation"
227
 
228
+ #: ../views/admin.php:255
229
+ msgid "Live"
230
+ msgstr "Vivre"
 
 
 
 
231
 
232
+ #: ../views/admin.php:256
233
+ msgid "Custom interval"
234
+ msgstr "Intervalle personnalis&eacute;e"
235
 
236
+ #: ../views/admin.php:260
237
  msgid ""
238
+ "Sets how often the listing should be updated. For most sites the Live option "
239
+ "should be fine, however if you are experiencing slowdowns or your blog gets "
240
+ "a lot of visitors then you might want to change the refresh rate"
241
  msgstr ""
 
 
 
 
 
 
242
 
243
+ #: ../views/admin.php:264
244
+ msgid "Refresh list every"
245
+ msgstr "Actualiser la liste tous les"
 
 
 
 
 
 
 
 
246
 
247
+ #: ../views/admin.php:268
248
+ msgid "Hour(s)"
249
+ msgstr "Heure(s)"
250
 
251
+ #: ../views/admin.php:269
252
+ msgid "Day(s)"
253
+ msgstr "Jour(s)"
 
 
 
 
 
 
 
 
 
254
 
255
+ #: ../views/admin.php:270
256
+ msgid "Week(s)"
257
+ msgstr "Semaine(s)"
258
 
259
+ #: ../views/admin.php:271
260
+ msgid "Month(s)"
261
+ msgstr "Mois(s)"
 
 
 
 
 
 
 
262
 
263
+ #: ../views/admin.php:272
264
+ msgid "Year(s)"
265
+ msgstr "Ans"
 
 
266
 
267
+ #: ../views/admin.php:275
268
+ msgid "Really? That long?"
269
+ msgstr "Vraiment? Ce long?"
 
 
 
270
 
271
+ #: ../views/admin.php:290
272
+ msgid "Miscellaneous"
273
+ msgstr "Divers"
274
 
275
+ #: ../views/admin.php:295
276
+ msgid "Open links in"
277
+ msgstr "Ouvrir les liens dans"
278
 
279
+ #: ../views/admin.php:298
280
+ msgid "Current window"
281
+ msgstr "Fen&ecirc;tre actuelle"
282
 
283
+ #: ../views/admin.php:299
284
+ msgid "New tab/window"
285
+ msgstr "Un nouvel onglet/fen&ecirc;tre"
286
 
287
+ #: ../views/admin.php:305
288
+ msgid "Use plugin's stylesheet"
289
+ msgstr "Utilisez la feuille de style de plug-in"
 
 
 
 
 
 
 
 
290
 
291
+ #: ../views/admin.php:312
292
  msgid ""
293
+ "By default, the plugin includes a stylesheet called wpp.css which you can "
294
+ "use to style your popular posts listing. If you wish to use your own "
295
+ "stylesheet or do not want it to have it included in the header section of "
296
+ "your site, use this."
297
  msgstr ""
298
+ "Par d&eacute;faut, le plugin comprend une feuille de style appel&eacute;e "
299
+ "wpp.css que vous pouvez utiliser pour mettre en forme la liste des messages "
300
+ "populaires. Si vous souhaitez utiliser votre propre feuille de style ou ne "
301
+ "voulez pas de l#8217;inclure dans la section d#8217;en-t&ecirc;te de votre "
302
+ "site, utilisez ceci."
303
 
304
+ #: ../views/admin.php:329
305
+ #, fuzzy
306
  msgid ""
307
+ "Wordpress Popular Posts maintains data in two separate tables: one for "
308
+ "storing the most popular entries on a daily basis (from now on, \"cache\"), "
309
+ "and another one to keep the All-time data (from now on, \"historical data\" "
310
+ "or just \"data\"). If for some reason you need to clear the cache table, or "
311
+ "even both historical and cache tables, please use the buttons below to do so."
312
  msgstr ""
313
+ "Wordpress Popular Posts conserve les donn&eacute;es historiques de vos posts "
314
+ "les plus populaires pour un maximum de 30 jours. Si, pour une raison "
315
+ "quelconque, vous devez effacer la table du cache, ou m&ecirc;me les deux "
316
+ "tables d'historiques et de cache, veuillez utiliser les boutons ci-dessous "
317
+ "pour le faire."
 
318
 
319
+ #: ../views/admin.php:330
320
+ msgid "Empty cache"
321
+ msgstr "Vider le cache"
322
 
323
+ #: ../views/admin.php:330
324
+ msgid "Use this button to manually clear entries from WPP cache only"
 
 
 
 
 
325
  msgstr ""
326
+ "Utiliser ce bouton pour effacer manuellement les donn&eacute;es en caches de "
327
+ "WPP"
 
 
 
328
 
329
+ #: ../views/admin.php:331
330
+ msgid "Clear all data"
331
+ msgstr "Effacer toutes les donn&eacute;es"
332
+
333
+ #: ../views/admin.php:331
334
+ msgid "Use this button to manually clear entries from all WPP data tables"
335
  msgstr ""
336
+ "Utiliser ce bouton pour effacer manuellement les donn&eacute;es de toutes "
337
+ "les tables de donn&eacute;es WPP"
338
 
339
+ #: ../views/admin.php:338
340
+ #, php-format
341
  msgid ""
342
+ "With the following parameters you can customize the popular posts list when "
343
+ "using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
344
+ "the <a href=\"%2$s\">[wpp] shortcode</a>."
345
  msgstr ""
 
 
346
 
347
+ #: ../views/admin.php:346
348
  msgid "Parameter"
349
  msgstr "Param&egrave;tres"
350
 
351
+ #: ../views/admin.php:347 ../views/admin.php:661
352
+ msgid "What it does "
353
+ msgstr "Qu&#8217;est-ce que &ccedil;a fait ?"
354
+
355
+ #: ../views/admin.php:348
356
  msgid "Possible values"
357
  msgstr "Valeurs possibles"
358
 
359
+ #: ../views/admin.php:349
360
  msgid "Defaults to"
361
  msgstr "Par d&eacute;faut"
362
 
363
+ #: ../views/admin.php:350 ../views/admin.php:663
364
+ msgid "Example"
365
+ msgstr "Exemple"
366
+
367
+ #: ../views/admin.php:356
368
  msgid "Sets a heading for the list"
369
  msgstr "Met un ent&ecirc;te &agrave; la liste"
370
 
371
+ #: ../views/admin.php:357 ../views/admin.php:364 ../views/admin.php:371
372
+ #: ../views/admin.php:406 ../views/admin.php:413 ../views/admin.php:420
373
+ #: ../views/admin.php:427 ../views/admin.php:518 ../views/admin.php:532
374
+ #: ../views/admin.php:539
375
  msgid "Text string"
376
  msgstr "Texte"
377
 
378
+ #: ../views/admin.php:358
379
  msgid "Popular Posts"
380
  msgstr "Popular Posts"
381
 
382
+ #: ../views/admin.php:363
383
  msgid "Set the opening tag for the heading of the list"
384
+ msgstr ""
385
+ "D&eacute;finit la balise d&#8217;ouverture de l&#8217;en-t&ecirc;te de la "
386
+ "liste"
387
 
388
+ #: ../views/admin.php:370
389
  msgid "Set the closing tag for the heading of the list"
390
+ msgstr ""
391
+ "D&eacute;finit la balise de fermeture de l&#8217;en-t&ecirc;te de la liste"
392
 
393
+ #: ../views/admin.php:377
394
  msgid "Sets the maximum number of popular posts to be shown on the listing"
395
  msgstr ""
396
  "D&eacute;finit le nombre maximum de posts populaires que doit afficher la "
397
  "liste"
398
 
399
+ #: ../views/admin.php:378 ../views/admin.php:434 ../views/admin.php:448
400
+ #: ../views/admin.php:469 ../views/admin.php:476
401
  msgid "Positive integer"
402
  msgstr "Entier positif"
403
 
404
+ #: ../views/admin.php:384
405
  msgid ""
406
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
407
  "the time range specified by you"
408
  msgstr ""
409
  "Permet &agrave; Wordpress Popular Posts de r&eacute;cup&eacute;rer les posts "
410
+ "les plus populaires dans l&#8217;intervalle de temps que vous avez sp&eacute;"
411
+ "cifi&eacute;"
412
+
413
+ #: ../views/admin.php:391
414
+ #, fuzzy
415
+ msgid ""
416
+ "Tells Wordpress Popular Posts to retrieve the most popular entries published "
417
+ "within the time range specified by you"
418
+ msgstr ""
419
+ "Permet &agrave; Wordpress Popular Posts de r&eacute;cup&eacute;rer les posts "
420
  "les plus populaires dans l'intervalle de temps que vous avez sp&eacute;"
421
  "cifi&eacute;"
422
 
423
+ #: ../views/admin.php:398
424
  msgid "Sets the sorting option of the popular posts"
425
  msgstr "D&eacute;finit les options de tri des posts les plus populaires"
426
 
427
+ #: ../views/admin.php:399
428
  msgid "(for average views per day)"
429
  msgstr "(Pour le nb de vues moyenne par jour)"
430
 
431
+ #: ../views/admin.php:405
432
  msgid "Defines the type of posts to show on the listing"
433
  msgstr "D&eacute;finit le type de messages &agrave; afficher sur la liste"
434
 
435
+ #: ../views/admin.php:412
436
+ #, fuzzy
437
+ msgid ""
438
+ "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
439
+ "form the listing."
440
+ msgstr ""
441
+ "Cet attribut vous permet de s&eacute;lectionner les posts les plus "
442
+ "populaires ayant ce num&eacute;ro d'auteur ID."
443
+
444
+ #: ../views/admin.php:414 ../views/admin.php:421 ../views/admin.php:428
445
+ msgid "None"
446
+ msgstr "Non"
447
+
448
+ #: ../views/admin.php:419
449
  msgid ""
450
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
451
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
453
  msgstr ""
454
  "Ce param&egrave;tre vous permet de r&eacute;cuperer les posts les plus "
455
  "populaires appartenant aux cat&eacute;gories sp&eacute;cifi&eacute;e "
456
+ "(&agrave; l&#8217;aide des Categories ID). En utilisant le signe - devant "
457
+ "l&#8217;ID, les cat&eacute;gories seront exclus."
458
 
459
+ #: ../views/admin.php:426
 
 
 
 
460
  msgid ""
461
  "If set, Wordpress Popular Posts will retrieve all entries created by "
462
  "specified author(s) ID(s)."
463
  msgstr ""
464
  "Cet attribut vous permet de s&eacute;lectionner les posts les plus "
465
+ "populaires ayant ce num&eacute;ro d&#8217;auteur ID."
466
 
467
+ #: ../views/admin.php:433
468
  msgid ""
469
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
470
  "characters whenever possible"
471
  msgstr ""
472
  "Vous pouvez raccourcir les titres des posts &agrave; \"n\" caract&egrave;"
473
+ "res, si c&#8217;est n&eacute;cessaire"
474
+
475
+ #: ../views/admin.php:440
476
+ #, fuzzy
477
+ msgid ""
478
+ "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
479
+ "words instead of characters"
480
+ msgstr ""
481
+ "Vous pouvez raccourcir les titres des posts &agrave; \"n\" caract&egrave;"
482
  "res, si c'est n&eacute;cessaire"
483
 
484
+ #: ../views/admin.php:447
485
  msgid ""
486
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
487
  "characters long from the content of each post listed as popular"
488
  msgstr ""
489
+ "Cet attribut permet de d&eacute;finir la longueur de \"n\" caract&egrave;res "
490
+ "de l&#8217;extrait des posts les plus populaires"
491
 
492
+ #: ../views/admin.php:454
493
  msgid ""
494
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
495
  "italic, etc) and hyperlinks found in the excerpt"
496
  msgstr ""
497
+ "Cet attribut permet l&#8217;affichage des balises de style (gras, italique, "
498
+ "etc.) ainsi que des liens trouv&eacute;s dans l&#8217;extrait"
499
 
500
+ #: ../views/admin.php:461
501
+ #, fuzzy
502
+ msgid ""
503
+ "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
504
+ "instead of characters"
505
+ msgstr ""
506
+ "Vous pouvez raccourcir les titres des posts &agrave; \"n\" caract&egrave;"
507
+ "res, si c'est n&eacute;cessaire"
508
+
509
+ #: ../views/admin.php:468
510
  msgid ""
511
  "If set, and if your current server configuration allows it, you will be able "
512
  "to display thumbnails of your posts. This attribute sets the width for "
515
  "Si la configuration de votre serveur le permet, cet attribut d&eacute;finit "
516
  "la largeur des vignettes"
517
 
518
+ #: ../views/admin.php:475
519
  msgid ""
520
  "If set, and if your current server configuration allows it, you will be able "
521
  "to display thumbnails of your posts. This attribute sets the height for "
524
  "Si la configuration de votre serveur le permet, cet attribut d&eacute;finit "
525
  "la hauteur des vignettes"
526
 
527
+ #: ../views/admin.php:482
528
  msgid ""
529
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
530
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
534
  "blog, cette option vous permet d'afficher les notes que vos visiteurs ont "
535
  "donn&eacute;es &agrave; vos posts"
536
 
537
+ #: ../views/admin.php:489
538
  msgid ""
539
  "If set, Wordpress Popular Posts will show how many comments each popular "
540
  "post has got until now"
541
  msgstr "Affiche le nombre de commentaires pour chaque post de la liste"
542
 
543
+ #: ../views/admin.php:496
544
  msgid ""
545
  "If set, Wordpress Popular Posts will show how many views each popular post "
546
  "has got since it was installed"
547
  msgstr ""
548
  "Affiche le nombre de vues pour chaque post de la liste depuis que le plugin "
549
+ "est install&eacute"
550
 
551
+ #: ../views/admin.php:503
552
  msgid ""
553
  "If set, Wordpress Popular Posts will show who published each popular post on "
554
  "the list"
555
+ msgstr "Permet l&#8217;affichage de l&#8217;auteur de chaque post de la liste"
556
 
557
+ #: ../views/admin.php:510
558
  msgid ""
559
  "If set, Wordpress Popular Posts will display the date when each popular post "
560
  "on the list was published"
561
  msgstr ""
562
+ "Permet l&#8217;affichage de la date de publication pour chaque post de la "
563
+ "liste"
564
 
565
+ #: ../views/admin.php:517
566
  msgid "Sets the date format"
567
  msgstr "D&eacute;finit le format de la date"
568
 
569
+ #: ../views/admin.php:524
570
+ #, fuzzy
571
+ msgid "If set, Wordpress Popular Posts will display the category"
572
+ msgstr ""
573
+ "Si c'est coch&eacute;, Wordpress Popular Posts affichera le nom de l'auteur "
574
+ "des posts."
575
+
576
+ #: ../views/admin.php:531
577
+ msgid "Sets the opening tag for the listing"
578
+ msgstr "D&eacute;finit la balise de d&eacute;but de liste"
579
 
580
+ #: ../views/admin.php:538
581
  msgid "Sets the closing tag for the listing"
582
  msgstr "D&eacute;finit la balise de fin de liste"
583
 
584
+ #: ../views/admin.php:545
585
+ msgid "Sets the HTML structure of each post"
586
+ msgstr ""
587
+
588
+ #: ../views/admin.php:546
589
+ msgid "Text string, custom HTML"
590
+ msgstr "Cha&icirc;ne de texte, HTML personnalis&eacute;"
591
+
592
+ #: ../views/admin.php:546
593
+ msgid "Available Content Tags"
594
+ msgstr "Content Tags disponibles"
595
+
596
+ #: ../views/admin.php:546
597
+ msgid "displays thumbnail linked to post/page"
598
  msgstr ""
 
 
599
 
600
+ #: ../views/admin.php:546
601
+ msgid "displays linked post/page title"
602
  msgstr ""
 
 
603
 
604
+ #: ../views/admin.php:546
605
  msgid ""
606
+ "displays post/page excerpt, and requires excerpt_length to be greater than 0"
607
+ msgstr ""
608
+
609
+ #: ../views/admin.php:546
610
+ msgid "displays the default stats tags"
611
  msgstr ""
 
 
612
 
613
+ #: ../views/admin.php:546
614
  msgid ""
615
+ "displays post/page current rating, requires WP-PostRatings installed and "
616
+ "enabled"
617
+ msgstr ""
618
+
619
+ #: ../views/admin.php:546
 
 
 
 
 
 
 
 
 
 
 
620
  msgid ""
621
+ "displays post/page current rating as an integer, requires WP-PostRatings "
622
+ "installed and enabled"
623
  msgstr ""
 
624
 
625
+ #: ../views/admin.php:546
626
+ msgid "outputs the URL of the post/page"
627
+ msgstr ""
628
 
629
+ #: ../views/admin.php:546
630
+ msgid "displays post/page title, no link"
631
  msgstr ""
 
 
632
 
633
+ #: ../views/admin.php:546
634
+ msgid "displays linked author name, requires stats_author=1"
635
+ msgstr ""
636
 
637
+ #: ../views/admin.php:546
638
+ msgid "displays linked category name, requires stats_category=1"
639
+ msgstr ""
640
 
641
+ #: ../views/admin.php:546
642
+ msgid "displays views count only, no text"
643
+ msgstr ""
644
 
645
+ #: ../views/admin.php:546
646
+ msgid "displays comments count only, no text, requires stats_comments=1"
647
+ msgstr ""
648
 
649
+ #: ../views/admin.php:558
650
+ msgid "What does \"Title\" do?"
651
+ msgstr "Que fait \"Titre\" ?"
652
 
653
+ #: ../views/admin.php:561
654
  msgid ""
655
+ "It allows you to show a heading for your most popular posts listing. If left "
656
+ "empty, no heading will be displayed at all."
 
 
657
  msgstr ""
658
+ "Il vous permet d&#8217;afficher un titre au-dessus de la liste des messages "
659
+ "les plus populaires. Si le champ est laiss&eacute; vide, aucun titre ne sera "
660
+ "affich&eacute;. "
 
 
661
 
662
+ #: ../views/admin.php:564
663
+ msgid "What is Time Range for?"
664
+ msgstr "Qu&#8217;est-ce que la Plage de temps?"
665
 
666
+ #: ../views/admin.php:566
667
+ msgid ""
668
+ "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
669
+ "comments within the selected time range."
670
+ msgstr ""
671
+ "Wordpress Popular Posts r&eacute;cup&egrave;re les posts les plus vus/"
672
+ "comment&eacute;s durant l'intervelle de temps s&eacute;lectionn&eacute;."
673
 
674
+ #: ../views/admin.php:569
675
+ msgid "What is \"Sort post by\" for?"
676
+ msgstr "Que fait \"Trier les posts par\"?"
677
 
678
+ #: ../views/admin.php:571
679
  msgid ""
680
+ "It allows you to decide whether to order your popular posts listing by total "
681
+ "views, comments, or average views per day."
682
  msgstr ""
683
+ "Cela vous permet de d&eacute;cider si vous voulez ordonner votre liste de "
684
+ "posts populaires par nombre de vues total, par nombre de commentaires, ou "
685
+ "par nombre de vues moyennes par jour."
686
 
687
+ #: ../views/admin.php:574
688
+ msgid "What does \"Display post rating\" do?"
689
+ msgstr "Que fait \"Afficher la note du post\"?"
690
+
691
+ #: ../views/admin.php:576
692
  msgid ""
693
+ "If checked, Wordpress Popular Posts will show how your readers are rating "
694
+ "your most popular posts. This feature requires having WP-PostRatings plugin "
695
+ "installed and enabled on your blog for it to work."
696
  msgstr ""
697
+ "Si c&#8217;est coch&eacute;e,Wordpress Popular Posts affichera la liste des "
698
+ "posts les mieux not&eacute;s par vos lecteurs. Cette fonction n&eacute;"
699
+ "cessite d&#8217;avoir le plugin WP-PostRatings install&eacute; et "
700
+ "activ&eacute; sur votre blog pour que cela fonctionne."
 
701
 
702
+ #: ../views/admin.php:579
703
+ msgid "What does \"Shorten title\" do?"
704
+ msgstr "Que fait \"Raccourcir le titre\"?"
705
 
706
+ #: ../views/admin.php:581
707
+ #, fuzzy
708
+ msgid ""
709
+ "If checked, all posts titles will be shortened to \"n\" characters/words. A "
710
+ "new \"Shorten title to\" option will appear so you can set it to whatever "
711
+ "you like."
712
  msgstr ""
713
+ "Si c'est coch&eacute;, les titres des posts sont raccourci &agrave; \"n\" "
714
+ "caract&egrave;res. Une option \"Raccourcir le titre de\" appara&icirc;tra "
715
+ "afin que vous puissiez le r&eacute;gler le nombre \"n\" de caract&egrave;res "
716
+ "que vous voulez garder."
717
 
718
+ #: ../views/admin.php:584
719
+ msgid "What does \"Display post excerpt\" do?"
720
+ msgstr "Que fait \"Afficher un extrait du post\"?"
721
 
722
+ #: ../views/admin.php:586
723
+ msgid ""
724
+ "If checked, Wordpress Popular Posts will also include a small extract of "
725
+ "your posts in the list. Similarly to the previous option, you will be able "
726
+ "to decide how long the post excerpt should be."
727
  msgstr ""
728
+ "Si c&#8217;est coch&eacute;, Wordpress Popular Post permet d&#8217;inclure "
729
+ "un petit extrait de vos posts dans la liste. Comme la pr&eacute;c&eacute;"
730
+ "dente option, une option appara&icirc;tra pour que vous choisissiez la "
731
+ "longueur de l&#8217;extrait &agrave; afficher."
732
 
733
+ #: ../views/admin.php:589
734
+ msgid "What does \"Keep text format and links\" do?"
735
+ msgstr "Que fait \"Garder le formatage du texte et les liens\"?"
736
+
737
+ #: ../views/admin.php:591
738
+ msgid ""
739
+ "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
740
+ "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
741
+ "the excerpt. Hyperlinks will remain intact, too."
742
+ msgstr ""
743
+ "Si c&#8217;est coch&eacute; et que la fonction \"extrait du post\" est "
744
+ "activ&eacute;, Wordpress Popular Posts garde les balises de formatage (ex : "
745
+ "gras, italique, etc.) qui se trouvent dans l&#8217;extrait. Les liens "
746
+ "hypertexte sont aussi affich&eacute;s &agrave; l&#8217;identique."
747
+
748
+ #: ../views/admin.php:594
749
+ msgid "What is \"Post type\" for?"
750
+ msgstr "Que fait \"Type de posts\"?"
751
+
752
+ #: ../views/admin.php:596
753
+ msgid ""
754
+ "This filter allows you to decide which post types to show on the listing. By "
755
+ "default, it will retrieve only posts and pages (which should be fine for "
756
+ "most cases)."
757
+ msgstr ""
758
+ "Ce filtre vous permet de choisir quels types de posts doivent &ecirc;tre "
759
+ "afficher ; par d&eacute;faut, il permet de r&eacute;cup&eacute;rer les "
760
+ "articles et les pages (ce qui est suffisant dans la plupart des cas)."
761
+
762
+ #: ../views/admin.php:599
763
+ msgid "What is \"Category(ies) ID(s)\" for?"
764
+ msgstr "Que fait \"Cat&eacute;gories ID\"?"
765
+
766
+ #: ../views/admin.php:601
767
+ msgid ""
768
+ "This filter allows you to select which categories should be included or "
769
+ "excluded from the listing. A negative sign in front of the category ID "
770
+ "number will exclude posts belonging to it from the list, for example. You "
771
+ "can specify more than one ID with a comma separated list."
772
+ msgstr ""
773
+ "Ce filtre vous permet de s&eacute;lectionner quelles cat&eacute;gories "
774
+ "doivent &ecirc;tre inclus ou exclus de la liste. Un signe n&eacute;gatif "
775
+ "devant le num&eacute;ro de cat&eacute;gories ID permet exclure les posts de "
776
+ "cette cat&eacute;gorie de la liste. Vous pouvez sp&eacute;cifier plusieurs "
777
+ "ID d'une liste s&eacute;par&eacute;e par des virgules."
778
+
779
+ #: ../views/admin.php:604
780
+ msgid "What is \"Author(s) ID(s)\" for?"
781
+ msgstr "Que fait \"Auteur ID\"?"
782
+
783
+ #: ../views/admin.php:606
784
+ msgid ""
785
+ "Just like the Category filter, this one lets you filter posts by author ID. "
786
+ "You can specify more than one ID with a comma separated list."
787
+ msgstr ""
788
+ "Fait exactement comme le filtre Cat&eacute;gorie, celui-ci vous permet de "
789
+ "filtrer les messages par auteur ID. Vous pouvez sp&eacute;cifier plusieurs "
790
+ "ID s&eacute;par&eacute; par des virgules."
791
+
792
+ #: ../views/admin.php:609
793
+ msgid "What does \"Display post thumbnail\" do?"
794
+ msgstr "Que fait \"Afficher les vignettes des posts\"?"
795
+
796
+ #: ../views/admin.php:611
797
+ msgid ""
798
+ "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
799
+ "of each post. You can set up the source of the thumbnail via Settings - "
800
+ "Wordpress Popular Posts - Tools."
801
+ msgstr ""
802
+ "Si c&#8217;est coch&eacute;, Wordpress Popular Posts tentera de r&eacute;"
803
+ "cup&eacute;rer la vignette de chaque post. Vous pouvez configurer la source "
804
+ "de la vignette via Param&egrave;tres - Wordpress Popular Posts - Outils."
805
+
806
+ #: ../views/admin.php:614
807
+ msgid "What does \"Display comment count\" do?"
808
+ msgstr "Que fait \"Affichage du nombre de commentaires\"?"
809
+
810
+ #: ../views/admin.php:616
811
+ msgid ""
812
+ "If checked, Wordpress Popular Posts will display how many comments each "
813
+ "popular post has got in the selected Time Range."
814
+ msgstr ""
815
+ "Si c&#8217;est coch&eacute;, Wordpress Popular Posts affiche le nombre de "
816
+ "commentaires que chaque post a eu durant la plage de temps s&eacute;"
817
+ "lectionn&eacute;e."
818
+
819
+ #: ../views/admin.php:619
820
+ msgid "What does \"Display views\" do?"
821
+ msgstr "Que fait \"Affichage des vues\"?"
822
 
823
+ #: ../views/admin.php:621
824
+ msgid ""
825
+ "If checked, Wordpress Popular Posts will show how many pageviews a single "
826
+ "post has gotten in the selected Time Range."
827
+ msgstr ""
828
+ "Si c&#8217;est coch&eacute;, Wordpress Popular Posts affichera le nombre de "
829
+ "fois o&ugrave; le post a &eacute;t&eacute; vu durant la plage de temps "
830
+ "s&eacute;lectionn&eacute;e."
831
+
832
+ #: ../views/admin.php:624
833
+ msgid "What does \"Display author\" do?"
834
+ msgstr "Que fait \"Affichage de l&#8217;auteur\"?"
835
+
836
+ #: ../views/admin.php:626
837
+ msgid ""
838
+ "If checked, Wordpress Popular Posts will display the name of the author of "
839
+ "each entry listed."
840
+ msgstr ""
841
+ "Si c&#8217;est coch&eacute;, Wordpress Popular Posts affichera le nom de "
842
+ "l&#8217;auteur des posts."
843
+
844
+ #: ../views/admin.php:629
845
+ msgid "What does \"Display date\" do?"
846
+ msgstr "Que fait \"Affichage de la date\"?"
847
+
848
+ #: ../views/admin.php:631
849
+ msgid ""
850
+ "If checked, Wordpress Popular Posts will display the date when each popular "
851
+ "posts was published."
852
+ msgstr ""
853
+ "Si c&#8217;est s&eacute;lectionn&eacute;, Wordpress Popular Posts affichera "
854
+ "la date de publication des posts."
855
+
856
+ #: ../views/admin.php:634
857
+ msgid "What does \"Display category\" do?"
858
+ msgstr "Que fait \"Afficher la cat&eacute;gorie du post\" ?"
859
+
860
+ #: ../views/admin.php:636
861
+ msgid ""
862
+ "If checked, Wordpress Popular Posts will display the category of each post."
863
+ msgstr ""
864
+ "Si c&#8217;est coch&eacute;, Wordpress Popular Posts affichera le nom de la "
865
+ "cat&eacute;gorie des posts."
866
+
867
+ #: ../views/admin.php:639
868
+ msgid "What does \"Use custom HTML Markup\" do?"
869
+ msgstr "Que fait \"Formatage HTML de l&#8217;affichage\"?"
870
+
871
+ #: ../views/admin.php:641
872
+ msgid ""
873
+ "If checked, you will be able to customize the HTML markup of your popular "
874
+ "posts listing. For example, you can decide whether to wrap your posts in an "
875
+ "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
876
+ "for you!"
877
+ msgstr ""
878
+ "Si c&#8217;est s&eacute;lectionn&eacute;, cela vous permet de personnaliser "
879
+ "le formatage HTML de l&#8217;affichage de la liste des posts. Par exemple "
880
+ "vous pouvez d&eacute;cider d&#8217;afficher les posts en utilisant une "
881
+ "liste, un div, etc. Si vous connaissez xHTML/CSS, ceci est pour vous!"
882
+
883
+ #: ../views/admin.php:644
884
+ msgid "What are \"Content Tags\"?"
885
+ msgstr "Qu#8217;est-ce que les \"Content Tags\" ?"
886
+
887
+ #: ../views/admin.php:646
888
+ #, fuzzy, php-format
889
+ msgid ""
890
+ "Content Tags are codes to display a variety of items on your popular posts "
891
+ "custom HTML structure. For example, setting it to \"{title}: "
892
+ "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
893
+ "post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
894
+ "\">Parameters</a> section."
895
+ msgstr ""
896
+ "Si cest s&eacute;lectionn&eacute;, vous pouvez d&eacute;cider la fa&ccedil;"
897
+ "on dont les &eacute;l&eacute;ments sont affich&eacute;s pour chaque post. "
898
+ "Par exemple, si vous mettez \"{title} : {summary} \" (sans les guillemets), "
899
+ "cela va afficher \"Titre du post : extrait du post \". Les balises "
900
+ "disponibles sont : {image}, {title}, {summary}, {stats} et {rating}."
901
+
902
+ #: ../views/admin.php:649
903
+ msgid "What are \"Template Tags\"?"
904
+ msgstr "Qu&#8217;est-ce que les \"Marqueurs de Modele\"?"
905
+
906
+ #: ../views/admin.php:651
907
+ msgid ""
908
+ "Template Tags are simply php functions that allow you to perform certain "
909
+ "actions. For example, Wordpress Popular Posts currently supports two "
910
+ "different template tags: wpp_get_mostpopular() and wpp_get_views()."
911
+ msgstr ""
912
+ "Les marqueurs de mod&egrave;le sont simplement des fonctions php qui "
913
+ "permettent de r&eacute;aliser certaines actions. Par exemple, Wordpress "
914
+ "Popular Posts g&egrave;re deux marqueurs de mod&egrave;le diff&eacute;"
915
+ "rents : wpp_get_mostpopular() et wpp_get_views()."
916
+
917
+ #: ../views/admin.php:654
918
+ msgid "What are the template tags that Wordpress Popular Posts supports?"
919
+ msgstr ""
920
+ "Quels sont les marqueurs de mod&egrave;le que Wordpresse Popular Posts "
921
+ "supporte?"
922
+
923
+ #: ../views/admin.php:656
924
+ msgid ""
925
+ "The following are the template tags supported by Wordpress Popular Posts"
926
+ msgstr ""
927
+ "Ci-dessous les param&egrave;tres que le marqueur de mod&egrave;le Wordpress "
928
+ "Popular Posts accepte"
929
+
930
+ #: ../views/admin.php:660
931
+ msgid "Template tag"
932
+ msgstr "Marqueur de mod&egrave;le"
933
+
934
+ #: ../views/admin.php:669
935
+ #, fuzzy, php-format
936
+ msgid ""
937
+ "Similar to the widget functionality, this tag retrieves the most popular "
938
+ "posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
939
+ "a> so you can customize your popular listing, but these are not required."
940
+ msgstr ""
941
+ "Fonctionnalit&eacute;s similaire au widget Wordpress Popular Posts, cette "
942
+ "balise r&eacute;cup&egrave;re les posts les plus populaires sur votre blog. "
943
+ "Cette fonction accepte &eacute;galement les param&egrave;tres pour "
944
+ "personnaliser la liste des posts les plus populaires, mais ceux-ci ne sont "
945
+ "pas indispensables."
946
+
947
+ #: ../views/admin.php:670
948
+ #, php-format
949
+ msgid ""
950
+ "Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
951
+ "list of attributes."
952
+ msgstr ""
953
+
954
+ #: ../views/admin.php:675
955
+ msgid ""
956
+ "Displays the number of views of a single post. Post ID is required or it "
957
+ "will return false."
958
+ msgstr ""
959
+ "Affiche le nombre de vues d&#8217;un seul poste. Le post ID est n&eacute;"
960
+ "cessaire sinon la fonction retourne false."
961
 
962
+ #: ../views/admin.php:676
963
+ msgid "Post ID"
964
+ msgstr "Post ID"
965
+
966
+ #: ../views/admin.php:683
967
+ msgid "What are \"shortcodes\"?"
968
+ msgstr "Qu&#8217;est-ce que \"shortcodes\" ?"
969
+
970
+ #: ../views/admin.php:685
971
+ #, fuzzy, php-format
972
+ msgid ""
973
+ "Shortcodes are similar to BB Codes, these allow us to call a php function by "
974
+ "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
975
+ "shortcode [wpp] will let you insert a list of the most popular posts in "
976
+ "posts content and pages too! For more information about shortcodes, please "
977
+ "visit the <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a> page."
978
+ msgstr ""
979
+ "Les shortcodes sont similaires aux BB Codes, cela permet d'appeler une "
980
+ "fonction php en tapant simplement quelque chose comme [shortcode]. Avec "
981
+ "Wordpress Popular Posts, le shortcode [wpp] permet d'ins&eacute;rer une "
982
+ "liste des posts les plus populaires dans les messages et les pages de "
983
+ "contenu aussi ! Pour plus d'informations sur les shortcodes, veuillez visiter"
984
 
985
+ #: ../views/admin.php:694
986
+ #, php-format
987
+ msgid "About Wordpress Popular Posts %s"
988
+ msgstr "Sur Wordpress Popular Posts %s"
989
 
990
+ #: ../views/admin.php:695
991
+ msgid "This version includes the following changes"
992
+ msgstr ""
993
 
994
+ #: ../views/admin.php:709
995
+ msgid "Do you like this plugin?"
996
+ msgstr "Aimez-vous ce plugin ?"
997
 
998
+ #: ../views/admin.php:716
999
  msgid ""
1000
  "Each donation motivates me to keep releasing free stuff for the Wordpress "
1001
  "community!"
1003
  "Chaque don me motive pour maintenir la gratuit&eacute; des d&eacute;"
1004
  "veloppements pour la communaut&eacute; Wordpress"
1005
 
1006
+ #: ../views/admin.php:717
1007
+ #, php-format
1008
+ msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
1009
+ msgstr ""
1010
+
1011
+ #: ../views/admin.php:721
1012
+ msgid "Need help?"
1013
+ msgstr "Besoin d&#8217;aide?"
1014
+
1015
+ #: ../views/admin.php:722
1016
+ #, php-format
1017
+ msgid ""
1018
+ "Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
1019
+ "and feedback."
1020
+ msgstr ""
1021
+
1022
+ #: ../views/admin.php:723
1023
+ msgid "Let's make this plugin even better!"
1024
+ msgstr "Faisons ce plugin encore mieux!"
1025
+
1026
+ #: ../views/form.php:2
1027
+ msgid "Title"
1028
+ msgstr "Titre"
1029
 
1030
+ #: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
1031
+ #: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
1032
+ #: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
1033
+ #: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
1034
+ #: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
1035
+ #: ../views/form.php:105 ../views/form.php:111
 
 
 
 
 
 
1036
  msgid "What is this?"
1037
+ msgstr "Qu&#8217;est-ce que c&#8217;est ?"
1038
 
1039
+ #: ../views/form.php:7
1040
+ msgid "Show up to"
1041
+ msgstr "Pr&eacute;sentez-vous"
1042
 
1043
+ #: ../views/form.php:8
1044
  msgid "posts"
1045
  msgstr "posts"
1046
 
1047
+ #: ../views/form.php:12
1048
+ msgid "Sort posts by"
1049
+ msgstr "Trier les posts par"
1050
 
1051
+ #: ../views/form.php:14
 
 
 
 
1052
  msgid "Comments"
1053
  msgstr "Commentaires"
1054
 
1055
+ #: ../views/form.php:15
1056
  msgid "Total views"
1057
  msgstr "Nombre de vues"
1058
 
1059
+ #: ../views/form.php:16
1060
  msgid "Avg. daily views"
1061
  msgstr "Moy. vues par jour"
1062
 
1063
+ #: ../views/form.php:22
1064
+ msgid "Filters"
1065
+ msgstr "Filtres"
1066
+
1067
+ #: ../views/form.php:24
1068
+ msgid "Time Range"
1069
+ msgstr "Plage de temps"
1070
+
1071
+ #: ../views/form.php:34
1072
+ msgid "Post type(s)"
1073
+ msgstr "Type de posts"
1074
+
1075
+ #: ../views/form.php:37
1076
+ msgid "Post(s) ID(s) to exclude"
1077
+ msgstr ""
1078
+
1079
+ #: ../views/form.php:40
1080
+ msgid "Category(ies) ID(s)"
1081
+ msgstr "Cat&eacute;gories ID"
1082
+
1083
+ #: ../views/form.php:43
1084
+ msgid "Author(s) ID(s)"
1085
+ msgstr "Auteurs ID"
1086
+
1087
+ #: ../views/form.php:48
1088
  msgid "Posts settings"
1089
  msgstr "R&eacute;glage des posts"
1090
 
1091
+ #: ../views/form.php:52
1092
  msgid "Display post rating"
1093
  msgstr "Afficher la note du post"
1094
 
1095
+ #: ../views/form.php:55
1096
  msgid "Shorten title"
1097
  msgstr "Raccourcir le titre"
1098
 
1099
+ #: ../views/form.php:58
1100
  msgid "Shorten title to"
1101
  msgstr "Raccourcir le titre de"
1102
 
1103
+ #: ../views/form.php:59 ../views/form.php:69
1104
  msgid "characters"
1105
  msgstr "caract."
1106
 
1107
+ #: ../views/form.php:60 ../views/form.php:70
1108
+ msgid "words"
1109
+ msgstr "paroles"
1110
+
1111
+ #: ../views/form.php:63
1112
  msgid "Display post excerpt"
1113
  msgstr "Afficher un extrait du post"
1114
 
1115
+ #: ../views/form.php:66
 
 
 
 
1116
  msgid "Keep text format and links"
1117
  msgstr "Garder le formatage du texte et les liens"
1118
 
1119
+ #: ../views/form.php:67
1120
+ msgid "Excerpt length"
1121
+ msgstr "Longueur de l&#8217;extrait:"
 
 
 
 
1122
 
1123
+ #: ../views/form.php:73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1124
  msgid "Display post thumbnail"
1125
  msgstr "Afficher les vignettes des posts"
1126
 
1127
+ #: ../views/form.php:76
1128
+ msgid "Width"
1129
+ msgstr "Largeur"
1130
 
1131
+ #: ../views/form.php:77 ../views/form.php:80
1132
  msgid "px"
1133
  msgstr "px"
1134
 
1135
+ #: ../views/form.php:79
1136
+ msgid "Height"
1137
+ msgstr "Hauteur"
1138
 
1139
+ #: ../views/form.php:85
1140
  msgid "Stats Tag settings"
1141
+ msgstr "Options d&#8217;affichage"
1142
 
1143
+ #: ../views/form.php:87
1144
  msgid "Display comment count"
1145
  msgstr "Affichage du nombre de commentaires"
1146
 
1147
+ #: ../views/form.php:89
1148
  msgid "Display views"
1149
  msgstr "Affichage le nb de vues"
1150
 
1151
+ #: ../views/form.php:91
1152
  msgid "Display author"
1153
+ msgstr "Affichage de l&#8217;auteur"
1154
 
1155
+ #: ../views/form.php:93
1156
  msgid "Display date"
1157
  msgstr "Affichage de la date"
1158
 
1159
+ #: ../views/form.php:96
1160
  msgid "Date Format"
1161
  msgstr "Format de la date"
1162
 
1163
+ #: ../views/form.php:98
1164
+ msgid "Wordpress Date Format"
1165
+ msgstr "Format de la date de Wordpress"
1166
+
1167
+ #: ../views/form.php:105
1168
+ msgid "Display category"
1169
+ msgstr "Afficher la cat&eacute;gorie"
1170
+
1171
+ #: ../views/form.php:109
1172
  msgid "HTML Markup settings"
1173
+ msgstr "Formatage HTML de l&#8217;affichage"
1174
 
1175
+ #: ../views/form.php:111
1176
  msgid "Use custom HTML Markup"
1177
  msgstr "Utiliser du code HTML"
1178
 
1179
+ #: ../views/form.php:114
1180
+ msgid "Before / after title"
1181
+ msgstr "Avant/Apr&egrave;s le titre"
1182
+
1183
+ #: ../views/form.php:117
1184
+ msgid "Before / after Popular Posts"
1185
+ msgstr "Avant/Apr&egrave;s Popular Posts"
1186
 
1187
+ #: ../views/form.php:120
1188
+ msgid "Post HTML Markup"
1189
+ msgstr "Post HTML Balisage"
1190
+
1191
+ #: ../wordpress-popular-posts.php:269
1192
+ msgid "The most Popular Posts on your blog."
1193
+ msgstr "Les posts les plus populaires sur votre blog."
1194
 
1195
+ #: ../wordpress-popular-posts.php:410
1196
+ msgid ""
1197
+ "Error: cannot ajaxify Wordpress Popular Posts on this theme. It's missing "
1198
+ "the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
1199
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1200
+ "\"nofollow\">register_sidebar</a> for more)."
1201
+ msgstr ""
1202
 
1203
+ #: ../wordpress-popular-posts.php:636
1204
+ msgid "Upload"
1205
+ msgstr "T&eacute;l&eacute;charger"
1206
 
1207
+ #: ../wordpress-popular-posts.php:1002
1208
+ #, fuzzy, php-format
1209
+ msgid ""
1210
+ "Your PHP installation is too old. Wordpress Popular Posts requires at least "
1211
+ "PHP version %1$s to function correctly. Please contact your hosting provider "
1212
+ "and ask them to upgrade PHP to %1$s or higher."
1213
+ msgstr ""
1214
+ "Votre version de Wordpress est trop vielle. Le plugin Wordpress Popular "
1215
+ "Posts requiert une version > 2.8 pour fonctionner correctement. Veuillez "
1216
+ "mettre &agrave; jour votre blog &agrave; l'aide de l'outil \"Mise &agrave; "
1217
+ "jour\"."
1218
 
1219
+ #: ../wordpress-popular-posts.php:1009
1220
+ #, fuzzy, php-format
1221
+ msgid ""
1222
+ "Your Wordpress version is too old. Wordpress Popular Posts requires at least "
1223
+ "Wordpress version %1$s to function correctly. Please update your blog via "
1224
+ "Dashboard &gt; Update."
1225
+ msgstr ""
1226
+ "Votre version de Wordpress est trop vielle. Le plugin Wordpress Popular "
1227
+ "Posts requiert une version > 2.8 pour fonctionner correctement. Veuillez "
1228
+ "mettre &agrave; jour votre blog &agrave; l'aide de l'outil \"Mise &agrave; "
1229
+ "jour\"."
1230
+
1231
+ #: ../wordpress-popular-posts.php:1034
1232
+ #, php-format
1233
+ msgid ""
1234
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
1235
+ "strong>.</p></div>"
1236
+ msgstr ""
1237
+
1238
+ #: ../wordpress-popular-posts.php:1094
1239
  msgid "Success! The cache table has been cleared!"
1240
+ msgstr "Ok! La table de cache est bien effac&eacute;e!"
1241
 
1242
+ #: ../wordpress-popular-posts.php:1096
1243
  msgid "Error: cache table does not exist."
1244
+ msgstr "Erreur : la table de cache n&#8217;existe pas."
1245
 
1246
+ #: ../wordpress-popular-posts.php:1103
1247
  msgid "Success! All data have been cleared!"
1248
+ msgstr "Ok! Toutes les donn&eacute;es ont &eacute;t&eacute; effac&eacute;es!"
1249
 
1250
+ #: ../wordpress-popular-posts.php:1105
1251
  msgid "Error: one or both data tables are missing."
1252
  msgstr "Erreur : une ou deux tables de donn&eacute;es sont manquantes. "
1253
 
1254
+ #: ../wordpress-popular-posts.php:1108
1255
  msgid "Invalid action."
1256
  msgstr "Action invalide"
1257
 
1258
+ #: ../wordpress-popular-posts.php:1111
1259
  msgid ""
1260
  "Sorry, you do not have enough permissions to do this. Please contact the "
1261
  "site administrator for support."
1262
  msgstr ""
1263
+ "D&eacute;sol&eacute;, vous n&#8217;avez pas les autorisations suffisantes "
1264
+ "pour faire cela. Contactez, s&#8217;il vous pla&icirc;t, l&#8217;"
1265
+ "administrateur du site pour avoir de l&#8217;aide."
1266
 
1267
+ #: ../wordpress-popular-posts.php:1639
1268
  msgid "Sorry. No data so far."
1269
  msgstr "D&eacute;sol&eacute;. Aucune donn&eacute;e &agrave; ce jour."
1270
 
1271
+ #: ../wordpress-popular-posts.php:2111
1272
+ #, php-format
1273
+ msgid "1 comment"
1274
+ msgid_plural "%s comments"
1275
+ msgstr[0] "1 commentaire"
1276
+ msgstr[1] "%s commentaires"
1277
+
1278
+ #: ../wordpress-popular-posts.php:2123
1279
+ #, php-format
1280
+ msgid "1 view per day"
1281
+ msgid_plural "%s views per day"
1282
+ msgstr[0] "1 vue par jour"
1283
+ msgstr[1] "%s vues par jour"
1284
+
1285
+ #: ../wordpress-popular-posts.php:2129
1286
+ #, php-format
1287
+ msgid "1 view"
1288
+ msgid_plural "%s views"
1289
+ msgstr[0] "1 vue"
1290
+ msgstr[1] "%s vues"
1291
+
1292
+ #: ../wordpress-popular-posts.php:2141
1293
+ #, php-format
1294
+ msgid "by %s"
1295
+ msgstr "par %s"
1296
+
1297
+ #: ../wordpress-popular-posts.php:2147
1298
+ #, php-format
1299
+ msgid "posted on %s"
1300
+ msgstr "post&eacute; le %s"
1301
+
1302
+ #: ../wordpress-popular-posts.php:2155
1303
+ #, php-format
1304
+ msgid "under %s"
1305
  msgstr ""
 
 
 
 
1306
 
1307
+ #~ msgid ""
1308
+ #~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
1309
+ #~ "and the [wpp] shortcode\"."
1310
+ #~ msgstr ""
1311
+ #~ "Veuillez consulter la \"Liste des param&egrave;tres accept&eacute;s par "
1312
+ #~ "wpp_get_mostpopular() et le shortcode [wpp]\""
1313
+
1314
+ #~ msgid ""
1315
+ #~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
1316
+ #~ "shortcode"
1317
+ #~ msgstr ""
1318
+ #~ "Liste des param&egrave;tres accept&eacute;s par wpp_get_mostpopular() et "
1319
+ #~ "le shortcode [wpp]"
1320
+
1321
+ #~ msgid ""
1322
+ #~ "These parameters can be used by both the template tag "
1323
+ #~ "wpp_get_most_popular() and the shortcode [wpp]."
1324
+ #~ msgstr ""
1325
+ #~ "Ces param&egrave;tres peuvent &ecirc;tre utilis&eacute;s aussi bien par "
1326
+ #~ "le marqueur de mod&egrave;le wpp_get_most_popular() que par le shortcode "
1327
+ #~ "[wpp]."
1328
+
1329
+ #~ msgid "Excerpt Properties"
1330
+ #~ msgstr "Propri&eacute;t&eacute; de l'extrait"
1331
+
1332
+ #~ msgid "Thumbnail settings"
1333
+ #~ msgstr "R&eacute;glages des vignettes"
1334
+
1335
+ #~ msgid ""
1336
+ #~ "Here you will find a handy group of options to tweak Wordpress Popular "
1337
+ #~ "Posts."
1338
+ #~ msgstr ""
1339
+ #~ "Vous trouverez ici des options pour personnaliser Wordpress Popular Posts."
1340
+
1341
+ #, fuzzy
1342
+ #~ msgid "Popular Posts links behavior"
1343
+ #~ msgstr "Popular Posts"
1344
+
1345
+ #~ msgid "Wordpress Popular Posts Stylesheet"
1346
+ #~ msgstr "Feuille de style pour Wordpress Popular Posts"
1347
+
1348
+ #~ msgid "Data tools"
1349
+ #~ msgstr "Gestion des donn&eacute;es"
1350
+
1351
+ #~ msgid "Frequently Asked Questions"
1352
+ #~ msgstr "Questions fr&eacute;quentes"
1353
+
1354
+ #~ msgid "What does \"Use content formatting tags\" do?"
1355
+ #~ msgstr "Que fait \"Utiliser les balises de formatage de contenu\" ?"
1356
+
1357
+ #~ msgid "Sets the opening tag for each item on the list"
1358
+ #~ msgstr ""
1359
+ #~ "D&eacute;finit la balise d'ouverture pour chaque &eacute;l&eacute;ment de "
1360
+ #~ "la liste"
1361
+
1362
+ #~ msgid "Sets the closing tag for each item on the list"
1363
+ #~ msgstr ""
1364
+ #~ "D&eacute;finit la balise de fermeture pour chaque &eacute;l&eacute;ment "
1365
+ #~ "de la liste"
1366
+
1367
+ #~ msgid ""
1368
+ #~ "If set, this option will allow you to decide the order of the contents "
1369
+ #~ "within each item on the list."
1370
+ #~ msgstr ""
1371
+ #~ "Cette option vous permet de d'activer le choix de l'ordre du contenu dans "
1372
+ #~ "chaque &eacute;l&eacute;ment de la liste."
1373
+
1374
+ #~ msgid ""
1375
+ #~ "If set, you can decide the order of each content inside a single item on "
1376
+ #~ "the list. For example, setting it to \"{title}: {summary}\" would output "
1377
+ #~ "something like \"Your Post Title: summary here\". This attribute requires "
1378
+ #~ "do_pattern to be true."
1379
+ #~ msgstr ""
1380
+ #~ "Permet de choisir l'ordre des &eacute;l&eacute;ments &agrave; afficher "
1381
+ #~ "pour chaque post de la liste. Par exemple, mettre \"{title} : {summary} "
1382
+ #~ "\" affichera quelque chose comme \"Titre de votre message : r&eacute;"
1383
+ #~ "sum&eacute; \". Cette fonctionnalit&eacute; est active si le param&egrave;"
1384
+ #~ "tre pr&eacute;c&eacute;dent do_pattern=1."
1385
+
1386
+ #~ msgid "Rate it"
1387
+ #~ msgstr "Notez le"
1388
+
1389
+ #~ msgid "on the official Plugin Directory!"
1390
+ #~ msgstr "sur le site officiel des plugins !"
1391
+
1392
+ #~ msgid "Do you love this plugin?"
1393
+ #~ msgstr "Si vous appreciez-vous ce plugin, "
1394
+
1395
+ #~ msgid "Buy me a beer!"
1396
+ #~ msgstr "payez moi une bi&egrave;re !"
1397
+
1398
+ #~ msgid "Before / after each post:"
1399
+ #~ msgstr "Avant/Apr&egrave;s chaque post :"
1400
+
1401
+ #~ msgid "Use content formatting tags"
1402
+ #~ msgstr "Utiliser les balises de formatage de contenu."
1403
+
1404
+ #~ msgid "Content format:"
1405
+ #~ msgstr "Format de contenu :"
1406
+
1407
+ #~ msgid "by"
1408
+ #~ msgstr "par"
1409
+
1410
+ #~ msgid "Wordpress Popular Posts Stats"
1411
+ #~ msgstr "Statistiques Wordpress Popular Posts"
lang/wordpress-popular-posts-ja.mo CHANGED
Binary file
lang/wordpress-popular-posts-ja.po CHANGED
@@ -2,1201 +2,1378 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-06-02 11:54-0430\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Hector Cabrera <hcabrerab@gmail.com>\n"
8
- "Language-Team: Héctor Cabrera <admin@rauru.com>\n"
9
- "Language: Japanese\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.5\n"
 
17
  "X-Poedit-SearchPath-0: .\n"
 
18
 
19
- #: admin.php:67 admin.php:73 admin.php:85 admin.php:96 admin.php:104
 
20
  msgid "Settings saved."
21
  msgstr "設定を保存しました。"
22
 
23
- #: admin.php:78
24
  msgid "Please provide the name of your custom field."
25
  msgstr "カスタムフィールドの名称を入れてください。"
26
 
27
- #: admin.php:345
28
  msgid ""
29
  "This operation will delete all entries from Wordpress Popular Posts' cache "
30
  "table and cannot be undone."
31
  msgstr ""
32
- "この操作は、WordPress Popular Postsのキャッシュ・テーブルにあるデータをすべて削除します。もとに"
33
- "もどすことはできません。"
34
 
35
- #: admin.php:345 admin.php:353
36
  msgid "Do you want to continue?"
37
  msgstr "続けてもいいですか?"
38
 
39
- #: admin.php:353
40
  msgid ""
41
  "This operation will delete all stored info from Wordpress Popular Posts' "
42
  "data tables and cannot be undone."
43
  msgstr ""
44
- "この操作は、WordPress Popular Postsのデータ・テーブルのデータをすべて削除します。もとにもどすことは"
45
- "できません。"
46
 
47
- #: admin.php:367
48
  msgid "Stats"
49
  msgstr "統計"
50
 
51
- #: admin.php:368
 
 
 
 
 
 
 
 
52
  msgid "FAQ"
53
  msgstr "よくある質問"
54
 
55
- #: admin.php:369
56
- msgid "Tools"
57
- msgstr "ツール"
58
 
59
- #: admin.php:373
60
  msgid ""
61
  "Click on each tab to see what are the most popular entries on your blog in "
62
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
63
  "Popular Posts was installed."
64
  msgstr ""
65
- "タブをクリックすると、24時間、1週間、1か月、WordPress Popular Postsを設置してから今日までの累積で、"
66
- "最も人気のあるコンテンツを表示します。"
67
 
68
- #: admin.php:379
69
  msgid "Order by comments"
70
  msgstr "コメント数でランキング"
71
 
72
- #: admin.php:380
73
  msgid "Order by views"
74
  msgstr "閲覧数でランキング"
75
 
76
- #: admin.php:381
77
  msgid "Order by avg. daily views"
78
  msgstr "1日の平均閲覧数でランキング"
79
 
80
- #: admin.php:383
81
  msgid "Post type"
82
  msgstr "投稿タイプ"
83
 
84
- #: admin.php:384
85
  msgid "Limit"
86
  msgstr "表示する数"
87
 
88
- #: admin.php:386 admin.php:805 admin.php:864 admin.php:884 admin.php:936
 
 
 
 
 
89
  msgid "Apply"
90
  msgstr "適用"
91
 
92
- #: admin.php:392 wordpress-popular-posts.php:382
93
  msgid "Last 24 hours"
94
  msgstr "24時間"
95
 
96
- #: admin.php:393 wordpress-popular-posts.php:383
97
  msgid "Last 7 days"
98
  msgstr "1週間"
99
 
100
- #: admin.php:394 wordpress-popular-posts.php:384
101
  msgid "Last 30 days"
102
  msgstr "1か月"
103
 
104
- #: admin.php:395 wordpress-popular-posts.php:385
105
  msgid "All-time"
106
  msgstr "累積"
107
 
108
- #: admin.php:416
109
- msgid "Frequently Asked Questions"
110
- msgstr "よくある質問"
 
111
 
112
- #: admin.php:420
113
- msgid "What does \"Title\" do?"
114
- msgstr "「タイトル」は何をするのですか?"
115
 
116
- #: admin.php:422
 
 
 
 
117
  msgid ""
118
- "It allows you to show a heading for your most popular posts listing. If left "
119
- "empty, no heading will be displayed at all."
120
  msgstr ""
121
- "人気投稿リストの見出しが表示されるようになります。空欄にすると、何も表示しません。"
 
122
 
123
- #: admin.php:425
124
- msgid "What is Time Range for?"
125
- msgstr "期間は何のためにあるのですか?"
126
 
127
- #: admin.php:427
128
- msgid ""
129
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
130
- "comments within the selected time range."
131
- msgstr "指定された期間の中で、最も閲覧数の多い投稿、または最もコメントの多い投稿を表示するようになります。"
132
- ""
133
 
134
- #: admin.php:430
135
- msgid "What is \"Sort post by\" for?"
136
- msgstr "「並び替え順」はなんのためにありのですか?"
137
 
138
- #: admin.php:432
139
- msgid ""
140
- "It allows you to decide whether to order your popular posts listing by total "
141
- "views, comments, or average views per day."
142
- msgstr ""
143
- "合計閲覧数、コメント数、1日の平均閲覧数のどれで投稿を並べるかを選択することができます。"
144
 
145
- #: admin.php:435
146
- msgid "What does \"Display post rating\" do?"
147
- msgstr "「投稿評価を表示する」というのは何ですか?"
148
 
149
- #: admin.php:437
150
- msgid ""
151
- "If checked, Wordpress Popular Posts will show how your readers are rating "
152
- "your most popular posts. This feature requires having WP-PostRatings plugin "
153
- "installed and enabled on your blog for it to work."
154
- msgstr ""
155
- "これをチェックすると、読者があなたの人気の投稿をどう評価しているかを示すことができます。"
156
- "WP-PostRatingsプラグインがインストールされていて、有効化してあれば利用することができます。"
157
 
158
- #: admin.php:440
159
- msgid "What does \"Shorten title\" do?"
160
- msgstr "「タイトルを短縮する」は何をするのですか?"
161
 
162
- #: admin.php:442
163
- msgid ""
164
- "If checked, all posts titles will be shortened to \"n\" characters/words. A "
165
- "new \"Shorten title to\" option will appear so you can set it to whatever "
166
- "you like."
167
- msgstr ""
168
- "これをチェックすると、全ての投稿タイトルが\"n\"文字または\"n\"語になります。「次の文字数までタイトルを縮める」という"
169
- "オプションが新しく現れますので、あなたの好きな数値に設定することができます。"
170
 
171
- #: admin.php:445
172
- msgid "What does \"Display post excerpt\" do?"
173
- msgstr "「投稿抜粋を表示する」は何をするものですか?"
174
 
175
- #: admin.php:447
176
- msgid ""
177
- "If checked, Wordpress Popular Posts will also include a small extract of "
178
- "your posts in the list. Similarly to the previous option, you will be able "
179
- "to decide how long the post excerpt should be."
180
  msgstr ""
181
- "これをチェックすると、投稿のリストに短い抜粋を含めることができるようになります。前のオプションと同様に、"
182
- "抜粋の長さを決めることができます。"
183
 
184
- #: admin.php:450
185
- msgid "What does \"Keep text format and links\" do?"
186
- msgstr "「テキスト・フォーマットとリンクを保存する」というのは何をするものですか?"
187
-
188
- #: admin.php:452
189
- msgid ""
190
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
191
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
192
- "the excerpt. Hyperlinks will remain intact, too."
193
- msgstr ""
194
- "これをチェックして、投稿抜粋の機能が有効になっていると、抜粋に含まれるスタイルタグ(boldやitalicなど)"
195
- "がそのまま使われます。ハイパーリンクもそのままになります。"
196
 
197
- #: admin.php:455
198
- msgid "What is \"Post type\" for?"
199
- msgstr "「投稿タイプ」とは何に使うのですか?"
200
 
201
- #: admin.php:457
202
- msgid ""
203
- "This filter allows you to decide which post types to show on the listing. By "
204
- "default, it will retrieve only posts and pages (which should be fine for "
205
- "most cases)."
206
  msgstr ""
207
- "このフィルタを通すと、どの投稿タイプが表示されるかを決めることができます。デフォルトでは、投稿と固定ページ"
208
- "が表示されます(ほとんどの場合、これで十分なはずです)。"
209
-
210
- #: admin.php:460
211
- msgid "What is \"Category(ies) ID(s)\" for?"
212
- msgstr "「カテゴリID」というのは何に使うのですか?"
213
 
214
- #: admin.php:462
215
- msgid ""
216
- "This filter allows you to select which categories should be included or "
217
- "excluded from the listing. A negative sign in front of the category ID "
218
- "number will exclude posts belonging to it from the list, for example. You "
219
- "can specify more than one ID with a comma separated list."
220
- msgstr ""
221
- "このフィルタを通すと、どのカテゴリをリストに表示するかを決めることができます。たとえば、カテゴリIDの前に"
222
- "マイナスの符号をつけると、リストに表示されなくなります。カンマで区切れば複数のIDを指定することが"
223
- "できます。"
224
 
225
- #: admin.php:465
226
- msgid "What is \"Author(s) ID(s)\" for?"
227
- msgstr "「投稿者ID」はどのように使うのですか?"
228
 
229
- #: admin.php:467
230
- msgid ""
231
- "Just like the Category filter, this one lets you filter posts by author ID. "
232
- "You can specify more than one ID with a comma separated list."
233
- msgstr ""
234
- "カテゴリ・フィルタと同様、これを指定すると、投稿者IDでフィルタをかけることができるようになります。"
235
- "カンマで区切れば複数のIDを指定することができます。"
236
 
237
- #: admin.php:470
238
- msgid "What does \"Display post thumbnail\" do?"
239
- msgstr "「投稿サムネールを表示する」というのは、何をするのですか?"
240
 
241
- #: admin.php:472
242
  msgid ""
243
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
244
- "of each post. You can set up the source of the thumbnail via Settings - "
245
- "Wordpress Popular Posts - Tools."
246
  msgstr ""
247
- "これをチェックすると、Popular Postsは投稿のサムネールを取得しようとします。表示するサムネール画像は、"
248
- "設定 &lt; WordPress Popular Posts &lt; ツール で設定することができます。"
249
 
250
- #: admin.php:475
251
- msgid "What does \"Display comment count\" do?"
252
- msgstr "「コメント数を表示する」というのは、何をするのですか?"
 
253
 
254
- #: admin.php:477
255
- msgid ""
256
- "If checked, Wordpress Popular Posts will display how many comments each "
257
- "popular post has got in the selected Time Range."
258
- msgstr ""
259
- "これをチェックすると、設定された期間で、投稿にいくつのコメントがついたかを表示することができます。"
260
 
261
- #: admin.php:480
262
- msgid "What does \"Display views\" do?"
263
- msgstr "「閲覧数を表示する」というのは何?"
264
 
265
- #: admin.php:482
266
  msgid ""
267
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
268
- "post has gotten in the selected Time Range."
 
269
  msgstr ""
270
- "これをチェックすると、個別の投稿が指定された期間内で何回閲覧されたかを表示するようになります。"
 
 
271
 
272
- #: admin.php:485
273
- msgid "What does \"Display author\" do?"
274
- msgstr "「投稿者を表示する」は何をするのですか?"
 
275
 
276
- #: admin.php:487
277
- msgid ""
278
- "If checked, Wordpress Popular Posts will display the name of the author of "
279
- "each entry listed."
280
- msgstr ""
281
- "これをチェックすると、リストのエントリを書いた投稿者名が表示されるようになります。"
282
 
283
- #: admin.php:490
284
- msgid "What does \"Display date\" do?"
285
- msgstr "「日付を表示する」というのは?"
286
 
287
- #: admin.php:492
288
- msgid ""
289
- "If checked, Wordpress Popular Posts will display the date when each popular "
290
- "posts was published."
291
- msgstr ""
292
- "これをチェックすると、投稿が公開された日付を表示するようになります。"
293
 
294
- #: admin.php:495
295
- msgid "What does \"Use custom HTML Markup\" do?"
296
- msgstr "「カスタムHTMLマークアップを使う」というのは、何をするのですか?"
297
 
298
- #: admin.php:497
299
- msgid ""
300
- "If checked, you will be able to customize the HTML markup of your popular "
301
- "posts listing. For example, you can decide whether to wrap your posts in an "
302
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
303
- "for you!"
304
- msgstr ""
305
- "これをチェックすると、リスト表示のHTMLマークアップを変更することができます。たとえば、番号付きリストにしたり、"
306
- "番号なしリストにしたり、divで囲ったりすることができます。xHTML/CSSの知識がある場合は、やってみてください。"
307
 
308
- #: admin.php:500
309
- msgid "What are \"Content Tags\"?"
310
- msgstr "「コンテンツ・タグ」って何?"
311
 
312
- #: admin.php:502
313
- msgid ""
314
- "Content Tags are codes to display a variety of items on your popular posts "
315
- "custom HTML structure. For example, setting it to \"{title}: "
316
- "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
317
- "post here\". For more Content Tags, see \"List of parameters accepted by "
318
- "wpp_get_mostpopular() and the [wpp] shortcode\"."
319
  msgstr ""
320
- "コンテンツ・タグは、カスタムHTMLでいろいろな項目を表示できるようになるコードです。たとえば、「{title}: "
321
- "{summary}」とすると、「投稿タイトル: 投稿抜粋」と表示されます。他のコンテント・タグについては、"
322
- "「wpp_get_postpopular()と[wpp]ショートコードで使えるパラメータ・リスト」をご覧ください。"
323
-
324
- #: admin.php:505
325
- msgid "What are \"Template Tags\"?"
326
- msgstr "「テンプレート・タグ」というのは?"
327
 
328
- #: admin.php:507
329
- msgid ""
330
- "Template Tags are simply php functions that allow you to perform certain "
331
- "actions. For example, Wordpress Popular Posts currently supports two "
332
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
333
  msgstr ""
334
- "テンプレート・タグは、簡単なPHP関数で、それに対応するアクションをさせることができます。たとえば、"
335
- "WordPress Popular Postsは現在、二つのテンプレート・タグを持っています。"
336
- "wpp_get_mostpopular()とwpp_get_views()です。"
337
-
338
- #: admin.php:510
339
- msgid "What are the template tags that Wordpress Popular Posts supports?"
340
- msgstr "WordPress Popular Postsがサポートするテンプレート・タグにはどんなものがありますか?"
341
-
342
- #: admin.php:512
343
- msgid ""
344
- "The following are the template tags supported by Wordpress Popular Posts"
345
- msgstr "次のものが使えます。"
346
-
347
- #: admin.php:516
348
- msgid "Template tag"
349
- msgstr "テンプレート・タグ"
350
-
351
- #: admin.php:517 admin.php:550
352
- msgid "What it does "
353
- msgstr "できること "
354
 
355
- #: admin.php:518
356
- msgid "Parameters"
357
- msgstr "パラメータ"
358
 
359
- #: admin.php:519 admin.php:553
360
- msgid "Example"
361
- msgstr ""
362
 
363
- #: admin.php:525
364
- msgid ""
365
- "Similar to the widget functionality, this tag retrieves the most popular "
366
- "posts on your blog. This function also accepts parameters so you can "
367
- "customize your popular listing, but these are not required."
368
  msgstr ""
369
- "ウィジェットを使うのと同じ結果になります。このタグを使うと、人気の投稿を表示することができます。"
370
- "この関数は、パラメータも受けつけるので、リスト表示をカスタマイズすることもできます。かならず"
371
- "カスタマイズしなければならないというわけではありません。"
372
 
373
- #: admin.php:526
374
  msgid ""
375
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
376
- "the [wpp] shortcode\"."
 
 
377
  msgstr ""
378
- "「wpp_get_mostpopular()が受けつけるパラメータ・リスト」と[wpp]ショートコードのところを見てください。"
 
 
379
 
380
- #: admin.php:531
 
381
  msgid ""
382
- "Displays the number of views of a single post. Post ID is required or it "
383
- "will return false."
 
 
 
384
  msgstr ""
385
- "個別投稿の閲覧数を表示します。投稿IDを指定することが必要です。それがないと、falseを返します。"
 
 
 
 
386
 
387
- #: admin.php:532
388
- msgid "Post ID"
389
- msgstr "投稿ID"
390
 
391
- #: admin.php:539
392
- msgid "What are \"shortcodes\"?"
393
- msgstr "「ショートコード」とは何ですか?"
394
 
395
- #: admin.php:541
396
- msgid ""
397
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
398
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
399
- "shortcode [wpp] will let you insert a list of the most popular posts in "
400
- "posts content and pages too! For more information about shortcodes, please "
401
- "visit"
402
- msgstr ""
403
- "ショートコードはBBコードに似ていて、[shortcode]みたいな書き方をすると、phpの関数が呼び出されることに"
404
- "なっています。WordPress Popular Postsでは、[wpp]というショートコードを書くと、投稿やページで"
405
- "人気の投稿がリスト表示されるようになります。ショートコードについての詳しい情報は、次のページを見てください。"
406
 
407
- #: admin.php:543
408
- msgid ""
409
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
410
- msgstr ""
411
- "wpp_get_mostpopular()と[wpp]ショートコードが受けつけるパラメータ・リスト"
412
 
413
- #: admin.php:545
 
414
  msgid ""
415
- "These parameters can be used by both the template tag wpp_get_most_popular() "
416
- "and the shortcode [wpp]."
 
417
  msgstr ""
418
- "これは、wpp_get_mostpopular()テンプレートタグと[wpp]ショートコードで使えるパラメータです。"
419
 
420
- #: admin.php:549
421
  msgid "Parameter"
422
  msgstr "パラメータ"
423
 
424
- #: admin.php:551
 
 
 
 
425
  msgid "Possible values"
426
  msgstr "使える値"
427
 
428
- #: admin.php:552
429
  msgid "Defaults to"
430
  msgstr "デフォルト値"
431
 
432
- #: admin.php:559
 
 
 
 
433
  msgid "Sets a heading for the list"
434
  msgstr "リストの見出しを設定する"
435
 
436
- #: admin.php:560 admin.php:567 admin.php:574 admin.php:602 admin.php:609
437
- #: admin.php:616 admin.php:623 admin.php:714 admin.php:728 admin.php:735
438
- #: admin.php:749 admin.php:756
 
439
  msgid "Text string"
440
  msgstr "文字列"
441
 
442
- #: admin.php:561 wordpress-popular-posts.php:126
443
  msgid "Popular Posts"
444
  msgstr "人気の投稿"
445
 
446
- #: admin.php:566
447
  msgid "Set the opening tag for the heading of the list"
448
  msgstr "リストの見出しの前につけるHTMLタグを設定する"
449
 
450
- #: admin.php:573
451
  msgid "Set the closing tag for the heading of the list"
452
  msgstr "リストの見出しの後につけるHTMLタグを設定する"
453
 
454
- #: admin.php:580
455
  msgid "Sets the maximum number of popular posts to be shown on the listing"
456
  msgstr "リストに表示する投稿数の上限を設定する"
457
 
458
- #: admin.php:581 admin.php:630 admin.php:644 admin.php:665 admin.php:672
 
459
  msgid "Positive integer"
460
  msgstr "正の整数"
461
 
462
- #: admin.php:587
463
  msgid ""
464
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
465
  "the time range specified by you"
466
- msgstr ""
467
- "設定された期間内で最も人気のあるエントリを表示する"
 
 
 
 
 
 
468
 
469
- #: admin.php:594
470
  msgid "Sets the sorting option of the popular posts"
471
  msgstr "人気の投稿並び順を決める"
472
 
473
- #: admin.php:595
474
  msgid "(for average views per day)"
475
  msgstr "(1日の平均閲覧数)"
476
 
477
- #: admin.php:601
478
  msgid "Defines the type of posts to show on the listing"
479
  msgstr "リストに表示する投稿のタイプを決める"
480
 
481
- #: admin.php:608
482
  msgid ""
483
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
484
  "form the listing."
485
- msgstr ""
486
- "これを設定すると、特定の投稿IDが表示されないようになります。"
487
 
488
- #: admin.php:610 admin.php:617 admin.php:624
489
  msgid "None"
490
  msgstr "なし"
491
 
492
- #: admin.php:615
493
  msgid ""
494
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
495
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
496
  "will be excluded instead."
497
  msgstr ""
498
- "これを設定すると、指定されたカテゴリIDのエントリが全て表示されるようになります。マイナス符号を使うと、"
499
- "そのカテゴリは表示から外されるようになります。"
500
 
501
- #: admin.php:622
502
  msgid ""
503
  "If set, Wordpress Popular Posts will retrieve all entries created by "
504
  "specified author(s) ID(s)."
505
  msgstr ""
506
- "これを設定すると、指定された投稿者IDのエントリが全て表示されるようになります。"
 
507
 
508
- #: admin.php:629
509
  msgid ""
510
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
511
  "characters whenever possible"
512
- msgstr ""
513
- "これを設定すると、投稿タイトルを\"n\"文字になるようにします。"
514
 
515
- #: admin.php:636
516
  msgid ""
517
  "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
518
  "words instead of characters"
519
  msgstr ""
520
- "これを1に設定すると、タイトルを\"n\"文字ではなくて、\"n\"語になるようにします(日本語では意味がありません)。"
 
521
 
522
- #: admin.php:643
523
  msgid ""
524
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
525
  "characters long from the content of each post listed as popular"
526
  msgstr ""
527
  "これを設定すると、投稿のコンテンツから\"n\"文字の抜粋を作り、表示に含めます。"
528
 
529
- #: admin.php:650
530
  msgid ""
531
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
532
  "italic, etc) and hyperlinks found in the excerpt"
533
  msgstr ""
534
- "これを設定すると、抜粋に含まれるスタイル・タグ(strongやitalicなど)やハイパーリンクをすべて"
535
- "そのまま使うようになります。"
536
 
537
- #: admin.php:657
538
  msgid ""
539
  "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
540
  "instead of characters"
541
  msgstr ""
542
- "これを1に設定すると、抜粋の長さが\"n\"文字ではなくて、\"n\"語の長さになります(日本語では意味がありません)。"
 
543
 
544
- #: admin.php:664
545
  msgid ""
546
  "If set, and if your current server configuration allows it, you will be able "
547
  "to display thumbnails of your posts. This attribute sets the width for "
548
  "thumbnails"
549
  msgstr ""
550
- "これを設定し、サーバ設定が許可していれば、投稿に含まれるサムネールを表示することができるようになります。"
551
- "この属性はサムネールの幅を設定します。"
552
 
553
- #: admin.php:671
554
  msgid ""
555
  "If set, and if your current server configuration allows it, you will be able "
556
  "to display thumbnails of your posts. This attribute sets the height for "
557
  "thumbnails"
558
  msgstr ""
559
- "これを設定し、サーバ設定が許可していれば、投稿に含まれるサムネールを表示することができるようになります。"
560
- "この属性はサムネールの高さを設定します。"
561
 
562
- #: admin.php:678
563
  msgid ""
564
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
565
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
566
  "entries"
567
  msgstr ""
568
- "これを設定し、WP-PostRatingsプラグインが有効化されていれば、エントリの評価を訪問者に示すことができる"
569
- "ようになります。"
570
 
571
- #: admin.php:685
572
  msgid ""
573
  "If set, Wordpress Popular Posts will show how many comments each popular "
574
  "post has got until now"
575
  msgstr ""
576
- "これを設定すると、それぞれの投稿にこれまでいくつのコメントがついたかを表示することができます。"
 
577
 
578
- #: admin.php:692
579
  msgid ""
580
  "If set, Wordpress Popular Posts will show how many views each popular post "
581
  "has got since it was installed"
582
  msgstr ""
583
- "これを設定すると、WordPress Popular Postsをインストールしてからの閲覧数を表示することができる"
584
- "ようになります。"
585
 
586
- #: admin.php:699
587
  msgid ""
588
  "If set, Wordpress Popular Posts will show who published each popular post on "
589
  "the list"
590
  msgstr ""
591
- "これを設定すると、リストに表示される投稿を公開した作者を表示することができるようになります。"
 
592
 
593
- #: admin.php:706
594
  msgid ""
595
  "If set, Wordpress Popular Posts will display the date when each popular post "
596
  "on the list was published"
597
  msgstr ""
598
  "これを設定すると、それぞれの投稿が公開された日付を表示するようになります。"
599
 
600
- #: admin.php:713
601
  msgid "Sets the date format"
602
  msgstr "日付フォーマットを設定する"
603
 
604
- #: admin.php:720
605
  msgid "If set, Wordpress Popular Posts will display the category"
606
  msgstr "これを設定すると、カテゴリが表示されます。"
607
 
608
- #: admin.php:727
609
  msgid "Sets the opening tag for the listing"
610
  msgstr "リストの開始タグを指定する。"
611
 
612
- #: admin.php:734
613
  msgid "Sets the closing tag for the listing"
614
  msgstr "リストの終了タグを指定する。"
615
 
616
- #: admin.php:741
617
  msgid "Sets the HTML structure of each post"
618
  msgstr "それぞれの投稿のHTML構造を設定します。"
619
 
620
- #: admin.php:742
621
  msgid "Text string, custom HTML"
622
  msgstr "文字列。カスタムHTML。"
623
 
624
- #: admin.php:742
625
  msgid "Available Content Tags"
626
  msgstr "利用できるコンテンツ・タグ"
627
 
628
- #: admin.php:742
629
  msgid "displays thumbnail linked to post/page"
630
  msgstr "投稿や固定ページに結びついたサムネールを表示します。"
631
 
632
- #: admin.php:742
633
  msgid "displays linked post/page title"
634
  msgstr "投稿や固定ページへのリンクを表示します。"
635
 
636
- #: admin.php:742
637
  msgid ""
638
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
639
  msgstr ""
640
- "投稿や固定ページの抜粋を表示します。抜粋の長さが0より大きな数値になっていることが必要です。"
 
641
 
642
- #: admin.php:742
643
  msgid "displays the default stats tags"
644
  msgstr "デフォルトの統計タグを表示します。"
645
 
646
- #: admin.php:742
647
  msgid ""
648
  "displays post/page current rating, requires WP-PostRatings installed and "
649
  "enabled"
650
  msgstr ""
651
- "投稿と固定ページの現在の評価を表示します。WP-PostRatingsがインストールされていて、有効化している"
652
- "ことが必要です。"
 
 
 
 
 
 
 
 
 
653
 
654
- #: admin.php:742
655
  msgid "outputs the URL of the post/page"
656
  msgstr "投稿や固定ページのURLを出力します。"
657
 
658
- #: admin.php:742
659
  msgid "displays post/page title, no link"
660
  msgstr "投稿や固定ページのタイトルをリンクなしで表示します。"
661
 
662
- #: admin.php:742
663
  msgid "displays linked author name, requires stats_author=1"
664
  msgstr "投稿者名へのリンクを表示します。stats_author=1の設定が必要です。"
665
 
666
- #: admin.php:742
667
  msgid "displays linked category name, requires stats_category=1"
668
  msgstr "カテゴリ名へのリンクを表示します。stats_category=1の設定が必要です。"
669
 
670
- #: admin.php:742
671
  msgid "displays views count only, no text"
672
  msgstr "閲覧数の数値だけを表示します。"
673
 
674
- #: admin.php:742
675
  msgid "displays comments count only, no text, requires stats_comments=1"
676
  msgstr "コメント数の数値だけを表示します。stats_comments=1の設定が必要です。"
677
 
678
- #: admin.php:748
679
- msgid "Sets the opening tag for each item on the list"
680
- msgstr "リスト項目の開始タグを設定します。"
681
-
682
- #: admin.php:755
683
- msgid "Sets the closing tag for each item on the list"
684
- msgstr "リスト項目の終了タグを設定します。"
685
 
686
- #: admin.php:762
687
  msgid ""
688
- "If set, this option will allow you to decide the order of the contents "
689
- "within each item on the list."
690
  msgstr ""
691
- "これを設定すると、リスト表示される項目の順序を決めることができます。"
 
 
 
 
 
692
 
693
- #: admin.php:769
694
  msgid ""
695
- "If set, you can decide the order of each content inside a single item on the "
696
- "list. For example, setting it to \"{title}: {summary}\" would output "
697
- "something like \"Your Post Title: summary here\". This attribute requires "
698
- "do_pattern to be true."
699
  msgstr ""
700
- "これを設定すると、リスト表示される個別の項目の中で何をどの順序で表示するかを決めることができます。"
701
- "たとえば、\"{title}: {summary}\"とすると、\"投稿タイトル: サマリ\"という形で表示されます。"
702
- "この属性を使うには、do_patternがtrueに設定されていることが必要です。"
703
 
704
- #: admin.php:770
705
- msgid "Available tags"
706
- msgstr "利用できるタグ"
707
 
708
- #: admin.php:785
709
  msgid ""
710
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
 
711
  msgstr ""
712
- "ここでは、WordPress Popular Postsをカスタマイズできるオプションのリストを見ることができます。"
 
713
 
714
- #: admin.php:787
715
- msgid "Views logging behavior"
716
- msgstr "閲覧数を記録するやり方"
717
 
718
- #: admin.php:793
719
- msgid "Log views from"
720
- msgstr "次のものから閲覧数を記録します。"
 
 
 
 
 
 
721
 
722
- #: admin.php:796
723
- msgid "Visitors only"
724
- msgstr "訪問者のみ"
725
 
726
- #: admin.php:797
727
- msgid "Everyone"
728
- msgstr "ログイン・ユーザも含める"
 
 
 
 
 
 
729
 
730
- #: admin.php:814
731
- msgid "Thumbnail source"
732
- msgstr "サムネールの場所"
733
 
734
- #: admin.php:820
735
- msgid "Default thumbnail"
736
- msgstr "デフォルトのサムネール"
 
 
 
 
 
737
 
738
- #: admin.php:822
739
- msgid "Upload thumbnail"
740
- msgstr "サムネールをアップロードする"
 
741
 
742
- #: admin.php:825
743
  msgid ""
744
- "How-to: upload (or select) an image, set Size to Full and click on Upload. "
745
- "After it's done, hit on Apply to save changes"
 
746
  msgstr ""
747
- "やり方: 画像をアップロードまたは選択し、サイズをフルサイズに設定して、アップロードをクリックしてください。"
748
- "終了したら、変更を保存をクリックします。"
 
749
 
750
- #: admin.php:827
751
- msgid "Preview"
752
- msgstr "プレビュー"
753
 
754
- #: admin.php:835
755
- msgid "Pick image from"
756
- msgstr "次から画像を選ぶ"
 
 
 
 
 
 
757
 
758
- #: admin.php:838
759
- msgid "Featured image"
760
- msgstr "アイキャッチ画像"
761
 
762
- #: admin.php:839
763
- msgid "First image on post"
764
- msgstr "投稿に最初に現れる画像"
 
 
 
 
 
 
 
765
 
766
- #: admin.php:840
767
- msgid "Custom field"
768
- msgstr "カスタム・フィールド"
769
 
770
- #: admin.php:843
771
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
772
- msgstr "ここからサムネール画像を取得するようにする。"
 
 
 
 
773
 
774
- #: admin.php:847
775
- msgid "Custom field name"
776
- msgstr "カスタム・フィールドの名前"
777
 
778
- #: admin.php:853
779
- msgid "Resize image from Custom field?"
780
- msgstr "カスタム・フィールドの画像をサイズ変更しますか?"
 
 
 
 
 
 
781
 
782
- #: admin.php:856
783
- msgid "No, I will upload my own thumbnail"
784
- msgstr "いいえ、自分のサムネールをアップロードします。"
785
 
786
- #: admin.php:857
787
- msgid "Yes"
788
- msgstr "はい"
 
 
 
 
789
 
790
- #: admin.php:874
791
- msgid "Wordpress Popular Posts Stylesheet"
792
- msgstr "WordPress Popular Postsのスタイルシート"
793
 
794
- #: admin.php:875
795
  msgid ""
796
- "By default, the plugin includes a stylesheet called wpp.css which you can "
797
- "use to style your popular posts listing. If you wish to use your own "
798
- "stylesheet or do not want it to have it included in the header section of "
799
- "your site, use this."
800
  msgstr ""
801
- "人気の投稿リストのスタイルを指定するのに、wpp.cssという名前のスタイルシートがデフォルトで含まれています。"
802
- "自分のスタイルシートを使ったり、このスタイルシートがヘッダ・セクションで読み込まれるのがいやな場合は、これを"
803
- "使ってください。"
804
 
805
- #: admin.php:880 admin.php:899
806
- msgid "Enabled"
807
- msgstr "有効"
808
 
809
- #: admin.php:881 admin.php:898
810
- msgid "Disabled"
811
- msgstr "無効"
 
 
 
 
812
 
813
- #: admin.php:890
814
- msgid "Data tools"
815
- msgstr "データを扱う道具"
816
 
817
- #: admin.php:895
818
- msgid "Ajaxify widget"
819
- msgstr "Ajaxを使うウィジェット"
 
 
 
 
 
 
 
820
 
821
- #: admin.php:903
 
822
  msgid ""
823
- "If you are using a caching plugin such as WP Super Cache, enabling this "
824
- "feature will keep the popular list from being cached by it"
825
  msgstr ""
826
- ""
827
- "WP Super Cacheのようなキャッシュ系プラグインを使っている場合、この機能を有効にすると、"
828
- "人気投稿リストがキャッシュされるのを防ぐことができます。"
829
 
830
- #: admin.php:907
831
- msgid "Popular posts listing refresh interval"
832
- msgstr "人気投稿リストの書き換え間隔"
833
 
834
- #: admin.php:910
835
- msgid "Live"
836
- msgstr "同期"
 
 
 
 
 
 
 
837
 
838
- #: admin.php:911
839
- msgid "Custom interval"
840
- msgstr "間隔を指定"
841
 
842
- #: admin.php:915
 
843
  msgid ""
844
- "Sets how often the listing should be updated. For most sites the Live option "
845
- "should be fine, however if you are experiencing slowdowns or your blog gets "
846
- "a lot of visitors then you might want to change the refresh rate"
 
 
847
  msgstr ""
848
- "リストがどれくらいの間隔で書き換えられるかを設定します。ほとんどのサイトでは、「同期」を設定して問題ないでしょう。"
849
- "速度が遅くなったり、訪問者が非常に多いときは、書き換えの間隔を変えてみてください。"
 
 
850
 
851
- #: admin.php:919
852
- msgid "Refresh interval"
853
- msgstr "書き換えの間隔"
854
 
855
- #: admin.php:923
856
- msgid "Hour(s)"
857
- msgstr "時間"
 
 
 
 
 
 
858
 
859
- #: admin.php:924
860
- msgid "Day(s)"
861
- msgstr ""
 
 
862
 
863
- #: admin.php:925
864
- msgid "Week(s)"
865
- msgstr "週"
 
866
 
867
- #: admin.php:926
868
- msgid "Month(s)"
869
- msgstr "か月"
870
 
871
- #: admin.php:927
872
- msgid "Year(s)"
873
- msgstr ""
 
 
 
 
 
 
 
 
874
 
875
- #: admin.php:930
876
- msgid "Really? That long?"
877
- msgstr "本当にこんなに長くていいのですか?"
 
 
 
878
 
879
- #: admin.php:945
880
  msgid ""
881
- "Wordpress Popular Posts maintains data in two separate tables: one for "
882
- "storing the most popular entries in the past 30 days (from now on, \"cache"
883
- "\"), and another one to keep the All-time data (from now on, \"historical "
884
- "data\" or just \"data\"). If for some reason you need to clear the cache "
885
- "table, or even both historical and cache tables, please use the buttons "
886
- "below to do so."
887
- msgstr ""
888
- "WordPress Popular Postsは2つのテーブルにデータを保存しています。1つは過去1か月間最も人気の"
889
- "あったエントリを保存します(これを「キャッシュ」と呼びます)。もう1つは、累積のデータを保存します(これを「累積"
890
- "データ」または単に「データ」と呼びます)。何かの理由で、キャッシュや累積データを削除する必要がある場合は、"
891
- "下のボタンを使ってください。"
892
-
893
- #: admin.php:946
894
- msgid "Empty cache"
895
- msgstr "キャッシュを空にする"
896
 
897
- #: admin.php:946
898
- msgid "Use this button to manually clear entries from WPP cache only"
899
- msgstr "WPPのキャッシュだけを手動で空にするにはこのボタンを使ってください。"
900
 
901
- #: admin.php:947
902
- msgid "Clear all data"
903
- msgstr "全てのデータを空にする"
904
 
905
- #: admin.php:947
906
- msgid "Use this button to manually clear entries from all WPP data tables"
907
- msgstr "WPPの全データを手動で空にしたいときには、このボタンを使ってください。"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
908
 
909
- #: admin.php:953
910
  msgid "Do you like this plugin?"
911
  msgstr "このプラグインが気に入りましたか?"
912
 
913
- #: admin.php:953
914
- msgid "Rate Wordpress Popular Posts!"
915
- msgstr "WordPress Popular Postsを評価してください!"
916
-
917
- #: admin.php:953
918
- msgid "Rate it"
919
- msgstr "評価する"
920
-
921
- #: admin.php:953
922
- msgid "on the official Plugin Directory!"
923
- msgstr "公式プラグイン・ディレクトリで!"
924
 
925
- #: admin.php:954
926
- msgid "Do you love this plugin?"
927
- msgstr "このプラグインが大好きですか?"
 
928
 
929
- #: admin.php:954 admin.php:955
930
- msgid "Buy me a beer!"
931
- msgstr "ビールを奢ってください!"
932
 
933
- #: admin.php:954
 
934
  msgid ""
935
- "Each donation motivates me to keep releasing free stuff for the Wordpress "
936
- "community!"
937
  msgstr ""
938
- "寄付は、WordPressコミュニティのためにフリー・ソフトをリリースし続けるモチベーションになります!"
939
 
940
- #: wordpress-popular-posts.php:129
941
- msgid "The most Popular Posts on your blog."
942
- msgstr "あなたのブログで最も人気のある投稿。"
943
 
944
- #: wordpress-popular-posts.php:376
945
- msgid "Title:"
 
946
  msgstr "タイトル:"
947
 
948
- #: wordpress-popular-posts.php:376 wordpress-popular-posts.php:378
949
- #: wordpress-popular-posts.php:380 wordpress-popular-posts.php:388
950
- #: wordpress-popular-posts.php:399 wordpress-popular-posts.php:401
951
- #: wordpress-popular-posts.php:408 wordpress-popular-posts.php:412
952
- #: wordpress-popular-posts.php:425 wordpress-popular-posts.php:439
953
- #: wordpress-popular-posts.php:451 wordpress-popular-posts.php:452
954
- #: wordpress-popular-posts.php:453 wordpress-popular-posts.php:454
955
- #: wordpress-popular-posts.php:464 wordpress-popular-posts.php:470
956
  msgid "What is this?"
957
  msgstr "これは何ですか?"
958
 
959
- #: wordpress-popular-posts.php:378
960
- msgid "Show up to:"
 
961
  msgstr "表示する数"
962
 
963
- #: wordpress-popular-posts.php:379
964
  msgid "posts"
965
  msgstr "投稿"
966
 
967
- #: wordpress-popular-posts.php:380
968
- msgid "Time Range:"
969
- msgstr "時間間隔"
970
-
971
- #: wordpress-popular-posts.php:388
972
- msgid "Sort posts by:"
973
  msgstr "並べ替え順"
974
 
975
- #: wordpress-popular-posts.php:390
976
  msgid "Comments"
977
  msgstr "コメント"
978
 
979
- #: wordpress-popular-posts.php:391
980
  msgid "Total views"
981
  msgstr "累積閲覧数"
982
 
983
- #: wordpress-popular-posts.php:392
984
  msgid "Avg. daily views"
985
  msgstr "1日の平均閲覧数"
986
 
987
- #: wordpress-popular-posts.php:397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
988
  msgid "Posts settings"
989
  msgstr "投稿設定"
990
 
991
- #: wordpress-popular-posts.php:399
992
  msgid "Display post rating"
993
  msgstr "投稿評価を表示する"
994
 
995
- #: wordpress-popular-posts.php:401
996
  msgid "Shorten title"
997
  msgstr "タイトルを短縮する"
998
 
999
- #: wordpress-popular-posts.php:404
1000
  msgid "Shorten title to"
1001
  msgstr "タイトル短縮のし方"
1002
 
1003
- #: wordpress-popular-posts.php:405 wordpress-popular-posts.php:415
1004
  msgid "characters"
1005
  msgstr "文字"
1006
 
1007
- #: wordpress-popular-posts.php:406 wordpress-popular-posts.php:416
1008
  msgid "words"
1009
  msgstr "語"
1010
 
1011
- #: wordpress-popular-posts.php:408
1012
  msgid "Display post excerpt"
1013
  msgstr "抜粋を表示する"
1014
 
1015
- #: wordpress-popular-posts.php:411
1016
- msgid "Excerpt Properties"
1017
- msgstr "抜粋の扱い方"
1018
-
1019
- #: wordpress-popular-posts.php:412
1020
  msgid "Keep text format and links"
1021
  msgstr "フォーマットとリンクを保持する"
1022
 
1023
- #: wordpress-popular-posts.php:413
1024
- msgid "Excerpt length:"
 
1025
  msgstr "抜粋の長さ"
1026
 
1027
- #: wordpress-popular-posts.php:425
1028
- msgid "Filters:"
1029
- msgstr "フィルタ:"
1030
-
1031
- #: wordpress-popular-posts.php:426
1032
- msgid "Post type(s):"
1033
- msgstr "投稿タイプ:"
1034
-
1035
- #: wordpress-popular-posts.php:428
1036
- msgid "Post(s) ID(s) to exclude:"
1037
- msgstr "表示しない投稿ID"
1038
-
1039
- #: wordpress-popular-posts.php:430
1040
- msgid "Category(ies) ID(s):"
1041
- msgstr "カテゴリID"
1042
-
1043
- #: wordpress-popular-posts.php:432
1044
- msgid "Author(s) ID(s):"
1045
- msgstr "投稿者ID"
1046
-
1047
- #: wordpress-popular-posts.php:438
1048
- msgid "Thumbnail settings"
1049
- msgstr "サムネール設定"
1050
-
1051
- #: wordpress-popular-posts.php:439
1052
  msgid "Display post thumbnail"
1053
  msgstr "投稿サムネールを表示する"
1054
 
1055
- #: wordpress-popular-posts.php:441
1056
- msgid "Width:"
 
1057
  msgstr "幅:"
1058
 
1059
- #: wordpress-popular-posts.php:442 wordpress-popular-posts.php:444
1060
  msgid "px"
1061
  msgstr "ピクセル"
1062
 
1063
- #: wordpress-popular-posts.php:443
1064
- msgid "Height:"
 
1065
  msgstr "高さ:"
1066
 
1067
- #: wordpress-popular-posts.php:450
1068
  msgid "Stats Tag settings"
1069
  msgstr "統計タグ設定"
1070
 
1071
- #: wordpress-popular-posts.php:451
1072
  msgid "Display comment count"
1073
  msgstr "コメント数を表示する"
1074
 
1075
- #: wordpress-popular-posts.php:452
1076
  msgid "Display views"
1077
  msgstr "閲覧数を表示する"
1078
 
1079
- #: wordpress-popular-posts.php:453
1080
  msgid "Display author"
1081
  msgstr "投稿者を表示する"
1082
 
1083
- #: wordpress-popular-posts.php:454
1084
  msgid "Display date"
1085
  msgstr "日付を表示する"
1086
 
1087
- #: wordpress-popular-posts.php:457
1088
  msgid "Date Format"
1089
  msgstr "日付フォーマット"
1090
 
1091
- #: wordpress-popular-posts.php:464
 
 
 
 
 
1092
  msgid "Display category"
1093
  msgstr "カテゴリを表示する"
1094
 
1095
- #: wordpress-popular-posts.php:469
1096
  msgid "HTML Markup settings"
1097
  msgstr "HTMLマークアップの設定"
1098
 
1099
- #: wordpress-popular-posts.php:470
1100
  msgid "Use custom HTML Markup"
1101
  msgstr "カスタムHTMLマークアップを使う"
1102
 
1103
- #: wordpress-popular-posts.php:473
1104
- msgid "Before / after title:"
 
1105
  msgstr "タイトルの前/後:"
1106
 
1107
- #: wordpress-popular-posts.php:475
1108
- msgid "Before / after Popular Posts:"
 
1109
  msgstr "投稿の前/後:"
1110
 
1111
- #: wordpress-popular-posts.php:478
1112
- msgid "Post HTML Markup:"
 
1113
  msgstr "投稿用HTMLマークアップ:"
1114
 
1115
- #: wordpress-popular-posts.php:628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1116
  msgid "Success! The cache table has been cleared!"
1117
  msgstr "成功しました! キャッシュ・テーブルは空になっています!"
1118
 
1119
- #: wordpress-popular-posts.php:630
1120
  msgid "Error: cache table does not exist."
1121
  msgstr "エラー: キャッシュ・テーブルが存在しません。"
1122
 
1123
- #: wordpress-popular-posts.php:636
1124
  msgid "Success! All data have been cleared!"
1125
  msgstr "成功しました! 全てのデータが削除されました!"
1126
 
1127
- #: wordpress-popular-posts.php:638
1128
  msgid "Error: one or both data tables are missing."
1129
  msgstr "エラー: テーブルの1つか、あるいは2つともなくなっています。"
1130
 
1131
- #: wordpress-popular-posts.php:641
1132
  msgid "Invalid action."
1133
  msgstr "不正な操作"
1134
 
1135
- #: wordpress-popular-posts.php:644
1136
  msgid ""
1137
  "Sorry, you do not have enough permissions to do this. Please contact the "
1138
  "site administrator for support."
1139
  msgstr ""
1140
- "申し訳ありませんが、この操作を行う権限がありません。サイト管理者にサポートをお願いしてください。"
 
1141
 
1142
- #: wordpress-popular-posts.php:1068
1143
  msgid "Sorry. No data so far."
1144
  msgstr "申し訳ありませんが、まだデータがありません。"
1145
 
1146
- #: wordpress-popular-posts.php:1150
1147
- msgid "comment"
1148
- msgstr "コメント"
1149
-
1150
- #: wordpress-popular-posts.php:1150
1151
- msgid "comments"
1152
  msgstr "コメント"
1153
 
1154
- #: wordpress-popular-posts.php:1158
1155
- msgid "view per day"
1156
- msgstr "ビュー(本日)"
1157
-
1158
- #: wordpress-popular-posts.php:1158
1159
- msgid "views per day"
1160
  msgstr "ビュー(本日)"
1161
 
1162
- #: wordpress-popular-posts.php:1162
1163
- msgid "view"
 
1164
  msgstr "ビュー"
1165
 
1166
- #: wordpress-popular-posts.php:1162
1167
- msgid "views"
1168
- msgstr "ビュー"
1169
-
1170
- #: wordpress-popular-posts.php:1171
1171
- msgid "by"
1172
- msgstr "投稿者:"
1173
 
1174
- #: wordpress-popular-posts.php:1175
1175
- msgid "posted on"
 
1176
  msgstr "投稿日付"
1177
 
1178
- #: wordpress-popular-posts.php:1183
1179
- msgid "under"
 
1180
  msgstr "カテゴリ:"
1181
 
1182
- #: wordpress-popular-posts.php:1753
1183
- msgid "Upload"
1184
- msgstr "アップロード"
 
 
 
1185
 
1186
- #: wordpress-popular-posts.php:1765
1187
- msgid ""
1188
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
1189
- "at least version 2.8 to function correctly. Please update your blog via "
1190
- "Tools &gt; Upgrade."
1191
- msgstr ""
1192
- "お使いのWordPressは古すぎます。WordPress Popular Postsが正常に働くには、バージョン2.8以上が"
1193
- "必須です。ツール &gt; 更新 でブログをアップデートしてください。"
1194
 
1195
- #: wordpress-popular-posts.php:1774
1196
- msgid ""
1197
- "Your PHP installation is too old. Wordpress Popular Posts Plugin requires at "
1198
- "least PHP v5.2.0 to function correctly. Please contact your hosting provider "
1199
- "and ask them to upgrade PHP to 5.2.x or higher."
1200
- msgstr ""
1201
- "お使いのPHPは古すぎます。WordPress Popular Postsが正常に働くには、PHP 5.2.0以上が必須です。"
1202
- "お使いのホスティング会社に連絡をとって、PHP 5.2.xかそれ以上にアップグレードするように要望してください。"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-05-27 18:13-0430\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
8
+ "Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
9
+ "Language: ja\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n\n"
15
  "X-Poedit-Basepath: .\n"
16
+ "X-Generator: Poedit 1.6.5\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SearchPath-1: ..\n"
20
 
21
+ #: ../views/admin.php:23 ../views/admin.php:32 ../views/admin.php:46
22
+ #: ../views/admin.php:67
23
  msgid "Settings saved."
24
  msgstr "設定を保存しました。"
25
 
26
+ #: ../views/admin.php:38
27
  msgid "Please provide the name of your custom field."
28
  msgstr "カスタムフィールドの名称を入れてください。"
29
 
30
+ #: ../views/admin.php:84
31
  msgid ""
32
  "This operation will delete all entries from Wordpress Popular Posts' cache "
33
  "table and cannot be undone."
34
  msgstr ""
35
+ "この操作は、WordPress Popular Postsのキャッシュ・テーブルにあるデータをすべて"
36
+ "削除します。もとにもどすことはできません。"
37
 
38
+ #: ../views/admin.php:84 ../views/admin.php:92
39
  msgid "Do you want to continue?"
40
  msgstr "続けてもいいですか?"
41
 
42
+ #: ../views/admin.php:92
43
  msgid ""
44
  "This operation will delete all stored info from Wordpress Popular Posts' "
45
  "data tables and cannot be undone."
46
  msgstr ""
47
+ "この操作は、WordPress Popular Postsのデータ・テーブルのデータをすべて削除しま"
48
+ "す。もとにもどすことはできません。"
49
 
50
+ #: ../views/admin.php:109
51
  msgid "Stats"
52
  msgstr "統計"
53
 
54
+ #: ../views/admin.php:110
55
+ msgid "Tools"
56
+ msgstr "ツール"
57
+
58
+ #: ../views/admin.php:111 ../views/admin.php:662
59
+ msgid "Parameters"
60
+ msgstr "パラメータ"
61
+
62
+ #: ../views/admin.php:112
63
  msgid "FAQ"
64
  msgstr "よくある質問"
65
 
66
+ #: ../views/admin.php:113
67
+ msgid "About"
68
+ msgstr ""
69
 
70
+ #: ../views/admin.php:124
71
  msgid ""
72
  "Click on each tab to see what are the most popular entries on your blog in "
73
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
74
  "Popular Posts was installed."
75
  msgstr ""
76
+ "タブをクリックすると、24時間、1週間、1か月、WordPress Popular Postsを設置して"
77
+ "から今日までの累積で、最も人気のあるコンテンツを表示します。"
78
 
79
+ #: ../views/admin.php:130
80
  msgid "Order by comments"
81
  msgstr "コメント数でランキング"
82
 
83
+ #: ../views/admin.php:131
84
  msgid "Order by views"
85
  msgstr "閲覧数でランキング"
86
 
87
+ #: ../views/admin.php:132
88
  msgid "Order by avg. daily views"
89
  msgstr "1日の平均閲覧数でランキング"
90
 
91
+ #: ../views/admin.php:134
92
  msgid "Post type"
93
  msgstr "投稿タイプ"
94
 
95
+ #: ../views/admin.php:135
96
  msgid "Limit"
97
  msgstr "表示する数"
98
 
99
+ #: ../views/admin.php:136 ../views/form.php:32
100
+ msgid "Display only posts published within the selected Time Range"
101
+ msgstr ""
102
+
103
+ #: ../views/admin.php:138 ../views/admin.php:215 ../views/admin.php:281
104
+ #: ../views/admin.php:318
105
  msgid "Apply"
106
  msgstr "適用"
107
 
108
+ #: ../views/admin.php:144 ../views/form.php:26
109
  msgid "Last 24 hours"
110
  msgstr "24時間"
111
 
112
+ #: ../views/admin.php:145 ../views/form.php:27
113
  msgid "Last 7 days"
114
  msgstr "1週間"
115
 
116
+ #: ../views/admin.php:146 ../views/form.php:28
117
  msgid "Last 30 days"
118
  msgstr "1か月"
119
 
120
+ #: ../views/admin.php:147 ../views/form.php:29
121
  msgid "All-time"
122
  msgstr "累積"
123
 
124
+ #: ../views/admin.php:169
125
+ #, fuzzy
126
+ msgid "Thumbnails"
127
+ msgstr "サムネールの場所"
128
 
129
+ #: ../views/admin.php:174
130
+ msgid "Default thumbnail"
131
+ msgstr "デフォルトのサムネール"
132
 
133
+ #: ../views/admin.php:179
134
+ msgid "Upload thumbnail"
135
+ msgstr "サムネールをアップロードする"
136
+
137
+ #: ../views/admin.php:182
138
  msgid ""
139
+ "How-to: upload (or select) an image, set Size to Full and click on Upload. "
140
+ "After it's done, hit on Apply to save changes"
141
  msgstr ""
142
+ "やり方: 画像をアップロードまたは選択し、サイズをフルサイズに設定して、アップ"
143
+ "ロードをクリックしてください。終了したら、変更を保存をクリックします。"
144
 
145
+ #: ../views/admin.php:186
146
+ msgid "Pick image from"
147
+ msgstr "次から画像を選ぶ"
148
 
149
+ #: ../views/admin.php:189
150
+ msgid "Featured image"
151
+ msgstr "アイキャッチ画像"
 
 
 
152
 
153
+ #: ../views/admin.php:190
154
+ msgid "First image on post"
155
+ msgstr "投稿に最初に現れる画像"
156
 
157
+ #: ../views/admin.php:191
158
+ msgid "Custom field"
159
+ msgstr "カスタム・フィールド"
 
 
 
160
 
161
+ #: ../views/admin.php:194
162
+ msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
163
+ msgstr "ここからサムネール画像を取得するようにする。"
164
 
165
+ #: ../views/admin.php:198
166
+ msgid "Custom field name"
167
+ msgstr "カスタム・フィールドの名前"
 
 
 
 
 
168
 
169
+ #: ../views/admin.php:204
170
+ msgid "Resize image from Custom field?"
171
+ msgstr "カスタム・フィールドの画像をサイズ変更しますか?"
172
 
173
+ #: ../views/admin.php:207
174
+ msgid "No, I will upload my own thumbnail"
175
+ msgstr "いいえ、自分のサムネールをアップロードします。"
 
 
 
 
 
176
 
177
+ #: ../views/admin.php:208
178
+ msgid "Yes"
179
+ msgstr "はい"
180
 
181
+ #: ../views/admin.php:224
182
+ msgid "Data"
 
 
 
183
  msgstr ""
 
 
184
 
185
+ #: ../views/admin.php:229
186
+ msgid "Log views from"
187
+ msgstr "次のものから閲覧数を記録します。"
 
 
 
 
 
 
 
 
 
188
 
189
+ #: ../views/admin.php:232
190
+ msgid "Visitors only"
191
+ msgstr "訪問者のみ"
192
 
193
+ #: ../views/admin.php:233
194
+ msgid "Logged-in users only"
 
 
 
195
  msgstr ""
 
 
 
 
 
 
196
 
197
+ #: ../views/admin.php:234
198
+ msgid "Everyone"
199
+ msgstr "ログイン・ユーザも含める"
 
 
 
 
 
 
 
200
 
201
+ #: ../views/admin.php:240
202
+ msgid "Ajaxify widget"
203
+ msgstr "Ajaxを使うウィジェット"
204
 
205
+ #: ../views/admin.php:243 ../views/admin.php:309
206
+ msgid "Disabled"
207
+ msgstr "無効"
 
 
 
 
208
 
209
+ #: ../views/admin.php:244 ../views/admin.php:308
210
+ msgid "Enabled"
211
+ msgstr "有効"
212
 
213
+ #: ../views/admin.php:248
214
  msgid ""
215
+ "If you are using a caching plugin such as WP Super Cache, enabling this "
216
+ "feature will keep the popular list from being cached by it"
 
217
  msgstr ""
218
+ "WP Super Cacheのようなキャッシュ系プラグインを使っている場合、この機能を有効"
219
+ "にすると、人気投稿リストがキャッシュされるのを防ぐことができます。"
220
 
221
+ #: ../views/admin.php:252
222
+ #, fuzzy
223
+ msgid "Listing refresh interval"
224
+ msgstr "書き換えの間隔"
225
 
226
+ #: ../views/admin.php:255
227
+ msgid "Live"
228
+ msgstr "同期"
 
 
 
229
 
230
+ #: ../views/admin.php:256
231
+ msgid "Custom interval"
232
+ msgstr "間隔を指定"
233
 
234
+ #: ../views/admin.php:260
235
  msgid ""
236
+ "Sets how often the listing should be updated. For most sites the Live option "
237
+ "should be fine, however if you are experiencing slowdowns or your blog gets "
238
+ "a lot of visitors then you might want to change the refresh rate"
239
  msgstr ""
240
+ "リストがどれくらいの間隔で書き換えられるかを設定します。ほとんどのサイトで"
241
+ "は、「同期」を設定して問題ないでしょう。速度が遅くなったり、訪問者が非常に多"
242
+ "いときは、書き換えの間隔を変えてみてください。"
243
 
244
+ #: ../views/admin.php:264
245
+ #, fuzzy
246
+ msgid "Refresh list every"
247
+ msgstr "書き換えの間隔"
248
 
249
+ #: ../views/admin.php:268
250
+ msgid "Hour(s)"
251
+ msgstr "時間"
 
 
 
252
 
253
+ #: ../views/admin.php:269
254
+ msgid "Day(s)"
255
+ msgstr ""
256
 
257
+ #: ../views/admin.php:270
258
+ msgid "Week(s)"
259
+ msgstr "週"
 
 
 
260
 
261
+ #: ../views/admin.php:271
262
+ msgid "Month(s)"
263
+ msgstr "か月"
264
 
265
+ #: ../views/admin.php:272
266
+ msgid "Year(s)"
267
+ msgstr "年"
 
 
 
 
 
 
268
 
269
+ #: ../views/admin.php:275
270
+ msgid "Really? That long?"
271
+ msgstr "本当にこんなに長くていいのですか?"
272
 
273
+ #: ../views/admin.php:290
274
+ msgid "Miscellaneous"
 
 
 
 
 
275
  msgstr ""
 
 
 
 
 
 
 
276
 
277
+ #: ../views/admin.php:295
278
+ msgid "Open links in"
 
 
 
279
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
+ #: ../views/admin.php:298
282
+ msgid "Current window"
283
+ msgstr ""
284
 
285
+ #: ../views/admin.php:299
286
+ msgid "New tab/window"
287
+ msgstr ""
288
 
289
+ #: ../views/admin.php:305
290
+ msgid "Use plugin's stylesheet"
 
 
 
291
  msgstr ""
 
 
 
292
 
293
+ #: ../views/admin.php:312
294
  msgid ""
295
+ "By default, the plugin includes a stylesheet called wpp.css which you can "
296
+ "use to style your popular posts listing. If you wish to use your own "
297
+ "stylesheet or do not want it to have it included in the header section of "
298
+ "your site, use this."
299
  msgstr ""
300
+ "人気の投稿リストのスタイルを指定するのに、wpp.cssという名前のスタイルシートが"
301
+ "デフォルトで含まれています。自分のスタイルシートを使ったり、このスタイルシー"
302
+ "トがヘッダ・セクションで読み込まれるのがいやな場合は、これを使ってください。"
303
 
304
+ #: ../views/admin.php:329
305
+ #, fuzzy
306
  msgid ""
307
+ "Wordpress Popular Posts maintains data in two separate tables: one for "
308
+ "storing the most popular entries on a daily basis (from now on, \"cache\"), "
309
+ "and another one to keep the All-time data (from now on, \"historical data\" "
310
+ "or just \"data\"). If for some reason you need to clear the cache table, or "
311
+ "even both historical and cache tables, please use the buttons below to do so."
312
  msgstr ""
313
+ "WordPress Popular Postsは2つのテーブルにデータを保存しています。1つは過去1か"
314
+ "月間最も人気のあったエントリを保存します(これを「キャッシュ」と呼びます)。も"
315
+ "う1つは、累積のデータを保存します(これを「累積データ」または単に「データ」と"
316
+ "呼びます)。何かの理由で、キャッシュや累積データを削除する必要がある場合は、下"
317
+ "のボタンを使ってください。"
318
 
319
+ #: ../views/admin.php:330
320
+ msgid "Empty cache"
321
+ msgstr "キャッシュを空にする"
322
 
323
+ #: ../views/admin.php:330
324
+ msgid "Use this button to manually clear entries from WPP cache only"
325
+ msgstr "WPPのキャッシュだけを手動で空にするにはこのボタンを使ってください。"
326
 
327
+ #: ../views/admin.php:331
328
+ msgid "Clear all data"
329
+ msgstr "全てのデータを空にする"
 
 
 
 
 
 
 
 
330
 
331
+ #: ../views/admin.php:331
332
+ msgid "Use this button to manually clear entries from all WPP data tables"
333
+ msgstr "WPPの全データを手動で空にしたいときには、このボタンを使ってください。"
 
 
334
 
335
+ #: ../views/admin.php:338
336
+ #, php-format
337
  msgid ""
338
+ "With the following parameters you can customize the popular posts list when "
339
+ "using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
340
+ "the <a href=\"%2$s\">[wpp] shortcode</a>."
341
  msgstr ""
 
342
 
343
+ #: ../views/admin.php:346
344
  msgid "Parameter"
345
  msgstr "パラメータ"
346
 
347
+ #: ../views/admin.php:347 ../views/admin.php:661
348
+ msgid "What it does "
349
+ msgstr "できること "
350
+
351
+ #: ../views/admin.php:348
352
  msgid "Possible values"
353
  msgstr "使える値"
354
 
355
+ #: ../views/admin.php:349
356
  msgid "Defaults to"
357
  msgstr "デフォルト値"
358
 
359
+ #: ../views/admin.php:350 ../views/admin.php:663
360
+ msgid "Example"
361
+ msgstr "例"
362
+
363
+ #: ../views/admin.php:356
364
  msgid "Sets a heading for the list"
365
  msgstr "リストの見出しを設定する"
366
 
367
+ #: ../views/admin.php:357 ../views/admin.php:364 ../views/admin.php:371
368
+ #: ../views/admin.php:406 ../views/admin.php:413 ../views/admin.php:420
369
+ #: ../views/admin.php:427 ../views/admin.php:518 ../views/admin.php:532
370
+ #: ../views/admin.php:539
371
  msgid "Text string"
372
  msgstr "文字列"
373
 
374
+ #: ../views/admin.php:358
375
  msgid "Popular Posts"
376
  msgstr "人気の投稿"
377
 
378
+ #: ../views/admin.php:363
379
  msgid "Set the opening tag for the heading of the list"
380
  msgstr "リストの見出しの前につけるHTMLタグを設定する"
381
 
382
+ #: ../views/admin.php:370
383
  msgid "Set the closing tag for the heading of the list"
384
  msgstr "リストの見出しの後につけるHTMLタグを設定する"
385
 
386
+ #: ../views/admin.php:377
387
  msgid "Sets the maximum number of popular posts to be shown on the listing"
388
  msgstr "リストに表示する投稿数の上限を設定する"
389
 
390
+ #: ../views/admin.php:378 ../views/admin.php:434 ../views/admin.php:448
391
+ #: ../views/admin.php:469 ../views/admin.php:476
392
  msgid "Positive integer"
393
  msgstr "正の整数"
394
 
395
+ #: ../views/admin.php:384
396
  msgid ""
397
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
398
  "the time range specified by you"
399
+ msgstr "設定された期間内で最も人気のあるエントリを表示する"
400
+
401
+ #: ../views/admin.php:391
402
+ #, fuzzy
403
+ msgid ""
404
+ "Tells Wordpress Popular Posts to retrieve the most popular entries published "
405
+ "within the time range specified by you"
406
+ msgstr "設定された期間内で最も人気のあるエントリを表示する"
407
 
408
+ #: ../views/admin.php:398
409
  msgid "Sets the sorting option of the popular posts"
410
  msgstr "人気の投稿並び順を決める"
411
 
412
+ #: ../views/admin.php:399
413
  msgid "(for average views per day)"
414
  msgstr "(1日の平均閲覧数)"
415
 
416
+ #: ../views/admin.php:405
417
  msgid "Defines the type of posts to show on the listing"
418
  msgstr "リストに表示する投稿のタイプを決める"
419
 
420
+ #: ../views/admin.php:412
421
  msgid ""
422
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
423
  "form the listing."
424
+ msgstr "これを設定すると、特定の投稿IDが表示されないようになります。"
 
425
 
426
+ #: ../views/admin.php:414 ../views/admin.php:421 ../views/admin.php:428
427
  msgid "None"
428
  msgstr "なし"
429
 
430
+ #: ../views/admin.php:419
431
  msgid ""
432
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
433
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
434
  "will be excluded instead."
435
  msgstr ""
436
+ "これを設定すると、指定されたカテゴリIDのエントリが全て表示されるようになりま"
437
+ "す。マイナス符号を使うと、そのカテゴリは表示から外されるようになります。"
438
 
439
+ #: ../views/admin.php:426
440
  msgid ""
441
  "If set, Wordpress Popular Posts will retrieve all entries created by "
442
  "specified author(s) ID(s)."
443
  msgstr ""
444
+ "これを設定すると、指定された投稿者IDのエントリが全て表示されるようになりま"
445
+ "す。"
446
 
447
+ #: ../views/admin.php:433
448
  msgid ""
449
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
450
  "characters whenever possible"
451
+ msgstr "これを設定すると、投稿タイトルを\"n\"文字になるようにします。"
 
452
 
453
+ #: ../views/admin.php:440
454
  msgid ""
455
  "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
456
  "words instead of characters"
457
  msgstr ""
458
+ "これを1に設定すると、タイトルを\"n\"文字ではなくて、\"n\"語になるようにします"
459
+ "(日本語では意味がありません)。"
460
 
461
+ #: ../views/admin.php:447
462
  msgid ""
463
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
464
  "characters long from the content of each post listed as popular"
465
  msgstr ""
466
  "これを設定すると、投稿のコンテンツから\"n\"文字の抜粋を作り、表示に含めます。"
467
 
468
+ #: ../views/admin.php:454
469
  msgid ""
470
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
471
  "italic, etc) and hyperlinks found in the excerpt"
472
  msgstr ""
473
+ "これを設定すると、抜粋に含まれるスタイル・タグ(strongやitalicなど)やハイパー"
474
+ "リンクをすべてそのまま使うようになります。"
475
 
476
+ #: ../views/admin.php:461
477
  msgid ""
478
  "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
479
  "instead of characters"
480
  msgstr ""
481
+ "これを1に設定すると、抜粋の長さが\"n\"文字ではなくて、\"n\"語の長さになります"
482
+ "(日本語では意味がありません)。"
483
 
484
+ #: ../views/admin.php:468
485
  msgid ""
486
  "If set, and if your current server configuration allows it, you will be able "
487
  "to display thumbnails of your posts. This attribute sets the width for "
488
  "thumbnails"
489
  msgstr ""
490
+ "これを設定し、サーバ設定が許可していれば、投稿に含まれるサムネールを表示する"
491
+ "ことができるようになります。この属性はサムネールの幅を設定します。"
492
 
493
+ #: ../views/admin.php:475
494
  msgid ""
495
  "If set, and if your current server configuration allows it, you will be able "
496
  "to display thumbnails of your posts. This attribute sets the height for "
497
  "thumbnails"
498
  msgstr ""
499
+ "これを設定し、サーバ設定が許可していれば、投稿に含まれるサムネールを表示する"
500
+ "ことができるようになります。この属性はサムネールの高さを設定します。"
501
 
502
+ #: ../views/admin.php:482
503
  msgid ""
504
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
505
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
506
  "entries"
507
  msgstr ""
508
+ "これを設定し、WP-PostRatingsプラグインが有効化されていれば、エントリの評価を"
509
+ "訪問者に示すことができるようになります。"
510
 
511
+ #: ../views/admin.php:489
512
  msgid ""
513
  "If set, Wordpress Popular Posts will show how many comments each popular "
514
  "post has got until now"
515
  msgstr ""
516
+ "これを設定すると、それぞれの投稿にこれまでいくつのコメントがついたかを表示す"
517
+ "ることができます。"
518
 
519
+ #: ../views/admin.php:496
520
  msgid ""
521
  "If set, Wordpress Popular Posts will show how many views each popular post "
522
  "has got since it was installed"
523
  msgstr ""
524
+ "これを設定すると、WordPress Popular Postsをインストールしてからの閲覧数を表示"
525
+ "することができるようになります。"
526
 
527
+ #: ../views/admin.php:503
528
  msgid ""
529
  "If set, Wordpress Popular Posts will show who published each popular post on "
530
  "the list"
531
  msgstr ""
532
+ "これを設定すると、リストに表示される投稿を公開した作者を表示することができる"
533
+ "ようになります。"
534
 
535
+ #: ../views/admin.php:510
536
  msgid ""
537
  "If set, Wordpress Popular Posts will display the date when each popular post "
538
  "on the list was published"
539
  msgstr ""
540
  "これを設定すると、それぞれの投稿が公開された日付を表示するようになります。"
541
 
542
+ #: ../views/admin.php:517
543
  msgid "Sets the date format"
544
  msgstr "日付フォーマットを設定する"
545
 
546
+ #: ../views/admin.php:524
547
  msgid "If set, Wordpress Popular Posts will display the category"
548
  msgstr "これを設定すると、カテゴリが表示されます。"
549
 
550
+ #: ../views/admin.php:531
551
  msgid "Sets the opening tag for the listing"
552
  msgstr "リストの開始タグを指定する。"
553
 
554
+ #: ../views/admin.php:538
555
  msgid "Sets the closing tag for the listing"
556
  msgstr "リストの終了タグを指定する。"
557
 
558
+ #: ../views/admin.php:545
559
  msgid "Sets the HTML structure of each post"
560
  msgstr "それぞれの投稿のHTML構造を設定します。"
561
 
562
+ #: ../views/admin.php:546
563
  msgid "Text string, custom HTML"
564
  msgstr "文字列。カスタムHTML。"
565
 
566
+ #: ../views/admin.php:546
567
  msgid "Available Content Tags"
568
  msgstr "利用できるコンテンツ・タグ"
569
 
570
+ #: ../views/admin.php:546
571
  msgid "displays thumbnail linked to post/page"
572
  msgstr "投稿や固定ページに結びついたサムネールを表示します。"
573
 
574
+ #: ../views/admin.php:546
575
  msgid "displays linked post/page title"
576
  msgstr "投稿や固定ページへのリンクを表示します。"
577
 
578
+ #: ../views/admin.php:546
579
  msgid ""
580
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
581
  msgstr ""
582
+ "投稿や固定ページの抜粋を表示します。抜粋の長さが0より大きな数値になっているこ"
583
+ "とが必要です。"
584
 
585
+ #: ../views/admin.php:546
586
  msgid "displays the default stats tags"
587
  msgstr "デフォルトの統計タグを表示します。"
588
 
589
+ #: ../views/admin.php:546
590
  msgid ""
591
  "displays post/page current rating, requires WP-PostRatings installed and "
592
  "enabled"
593
  msgstr ""
594
+ "投稿と固定ページの現在の評価を表示します。WP-PostRatingsがインストールされて"
595
+ "いて、有効化していることが必要です。"
596
+
597
+ #: ../views/admin.php:546
598
+ #, fuzzy
599
+ msgid ""
600
+ "displays post/page current rating as an integer, requires WP-PostRatings "
601
+ "installed and enabled"
602
+ msgstr ""
603
+ "投稿と固定ページの現在の評価を表示します。WP-PostRatingsがインストールされて"
604
+ "いて、有効化していることが必要です。"
605
 
606
+ #: ../views/admin.php:546
607
  msgid "outputs the URL of the post/page"
608
  msgstr "投稿や固定ページのURLを出力します。"
609
 
610
+ #: ../views/admin.php:546
611
  msgid "displays post/page title, no link"
612
  msgstr "投稿や固定ページのタイトルをリンクなしで表示します。"
613
 
614
+ #: ../views/admin.php:546
615
  msgid "displays linked author name, requires stats_author=1"
616
  msgstr "投稿者名へのリンクを表示します。stats_author=1の設定が必要です。"
617
 
618
+ #: ../views/admin.php:546
619
  msgid "displays linked category name, requires stats_category=1"
620
  msgstr "カテゴリ名へのリンクを表示します。stats_category=1の設定が必要です。"
621
 
622
+ #: ../views/admin.php:546
623
  msgid "displays views count only, no text"
624
  msgstr "閲覧数の数値だけを表示します。"
625
 
626
+ #: ../views/admin.php:546
627
  msgid "displays comments count only, no text, requires stats_comments=1"
628
  msgstr "コメント数の数値だけを表示します。stats_comments=1の設定が必要です。"
629
 
630
+ #: ../views/admin.php:558
631
+ msgid "What does \"Title\" do?"
632
+ msgstr "「タイトル」は何をするのですか?"
 
 
 
 
633
 
634
+ #: ../views/admin.php:561
635
  msgid ""
636
+ "It allows you to show a heading for your most popular posts listing. If left "
637
+ "empty, no heading will be displayed at all."
638
  msgstr ""
639
+ "人気投稿リストの見出しが表示されるようになります。空欄にすると、何も表示しま"
640
+ "せん。"
641
+
642
+ #: ../views/admin.php:564
643
+ msgid "What is Time Range for?"
644
+ msgstr "期間は何のためにあるのですか?"
645
 
646
+ #: ../views/admin.php:566
647
  msgid ""
648
+ "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
649
+ "comments within the selected time range."
 
 
650
  msgstr ""
651
+ "指定された期間の中で、最も閲覧数の多い投稿、または最もコメントの多い投稿を表"
652
+ "示するようになります。"
 
653
 
654
+ #: ../views/admin.php:569
655
+ msgid "What is \"Sort post by\" for?"
656
+ msgstr "「並び替え順」はなんのためにありのですか?"
657
 
658
+ #: ../views/admin.php:571
659
  msgid ""
660
+ "It allows you to decide whether to order your popular posts listing by total "
661
+ "views, comments, or average views per day."
662
  msgstr ""
663
+ "合計閲覧数、コメント数、1日の平均閲覧数のどれで投稿を並べるかを選択することが"
664
+ "できます。"
665
 
666
+ #: ../views/admin.php:574
667
+ msgid "What does \"Display post rating\" do?"
668
+ msgstr "「投稿評価を表示する」というのは何ですか?"
669
 
670
+ #: ../views/admin.php:576
671
+ msgid ""
672
+ "If checked, Wordpress Popular Posts will show how your readers are rating "
673
+ "your most popular posts. This feature requires having WP-PostRatings plugin "
674
+ "installed and enabled on your blog for it to work."
675
+ msgstr ""
676
+ "これをチェックすると、読者があなたの人気の投稿をどう評価しているかを示すこと"
677
+ "ができます。WP-PostRatingsプラグインがインストールされていて、有効化してあれ"
678
+ "ば利用することができます。"
679
 
680
+ #: ../views/admin.php:579
681
+ msgid "What does \"Shorten title\" do?"
682
+ msgstr "「タイトルを短縮する」は何をするのですか?"
683
 
684
+ #: ../views/admin.php:581
685
+ msgid ""
686
+ "If checked, all posts titles will be shortened to \"n\" characters/words. A "
687
+ "new \"Shorten title to\" option will appear so you can set it to whatever "
688
+ "you like."
689
+ msgstr ""
690
+ "これをチェックすると、全ての投稿タイトルが\"n\"文字または\"n\"語になります。"
691
+ "「次の文字数までタイトルを縮める」というオプションが新しく現れますので、あな"
692
+ "たの好きな数値に設定することができます。"
693
 
694
+ #: ../views/admin.php:584
695
+ msgid "What does \"Display post excerpt\" do?"
696
+ msgstr "「投稿抜粋を表示する」は何をするものですか?"
697
 
698
+ #: ../views/admin.php:586
699
+ msgid ""
700
+ "If checked, Wordpress Popular Posts will also include a small extract of "
701
+ "your posts in the list. Similarly to the previous option, you will be able "
702
+ "to decide how long the post excerpt should be."
703
+ msgstr ""
704
+ "これをチェックすると、投稿のリストに短い抜粋を含めることができるようになりま"
705
+ "す。前のオプションと同様に、抜粋の長さを決めることができます。"
706
 
707
+ #: ../views/admin.php:589
708
+ msgid "What does \"Keep text format and links\" do?"
709
+ msgstr ""
710
+ "「テキスト・フォーマットとリンクを保存する」というのは何をするものですか?"
711
 
712
+ #: ../views/admin.php:591
713
  msgid ""
714
+ "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
715
+ "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
716
+ "the excerpt. Hyperlinks will remain intact, too."
717
  msgstr ""
718
+ "これをチェックして、投稿抜粋の機能が有効になっていると、抜粋に含まれるスタイ"
719
+ "ルタグ(boldやitalicなど)がそのまま使われます。ハイパーリンクもそのままにな"
720
+ "ります。"
721
 
722
+ #: ../views/admin.php:594
723
+ msgid "What is \"Post type\" for?"
724
+ msgstr "「投稿タイプ」とは何に使うのですか?"
725
 
726
+ #: ../views/admin.php:596
727
+ msgid ""
728
+ "This filter allows you to decide which post types to show on the listing. By "
729
+ "default, it will retrieve only posts and pages (which should be fine for "
730
+ "most cases)."
731
+ msgstr ""
732
+ "このフィルタを通すと、どの投稿タイプが表示されるかを決めることができます。デ"
733
+ "フォルトでは、投稿と固定ページが表示されます(ほとんどの場合、これで十分なは"
734
+ "ずです)。"
735
 
736
+ #: ../views/admin.php:599
737
+ msgid "What is \"Category(ies) ID(s)\" for?"
738
+ msgstr "「カテゴリID」というのは何に使うのですか?"
739
 
740
+ #: ../views/admin.php:601
741
+ msgid ""
742
+ "This filter allows you to select which categories should be included or "
743
+ "excluded from the listing. A negative sign in front of the category ID "
744
+ "number will exclude posts belonging to it from the list, for example. You "
745
+ "can specify more than one ID with a comma separated list."
746
+ msgstr ""
747
+ "このフィルタを通すと、どのカテゴリをリストに表示するかを決めることができま"
748
+ "す。たとえば、カテゴリIDの前にマイナスの符号をつけると、リストに表示されなく"
749
+ "なります。カンマで区切れば複数のIDを指定することができます。"
750
 
751
+ #: ../views/admin.php:604
752
+ msgid "What is \"Author(s) ID(s)\" for?"
753
+ msgstr "「投稿者ID」はどのように使うのですか?"
754
 
755
+ #: ../views/admin.php:606
756
+ msgid ""
757
+ "Just like the Category filter, this one lets you filter posts by author ID. "
758
+ "You can specify more than one ID with a comma separated list."
759
+ msgstr ""
760
+ "カテゴリ・フィルタと同様、これを指定すると、投稿者IDでフィルタをかけることが"
761
+ "できるようになります。カンマで区切れば複数のIDを指定することができます。"
762
 
763
+ #: ../views/admin.php:609
764
+ msgid "What does \"Display post thumbnail\" do?"
765
+ msgstr "「投稿サムネールを表示する」というのは、何をするのですか?"
766
 
767
+ #: ../views/admin.php:611
768
+ msgid ""
769
+ "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
770
+ "of each post. You can set up the source of the thumbnail via Settings - "
771
+ "Wordpress Popular Posts - Tools."
772
+ msgstr ""
773
+ "これをチェックすると、Popular Postsは投稿のサムネールを取得しようとします。表"
774
+ "示するサムネール画像は、設定 &lt; WordPress Popular Posts &lt; ツール で設定"
775
+ "することができます。"
776
 
777
+ #: ../views/admin.php:614
778
+ msgid "What does \"Display comment count\" do?"
779
+ msgstr "「コメント数を表示する」というのは、何をするのですか?"
780
 
781
+ #: ../views/admin.php:616
782
+ msgid ""
783
+ "If checked, Wordpress Popular Posts will display how many comments each "
784
+ "popular post has got in the selected Time Range."
785
+ msgstr ""
786
+ "これをチェックすると、設定された期間で、投稿にいくつのコメントがついたかを表"
787
+ "示することができます。"
788
 
789
+ #: ../views/admin.php:619
790
+ msgid "What does \"Display views\" do?"
791
+ msgstr "「閲覧数を表示する」というのは何?"
792
 
793
+ #: ../views/admin.php:621
794
  msgid ""
795
+ "If checked, Wordpress Popular Posts will show how many pageviews a single "
796
+ "post has gotten in the selected Time Range."
 
 
797
  msgstr ""
798
+ "これをチェックすると、個別の投稿が指定された期間内で何回閲覧されたかを表示す"
799
+ "るようになります。"
 
800
 
801
+ #: ../views/admin.php:624
802
+ msgid "What does \"Display author\" do?"
803
+ msgstr "「投稿者を表示する」は何をするのですか?"
804
 
805
+ #: ../views/admin.php:626
806
+ msgid ""
807
+ "If checked, Wordpress Popular Posts will display the name of the author of "
808
+ "each entry listed."
809
+ msgstr ""
810
+ "これをチェックすると、リストのエントリを書いた投稿者名が表示されるようになり"
811
+ "ます。"
812
 
813
+ #: ../views/admin.php:629
814
+ msgid "What does \"Display date\" do?"
815
+ msgstr "「日付を表示する」というのは?"
816
 
817
+ #: ../views/admin.php:631
818
+ msgid ""
819
+ "If checked, Wordpress Popular Posts will display the date when each popular "
820
+ "posts was published."
821
+ msgstr "これをチェックすると、投稿が公開された日付を表示するようになります。"
822
+
823
+ #: ../views/admin.php:634
824
+ #, fuzzy
825
+ msgid "What does \"Display category\" do?"
826
+ msgstr "「投稿者を表示する」は何をするのですか?"
827
 
828
+ #: ../views/admin.php:636
829
+ #, fuzzy
830
  msgid ""
831
+ "If checked, Wordpress Popular Posts will display the category of each post."
 
832
  msgstr ""
833
+ "これをチェックすると、リストのエントリを書いた投稿者名が表示されるようになり"
834
+ "ます。"
 
835
 
836
+ #: ../views/admin.php:639
837
+ msgid "What does \"Use custom HTML Markup\" do?"
838
+ msgstr "「カスタムHTMLマークアップを使う」というのは、何をするのですか?"
839
 
840
+ #: ../views/admin.php:641
841
+ msgid ""
842
+ "If checked, you will be able to customize the HTML markup of your popular "
843
+ "posts listing. For example, you can decide whether to wrap your posts in an "
844
+ "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
845
+ "for you!"
846
+ msgstr ""
847
+ "これをチェックすると、リスト表示のHTMLマークアップを変更することができます。"
848
+ "たとえば、番号付きリストにしたり、番号なしリストにしたり、divで囲ったりするこ"
849
+ "とができます。xHTML/CSSの知識がある場合は、やってみてください。"
850
 
851
+ #: ../views/admin.php:644
852
+ msgid "What are \"Content Tags\"?"
853
+ msgstr "「コンテンツ・タグ」って何?"
854
 
855
+ #: ../views/admin.php:646
856
+ #, fuzzy, php-format
857
  msgid ""
858
+ "Content Tags are codes to display a variety of items on your popular posts "
859
+ "custom HTML structure. For example, setting it to \"{title}: "
860
+ "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
861
+ "post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
862
+ "\">Parameters</a> section."
863
  msgstr ""
864
+ "コンテンツ・タグは、カスタムHTMLでいろいろな項目を表示できるようになるコード"
865
+ "です。たとえば、「{title}: {summary}」とすると、「投稿タイトル: 投稿抜粋」と"
866
+ "表示されます。他のコンテント・タグについては、「wpp_get_postpopular()と[wpp]"
867
+ "ショートコードで使えるパラメータ・リスト」をご覧ください。"
868
 
869
+ #: ../views/admin.php:649
870
+ msgid "What are \"Template Tags\"?"
871
+ msgstr "「テンプレート・タグ」というのは?"
872
 
873
+ #: ../views/admin.php:651
874
+ msgid ""
875
+ "Template Tags are simply php functions that allow you to perform certain "
876
+ "actions. For example, Wordpress Popular Posts currently supports two "
877
+ "different template tags: wpp_get_mostpopular() and wpp_get_views()."
878
+ msgstr ""
879
+ "テンプレート・タグは、簡単なPHP関数で、それに対応するアクションをさせることが"
880
+ "できます。たとえば、WordPress Popular Postsは現在、二つのテンプレート・タグを"
881
+ "持っています。wpp_get_mostpopular()とwpp_get_views()です。"
882
 
883
+ #: ../views/admin.php:654
884
+ msgid "What are the template tags that Wordpress Popular Posts supports?"
885
+ msgstr ""
886
+ "WordPress Popular Postsがサポートするテンプレート・タグにはどんなものがありま"
887
+ "すか?"
888
 
889
+ #: ../views/admin.php:656
890
+ msgid ""
891
+ "The following are the template tags supported by Wordpress Popular Posts"
892
+ msgstr "次のものが使えます。"
893
 
894
+ #: ../views/admin.php:660
895
+ msgid "Template tag"
896
+ msgstr "テンプレート・タグ"
897
 
898
+ #: ../views/admin.php:669
899
+ #, fuzzy, php-format
900
+ msgid ""
901
+ "Similar to the widget functionality, this tag retrieves the most popular "
902
+ "posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
903
+ "a> so you can customize your popular listing, but these are not required."
904
+ msgstr ""
905
+ "ウィジェットを使うのと同じ結果になります。このタグを使うと、人気の投稿を表示"
906
+ "することができます。この関数は、パラメータも受けつけるので、リスト表示をカス"
907
+ "タマイズすることもできます。かならずカスタマイズしなければならないというわけ"
908
+ "ではありません。"
909
 
910
+ #: ../views/admin.php:670
911
+ #, php-format
912
+ msgid ""
913
+ "Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
914
+ "list of attributes."
915
+ msgstr ""
916
 
917
+ #: ../views/admin.php:675
918
  msgid ""
919
+ "Displays the number of views of a single post. Post ID is required or it "
920
+ "will return false."
921
+ msgstr ""
922
+ "個別投稿の閲覧数を表示します。投稿IDを指定することが必要です。それがないと、"
923
+ "falseを返します。"
 
 
 
 
 
 
 
 
 
 
924
 
925
+ #: ../views/admin.php:676
926
+ msgid "Post ID"
927
+ msgstr "投稿ID"
928
 
929
+ #: ../views/admin.php:683
930
+ msgid "What are \"shortcodes\"?"
931
+ msgstr "「ショートコード」とは何ですか?"
932
 
933
+ #: ../views/admin.php:685
934
+ #, fuzzy, php-format
935
+ msgid ""
936
+ "Shortcodes are similar to BB Codes, these allow us to call a php function by "
937
+ "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
938
+ "shortcode [wpp] will let you insert a list of the most popular posts in "
939
+ "posts content and pages too! For more information about shortcodes, please "
940
+ "visit the <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a> page."
941
+ msgstr ""
942
+ "ショートコードはBBコードに似ていて、[shortcode]みたいな書き方をすると、phpの"
943
+ "関数が呼び出されることになっています。WordPress Popular Postsでは、[wpp]とい"
944
+ "うショートコードを書くと、投稿やページで人気の投稿がリスト表示されるようにな"
945
+ "ります。ショートコードについての詳しい情報は、次のページを見てください。"
946
+
947
+ #: ../views/admin.php:694
948
+ #, php-format
949
+ msgid "About Wordpress Popular Posts %s"
950
+ msgstr "WordPress Popular Posts %s"
951
+
952
+ #: ../views/admin.php:695
953
+ msgid "This version includes the following changes"
954
+ msgstr ""
955
 
956
+ #: ../views/admin.php:709
957
  msgid "Do you like this plugin?"
958
  msgstr "このプラグインが気に入りましたか?"
959
 
960
+ #: ../views/admin.php:716
961
+ msgid ""
962
+ "Each donation motivates me to keep releasing free stuff for the Wordpress "
963
+ "community!"
964
+ msgstr ""
965
+ "寄付は、WordPressコミュニティのためにフリー・ソフトをリリースし続けるモチベー"
966
+ "ションになります!"
 
 
 
 
967
 
968
+ #: ../views/admin.php:717
969
+ #, php-format
970
+ msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
971
+ msgstr ""
972
 
973
+ #: ../views/admin.php:721
974
+ msgid "Need help?"
975
+ msgstr ""
976
 
977
+ #: ../views/admin.php:722
978
+ #, php-format
979
  msgid ""
980
+ "Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
981
+ "and feedback."
982
  msgstr ""
 
983
 
984
+ #: ../views/admin.php:723
985
+ msgid "Let's make this plugin even better!"
986
+ msgstr ""
987
 
988
+ #: ../views/form.php:2
989
+ #, fuzzy
990
+ msgid "Title"
991
  msgstr "タイトル:"
992
 
993
+ #: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
994
+ #: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
995
+ #: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
996
+ #: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
997
+ #: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
998
+ #: ../views/form.php:105 ../views/form.php:111
 
 
999
  msgid "What is this?"
1000
  msgstr "これは何ですか?"
1001
 
1002
+ #: ../views/form.php:7
1003
+ #, fuzzy
1004
+ msgid "Show up to"
1005
  msgstr "表示する数"
1006
 
1007
+ #: ../views/form.php:8
1008
  msgid "posts"
1009
  msgstr "投稿"
1010
 
1011
+ #: ../views/form.php:12
1012
+ #, fuzzy
1013
+ msgid "Sort posts by"
 
 
 
1014
  msgstr "並べ替え順"
1015
 
1016
+ #: ../views/form.php:14
1017
  msgid "Comments"
1018
  msgstr "コメント"
1019
 
1020
+ #: ../views/form.php:15
1021
  msgid "Total views"
1022
  msgstr "累積閲覧数"
1023
 
1024
+ #: ../views/form.php:16
1025
  msgid "Avg. daily views"
1026
  msgstr "1日の平均閲覧数"
1027
 
1028
+ #: ../views/form.php:22
1029
+ #, fuzzy
1030
+ msgid "Filters"
1031
+ msgstr "フィルタ:"
1032
+
1033
+ #: ../views/form.php:24
1034
+ #, fuzzy
1035
+ msgid "Time Range"
1036
+ msgstr "時間間隔"
1037
+
1038
+ #: ../views/form.php:34
1039
+ #, fuzzy
1040
+ msgid "Post type(s)"
1041
+ msgstr "投稿タイプ:"
1042
+
1043
+ #: ../views/form.php:37
1044
+ #, fuzzy
1045
+ msgid "Post(s) ID(s) to exclude"
1046
+ msgstr "表示しない投稿ID"
1047
+
1048
+ #: ../views/form.php:40
1049
+ #, fuzzy
1050
+ msgid "Category(ies) ID(s)"
1051
+ msgstr "カテゴリID"
1052
+
1053
+ #: ../views/form.php:43
1054
+ #, fuzzy
1055
+ msgid "Author(s) ID(s)"
1056
+ msgstr "投稿者ID"
1057
+
1058
+ #: ../views/form.php:48
1059
  msgid "Posts settings"
1060
  msgstr "投稿設定"
1061
 
1062
+ #: ../views/form.php:52
1063
  msgid "Display post rating"
1064
  msgstr "投稿評価を表示する"
1065
 
1066
+ #: ../views/form.php:55
1067
  msgid "Shorten title"
1068
  msgstr "タイトルを短縮する"
1069
 
1070
+ #: ../views/form.php:58
1071
  msgid "Shorten title to"
1072
  msgstr "タイトル短縮のし方"
1073
 
1074
+ #: ../views/form.php:59 ../views/form.php:69
1075
  msgid "characters"
1076
  msgstr "文字"
1077
 
1078
+ #: ../views/form.php:60 ../views/form.php:70
1079
  msgid "words"
1080
  msgstr "語"
1081
 
1082
+ #: ../views/form.php:63
1083
  msgid "Display post excerpt"
1084
  msgstr "抜粋を表示する"
1085
 
1086
+ #: ../views/form.php:66
 
 
 
 
1087
  msgid "Keep text format and links"
1088
  msgstr "フォーマットとリンクを保持する"
1089
 
1090
+ #: ../views/form.php:67
1091
+ #, fuzzy
1092
+ msgid "Excerpt length"
1093
  msgstr "抜粋の長さ"
1094
 
1095
+ #: ../views/form.php:73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1096
  msgid "Display post thumbnail"
1097
  msgstr "投稿サムネールを表示する"
1098
 
1099
+ #: ../views/form.php:76
1100
+ #, fuzzy
1101
+ msgid "Width"
1102
  msgstr "幅:"
1103
 
1104
+ #: ../views/form.php:77 ../views/form.php:80
1105
  msgid "px"
1106
  msgstr "ピクセル"
1107
 
1108
+ #: ../views/form.php:79
1109
+ #, fuzzy
1110
+ msgid "Height"
1111
  msgstr "高さ:"
1112
 
1113
+ #: ../views/form.php:85
1114
  msgid "Stats Tag settings"
1115
  msgstr "統計タグ設定"
1116
 
1117
+ #: ../views/form.php:87
1118
  msgid "Display comment count"
1119
  msgstr "コメント数を表示する"
1120
 
1121
+ #: ../views/form.php:89
1122
  msgid "Display views"
1123
  msgstr "閲覧数を表示する"
1124
 
1125
+ #: ../views/form.php:91
1126
  msgid "Display author"
1127
  msgstr "投稿者を表示する"
1128
 
1129
+ #: ../views/form.php:93
1130
  msgid "Display date"
1131
  msgstr "日付を表示する"
1132
 
1133
+ #: ../views/form.php:96
1134
  msgid "Date Format"
1135
  msgstr "日付フォーマット"
1136
 
1137
+ #: ../views/form.php:98
1138
+ #, fuzzy
1139
+ msgid "Wordpress Date Format"
1140
+ msgstr "日付フォーマット"
1141
+
1142
+ #: ../views/form.php:105
1143
  msgid "Display category"
1144
  msgstr "カテゴリを表示する"
1145
 
1146
+ #: ../views/form.php:109
1147
  msgid "HTML Markup settings"
1148
  msgstr "HTMLマークアップの設定"
1149
 
1150
+ #: ../views/form.php:111
1151
  msgid "Use custom HTML Markup"
1152
  msgstr "カスタムHTMLマークアップを使う"
1153
 
1154
+ #: ../views/form.php:114
1155
+ #, fuzzy
1156
+ msgid "Before / after title"
1157
  msgstr "タイトルの前/後:"
1158
 
1159
+ #: ../views/form.php:117
1160
+ #, fuzzy
1161
+ msgid "Before / after Popular Posts"
1162
  msgstr "投稿の前/後:"
1163
 
1164
+ #: ../views/form.php:120
1165
+ #, fuzzy
1166
+ msgid "Post HTML Markup"
1167
  msgstr "投稿用HTMLマークアップ:"
1168
 
1169
+ #: ../wordpress-popular-posts.php:269
1170
+ msgid "The most Popular Posts on your blog."
1171
+ msgstr "あなたのブログで最も人気のある投稿。"
1172
+
1173
+ #: ../wordpress-popular-posts.php:410
1174
+ msgid ""
1175
+ "Error: cannot ajaxify Wordpress Popular Posts on this theme. It's missing "
1176
+ "the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
1177
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1178
+ "\"nofollow\">register_sidebar</a> for more)."
1179
+ msgstr ""
1180
+
1181
+ #: ../wordpress-popular-posts.php:636
1182
+ msgid "Upload"
1183
+ msgstr "アップロード"
1184
+
1185
+ #: ../wordpress-popular-posts.php:1002
1186
+ #, fuzzy, php-format
1187
+ msgid ""
1188
+ "Your PHP installation is too old. Wordpress Popular Posts requires at least "
1189
+ "PHP version %1$s to function correctly. Please contact your hosting provider "
1190
+ "and ask them to upgrade PHP to %1$s or higher."
1191
+ msgstr ""
1192
+ "お使いのPHPは古すぎます。WordPress Popular Postsが正常に働くには、PHP 5.2.0以"
1193
+ "上が必須です。お使いのホスティング会社に連絡をとって、PHP 5.2.xかそれ以上に"
1194
+ "アップグレードするように要望してください。"
1195
+
1196
+ #: ../wordpress-popular-posts.php:1009
1197
+ #, fuzzy, php-format
1198
+ msgid ""
1199
+ "Your Wordpress version is too old. Wordpress Popular Posts requires at least "
1200
+ "Wordpress version %1$s to function correctly. Please update your blog via "
1201
+ "Dashboard &gt; Update."
1202
+ msgstr ""
1203
+ "お使いのWordPressは古すぎます。WordPress Popular Postsが正常に働くには、バー"
1204
+ "ジョン2.8以上が必須です。ツール &gt; 更新 でブログをアップデートしてくださ"
1205
+ "い。"
1206
+
1207
+ #: ../wordpress-popular-posts.php:1034
1208
+ #, php-format
1209
+ msgid ""
1210
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
1211
+ "strong>.</p></div>"
1212
+ msgstr ""
1213
+
1214
+ #: ../wordpress-popular-posts.php:1094
1215
  msgid "Success! The cache table has been cleared!"
1216
  msgstr "成功しました! キャッシュ・テーブルは空になっています!"
1217
 
1218
+ #: ../wordpress-popular-posts.php:1096
1219
  msgid "Error: cache table does not exist."
1220
  msgstr "エラー: キャッシュ・テーブルが存在しません。"
1221
 
1222
+ #: ../wordpress-popular-posts.php:1103
1223
  msgid "Success! All data have been cleared!"
1224
  msgstr "成功しました! 全てのデータが削除されました!"
1225
 
1226
+ #: ../wordpress-popular-posts.php:1105
1227
  msgid "Error: one or both data tables are missing."
1228
  msgstr "エラー: テーブルの1つか、あるいは2つともなくなっています。"
1229
 
1230
+ #: ../wordpress-popular-posts.php:1108
1231
  msgid "Invalid action."
1232
  msgstr "不正な操作"
1233
 
1234
+ #: ../wordpress-popular-posts.php:1111
1235
  msgid ""
1236
  "Sorry, you do not have enough permissions to do this. Please contact the "
1237
  "site administrator for support."
1238
  msgstr ""
1239
+ "申し訳ありませんが、この操作を行う権限がありません。サイト管理者にサポートを"
1240
+ "お願いしてください。"
1241
 
1242
+ #: ../wordpress-popular-posts.php:1639
1243
  msgid "Sorry. No data so far."
1244
  msgstr "申し訳ありませんが、まだデータがありません。"
1245
 
1246
+ #: ../wordpress-popular-posts.php:2111
1247
+ #, fuzzy
1248
+ msgid "1 comment"
 
 
 
1249
  msgstr "コメント"
1250
 
1251
+ #: ../wordpress-popular-posts.php:2123
1252
+ #, fuzzy
1253
+ msgid "1 view per day"
 
 
 
1254
  msgstr "ビュー(本日)"
1255
 
1256
+ #: ../wordpress-popular-posts.php:2129
1257
+ #, fuzzy
1258
+ msgid "1 view"
1259
  msgstr "ビュー"
1260
 
1261
+ #: ../wordpress-popular-posts.php:2141
1262
+ #, php-format
1263
+ msgid "by %s"
1264
+ msgstr ""
 
 
 
1265
 
1266
+ #: ../wordpress-popular-posts.php:2147
1267
+ #, fuzzy, php-format
1268
+ msgid "posted on %s"
1269
  msgstr "投稿日付"
1270
 
1271
+ #: ../wordpress-popular-posts.php:2155
1272
+ #, fuzzy, php-format
1273
+ msgid "under %s"
1274
  msgstr "カテゴリ:"
1275
 
1276
+ #~ msgid ""
1277
+ #~ "Please refer to \"List of parameters accepted by wpp_get_mostpopular() "
1278
+ #~ "and the [wpp] shortcode\"."
1279
+ #~ msgstr ""
1280
+ #~ "「wpp_get_mostpopular()が受けつけるパラメータ・リスト」と[wpp]ショートコー"
1281
+ #~ "ドのところを見てください。"
1282
 
1283
+ #~ msgid ""
1284
+ #~ "List of parameters accepted by wpp_get_mostpopular() and the [wpp] "
1285
+ #~ "shortcode"
1286
+ #~ msgstr ""
1287
+ #~ "wpp_get_mostpopular()と[wpp]ショートコードが受けつけるパラメータ・リスト"
 
 
 
1288
 
1289
+ #~ msgid ""
1290
+ #~ "These parameters can be used by both the template tag "
1291
+ #~ "wpp_get_most_popular() and the shortcode [wpp]."
1292
+ #~ msgstr ""
1293
+ #~ "これは、wpp_get_mostpopular()テンプレートタグと[wpp]ショートコードで使える"
1294
+ #~ "パラメータです。"
1295
+
1296
+ #~ msgid "Preview"
1297
+ #~ msgstr "プレビュー"
1298
+
1299
+ #~ msgid "Excerpt Properties"
1300
+ #~ msgstr "抜粋の扱い方"
1301
+
1302
+ #~ msgid "Thumbnail settings"
1303
+ #~ msgstr "サムネール設定"
1304
+
1305
+ #~ msgid ""
1306
+ #~ "Here you will find a handy group of options to tweak Wordpress Popular "
1307
+ #~ "Posts."
1308
+ #~ msgstr ""
1309
+ #~ "ここでは、WordPress Popular Postsをカスタマイズできるオプションのリストを"
1310
+ #~ "見ることができます。"
1311
+
1312
+ #, fuzzy
1313
+ #~ msgid "Popular Posts links behavior"
1314
+ #~ msgstr "人気投稿リストの書き換え間隔"
1315
+
1316
+ #~ msgid "Views logging behavior"
1317
+ #~ msgstr "閲覧数を記録するやり方"
1318
+
1319
+ #~ msgid "Wordpress Popular Posts Stylesheet"
1320
+ #~ msgstr "WordPress Popular Postsのスタイルシート"
1321
+
1322
+ #~ msgid "Data tools"
1323
+ #~ msgstr "データを扱う道具"
1324
+
1325
+ #~ msgid "Popular posts listing refresh interval"
1326
+ #~ msgstr "人気投稿リストの書き換え間隔"
1327
+
1328
+ #~ msgid "Frequently Asked Questions"
1329
+ #~ msgstr "よくある質問"
1330
+
1331
+ #~ msgid "Sets the opening tag for each item on the list"
1332
+ #~ msgstr "リスト項目の開始タグを設定します。"
1333
+
1334
+ #~ msgid "Sets the closing tag for each item on the list"
1335
+ #~ msgstr "リスト項目の終了タグを設定します。"
1336
+
1337
+ #~ msgid ""
1338
+ #~ "If set, this option will allow you to decide the order of the contents "
1339
+ #~ "within each item on the list."
1340
+ #~ msgstr ""
1341
+ #~ "これを設定すると、リスト表示される項目の順序を決めることができます。"
1342
+
1343
+ #~ msgid ""
1344
+ #~ "If set, you can decide the order of each content inside a single item on "
1345
+ #~ "the list. For example, setting it to \"{title}: {summary}\" would output "
1346
+ #~ "something like \"Your Post Title: summary here\". This attribute requires "
1347
+ #~ "do_pattern to be true."
1348
+ #~ msgstr ""
1349
+ #~ "これを設定すると、リスト表示される個別の項目の中で何をどの順序で表示するか"
1350
+ #~ "を決めることができます。たとえば、\"{title}: {summary}\"とすると、\"投稿タ"
1351
+ #~ "イトル: サマリ\"という形で表示されます。この属性を使うには、do_patternが"
1352
+ #~ "trueに設定されていることが必要です。"
1353
+
1354
+ #~ msgid "Available tags"
1355
+ #~ msgstr "利用できるタグ"
1356
+
1357
+ #~ msgid "Rate it"
1358
+ #~ msgstr "評価する"
1359
+
1360
+ #~ msgid "on the official Plugin Directory!"
1361
+ #~ msgstr "公式プラグイン・ディレクトリで!"
1362
+
1363
+ #~ msgid "Do you love this plugin?"
1364
+ #~ msgstr "このプラグインが大好きですか?"
1365
+
1366
+ #~ msgid "Buy me a beer!"
1367
+ #~ msgstr "ビールを奢ってください!"
1368
+
1369
+ #~ msgid "comments"
1370
+ #~ msgstr "コメント"
1371
+
1372
+ #~ msgid "views per day"
1373
+ #~ msgstr "ビュー(本日)"
1374
+
1375
+ #~ msgid "views"
1376
+ #~ msgstr "ビュー"
1377
+
1378
+ #~ msgid "by"
1379
+ #~ msgstr "投稿者:"
lang/wordpress-popular-posts-nl_NL.mo DELETED
Binary file
lang/wordpress-popular-posts-nl_NL.po DELETED
@@ -1,974 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Wordpress Popular Posts\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-08-31 11:31-0430\n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Jeroen van Heemskerck Düker <jeroenvhd@me.com>\n"
8
- "Language-Team: Jeroen van Heemskerck Duker\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "Language: en_VE\n"
13
- "X-Poedit-SourceCharset: iso-8859-1\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
15
- "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.3\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: admin.php:33 admin.php:44 admin.php:50 admin.php:57
20
- msgid "Settings saved."
21
- msgstr "Instellingen bewaard"
22
-
23
- #: admin.php:38
24
- msgid "Please provide the name of your custom field."
25
- msgstr "Geef de naam van het aangepaste veld."
26
-
27
- #: admin.php:247
28
- msgid ""
29
- "This operation will delete all entries from Wordpress Popular Posts' cache "
30
- "table and cannot be undone."
31
- msgstr ""
32
- "Deze handeling maakt de cache leeg van WP Popular Posts en kan niet worden "
33
- "hersteld."
34
-
35
- #: admin.php:247 admin.php:255
36
- msgid "Do you want to continue?"
37
- msgstr "Wil je doorgaan?"
38
-
39
- #: admin.php:255
40
- msgid ""
41
- "This operation will delete all stored info from Wordpress Popular Posts' "
42
- "data tables and cannot be undone."
43
- msgstr ""
44
- "Deze handeling verwijdert alle gegevens uit het bestand van WP Popular Posts "
45
- "en kan niet worden hersteld. "
46
-
47
- #: admin.php:269
48
- msgid "Stats"
49
- msgstr "Status"
50
-
51
- #: admin.php:270
52
- msgid "FAQ"
53
- msgstr "Veelgestelde vragen (FAQ)"
54
-
55
- #: admin.php:271
56
- msgid "Tools"
57
- msgstr "Gereedschappen"
58
-
59
- #: admin.php:275
60
- msgid ""
61
- "Click on each tab to see what are the most popular entries on your blog "
62
- "today, this week, last 30 days or all time since Wordpress Popular Posts was "
63
- "installed."
64
- msgstr ""
65
- "Klik op de tabs om de meestgelezen berichten te zien van vandaag, de "
66
- "afgelopen week, de laatste maand of vanaf de installatie."
67
-
68
- #: admin.php:281
69
- msgid "Order by comments"
70
- msgstr "Orden op aantal reacties"
71
-
72
- #: admin.php:282
73
- msgid "Order by views"
74
- msgstr "Orden op aantal keer bekeken"
75
-
76
- #: admin.php:283
77
- msgid "Order by avg. daily views"
78
- msgstr "Orden op gemiddeld aantal bezoeken per dag"
79
-
80
- #: admin.php:285
81
- msgid "Limit"
82
- msgstr "Limiet"
83
-
84
- #: admin.php:287 admin.php:667 admin.php:683 admin.php:700
85
- msgid "Apply"
86
- msgstr "Pas toe"
87
-
88
- #: admin.php:293 wordpress-popular-posts.php:307
89
- msgid "Last 24 hours"
90
- msgstr "Afgelopen 24 uur"
91
-
92
- #: admin.php:294 wordpress-popular-posts.php:308
93
- msgid "Last 7 days"
94
- msgstr "Afgelopen week"
95
-
96
- #: admin.php:295 wordpress-popular-posts.php:309
97
- msgid "Last 30 days"
98
- msgstr "Afgelopen maand"
99
-
100
- #: admin.php:296 wordpress-popular-posts.php:310
101
- msgid "All-time"
102
- msgstr "All-time"
103
-
104
- #: admin.php:317
105
- msgid "Frequently Asked Questions"
106
- msgstr "Veelgestelde vragen"
107
-
108
- #: admin.php:321
109
- msgid "What does \"Title\" do?"
110
- msgstr "Wat doet \"Titel\" ?"
111
-
112
- #: admin.php:323
113
- msgid ""
114
- "It allows you to show a heading for your most popular posts listing. If left "
115
- "empty, no heading will be displayed at all."
116
- msgstr ""
117
- "Dit toont een kop boven je lijst van populaire berichten. Laat het leeg om "
118
- "niets te tonen."
119
-
120
- #: admin.php:326
121
- msgid "What is Time Range for?"
122
- msgstr "Waar is Tijdvak voor?"
123
-
124
- #: admin.php:328
125
- msgid ""
126
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
127
- "comments within the selected time range."
128
- msgstr ""
129
- "Hiermee toon je berichten met het hoogste aantal bezoeken / reacties binnen "
130
- "het aangegeven tijdvak."
131
-
132
- #: admin.php:331
133
- msgid "What is \"Sort post by\" for?"
134
- msgstr "Wat doet \"Sorteer berichten op\" ?"
135
-
136
- #: admin.php:333
137
- msgid ""
138
- "It allows you to decide whether to order your popular posts listing by total "
139
- "views, comments, or average views per day."
140
- msgstr ""
141
- "Hiermee bepaal je hoe je de lijst van populaire berichten ordent: op aantal "
142
- "keren bekeken, aantal reacties, of gemiddeld aantal bezoeken per dag."
143
-
144
- #: admin.php:336
145
- msgid "What does \"Display post rating\" do?"
146
- msgstr "Wat doet \"Toon berichtwaardering\"?"
147
-
148
- #: admin.php:338
149
- msgid ""
150
- "If checked, Wordpress Popular Posts will show how your readers are rating "
151
- "your most popular posts. This feature requires having WP-PostRatings plugin "
152
- "installed and enabled on your blog for it to work."
153
- msgstr ""
154
- "Kruis deze optie aan om de waardering van je berichten te laten zien. Je "
155
- "moet de WP-PostRating plugin hebben geinstalleerd en geactiveerd."
156
-
157
- #: admin.php:341
158
- msgid "What does \"Shorten title\" do?"
159
- msgstr "Wat doet \"Kort titel af\"?"
160
-
161
- #: admin.php:343
162
- msgid ""
163
- "If checked, all posts titles will be shortened to \"n\" characters. A new "
164
- "\"Shorten title to\" option will appear so you can set it to whatever you "
165
- "like."
166
- msgstr ""
167
- "Kruis dit aan als je berichttitel wil beperken tot \"n\" tekens. Gebruik de "
168
- "volgende optie \"Kort titel af tot\" om de lengte te bepalen."
169
-
170
- #: admin.php:346
171
- msgid "What does \"Display post excerpt\" do?"
172
- msgstr "Wat doet \"Toon samenvatting\"?"
173
-
174
- #: admin.php:348
175
- msgid ""
176
- "If checked, Wordpress Popular Posts will also include a small extract of "
177
- "your posts in the list. Similarly to the previous option, you will be able "
178
- "to decide how long the post excerpt should be."
179
- msgstr ""
180
- "Kruis dit aan om een samenvatting te laten zien in de berichtenlijst. Je "
181
- "kunt zelf de lengte van de samenvatting bepalen."
182
-
183
- #: admin.php:351
184
- msgid "What does \"Keep text format and links\" do?"
185
- msgstr "Wat doet \"Behoud tekstopmaak en koppelingen\"?"
186
-
187
- #: admin.php:353
188
- msgid ""
189
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
190
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
191
- "the excerpt. Hyperlinks will remain intact, too."
192
- msgstr ""
193
- "Als de optie Toon samenvatting is aangevinkt, behoudt WP Popular Posts alle "
194
- "stijlkenmerken in de samenvatting. Koppelingen blijven ook behouden."
195
-
196
- #: admin.php:356
197
- msgid "What is \"Post type\" for?"
198
- msgstr "Waar is \"Berichttype\" voor?"
199
-
200
- #: admin.php:358
201
- msgid ""
202
- "This filter allows you to decide which post types to show on the listing. By "
203
- "default, it will retrieve only posts and pages (which should be fine for "
204
- "most cases)."
205
- msgstr ""
206
- "Met dit filter bepaal je welke berichttypes (post types) getoond worden. "
207
- "Standaard worden alleenberichten en pagina's getoond (wat meestal afdoende "
208
- "is)."
209
-
210
- #: admin.php:361
211
- msgid "What is \"Category(ies) ID(s)\" for?"
212
- msgstr "Waar is \"Categorie ID(s)\" voor?"
213
-
214
- #: admin.php:363
215
- msgid ""
216
- "This filter allows you to select which categories should be included or "
217
- "excluded from the listing. A negative sign in front of the category ID "
218
- "number will exclude posts belonging to it from the list, for example. You "
219
- "can specify more than one ID with a comma separated list."
220
- msgstr ""
221
- "Met dit filter bepaal je welke categorie opgenomen wordt of uitgesloten van "
222
- "de lijst. Met een minteken voor het ID-nummer sluit je een categorie uit. Je "
223
- "kunt meer dan een ID opgeven, gescheiden door een komma."
224
-
225
- #: admin.php:366
226
- msgid "What is \"Author(s) ID(s)\" for?"
227
- msgstr "Waar is \"Auteur ID(s)\" voor?"
228
-
229
- #: admin.php:368
230
- msgid ""
231
- "Just like the Category filter, this one lets you filter posts by author ID. "
232
- "You can specify more than one ID with a comma separated list."
233
- msgstr ""
234
- "Net als het Categoriefilter kun je hiermee auteurs opnemen of juist "
235
- "uitsluiten van de lijst. Je kunt meer dan een ID opgeven, gescheiden door "
236
- "een komma."
237
-
238
- #: admin.php:371
239
- msgid "What does \"Display post thumbnail\" do?"
240
- msgstr "Wat doet \"Toon miniatuur\"?"
241
-
242
- #: admin.php:373
243
- msgid ""
244
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
245
- "of each post. You can set up the source of the thumbnail via Settings - "
246
- "Wordpress Popular Posts - Tools."
247
- msgstr ""
248
- "Hiermee zoekt WP Popular Posts naar een miniatuurplaatje in het bericht. Je "
249
- "kunt de bron opgeven via Instellingen - WP Popular Posts - Gereedschappen."
250
-
251
- #: admin.php:376
252
- msgid "What does \"Display comment count\" do?"
253
- msgstr "Wat doet \"Toon aantal reacties\"?"
254
-
255
- #: admin.php:378
256
- msgid ""
257
- "If checked, Wordpress Popular Posts will display how many comments each "
258
- "popular post has got in the selected Time Range."
259
- msgstr ""
260
- "Hiermee laat de plugin zien hoeveel reacties elk populair bericht heeft "
261
- "binnen het opgegeven tijdvak."
262
-
263
- #: admin.php:381
264
- msgid "What does \"Display views\" do?"
265
- msgstr "Wat doet \"Toon aantal bezoeken\"?"
266
-
267
- #: admin.php:383
268
- msgid ""
269
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
270
- "post has gotten in the selected Time Range."
271
- msgstr ""
272
- "Hiermee laat je zien hoe vaak het bericht binnen het opgegeven tijdvak is "
273
- "bekeken."
274
-
275
- #: admin.php:386
276
- msgid "What does \"Display author\" do?"
277
- msgstr "Wat doet \"Toon auteur\"?"
278
-
279
- #: admin.php:388
280
- msgid ""
281
- "If checked, Wordpress Popular Posts will display the name of the author of "
282
- "each entry listed."
283
- msgstr "Deze optie toont de auteur van elk bericht in de lijst."
284
-
285
- #: admin.php:391
286
- msgid "What does \"Display date\" do?"
287
- msgstr "Wat doet \"Toon datum\"?"
288
-
289
- #: admin.php:393
290
- msgid ""
291
- "If checked, Wordpress Popular Posts will display the date when each popular "
292
- "posts was published."
293
- msgstr "Deze optie toont de publicatiedatum van elk bericht."
294
-
295
- #: admin.php:396
296
- msgid "What does \"Use custom HTML Markup\" do?"
297
- msgstr "Wat doet \"Gebruik aangepaste HTML\"?"
298
-
299
- #: admin.php:398
300
- msgid ""
301
- "If checked, you will be able to customize the HTML markup of your popular "
302
- "posts listing. For example, you can decide whether to wrap your posts in an "
303
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
304
- "for you!"
305
- msgstr ""
306
- "Met deze optie kun je de HTML-opmaak van de berichtenlijst aanpassen. Maak "
307
- "er bijvoorbeeld een geordende lijst van, of een div. Als je bekend met met "
308
- "xHTML en CSS, is dit een optie voor jou!"
309
-
310
- #: admin.php:401
311
- msgid "What does \"Use content formatting tags\" do?"
312
- msgstr "Wat doet \"Gebruik opmaaklabels\"?"
313
-
314
- #: admin.php:403
315
- msgid ""
316
- "If checked, you can decide the order of the items displayed on each entry. "
317
- "For example, setting it to \"{title}: {summary}\" (without the quotes) would "
318
- "display \"Post title: excerpt of the post here\". Available tags: {image}, "
319
- "{title}, {summary}, {stats} and {rating}."
320
- msgstr ""
321
- "Hiermee bepaal je de volgorde van de kenmerken van elk bericht in de lijst. "
322
- "Bijvoorbeeld: \"{title}: {summary}\" (zonder de aanhalingstekens) wordt "
323
- "getoond als \"Berichttitel: samenvatting hier\" Labels (tags) om te "
324
- "gebruiken zijn: {image}, {title}, {summary}, {stats} en {rating}."
325
-
326
- #: admin.php:406
327
- msgid "What are \"Template Tags\"?"
328
- msgstr "Wat zijn \"sjabloonlabels\"?"
329
-
330
- #: admin.php:408
331
- msgid ""
332
- "Template Tags are simply php functions that allow you to perform certain "
333
- "actions. For example, Wordpress Popular Posts currently supports two "
334
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
335
- msgstr ""
336
- "Sjabloonlabels of Template Tags zijn eenvoudige php functies. De plugin "
337
- "ondersteunt momenteel twee sjabloonlabels: wpp_get_mostpopular() en "
338
- "wpp_get_views()."
339
-
340
- #: admin.php:411
341
- msgid "What are the template tags that Wordpress Popular Posts supports?"
342
- msgstr "Welke sjabloonlabels ondersteunt WP Popular Posts?"
343
-
344
- #: admin.php:413
345
- msgid ""
346
- "The following are the template tags supported by Wordpress Popular Posts"
347
- msgstr "Deze sjabloonlabels worden ondersteund door de plugin"
348
-
349
- #: admin.php:417
350
- msgid "Template tag"
351
- msgstr "Sjabloonlabel"
352
-
353
- #: admin.php:418 admin.php:451
354
- msgid "What it does "
355
- msgstr "Functie"
356
-
357
- #: admin.php:419
358
- msgid "Parameters"
359
- msgstr "Parameters"
360
-
361
- #: admin.php:420 admin.php:454
362
- msgid "Example"
363
- msgstr "Voorbeeld"
364
-
365
- #: admin.php:426
366
- msgid ""
367
- "Similar to the widget functionality, this tag retrieves the most popular "
368
- "posts on your blog. This function also accepts parameters so you can "
369
- "customize your popular listing, but these are not required."
370
- msgstr ""
371
- "Dit label haalt de populairste berichten op. De functie is vergelijkbaar met "
372
- "die van de widget. Je kunt parameters invullen om je lijst aan te passen, "
373
- "maar dat is niet verplicht."
374
-
375
- #: admin.php:427
376
- msgid ""
377
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
378
- "the [wpp] shortcode\"."
379
- msgstr ""
380
- "Bekijk de \"List of parameters accepted by wpp_get_mostpopular() and the "
381
- "[wpp] shortcode\"."
382
-
383
- #: admin.php:432
384
- msgid ""
385
- "Displays the number of views of a single post. Post ID is required or it "
386
- "will return false."
387
- msgstr ""
388
- "Toont het aantal keren dat het bericht is bekeken. De Post ID is verplicht."
389
-
390
- #: admin.php:433
391
- msgid "Post ID"
392
- msgstr "Post ID"
393
-
394
- #: admin.php:440
395
- msgid "What are \"shortcodes\"?"
396
- msgstr "Wat zijn \"shortcodes\"?"
397
-
398
- #: admin.php:442
399
- msgid ""
400
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
401
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
402
- "shortcode [wpp] will let you insert a list of the most popular posts in "
403
- "posts content and pages too! For more information about shortcodes, please "
404
- "visit"
405
- msgstr ""
406
- "Een \"shortcode\" verwijst naar een php-functie. In WP Popular Posts kun je "
407
- "de shortcode [wpp] gebruiken om een lijst van populaire berichten te tonen "
408
- "in een gewoon bericht of een pagina. Voor meer informatie, bekijk "
409
-
410
- #: admin.php:444
411
- msgid ""
412
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
413
- msgstr "Alle parameters voor wpp_get_mostpopular() en de [wpp] shortcode"
414
-
415
- #: admin.php:446
416
- msgid ""
417
- "These parameters can be used by both the template tag wpp_get_most_popular() "
418
- "and the shortcode [wpp]."
419
- msgstr ""
420
- "Deze parameters kun je gebruiken bij het sjabloonlabel wpp_get_most_popular"
421
- "() en se shortcode [wpp]."
422
-
423
- #: admin.php:450
424
- msgid "Parameter"
425
- msgstr "Parameter"
426
-
427
- #: admin.php:452
428
- msgid "Possible values"
429
- msgstr "Mogelijke waarden"
430
-
431
- #: admin.php:453
432
- msgid "Defaults to"
433
- msgstr "Standaard"
434
-
435
- #: admin.php:460
436
- msgid "Sets a heading for the list"
437
- msgstr "Geeft een titel op voor je lijst"
438
-
439
- #: admin.php:461 admin.php:468 admin.php:475 admin.php:503 admin.php:510
440
- #: admin.php:517 admin.php:594 admin.php:601 admin.php:608 admin.php:615
441
- #: admin.php:622
442
- msgid "Text string"
443
- msgstr "Vrije tekst"
444
-
445
- #: admin.php:462 wordpress-popular-posts.php:250
446
- msgid "Popular Posts"
447
- msgstr "Populaire berichten"
448
-
449
- #: admin.php:467
450
- msgid "Set the opening tag for the heading of the list"
451
- msgstr "Bepaalt de open-tag voor de lijsttitel"
452
-
453
- #: admin.php:474
454
- msgid "Set the closing tag for the heading of the list"
455
- msgstr "Bepaalt de sluit-tag voor de lijsttitel"
456
-
457
- #: admin.php:481
458
- msgid "Sets the maximum number of popular posts to be shown on the listing"
459
- msgstr "Bepaalt het maximumaantal berichten in de lijst"
460
-
461
- #: admin.php:482 admin.php:524 admin.php:531 admin.php:545 admin.php:552
462
- msgid "Positive integer"
463
- msgstr "Positief geheel getal"
464
-
465
- #: admin.php:488
466
- msgid ""
467
- "Tells Wordpress Popular Posts to retrieve the most popular entries within "
468
- "the time range specified by you"
469
- msgstr "Haalt de populaire berichten op binnen het opgegeven tijdvak"
470
-
471
- #: admin.php:495
472
- msgid "Sets the sorting option of the popular posts"
473
- msgstr "Bepaalt de sorteervolgorde van de populaire berichten"
474
-
475
- #: admin.php:496
476
- msgid "(for average views per day)"
477
- msgstr "(voor het gemiddeld aantal bezoeken per dag)"
478
-
479
- #: admin.php:502
480
- msgid "Defines the type of posts to show on the listing"
481
- msgstr "Definieert het type berichten in de lijst"
482
-
483
- #: admin.php:509
484
- msgid ""
485
- "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
486
- "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
487
- "will be excluded instead."
488
- msgstr ""
489
- "WP Popular Posts haalt alle berichten op binnen de opgegeven categorie(en). "
490
- "Een minteken sluit de categorie juist uit."
491
-
492
- #: admin.php:511 admin.php:518
493
- msgid "None"
494
- msgstr "Geen"
495
-
496
- #: admin.php:516
497
- msgid ""
498
- "If set, Wordpress Popular Posts will retrieve all entries created by "
499
- "specified author(s) ID(s)."
500
- msgstr "WP Popular Posts haalt alle berichten op met de opgegeven auteur ID(s)"
501
-
502
- #: admin.php:523
503
- msgid ""
504
- "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
505
- "characters whenever possible"
506
- msgstr ""
507
- "WP Popular Posts kort de berichtkop af tot \"n\" lettertekens, indien "
508
- "mogelijk"
509
-
510
- #: admin.php:530
511
- msgid ""
512
- "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
513
- "characters long from the content of each post listed as popular"
514
- msgstr "WP Popular Posts neemt een samenvatting op van \"n\" lettertekens "
515
-
516
- #: admin.php:537
517
- msgid ""
518
- "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
519
- "italic, etc) and hyperlinks found in the excerpt"
520
- msgstr ""
521
- "WP Popular Posts behoudt alle stijlkenmerken (vet, cursief etc) en de "
522
- "koppelingen in het bericht"
523
-
524
- #: admin.php:544
525
- msgid ""
526
- "If set, and if your current server configuration allows it, you will be able "
527
- "to display thumbnails of your posts. This attribute sets the width for "
528
- "thumbnails"
529
- msgstr ""
530
- "Je kunt miniaturen in je berichten laten zien, als je serverconfiguratie dat "
531
- "toestaat. Dit attribuut bepaalt de breedte van het miniatuurplaatje."
532
-
533
- #: admin.php:551
534
- msgid ""
535
- "If set, and if your current server configuration allows it, you will be able "
536
- "to display thumbnails of your posts. This attribute sets the height for "
537
- "thumbnails"
538
- msgstr ""
539
- "Je kunt miniaturen in je berichten laten zien, als je serverconfiguratie dat "
540
- "toestaat. Dit attribuut bepaalt de hoogte van het miniatuurplaatje."
541
-
542
- #: admin.php:558
543
- msgid ""
544
- "If set, and if the WP-PostRatings plugin is installed and enabled on your "
545
- "blog, Wordpress Popular Posts will show how your visitors are rating your "
546
- "entries"
547
- msgstr ""
548
- "Als de WP-PostRatings plugin is geinstalleerd en geactiveerd, toont WP "
549
- "Popular Posts hiermee hoe je bezoekers de berichten hebben gewaardeerd."
550
-
551
- #: admin.php:565
552
- msgid ""
553
- "If set, Wordpress Popular Posts will show how many comments each popular "
554
- "post has got until now"
555
- msgstr ""
556
- "Hiermee toon je hoeveel reacties er tot nu toe zijn op elk populair bericht"
557
-
558
- #: admin.php:572
559
- msgid ""
560
- "If set, Wordpress Popular Posts will show how many views each popular post "
561
- "has got since it was installed"
562
- msgstr ""
563
- "Hiermee toon je hoe vaak elk populair bericht is bekeken sinds het werd "
564
- "gepubliceerd."
565
-
566
- #: admin.php:579
567
- msgid ""
568
- "If set, Wordpress Popular Posts will show who published each popular post on "
569
- "the list"
570
- msgstr "Hiermee toon je wie heet populaire bericht heeft gepubliceerd."
571
-
572
- #: admin.php:586
573
- msgid ""
574
- "If set, Wordpress Popular Posts will display the date when each popular post "
575
- "on the list was published"
576
- msgstr "Hiermee toon je de publicatiedatum van elk populair bericht"
577
-
578
- #: admin.php:593
579
- msgid "Sets the date format"
580
- msgstr "Bepaalt de datumopmaak"
581
-
582
- #: admin.php:600
583
- msgid "Sets the opening tag for the listing"
584
- msgstr "Bepaalt de open-tag van de lijst"
585
-
586
- #: admin.php:607
587
- msgid "Sets the closing tag for the listing"
588
- msgstr "Bepaalt de sluit-tag van de lijst"
589
-
590
- #: admin.php:614
591
- msgid "Sets the opening tag for each item on the list"
592
- msgstr "Bepaalt de open-tag van elk item op de lijst"
593
-
594
- #: admin.php:621
595
- msgid "Sets the closing tag for each item on the list"
596
- msgstr "Bepaalt de sluit-tag van elk item op de lijst"
597
-
598
- #: admin.php:628
599
- msgid ""
600
- "If set, this option will allow you to decide the order of the contents "
601
- "within each item on the list."
602
- msgstr ""
603
- "Met deze optie bepaal je de volgorde van de onderdelen in elk bericht op de "
604
- "lijst"
605
-
606
- #: admin.php:635
607
- msgid ""
608
- "If set, you can decide the order of each content inside a single item on the "
609
- "list. For example, setting it to \"{title}: {summary}\" would output "
610
- "something like \"Your Post Title: summary here\". This attribute requires "
611
- "do_pattern to be true."
612
- msgstr ""
613
- "Je kunt de volgorde vanelk onderdeel in het bericht zelf bepalen. "
614
- "Bijvoorbeeld: de volgorde \"{title}: {summary}\" wordt getoond als \"je "
615
- "berichttitel: de samenvatting hier\". De functie do_pattern moet op \"true\" "
616
- "staan."
617
-
618
- #: admin.php:636
619
- msgid "Available tags"
620
- msgstr "Beschikbare tags"
621
-
622
- #: admin.php:651
623
- msgid ""
624
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
625
- msgstr ""
626
- "Hier vind je een aantal handige opties waarmee je de plugin kunt aanpassen."
627
-
628
- #: admin.php:653
629
- msgid "Thumbnail source"
630
- msgstr "Bron miniatuur"
631
-
632
- #: admin.php:654
633
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
634
- msgstr "Vul in waar de minaturen te vinden zijn"
635
-
636
- #: admin.php:659
637
- msgid "Featured image"
638
- msgstr "Uitgelichte afbeelding"
639
-
640
- #: admin.php:660
641
- msgid "First image on post"
642
- msgstr "Eerste plaatje in het bericht"
643
-
644
- #: admin.php:661
645
- msgid "Custom field"
646
- msgstr "Aangepast veld"
647
-
648
- #: admin.php:664
649
- msgid "Custom field name"
650
- msgstr "Naam aangepast veld"
651
-
652
- #: admin.php:673
653
- msgid "Wordpress Popular Posts Stylesheet"
654
- msgstr "Wordpress Popular Posts stijlblad (stylesheet)"
655
-
656
- #: admin.php:674
657
- msgid ""
658
- "By default, the plugin includes a stylesheet called wpp.css which you can "
659
- "use to style your popular posts listing. If you wish to use your own "
660
- "stylesheet or do not want it to have it included in the header section of "
661
- "your site, use this."
662
- msgstr ""
663
- "Standaard bevat de plugin een stijlblad genaamd wpp.css. Dit kun je "
664
- "gebruiken om de opmaak aan te passen. Als je je eigen css-opmaak wilt "
665
- "gebruiken, of je wilt het niet in de header-sectie van de site hebben, "
666
- "gebruik dan dit stijlblad. "
667
-
668
- #: admin.php:679 admin.php:696
669
- msgid "Enabled"
670
- msgstr "Geactiveerd"
671
-
672
- #: admin.php:680 admin.php:697
673
- msgid "Disabled"
674
- msgstr "Gedeactiveerd"
675
-
676
- #: admin.php:689
677
- msgid "Data tools"
678
- msgstr "Data-gereedschappen"
679
-
680
- #: admin.php:691
681
- msgid ""
682
- "AJAX update. If you are using a caching plugin such as WP Super Cache, "
683
- "enabling this feature will keep the popular list from being cached."
684
- msgstr ""
685
-
686
- #: admin.php:706
687
- msgid ""
688
- "Wordpress Popular Posts keeps historical data of your most popular entries "
689
- "for up to 30 days. If for some reason you need to clear the cache table, or "
690
- "even both historical and cache tables, please use the buttons below to do so."
691
- msgstr ""
692
-
693
- #: admin.php:707
694
- msgid "Empty cache"
695
- msgstr "Maak cache leeg"
696
-
697
- #: admin.php:707
698
- msgid "Use this button to manually clear entries from WPP cache only"
699
- msgstr "Klik hier als je de WPP-cache wilt leegmaken"
700
-
701
- #: admin.php:708
702
- msgid "Clear all data"
703
- msgstr "Verwijdere alle gegevens"
704
-
705
- #: admin.php:708
706
- msgid "Use this button to manually clear entries from all WPP data tables"
707
- msgstr "Klik hier als je alle gegevens wilt wissen uit de WPP-datatables"
708
-
709
- #: admin.php:714
710
- msgid "Do you like this plugin?"
711
- msgstr "Vind je deze plugin leuk?"
712
-
713
- #: admin.php:714
714
- msgid "Rate Wordpress Popular Posts!"
715
- msgstr "Geef een waardering voor WP Popular Posts!"
716
-
717
- #: admin.php:714
718
- msgid "Rate it"
719
- msgstr "Geef waardering"
720
-
721
- #: admin.php:714
722
- msgid "on the official Plugin Directory!"
723
- msgstr "op de officiele Pluginpagina!"
724
-
725
- #: admin.php:715
726
- msgid "Do you love this plugin?"
727
- msgstr "Vind je dit een zeer goede plugin?"
728
-
729
- #: admin.php:715 admin.php:716
730
- msgid "Buy me a beer!"
731
- msgstr "Geef mij een biertje!"
732
-
733
- #: admin.php:715
734
- msgid ""
735
- "Each donation motivates me to keep releasing free stuff for the Wordpress "
736
- "community!"
737
- msgstr ""
738
- "Jouw gift motiveert mij om gratis plugins te blijven maken voor de WordPress-"
739
- "gemeenschap!"
740
-
741
- #: wordpress-popular-posts.php:47
742
- msgid "The most Popular Posts on your blog."
743
- msgstr "De populairste berichten op je site"
744
-
745
- #: wordpress-popular-posts.php:301
746
- msgid "Title:"
747
- msgstr "Titel:"
748
-
749
- #: wordpress-popular-posts.php:301 wordpress-popular-posts.php:303
750
- #: wordpress-popular-posts.php:305 wordpress-popular-posts.php:313
751
- #: wordpress-popular-posts.php:324 wordpress-popular-posts.php:326
752
- #: wordpress-popular-posts.php:330 wordpress-popular-posts.php:334
753
- #: wordpress-popular-posts.php:343 wordpress-popular-posts.php:355
754
- #: wordpress-popular-posts.php:367 wordpress-popular-posts.php:368
755
- #: wordpress-popular-posts.php:369 wordpress-popular-posts.php:370
756
- #: wordpress-popular-posts.php:385 wordpress-popular-posts.php:396
757
- msgid "What is this?"
758
- msgstr "Wat is dit?"
759
-
760
- #: wordpress-popular-posts.php:303
761
- msgid "Show up to:"
762
- msgstr "Toon maximaal:"
763
-
764
- #: wordpress-popular-posts.php:304
765
- msgid "posts"
766
- msgstr "berichten"
767
-
768
- #: wordpress-popular-posts.php:305
769
- msgid "Time Range:"
770
- msgstr "Tijdvak:"
771
-
772
- #: wordpress-popular-posts.php:313
773
- msgid "Sort posts by:"
774
- msgstr "Orden berichten op:"
775
-
776
- #: wordpress-popular-posts.php:315
777
- msgid "Comments"
778
- msgstr "Reacties"
779
-
780
- #: wordpress-popular-posts.php:316
781
- msgid "Total views"
782
- msgstr "Totaal bekeken"
783
-
784
- #: wordpress-popular-posts.php:317
785
- msgid "Avg. daily views"
786
- msgstr "Gemiddeld aantal bekeken per dag"
787
-
788
- #: wordpress-popular-posts.php:322
789
- msgid "Posts settings"
790
- msgstr "Berichtinstellingen"
791
-
792
- #: wordpress-popular-posts.php:324
793
- msgid "Display post rating"
794
- msgstr "Toon waardering"
795
-
796
- #: wordpress-popular-posts.php:326
797
- msgid "Shorten title"
798
- msgstr "Kort titel af"
799
-
800
- #: wordpress-popular-posts.php:328
801
- msgid "Shorten title to"
802
- msgstr "Kort titel af tot"
803
-
804
- #: wordpress-popular-posts.php:328 wordpress-popular-posts.php:335
805
- msgid "characters"
806
- msgstr "lettertekens"
807
-
808
- #: wordpress-popular-posts.php:330
809
- msgid "Display post excerpt"
810
- msgstr "Toon samenvatting"
811
-
812
- #: wordpress-popular-posts.php:333
813
- msgid "Excerpt Properties"
814
- msgstr "Kenmerken samenvatting"
815
-
816
- #: wordpress-popular-posts.php:334
817
- msgid "Keep text format and links"
818
- msgstr "Behoud tekstopmaak en koppelingen"
819
-
820
- #: wordpress-popular-posts.php:335
821
- msgid "Excerpt length:"
822
- msgstr "Lengte samenvatting:"
823
-
824
- #: wordpress-popular-posts.php:343
825
- msgid "Filters:"
826
- msgstr "Filters:"
827
-
828
- #: wordpress-popular-posts.php:344
829
- msgid "Post type(s):"
830
- msgstr "Berichttype(s):"
831
-
832
- #: wordpress-popular-posts.php:346
833
- msgid "Category(ies) ID(s):"
834
- msgstr "Categorie ID(s):"
835
-
836
- #: wordpress-popular-posts.php:348
837
- msgid "Author(s) ID(s):"
838
- msgstr "Auteur ID(s):"
839
-
840
- #: wordpress-popular-posts.php:354
841
- msgid "Thumbnail settings"
842
- msgstr "Instellingen miniatuur"
843
-
844
- #: wordpress-popular-posts.php:355
845
- msgid "Display post thumbnail"
846
- msgstr "Ton miniatuurplaatje"
847
-
848
- #: wordpress-popular-posts.php:357
849
- msgid "Width:"
850
- msgstr "Breedte:"
851
-
852
- #: wordpress-popular-posts.php:358 wordpress-popular-posts.php:360
853
- msgid "px"
854
- msgstr "px"
855
-
856
- #: wordpress-popular-posts.php:359
857
- msgid "Height:"
858
- msgstr "Hoogte:"
859
-
860
- #: wordpress-popular-posts.php:366
861
- msgid "Stats Tag settings"
862
- msgstr "Instellingen Statuslabel"
863
-
864
- #: wordpress-popular-posts.php:367
865
- msgid "Display comment count"
866
- msgstr "Toon aantal reacties"
867
-
868
- #: wordpress-popular-posts.php:368
869
- msgid "Display views"
870
- msgstr "Toon aantal bekeken"
871
-
872
- #: wordpress-popular-posts.php:369
873
- msgid "Display author"
874
- msgstr "Toon auteur"
875
-
876
- #: wordpress-popular-posts.php:370
877
- msgid "Display date"
878
- msgstr "Toon datum"
879
-
880
- #: wordpress-popular-posts.php:373
881
- msgid "Date Format"
882
- msgstr "Datumopmaak"
883
-
884
- #: wordpress-popular-posts.php:384
885
- msgid "HTML Markup settings"
886
- msgstr "Instellingen HTML-opmaak"
887
-
888
- #: wordpress-popular-posts.php:385
889
- msgid "Use custom HTML Markup"
890
- msgstr "Gebruik aangepaste HTML"
891
-
892
- #: wordpress-popular-posts.php:388
893
- msgid "Before / after title:"
894
- msgstr "Voor / na titel:"
895
-
896
- #: wordpress-popular-posts.php:390
897
- msgid "Before / after Popular Posts:"
898
- msgstr "Voor / na berichtenlijst:"
899
-
900
- #: wordpress-popular-posts.php:392
901
- msgid "Before / after each post:"
902
- msgstr "Voor / na elk bericht:"
903
-
904
- #: wordpress-popular-posts.php:396
905
- msgid "Use content formatting tags"
906
- msgstr "Gebruik opmaaklabels"
907
-
908
- #: wordpress-popular-posts.php:399
909
- msgid "Content format:"
910
- msgstr "Opmaak:"
911
-
912
- #: wordpress-popular-posts.php:505
913
- msgid "Success! The cache table has been cleared!"
914
- msgstr "Gelukt! De cache is gewist!"
915
-
916
- #: wordpress-popular-posts.php:507
917
- msgid "Error: cache table does not exist."
918
- msgstr "Fout: de cachetabel bestaat niet."
919
-
920
- #: wordpress-popular-posts.php:513
921
- msgid "Success! All data have been cleared!"
922
- msgstr "Gelukt! Alle gegevens zijn gewist!"
923
-
924
- #: wordpress-popular-posts.php:515
925
- msgid "Error: one or both data tables are missing."
926
- msgstr "Fout: eenof meer datatabellen ontbreken."
927
-
928
- #: wordpress-popular-posts.php:518
929
- msgid "Invalid action."
930
- msgstr "Niet toegestaan."
931
-
932
- #: wordpress-popular-posts.php:521
933
- msgid ""
934
- "Sorry, you do not have enough permissions to do this. Please contact the "
935
- "site administrator for support."
936
- msgstr ""
937
- "Sorry, je hebt geen rechten om dit te doen. Neem contact op met de beheerder."
938
-
939
- #: wordpress-popular-posts.php:852
940
- msgid "Sorry. No data so far."
941
- msgstr "Sorry, tot nu toe geen gegevens."
942
-
943
- #: wordpress-popular-posts.php:928
944
- msgid "comment(s)"
945
- msgstr "reactie(s)"
946
-
947
- #: wordpress-popular-posts.php:932
948
- msgid "view(s)"
949
- msgstr "keer bekeken"
950
-
951
- #: wordpress-popular-posts.php:935
952
- msgid "view(s) per day"
953
- msgstr "keer bekeken per dag"
954
-
955
- #: wordpress-popular-posts.php:943
956
- msgid "by"
957
- msgstr "door"
958
-
959
- #: wordpress-popular-posts.php:947
960
- msgid "posted on"
961
- msgstr "geplaatst op"
962
-
963
- #: wordpress-popular-posts.php:1292
964
- msgid ""
965
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
966
- "at least version 2.8 to function correctly. Please update your blog via "
967
- "Tools &gt; Upgrade."
968
- msgstr ""
969
- "Je versie van WordPress is te oud. Deze plugin werkt met versie 2.8 en "
970
- "later. Vernieuw je versie via Gereedschappen (Tools) &gt; Werk bij (Upgrade)."
971
-
972
- #: wordpress-popular-posts.php:1416
973
- msgid "Wordpress Popular Posts Stats"
974
- msgstr "Wordpress Popular Posts Status"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wordpress-popular-posts.mo CHANGED
Binary file
lang/wordpress-popular-posts.po CHANGED
@@ -1,1104 +1,1140 @@
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wordpress Popular Posts\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-06-02 11:54-0430\n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Hector Cabrera <hcabrerab@gmail.com>\n"
8
- "Language-Team: Héctor Cabrera <admin@rauru.com>\n"
9
- "Language: en_VE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-SourceCharset: iso-8859-1\n"
14
- "X-Poedit-KeywordsList: __;_e\n"
 
 
 
15
  "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.5\n"
17
- "X-Poedit-SearchPath-0: .\n"
 
18
 
19
- #: admin.php:67 admin.php:73 admin.php:85 admin.php:96 admin.php:104
 
20
  msgid "Settings saved."
21
  msgstr ""
22
 
23
- #: admin.php:78
24
  msgid "Please provide the name of your custom field."
25
  msgstr ""
26
 
27
- #: admin.php:345
28
  msgid ""
29
  "This operation will delete all entries from Wordpress Popular Posts' cache "
30
  "table and cannot be undone."
31
  msgstr ""
32
 
33
- #: admin.php:345 admin.php:353
34
  msgid "Do you want to continue?"
35
  msgstr ""
36
 
37
- #: admin.php:353
38
  msgid ""
39
  "This operation will delete all stored info from Wordpress Popular Posts' "
40
  "data tables and cannot be undone."
41
  msgstr ""
42
 
43
- #: admin.php:367
44
  msgid "Stats"
45
  msgstr ""
46
 
47
- #: admin.php:368
 
 
 
 
 
 
 
 
48
  msgid "FAQ"
49
  msgstr ""
50
 
51
- #: admin.php:369
52
- msgid "Tools"
53
  msgstr ""
54
 
55
- #: admin.php:373
56
  msgid ""
57
  "Click on each tab to see what are the most popular entries on your blog in "
58
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
59
  "Popular Posts was installed."
60
  msgstr ""
61
 
62
- #: admin.php:379
63
  msgid "Order by comments"
64
  msgstr ""
65
 
66
- #: admin.php:380
67
  msgid "Order by views"
68
  msgstr ""
69
 
70
- #: admin.php:381
71
  msgid "Order by avg. daily views"
72
  msgstr ""
73
 
74
- #: admin.php:383
75
  msgid "Post type"
76
  msgstr ""
77
 
78
- #: admin.php:384
79
  msgid "Limit"
80
  msgstr ""
81
 
82
- #: admin.php:386 admin.php:805 admin.php:864 admin.php:884 admin.php:936
 
 
 
 
 
83
  msgid "Apply"
84
  msgstr ""
85
 
86
- #: admin.php:392 wordpress-popular-posts.php:382
87
  msgid "Last 24 hours"
88
  msgstr ""
89
 
90
- #: admin.php:393 wordpress-popular-posts.php:383
91
  msgid "Last 7 days"
92
  msgstr ""
93
 
94
- #: admin.php:394 wordpress-popular-posts.php:384
95
  msgid "Last 30 days"
96
  msgstr ""
97
 
98
- #: admin.php:395 wordpress-popular-posts.php:385
99
  msgid "All-time"
100
  msgstr ""
101
 
102
- #: admin.php:416
103
- msgid "Frequently Asked Questions"
104
- msgstr ""
105
-
106
- #: admin.php:420
107
- msgid "What does \"Title\" do?"
108
- msgstr ""
109
-
110
- #: admin.php:422
111
- msgid ""
112
- "It allows you to show a heading for your most popular posts listing. If left "
113
- "empty, no heading will be displayed at all."
114
- msgstr ""
115
-
116
- #: admin.php:425
117
- msgid "What is Time Range for?"
118
  msgstr ""
119
 
120
- #: admin.php:427
121
- msgid ""
122
- "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
123
- "comments within the selected time range."
124
- msgstr ""
125
-
126
- #: admin.php:430
127
- msgid "What is \"Sort post by\" for?"
128
- msgstr ""
129
-
130
- #: admin.php:432
131
- msgid ""
132
- "It allows you to decide whether to order your popular posts listing by total "
133
- "views, comments, or average views per day."
134
  msgstr ""
135
 
136
- #: admin.php:435
137
- msgid "What does \"Display post rating\" do?"
138
  msgstr ""
139
 
140
- #: admin.php:437
141
  msgid ""
142
- "If checked, Wordpress Popular Posts will show how your readers are rating "
143
- "your most popular posts. This feature requires having WP-PostRatings plugin "
144
- "installed and enabled on your blog for it to work."
145
  msgstr ""
146
 
147
- #: admin.php:440
148
- msgid "What does \"Shorten title\" do?"
149
  msgstr ""
150
 
151
- #: admin.php:442
152
- msgid ""
153
- "If checked, all posts titles will be shortened to \"n\" characters/words. A "
154
- "new \"Shorten title to\" option will appear so you can set it to whatever "
155
- "you like."
156
  msgstr ""
157
 
158
- #: admin.php:445
159
- msgid "What does \"Display post excerpt\" do?"
160
  msgstr ""
161
 
162
- #: admin.php:447
163
- msgid ""
164
- "If checked, Wordpress Popular Posts will also include a small extract of "
165
- "your posts in the list. Similarly to the previous option, you will be able "
166
- "to decide how long the post excerpt should be."
167
  msgstr ""
168
 
169
- #: admin.php:450
170
- msgid "What does \"Keep text format and links\" do?"
171
  msgstr ""
172
 
173
- #: admin.php:452
174
- msgid ""
175
- "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
176
- "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
177
- "the excerpt. Hyperlinks will remain intact, too."
178
  msgstr ""
179
 
180
- #: admin.php:455
181
- msgid "What is \"Post type\" for?"
182
  msgstr ""
183
 
184
- #: admin.php:457
185
- msgid ""
186
- "This filter allows you to decide which post types to show on the listing. By "
187
- "default, it will retrieve only posts and pages (which should be fine for "
188
- "most cases)."
189
  msgstr ""
190
 
191
- #: admin.php:460
192
- msgid "What is \"Category(ies) ID(s)\" for?"
193
  msgstr ""
194
 
195
- #: admin.php:462
196
- msgid ""
197
- "This filter allows you to select which categories should be included or "
198
- "excluded from the listing. A negative sign in front of the category ID "
199
- "number will exclude posts belonging to it from the list, for example. You "
200
- "can specify more than one ID with a comma separated list."
201
  msgstr ""
202
 
203
- #: admin.php:465
204
- msgid "What is \"Author(s) ID(s)\" for?"
205
  msgstr ""
206
 
207
- #: admin.php:467
208
- msgid ""
209
- "Just like the Category filter, this one lets you filter posts by author ID. "
210
- "You can specify more than one ID with a comma separated list."
211
  msgstr ""
212
 
213
- #: admin.php:470
214
- msgid "What does \"Display post thumbnail\" do?"
215
  msgstr ""
216
 
217
- #: admin.php:472
218
- msgid ""
219
- "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
220
- "of each post. You can set up the source of the thumbnail via Settings - "
221
- "Wordpress Popular Posts - Tools."
222
  msgstr ""
223
 
224
- #: admin.php:475
225
- msgid "What does \"Display comment count\" do?"
226
  msgstr ""
227
 
228
- #: admin.php:477
229
- msgid ""
230
- "If checked, Wordpress Popular Posts will display how many comments each "
231
- "popular post has got in the selected Time Range."
232
  msgstr ""
233
 
234
- #: admin.php:480
235
- msgid "What does \"Display views\" do?"
236
  msgstr ""
237
 
238
- #: admin.php:482
239
  msgid ""
240
- "If checked, Wordpress Popular Posts will show how many pageviews a single "
241
- "post has gotten in the selected Time Range."
242
  msgstr ""
243
 
244
- #: admin.php:485
245
- msgid "What does \"Display author\" do?"
246
  msgstr ""
247
 
248
- #: admin.php:487
249
- msgid ""
250
- "If checked, Wordpress Popular Posts will display the name of the author of "
251
- "each entry listed."
252
  msgstr ""
253
 
254
- #: admin.php:490
255
- msgid "What does \"Display date\" do?"
256
  msgstr ""
257
 
258
- #: admin.php:492
259
  msgid ""
260
- "If checked, Wordpress Popular Posts will display the date when each popular "
261
- "posts was published."
 
262
  msgstr ""
263
 
264
- #: admin.php:495
265
- msgid "What does \"Use custom HTML Markup\" do?"
266
  msgstr ""
267
 
268
- #: admin.php:497
269
- msgid ""
270
- "If checked, you will be able to customize the HTML markup of your popular "
271
- "posts listing. For example, you can decide whether to wrap your posts in an "
272
- "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
273
- "for you!"
274
  msgstr ""
275
 
276
- #: admin.php:500
277
- msgid "What are \"Content Tags\"?"
278
  msgstr ""
279
 
280
- #: admin.php:502
281
- msgid ""
282
- "Content Tags are codes to display a variety of items on your popular posts "
283
- "custom HTML structure. For example, setting it to \"{title}: "
284
- "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
285
- "post here\". For more Content Tags, see \"List of parameters accepted by "
286
- "wpp_get_mostpopular() and the [wpp] shortcode\"."
287
  msgstr ""
288
 
289
- #: admin.php:505
290
- msgid "What are \"Template Tags\"?"
291
  msgstr ""
292
 
293
- #: admin.php:507
294
- msgid ""
295
- "Template Tags are simply php functions that allow you to perform certain "
296
- "actions. For example, Wordpress Popular Posts currently supports two "
297
- "different template tags: wpp_get_mostpopular() and wpp_get_views()."
298
  msgstr ""
299
 
300
- #: admin.php:510
301
- msgid "What are the template tags that Wordpress Popular Posts supports?"
302
  msgstr ""
303
 
304
- #: admin.php:512
305
- msgid ""
306
- "The following are the template tags supported by Wordpress Popular Posts"
307
  msgstr ""
308
 
309
- #: admin.php:516
310
- msgid "Template tag"
311
  msgstr ""
312
 
313
- #: admin.php:517 admin.php:550
314
- msgid "What it does "
315
  msgstr ""
316
 
317
- #: admin.php:518
318
- msgid "Parameters"
319
  msgstr ""
320
 
321
- #: admin.php:519 admin.php:553
322
- msgid "Example"
323
  msgstr ""
324
 
325
- #: admin.php:525
326
  msgid ""
327
- "Similar to the widget functionality, this tag retrieves the most popular "
328
- "posts on your blog. This function also accepts parameters so you can "
329
- "customize your popular listing, but these are not required."
 
330
  msgstr ""
331
 
332
- #: admin.php:526
333
  msgid ""
334
- "Please refer to \"List of parameters accepted by wpp_get_mostpopular() and "
335
- "the [wpp] shortcode\"."
 
 
 
336
  msgstr ""
337
 
338
- #: admin.php:531
339
- msgid ""
340
- "Displays the number of views of a single post. Post ID is required or it "
341
- "will return false."
342
  msgstr ""
343
 
344
- #: admin.php:532
345
- msgid "Post ID"
346
  msgstr ""
347
 
348
- #: admin.php:539
349
- msgid "What are \"shortcodes\"?"
350
  msgstr ""
351
 
352
- #: admin.php:541
353
- msgid ""
354
- "Shortcodes are similar to BB Codes, these allow us to call a php function by "
355
- "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
356
- "shortcode [wpp] will let you insert a list of the most popular posts in "
357
- "posts content and pages too! For more information about shortcodes, please "
358
- "visit"
359
  msgstr ""
360
 
361
- #: admin.php:543
 
362
  msgid ""
363
- "List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"
 
 
364
  msgstr ""
365
 
366
- #: admin.php:545
367
- msgid ""
368
- "These parameters can be used by both the template tag wpp_get_most_popular() "
369
- "and the shortcode [wpp]."
370
  msgstr ""
371
 
372
- #: admin.php:549
373
- msgid "Parameter"
374
  msgstr ""
375
 
376
- #: admin.php:551
377
  msgid "Possible values"
378
  msgstr ""
379
 
380
- #: admin.php:552
381
  msgid "Defaults to"
382
  msgstr ""
383
 
384
- #: admin.php:559
 
 
 
 
385
  msgid "Sets a heading for the list"
386
  msgstr ""
387
 
388
- #: admin.php:560 admin.php:567 admin.php:574 admin.php:602 admin.php:609
389
- #: admin.php:616 admin.php:623 admin.php:714 admin.php:728 admin.php:735
390
- #: admin.php:749 admin.php:756
 
391
  msgid "Text string"
392
  msgstr ""
393
 
394
- #: admin.php:561 wordpress-popular-posts.php:126
395
  msgid "Popular Posts"
396
  msgstr ""
397
 
398
- #: admin.php:566
399
  msgid "Set the opening tag for the heading of the list"
400
  msgstr ""
401
 
402
- #: admin.php:573
403
  msgid "Set the closing tag for the heading of the list"
404
  msgstr ""
405
 
406
- #: admin.php:580
407
  msgid "Sets the maximum number of popular posts to be shown on the listing"
408
  msgstr ""
409
 
410
- #: admin.php:581 admin.php:630 admin.php:644 admin.php:665 admin.php:672
 
411
  msgid "Positive integer"
412
  msgstr ""
413
 
414
- #: admin.php:587
415
  msgid ""
416
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
417
  "the time range specified by you"
418
  msgstr ""
419
 
420
- #: admin.php:594
 
 
 
 
 
 
421
  msgid "Sets the sorting option of the popular posts"
422
  msgstr ""
423
 
424
- #: admin.php:595
425
  msgid "(for average views per day)"
426
  msgstr ""
427
 
428
- #: admin.php:601
429
  msgid "Defines the type of posts to show on the listing"
430
  msgstr ""
431
 
432
- #: admin.php:608
433
  msgid ""
434
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
435
  "form the listing."
436
  msgstr ""
437
 
438
- #: admin.php:610 admin.php:617 admin.php:624
439
  msgid "None"
440
  msgstr ""
441
 
442
- #: admin.php:615
443
  msgid ""
444
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
445
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
446
  "will be excluded instead."
447
  msgstr ""
448
 
449
- #: admin.php:622
450
  msgid ""
451
  "If set, Wordpress Popular Posts will retrieve all entries created by "
452
  "specified author(s) ID(s)."
453
  msgstr ""
454
 
455
- #: admin.php:629
456
  msgid ""
457
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
458
  "characters whenever possible"
459
  msgstr ""
460
 
461
- #: admin.php:636
462
  msgid ""
463
  "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
464
  "words instead of characters"
465
  msgstr ""
466
 
467
- #: admin.php:643
468
  msgid ""
469
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
470
  "characters long from the content of each post listed as popular"
471
  msgstr ""
472
 
473
- #: admin.php:650
474
  msgid ""
475
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
476
  "italic, etc) and hyperlinks found in the excerpt"
477
  msgstr ""
478
 
479
- #: admin.php:657
480
  msgid ""
481
  "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
482
  "instead of characters"
483
  msgstr ""
484
 
485
- #: admin.php:664
486
  msgid ""
487
  "If set, and if your current server configuration allows it, you will be able "
488
  "to display thumbnails of your posts. This attribute sets the width for "
489
  "thumbnails"
490
  msgstr ""
491
 
492
- #: admin.php:671
493
  msgid ""
494
  "If set, and if your current server configuration allows it, you will be able "
495
  "to display thumbnails of your posts. This attribute sets the height for "
496
  "thumbnails"
497
  msgstr ""
498
 
499
- #: admin.php:678
500
  msgid ""
501
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
502
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
503
  "entries"
504
  msgstr ""
505
 
506
- #: admin.php:685
507
  msgid ""
508
  "If set, Wordpress Popular Posts will show how many comments each popular "
509
  "post has got until now"
510
  msgstr ""
511
 
512
- #: admin.php:692
513
  msgid ""
514
  "If set, Wordpress Popular Posts will show how many views each popular post "
515
  "has got since it was installed"
516
  msgstr ""
517
 
518
- #: admin.php:699
519
  msgid ""
520
  "If set, Wordpress Popular Posts will show who published each popular post on "
521
  "the list"
522
  msgstr ""
523
 
524
- #: admin.php:706
525
  msgid ""
526
  "If set, Wordpress Popular Posts will display the date when each popular post "
527
  "on the list was published"
528
  msgstr ""
529
 
530
- #: admin.php:713
531
  msgid "Sets the date format"
532
  msgstr ""
533
 
534
- #: admin.php:720
535
  msgid "If set, Wordpress Popular Posts will display the category"
536
  msgstr ""
537
 
538
- #: admin.php:727
539
  msgid "Sets the opening tag for the listing"
540
  msgstr ""
541
 
542
- #: admin.php:734
543
  msgid "Sets the closing tag for the listing"
544
  msgstr ""
545
 
546
- #: admin.php:741
547
  msgid "Sets the HTML structure of each post"
548
  msgstr ""
549
 
550
- #: admin.php:742
551
  msgid "Text string, custom HTML"
552
  msgstr ""
553
 
554
- #: admin.php:742
555
  msgid "Available Content Tags"
556
  msgstr ""
557
 
558
- #: admin.php:742
559
  msgid "displays thumbnail linked to post/page"
560
  msgstr ""
561
 
562
- #: admin.php:742
563
  msgid "displays linked post/page title"
564
  msgstr ""
565
 
566
- #: admin.php:742
567
  msgid ""
568
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
569
  msgstr ""
570
 
571
- #: admin.php:742
572
  msgid "displays the default stats tags"
573
  msgstr ""
574
 
575
- #: admin.php:742
576
  msgid ""
577
  "displays post/page current rating, requires WP-PostRatings installed and "
578
  "enabled"
579
  msgstr ""
580
 
581
- #: admin.php:742
 
 
 
 
 
 
582
  msgid "outputs the URL of the post/page"
583
  msgstr ""
584
 
585
- #: admin.php:742
586
  msgid "displays post/page title, no link"
587
  msgstr ""
588
 
589
- #: admin.php:742
590
  msgid "displays linked author name, requires stats_author=1"
591
  msgstr ""
592
 
593
- #: admin.php:742
594
  msgid "displays linked category name, requires stats_category=1"
595
  msgstr ""
596
 
597
- #: admin.php:742
598
  msgid "displays views count only, no text"
599
  msgstr ""
600
 
601
- #: admin.php:742
602
  msgid "displays comments count only, no text, requires stats_comments=1"
603
  msgstr ""
604
 
605
- #: admin.php:748
606
- msgid "Sets the opening tag for each item on the list"
607
  msgstr ""
608
 
609
- #: admin.php:755
610
- msgid "Sets the closing tag for each item on the list"
 
 
611
  msgstr ""
612
 
613
- #: admin.php:762
614
- msgid ""
615
- "If set, this option will allow you to decide the order of the contents "
616
- "within each item on the list."
617
  msgstr ""
618
 
619
- #: admin.php:769
620
  msgid ""
621
- "If set, you can decide the order of each content inside a single item on the "
622
- "list. For example, setting it to \"{title}: {summary}\" would output "
623
- "something like \"Your Post Title: summary here\". This attribute requires "
624
- "do_pattern to be true."
625
  msgstr ""
626
 
627
- #: admin.php:770
628
- msgid "Available tags"
629
  msgstr ""
630
 
631
- #: admin.php:785
632
  msgid ""
633
- "Here you will find a handy group of options to tweak Wordpress Popular Posts."
 
634
  msgstr ""
635
 
636
- #: admin.php:787
637
- msgid "Views logging behavior"
638
  msgstr ""
639
 
640
- #: admin.php:793
641
- msgid "Log views from"
 
 
 
642
  msgstr ""
643
 
644
- #: admin.php:796
645
- msgid "Visitors only"
646
  msgstr ""
647
 
648
- #: admin.php:797
649
- msgid "Everyone"
 
 
 
650
  msgstr ""
651
 
652
- #: admin.php:814
653
- msgid "Thumbnail source"
654
  msgstr ""
655
 
656
- #: admin.php:820
657
- msgid "Default thumbnail"
 
 
 
658
  msgstr ""
659
 
660
- #: admin.php:822
661
- msgid "Upload thumbnail"
662
  msgstr ""
663
 
664
- #: admin.php:825
665
  msgid ""
666
- "How-to: upload (or select) an image, set Size to Full and click on Upload. "
667
- "After it's done, hit on Apply to save changes"
 
668
  msgstr ""
669
 
670
- #: admin.php:827
671
- msgid "Preview"
672
  msgstr ""
673
 
674
- #: admin.php:835
675
- msgid "Pick image from"
 
 
 
676
  msgstr ""
677
 
678
- #: admin.php:838
679
- msgid "Featured image"
680
  msgstr ""
681
 
682
- #: admin.php:839
683
- msgid "First image on post"
 
 
 
 
684
  msgstr ""
685
 
686
- #: admin.php:840
687
- msgid "Custom field"
688
  msgstr ""
689
 
690
- #: admin.php:843
691
- msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
 
 
692
  msgstr ""
693
 
694
- #: admin.php:847
695
- msgid "Custom field name"
696
  msgstr ""
697
 
698
- #: admin.php:853
699
- msgid "Resize image from Custom field?"
 
 
 
700
  msgstr ""
701
 
702
- #: admin.php:856
703
- msgid "No, I will upload my own thumbnail"
704
  msgstr ""
705
 
706
- #: admin.php:857
707
- msgid "Yes"
 
 
708
  msgstr ""
709
 
710
- #: admin.php:874
711
- msgid "Wordpress Popular Posts Stylesheet"
712
  msgstr ""
713
 
714
- #: admin.php:875
715
  msgid ""
716
- "By default, the plugin includes a stylesheet called wpp.css which you can "
717
- "use to style your popular posts listing. If you wish to use your own "
718
- "stylesheet or do not want it to have it included in the header section of "
719
- "your site, use this."
720
- msgstr ""
721
-
722
- #: admin.php:880 admin.php:899
723
- msgid "Enabled"
724
  msgstr ""
725
 
726
- #: admin.php:881 admin.php:898
727
- msgid "Disabled"
728
  msgstr ""
729
 
730
- #: admin.php:890
731
- msgid "Data tools"
 
 
732
  msgstr ""
733
 
734
- #: admin.php:895
735
- msgid "Ajaxify widget"
736
  msgstr ""
737
 
738
- #: admin.php:903
739
  msgid ""
740
- "If you are using a caching plugin such as WP Super Cache, enabling this "
741
- "feature will keep the popular list from being cached by it"
742
  msgstr ""
743
 
744
- #: admin.php:907
745
- msgid "Popular posts listing refresh interval"
746
  msgstr ""
747
 
748
- #: admin.php:910
749
- msgid "Live"
 
750
  msgstr ""
751
 
752
- #: admin.php:911
753
- msgid "Custom interval"
754
  msgstr ""
755
 
756
- #: admin.php:915
757
  msgid ""
758
- "Sets how often the listing should be updated. For most sites the Live option "
759
- "should be fine, however if you are experiencing slowdowns or your blog gets "
760
- "a lot of visitors then you might want to change the refresh rate"
 
761
  msgstr ""
762
 
763
- #: admin.php:919
764
- msgid "Refresh interval"
765
  msgstr ""
766
 
767
- #: admin.php:923
768
- msgid "Hour(s)"
 
 
 
 
 
 
769
  msgstr ""
770
 
771
- #: admin.php:924
772
- msgid "Day(s)"
773
  msgstr ""
774
 
775
- #: admin.php:925
776
- msgid "Week(s)"
 
 
 
777
  msgstr ""
778
 
779
- #: admin.php:926
780
- msgid "Month(s)"
781
  msgstr ""
782
 
783
- #: admin.php:927
784
- msgid "Year(s)"
 
785
  msgstr ""
786
 
787
- #: admin.php:930
788
- msgid "Really? That long?"
789
  msgstr ""
790
 
791
- #: admin.php:945
 
792
  msgid ""
793
- "Wordpress Popular Posts maintains data in two separate tables: one for "
794
- "storing the most popular entries in the past 30 days (from now on, \"cache"
795
- "\"), and another one to keep the All-time data (from now on, \"historical "
796
- "data\" or just \"data\"). If for some reason you need to clear the cache "
797
- "table, or even both historical and cache tables, please use the buttons "
798
- "below to do so."
799
  msgstr ""
800
 
801
- #: admin.php:946
802
- msgid "Empty cache"
 
 
 
803
  msgstr ""
804
 
805
- #: admin.php:946
806
- msgid "Use this button to manually clear entries from WPP cache only"
 
 
807
  msgstr ""
808
 
809
- #: admin.php:947
810
- msgid "Clear all data"
811
  msgstr ""
812
 
813
- #: admin.php:947
814
- msgid "Use this button to manually clear entries from all WPP data tables"
815
  msgstr ""
816
 
817
- #: admin.php:953
818
- msgid "Do you like this plugin?"
 
 
 
 
 
 
819
  msgstr ""
820
 
821
- #: admin.php:953
822
- msgid "Rate Wordpress Popular Posts!"
 
823
  msgstr ""
824
 
825
- #: admin.php:953
826
- msgid "Rate it"
827
  msgstr ""
828
 
829
- #: admin.php:953
830
- msgid "on the official Plugin Directory!"
831
  msgstr ""
832
 
833
- #: admin.php:954
834
- msgid "Do you love this plugin?"
 
 
 
 
 
 
 
835
  msgstr ""
836
 
837
- #: admin.php:954 admin.php:955
838
- msgid "Buy me a beer!"
839
  msgstr ""
840
 
841
- #: admin.php:954
 
842
  msgid ""
843
- "Each donation motivates me to keep releasing free stuff for the Wordpress "
844
- "community!"
845
  msgstr ""
846
 
847
- #: wordpress-popular-posts.php:129
848
- msgid "The most Popular Posts on your blog."
849
  msgstr ""
850
 
851
- #: wordpress-popular-posts.php:376
852
- msgid "Title:"
853
  msgstr ""
854
 
855
- #: wordpress-popular-posts.php:376 wordpress-popular-posts.php:378
856
- #: wordpress-popular-posts.php:380 wordpress-popular-posts.php:388
857
- #: wordpress-popular-posts.php:399 wordpress-popular-posts.php:401
858
- #: wordpress-popular-posts.php:408 wordpress-popular-posts.php:412
859
- #: wordpress-popular-posts.php:425 wordpress-popular-posts.php:439
860
- #: wordpress-popular-posts.php:451 wordpress-popular-posts.php:452
861
- #: wordpress-popular-posts.php:453 wordpress-popular-posts.php:454
862
- #: wordpress-popular-posts.php:464 wordpress-popular-posts.php:470
863
  msgid "What is this?"
864
  msgstr ""
865
 
866
- #: wordpress-popular-posts.php:378
867
- msgid "Show up to:"
868
  msgstr ""
869
 
870
- #: wordpress-popular-posts.php:379
871
  msgid "posts"
872
  msgstr ""
873
 
874
- #: wordpress-popular-posts.php:380
875
- msgid "Time Range:"
876
- msgstr ""
877
-
878
- #: wordpress-popular-posts.php:388
879
- msgid "Sort posts by:"
880
  msgstr ""
881
 
882
- #: wordpress-popular-posts.php:390
883
  msgid "Comments"
884
  msgstr ""
885
 
886
- #: wordpress-popular-posts.php:391
887
  msgid "Total views"
888
  msgstr ""
889
 
890
- #: wordpress-popular-posts.php:392
891
  msgid "Avg. daily views"
892
  msgstr ""
893
 
894
- #: wordpress-popular-posts.php:397
895
- msgid "Posts settings"
896
- msgstr ""
897
-
898
- #: wordpress-popular-posts.php:399
899
- msgid "Display post rating"
900
  msgstr ""
901
 
902
- #: wordpress-popular-posts.php:401
903
- msgid "Shorten title"
904
  msgstr ""
905
 
906
- #: wordpress-popular-posts.php:404
907
- msgid "Shorten title to"
908
  msgstr ""
909
 
910
- #: wordpress-popular-posts.php:405 wordpress-popular-posts.php:415
911
- msgid "characters"
912
  msgstr ""
913
 
914
- #: wordpress-popular-posts.php:406 wordpress-popular-posts.php:416
915
- msgid "words"
916
  msgstr ""
917
 
918
- #: wordpress-popular-posts.php:408
919
- msgid "Display post excerpt"
920
  msgstr ""
921
 
922
- #: wordpress-popular-posts.php:411
923
- msgid "Excerpt Properties"
924
  msgstr ""
925
 
926
- #: wordpress-popular-posts.php:412
927
- msgid "Keep text format and links"
928
  msgstr ""
929
 
930
- #: wordpress-popular-posts.php:413
931
- msgid "Excerpt length:"
932
  msgstr ""
933
 
934
- #: wordpress-popular-posts.php:425
935
- msgid "Filters:"
936
  msgstr ""
937
 
938
- #: wordpress-popular-posts.php:426
939
- msgid "Post type(s):"
940
  msgstr ""
941
 
942
- #: wordpress-popular-posts.php:428
943
- msgid "Post(s) ID(s) to exclude:"
944
  msgstr ""
945
 
946
- #: wordpress-popular-posts.php:430
947
- msgid "Category(ies) ID(s):"
948
  msgstr ""
949
 
950
- #: wordpress-popular-posts.php:432
951
- msgid "Author(s) ID(s):"
952
  msgstr ""
953
 
954
- #: wordpress-popular-posts.php:438
955
- msgid "Thumbnail settings"
956
  msgstr ""
957
 
958
- #: wordpress-popular-posts.php:439
959
  msgid "Display post thumbnail"
960
  msgstr ""
961
 
962
- #: wordpress-popular-posts.php:441
963
- msgid "Width:"
964
  msgstr ""
965
 
966
- #: wordpress-popular-posts.php:442 wordpress-popular-posts.php:444
967
  msgid "px"
968
  msgstr ""
969
 
970
- #: wordpress-popular-posts.php:443
971
- msgid "Height:"
972
  msgstr ""
973
 
974
- #: wordpress-popular-posts.php:450
975
  msgid "Stats Tag settings"
976
  msgstr ""
977
 
978
- #: wordpress-popular-posts.php:451
979
  msgid "Display comment count"
980
  msgstr ""
981
 
982
- #: wordpress-popular-posts.php:452
983
  msgid "Display views"
984
  msgstr ""
985
 
986
- #: wordpress-popular-posts.php:453
987
  msgid "Display author"
988
  msgstr ""
989
 
990
- #: wordpress-popular-posts.php:454
991
  msgid "Display date"
992
  msgstr ""
993
 
994
- #: wordpress-popular-posts.php:457
995
  msgid "Date Format"
996
  msgstr ""
997
 
998
- #: wordpress-popular-posts.php:464
 
 
 
 
999
  msgid "Display category"
1000
  msgstr ""
1001
 
1002
- #: wordpress-popular-posts.php:469
1003
  msgid "HTML Markup settings"
1004
  msgstr ""
1005
 
1006
- #: wordpress-popular-posts.php:470
1007
  msgid "Use custom HTML Markup"
1008
  msgstr ""
1009
 
1010
- #: wordpress-popular-posts.php:473
1011
- msgid "Before / after title:"
1012
  msgstr ""
1013
 
1014
- #: wordpress-popular-posts.php:475
1015
- msgid "Before / after Popular Posts:"
1016
  msgstr ""
1017
 
1018
- #: wordpress-popular-posts.php:478
1019
- msgid "Post HTML Markup:"
1020
  msgstr ""
1021
 
1022
- #: wordpress-popular-posts.php:628
1023
- msgid "Success! The cache table has been cleared!"
1024
  msgstr ""
1025
 
1026
- #: wordpress-popular-posts.php:630
1027
- msgid "Error: cache table does not exist."
 
 
 
 
1028
  msgstr ""
1029
 
1030
- #: wordpress-popular-posts.php:636
1031
- msgid "Success! All data have been cleared!"
1032
  msgstr ""
1033
 
1034
- #: wordpress-popular-posts.php:638
1035
- msgid "Error: one or both data tables are missing."
 
 
 
 
1036
  msgstr ""
1037
 
1038
- #: wordpress-popular-posts.php:641
1039
- msgid "Invalid action."
 
 
 
 
1040
  msgstr ""
1041
 
1042
- #: wordpress-popular-posts.php:644
 
1043
  msgid ""
1044
- "Sorry, you do not have enough permissions to do this. Please contact the "
1045
- "site administrator for support."
1046
  msgstr ""
1047
 
1048
- #: wordpress-popular-posts.php:1068
1049
- msgid "Sorry. No data so far."
1050
  msgstr ""
1051
 
1052
- #: wordpress-popular-posts.php:1150
1053
- msgid "comment"
1054
  msgstr ""
1055
 
1056
- #: wordpress-popular-posts.php:1150
1057
- msgid "comments"
1058
  msgstr ""
1059
 
1060
- #: wordpress-popular-posts.php:1158
1061
- msgid "view per day"
1062
  msgstr ""
1063
 
1064
- #: wordpress-popular-posts.php:1158
1065
- msgid "views per day"
1066
  msgstr ""
1067
 
1068
- #: wordpress-popular-posts.php:1162
1069
- msgid "view"
 
 
1070
  msgstr ""
1071
 
1072
- #: wordpress-popular-posts.php:1162
1073
- msgid "views"
1074
  msgstr ""
1075
 
1076
- #: wordpress-popular-posts.php:1171
1077
- msgid "by"
1078
- msgstr ""
 
 
 
1079
 
1080
- #: wordpress-popular-posts.php:1175
1081
- msgid "posted on"
1082
- msgstr ""
 
 
 
1083
 
1084
- #: wordpress-popular-posts.php:1183
1085
- msgid "under"
1086
- msgstr ""
 
 
 
1087
 
1088
- #: wordpress-popular-posts.php:1753
1089
- msgid "Upload"
 
1090
  msgstr ""
1091
 
1092
- #: wordpress-popular-posts.php:1765
1093
- msgid ""
1094
- "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires "
1095
- "at least version 2.8 to function correctly. Please update your blog via "
1096
- "Tools &gt; Upgrade."
1097
  msgstr ""
1098
 
1099
- #: wordpress-popular-posts.php:1774
1100
- msgid ""
1101
- "Your PHP installation is too old. Wordpress Popular Posts Plugin requires at "
1102
- "least PHP v5.2.0 to function correctly. Please contact your hosting provider "
1103
- "and ask them to upgrade PHP to 5.2.x or higher."
1104
  msgstr ""
1
+ # Copyright (C) 2013 Wordpress Popular Posts
2
+ # This file is distributed under the same license as the Wordpress Popular Posts package.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wordpress Popular Posts\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
7
+ "POT-Creation-Date: 2014-05-27 18:11-0430\n"
8
+ "PO-Revision-Date: 2014-06-04 10:02-0430\n"
9
+ "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
10
+ "Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
11
+ "Language: en\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.6.5\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext;_n:1,2;__ngettext_noop;_n_noop;_x;"
18
+ "_nx;_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;"
19
+ "esc_html_x;_c;_nc\n"
20
  "X-Poedit-Basepath: .\n"
21
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
22
+ "X-Poedit-SearchPath-0: ..\n"
23
+ "X-Poedit-SearchPath-1: .\n"
24
 
25
+ #: ../views/admin.php:23 ../views/admin.php:32 ../views/admin.php:46
26
+ #: ../views/admin.php:67
27
  msgid "Settings saved."
28
  msgstr ""
29
 
30
+ #: ../views/admin.php:38
31
  msgid "Please provide the name of your custom field."
32
  msgstr ""
33
 
34
+ #: ../views/admin.php:84
35
  msgid ""
36
  "This operation will delete all entries from Wordpress Popular Posts' cache "
37
  "table and cannot be undone."
38
  msgstr ""
39
 
40
+ #: ../views/admin.php:84 ../views/admin.php:92
41
  msgid "Do you want to continue?"
42
  msgstr ""
43
 
44
+ #: ../views/admin.php:92
45
  msgid ""
46
  "This operation will delete all stored info from Wordpress Popular Posts' "
47
  "data tables and cannot be undone."
48
  msgstr ""
49
 
50
+ #: ../views/admin.php:109
51
  msgid "Stats"
52
  msgstr ""
53
 
54
+ #: ../views/admin.php:110
55
+ msgid "Tools"
56
+ msgstr ""
57
+
58
+ #: ../views/admin.php:111 ../views/admin.php:662
59
+ msgid "Parameters"
60
+ msgstr ""
61
+
62
+ #: ../views/admin.php:112
63
  msgid "FAQ"
64
  msgstr ""
65
 
66
+ #: ../views/admin.php:113
67
+ msgid "About"
68
  msgstr ""
69
 
70
+ #: ../views/admin.php:124
71
  msgid ""
72
  "Click on each tab to see what are the most popular entries on your blog in "
73
  "the last 24 hours, this week, last 30 days or all time since Wordpress "
74
  "Popular Posts was installed."
75
  msgstr ""
76
 
77
+ #: ../views/admin.php:130
78
  msgid "Order by comments"
79
  msgstr ""
80
 
81
+ #: ../views/admin.php:131
82
  msgid "Order by views"
83
  msgstr ""
84
 
85
+ #: ../views/admin.php:132
86
  msgid "Order by avg. daily views"
87
  msgstr ""
88
 
89
+ #: ../views/admin.php:134
90
  msgid "Post type"
91
  msgstr ""
92
 
93
+ #: ../views/admin.php:135
94
  msgid "Limit"
95
  msgstr ""
96
 
97
+ #: ../views/admin.php:136 ../views/form.php:32
98
+ msgid "Display only posts published within the selected Time Range"
99
+ msgstr ""
100
+
101
+ #: ../views/admin.php:138 ../views/admin.php:215 ../views/admin.php:281
102
+ #: ../views/admin.php:318
103
  msgid "Apply"
104
  msgstr ""
105
 
106
+ #: ../views/admin.php:144 ../views/form.php:26
107
  msgid "Last 24 hours"
108
  msgstr ""
109
 
110
+ #: ../views/admin.php:145 ../views/form.php:27
111
  msgid "Last 7 days"
112
  msgstr ""
113
 
114
+ #: ../views/admin.php:146 ../views/form.php:28
115
  msgid "Last 30 days"
116
  msgstr ""
117
 
118
+ #: ../views/admin.php:147 ../views/form.php:29
119
  msgid "All-time"
120
  msgstr ""
121
 
122
+ #: ../views/admin.php:169
123
+ msgid "Thumbnails"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  msgstr ""
125
 
126
+ #: ../views/admin.php:174
127
+ msgid "Default thumbnail"
 
 
 
 
 
 
 
 
 
 
 
 
128
  msgstr ""
129
 
130
+ #: ../views/admin.php:179
131
+ msgid "Upload thumbnail"
132
  msgstr ""
133
 
134
+ #: ../views/admin.php:182
135
  msgid ""
136
+ "How-to: upload (or select) an image, set Size to Full and click on Upload. "
137
+ "After it's done, hit on Apply to save changes"
 
138
  msgstr ""
139
 
140
+ #: ../views/admin.php:186
141
+ msgid "Pick image from"
142
  msgstr ""
143
 
144
+ #: ../views/admin.php:189
145
+ msgid "Featured image"
 
 
 
146
  msgstr ""
147
 
148
+ #: ../views/admin.php:190
149
+ msgid "First image on post"
150
  msgstr ""
151
 
152
+ #: ../views/admin.php:191
153
+ msgid "Custom field"
 
 
 
154
  msgstr ""
155
 
156
+ #: ../views/admin.php:194
157
+ msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
158
  msgstr ""
159
 
160
+ #: ../views/admin.php:198
161
+ msgid "Custom field name"
 
 
 
162
  msgstr ""
163
 
164
+ #: ../views/admin.php:204
165
+ msgid "Resize image from Custom field?"
166
  msgstr ""
167
 
168
+ #: ../views/admin.php:207
169
+ msgid "No, I will upload my own thumbnail"
 
 
 
170
  msgstr ""
171
 
172
+ #: ../views/admin.php:208
173
+ msgid "Yes"
174
  msgstr ""
175
 
176
+ #: ../views/admin.php:224
177
+ msgid "Data"
 
 
 
 
178
  msgstr ""
179
 
180
+ #: ../views/admin.php:229
181
+ msgid "Log views from"
182
  msgstr ""
183
 
184
+ #: ../views/admin.php:232
185
+ msgid "Visitors only"
 
 
186
  msgstr ""
187
 
188
+ #: ../views/admin.php:233
189
+ msgid "Logged-in users only"
190
  msgstr ""
191
 
192
+ #: ../views/admin.php:234
193
+ msgid "Everyone"
 
 
 
194
  msgstr ""
195
 
196
+ #: ../views/admin.php:240
197
+ msgid "Ajaxify widget"
198
  msgstr ""
199
 
200
+ #: ../views/admin.php:243 ../views/admin.php:309
201
+ msgid "Disabled"
 
 
202
  msgstr ""
203
 
204
+ #: ../views/admin.php:244 ../views/admin.php:308
205
+ msgid "Enabled"
206
  msgstr ""
207
 
208
+ #: ../views/admin.php:248
209
  msgid ""
210
+ "If you are using a caching plugin such as WP Super Cache, enabling this "
211
+ "feature will keep the popular list from being cached by it"
212
  msgstr ""
213
 
214
+ #: ../views/admin.php:252
215
+ msgid "Listing refresh interval"
216
  msgstr ""
217
 
218
+ #: ../views/admin.php:255
219
+ msgid "Live"
 
 
220
  msgstr ""
221
 
222
+ #: ../views/admin.php:256
223
+ msgid "Custom interval"
224
  msgstr ""
225
 
226
+ #: ../views/admin.php:260
227
  msgid ""
228
+ "Sets how often the listing should be updated. For most sites the Live option "
229
+ "should be fine, however if you are experiencing slowdowns or your blog gets "
230
+ "a lot of visitors then you might want to change the refresh rate"
231
  msgstr ""
232
 
233
+ #: ../views/admin.php:264
234
+ msgid "Refresh list every"
235
  msgstr ""
236
 
237
+ #: ../views/admin.php:268
238
+ msgid "Hour(s)"
 
 
 
 
239
  msgstr ""
240
 
241
+ #: ../views/admin.php:269
242
+ msgid "Day(s)"
243
  msgstr ""
244
 
245
+ #: ../views/admin.php:270
246
+ msgid "Week(s)"
 
 
 
 
 
247
  msgstr ""
248
 
249
+ #: ../views/admin.php:271
250
+ msgid "Month(s)"
251
  msgstr ""
252
 
253
+ #: ../views/admin.php:272
254
+ msgid "Year(s)"
 
 
 
255
  msgstr ""
256
 
257
+ #: ../views/admin.php:275
258
+ msgid "Really? That long?"
259
  msgstr ""
260
 
261
+ #: ../views/admin.php:290
262
+ msgid "Miscellaneous"
 
263
  msgstr ""
264
 
265
+ #: ../views/admin.php:295
266
+ msgid "Open links in"
267
  msgstr ""
268
 
269
+ #: ../views/admin.php:298
270
+ msgid "Current window"
271
  msgstr ""
272
 
273
+ #: ../views/admin.php:299
274
+ msgid "New tab/window"
275
  msgstr ""
276
 
277
+ #: ../views/admin.php:305
278
+ msgid "Use plugin's stylesheet"
279
  msgstr ""
280
 
281
+ #: ../views/admin.php:312
282
  msgid ""
283
+ "By default, the plugin includes a stylesheet called wpp.css which you can "
284
+ "use to style your popular posts listing. If you wish to use your own "
285
+ "stylesheet or do not want it to have it included in the header section of "
286
+ "your site, use this."
287
  msgstr ""
288
 
289
+ #: ../views/admin.php:329
290
  msgid ""
291
+ "Wordpress Popular Posts maintains data in two separate tables: one for "
292
+ "storing the most popular entries on a daily basis (from now on, \"cache\"), "
293
+ "and another one to keep the All-time data (from now on, \"historical data\" "
294
+ "or just \"data\"). If for some reason you need to clear the cache table, or "
295
+ "even both historical and cache tables, please use the buttons below to do so."
296
  msgstr ""
297
 
298
+ #: ../views/admin.php:330
299
+ msgid "Empty cache"
 
 
300
  msgstr ""
301
 
302
+ #: ../views/admin.php:330
303
+ msgid "Use this button to manually clear entries from WPP cache only"
304
  msgstr ""
305
 
306
+ #: ../views/admin.php:331
307
+ msgid "Clear all data"
308
  msgstr ""
309
 
310
+ #: ../views/admin.php:331
311
+ msgid "Use this button to manually clear entries from all WPP data tables"
 
 
 
 
 
312
  msgstr ""
313
 
314
+ #: ../views/admin.php:338
315
+ #, php-format
316
  msgid ""
317
+ "With the following parameters you can customize the popular posts list when "
318
+ "using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
319
+ "the <a href=\"%2$s\">[wpp] shortcode</a>."
320
  msgstr ""
321
 
322
+ #: ../views/admin.php:346
323
+ msgid "Parameter"
 
 
324
  msgstr ""
325
 
326
+ #: ../views/admin.php:347 ../views/admin.php:661
327
+ msgid "What it does "
328
  msgstr ""
329
 
330
+ #: ../views/admin.php:348
331
  msgid "Possible values"
332
  msgstr ""
333
 
334
+ #: ../views/admin.php:349
335
  msgid "Defaults to"
336
  msgstr ""
337
 
338
+ #: ../views/admin.php:350 ../views/admin.php:663
339
+ msgid "Example"
340
+ msgstr ""
341
+
342
+ #: ../views/admin.php:356
343
  msgid "Sets a heading for the list"
344
  msgstr ""
345
 
346
+ #: ../views/admin.php:357 ../views/admin.php:364 ../views/admin.php:371
347
+ #: ../views/admin.php:406 ../views/admin.php:413 ../views/admin.php:420
348
+ #: ../views/admin.php:427 ../views/admin.php:518 ../views/admin.php:532
349
+ #: ../views/admin.php:539
350
  msgid "Text string"
351
  msgstr ""
352
 
353
+ #: ../views/admin.php:358
354
  msgid "Popular Posts"
355
  msgstr ""
356
 
357
+ #: ../views/admin.php:363
358
  msgid "Set the opening tag for the heading of the list"
359
  msgstr ""
360
 
361
+ #: ../views/admin.php:370
362
  msgid "Set the closing tag for the heading of the list"
363
  msgstr ""
364
 
365
+ #: ../views/admin.php:377
366
  msgid "Sets the maximum number of popular posts to be shown on the listing"
367
  msgstr ""
368
 
369
+ #: ../views/admin.php:378 ../views/admin.php:434 ../views/admin.php:448
370
+ #: ../views/admin.php:469 ../views/admin.php:476
371
  msgid "Positive integer"
372
  msgstr ""
373
 
374
+ #: ../views/admin.php:384
375
  msgid ""
376
  "Tells Wordpress Popular Posts to retrieve the most popular entries within "
377
  "the time range specified by you"
378
  msgstr ""
379
 
380
+ #: ../views/admin.php:391
381
+ msgid ""
382
+ "Tells Wordpress Popular Posts to retrieve the most popular entries published "
383
+ "within the time range specified by you"
384
+ msgstr ""
385
+
386
+ #: ../views/admin.php:398
387
  msgid "Sets the sorting option of the popular posts"
388
  msgstr ""
389
 
390
+ #: ../views/admin.php:399
391
  msgid "(for average views per day)"
392
  msgstr ""
393
 
394
+ #: ../views/admin.php:405
395
  msgid "Defines the type of posts to show on the listing"
396
  msgstr ""
397
 
398
+ #: ../views/admin.php:412
399
  msgid ""
400
  "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
401
  "form the listing."
402
  msgstr ""
403
 
404
+ #: ../views/admin.php:414 ../views/admin.php:421 ../views/admin.php:428
405
  msgid "None"
406
  msgstr ""
407
 
408
+ #: ../views/admin.php:419
409
  msgid ""
410
  "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
411
  "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
412
  "will be excluded instead."
413
  msgstr ""
414
 
415
+ #: ../views/admin.php:426
416
  msgid ""
417
  "If set, Wordpress Popular Posts will retrieve all entries created by "
418
  "specified author(s) ID(s)."
419
  msgstr ""
420
 
421
+ #: ../views/admin.php:433
422
  msgid ""
423
  "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
424
  "characters whenever possible"
425
  msgstr ""
426
 
427
+ #: ../views/admin.php:440
428
  msgid ""
429
  "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
430
  "words instead of characters"
431
  msgstr ""
432
 
433
+ #: ../views/admin.php:447
434
  msgid ""
435
  "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
436
  "characters long from the content of each post listed as popular"
437
  msgstr ""
438
 
439
+ #: ../views/admin.php:454
440
  msgid ""
441
  "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
442
  "italic, etc) and hyperlinks found in the excerpt"
443
  msgstr ""
444
 
445
+ #: ../views/admin.php:461
446
  msgid ""
447
  "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
448
  "instead of characters"
449
  msgstr ""
450
 
451
+ #: ../views/admin.php:468
452
  msgid ""
453
  "If set, and if your current server configuration allows it, you will be able "
454
  "to display thumbnails of your posts. This attribute sets the width for "
455
  "thumbnails"
456
  msgstr ""
457
 
458
+ #: ../views/admin.php:475
459
  msgid ""
460
  "If set, and if your current server configuration allows it, you will be able "
461
  "to display thumbnails of your posts. This attribute sets the height for "
462
  "thumbnails"
463
  msgstr ""
464
 
465
+ #: ../views/admin.php:482
466
  msgid ""
467
  "If set, and if the WP-PostRatings plugin is installed and enabled on your "
468
  "blog, Wordpress Popular Posts will show how your visitors are rating your "
469
  "entries"
470
  msgstr ""
471
 
472
+ #: ../views/admin.php:489
473
  msgid ""
474
  "If set, Wordpress Popular Posts will show how many comments each popular "
475
  "post has got until now"
476
  msgstr ""
477
 
478
+ #: ../views/admin.php:496
479
  msgid ""
480
  "If set, Wordpress Popular Posts will show how many views each popular post "
481
  "has got since it was installed"
482
  msgstr ""
483
 
484
+ #: ../views/admin.php:503
485
  msgid ""
486
  "If set, Wordpress Popular Posts will show who published each popular post on "
487
  "the list"
488
  msgstr ""
489
 
490
+ #: ../views/admin.php:510
491
  msgid ""
492
  "If set, Wordpress Popular Posts will display the date when each popular post "
493
  "on the list was published"
494
  msgstr ""
495
 
496
+ #: ../views/admin.php:517
497
  msgid "Sets the date format"
498
  msgstr ""
499
 
500
+ #: ../views/admin.php:524
501
  msgid "If set, Wordpress Popular Posts will display the category"
502
  msgstr ""
503
 
504
+ #: ../views/admin.php:531
505
  msgid "Sets the opening tag for the listing"
506
  msgstr ""
507
 
508
+ #: ../views/admin.php:538
509
  msgid "Sets the closing tag for the listing"
510
  msgstr ""
511
 
512
+ #: ../views/admin.php:545
513
  msgid "Sets the HTML structure of each post"
514
  msgstr ""
515
 
516
+ #: ../views/admin.php:546
517
  msgid "Text string, custom HTML"
518
  msgstr ""
519
 
520
+ #: ../views/admin.php:546
521
  msgid "Available Content Tags"
522
  msgstr ""
523
 
524
+ #: ../views/admin.php:546
525
  msgid "displays thumbnail linked to post/page"
526
  msgstr ""
527
 
528
+ #: ../views/admin.php:546
529
  msgid "displays linked post/page title"
530
  msgstr ""
531
 
532
+ #: ../views/admin.php:546
533
  msgid ""
534
  "displays post/page excerpt, and requires excerpt_length to be greater than 0"
535
  msgstr ""
536
 
537
+ #: ../views/admin.php:546
538
  msgid "displays the default stats tags"
539
  msgstr ""
540
 
541
+ #: ../views/admin.php:546
542
  msgid ""
543
  "displays post/page current rating, requires WP-PostRatings installed and "
544
  "enabled"
545
  msgstr ""
546
 
547
+ #: ../views/admin.php:546
548
+ msgid ""
549
+ "displays post/page current rating as an integer, requires WP-PostRatings "
550
+ "installed and enabled"
551
+ msgstr ""
552
+
553
+ #: ../views/admin.php:546
554
  msgid "outputs the URL of the post/page"
555
  msgstr ""
556
 
557
+ #: ../views/admin.php:546
558
  msgid "displays post/page title, no link"
559
  msgstr ""
560
 
561
+ #: ../views/admin.php:546
562
  msgid "displays linked author name, requires stats_author=1"
563
  msgstr ""
564
 
565
+ #: ../views/admin.php:546
566
  msgid "displays linked category name, requires stats_category=1"
567
  msgstr ""
568
 
569
+ #: ../views/admin.php:546
570
  msgid "displays views count only, no text"
571
  msgstr ""
572
 
573
+ #: ../views/admin.php:546
574
  msgid "displays comments count only, no text, requires stats_comments=1"
575
  msgstr ""
576
 
577
+ #: ../views/admin.php:558
578
+ msgid "What does \"Title\" do?"
579
  msgstr ""
580
 
581
+ #: ../views/admin.php:561
582
+ msgid ""
583
+ "It allows you to show a heading for your most popular posts listing. If left "
584
+ "empty, no heading will be displayed at all."
585
  msgstr ""
586
 
587
+ #: ../views/admin.php:564
588
+ msgid "What is Time Range for?"
 
 
589
  msgstr ""
590
 
591
+ #: ../views/admin.php:566
592
  msgid ""
593
+ "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
594
+ "comments within the selected time range."
 
 
595
  msgstr ""
596
 
597
+ #: ../views/admin.php:569
598
+ msgid "What is \"Sort post by\" for?"
599
  msgstr ""
600
 
601
+ #: ../views/admin.php:571
602
  msgid ""
603
+ "It allows you to decide whether to order your popular posts listing by total "
604
+ "views, comments, or average views per day."
605
  msgstr ""
606
 
607
+ #: ../views/admin.php:574
608
+ msgid "What does \"Display post rating\" do?"
609
  msgstr ""
610
 
611
+ #: ../views/admin.php:576
612
+ msgid ""
613
+ "If checked, Wordpress Popular Posts will show how your readers are rating "
614
+ "your most popular posts. This feature requires having WP-PostRatings plugin "
615
+ "installed and enabled on your blog for it to work."
616
  msgstr ""
617
 
618
+ #: ../views/admin.php:579
619
+ msgid "What does \"Shorten title\" do?"
620
  msgstr ""
621
 
622
+ #: ../views/admin.php:581
623
+ msgid ""
624
+ "If checked, all posts titles will be shortened to \"n\" characters/words. A "
625
+ "new \"Shorten title to\" option will appear so you can set it to whatever "
626
+ "you like."
627
  msgstr ""
628
 
629
+ #: ../views/admin.php:584
630
+ msgid "What does \"Display post excerpt\" do?"
631
  msgstr ""
632
 
633
+ #: ../views/admin.php:586
634
+ msgid ""
635
+ "If checked, Wordpress Popular Posts will also include a small extract of "
636
+ "your posts in the list. Similarly to the previous option, you will be able "
637
+ "to decide how long the post excerpt should be."
638
  msgstr ""
639
 
640
+ #: ../views/admin.php:589
641
+ msgid "What does \"Keep text format and links\" do?"
642
  msgstr ""
643
 
644
+ #: ../views/admin.php:591
645
  msgid ""
646
+ "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
647
+ "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
648
+ "the excerpt. Hyperlinks will remain intact, too."
649
  msgstr ""
650
 
651
+ #: ../views/admin.php:594
652
+ msgid "What is \"Post type\" for?"
653
  msgstr ""
654
 
655
+ #: ../views/admin.php:596
656
+ msgid ""
657
+ "This filter allows you to decide which post types to show on the listing. By "
658
+ "default, it will retrieve only posts and pages (which should be fine for "
659
+ "most cases)."
660
  msgstr ""
661
 
662
+ #: ../views/admin.php:599
663
+ msgid "What is \"Category(ies) ID(s)\" for?"
664
  msgstr ""
665
 
666
+ #: ../views/admin.php:601
667
+ msgid ""
668
+ "This filter allows you to select which categories should be included or "
669
+ "excluded from the listing. A negative sign in front of the category ID "
670
+ "number will exclude posts belonging to it from the list, for example. You "
671
+ "can specify more than one ID with a comma separated list."
672
  msgstr ""
673
 
674
+ #: ../views/admin.php:604
675
+ msgid "What is \"Author(s) ID(s)\" for?"
676
  msgstr ""
677
 
678
+ #: ../views/admin.php:606
679
+ msgid ""
680
+ "Just like the Category filter, this one lets you filter posts by author ID. "
681
+ "You can specify more than one ID with a comma separated list."
682
  msgstr ""
683
 
684
+ #: ../views/admin.php:609
685
+ msgid "What does \"Display post thumbnail\" do?"
686
  msgstr ""
687
 
688
+ #: ../views/admin.php:611
689
+ msgid ""
690
+ "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
691
+ "of each post. You can set up the source of the thumbnail via Settings - "
692
+ "Wordpress Popular Posts - Tools."
693
  msgstr ""
694
 
695
+ #: ../views/admin.php:614
696
+ msgid "What does \"Display comment count\" do?"
697
  msgstr ""
698
 
699
+ #: ../views/admin.php:616
700
+ msgid ""
701
+ "If checked, Wordpress Popular Posts will display how many comments each "
702
+ "popular post has got in the selected Time Range."
703
  msgstr ""
704
 
705
+ #: ../views/admin.php:619
706
+ msgid "What does \"Display views\" do?"
707
  msgstr ""
708
 
709
+ #: ../views/admin.php:621
710
  msgid ""
711
+ "If checked, Wordpress Popular Posts will show how many pageviews a single "
712
+ "post has gotten in the selected Time Range."
 
 
 
 
 
 
713
  msgstr ""
714
 
715
+ #: ../views/admin.php:624
716
+ msgid "What does \"Display author\" do?"
717
  msgstr ""
718
 
719
+ #: ../views/admin.php:626
720
+ msgid ""
721
+ "If checked, Wordpress Popular Posts will display the name of the author of "
722
+ "each entry listed."
723
  msgstr ""
724
 
725
+ #: ../views/admin.php:629
726
+ msgid "What does \"Display date\" do?"
727
  msgstr ""
728
 
729
+ #: ../views/admin.php:631
730
  msgid ""
731
+ "If checked, Wordpress Popular Posts will display the date when each popular "
732
+ "posts was published."
733
  msgstr ""
734
 
735
+ #: ../views/admin.php:634
736
+ msgid "What does \"Display category\" do?"
737
  msgstr ""
738
 
739
+ #: ../views/admin.php:636
740
+ msgid ""
741
+ "If checked, Wordpress Popular Posts will display the category of each post."
742
  msgstr ""
743
 
744
+ #: ../views/admin.php:639
745
+ msgid "What does \"Use custom HTML Markup\" do?"
746
  msgstr ""
747
 
748
+ #: ../views/admin.php:641
749
  msgid ""
750
+ "If checked, you will be able to customize the HTML markup of your popular "
751
+ "posts listing. For example, you can decide whether to wrap your posts in an "
752
+ "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
753
+ "for you!"
754
  msgstr ""
755
 
756
+ #: ../views/admin.php:644
757
+ msgid "What are \"Content Tags\"?"
758
  msgstr ""
759
 
760
+ #: ../views/admin.php:646
761
+ #, php-format
762
+ msgid ""
763
+ "Content Tags are codes to display a variety of items on your popular posts "
764
+ "custom HTML structure. For example, setting it to \"{title}: "
765
+ "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
766
+ "post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
767
+ "\">Parameters</a> section."
768
  msgstr ""
769
 
770
+ #: ../views/admin.php:649
771
+ msgid "What are \"Template Tags\"?"
772
  msgstr ""
773
 
774
+ #: ../views/admin.php:651
775
+ msgid ""
776
+ "Template Tags are simply php functions that allow you to perform certain "
777
+ "actions. For example, Wordpress Popular Posts currently supports two "
778
+ "different template tags: wpp_get_mostpopular() and wpp_get_views()."
779
  msgstr ""
780
 
781
+ #: ../views/admin.php:654
782
+ msgid "What are the template tags that Wordpress Popular Posts supports?"
783
  msgstr ""
784
 
785
+ #: ../views/admin.php:656
786
+ msgid ""
787
+ "The following are the template tags supported by Wordpress Popular Posts"
788
  msgstr ""
789
 
790
+ #: ../views/admin.php:660
791
+ msgid "Template tag"
792
  msgstr ""
793
 
794
+ #: ../views/admin.php:669
795
+ #, php-format
796
  msgid ""
797
+ "Similar to the widget functionality, this tag retrieves the most popular "
798
+ "posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
799
+ "a> so you can customize your popular listing, but these are not required."
 
 
 
800
  msgstr ""
801
 
802
+ #: ../views/admin.php:670
803
+ #, php-format
804
+ msgid ""
805
+ "Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
806
+ "list of attributes."
807
  msgstr ""
808
 
809
+ #: ../views/admin.php:675
810
+ msgid ""
811
+ "Displays the number of views of a single post. Post ID is required or it "
812
+ "will return false."
813
  msgstr ""
814
 
815
+ #: ../views/admin.php:676
816
+ msgid "Post ID"
817
  msgstr ""
818
 
819
+ #: ../views/admin.php:683
820
+ msgid "What are \"shortcodes\"?"
821
  msgstr ""
822
 
823
+ #: ../views/admin.php:685
824
+ #, php-format
825
+ msgid ""
826
+ "Shortcodes are similar to BB Codes, these allow us to call a php function by "
827
+ "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
828
+ "shortcode [wpp] will let you insert a list of the most popular posts in "
829
+ "posts content and pages too! For more information about shortcodes, please "
830
+ "visit the <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a> page."
831
  msgstr ""
832
 
833
+ #: ../views/admin.php:694
834
+ #, php-format
835
+ msgid "About Wordpress Popular Posts %s"
836
  msgstr ""
837
 
838
+ #: ../views/admin.php:695
839
+ msgid "This version includes the following changes"
840
  msgstr ""
841
 
842
+ #: ../views/admin.php:709
843
+ msgid "Do you like this plugin?"
844
  msgstr ""
845
 
846
+ #: ../views/admin.php:716
847
+ msgid ""
848
+ "Each donation motivates me to keep releasing free stuff for the Wordpress "
849
+ "community!"
850
+ msgstr ""
851
+
852
+ #: ../views/admin.php:717
853
+ #, php-format
854
+ msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
855
  msgstr ""
856
 
857
+ #: ../views/admin.php:721
858
+ msgid "Need help?"
859
  msgstr ""
860
 
861
+ #: ../views/admin.php:722
862
+ #, php-format
863
  msgid ""
864
+ "Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
865
+ "and feedback."
866
  msgstr ""
867
 
868
+ #: ../views/admin.php:723
869
+ msgid "Let's make this plugin even better!"
870
  msgstr ""
871
 
872
+ #: ../views/form.php:2
873
+ msgid "Title"
874
  msgstr ""
875
 
876
+ #: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
877
+ #: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
878
+ #: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
879
+ #: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
880
+ #: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
881
+ #: ../views/form.php:105 ../views/form.php:111
 
 
882
  msgid "What is this?"
883
  msgstr ""
884
 
885
+ #: ../views/form.php:7
886
+ msgid "Show up to"
887
  msgstr ""
888
 
889
+ #: ../views/form.php:8
890
  msgid "posts"
891
  msgstr ""
892
 
893
+ #: ../views/form.php:12
894
+ msgid "Sort posts by"
 
 
 
 
895
  msgstr ""
896
 
897
+ #: ../views/form.php:14
898
  msgid "Comments"
899
  msgstr ""
900
 
901
+ #: ../views/form.php:15
902
  msgid "Total views"
903
  msgstr ""
904
 
905
+ #: ../views/form.php:16
906
  msgid "Avg. daily views"
907
  msgstr ""
908
 
909
+ #: ../views/form.php:22
910
+ msgid "Filters"
 
 
 
 
911
  msgstr ""
912
 
913
+ #: ../views/form.php:24
914
+ msgid "Time Range"
915
  msgstr ""
916
 
917
+ #: ../views/form.php:34
918
+ msgid "Post type(s)"
919
  msgstr ""
920
 
921
+ #: ../views/form.php:37
922
+ msgid "Post(s) ID(s) to exclude"
923
  msgstr ""
924
 
925
+ #: ../views/form.php:40
926
+ msgid "Category(ies) ID(s)"
927
  msgstr ""
928
 
929
+ #: ../views/form.php:43
930
+ msgid "Author(s) ID(s)"
931
  msgstr ""
932
 
933
+ #: ../views/form.php:48
934
+ msgid "Posts settings"
935
  msgstr ""
936
 
937
+ #: ../views/form.php:52
938
+ msgid "Display post rating"
939
  msgstr ""
940
 
941
+ #: ../views/form.php:55
942
+ msgid "Shorten title"
943
  msgstr ""
944
 
945
+ #: ../views/form.php:58
946
+ msgid "Shorten title to"
947
  msgstr ""
948
 
949
+ #: ../views/form.php:59 ../views/form.php:69
950
+ msgid "characters"
951
  msgstr ""
952
 
953
+ #: ../views/form.php:60 ../views/form.php:70
954
+ msgid "words"
955
  msgstr ""
956
 
957
+ #: ../views/form.php:63
958
+ msgid "Display post excerpt"
959
  msgstr ""
960
 
961
+ #: ../views/form.php:66
962
+ msgid "Keep text format and links"
963
  msgstr ""
964
 
965
+ #: ../views/form.php:67
966
+ msgid "Excerpt length"
967
  msgstr ""
968
 
969
+ #: ../views/form.php:73
970
  msgid "Display post thumbnail"
971
  msgstr ""
972
 
973
+ #: ../views/form.php:76
974
+ msgid "Width"
975
  msgstr ""
976
 
977
+ #: ../views/form.php:77 ../views/form.php:80
978
  msgid "px"
979
  msgstr ""
980
 
981
+ #: ../views/form.php:79
982
+ msgid "Height"
983
  msgstr ""
984
 
985
+ #: ../views/form.php:85
986
  msgid "Stats Tag settings"
987
  msgstr ""
988
 
989
+ #: ../views/form.php:87
990
  msgid "Display comment count"
991
  msgstr ""
992
 
993
+ #: ../views/form.php:89
994
  msgid "Display views"
995
  msgstr ""
996
 
997
+ #: ../views/form.php:91
998
  msgid "Display author"
999
  msgstr ""
1000
 
1001
+ #: ../views/form.php:93
1002
  msgid "Display date"
1003
  msgstr ""
1004
 
1005
+ #: ../views/form.php:96
1006
  msgid "Date Format"
1007
  msgstr ""
1008
 
1009
+ #: ../views/form.php:98
1010
+ msgid "Wordpress Date Format"
1011
+ msgstr ""
1012
+
1013
+ #: ../views/form.php:105
1014
  msgid "Display category"
1015
  msgstr ""
1016
 
1017
+ #: ../views/form.php:109
1018
  msgid "HTML Markup settings"
1019
  msgstr ""
1020
 
1021
+ #: ../views/form.php:111
1022
  msgid "Use custom HTML Markup"
1023
  msgstr ""
1024
 
1025
+ #: ../views/form.php:114
1026
+ msgid "Before / after title"
1027
  msgstr ""
1028
 
1029
+ #: ../views/form.php:117
1030
+ msgid "Before / after Popular Posts"
1031
  msgstr ""
1032
 
1033
+ #: ../views/form.php:120
1034
+ msgid "Post HTML Markup"
1035
  msgstr ""
1036
 
1037
+ #: ../wordpress-popular-posts.php:269
1038
+ msgid "The most Popular Posts on your blog."
1039
  msgstr ""
1040
 
1041
+ #: ../wordpress-popular-posts.php:410
1042
+ msgid ""
1043
+ "Error: cannot ajaxify Wordpress Popular Posts on this theme. It's missing "
1044
+ "the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
1045
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1046
+ "\"nofollow\">register_sidebar</a> for more)."
1047
  msgstr ""
1048
 
1049
+ #: ../wordpress-popular-posts.php:636
1050
+ msgid "Upload"
1051
  msgstr ""
1052
 
1053
+ #: ../wordpress-popular-posts.php:1002
1054
+ #, php-format
1055
+ msgid ""
1056
+ "Your PHP installation is too old. Wordpress Popular Posts requires at least "
1057
+ "PHP version %1$s to function correctly. Please contact your hosting provider "
1058
+ "and ask them to upgrade PHP to %1$s or higher."
1059
  msgstr ""
1060
 
1061
+ #: ../wordpress-popular-posts.php:1009
1062
+ #, php-format
1063
+ msgid ""
1064
+ "Your Wordpress version is too old. Wordpress Popular Posts requires at least "
1065
+ "Wordpress version %1$s to function correctly. Please update your blog via "
1066
+ "Dashboard &gt; Update."
1067
  msgstr ""
1068
 
1069
+ #: ../wordpress-popular-posts.php:1034
1070
+ #, php-format
1071
  msgid ""
1072
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
1073
+ "strong>.</p></div>"
1074
  msgstr ""
1075
 
1076
+ #: ../wordpress-popular-posts.php:1094
1077
+ msgid "Success! The cache table has been cleared!"
1078
  msgstr ""
1079
 
1080
+ #: ../wordpress-popular-posts.php:1096
1081
+ msgid "Error: cache table does not exist."
1082
  msgstr ""
1083
 
1084
+ #: ../wordpress-popular-posts.php:1103
1085
+ msgid "Success! All data have been cleared!"
1086
  msgstr ""
1087
 
1088
+ #: ../wordpress-popular-posts.php:1105
1089
+ msgid "Error: one or both data tables are missing."
1090
  msgstr ""
1091
 
1092
+ #: ../wordpress-popular-posts.php:1108
1093
+ msgid "Invalid action."
1094
  msgstr ""
1095
 
1096
+ #: ../wordpress-popular-posts.php:1111
1097
+ msgid ""
1098
+ "Sorry, you do not have enough permissions to do this. Please contact the "
1099
+ "site administrator for support."
1100
  msgstr ""
1101
 
1102
+ #: ../wordpress-popular-posts.php:1639
1103
+ msgid "Sorry. No data so far."
1104
  msgstr ""
1105
 
1106
+ #: ../wordpress-popular-posts.php:2111
1107
+ #, php-format
1108
+ msgid "1 comment"
1109
+ msgid_plural "%s comments"
1110
+ msgstr[0] ""
1111
+ msgstr[1] ""
1112
 
1113
+ #: ../wordpress-popular-posts.php:2123
1114
+ #, php-format
1115
+ msgid "1 view per day"
1116
+ msgid_plural "%s views per day"
1117
+ msgstr[0] ""
1118
+ msgstr[1] ""
1119
 
1120
+ #: ../wordpress-popular-posts.php:2129
1121
+ #, php-format
1122
+ msgid "1 view"
1123
+ msgid_plural "%s views"
1124
+ msgstr[0] ""
1125
+ msgstr[1] ""
1126
 
1127
+ #: ../wordpress-popular-posts.php:2141
1128
+ #, php-format
1129
+ msgid "by %s"
1130
  msgstr ""
1131
 
1132
+ #: ../wordpress-popular-posts.php:2147
1133
+ #, php-format
1134
+ msgid "posted on %s"
 
 
1135
  msgstr ""
1136
 
1137
+ #: ../wordpress-popular-posts.php:2155
1138
+ #, php-format
1139
+ msgid "under %s"
 
 
1140
  msgstr ""
lang/wordpress-popular-posts.pot ADDED
@@ -0,0 +1,1140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 Wordpress Popular Posts
2
+ # This file is distributed under the same license as the Wordpress Popular Posts package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Wordpress Popular Posts\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-popular-posts\n"
7
+ "POT-Creation-Date: 2014-06-04 10:01-0430\n"
8
+ "PO-Revision-Date: 2014-06-04 10:01-0430\n"
9
+ "Last-Translator: Héctor Cabrera <hcabrerab@gmail.com>\n"
10
+ "Language-Team: Héctor Cabrera <hcabrerab@gmail.com>\n"
11
+ "Language: en\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Generator: Poedit 1.6.5\n"
17
+ "X-Poedit-KeywordsList: _e;__;__ngettext;__ngettext_noop;_n_noop;_x;_nx;"
18
+ "_nx_noop;_ex;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;"
19
+ "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
+ #: ../views/admin.php:23 ../views/admin.php:32 ../views/admin.php:46
26
+ #: ../views/admin.php:67
27
+ msgid "Settings saved."
28
+ msgstr ""
29
+
30
+ #: ../views/admin.php:38
31
+ msgid "Please provide the name of your custom field."
32
+ msgstr ""
33
+
34
+ #: ../views/admin.php:84
35
+ msgid ""
36
+ "This operation will delete all entries from Wordpress Popular Posts' cache "
37
+ "table and cannot be undone."
38
+ msgstr ""
39
+
40
+ #: ../views/admin.php:84 ../views/admin.php:92
41
+ msgid "Do you want to continue?"
42
+ msgstr ""
43
+
44
+ #: ../views/admin.php:92
45
+ msgid ""
46
+ "This operation will delete all stored info from Wordpress Popular Posts' "
47
+ "data tables and cannot be undone."
48
+ msgstr ""
49
+
50
+ #: ../views/admin.php:109
51
+ msgid "Stats"
52
+ msgstr ""
53
+
54
+ #: ../views/admin.php:110
55
+ msgid "Tools"
56
+ msgstr ""
57
+
58
+ #: ../views/admin.php:111 ../views/admin.php:662
59
+ msgid "Parameters"
60
+ msgstr ""
61
+
62
+ #: ../views/admin.php:112
63
+ msgid "FAQ"
64
+ msgstr ""
65
+
66
+ #: ../views/admin.php:113
67
+ msgid "About"
68
+ msgstr ""
69
+
70
+ #: ../views/admin.php:124
71
+ msgid ""
72
+ "Click on each tab to see what are the most popular entries on your blog in "
73
+ "the last 24 hours, this week, last 30 days or all time since Wordpress "
74
+ "Popular Posts was installed."
75
+ msgstr ""
76
+
77
+ #: ../views/admin.php:130
78
+ msgid "Order by comments"
79
+ msgstr ""
80
+
81
+ #: ../views/admin.php:131
82
+ msgid "Order by views"
83
+ msgstr ""
84
+
85
+ #: ../views/admin.php:132
86
+ msgid "Order by avg. daily views"
87
+ msgstr ""
88
+
89
+ #: ../views/admin.php:134
90
+ msgid "Post type"
91
+ msgstr ""
92
+
93
+ #: ../views/admin.php:135
94
+ msgid "Limit"
95
+ msgstr ""
96
+
97
+ #: ../views/admin.php:136 ../views/form.php:32
98
+ msgid "Display only posts published within the selected Time Range"
99
+ msgstr ""
100
+
101
+ #: ../views/admin.php:138 ../views/admin.php:215 ../views/admin.php:281
102
+ #: ../views/admin.php:318
103
+ msgid "Apply"
104
+ msgstr ""
105
+
106
+ #: ../views/admin.php:144 ../views/form.php:26
107
+ msgid "Last 24 hours"
108
+ msgstr ""
109
+
110
+ #: ../views/admin.php:145 ../views/form.php:27
111
+ msgid "Last 7 days"
112
+ msgstr ""
113
+
114
+ #: ../views/admin.php:146 ../views/form.php:28
115
+ msgid "Last 30 days"
116
+ msgstr ""
117
+
118
+ #: ../views/admin.php:147 ../views/form.php:29
119
+ msgid "All-time"
120
+ msgstr ""
121
+
122
+ #: ../views/admin.php:169
123
+ msgid "Thumbnails"
124
+ msgstr ""
125
+
126
+ #: ../views/admin.php:174
127
+ msgid "Default thumbnail"
128
+ msgstr ""
129
+
130
+ #: ../views/admin.php:179
131
+ msgid "Upload thumbnail"
132
+ msgstr ""
133
+
134
+ #: ../views/admin.php:182
135
+ msgid ""
136
+ "How-to: upload (or select) an image, set Size to Full and click on Upload. "
137
+ "After it's done, hit on Apply to save changes"
138
+ msgstr ""
139
+
140
+ #: ../views/admin.php:186
141
+ msgid "Pick image from"
142
+ msgstr ""
143
+
144
+ #: ../views/admin.php:189
145
+ msgid "Featured image"
146
+ msgstr ""
147
+
148
+ #: ../views/admin.php:190
149
+ msgid "First image on post"
150
+ msgstr ""
151
+
152
+ #: ../views/admin.php:191
153
+ msgid "Custom field"
154
+ msgstr ""
155
+
156
+ #: ../views/admin.php:194
157
+ msgid "Tell Wordpress Popular Posts where it should get thumbnails from"
158
+ msgstr ""
159
+
160
+ #: ../views/admin.php:198
161
+ msgid "Custom field name"
162
+ msgstr ""
163
+
164
+ #: ../views/admin.php:204
165
+ msgid "Resize image from Custom field?"
166
+ msgstr ""
167
+
168
+ #: ../views/admin.php:207
169
+ msgid "No, I will upload my own thumbnail"
170
+ msgstr ""
171
+
172
+ #: ../views/admin.php:208
173
+ msgid "Yes"
174
+ msgstr ""
175
+
176
+ #: ../views/admin.php:224
177
+ msgid "Data"
178
+ msgstr ""
179
+
180
+ #: ../views/admin.php:229
181
+ msgid "Log views from"
182
+ msgstr ""
183
+
184
+ #: ../views/admin.php:232
185
+ msgid "Visitors only"
186
+ msgstr ""
187
+
188
+ #: ../views/admin.php:233
189
+ msgid "Logged-in users only"
190
+ msgstr ""
191
+
192
+ #: ../views/admin.php:234
193
+ msgid "Everyone"
194
+ msgstr ""
195
+
196
+ #: ../views/admin.php:240
197
+ msgid "Ajaxify widget"
198
+ msgstr ""
199
+
200
+ #: ../views/admin.php:243 ../views/admin.php:309
201
+ msgid "Disabled"
202
+ msgstr ""
203
+
204
+ #: ../views/admin.php:244 ../views/admin.php:308
205
+ msgid "Enabled"
206
+ msgstr ""
207
+
208
+ #: ../views/admin.php:248
209
+ msgid ""
210
+ "If you are using a caching plugin such as WP Super Cache, enabling this "
211
+ "feature will keep the popular list from being cached by it"
212
+ msgstr ""
213
+
214
+ #: ../views/admin.php:252
215
+ msgid "Listing refresh interval"
216
+ msgstr ""
217
+
218
+ #: ../views/admin.php:255
219
+ msgid "Live"
220
+ msgstr ""
221
+
222
+ #: ../views/admin.php:256
223
+ msgid "Custom interval"
224
+ msgstr ""
225
+
226
+ #: ../views/admin.php:260
227
+ msgid ""
228
+ "Sets how often the listing should be updated. For most sites the Live option "
229
+ "should be fine, however if you are experiencing slowdowns or your blog gets "
230
+ "a lot of visitors then you might want to change the refresh rate"
231
+ msgstr ""
232
+
233
+ #: ../views/admin.php:264
234
+ msgid "Refresh list every"
235
+ msgstr ""
236
+
237
+ #: ../views/admin.php:268
238
+ msgid "Hour(s)"
239
+ msgstr ""
240
+
241
+ #: ../views/admin.php:269
242
+ msgid "Day(s)"
243
+ msgstr ""
244
+
245
+ #: ../views/admin.php:270
246
+ msgid "Week(s)"
247
+ msgstr ""
248
+
249
+ #: ../views/admin.php:271
250
+ msgid "Month(s)"
251
+ msgstr ""
252
+
253
+ #: ../views/admin.php:272
254
+ msgid "Year(s)"
255
+ msgstr ""
256
+
257
+ #: ../views/admin.php:275
258
+ msgid "Really? That long?"
259
+ msgstr ""
260
+
261
+ #: ../views/admin.php:290
262
+ msgid "Miscellaneous"
263
+ msgstr ""
264
+
265
+ #: ../views/admin.php:295
266
+ msgid "Open links in"
267
+ msgstr ""
268
+
269
+ #: ../views/admin.php:298
270
+ msgid "Current window"
271
+ msgstr ""
272
+
273
+ #: ../views/admin.php:299
274
+ msgid "New tab/window"
275
+ msgstr ""
276
+
277
+ #: ../views/admin.php:305
278
+ msgid "Use plugin's stylesheet"
279
+ msgstr ""
280
+
281
+ #: ../views/admin.php:312
282
+ msgid ""
283
+ "By default, the plugin includes a stylesheet called wpp.css which you can "
284
+ "use to style your popular posts listing. If you wish to use your own "
285
+ "stylesheet or do not want it to have it included in the header section of "
286
+ "your site, use this."
287
+ msgstr ""
288
+
289
+ #: ../views/admin.php:329
290
+ msgid ""
291
+ "Wordpress Popular Posts maintains data in two separate tables: one for "
292
+ "storing the most popular entries on a daily basis (from now on, \"cache\"), "
293
+ "and another one to keep the All-time data (from now on, \"historical data\" "
294
+ "or just \"data\"). If for some reason you need to clear the cache table, or "
295
+ "even both historical and cache tables, please use the buttons below to do so."
296
+ msgstr ""
297
+
298
+ #: ../views/admin.php:330
299
+ msgid "Empty cache"
300
+ msgstr ""
301
+
302
+ #: ../views/admin.php:330
303
+ msgid "Use this button to manually clear entries from WPP cache only"
304
+ msgstr ""
305
+
306
+ #: ../views/admin.php:331
307
+ msgid "Clear all data"
308
+ msgstr ""
309
+
310
+ #: ../views/admin.php:331
311
+ msgid "Use this button to manually clear entries from all WPP data tables"
312
+ msgstr ""
313
+
314
+ #: ../views/admin.php:338
315
+ #, php-format
316
+ msgid ""
317
+ "With the following parameters you can customize the popular posts list when "
318
+ "using either the <a href=\"%1$s\">wpp_get_most_popular() template tag</a> or "
319
+ "the <a href=\"%2$s\">[wpp] shortcode</a>."
320
+ msgstr ""
321
+
322
+ #: ../views/admin.php:346
323
+ msgid "Parameter"
324
+ msgstr ""
325
+
326
+ #: ../views/admin.php:347 ../views/admin.php:661
327
+ msgid "What it does "
328
+ msgstr ""
329
+
330
+ #: ../views/admin.php:348
331
+ msgid "Possible values"
332
+ msgstr ""
333
+
334
+ #: ../views/admin.php:349
335
+ msgid "Defaults to"
336
+ msgstr ""
337
+
338
+ #: ../views/admin.php:350 ../views/admin.php:663
339
+ msgid "Example"
340
+ msgstr ""
341
+
342
+ #: ../views/admin.php:356
343
+ msgid "Sets a heading for the list"
344
+ msgstr ""
345
+
346
+ #: ../views/admin.php:357 ../views/admin.php:364 ../views/admin.php:371
347
+ #: ../views/admin.php:406 ../views/admin.php:413 ../views/admin.php:420
348
+ #: ../views/admin.php:427 ../views/admin.php:518 ../views/admin.php:532
349
+ #: ../views/admin.php:539
350
+ msgid "Text string"
351
+ msgstr ""
352
+
353
+ #: ../views/admin.php:358
354
+ msgid "Popular Posts"
355
+ msgstr ""
356
+
357
+ #: ../views/admin.php:363
358
+ msgid "Set the opening tag for the heading of the list"
359
+ msgstr ""
360
+
361
+ #: ../views/admin.php:370
362
+ msgid "Set the closing tag for the heading of the list"
363
+ msgstr ""
364
+
365
+ #: ../views/admin.php:377
366
+ msgid "Sets the maximum number of popular posts to be shown on the listing"
367
+ msgstr ""
368
+
369
+ #: ../views/admin.php:378 ../views/admin.php:434 ../views/admin.php:448
370
+ #: ../views/admin.php:469 ../views/admin.php:476
371
+ msgid "Positive integer"
372
+ msgstr ""
373
+
374
+ #: ../views/admin.php:384
375
+ msgid ""
376
+ "Tells Wordpress Popular Posts to retrieve the most popular entries within "
377
+ "the time range specified by you"
378
+ msgstr ""
379
+
380
+ #: ../views/admin.php:391
381
+ msgid ""
382
+ "Tells Wordpress Popular Posts to retrieve the most popular entries published "
383
+ "within the time range specified by you"
384
+ msgstr ""
385
+
386
+ #: ../views/admin.php:398
387
+ msgid "Sets the sorting option of the popular posts"
388
+ msgstr ""
389
+
390
+ #: ../views/admin.php:399
391
+ msgid "(for average views per day)"
392
+ msgstr ""
393
+
394
+ #: ../views/admin.php:405
395
+ msgid "Defines the type of posts to show on the listing"
396
+ msgstr ""
397
+
398
+ #: ../views/admin.php:412
399
+ msgid ""
400
+ "If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) "
401
+ "form the listing."
402
+ msgstr ""
403
+
404
+ #: ../views/admin.php:414 ../views/admin.php:421 ../views/admin.php:428
405
+ msgid "None"
406
+ msgstr ""
407
+
408
+ #: ../views/admin.php:419
409
+ msgid ""
410
+ "If set, Wordpress Popular Posts will retrieve all entries that belong to the "
411
+ "specified category(ies) ID(s). If a minus sign is used, the category(ies) "
412
+ "will be excluded instead."
413
+ msgstr ""
414
+
415
+ #: ../views/admin.php:426
416
+ msgid ""
417
+ "If set, Wordpress Popular Posts will retrieve all entries created by "
418
+ "specified author(s) ID(s)."
419
+ msgstr ""
420
+
421
+ #: ../views/admin.php:433
422
+ msgid ""
423
+ "If set, Wordpress Popular Posts will shorten each post title to \"n\" "
424
+ "characters whenever possible"
425
+ msgstr ""
426
+
427
+ #: ../views/admin.php:440
428
+ msgid ""
429
+ "If set to 1, Wordpress Popular Posts will shorten each post title to \"n\" "
430
+ "words instead of characters"
431
+ msgstr ""
432
+
433
+ #: ../views/admin.php:447
434
+ msgid ""
435
+ "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" "
436
+ "characters long from the content of each post listed as popular"
437
+ msgstr ""
438
+
439
+ #: ../views/admin.php:454
440
+ msgid ""
441
+ "If set, Wordpress Popular Posts will maintaing all styling tags (strong, "
442
+ "italic, etc) and hyperlinks found in the excerpt"
443
+ msgstr ""
444
+
445
+ #: ../views/admin.php:461
446
+ msgid ""
447
+ "If set to 1, Wordpress Popular Posts will shorten the excerpt to \"n\" words "
448
+ "instead of characters"
449
+ msgstr ""
450
+
451
+ #: ../views/admin.php:468
452
+ msgid ""
453
+ "If set, and if your current server configuration allows it, you will be able "
454
+ "to display thumbnails of your posts. This attribute sets the width for "
455
+ "thumbnails"
456
+ msgstr ""
457
+
458
+ #: ../views/admin.php:475
459
+ msgid ""
460
+ "If set, and if your current server configuration allows it, you will be able "
461
+ "to display thumbnails of your posts. This attribute sets the height for "
462
+ "thumbnails"
463
+ msgstr ""
464
+
465
+ #: ../views/admin.php:482
466
+ msgid ""
467
+ "If set, and if the WP-PostRatings plugin is installed and enabled on your "
468
+ "blog, Wordpress Popular Posts will show how your visitors are rating your "
469
+ "entries"
470
+ msgstr ""
471
+
472
+ #: ../views/admin.php:489
473
+ msgid ""
474
+ "If set, Wordpress Popular Posts will show how many comments each popular "
475
+ "post has got until now"
476
+ msgstr ""
477
+
478
+ #: ../views/admin.php:496
479
+ msgid ""
480
+ "If set, Wordpress Popular Posts will show how many views each popular post "
481
+ "has got since it was installed"
482
+ msgstr ""
483
+
484
+ #: ../views/admin.php:503
485
+ msgid ""
486
+ "If set, Wordpress Popular Posts will show who published each popular post on "
487
+ "the list"
488
+ msgstr ""
489
+
490
+ #: ../views/admin.php:510
491
+ msgid ""
492
+ "If set, Wordpress Popular Posts will display the date when each popular post "
493
+ "on the list was published"
494
+ msgstr ""
495
+
496
+ #: ../views/admin.php:517
497
+ msgid "Sets the date format"
498
+ msgstr ""
499
+
500
+ #: ../views/admin.php:524
501
+ msgid "If set, Wordpress Popular Posts will display the category"
502
+ msgstr ""
503
+
504
+ #: ../views/admin.php:531
505
+ msgid "Sets the opening tag for the listing"
506
+ msgstr ""
507
+
508
+ #: ../views/admin.php:538
509
+ msgid "Sets the closing tag for the listing"
510
+ msgstr ""
511
+
512
+ #: ../views/admin.php:545
513
+ msgid "Sets the HTML structure of each post"
514
+ msgstr ""
515
+
516
+ #: ../views/admin.php:546
517
+ msgid "Text string, custom HTML"
518
+ msgstr ""
519
+
520
+ #: ../views/admin.php:546
521
+ msgid "Available Content Tags"
522
+ msgstr ""
523
+
524
+ #: ../views/admin.php:546
525
+ msgid "displays thumbnail linked to post/page"
526
+ msgstr ""
527
+
528
+ #: ../views/admin.php:546
529
+ msgid "displays linked post/page title"
530
+ msgstr ""
531
+
532
+ #: ../views/admin.php:546
533
+ msgid ""
534
+ "displays post/page excerpt, and requires excerpt_length to be greater than 0"
535
+ msgstr ""
536
+
537
+ #: ../views/admin.php:546
538
+ msgid "displays the default stats tags"
539
+ msgstr ""
540
+
541
+ #: ../views/admin.php:546
542
+ msgid ""
543
+ "displays post/page current rating, requires WP-PostRatings installed and "
544
+ "enabled"
545
+ msgstr ""
546
+
547
+ #: ../views/admin.php:546
548
+ msgid ""
549
+ "displays post/page current rating as an integer, requires WP-PostRatings "
550
+ "installed and enabled"
551
+ msgstr ""
552
+
553
+ #: ../views/admin.php:546
554
+ msgid "outputs the URL of the post/page"
555
+ msgstr ""
556
+
557
+ #: ../views/admin.php:546
558
+ msgid "displays post/page title, no link"
559
+ msgstr ""
560
+
561
+ #: ../views/admin.php:546
562
+ msgid "displays linked author name, requires stats_author=1"
563
+ msgstr ""
564
+
565
+ #: ../views/admin.php:546
566
+ msgid "displays linked category name, requires stats_category=1"
567
+ msgstr ""
568
+
569
+ #: ../views/admin.php:546
570
+ msgid "displays views count only, no text"
571
+ msgstr ""
572
+
573
+ #: ../views/admin.php:546
574
+ msgid "displays comments count only, no text, requires stats_comments=1"
575
+ msgstr ""
576
+
577
+ #: ../views/admin.php:558
578
+ msgid "What does \"Title\" do?"
579
+ msgstr ""
580
+
581
+ #: ../views/admin.php:561
582
+ msgid ""
583
+ "It allows you to show a heading for your most popular posts listing. If left "
584
+ "empty, no heading will be displayed at all."
585
+ msgstr ""
586
+
587
+ #: ../views/admin.php:564
588
+ msgid "What is Time Range for?"
589
+ msgstr ""
590
+
591
+ #: ../views/admin.php:566
592
+ msgid ""
593
+ "It will tell Wordpress Popular Posts to retrieve all posts with most views / "
594
+ "comments within the selected time range."
595
+ msgstr ""
596
+
597
+ #: ../views/admin.php:569
598
+ msgid "What is \"Sort post by\" for?"
599
+ msgstr ""
600
+
601
+ #: ../views/admin.php:571
602
+ msgid ""
603
+ "It allows you to decide whether to order your popular posts listing by total "
604
+ "views, comments, or average views per day."
605
+ msgstr ""
606
+
607
+ #: ../views/admin.php:574
608
+ msgid "What does \"Display post rating\" do?"
609
+ msgstr ""
610
+
611
+ #: ../views/admin.php:576
612
+ msgid ""
613
+ "If checked, Wordpress Popular Posts will show how your readers are rating "
614
+ "your most popular posts. This feature requires having WP-PostRatings plugin "
615
+ "installed and enabled on your blog for it to work."
616
+ msgstr ""
617
+
618
+ #: ../views/admin.php:579
619
+ msgid "What does \"Shorten title\" do?"
620
+ msgstr ""
621
+
622
+ #: ../views/admin.php:581
623
+ msgid ""
624
+ "If checked, all posts titles will be shortened to \"n\" characters/words. A "
625
+ "new \"Shorten title to\" option will appear so you can set it to whatever "
626
+ "you like."
627
+ msgstr ""
628
+
629
+ #: ../views/admin.php:584
630
+ msgid "What does \"Display post excerpt\" do?"
631
+ msgstr ""
632
+
633
+ #: ../views/admin.php:586
634
+ msgid ""
635
+ "If checked, Wordpress Popular Posts will also include a small extract of "
636
+ "your posts in the list. Similarly to the previous option, you will be able "
637
+ "to decide how long the post excerpt should be."
638
+ msgstr ""
639
+
640
+ #: ../views/admin.php:589
641
+ msgid "What does \"Keep text format and links\" do?"
642
+ msgstr ""
643
+
644
+ #: ../views/admin.php:591
645
+ msgid ""
646
+ "If checked, and if the Post Excerpt feature is enabled, Wordpress Popular "
647
+ "Posts will keep the styling tags (eg. bold, italic, etc) that were found in "
648
+ "the excerpt. Hyperlinks will remain intact, too."
649
+ msgstr ""
650
+
651
+ #: ../views/admin.php:594
652
+ msgid "What is \"Post type\" for?"
653
+ msgstr ""
654
+
655
+ #: ../views/admin.php:596
656
+ msgid ""
657
+ "This filter allows you to decide which post types to show on the listing. By "
658
+ "default, it will retrieve only posts and pages (which should be fine for "
659
+ "most cases)."
660
+ msgstr ""
661
+
662
+ #: ../views/admin.php:599
663
+ msgid "What is \"Category(ies) ID(s)\" for?"
664
+ msgstr ""
665
+
666
+ #: ../views/admin.php:601
667
+ msgid ""
668
+ "This filter allows you to select which categories should be included or "
669
+ "excluded from the listing. A negative sign in front of the category ID "
670
+ "number will exclude posts belonging to it from the list, for example. You "
671
+ "can specify more than one ID with a comma separated list."
672
+ msgstr ""
673
+
674
+ #: ../views/admin.php:604
675
+ msgid "What is \"Author(s) ID(s)\" for?"
676
+ msgstr ""
677
+
678
+ #: ../views/admin.php:606
679
+ msgid ""
680
+ "Just like the Category filter, this one lets you filter posts by author ID. "
681
+ "You can specify more than one ID with a comma separated list."
682
+ msgstr ""
683
+
684
+ #: ../views/admin.php:609
685
+ msgid "What does \"Display post thumbnail\" do?"
686
+ msgstr ""
687
+
688
+ #: ../views/admin.php:611
689
+ msgid ""
690
+ "If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail "
691
+ "of each post. You can set up the source of the thumbnail via Settings - "
692
+ "Wordpress Popular Posts - Tools."
693
+ msgstr ""
694
+
695
+ #: ../views/admin.php:614
696
+ msgid "What does \"Display comment count\" do?"
697
+ msgstr ""
698
+
699
+ #: ../views/admin.php:616
700
+ msgid ""
701
+ "If checked, Wordpress Popular Posts will display how many comments each "
702
+ "popular post has got in the selected Time Range."
703
+ msgstr ""
704
+
705
+ #: ../views/admin.php:619
706
+ msgid "What does \"Display views\" do?"
707
+ msgstr ""
708
+
709
+ #: ../views/admin.php:621
710
+ msgid ""
711
+ "If checked, Wordpress Popular Posts will show how many pageviews a single "
712
+ "post has gotten in the selected Time Range."
713
+ msgstr ""
714
+
715
+ #: ../views/admin.php:624
716
+ msgid "What does \"Display author\" do?"
717
+ msgstr ""
718
+
719
+ #: ../views/admin.php:626
720
+ msgid ""
721
+ "If checked, Wordpress Popular Posts will display the name of the author of "
722
+ "each entry listed."
723
+ msgstr ""
724
+
725
+ #: ../views/admin.php:629
726
+ msgid "What does \"Display date\" do?"
727
+ msgstr ""
728
+
729
+ #: ../views/admin.php:631
730
+ msgid ""
731
+ "If checked, Wordpress Popular Posts will display the date when each popular "
732
+ "posts was published."
733
+ msgstr ""
734
+
735
+ #: ../views/admin.php:634
736
+ msgid "What does \"Display category\" do?"
737
+ msgstr ""
738
+
739
+ #: ../views/admin.php:636
740
+ msgid ""
741
+ "If checked, Wordpress Popular Posts will display the category of each post."
742
+ msgstr ""
743
+
744
+ #: ../views/admin.php:639
745
+ msgid "What does \"Use custom HTML Markup\" do?"
746
+ msgstr ""
747
+
748
+ #: ../views/admin.php:641
749
+ msgid ""
750
+ "If checked, you will be able to customize the HTML markup of your popular "
751
+ "posts listing. For example, you can decide whether to wrap your posts in an "
752
+ "unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is "
753
+ "for you!"
754
+ msgstr ""
755
+
756
+ #: ../views/admin.php:644
757
+ msgid "What are \"Content Tags\"?"
758
+ msgstr ""
759
+
760
+ #: ../views/admin.php:646
761
+ #, php-format
762
+ msgid ""
763
+ "Content Tags are codes to display a variety of items on your popular posts "
764
+ "custom HTML structure. For example, setting it to \"{title}: "
765
+ "{summary}\" (without the quotes) would display \"Post title: excerpt of the "
766
+ "post here\". For more Content Tags, see the <a href=\"%s\" target=\"_blank"
767
+ "\">Parameters</a> section."
768
+ msgstr ""
769
+
770
+ #: ../views/admin.php:649
771
+ msgid "What are \"Template Tags\"?"
772
+ msgstr ""
773
+
774
+ #: ../views/admin.php:651
775
+ msgid ""
776
+ "Template Tags are simply php functions that allow you to perform certain "
777
+ "actions. For example, Wordpress Popular Posts currently supports two "
778
+ "different template tags: wpp_get_mostpopular() and wpp_get_views()."
779
+ msgstr ""
780
+
781
+ #: ../views/admin.php:654
782
+ msgid "What are the template tags that Wordpress Popular Posts supports?"
783
+ msgstr ""
784
+
785
+ #: ../views/admin.php:656
786
+ msgid ""
787
+ "The following are the template tags supported by Wordpress Popular Posts"
788
+ msgstr ""
789
+
790
+ #: ../views/admin.php:660
791
+ msgid "Template tag"
792
+ msgstr ""
793
+
794
+ #: ../views/admin.php:669
795
+ #, php-format
796
+ msgid ""
797
+ "Similar to the widget functionality, this tag retrieves the most popular "
798
+ "posts on your blog. This function also accepts <a href=\"%1$s\">parameters</"
799
+ "a> so you can customize your popular listing, but these are not required."
800
+ msgstr ""
801
+
802
+ #: ../views/admin.php:670
803
+ #, php-format
804
+ msgid ""
805
+ "Please refer to the <a href=\"%1$s\">Parameters section</a> for a complete "
806
+ "list of attributes."
807
+ msgstr ""
808
+
809
+ #: ../views/admin.php:675
810
+ msgid ""
811
+ "Displays the number of views of a single post. Post ID is required or it "
812
+ "will return false."
813
+ msgstr ""
814
+
815
+ #: ../views/admin.php:676
816
+ msgid "Post ID"
817
+ msgstr ""
818
+
819
+ #: ../views/admin.php:683
820
+ msgid "What are \"shortcodes\"?"
821
+ msgstr ""
822
+
823
+ #: ../views/admin.php:685
824
+ #, php-format
825
+ msgid ""
826
+ "Shortcodes are similar to BB Codes, these allow us to call a php function by "
827
+ "simply typing something like [shortcode]. With Wordpress Popular Posts, the "
828
+ "shortcode [wpp] will let you insert a list of the most popular posts in "
829
+ "posts content and pages too! For more information about shortcodes, please "
830
+ "visit the <a href=\"%s\" target=\"_blank\">Wordpress Shortcode API</a> page."
831
+ msgstr ""
832
+
833
+ #: ../views/admin.php:694
834
+ #, php-format
835
+ msgid "About Wordpress Popular Posts %s"
836
+ msgstr ""
837
+
838
+ #: ../views/admin.php:695
839
+ msgid "This version includes the following changes"
840
+ msgstr ""
841
+
842
+ #: ../views/admin.php:709
843
+ msgid "Do you like this plugin?"
844
+ msgstr ""
845
+
846
+ #: ../views/admin.php:716
847
+ msgid ""
848
+ "Each donation motivates me to keep releasing free stuff for the Wordpress "
849
+ "community!"
850
+ msgstr ""
851
+
852
+ #: ../views/admin.php:717
853
+ #, php-format
854
+ msgid "You can <a href=\"%s\" target=\"_blank\">leave a review</a>, too!"
855
+ msgstr ""
856
+
857
+ #: ../views/admin.php:721
858
+ msgid "Need help?"
859
+ msgstr ""
860
+
861
+ #: ../views/admin.php:722
862
+ #, php-format
863
+ msgid ""
864
+ "Visit <a href=\"%s\" target=\"_blank\">the forum</a> for support, questions "
865
+ "and feedback."
866
+ msgstr ""
867
+
868
+ #: ../views/admin.php:723
869
+ msgid "Let's make this plugin even better!"
870
+ msgstr ""
871
+
872
+ #: ../views/form.php:2
873
+ msgid "Title"
874
+ msgstr ""
875
+
876
+ #: ../views/form.php:2 ../views/form.php:12 ../views/form.php:24
877
+ #: ../views/form.php:34 ../views/form.php:40 ../views/form.php:43
878
+ #: ../views/form.php:52 ../views/form.php:55 ../views/form.php:63
879
+ #: ../views/form.php:66 ../views/form.php:73 ../views/form.php:87
880
+ #: ../views/form.php:89 ../views/form.php:91 ../views/form.php:93
881
+ #: ../views/form.php:105 ../views/form.php:111
882
+ msgid "What is this?"
883
+ msgstr ""
884
+
885
+ #: ../views/form.php:7
886
+ msgid "Show up to"
887
+ msgstr ""
888
+
889
+ #: ../views/form.php:8
890
+ msgid "posts"
891
+ msgstr ""
892
+
893
+ #: ../views/form.php:12
894
+ msgid "Sort posts by"
895
+ msgstr ""
896
+
897
+ #: ../views/form.php:14
898
+ msgid "Comments"
899
+ msgstr ""
900
+
901
+ #: ../views/form.php:15
902
+ msgid "Total views"
903
+ msgstr ""
904
+
905
+ #: ../views/form.php:16
906
+ msgid "Avg. daily views"
907
+ msgstr ""
908
+
909
+ #: ../views/form.php:22
910
+ msgid "Filters"
911
+ msgstr ""
912
+
913
+ #: ../views/form.php:24
914
+ msgid "Time Range"
915
+ msgstr ""
916
+
917
+ #: ../views/form.php:34
918
+ msgid "Post type(s)"
919
+ msgstr ""
920
+
921
+ #: ../views/form.php:37
922
+ msgid "Post(s) ID(s) to exclude"
923
+ msgstr ""
924
+
925
+ #: ../views/form.php:40
926
+ msgid "Category(ies) ID(s)"
927
+ msgstr ""
928
+
929
+ #: ../views/form.php:43
930
+ msgid "Author(s) ID(s)"
931
+ msgstr ""
932
+
933
+ #: ../views/form.php:48
934
+ msgid "Posts settings"
935
+ msgstr ""
936
+
937
+ #: ../views/form.php:52
938
+ msgid "Display post rating"
939
+ msgstr ""
940
+
941
+ #: ../views/form.php:55
942
+ msgid "Shorten title"
943
+ msgstr ""
944
+
945
+ #: ../views/form.php:58
946
+ msgid "Shorten title to"
947
+ msgstr ""
948
+
949
+ #: ../views/form.php:59 ../views/form.php:69
950
+ msgid "characters"
951
+ msgstr ""
952
+
953
+ #: ../views/form.php:60 ../views/form.php:70
954
+ msgid "words"
955
+ msgstr ""
956
+
957
+ #: ../views/form.php:63
958
+ msgid "Display post excerpt"
959
+ msgstr ""
960
+
961
+ #: ../views/form.php:66
962
+ msgid "Keep text format and links"
963
+ msgstr ""
964
+
965
+ #: ../views/form.php:67
966
+ msgid "Excerpt length"
967
+ msgstr ""
968
+
969
+ #: ../views/form.php:73
970
+ msgid "Display post thumbnail"
971
+ msgstr ""
972
+
973
+ #: ../views/form.php:76
974
+ msgid "Width"
975
+ msgstr ""
976
+
977
+ #: ../views/form.php:77 ../views/form.php:80
978
+ msgid "px"
979
+ msgstr ""
980
+
981
+ #: ../views/form.php:79
982
+ msgid "Height"
983
+ msgstr ""
984
+
985
+ #: ../views/form.php:85
986
+ msgid "Stats Tag settings"
987
+ msgstr ""
988
+
989
+ #: ../views/form.php:87
990
+ msgid "Display comment count"
991
+ msgstr ""
992
+
993
+ #: ../views/form.php:89
994
+ msgid "Display views"
995
+ msgstr ""
996
+
997
+ #: ../views/form.php:91
998
+ msgid "Display author"
999
+ msgstr ""
1000
+
1001
+ #: ../views/form.php:93
1002
+ msgid "Display date"
1003
+ msgstr ""
1004
+
1005
+ #: ../views/form.php:96
1006
+ msgid "Date Format"
1007
+ msgstr ""
1008
+
1009
+ #: ../views/form.php:98
1010
+ msgid "Wordpress Date Format"
1011
+ msgstr ""
1012
+
1013
+ #: ../views/form.php:105
1014
+ msgid "Display category"
1015
+ msgstr ""
1016
+
1017
+ #: ../views/form.php:109
1018
+ msgid "HTML Markup settings"
1019
+ msgstr ""
1020
+
1021
+ #: ../views/form.php:111
1022
+ msgid "Use custom HTML Markup"
1023
+ msgstr ""
1024
+
1025
+ #: ../views/form.php:114
1026
+ msgid "Before / after title"
1027
+ msgstr ""
1028
+
1029
+ #: ../views/form.php:117
1030
+ msgid "Before / after Popular Posts"
1031
+ msgstr ""
1032
+
1033
+ #: ../views/form.php:120
1034
+ msgid "Post HTML Markup"
1035
+ msgstr ""
1036
+
1037
+ #: ../wordpress-popular-posts.php:269
1038
+ msgid "The most Popular Posts on your blog."
1039
+ msgstr ""
1040
+
1041
+ #: ../wordpress-popular-posts.php:410
1042
+ msgid ""
1043
+ "Error: cannot ajaxify Wordpress Popular Posts on this theme. It's missing "
1044
+ "the <em>id</em> attribute on before_widget (see <a href=\"http://codex."
1045
+ "wordpress.org/Function_Reference/register_sidebar\" target=\"_blank\" rel="
1046
+ "\"nofollow\">register_sidebar</a> for more)."
1047
+ msgstr ""
1048
+
1049
+ #: ../wordpress-popular-posts.php:636
1050
+ msgid "Upload"
1051
+ msgstr ""
1052
+
1053
+ #: ../wordpress-popular-posts.php:1003
1054
+ #, php-format
1055
+ msgid ""
1056
+ "Your PHP installation is too old. Wordpress Popular Posts requires at least "
1057
+ "PHP version %1$s to function correctly. Please contact your hosting provider "
1058
+ "and ask them to upgrade PHP to %1$s or higher."
1059
+ msgstr ""
1060
+
1061
+ #: ../wordpress-popular-posts.php:1010
1062
+ #, php-format
1063
+ msgid ""
1064
+ "Your Wordpress version is too old. Wordpress Popular Posts requires at least "
1065
+ "Wordpress version %1$s to function correctly. Please update your blog via "
1066
+ "Dashboard &gt; Update."
1067
+ msgstr ""
1068
+
1069
+ #: ../wordpress-popular-posts.php:1035
1070
+ #, php-format
1071
+ msgid ""
1072
+ "<div class=\"error\"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</"
1073
+ "strong>.</p></div>"
1074
+ msgstr ""
1075
+
1076
+ #: ../wordpress-popular-posts.php:1095
1077
+ msgid "Success! The cache table has been cleared!"
1078
+ msgstr ""
1079
+
1080
+ #: ../wordpress-popular-posts.php:1097
1081
+ msgid "Error: cache table does not exist."
1082
+ msgstr ""
1083
+
1084
+ #: ../wordpress-popular-posts.php:1104
1085
+ msgid "Success! All data have been cleared!"
1086
+ msgstr ""
1087
+
1088
+ #: ../wordpress-popular-posts.php:1106
1089
+ msgid "Error: one or both data tables are missing."
1090
+ msgstr ""
1091
+
1092
+ #: ../wordpress-popular-posts.php:1109
1093
+ msgid "Invalid action."
1094
+ msgstr ""
1095
+
1096
+ #: ../wordpress-popular-posts.php:1112
1097
+ msgid ""
1098
+ "Sorry, you do not have enough permissions to do this. Please contact the "
1099
+ "site administrator for support."
1100
+ msgstr ""
1101
+
1102
+ #: ../wordpress-popular-posts.php:1629
1103
+ msgid "Sorry. No data so far."
1104
+ msgstr ""
1105
+
1106
+ #: ../wordpress-popular-posts.php:2101
1107
+ #, php-format
1108
+ msgid "1 comment"
1109
+ msgid_plural "%s comments"
1110
+ msgstr[0] ""
1111
+ msgstr[1] ""
1112
+
1113
+ #: ../wordpress-popular-posts.php:2113
1114
+ #, php-format
1115
+ msgid "1 view per day"
1116
+ msgid_plural "%s views per day"
1117
+ msgstr[0] ""
1118
+ msgstr[1] ""
1119
+
1120
+ #: ../wordpress-popular-posts.php:2119
1121
+ #, php-format
1122
+ msgid "1 view"
1123
+ msgid_plural "%s views"
1124
+ msgstr[0] ""
1125
+ msgstr[1] ""
1126
+
1127
+ #: ../wordpress-popular-posts.php:2131
1128
+ #, php-format
1129
+ msgid "by %s"
1130
+ msgstr ""
1131
+
1132
+ #: ../wordpress-popular-posts.php:2137
1133
+ #, php-format
1134
+ msgid "posted on %s"
1135
+ msgstr ""
1136
+
1137
+ #: ../wordpress-popular-posts.php:2145
1138
+ #, php-format
1139
+ msgid "under %s"
1140
+ msgstr ""
readme.md DELETED
@@ -1,465 +0,0 @@
1
- # Wordpress Popular Posts
2
-
3
- A highly customizable Wordpress widget to display the most popular posts on your blog.
4
-
5
- ----
6
- ## Table of contents
7
-
8
- * [Description](https://github.com/cabrerahector/wordpress-popular-posts#description)
9
- * [Features](https://github.com/cabrerahector/wordpress-popular-posts#features)
10
- * [Requirements](https://github.com/cabrerahector/wordpress-popular-posts#requirements)
11
- * [Installation](https://github.com/cabrerahector/wordpress-popular-posts#installation)
12
- * [Usage](https://github.com/cabrerahector/wordpress-popular-posts#usage)
13
- * [Frequently asked questions](https://github.com/cabrerahector/wordpress-popular-posts#frequently-asked-questions)
14
- * [Support](https://github.com/cabrerahector/wordpress-popular-posts#support)
15
- * [Changelog](https://github.com/cabrerahector/wordpress-popular-posts#changelog)
16
- * [Contributing](https://github.com/cabrerahector/wordpress-popular-posts#contributing)
17
- * [License](https://github.com/cabrerahector/wordpress-popular-posts#license)
18
-
19
-
20
- ## Description
21
-
22
- Wordpress Popular Posts (from now on, just *WPP*) is a [plugin](http://codex.wordpress.org/Plugins) to showcase the most commented / viewed entries on your [Wordpress](http://wordpress.org/) powered blog/site.
23
-
24
-
25
- ## Features
26
-
27
- * **Multi-widget capable**. That is, you can have several widgets of Wordpress Popular Posts on your blog - each with its own settings!
28
- * **Time Range** - list those posts of your blog that have been the most popular ones within a specific time range (eg. last 24 hours, last 7 days, last 30 days, etc.)!
29
- * **Custom Post-type support**. Wanna show other stuff than just posts and pages?
30
- * Display a **thumbnail** of your posts! (*see [technical requirements](https://github.com/cabrerahector/wordpress-popular-posts#im-unable-to-activate-the-display-post-thumbnail-option-why) *).
31
- * Use **your own layout**! Control how your most popular posts are shown on your theme. *Updated! See [changelog](https://github.com/cabrerahector/wordpress-popular-posts#changelog) for more!*
32
- * Check the **statistics** on your most popular posts from wp-admin.
33
- * Order your popular list by comments, views (default) or average views per day!
34
- * **Shortcode support** - use the [wpp] shortcode to showcase your most popular posts on pages, too! For usage and instructions, please refer to the [usage section](https://github.com/cabrerahector/wordpress-popular-posts#usage).
35
- * **Template tags** - Don't feel like using widgets? No problem! You can still embed your most popular entries on your theme using the `wpp_get_mostpopular()` template tag. Additionally, the `wpp_gets_views()` template tag allows you to retrieve the views count for a particular post. For usage and instructions, please refer to the [usage section](https://github.com/cabrerahector/wordpress-popular-posts#usage).
36
- * **Localizable** to your own language (*See [here](https://github.com/cabrerahector/wordpress-popular-posts#i-want-to-translate-your-plugin-into-my-language--help-you-update-a-translation-what-do-i-need-to-do) for more info*).
37
- * **[WP-PostRatings](http://wordpress.org/extend/plugins/wp-postratings/) support**. Show your visitors how your readers are rating your posts!
38
- * **Automatic maintenance** - Wordpress Popular Posts will wipe out from its cache automatically all those posts that have not been viewed more than 30 days from the current date, keeping just the popular ones on the list! This ensures that your cache table will remain as compact as possible! (You can also clear it manually if you like, [look here for instructions](https://github.com/cabrerahector/wordpress-popular-posts#i-would-like-to-clear-all-data-gathered-by-wordpress-popular-posts-and-start-over-how-can-i-do-that)!).
39
-
40
-
41
- ## Requirements
42
-
43
- * Wordpress 3.3 or above.
44
- * PHP 5.2+ or above.
45
- * Either the [ImageMagik](http://www.php.net/manual/en/intro.imagick.php) or [GD](http://www.php.net/manual/en/intro.image.php) library installed and enabled on your server (not really required, but needed to create thumbnails).
46
-
47
-
48
- ## Installation
49
-
50
- 1. [Download the plugin](http://wordpress.org/extend/plugins/wordpress-popular-posts/) and extract its contents.
51
- 2. Upload the `wordpress-popular-posts` folder to the `/wp-content/plugins/` directory.
52
- 3. Activate **Wordpress Popular Posts** plugin through the 'Plugins' menu in WordPress.
53
- 4. In your admin console, go to Appeareance > Widgets, drag the Wordpress Popular Posts widget to wherever you want it to be and click on Save.
54
- 5. (optional) Go to Appeareance > Editor. On "Theme Files", click on `header.php` and make sure that the `<?php wp_head(); ?>` tag is present (should be right before the closing `</head>` tag).
55
-
56
-
57
- ## Usage
58
-
59
- WPP's main feature is the ability to use it as a widget, which is ideal for themes that supports this feature since it can be used on any of your sidebars / footer. However, this plugin can also be used via shortcode or using a WPP's custom template tag:
60
-
61
- ###SHORTCODE###
62
-
63
- If you want to use Wordpress Popular Posts on your pages (a "Hall of Fame" page, for example) please use the shortcode `[wpp]`. By default, it'll list the **most viewed posts** (up to 10) in the last 24 hours. However, you can change the output and the time range by passing parameters to the shortcode (**optional**). You can find the full list of available parameters via *wp-admin > Settings > Wordpress Popular Posts > FAQ*.
64
-
65
- **Example:**
66
-
67
- `[wpp range=daily stats_views=1 order_by=views]`
68
-
69
-
70
- ###TEMPLATE TAGS###
71
-
72
- =`wpp_get_mostpopular`=
73
-
74
- With the `wpp_get_mostpopular` template tag you can embed the most popular posts of your blog on your site's sidebar without using a widget. Optionally, you can pass some parameters to this function so you can customize your popular posts (for a complete list of parameters, please go to *wp-admin > Settings > Wordpress Popular Posts > FAQ*).
75
-
76
- **Warning:** other users have reported that using this template tag on PHP widgets such as [Linkable Title HTML and PHP widget](http://wordpress.org/extend/plugins/linkable-title-html-and-php-widget/) and others might not render the PHP code correctly, making the `wpp_get_mostpopular` template tag fail and return "Sorry, no data so far". I suggest using it directly on your theme's sidebar.php file to avoid issues.
77
-
78
-
79
- **Usage:**
80
-
81
- Without any parameters, it will list the **most viewed posts** (up to 10) in the last 24 hours:
82
-
83
- `<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular(); ?>`
84
-
85
-
86
- Using parameters:
87
-
88
- `<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&order_by=comments"); ?>`
89
-
90
- =`wpp_get_views()`=
91
-
92
- The `wpp_get_views` template tag retrieves the views count of a single post/page. It accepts two parameters: the *post ID* (required), and *time range* (optional). If *time range* isn't provided the function will retrieve the total amount of views, otherwise it'll return the number of views received within the selected time range.
93
-
94
- **Usage:**
95
-
96
- `<?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?>`
97
- `<?php if (function_exists('wpp_get_views')) { echo wpp_get_views( 15, 'weekly' ); } ?>`
98
-
99
-
100
- ## Frequently asked questions
101
-
102
- #### I need help with your plugin! What should I do? ####
103
- First thing to do is read the [installation](https://github.com/cabrerahector/wordpress-popular-posts#installation) and [usage](https://github.com/cabrerahector/wordpress-popular-posts#usage) sections (and this section as well) as they should address most of the questions you might have about this plugin (and even more info can be found via *wp-admin > Settings > Wordpress Popular Posts > FAQ*). If you're having problems with WPP, my first suggestion would be try disabling all other plugins and then re-enable each one to make sure there are no conflicts. Also, try switching to a different theme and see if the issue persists. Checking the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) and the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) is also a good idea as chances are that someone else has already posted something about it. **Remember:** *read first*. It'll save you (and me) time.
104
-
105
- ### -FUNCTIONALITY- ###
106
-
107
- #### Why Wordpress Popular Posts? ####
108
- The idea of creating this plugin came from the need to know how many people were actually reading each post. Unfortunately, Wordpress doesn't keep views count of your posts anywhere. Because of that, and since I didn't find anything that would suit my needs, I ended up creating Wordpress Popular Posts: a highly customizable, easy-to-use Wordpress plugin with the ability to keep track of what's popular to showcase it to the visitors!
109
-
110
- #### How does the plugin count views / calculate the popularity of posts? ####
111
- Since Wordpress doesn't store views count (only comments count), this plugin stores that info for you. When you sort your popular posts by *views*, Wordpress Popular Posts will retrieve the views count it started caching from the time you first installed this plugin, and then rank the top posts according to the settings you have configured in the plugin. Wordpress Popular Posts can also rank the popularity of your posts based on comments count as well.
112
-
113
- #### I'm getting "Sorry. No data so far". What's up with that? ####
114
- There are a number of reasons that might explain why you are seeing this message: no one has seen or commented on your posts/pages since Wordpress Popular Posts activation, you should give it some time; your current theme does not have the [wp_head()](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks) tag in its &lt;head&gt; section, required by my plugin to keep track of what your visitors are viewing on your site; Wordpress Popular Posts was unable to create the necessary DB tables to work, make sure your hosting has granted you permission to create / update / modify tables in the database.
115
-
116
- #### My current theme does not support widgets (booooo!). Can I show my most popular posts in any other way? ####
117
- Yes, there are other choices: you can use the [wpp shortcode](https://github.com/cabrerahector/wordpress-popular-posts#shortcode), which allows you to embed your popular listing directly in the content of your posts and/or pages; or you can use the [`wpp_get_mostpopular()` template tag](https://github.com/cabrerahector/wordpress-popular-posts#template-tags). Both options are highly customizable via parameters, check them out via *wp-admin > Settings > Wordpress Popular Posts > FAQ*.
118
-
119
- #### Wordpress Popular Posts is not counting my own visits, why? ####
120
- By default, Wordpress Popular Posts won't count views generated by logged in users. If your blog requires readers to be logged in to access its contents (or just want WPP to count your own views) please go to *wp-admin > Settings > Wordpress Popular Posts > Tools* and set *Log views from* to *Everyone*.
121
-
122
- #### I'm unable to activate the "Display post thumbnail" option. Why? ####
123
- Requirements have changed as of Wordpress Popular Posts 2.3.3. **PHP 5.2+** and **Wordpress 3.0.0** are the minimum requirements to enable thumbnails. Wordpress Popular Posts 2.3.2 and below require **PHP 4.3 or higher**. Also, the **GD library** must be installed and [enabled by your host](http://wordpress.org/support/topic/289778#post-1366038).
124
-
125
- #### How does Wordpress Popular Posts pick my posts' thumbnails? ####
126
- Wordpress Popular Posts has three different thumbnail options to choose from available at *wp-admin > Settings > Wordpress Popular Posts > Tools*: *Featured Image* (default), *First image on post*, or [*custom field*](http://codex.wordpress.org/Custom_Fields). If no images are found, a "No thumbnail" image will be used instead.
127
-
128
- #### I'm seeing a "No thumbnail" image, where's my post thumbnail? ####
129
- Make sure you have assigned one to your posts (see previous question).
130
-
131
- #### Is there any way I can change that ugly "No thumbnail" image for one of my own? ####
132
- Fortunately, yes. Go to *wp-admin > Settings > Wordpress Popular Posts > Tools* and check under *Thumbnail source*. Ideally, the thumbnail you're going to use should be set already with your desired width and height - however, the uploader will give you other size options as configured by your current theme.
133
-
134
- #### Where can I find the list of parameters accepted by the wpp_get_mostpopular() template tag / [wpp] shortcode? ####
135
- You can find it via *wp-admin > Settings > Wordpress Popular Posts > FAQ*, under the section *"List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"*.
136
-
137
- #### I want to have a popular list of my custom post type. How can I do that? ####
138
- Simply add your custom post type to the Post Type field in the widget (or if you're using the template tag / shortcode, use the *post_type* parameter).
139
-
140
- #### How can I use my own HTML markup with your plugin? ####
141
- Wordpress Popular Posts is flexible enough to let you use your own HTML markup. If you're using the widget, simply activate the *Use custom HTML markup* option and set your desired configuration and *Content Tags* (see *wp-admin > Settings > Wordpress Popular Posts > FAQ* under *List of parameters accepted by `wpp_get_mostpopular()` and the [wpp] shortcode* for more); or if you're using the template tag / shortcode, use the *wpp_start*, *wpp_end* and *post_html* parameters (see details in the section mentioned before).
142
-
143
- #### I would like to clear all data gathered by Wordpress Popular Posts and start over. How can I do that? ####
144
- If you go to *wp-admin > Settings > Wordpress Popular Posts > Tools*, you'll find two buttons that should do what you need: **Clear cache** and **Clear all data**. The first one just wipes out what's in cache (Last 24 hours, Last 7 Days, Last 30 Days), keeping the historical data (All-time) intact. The latter wipes out everything from Wordpress Popular Posts data tables - even the historical data. Note that this **cannot be undone** so proceed with caution.
145
-
146
- #### Can Wordpress Popular Posts run on Wordpress Multisite? ####
147
- While **it's not officially supported**, users have reported that my plugin runs fine on Wordpress Multisite. According to what they have said, you need to install this plugin using the *Network Activation* feature. Note that there are features that *might* not work as expected (eg. thumbnails) as I have never tested this plugin under WP Multisite.
148
-
149
- ### -CSS AND STYLESHEETS- ###
150
-
151
- #### Does your plugin include any CSS stylesheets? ####
152
- Yes, *but* there are no predefined styles (well, almost). Wordpress Popular Posts will first look into your current theme's folder for the wpp.css file and use it if found so that any custom CSS styles made by you are not overwritten, otherwise will use the one bundled with the plugin.
153
-
154
- #### Each time Wordpress Popular Posts is updated the wpp.css stylesheet gets reset and I lose all changes I made to it. How can I keep my custom CSS? ####
155
- Copy your modified wpp.css file to your theme's folder, otherwise my plugin will use the one bundled with it by default.
156
-
157
- #### How can I style my list to look like [insert your desired look here]? ####
158
- Since this plugin does not include any predefined designs, it's up to you to style your most popular posts list as you like. You might need to hire someone for this if you don't know HTML/CSS, though.
159
-
160
- #### I want to remove WPP's stylesheet. How can I do that? ####
161
- Simply add the following code to your theme's functions.php file: `<?php wp_dequeue_style('wordpress-popular-posts') ?>` (or disable the stylesheet via *wp-admin > Settings > Wordpress Popular Posts > Tools*).
162
-
163
- ### -OTHER STUFF THAT YOU (PROBABLY) WANT TO KNOW- ###
164
-
165
- #### I want to translate your plugin into my language / help you update a translation. What do I need to do? ####
166
- There's a PO file included with Wordpress Popular Posts. If your language is not already supported by my plugin, you can use a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) to translate all texts into your language. If you want to, you can send me your resulting PO and MO files to *hcabrerab at gmail dot com* so I can include them on the next release of my plugin (and would be really grateful if you can also help keep it updated on future releases).
167
-
168
- #### I want your plugin to have X or Y functionality. Can it be done? ####
169
- If it fits the nature of my plugin and it sounds like something others would like to have, there's a pretty good chance that I will implement it (and if you actually provide some sample code with useful comments, much better hehe).
170
-
171
- #### Your plugin seems to conflict with my current Theme / this other Plugin. Can you please help me? ####
172
- If the theme/plugin you're talking about is a free one and it's available to the public, sure I can try and take a look into it. Premium themes/plugins are out of discussion, though (unless you're willing to buy them for me so I can test them, and even that way I won't provide any guarantees since I'm doing this for free :P).
173
-
174
- #### ETA for your next release? ####
175
- Updates will come depending on my work projects (I'm a full-time web developer) and the amount of time I have on my hands. Quick releases will happen only when/if critical bugs are spotted.
176
-
177
- #### I posted a question at the Support Forum and got no answer from the developer. Why is that? ####
178
- Chances are that your question has been already answered either at the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts), the [Installation section](https://github.com/cabrerahector/wordpress-popular-posts#installation), or here in the FAQ section. So, since you chose not to read these sections I will simply ignore your posts as well. It could also happen that I'm just busy at the moment and haven't been able to read your post yet, so please be patient (in the meanwhile, search the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) and the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) for an answer).
179
-
180
- #### Is there any other way to contact you? ####
181
- For the time being, the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) is the only way to contact me. Please do not use my email to get in touch with me *unless I authorize you to do so*.
182
-
183
-
184
- ## Support
185
-
186
- Before submitting an issue, please:
187
-
188
- 1. Read the documentation, it's there for a reason. Links: [Installation](https://github.com/cabrerahector/wordpress-popular-posts#installation) | [Frequently asked questions](https://github.com/cabrerahector/wordpress-popular-posts#frequently-asked-questions).
189
- 2. If the bug actually exists, check the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) to make sure there's no existing issue reporting the bug you just found.
190
-
191
- When submitting an issue, please answer the following questions:
192
-
193
- 1. Wordpress version?
194
- 2. WPP version?
195
- 3. Are you using the widget or the shortcode/template tag?
196
- 4. Describe what the issue is (include steps to reproduce it, if necessary).
197
-
198
-
199
- ## Changelog
200
-
201
- #### 2.3.7 ####
202
- * Fixed category excluding/including bug.
203
-
204
- #### 2.3.6 ####
205
- * Added ability to set links' target attribute (thanks, Pedro!).
206
- * Added sanitization for external thumbnail filenames to avoid weird characters.
207
- * Added a new content tag, {score}, to display the post rating as a simple integer (thanks, Artem!).
208
- * Added japanese and persian translations (thanks kjmtsh and Tatar).
209
- * Added wpp-list class to the UL tag, this should help style the popular list better.
210
- * Added plugin version to wp_enqueue_* calls.
211
- * Updated thumbnail feature to handle external images.
212
- * Updated wpp.css with text floating next to thumbnails - this sets a predefined style for the plugin for the first time.
213
- * Removed unnecesary wpp-thumbnail class from link tag, the image already has it.
214
- * Fixed typo in wpp_update_warning. From v2.3.3, minimun Wordpress version required is 3.3.
215
- * Fixed minor bugs.
216
-
217
- #### 2.3.5 ####
218
-
219
- * Fixed minor bugs on admin page.
220
- * Fixed query bug preventing some results from being listed.
221
- * Added a check to avoid using the terms tables if not necessary (eg. listing pages only).
222
-
223
- #### 2.3.4 ####
224
-
225
- * Added ability to shorten title/excerpt by number of words.
226
- * Updated excerpt code, don't show it if empty.
227
- * Added ability to set post_type on Stats page.
228
- * Added check for `is_preview()` to avoid updating views count when editing and previewing a post / page (thanks, Partisk!).
229
- * Added ability to change default thumbnail via admin (thanks for the suggestion, Martin!).
230
- * Fixed bug in query when getting popular posts from category returning no results if it didn't have any post on the top viewed / commented.
231
- * Added function for better handling changes/updates in settings.
232
- * Updated `get_summary()` to use API functions instead querying directly to DB.
233
- * Updated `wpp_print_stylesheet()` to get the wpp.css file from the right path (thanks, Martin!).
234
- * Moved translations to lang folder.
235
-
236
- #### 2.3.3 ####
237
-
238
- * Minimum Wordpress version requirement changed to 3.3.
239
- * Minimum PHP version requirement changed to 5.2.0.
240
- * Improved Custom HTML feature! It's more flexible now + new Content Tags added: {url}, {text_title}, {author}, {category}, {views}, {comments}!.
241
- * Added ability to exclude posts by ID (similar to the category filter).
242
- * Added ability to enable / disable logging visits from logged-in users.
243
- * Added Category to the Stats Tag settings options.
244
- * Added range parameter to wpp_get_views().
245
- * Added numeric formatting to the `wpp_get_views()` function.
246
- * When enabling the Display author option, author's name will link to his/her profile page.
247
- * Fixed bad numeric formatting in Stats showing truncated views count.
248
- * Fixed AJAX update feature (finally!). WPP works properly now when using caching plugins!
249
- * Fixed WP Post Ratings not displaying on the list (and while it works, there are errors coming from the WP Post Ratings plugin itself: http://wordpress.org/support/topic/plugin-wp-postratings-undefined-indexes).
250
- * Improved database queries for speed.
251
- * Fixed bug preventing PostRating to show.
252
- * Removed Timthumb (again) in favor of the updated `get_img()` function based on Victor Teixeira's vt_resize function.
253
- * Cron now removes from cache all posts that have been trashed or eliminated.
254
- * Added proper numeric formatting for views / comments count. (Thank you for the tip, dimagsv!)
255
- * Added "the title filter fix" that affected some themes. (Thank you, jeremyers1!)
256
- * Added dutch translation. (Thank you, Jeroen!)
257
- * Added german translation. (Thank you, Martin!)
258
-
259
- #### 2.3.2 ####
260
-
261
- * The ability to enable / disable the Ajax Update has been removed. It introduced a random bug that doubled the views count of some posts / pages. Will be added back when a fix is ready.
262
- * Fixed a bug preventing the cat parameter from excluding categories (widget was not affected by this).
263
- * FAQ section (Settings / Wordpress Popular Posts / FAQ) updated.
264
- * Added french translation. (Thanks, Le Raconteur!)
265
-
266
- #### 2.3.1 ####
267
-
268
- * Fixed bug caused by the sorter function when there are multiple instances of the widget.
269
- * Added check for new options in the get_popular_posts function.
270
- * Added plugin version check to handle upgrades.
271
- * Fixed bug preventing some site from fetching images from subdomains or external sites.
272
- * Fixed bug that prevented excluding more than one category using the Category filter.
273
-
274
- #### 2.3.0 ####
275
-
276
- * Merged all pages into Settings/Wordpress Popular Posts.
277
- * Added new options to the Wordpress Popular Posts Stats dashboard.
278
- * Added check for static homepages to avoid printing ajax script there.
279
- * Database queries re-built from scratch for optimization.
280
- * Added the ability to remove / enable plugin's stylesheet from the admin.
281
- * Added the ability to enable / disable ajax update from the admin.
282
- * Added the ability to set thumbnail's source from the admin.
283
- * Timthumb support re-added.
284
- * Added support for custom post type (Thanks, Brad Williams!).
285
- * Improved the category filtering feature.
286
- * Added the ability to get popular posts from given author IDs.
287
-
288
- #### 2.2.1 ####
289
-
290
- * Quick update to fix error with All-time combined with views breaking the plugin.
291
-
292
- #### 2.2.0 ####
293
-
294
- * Featured Image is generated for the user automatically if not present and if there's an image attached to the post.
295
- * Range feature Today option changed. Replaced with Last 24 hours.
296
- * Category exclusion query simplified. Thanks to almergabor for the suggestion!
297
- * Fixed bug caused by selecting Avg. Views and All-Time that prevented WPP from getting any data from the BD. Thanks Janseo!
298
- * Updated the get_summary function to strip out shortcodes from excerpt as well.
299
- * Fixed bug in the truncate function affecting accented characters. Thanks r3df!
300
- * Fixed bug keeping db tables from being created. Thanks northlake!
301
- * Fixed bug on the shortcode which was showing pages even if turned off. Thanks danpkraus!
302
-
303
- #### 2.1.7 ####
304
-
305
- * Added stylesheet detection. If wpp.css is on theme's folder, will use that instead the one bundled with the plugin.
306
-
307
- #### 2.1.6 ####
308
-
309
- * Added DB character set and collate detection.
310
- * Fixed excerpt translation issue when the qTrans plugin is present. Thanks r3df!.
311
- * Fixed thumbnail dimensions issue.
312
- * Fixed widget page link.
313
- * Fixed widget title encoding bug.
314
- * Fixed deprecated errors on load_plugin_textdomain and add_submenu_page.
315
-
316
- #### 2.1.5 ####
317
-
318
- * Dropped TimThumb support in favor of Wordpress's Featured Image function.
319
-
320
- #### 2.1.4 ####
321
-
322
- * Added italian localization. Thanks Gianni!
323
- * Added charset detection.
324
- * Fixed bug preventing HTML View / Visual View on Edit Post page from working.
325
-
326
- #### 2.1.1 ####
327
- * Fixed bug preventing widget title from being saved.
328
- * Fixed bug affecting blogs with Wordpress installed somewhere else than domain's root.
329
- * Added htmlentities to post titles.
330
- * Added default thumbnail image if none is found in the post.
331
-
332
- #### 2.1.0 ####
333
-
334
- * Title special HTML entities bug fixed.
335
- * Thumbnail feature improved! Wordpress Popular Posts now supports The Post Thumbnail feature. You can choose whether to select your own thumbnails, or let Wordpress Popular Posts create them for you!
336
- * Shortcode bug fixed. Thanks Krokkodriljo!
337
- * Category exclusion feature improved. Thanks raamdev!
338
-
339
- #### 2.0.3 ####
340
-
341
- * Added a Statistics Dashboard to Admin panel so users can view what's popular directly from there.
342
- * Users can now select a different date format.
343
- * `get_mostpopular()` function deprecated. Replaced with `wpp_get_mostpopular()`.
344
- * Cache maintenance bug fixed.
345
- * Several UI enhancements were applied to this version.
346
-
347
- #### 2.0.2 ####
348
-
349
- * "Keep text format and links" feature introduced. If selected, formatting tags and hyperlinks won't be removed from excerpt.
350
- * Post title excerpt html entities bug fixed. It was causing the excerpt function to display more characters than the requested by user.
351
- * Several shortcode bugs fixed (range, order_by, do_pattern, pattern_form were not working as expected).
352
-
353
- #### 2.0.1 ####
354
-
355
- * Post title excerpt now includes html entities. Characters like `���` should display properly now.
356
- * Post excerpt has been improved. Now it supports the following HTML tags: a, b, i, strong, em.
357
- * Template tag `wpp_get_views()` added. Retrieves the views count of a single post.
358
- * Template tag `get_mostpopular()` re-added. Parameter support included.
359
- * Shortcode bug fixed (range was always "daily" no matter what option was being selected by the user).
360
-
361
- #### 2.0.0 ####
362
-
363
- * Plugin rewritten to support Multi-Widget capabilities
364
- * Cache table implemented
365
- * Shortcode support added
366
- * Category exclusion feature added
367
- * Ajax update added - plugin is now compatible with caching plugins such as WP Super Cache
368
- * Thumbnail feature improved - some bugs were fixed, too
369
- * Maintenance page added
370
-
371
- #### 1.5.1 ####
372
-
373
- * Widget bug fixed
374
-
375
- #### 1.5.0 ####
376
-
377
- * Database improvements implemented
378
- * WP-PostRatings support added
379
- * Thumbnail feature added
380
-
381
- #### 1.4.6 ####
382
-
383
- * Bug in get_mostpopular function affected comments on single.php
384
- * "Show pageviews" option bug fixed
385
- * Added "content formatting tags" functionality
386
-
387
- #### 1.4.5 ####
388
-
389
- * Added new localizable strings
390
- * Fixed Admin page coding bug that was affecting the styling of WPP
391
-
392
- #### 1.4.4 ####
393
-
394
- * HTML Markup customizer added
395
- * Removed some unnessesary files
396
-
397
- #### 1.4.3 ####
398
-
399
- * Korean and Swedish are supported
400
-
401
- #### 1.4.2 ####
402
-
403
- * Code snippet bug found
404
-
405
- #### 1.4.1 ####
406
-
407
- * Found database bug affecting only new installations
408
-
409
- #### 1.4 ####
410
-
411
- * Massive code enhancement
412
- * CSS bugs fixed
413
- * Features added: Time Range; author and date (stats tag); separate settings for Widget and Code Snippet
414
-
415
- #### 1.3.2 ####
416
-
417
- * Permalink bug fixed
418
-
419
- #### 1.3.1 ####
420
-
421
- * Admin panel styling bug fixed
422
-
423
- #### 1.3 ####
424
-
425
- * Added an Admin page for a better management of the plugin
426
- * New sorting options (sort posts by comment count, by pageviews, or by average daily views) added
427
-
428
- #### 1.2 ####
429
-
430
- * Added extra functionalities to Wordpress Popular Post plugin core
431
-
432
- #### 1.1 ####
433
-
434
- * Fixed comment count bug
435
-
436
- #### 1.0 ####
437
-
438
- * Public release
439
-
440
-
441
- ## Contributing
442
-
443
- * If you have any ideas/suggestions/bug reports, and if there's not an issue filed for it already (see [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues), please [create an issue](https://github.com/cabrerahector/wordpress-popular-posts/issues/new) so I can keep track of it.
444
- * Developers can send [pull requests](https://help.github.com/articles/using-pull-requests) to suggest fixes / improvements to the source.
445
- * Want to translate WPP to your language or update a current translation? Check if it's [already supported](https://github.com/cabrerahector/wordpress-popular-posts/tree/master/lang) or download [this file](https://github.com/cabrerahector/wordpress-popular-posts/blob/master/lang/wordpress-popular-posts.po) to translate the strings (see the [FAQ](https://github.com/cabrerahector/wordpress-popular-posts#frequently-asked-questions) section under *I want to translate your plugin into my language / help you update a translation. What do I need to do?* for more).
446
-
447
-
448
- ## License
449
-
450
- [GNU General Public License version 2](http://www.gnu.org/licenses/gpl-2.0.html)
451
-
452
- Copyright (C) 2013 H�ctor Cabrera - http://cabrerahector.com
453
-
454
- The Wordpress Popular Posts plugin is free software; you can redistribute it and/or
455
- modify it under the terms of the GNU General Public License
456
- as published by the Free Software Foundation; either version 2
457
- of the License, or (at your option) any later version.
458
-
459
- The Wordpress Popular Posts plugin is distributed in the hope that it will be useful,
460
- but WITHOUT ANY WARRANTY; without even the implied warranty of
461
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
462
- GNU General Public License for more details.
463
-
464
- You should have received a copy of the GNU General Public License
465
- along with the Wordpress Popular Posts plugin; if not, see [http://www.gnu.org/licenses](http://www.gnu.org/licenses/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,14 +1,14 @@
1
  === Wordpress Popular Posts ===
2
  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&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
4
- Tags: popular, posts, popular posts, widget, seo, wordpress, custom post type
5
- Requires at least: 3.3
6
- Tested up to: 3.6
7
- Stable tag: 2.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- With Wordpress Popular Posts, you can show your visitors what are the most popular entries on your blog.
12
 
13
  == Description ==
14
 
@@ -19,24 +19,17 @@ Wordpress Popular Posts is a highly customizable widget that displays the most p
19
  * **Time Range** - list those posts of your blog that have been the most popular ones within a specific time range (eg. last 24 hours, last 7 days, last 30 days, etc.)!
20
  * **Custom Post-type support**. Wanna show other stuff than just posts and pages?
21
  * Display a **thumbnail** of your posts! (*see the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for technical requirements*).
22
- * Use **your own layout**! Control how your most popular posts are shown on your theme. *Updated! See [changelog](http://wordpress.org/extend/plugins/wordpress-popular-posts/changelog/) for more!*
23
- * Check the **statistics** on your most popular posts from wp-admin.
 
24
 
25
  = Other Features =
 
26
  * Order your popular list by comments, views (default) or average views per day!
27
  * **Shortcode support** - use the [wpp] shortcode to showcase your most popular posts on pages, too! For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
28
  * **Template tags** - Don't feel like using widgets? No problem! You can still embed your most popular entries on your theme using the *wpp_get_mostpopular()* template tag. Additionally, the *wpp_gets_views()* template tag allows you to retrieve the views count for a particular post. For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
29
  * **Localizable** to your own language (*See the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for more info*).
30
  * **[WP-PostRatings](http://wordpress.org/extend/plugins/wp-postratings/) support**. Show your visitors how your readers are rating your posts!
31
- * **Automatic maintenance** - Wordpress Popular Posts will wipe out from its cache automatically all those posts that have not been viewed more than 30 days from the current date, keeping just the popular ones on the list! This ensures that your cache table will remain as compact as possible! (You can also clear it manually if you like, [look here for instructions](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/)!).
32
-
33
- = Notices =
34
- * Minimum requirements changed: from version 2.3.3 (and on), Wordpress Popular Posts requires **PHP 5.2+** and **Wordpress 3.3** (or greater).
35
- * The custom HTML layout functionality [has changed](http://wordpress.org/extend/plugins/wordpress-popular-posts/changelog/) on v2.3.3! WPP will attempt to use the markup you set on previous versions, but in case it breaks please check the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/) to learn how to set it up again.
36
- * From version 2.0 and on, Wordpress Popular Posts requires Wordpress 2.8 at least in order to function correctly. If you're not running Wordpress 2.8 (or newer) please use [Wordpress Popular Posts v.1.5.1](http://downloads.wordpress.org/plugin/wordpress-popular-posts.1.5.1.zip) instead.
37
- * If you are upgrading from any version prior to Wordpress Popular Posts 1.4.6, please [update to 1.4.6](http://downloads.wordpress.org/plugin/wordpress-popular-posts.1.4.6.zip) first!
38
-
39
- Wordpress Popular Posts is now also on [GitHub](https://github.com/cabrerahector/wordpress-popular-posts)!
40
 
41
  == Installation ==
42
 
@@ -48,56 +41,18 @@ Wordpress Popular Posts is now also on [GitHub](https://github.com/cabrerahector
48
 
49
  That's it!
50
 
51
- = -SHORTCODE- =
52
-
53
- If you want to use Wordpress Popular Posts on your pages (a "Hall of Fame" page, for example) please use the shortcode `[wpp]`. By default, it'll list the **most viewed posts** (up to 10) in the last 24 hours. However, you can change the output and the time range by passing parameters to the shortcode (**optional**). You can find the full list of available parameters via *wp-admin > Settings > Wordpress Popular Posts > FAQ*.
54
-
55
- **Usage:**
56
-
57
- `[wpp]`
58
-
59
- `[wpp attribute='value']`
60
-
61
- Example:
62
-
63
- `[wpp range=daily stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]`
64
-
65
-
66
- = -TEMPLATE TAGS- =
67
-
68
-
69
- ***wpp_get_mostpopular***
70
-
71
- With the **wpp_get_mostpopular** template tag you can embed the most popular posts of your blog on your site's sidebar without using a widget. Optionally, you can pass some parameters to this function so you can customize your popular posts (for a complete list of parameters, please go to *wp-admin > Settings > Wordpress Popular Posts > FAQ*).
72
-
73
- **Warning:** other users have reported that using this template tag on PHP widgets such as [Linkable Title HTML and PHP widget](http://wordpress.org/extend/plugins/linkable-title-html-and-php-widget/) and others might not render the PHP code correctly, making the wpp_get_mostpopular template tag fail and return "Sorry, no data so far". I suggest using it directly on your theme's sidebar.php file to avoid issues.
74
 
 
75
 
76
- **Usage:**
77
-
78
- Without any parameters, it will list the **most viewed posts** (up to 10) in the last 24 hours:
79
-
80
- `<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular(); ?>`
81
-
82
-
83
- Using parameters:
84
-
85
- `<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&order_by=comments"); ?>`
86
-
87
-
88
- ***wpp_get_views()***
89
-
90
- The **wpp_get_views** template tag retrieves the views count of a single post/page. It accepts two parameters: the *post ID* (required), and *time range* (optional). If *time range* isn't provided the function will retrieve the total amount of views, otherwise it'll return the number of views received within the selected time range.
91
-
92
- **Usage:**
93
-
94
- `<?php if (function_exists('wpp_get_views')) { echo wpp_get_views( get_the_ID() ); } ?>`
95
- `<?php if (function_exists('wpp_get_views')) { echo wpp_get_views( 15, 'weekly' ); } ?>`
96
 
97
  == Frequently Asked Questions ==
98
 
99
- = I need help with your plugin! What should I do? =
100
- First thing to do is read both FAQ and [Installation](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/) sections as they should address most of the questions you might have about this plugin (and even more info can be found via *wp-admin > Settings > Wordpress Popular Posts > FAQ*). If you're having problems with WPP, my first suggestion would be try disabling all other plugins and then re-enable each one to make sure there are no conflicts. Also, try switching to a different theme and see if the issue persists. Checking the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) and the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) is also a good idea as chances are that someone else has already posted something about it (and if not, you are always welcome to create a new thread). **Remember:** *read first*. It'll save you (and me) time.
 
 
101
 
102
  = -FUNCTIONALITY- =
103
 
@@ -111,16 +66,16 @@ Since Wordpress doesn't store views count (only comments count), this plugin sto
111
  There are a number of reasons that might explain why you are seeing this message: no one has seen or commented on your posts/pages since Wordpress Popular Posts activation, you should give it some time; your current theme does not have the [wp_head()](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks) tag in its &lt;head&gt; section, required by my plugin to keep track of what your visitors are viewing on your site; Wordpress Popular Posts was unable to create the necessary DB tables to work, make sure your hosting has granted you permission to create / update / modify tables in the database.
112
 
113
  = My current theme does not support widgets (booooo!). Can I show my most popular posts in any other way? =
114
- Yes, there are other choices: you can use the [wpp shortcode](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/), which allows you to embed your popular listing directly in the content of your posts and/or pages; or you can use the [wpp_get_mostpopular() template tag](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/). Both options are highly customizable via parameters, check them out via *wp-admin > Settings > Wordpress Popular Posts > FAQ*.
115
 
116
  = Wordpress Popular Posts is not counting my own visits, why? =
117
  By default, Wordpress Popular Posts won't count views generated by logged in users. If your blog requires readers to be logged in to access its contents (or just want WPP to count your own views) please go to *wp-admin > Settings > Wordpress Popular Posts > Tools* and set *Log views from* to *Everyone*.
118
 
119
  = I'm unable to activate the "Display post thumbnail" option. Why? =
120
- Requirements have changed as of Wordpress Popular Posts 2.3.3. **PHP 5.2+** and **Wordpress 3.0.0** are the minimum requirements to enable thumbnails. Wordpress Popular Posts 2.3.2 and below require **PHP 4.3 or higher**. Also, the **GD library** must be installed and [enabled by your host](http://wordpress.org/support/topic/289778#post-1366038).
121
 
122
  = How does Wordpress Popular Posts pick my posts' thumbnails? =
123
- Wordpress Popular Posts has three different thumbnail options to choose from available at *wp-admin > Settings > Wordpress Popular Posts > Tools*: *Featured Image* (default), *First image on post*, or [*custom field*](http://codex.wordpress.org/Custom_Fields). If no images are found, a "No thumbnail" image will be used instead.
124
 
125
  = I'm seeing a "No thumbnail" image, where's my post thumbnail? =
126
  Make sure you have assigned one to your posts (see previous question).
@@ -129,19 +84,21 @@ Make sure you have assigned one to your posts (see previous question).
129
  Fortunately, yes. Go to *wp-admin > Settings > Wordpress Popular Posts > Tools* and check under *Thumbnail source*. Ideally, the thumbnail you're going to use should be set already with your desired width and height - however, the uploader will give you other size options as configured by your current theme.
130
 
131
  = Where can I find the list of parameters accepted by the wpp_get_mostpopular() template tag / [wpp] shortcode? =
132
- You can find it via *wp-admin > Settings > Wordpress Popular Posts > FAQ*, under the section *"List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode"*.
133
 
134
  = I want to have a popular list of my custom post type. How can I do that? =
135
  Simply add your custom post type to the Post Type field in the widget (or if you're using the template tag / shortcode, use the *post_type* parameter).
136
 
137
  = How can I use my own HTML markup with your plugin? =
138
- Wordpress Popular Posts is flexible enough to let you use your own HTML markup. If you're using the widget, simply activate the *Use custom HTML markup* option and set your desired configuration and *Content Tags* (see *wp-admin > Settings > Wordpress Popular Posts > FAQ* under *List of parameters accepted by wpp_get_mostpopular() and the [wpp] shortcode* for more); or if you're using the template tag / shortcode, use the *wpp_start*, *wpp_end* and *post_html* parameters (see details in the section mentioned before).
 
 
139
 
140
  = I would like to clear all data gathered by Wordpress Popular Posts and start over. How can I do that? =
141
- If you go to *wp-admin > Settings > Wordpress Popular Posts > Tools*, you'll find two buttons that should do what you need: **Clear cache** and **Clear all data**. The first one just wipes out what's in cache (Last 24 hours, Last 7 Days, Last 30 Days), keeping the historical data (All-time) intact. The latter wipes out everything from Wordpress Popular Posts data tables - even the historical data. Note that this **cannot be undone** so proceed with caution.
142
 
143
  = Can Wordpress Popular Posts run on Wordpress Multisite? =
144
- While **it's not officially supported**, users have reported that my plugin runs fine on Wordpress Multisite. According to what they have said, you need to install this plugin using the *Network Activation* feature. Note that there are features that *might* not work as expected (eg. thumbnails) as I have never tested this plugin under WP Multisite.
145
 
146
  = -CSS AND STYLESHEETS- =
147
 
@@ -152,7 +109,7 @@ Yes, *but* there are no predefined styles (well, almost). Wordpress Popular Post
152
  Copy your modified wpp.css file to your theme's folder, otherwise my plugin will use the one bundled with it by default.
153
 
154
  = How can I style my list to look like [insert your desired look here]? =
155
- Since this plugin does not include any predefined designs, it's up to you to style your most popular posts list as you like. You might need to hire someone for this if you don't know HTML/CSS, though.
156
 
157
  = I want to remove WPP's stylesheet. How can I do that? =
158
  Simply add the following code to your theme's functions.php file: `<?php wp_dequeue_style('wordpress-popular-posts') ?>` (or disable the stylesheet via *wp-admin > Settings > Wordpress Popular Posts > Tools*).
@@ -160,19 +117,19 @@ Simply add the following code to your theme's functions.php file: `<?php wp_dequ
160
  = -OTHER STUFF THAT YOU (PROBABLY) WANT TO KNOW- =
161
 
162
  = I want to translate your plugin into my language / help you update a translation. What do I need to do? =
163
- There's a PO file included with Wordpress Popular Posts. If your language is not already supported by my plugin, you can use a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) to translate all texts into your language. If you want to, you can send me your resulting PO and MO files to *hcabrerab at gmail dot com* so I can include them on the next release of my plugin (and would be really grateful if you can also help keep it updated on future releases).
164
 
165
  = I want your plugin to have X or Y functionality. Can it be done? =
166
- If it fits the nature of my plugin and it sounds like something others would like to have, there's a pretty good chance that I will implement it (and if you actually provide some sample code with useful comments, much better hehe).
167
 
168
  = Your plugin seems to conflict with my current Theme / this other Plugin. Can you please help me? =
169
- If the theme/plugin you're talking about is a free one and it's available to the public, sure I can try and take a look into it. Premium themes/plugins are out of discussion, though (unless you're willing to buy them for me so I can test them, and even that way I won't provide any guarantees since I'm doing this for free :P).
170
 
171
  = ETA for your next release? =
172
  Updates will come depending on my work projects (I'm a full-time web developer) and the amount of time I have on my hands. Quick releases will happen only when/if critical bugs are spotted.
173
 
174
  = I posted a question at the Support Forum and got no answer from the developer. Why is that? =
175
- Chances are that your question has been already answered either at the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts), the [Installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/), or here in the FAQ section. So, since you chose not to read these sections I will simply ignore your posts as well. It could also happen that I'm just busy at the moment and haven't been able to read your post yet, so please be patient (in the meanwhile, search the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) for an answer).
176
 
177
  = Is there any other way to contact you? =
178
  For the time being, the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) is the only way to contact me. Please do not use my email to get in touch with me *unless I authorize you to do so*.
@@ -185,22 +142,17 @@ For the time being, the [Support Forum](http://wordpress.org/support/plugin/word
185
  4. Wordpress Popular Posts Stats panel.
186
 
187
  == Changelog ==
188
-
189
- = 2.3.7 =
190
- * Fixed category excluding/including bug.
191
-
192
- = 2.3.6 =
193
- * Added ability to set links' target attribute (thanks, Pedro!).
194
- * Added sanitization for external thumbnail filenames to avoid weird characters.
195
- * Added a new content tag, {score}, to display the post rating as a simple integer (thanks, Artem!).
196
- * Added japanese and persian translations (thanks kjmtsh and Tatar).
197
- * Added wpp-list class to the UL tag, this should help style the popular list better.
198
- * Added plugin version to wp_enqueue_* calls.
199
- * Updated thumbnail feature to handle external images.
200
- * Updated wpp.css with text floating next to thumbnails - this sets a predefined style for the plugin for the first time.
201
- * Removed unnecesary wpp-thumbnail class from link tag, the image already has it.
202
- * Fixed typo in wpp_update_warning. From v2.3.3, minimun Wordpress version required is 3.3.
203
- * Fixed minor bugs.
204
 
205
  = 2.3.5 =
206
  * Fixed minor bugs on admin page.
@@ -325,7 +277,7 @@ For the time being, the [Support Forum](http://wordpress.org/support/plugin/word
325
  * Several shortcode bugs fixed (range, order_by, do_pattern, pattern_form were not working as expected).
326
 
327
  = 2.0.1 =
328
- * Post title excerpt now includes html entities. Characters like ��� should display properly now.
329
  * Post excerpt has been improved. Now it supports the following HTML tags: a, b, i, strong, em.
330
  * Template tag wpp_get_views() added. Retrieves the views count of a single post.
331
  * Template tag get_mostpopular() re-added. Parameter support included.
@@ -394,8 +346,21 @@ For the time being, the [Support Forum](http://wordpress.org/support/plugin/word
394
  = 1.0 =
395
  * Public release
396
 
 
 
 
 
 
 
 
 
 
 
397
  == Upgrade Notice ==
398
 
 
 
 
399
  = 2.3.3 =
400
  This version requires PHP 5.2+ and Wordpress 3.0.0 or greater to enable post thumbnails.
401
 
1
  === Wordpress Popular Posts ===
2
  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&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
4
+ Tags: popular, posts, widget, popularity, top
5
+ Requires at least: 3.8
6
+ Tested up to: 3.9.1
7
+ Stable tag: 3.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Wordpress Popular Posts is a highly customizable widget that displays the most popular posts on your blog.
12
 
13
  == Description ==
14
 
19
  * **Time Range** - list those posts of your blog that have been the most popular ones within a specific time range (eg. last 24 hours, last 7 days, last 30 days, etc.)!
20
  * **Custom Post-type support**. Wanna show other stuff than just posts and pages?
21
  * Display a **thumbnail** of your posts! (*see the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for technical requirements*).
22
+ * Use **your own layout**! Control how your most popular posts are shown on your theme.
23
+ * **WPML** support!
24
+ * Experimental Wordpress Multisite support!
25
 
26
  = Other Features =
27
+ * Check the **statistics** on your most popular posts from wp-admin.
28
  * Order your popular list by comments, views (default) or average views per day!
29
  * **Shortcode support** - use the [wpp] shortcode to showcase your most popular posts on pages, too! For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
30
  * **Template tags** - Don't feel like using widgets? No problem! You can still embed your most popular entries on your theme using the *wpp_get_mostpopular()* template tag. Additionally, the *wpp_gets_views()* template tag allows you to retrieve the views count for a particular post. For usage and instructions, please refer to the [installation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
31
  * **Localizable** to your own language (*See the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for more info*).
32
  * **[WP-PostRatings](http://wordpress.org/extend/plugins/wp-postratings/) support**. Show your visitors how your readers are rating your posts!
 
 
 
 
 
 
 
 
 
33
 
34
  == Installation ==
35
 
41
 
42
  That's it!
43
 
44
+ = USAGE =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
+ WPP can be used as a [Wordpress Widget](http://codex.wordpress.org/WordPress_Widgets), which means you can place it on any of your theme's sidebars (and it even supports multiple instances!). However, you can also embed it directly in posts / pages via [shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages); or anywhere on your theme using the [wpp_get_mostpopular()](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular) template tag.
47
 
48
+ ... and there's even more on the **[Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki)**, so make sure to stop by!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  == Frequently Asked Questions ==
51
 
52
+ #### I need help with your plugin! What should I do?
53
+ First thing to do is read all the online documentation available ([Installation](http://wordpress.org/plugins/wordpress-popular-posts/installation/), [Usage](https://github.com/cabrerahector/wordpress-popular-posts#usage), [Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki), and of course this section) as they should address most of the questions you might have about this plugin (and even more info can be found via *wp-admin > Settings > Wordpress Popular Posts > FAQ*).
54
+
55
+ If you're having problems with WPP, my first suggestion would be try disabling all other plugins and then re-enable each one to make sure there are no conflicts. Also, try switching to a different theme and see if the issue persists. Checking the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) and the [issue tracker](https://github.com/cabrerahector/wordpress-popular-posts/issues) is also a good idea as chances are that someone else has already posted something about it. **Remember:** *read first*. It'll save you (and me) time.
56
 
57
  = -FUNCTIONALITY- =
58
 
66
  There are a number of reasons that might explain why you are seeing this message: no one has seen or commented on your posts/pages since Wordpress Popular Posts activation, you should give it some time; your current theme does not have the [wp_head()](http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks) tag in its &lt;head&gt; section, required by my plugin to keep track of what your visitors are viewing on your site; Wordpress Popular Posts was unable to create the necessary DB tables to work, make sure your hosting has granted you permission to create / update / modify tables in the database.
67
 
68
  = My current theme does not support widgets (booooo!). Can I show my most popular posts in any other way? =
69
+ Yes, there are other choices: you can use the [wpp shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages), which allows you to embed your popular listing directly in the content of your posts and/or pages; or you can use the [wpp_get_mostpopular() template tag](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular). Both options are highly customizable via parameters, check them out via *wp-admin > Settings > Wordpress Popular Posts > Parameters*.
70
 
71
  = Wordpress Popular Posts is not counting my own visits, why? =
72
  By default, Wordpress Popular Posts won't count views generated by logged in users. If your blog requires readers to be logged in to access its contents (or just want WPP to count your own views) please go to *wp-admin > Settings > Wordpress Popular Posts > Tools* and set *Log views from* to *Everyone*.
73
 
74
  = I'm unable to activate the "Display post thumbnail" option. Why? =
75
+ Please check that either the [ImageMagick](http://www.php.net/manual/en/intro.imagick.php) or [GD](http://www.php.net/manual/en/intro.image.php) extension is installed and [enabled by your host](http://wordpress.org/support/topic/289778#post-1366038).
76
 
77
  = How does Wordpress Popular Posts pick my posts' thumbnails? =
78
+ Wordpress Popular Posts has three different thumbnail options to choose from available at *wp-admin > Settings > Wordpress Popular Posts > Tools*: *Featured Image* (default), *First image on post*, or [*custom field*](http://codex.wordpress.org/Custom_Fields). If no images are found, a default thumbnail will be displayed instead.
79
 
80
  = I'm seeing a "No thumbnail" image, where's my post thumbnail? =
81
  Make sure you have assigned one to your posts (see previous question).
84
  Fortunately, yes. Go to *wp-admin > Settings > Wordpress Popular Posts > Tools* and check under *Thumbnail source*. Ideally, the thumbnail you're going to use should be set already with your desired width and height - however, the uploader will give you other size options as configured by your current theme.
85
 
86
  = Where can I find the list of parameters accepted by the wpp_get_mostpopular() template tag / [wpp] shortcode? =
87
+ You can find it via *wp-admin > Settings > Wordpress Popular Posts > Parameters*.
88
 
89
  = I want to have a popular list of my custom post type. How can I do that? =
90
  Simply add your custom post type to the Post Type field in the widget (or if you're using the template tag / shortcode, use the *post_type* parameter).
91
 
92
  = How can I use my own HTML markup with your plugin? =
93
+ If you're using the widget, simply activate the *Use custom HTML markup* option and set your desired configuration and *Content Tags* (see *wp-admin > Settings > Wordpress Popular Posts > FAQ* for more); or if you're using the template tag / shortcode, use the *wpp_start*, *wpp_end* and *post_html* parameters (see *wp-admin > Settings > Wordpress Popular Posts > Parameters* for more).
94
+
95
+ A more advanced way to customize the HTML markup is via [Wordpress filters](http://code.tutsplus.com/articles/the-beginners-guide-to-wordpress-actions-and-filters--wp-27373 "The Beginner's guide to Wordpress actions and filters") by hooking into *wpp_custom_html* or *wpp_post*. For details, please check the [Filters page](https://github.com/cabrerahector/wordpress-popular-posts/wiki/Filters) on the Wiki.
96
 
97
  = I would like to clear all data gathered by Wordpress Popular Posts and start over. How can I do that? =
98
+ If you go to *wp-admin > Settings > Wordpress Popular Posts > Tools*, you'll find two buttons that should do what you need: **Clear cache** and **Clear all data**. The first one just wipes out what's in cache (Last 24 hours, Last 7 Days, Last 30 Days, etc.), keeping the historical data (All-time) intact. The latter wipes out everything from Wordpress Popular Posts data tables - even the historical data. Note that **this cannot be undone** so proceed with caution.
99
 
100
  = Can Wordpress Popular Posts run on Wordpress Multisite? =
101
+ Starting from version 3.0.0, WPP checks for Wordpress Multisite. While I have not tested it, WPP should work just fine under WPMU (but if it doesn't, please let me know).
102
 
103
  = -CSS AND STYLESHEETS- =
104
 
109
  Copy your modified wpp.css file to your theme's folder, otherwise my plugin will use the one bundled with it by default.
110
 
111
  = How can I style my list to look like [insert your desired look here]? =
112
+ Since this plugin does not include any predefined designs, it's up to you to style your most popular posts list as you like (you might need to hire someone for this if you don't know HTML/CSS, though). However, I've gathered a few [examples](https://github.com/cabrerahector/wordpress-popular-posts/wiki/6.-Styling-the-list) that should get you started.
113
 
114
  = I want to remove WPP's stylesheet. How can I do that? =
115
  Simply add the following code to your theme's functions.php file: `<?php wp_dequeue_style('wordpress-popular-posts') ?>` (or disable the stylesheet via *wp-admin > Settings > Wordpress Popular Posts > Tools*).
117
  = -OTHER STUFF THAT YOU (PROBABLY) WANT TO KNOW- =
118
 
119
  = I want to translate your plugin into my language / help you update a translation. What do I need to do? =
120
+ First thing you need to do is get a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) to translate all texts into your language. When you're done with it, you'll find several .PO files bundled with the plugin under the *lang* folder. If you're planning to add a new language, go grab *wordpress-popular-posts.po* and rename it to add the proper suffix for your language (eg. wordpress-popular-posts*-es_ES*.po, for Spanish). In any case, open the PO file using Poedit (or your preferred gettext editor) and update the strings there. It sounds complicated, I know, but it's not. Check this handy [guide](http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/ "Translating WordPress Plugins & Themes"), in case you get lost at some point. If you're interested in sharing your translation with others (or just helped update a current translation), please [let me know](http://wordpress.org/support/plugin/wordpress-popular-posts).
121
 
122
  = I want your plugin to have X or Y functionality. Can it be done? =
123
+ If it fits the nature of my plugin and it sounds like something others would like to have, there's a pretty good chance that I will implement it (and if you can provide some sample code with useful comments, much better).
124
 
125
  = Your plugin seems to conflict with my current Theme / this other Plugin. Can you please help me? =
126
+ If the theme/plugin you're talking about is a free one that can be downloaded from somewhere, sure I can try and take a look into it. Premium themes/plugins are out of discussion though, unless you're willing to grant me access to your site (or get me a copy of this theme/plugin) so I can check it out.
127
 
128
  = ETA for your next release? =
129
  Updates will come depending on my work projects (I'm a full-time web developer) and the amount of time I have on my hands. Quick releases will happen only when/if critical bugs are spotted.
130
 
131
  = I posted a question at the Support Forum and got no answer from the developer. Why is that? =
132
+ Chances are that your question has been already answered either at the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts), the [Installation section](http://wordpress.org/plugins/wordpress-popular-posts/installation/), the [Wiki](https://github.com/cabrerahector/wordpress-popular-posts/wiki) or even here in the FAQ section, so I've decided not to answer. It could also happen that I'm just busy at the moment and haven't been able to read your post yet, so please be patient.
133
 
134
  = Is there any other way to contact you? =
135
  For the time being, the [Support Forum](http://wordpress.org/support/plugin/wordpress-popular-posts) is the only way to contact me. Please do not use my email to get in touch with me *unless I authorize you to do so*.
142
  4. Wordpress Popular Posts Stats panel.
143
 
144
  == Changelog ==
145
+ = 3.0.0 =
146
+ * Plugin refactoring based on [@tikaszvince](https://github.com/tikaszvince)'s work (many thanks, Vince!).
147
+ * Added WPML support.
148
+ * Added experimental Wordpress Multisite support.
149
+ * Added bot detection.
150
+ * Added ability to filter posts by freshness.
151
+ * Added own data caching method.
152
+ * Added filters wpp_custom_html, wpp_post.
153
+ * Added action wpp_update_views.
154
+ * Dropped support on Dutch and Persian languages since the translations were outdated.
155
+ * Several other fixes and improvements.
 
 
 
 
 
156
 
157
  = 2.3.5 =
158
  * Fixed minor bugs on admin page.
277
  * Several shortcode bugs fixed (range, order_by, do_pattern, pattern_form were not working as expected).
278
 
279
  = 2.0.1 =
280
+ * Post title excerpt now includes html entities. Characters like &Aring;&Auml;&Ouml; should display properly now.
281
  * Post excerpt has been improved. Now it supports the following HTML tags: a, b, i, strong, em.
282
  * Template tag wpp_get_views() added. Retrieves the views count of a single post.
283
  * Template tag get_mostpopular() re-added. Parameter support included.
346
  = 1.0 =
347
  * Public release
348
 
349
+ == Language support ==
350
+
351
+ All translations are community made: people who are nice enough to share their translations with me so I can distribute them with the plugin. If you spot an error, or feel like helping improve a translation, please check the [FAQ section](http://wordpress.org/plugins/wordpress-popular-posts/faq/ "FAQ section") for instructions.
352
+
353
+ * English.
354
+ * Spanish.
355
+ * German - 95% translated (4 fuzzy strings, 7 not translated).
356
+ * French - 83% translated (14 fuzzy strings, 25 not translated).
357
+ * Japanese - 77% translated (34 fuzzy strings, 18 not translated).
358
+
359
  == Upgrade Notice ==
360
 
361
+ = 3.0.0 =
362
+ This version requires PHP 5.2+ and Wordpress 3.8 or greater.
363
+
364
  = 2.3.3 =
365
  This version requires PHP 5.2+ and Wordpress 3.0.0 or greater to enable post thumbnails.
366
 
style/admin.css ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wpp_boxes {
2
+ display:none;
3
+ overflow:hidden;
4
+ width:100%;
5
+ }
6
+
7
+ /* Stats */
8
+ #wpp-stats-tabs {
9
+ padding:2px 0;
10
+ }
11
+
12
+ #wpp-stats-canvas {
13
+ overflow:hidden;
14
+ padding:2px 0;
15
+ width:100%;
16
+ }
17
+
18
+ .wpp-stats {
19
+ display:none;
20
+ width:96%px;
21
+ padding:1% 0;
22
+ font-size:8px;
23
+ background:#fff;
24
+ border:#999 3px solid;
25
+ }
26
+
27
+ .wpp-stats-active {
28
+ display:block;
29
+ }
30
+
31
+ .wpp-stats ol {
32
+ margin:0;
33
+ padding:0;
34
+ }
35
+
36
+ .wpp-stats ol li {
37
+ overflow:hidden;
38
+ margin:0 8px 10px 8px!important;
39
+ padding:0 0 2px 0!important;
40
+ font-size:12px;
41
+ line-height:12px;
42
+ color:#999;
43
+ border-bottom:#eee 1px solid;
44
+ }
45
+
46
+ .wpp-post-title {
47
+ display:inline;
48
+ float:left;
49
+ font-weight:bold;
50
+ }
51
+
52
+ .post-stats {
53
+ display:inline;
54
+ float:right;
55
+ font-size:0.9em!important;
56
+ text-align:right;
57
+ color:#999;
58
+ }
59
+
60
+ .wpp-stats-unique-item, .wpp-stats-last-item {
61
+ margin:0!important;
62
+ padding:0!important;
63
+ border:none!important;
64
+ }
65
+
66
+ .wpp-stats p {
67
+ margin:0;
68
+ padding:0 8px;
69
+ font-size:12px;
70
+ }
71
+
72
+ /* FAQ */
73
+ #wpp_faq {
74
+ }
75
+
76
+ #wpp_faq h4 {
77
+ margin:18px 0 0 0;
78
+ }
79
+
80
+ #wpp_faq h4 a.active { color:#d74e21; }
81
+
82
+ .wpp-ans {
83
+ /*display:none;*/
84
+ margin:5px 0 0 0;
85
+ width:96%;
86
+ padding:1% 2%;
87
+ background:#e5e5e5;
88
+ }
89
+
90
+ .wpp-ans p {
91
+ margin:0 0 0 0;
92
+ padding:0;
93
+ }
style/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden ?>
style/wpp.css CHANGED
@@ -10,10 +10,9 @@ Use the following classes to style your popular posts list as you like.
10
  }
11
 
12
  .wpp-list li { /* LI - post container */
13
- overflow:auto;
14
- display:block;
15
  float:none;
16
- clear:both;
17
  }
18
 
19
  /* title styles */
@@ -34,6 +33,7 @@ Use the following classes to style your popular posts list as you like.
34
 
35
  /* Stats tag styles */
36
  .post-stats {
 
37
  font-size:9px;
38
  font-weight:bold;
39
  }
@@ -45,12 +45,9 @@ Use the following classes to style your popular posts list as you like.
45
  }
46
 
47
  .wpp-author {
48
- font-style:italic;
49
  }
50
 
51
  .wpp-date {
52
- display:block;
53
- clear:right;
54
  }
55
 
56
  /* WP-PostRatings styles */
10
  }
11
 
12
  .wpp-list li { /* LI - post container */
13
+ /*display:inline-block;*/ /* <-- uncommenting this line is recommended when using post thumbnails */
 
14
  float:none;
15
+ clear:left;
16
  }
17
 
18
  /* title styles */
33
 
34
  /* Stats tag styles */
35
  .post-stats {
36
+ display:block;
37
  font-size:9px;
38
  font-weight:bold;
39
  }
45
  }
46
 
47
  .wpp-author {
 
48
  }
49
 
50
  .wpp-date {
 
 
51
  }
52
 
53
  /* WP-PostRatings styles */
uninstall.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fired when the plugin is uninstalled.
4
+ *
5
+ * @package WordpressPopularPosts
6
+ * @author Hector Cabrera <hcabrerab@gmail.com>
7
+ * @license GPL-2.0+
8
+ * @link http://cabrerahector.com
9
+ * @copyright 2013 Hector Cabrera
10
+ */
11
+
12
+ // If uninstall, not called from WordPress, then exit
13
+ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
14
+ exit;
15
+ }
16
+
17
+ // Run uninstall for each blog in the network
18
+ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
19
+
20
+ global $wpdb;
21
+
22
+ $original_blog_id = get_current_blog_id();
23
+ $blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
24
+
25
+ foreach( $blogs_ids as $blog_id ) {
26
+
27
+ switch_to_blog( $blog_id );
28
+
29
+ // Delete plugin's options
30
+ delete_site_option( 'wpp_ver' );
31
+ delete_site_option( 'wpp_settings_config' );
32
+ delete_site_option( 'wpp_rand' );
33
+ delete_site_option( 'wpp_transients' );
34
+
35
+ // delete tables
36
+ uninstall();
37
+
38
+ }
39
+
40
+ // Switch back to current blog
41
+ switch_to_blog( $original_blog_id );
42
+
43
+ } else {
44
+ // Delete plugin's options
45
+ delete_option( 'wpp_ver' );
46
+ delete_option( 'wpp_settings_config' );
47
+ delete_option( 'wpp_rand' );
48
+ delete_option( 'wpp_transients' );
49
+
50
+ // delete tables
51
+ uninstall();
52
+ }
53
+
54
+ function uninstall(){
55
+
56
+ global $wpdb;
57
+
58
+ // Delete db tables
59
+ $prefix = $wpdb->prefix . "popularposts";
60
+ $wpdb->query( "DROP TABLE IF EXISTS {$prefix}data;" );
61
+ $wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache;" );
62
+ $wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache_backup;" );
63
+ $wpdb->query( "DROP TABLE IF EXISTS {$prefix}log;" );
64
+ $wpdb->query( "DROP TABLE IF EXISTS {$prefix}summary" );
65
+
66
+ }
views/admin.php ADDED
@@ -0,0 +1,732 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__))
3
+ exit('Please do not load this page directly');
4
+
5
+ define('WPP_ADMIN', true);
6
+
7
+ // Set active tab
8
+ if ( isset($_GET['tab']) )
9
+ $current = $_GET['tab'];
10
+ else
11
+ $current = 'stats';
12
+
13
+ // Update options on form submission
14
+ if ( isset($_POST['section']) ) {
15
+
16
+ if ( "stats" == $_POST['section'] ) {
17
+ $current = 'stats';
18
+
19
+ $this->user_settings['stats']['order_by'] = $_POST['stats_order'];
20
+ $this->user_settings['stats']['limit'] = (is_numeric($_POST['stats_limit']) && $_POST['stats_limit'] > 0) ? $_POST['stats_limit'] : 10;
21
+ $this->user_settings['stats']['post_type'] = empty($_POST['stats_type']) ? "post,page" : $_POST['stats_type'];
22
+ $this->user_settings['stats']['freshness'] = empty($_POST['stats_freshness']) ? false : $_POST['stats_freshness'];
23
+
24
+ update_site_option('wpp_settings_config', $this->user_settings);
25
+ echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";
26
+ }
27
+ elseif ( "misc" == $_POST['section'] ) {
28
+ $current = 'tools';
29
+
30
+ $this->user_settings['tools']['link']['target'] = $_POST['link_target'];
31
+ $this->user_settings['tools']['css'] = $_POST['css'];
32
+
33
+ update_site_option('wpp_settings_config', $this->user_settings);
34
+ echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";
35
+ }
36
+ elseif ( "thumb" == $_POST['section'] ) {
37
+ $current = 'tools';
38
+
39
+ if ($_POST['thumb_source'] == "custom_field" && (!isset($_POST['thumb_field']) || empty($_POST['thumb_field']))) {
40
+ echo '<div id="wpp-message" class="error fade"><p>'.__('Please provide the name of your custom field.', $this->plugin_slug).'</p></div>';
41
+ } else {
42
+ $this->user_settings['tools']['thumbnail']['source'] = $_POST['thumb_source'];
43
+ $this->user_settings['tools']['thumbnail']['field'] = ( !empty( $_POST['thumb_field']) ) ? $_POST['thumb_field'] : "wpp_thumbnail";
44
+ $this->user_settings['tools']['thumbnail']['default'] = ( !empty( $_POST['upload_thumb_src']) ) ? $_POST['upload_thumb_src'] : "";
45
+ $this->user_settings['tools']['thumbnail']['resize'] = $_POST['thumb_field_resize'];
46
+
47
+ update_site_option('wpp_settings_config', $this->user_settings);
48
+ echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";
49
+ }
50
+ }
51
+ elseif ( "data" == $_POST['section'] ) {
52
+ $current = 'tools';
53
+
54
+ $this->user_settings['tools']['log']['level'] = $_POST['log_option'];
55
+ $this->user_settings['tools']['ajax'] = $_POST['ajax'];
56
+
57
+ // if any of the caching settings was updated, destroy all transients created by the plugin
58
+ if ( $this->user_settings['tools']['cache']['active'] != $_POST['cache'] || $this->user_settings['tools']['cache']['interval']['time'] != $_POST['cache_interval_time'] || $this->user_settings['tools']['cache']['interval']['value'] != $_POST['cache_interval_value'] ) {
59
+ $this->__flush_transients();
60
+ }
61
+
62
+ $this->user_settings['tools']['cache']['active'] = $_POST['cache'];
63
+ $this->user_settings['tools']['cache']['interval']['time'] = $_POST['cache_interval_time'];
64
+ $this->user_settings['tools']['cache']['interval']['value'] = ( isset($_POST['cache_interval_value']) && is_numeric($_POST['cache_interval_value']) && $_POST['cache_interval_value'] > 0 )
65
+ ? $_POST['cache_interval_value']
66
+ : 1;
67
+
68
+ update_site_option('wpp_settings_config', $this->user_settings);
69
+ echo "<div class=\"updated\"><p><strong>" . __('Settings saved.', $this->plugin_slug ) . "</strong></p></div>";
70
+ }
71
+
72
+ }
73
+
74
+ $rand = md5(uniqid(rand(), true));
75
+ $wpp_rand = get_site_option("wpp_rand");
76
+ if (empty($wpp_rand)) {
77
+ add_site_option("wpp_rand", $rand);
78
+ } else {
79
+ update_site_option("wpp_rand", $rand);
80
+ }
81
+
82
+ ?>
83
+ <script type="text/javascript">
84
+ // TOOLS
85
+ function confirm_reset_cache() {
86
+ if (confirm("<?php _e("This operation will delete all entries from Wordpress Popular Posts' cache table and cannot be undone.", $this->plugin_slug); ?> \n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
87
+ jQuery.post(ajaxurl, {action: 'wpp_clear_data', token: '<?php echo get_site_option("wpp_rand"); ?>', clear: 'cache'}, function(data){
88
+ alert(data);
89
+ });
90
+ }
91
+ }
92
+
93
+ function confirm_reset_all() {
94
+ if (confirm("<?php _e("This operation will delete all stored info from Wordpress Popular Posts' data tables and cannot be undone.", $this->plugin_slug); ?> \n" + "<?php _e("Do you want to continue?", $this->plugin_slug); ?>")) {
95
+ jQuery.post(ajaxurl, {action: 'wpp_clear_data', token: '<?php echo get_site_option("wpp_rand"); ?>', clear: 'all'}, function(data){
96
+ alert(data);
97
+ });
98
+ }
99
+ }
100
+
101
+ </script>
102
+
103
+ <div class="wrap">
104
+ <div id="icon-options-general" class="icon32"><br /></div>
105
+ <h2>Wordpress Popular Posts</h2>
106
+
107
+ <h2 class="nav-tab-wrapper">
108
+ <?php
109
+ // build tabs
110
+ $tabs = array(
111
+ 'stats' => __('Stats', $this->plugin_slug),
112
+ 'tools' => __('Tools', $this->plugin_slug),
113
+ 'params' => __('Parameters', $this->plugin_slug),
114
+ 'faq' => __('FAQ', $this->plugin_slug),
115
+ 'about' => __('About', $this->plugin_slug)
116
+ );
117
+ foreach( $tabs as $tab => $name ){
118
+ $class = ( $tab == $current ) ? ' nav-tab-active' : '';
119
+ echo "<a class='nav-tab$class' href='?page=wordpress-popular-posts&tab=$tab'>$name</a>";
120
+ }
121
+ ?>
122
+ </h2>
123
+
124
+ <!-- Start stats -->
125
+ <div id="wpp_stats" class="wpp_boxes"<?php if ( "stats" == $current ) {?> style="display:block;"<?php } ?>>
126
+ <p><?php _e("Click on each tab to see what are the most popular entries on your blog in the last 24 hours, this week, last 30 days or all time since Wordpress Popular Posts was installed.", $this->plugin_slug); ?></p>
127
+
128
+ <div class="tablenav top">
129
+ <div class="alignleft actions">
130
+ <form action="" method="post" id="wpp_stats_options" name="wpp_stats_options">
131
+ <select name="stats_order">
132
+ <option <?php if ($this->user_settings['stats']['order_by'] == "comments") {?>selected="selected"<?php } ?> value="comments"><?php _e("Order by comments", $this->plugin_slug); ?></option>
133
+ <option <?php if ($this->user_settings['stats']['order_by'] == "views") {?>selected="selected"<?php } ?> value="views"><?php _e("Order by views", $this->plugin_slug); ?></option>
134
+ <option <?php if ($this->user_settings['stats']['order_by'] == "avg") {?>selected="selected"<?php } ?> value="avg"><?php _e("Order by avg. daily views", $this->plugin_slug); ?></option>
135
+ </select>
136
+ <label for="stats_type"><?php _e("Post type", $this->plugin_slug); ?>:</label> <input type="text" name="stats_type" value="<?php echo $this->user_settings['stats']['post_type']; ?>" size="15" />
137
+ <label for="stats_limits"><?php _e("Limit", $this->plugin_slug); ?>:</label> <input type="text" name="stats_limit" value="<?php echo $this->user_settings['stats']['limit']; ?>" size="5" />
138
+ &nbsp;&nbsp;&nbsp;<label for="stats_freshness"><input type="checkbox" class="checkbox" <?php echo ($this->user_settings['stats']['freshness']) ? 'checked="checked"' : ''; ?> id="stats_freshness" name="stats_freshness" /> <?php _e('Display only posts published within the selected Time Range', 'wordpress-popular-posts'); ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
139
+ <input type="hidden" name="section" value="stats" />
140
+ <input type="submit" class="button-secondary action" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
141
+ </form>
142
+ </div>
143
+ </div>
144
+ <br />
145
+ <div id="wpp-stats-tabs">
146
+ <a href="#" class="button-primary" rel="wpp-daily"><?php _e("Last 24 hours", $this->plugin_slug); ?></a>
147
+ <a href="#" class="button-secondary" rel="wpp-weekly"><?php _e("Last 7 days", $this->plugin_slug); ?></a>
148
+ <a href="#" class="button-secondary" rel="wpp-monthly"><?php _e("Last 30 days", $this->plugin_slug); ?></a>
149
+ <a href="#" class="button-secondary" rel="wpp-all"><?php _e("All-time", $this->plugin_slug); ?></a>
150
+ </div>
151
+ <div id="wpp-stats-canvas">
152
+ <div class="wpp-stats wpp-stats-active" id="wpp-daily">
153
+ <?php echo do_shortcode("[wpp range='daily' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
154
+ </div>
155
+ <div class="wpp-stats" id="wpp-weekly">
156
+ <?php echo do_shortcode("[wpp range='weekly' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
157
+ </div>
158
+ <div class="wpp-stats" id="wpp-monthly">
159
+ <?php echo do_shortcode("[wpp range='monthly' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
160
+ </div>
161
+ <div class="wpp-stats" id="wpp-all">
162
+ <?php echo do_shortcode("[wpp range='all' post_type='".$this->user_settings['stats']['post_type']."' stats_comments=1 stats_views=1 order_by='".$this->user_settings['stats']['order_by']."' wpp_start='<ol>' wpp_end='</ol>' post_html='<li>{title} <span class=\"post-stats\">{stats}</span></li>' limit=".$this->user_settings['stats']['limit']." freshness=" . $this->user_settings['stats']['freshness'] . "]"); ?>
163
+ </div>
164
+ </div>
165
+ </div>
166
+ <!-- End stats -->
167
+
168
+ <!-- Start tools -->
169
+ <div id="wpp_tools" class="wpp_boxes"<?php if ( "tools" == $current ) {?> style="display:block;"<?php } ?>>
170
+
171
+ <h3 class="wmpp-subtitle"><?php _e("Thumbnails", $this->plugin_slug); ?></h3>
172
+ <form action="" method="post" id="wpp_thumbnail_options" name="wpp_thumbnail_options">
173
+ <table class="form-table">
174
+ <tbody>
175
+ <tr valign="top">
176
+ <th scope="row"><label for="thumb_default"><?php _e("Default thumbnail", $this->plugin_slug); ?>:</label></th>
177
+ <td>
178
+ <div id="thumb-review">
179
+ <img src="<?php echo $this->user_settings['tools']['thumbnail']['default']; ?>" alt="" border="0" />
180
+ </div>
181
+ <input id="upload_thumb_button" type="button" class="button" value="<?php _e( "Upload thumbnail", $this->plugin_slug ); ?>" />
182
+ <input type="hidden" id="upload_thumb_src" name="upload_thumb_src" value="" />
183
+ <br /><br />
184
+ <p class="description"><?php _e("How-to: upload (or select) an image, set Size to Full and click on Upload. After it's done, hit on Apply to save changes", $this->plugin_slug); ?></p>
185
+ </td>
186
+ </tr>
187
+ <tr valign="top">
188
+ <th scope="row"><label for="thumb_source"><?php _e("Pick image from", $this->plugin_slug); ?>:</label></th>
189
+ <td>
190
+ <select name="thumb_source" id="thumb_source">
191
+ <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "featured") {?>selected="selected"<?php } ?> value="featured"><?php _e("Featured image", $this->plugin_slug); ?></option>
192
+ <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "first_image") {?>selected="selected"<?php } ?> value="first_image"><?php _e("First image on post", $this->plugin_slug); ?></option>
193
+ <option <?php if ($this->user_settings['tools']['thumbnail']['source'] == "custom_field") {?>selected="selected"<?php } ?> value="custom_field"><?php _e("Custom field", $this->plugin_slug); ?></option>
194
+ </select>
195
+ <br />
196
+ <p class="description"><?php _e("Tell Wordpress Popular Posts where it should get thumbnails from", $this->plugin_slug); ?></p>
197
+ </td>
198
+ </tr>
199
+ <tr valign="top" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field">
200
+ <th scope="row"><label for="thumb_field"><?php _e("Custom field name", $this->plugin_slug); ?>:</label></th>
201
+ <td>
202
+ <input type="text" id="thumb_field" name="thumb_field" value="<?php echo $this->user_settings['tools']['thumbnail']['field']; ?>" size="10" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> />
203
+ </td>
204
+ </tr>
205
+ <tr valign="top" <?php if ($this->user_settings['tools']['thumbnail']['source'] != "custom_field") {?>style="display:none;"<?php } ?> id="row_custom_field_resize">
206
+ <th scope="row"><label for="thumb_field_resize"><?php _e("Resize image from Custom field?", $this->plugin_slug); ?>:</label></th>
207
+ <td>
208
+ <select name="thumb_field_resize" id="thumb_field_resize">
209
+ <option <?php if ( !$this->user_settings['tools']['thumbnail']['resize'] ) {?>selected="selected"<?php } ?> value="0"><?php _e("No, I will upload my own thumbnail", $this->plugin_slug); ?></option>
210
+ <option <?php if ( $this->user_settings['tools']['thumbnail']['resize'] == 1 ) {?>selected="selected"<?php } ?> value="1"><?php _e("Yes", $this->plugin_slug); ?></option>
211
+ </select>
212
+ </td>
213
+ </tr>
214
+ <tr valign="top">
215
+ <td colspan="2">
216
+ <input type="hidden" name="section" value="thumb" />
217
+ <input type="submit" class="button-secondary action" id="btn_th_ops" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
218
+ </td>
219
+ </tr>
220
+ </tbody>
221
+ </table>
222
+ </form>
223
+ <br />
224
+ <p style="display:block; float:none; clear:both">&nbsp;</p>
225
+
226
+ <h3 class="wmpp-subtitle"><?php _e("Data", $this->plugin_slug); ?></h3>
227
+ <form action="" method="post" id="wpp_ajax_options" name="wpp_ajax_options">
228
+ <table class="form-table">
229
+ <tbody>
230
+ <tr valign="top">
231
+ <th scope="row"><label for="log_option"><?php _e("Log views from", $this->plugin_slug); ?>:</label></th>
232
+ <td>
233
+ <select name="log_option" id="log_option">
234
+ <option <?php if ($this->user_settings['tools']['log']['level'] == 0) {?>selected="selected"<?php } ?> value="0"><?php _e("Visitors only", $this->plugin_slug); ?></option>
235
+ <option <?php if ($this->user_settings['tools']['log']['level'] == 2) {?>selected="selected"<?php } ?> value="2"><?php _e("Logged-in users only", $this->plugin_slug); ?></option>
236
+ <option <?php if ($this->user_settings['tools']['log']['level'] == 1) {?>selected="selected"<?php } ?> value="1"><?php _e("Everyone", $this->plugin_slug); ?></option>
237
+ </select>
238
+ <br />
239
+ </td>
240
+ </tr>
241
+ <tr valign="top">
242
+ <th scope="row"><label for="ajax"><?php _e("Ajaxify widget", $this->plugin_slug); ?>:</label></th>
243
+ <td>
244
+ <select name="ajax" id="ajax">
245
+ <option <?php if (!$this->user_settings['tools']['ajax']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
246
+ <option <?php if ($this->user_settings['tools']['ajax']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
247
+ </select>
248
+
249
+ <br />
250
+ <p class="description"><?php _e("If you are using a caching plugin such as WP Super Cache, enabling this feature will keep the popular list from being cached by it", $this->plugin_slug); ?></p>
251
+ </td>
252
+ </tr>
253
+ <tr valign="top">
254
+ <th scope="row"><label for="cache"><?php _e("Listing refresh interval", $this->plugin_slug); ?>:</label></th>
255
+ <td>
256
+ <select name="cache" id="cache">
257
+ <option <?php if ( !$this->user_settings['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="0"><?php _e("Live", $this->plugin_slug); ?></option>
258
+ <option <?php if ( $this->user_settings['tools']['cache']['active'] ) { ?>selected="selected"<?php } ?> value="1"><?php _e("Custom interval", $this->plugin_slug); ?></option>
259
+ </select>
260
+
261
+ <br />
262
+ <p class="description"><?php _e("Sets how often the listing should be updated. For most sites the Live option should be fine, however if you are experiencing slowdowns or your blog gets a lot of visitors then you might want to change the refresh rate", $this->plugin_slug); ?></p>
263
+ </td>
264
+ </tr>
265
+ <tr valign="top" <?php if ( !$this->user_settings['tools']['cache']['active'] ) { ?>style="display:none;"<?php } ?> id="cache_refresh_interval">
266
+ <th scope="row"><label for="cache_interval_value"><?php _e("Refresh list every", $this->plugin_slug); ?>:</label></th>
267
+ <td>
268
+ <input name="cache_interval_value" type="text" id="cache_interval_value" value="<?php echo ( isset($this->user_settings['tools']['cache']['interval']['value']) ) ? (int) $this->user_settings['tools']['cache']['interval']['value'] : 1; ?>" class="small-text">
269
+ <select name="cache_interval_time" id="cache_interval_time">
270
+ <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "hour") {?>selected="selected"<?php } ?> value="hour"><?php _e("Hour(s)", $this->plugin_slug); ?></option>
271
+ <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "day") {?>selected="selected"<?php } ?> value="day"><?php _e("Day(s)", $this->plugin_slug); ?></option>
272
+ <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "week") {?>selected="selected"<?php } ?> value="week"><?php _e("Week(s)", $this->plugin_slug); ?></option>
273
+ <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "month") {?>selected="selected"<?php } ?> value="month"><?php _e("Month(s)", $this->plugin_slug); ?></option>
274
+ <option <?php if ($this->user_settings['tools']['cache']['interval']['time'] == "year") {?>selected="selected"<?php } ?> value="month"><?php _e("Year(s)", $this->plugin_slug); ?></option>
275
+ </select>
276
+ <br />
277
+ <p class="description" style="display:none;" id="cache_too_long"><?php _e("Really? That long?", $this->plugin_slug); ?></p>
278
+ </td>
279
+ </tr>
280
+ <tr valign="top">
281
+ <td colspan="2">
282
+ <input type="hidden" name="section" value="data" />
283
+ <input type="submit" class="button-secondary action" id="btn_ajax_ops" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
284
+ </td>
285
+ </tr>
286
+ </tbody>
287
+ </table>
288
+ </form>
289
+ <br />
290
+ <p style="display:block; float:none; clear:both">&nbsp;</p>
291
+
292
+ <h3 class="wmpp-subtitle"><?php _e("Miscellaneous", $this->plugin_slug); ?></h3>
293
+ <form action="" method="post" id="wpp_link_options" name="wpp_link_options">
294
+ <table class="form-table">
295
+ <tbody>
296
+ <tr valign="top">
297
+ <th scope="row"><label for="link_target"><?php _e("Open links in", $this->plugin_slug); ?>:</label></th>
298
+ <td>
299
+ <select name="link_target" id="link_target">
300
+ <option <?php if ( $this->user_settings['tools']['link']['target'] == '_self' ) {?>selected="selected"<?php } ?> value="_self"><?php _e("Current window", $this->plugin_slug); ?></option>
301
+ <option <?php if ( $this->user_settings['tools']['link']['target'] == '_blank' ) {?>selected="selected"<?php } ?> value="_blank"><?php _e("New tab/window", $this->plugin_slug); ?></option>
302
+ </select>
303
+ <br />
304
+ </td>
305
+ </tr>
306
+ <tr valign="top">
307
+ <th scope="row"><label for="css"><?php _e("Use plugin's stylesheet", $this->plugin_slug); ?>:</label></th>
308
+ <td>
309
+ <select name="css" id="css">
310
+ <option <?php if ($this->user_settings['tools']['css']) {?>selected="selected"<?php } ?> value="1"><?php _e("Enabled", $this->plugin_slug); ?></option>
311
+ <option <?php if (!$this->user_settings['tools']['css']) {?>selected="selected"<?php } ?> value="0"><?php _e("Disabled", $this->plugin_slug); ?></option>
312
+ </select>
313
+ <br />
314
+ <p class="description"><?php _e("By default, the plugin includes a stylesheet called wpp.css which you can use to style your popular posts listing. If you wish to use your own stylesheet or do not want it to have it included in the header section of your site, use this.", $this->plugin_slug); ?></p>
315
+ </td>
316
+ </tr>
317
+ <tr valign="top">
318
+ <td colspan="2">
319
+ <input type="hidden" name="section" value="misc" />
320
+ <input type="submit" class="button-secondary action" value="<?php _e("Apply", $this->plugin_slug); ?>" name="" />
321
+ </td>
322
+ </tr>
323
+ </tbody>
324
+ </table>
325
+ </form>
326
+ <br />
327
+ <p style="display:block; float:none; clear:both">&nbsp;</p>
328
+
329
+ <br /><br />
330
+
331
+ <p><?php _e('Wordpress Popular Posts maintains data in two separate tables: one for storing the most popular entries on a daily basis (from now on, "cache"), and another one to keep the All-time data (from now on, "historical data" or just "data"). If for some reason you need to clear the cache table, or even both historical and cache tables, please use the buttons below to do so.', $this->plugin_slug) ?></p>
332
+ <p><input type="button" name="wpp-reset-cache" id="wpp-reset-cache" class="button-secondary" value="<?php _e("Empty cache", $this->plugin_slug); ?>" onclick="confirm_reset_cache()" /> <label for="wpp-reset-cache"><small><?php _e('Use this button to manually clear entries from WPP cache only', $this->plugin_slug); ?></small></label></p>
333
+ <p><input type="button" name="wpp-reset-all" id="wpp-reset-all" class="button-secondary" value="<?php _e("Clear all data", $this->plugin_slug); ?>" onclick="confirm_reset_all()" /> <label for="wpp-reset-all"><small><?php _e('Use this button to manually clear entries from all WPP data tables', $this->plugin_slug); ?></small></label></p>
334
+ </div>
335
+ <!-- End tools -->
336
+
337
+ <!-- Start params -->
338
+ <div id="wpp_params" class="wpp_boxes"<?php if ( "params" == $current ) {?> style="display:block;"<?php } ?>>
339
+ <div>
340
+ <p><?php printf( __('With the following parameters you can customize the popular posts list when using either the <a href="%1$s">wpp_get_most_popular() template tag</a> or the <a href="%2$s">[wpp] shortcode</a>.', $this->plugin_slug),
341
+ admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#template-tags'),
342
+ admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#shortcode')
343
+ ); ?></p>
344
+ <br />
345
+ <table cellspacing="0" class="wp-list-table widefat fixed posts">
346
+ <thead>
347
+ <tr>
348
+ <th class="manage-column column-title"><?php _e('Parameter', $this->plugin_slug); ?></th>
349
+ <th class="manage-column column-title"><?php _e('What it does ', $this->plugin_slug); ?></th>
350
+ <th class="manage-column column-title"><?php _e('Possible values', $this->plugin_slug); ?></th>
351
+ <th class="manage-column column-title"><?php _e('Defaults to', $this->plugin_slug); ?></th>
352
+ <th class="manage-column column-title"><?php _e('Example', $this->plugin_slug); ?></th>
353
+ </tr>
354
+ </thead>
355
+ <tbody>
356
+ <tr>
357
+ <td><strong>header</strong></td>
358
+ <td><?php _e('Sets a heading for the list', $this->plugin_slug); ?></td>
359
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
360
+ <td><?php _e('Popular Posts', $this->plugin_slug); ?></td>
361
+ <td>header="Popular Posts"</td>
362
+ </tr>
363
+ <tr class="alternate">
364
+ <td><strong>header_start</strong></td>
365
+ <td><?php _e('Set the opening tag for the heading of the list', $this->plugin_slug); ?></td>
366
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
367
+ <td>&lt;h2&gt;</td>
368
+ <td>header_start="&lt;h2&gt;"</td>
369
+ </tr>
370
+ <tr>
371
+ <td><strong>header_end</strong></td>
372
+ <td><?php _e('Set the closing tag for the heading of the list', $this->plugin_slug); ?></td>
373
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
374
+ <td>&lt;/h2&gt;</td>
375
+ <td>header_end="&lt;/h2&gt;"</td>
376
+ </tr>
377
+ <tr class="alternate">
378
+ <td><strong>limit</strong></td>
379
+ <td><?php _e('Sets the maximum number of popular posts to be shown on the listing', $this->plugin_slug); ?></td>
380
+ <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
381
+ <td>10</td>
382
+ <td>limit=10</td>
383
+ </tr>
384
+ <tr>
385
+ <td><strong>range</strong></td>
386
+ <td><?php _e('Tells Wordpress Popular Posts to retrieve the most popular entries within the time range specified by you', $this->plugin_slug); ?></td>
387
+ <td>"daily", "weekly", "monthly", "all"</td>
388
+ <td>daily</td>
389
+ <td>range="daily"</td>
390
+ </tr>
391
+ <tr class="alternate">
392
+ <td><strong>freshness</strong></td>
393
+ <td><?php _e('Tells Wordpress Popular Posts to retrieve the most popular entries published within the time range specified by you', $this->plugin_slug); ?></td>
394
+ <td>1 (true), 0 (false)</td>
395
+ <td>0</td>
396
+ <td>freshness=1</td>
397
+ </tr>
398
+ <tr>
399
+ <td><strong>order_by</strong></td>
400
+ <td><?php _e('Sets the sorting option of the popular posts', $this->plugin_slug); ?></td>
401
+ <td>"comments", "views", "avg" <?php _e('(for average views per day)', $this->plugin_slug); ?></td>
402
+ <td>views</td>
403
+ <td>order_by="comments"</td>
404
+ </tr>
405
+ <tr class="alternate">
406
+ <td><strong>post_type</strong></td>
407
+ <td><?php _e('Defines the type of posts to show on the listing', $this->plugin_slug); ?></td>
408
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
409
+ <td>post,page</td>
410
+ <td>post_type=post,page,your-custom-post-type</td>
411
+ </tr>
412
+ <tr>
413
+ <td><strong>pid</strong></td>
414
+ <td><?php _e('If set, Wordpress Popular Posts will exclude the specified post(s) ID(s) form the listing.', $this->plugin_slug); ?></td>
415
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
416
+ <td><?php _e('None', $this->plugin_slug); ?></td>
417
+ <td>pid="60,25,31"</td>
418
+ </tr>
419
+ <tr class="alternate">
420
+ <td><strong>cat</strong></td>
421
+ <td><?php _e('If set, Wordpress Popular Posts will retrieve all entries that belong to the specified category(ies) ID(s). If a minus sign is used, the category(ies) will be excluded instead.', $this->plugin_slug); ?></td>
422
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
423
+ <td><?php _e('None', $this->plugin_slug); ?></td>
424
+ <td>cat="1,55,-74"</td>
425
+ </tr>
426
+ <tr>
427
+ <td><strong>author</strong></td>
428
+ <td><?php _e('If set, Wordpress Popular Posts will retrieve all entries created by specified author(s) ID(s).', $this->plugin_slug); ?></td>
429
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
430
+ <td><?php _e('None', $this->plugin_slug); ?></td>
431
+ <td>author="75,8,120"</td>
432
+ </tr>
433
+ <tr class="alternate">
434
+ <td><strong>title_length</strong></td>
435
+ <td><?php _e('If set, Wordpress Popular Posts will shorten each post title to "n" characters whenever possible', $this->plugin_slug); ?></td>
436
+ <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
437
+ <td>25</td>
438
+ <td>title_length=25</td>
439
+ </tr>
440
+ <tr>
441
+ <td><strong>title_by_words</strong></td>
442
+ <td><?php _e('If set to 1, Wordpress Popular Posts will shorten each post title to "n" words instead of characters', $this->plugin_slug); ?></td>
443
+ <td>1 (true), (0) false</td>
444
+ <td>0</td>
445
+ <td>title_by_words=1</td>
446
+ </tr>
447
+ <tr class="alternate">
448
+ <td><strong>excerpt_length</strong></td>
449
+ <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', $this->plugin_slug); ?></td>
450
+ <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
451
+ <td>0</td>
452
+ <td>excerpt_length=55</td>
453
+ </tr>
454
+ <tr>
455
+ <td><strong>excerpt_format</strong></td>
456
+ <td><?php _e('If set, Wordpress Popular Posts will maintaing all styling tags (strong, italic, etc) and hyperlinks found in the excerpt', $this->plugin_slug); ?></td>
457
+ <td>1 (true), (0) false</td>
458
+ <td>0</td>
459
+ <td>excerpt_format=1</td>
460
+ </tr>
461
+ <tr class="alternate">
462
+ <td><strong>excerpt_by_words</strong></td>
463
+ <td><?php _e('If set to 1, Wordpress Popular Posts will shorten the excerpt to "n" words instead of characters', $this->plugin_slug); ?></td>
464
+ <td>1 (true), (0) false</td>
465
+ <td>0</td>
466
+ <td>excerpt_by_words=1</td>
467
+ </tr>
468
+ <tr>
469
+ <td><strong>thumbnail_width</strong></td>
470
+ <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', $this->plugin_slug); ?></td>
471
+ <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
472
+ <td>15</td>
473
+ <td>thumbnail_width=30</td>
474
+ </tr>
475
+ <tr class="alternate">
476
+ <td><strong>thumbnail_height</strong></td>
477
+ <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', $this->plugin_slug); ?></td>
478
+ <td><?php _e('Positive integer', $this->plugin_slug); ?></td>
479
+ <td>15</td>
480
+ <td>thumbnail_height=30</td>
481
+ </tr>
482
+ <tr>
483
+ <td><strong>rating</strong></td>
484
+ <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', $this->plugin_slug); ?></td>
485
+ <td>1 (true), (0) false</td>
486
+ <td>0</td>
487
+ <td>rating=1</td>
488
+ </tr>
489
+ <tr class="alternate">
490
+ <td><strong>stats_comments</strong></td>
491
+ <td><?php _e('If set, Wordpress Popular Posts will show how many comments each popular post has got until now', $this->plugin_slug); ?></td>
492
+ <td>1 (true), 0 (false)</td>
493
+ <td>1</td>
494
+ <td>stats_comments=1</td>
495
+ </tr>
496
+ <tr>
497
+ <td><strong>stats_views</strong></td>
498
+ <td><?php _e('If set, Wordpress Popular Posts will show how many views each popular post has got since it was installed', $this->plugin_slug); ?></td>
499
+ <td>1 (true), (0) false</td>
500
+ <td>0</td>
501
+ <td>stats_views=1</td>
502
+ </tr>
503
+ <tr class="alternate">
504
+ <td><strong>stats_author</strong></td>
505
+ <td><?php _e('If set, Wordpress Popular Posts will show who published each popular post on the list', $this->plugin_slug); ?></td>
506
+ <td>1 (true), (0) false</td>
507
+ <td>0</td>
508
+ <td>stats_author=1</td>
509
+ </tr>
510
+ <tr>
511
+ <td><strong>stats_date</strong></td>
512
+ <td><?php _e('If set, Wordpress Popular Posts will display the date when each popular post on the list was published', $this->plugin_slug); ?></td>
513
+ <td>1 (true), (0) false</td>
514
+ <td>0</td>
515
+ <td>stats_date=1</td>
516
+ </tr>
517
+ <tr class="alternate">
518
+ <td><strong>stats_date_format</strong></td>
519
+ <td><?php _e('Sets the date format', $this->plugin_slug); ?></td>
520
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
521
+ <td>0</td>
522
+ <td>stats_date_format='F j, Y'</td>
523
+ </tr>
524
+ <tr>
525
+ <td><strong>stats_category</strong></td>
526
+ <td><?php _e('If set, Wordpress Popular Posts will display the category', $this->plugin_slug); ?></td>
527
+ <td>1 (true), (0) false</td>
528
+ <td>0</td>
529
+ <td>stats_category=1</td>
530
+ </tr>
531
+ <tr class="alternate">
532
+ <td><strong>wpp_start</strong></td>
533
+ <td><?php _e('Sets the opening tag for the listing', $this->plugin_slug); ?></td>
534
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
535
+ <td>&lt;ul&gt;</td>
536
+ <td>wpp_start="&lt;ul&gt;"</td>
537
+ </tr>
538
+ <tr>
539
+ <td><strong>wpp_end</strong></td>
540
+ <td><?php _e('Sets the closing tag for the listing', $this->plugin_slug); ?></td>
541
+ <td><?php _e('Text string', $this->plugin_slug); ?></td>
542
+ <td>&lt;/ul&gt;</td>
543
+ <td>wpp_end="&lt;/ul&gt;"</td>
544
+ </tr>
545
+ <tr class="alternate">
546
+ <td><strong>post_html</strong></td>
547
+ <td><?php _e('Sets the HTML structure of each post', $this->plugin_slug); ?></td>
548
+ <td><?php _e('Text string, custom HTML', $this->plugin_slug); ?>.<br /><br /><strong><?php _e('Available Content Tags', $this->plugin_slug); ?>:</strong> <br /><em>{thumb}</em> (<?php _e('displays thumbnail linked to post/page', $this->plugin_slug); ?>)<br /> <em>{title}</em> (<?php _e('displays linked post/page title', $this->plugin_slug); ?>)<br /> <em>{summary}</em> (<?php _e('displays post/page excerpt, and requires excerpt_length to be greater than 0', $this->plugin_slug); ?>)<br /> <em>{stats}</em> (<?php _e('displays the default stats tags', $this->plugin_slug); ?>)<br /> <em>{rating}</em> (<?php _e('displays post/page current rating, requires WP-PostRatings installed and enabled', $this->plugin_slug); ?>)<br /> <em>{score}</em> (<?php _e('displays post/page current rating as an integer, requires WP-PostRatings installed and enabled', $this->plugin_slug); ?>)<br /> <em>{url}</em> (<?php _e('outputs the URL of the post/page', $this->plugin_slug); ?>)<br /> <em>{text_title}</em> (<?php _e('displays post/page title, no link', $this->plugin_slug); ?>)<br /> <em>{author}</em> (<?php _e('displays linked author name, requires stats_author=1', $this->plugin_slug); ?>)<br /> <em>{category}</em> (<?php _e('displays linked category name, requires stats_category=1', $this->plugin_slug); ?>)<br /> <em>{views}</em> (<?php _e('displays views count only, no text', $this->plugin_slug); ?>)<br /> <em>{comments}</em> (<?php _e('displays comments count only, no text, requires stats_comments=1', $this->plugin_slug); ?>)</td>
549
+ <td>&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;</td>
550
+ <td>post_html="&lt;li&gt;{thumb} &lt;a href='{url}'&gt;{text_title}&lt;/a&gt; &lt;/li&gt;"</td>
551
+ </tr>
552
+ </tbody>
553
+ </table>
554
+ </div>
555
+ </div>
556
+ <!-- End params -->
557
+
558
+ <!-- Start faq -->
559
+ <div id="wpp_faq" class="wpp_boxes"<?php if ( "faq" == $current ) {?> style="display:block;"<?php } ?>>
560
+ <h4 id="widget-title">&raquo; <a href="#" rel="q-1"><?php _e('What does "Title" do?', $this->plugin_slug); ?></a></h4>
561
+
562
+ <div class="wpp-ans" id="q-1">
563
+ <p><?php _e('It allows you to show a heading for your most popular posts listing. If left empty, no heading will be displayed at all.', $this->plugin_slug); ?></p>
564
+ </div>
565
+
566
+ <h4 id="time-range">&raquo; <a href="#" rel="q-2"><?php _e('What is Time Range for?', $this->plugin_slug); ?></a></h4>
567
+ <div class="wpp-ans" id="q-2">
568
+ <p><?php _e('It will tell Wordpress Popular Posts to retrieve all posts with most views / comments within the selected time range.', $this->plugin_slug); ?></p>
569
+ </div>
570
+
571
+ <h4 id="sorting">&raquo; <a href="#" rel="q-3"><?php _e('What is "Sort post by" for?', $this->plugin_slug); ?></a></h4>
572
+ <div class="wpp-ans" id="q-3">
573
+ <p><?php _e('It allows you to decide whether to order your popular posts listing by total views, comments, or average views per day.', $this->plugin_slug); ?></p>
574
+ </div>
575
+
576
+ <h4 id="display-rating">&raquo; <a href="#" rel="q-4"><?php _e('What does "Display post rating" do?', $this->plugin_slug); ?></a></h4>
577
+ <div class="wpp-ans" id="q-4">
578
+ <p><?php _e('If checked, Wordpress Popular Posts will show how your readers are rating your most popular posts. This feature requires having WP-PostRatings plugin installed and enabled on your blog for it to work.', $this->plugin_slug); ?></p>
579
+ </div>
580
+
581
+ <h4 id="shorten-title">&raquo; <a href="#" rel="q-5"><?php _e('What does "Shorten title" do?', $this->plugin_slug); ?></a></h4>
582
+ <div class="wpp-ans" id="q-5">
583
+ <p><?php _e('If checked, all posts titles will be shortened to "n" characters/words. A new "Shorten title to" option will appear so you can set it to whatever you like.', $this->plugin_slug); ?></p>
584
+ </div>
585
+
586
+ <h4 id="display-excerpt">&raquo; <a href="#" rel="q-6"><?php _e('What does "Display post excerpt" do?', $this->plugin_slug); ?></a></h4>
587
+ <div class="wpp-ans" id="q-6">
588
+ <p><?php _e('If checked, Wordpress Popular Posts will also include a small extract of your posts in the list. Similarly to the previous option, you will be able to decide how long the post excerpt should be.', $this->plugin_slug); ?></p>
589
+ </div>
590
+
591
+ <h4 id="keep-format">&raquo; <a href="#" rel="q-7"><?php _e('What does "Keep text format and links" do?', $this->plugin_slug); ?></a></h4>
592
+ <div class="wpp-ans" id="q-7">
593
+ <p><?php _e('If checked, and if the Post Excerpt feature is enabled, Wordpress Popular Posts will keep the styling tags (eg. bold, italic, etc) that were found in the excerpt. Hyperlinks will remain intact, too.', $this->plugin_slug); ?></p>
594
+ </div>
595
+
596
+ <h4 id="filter-post-type">&raquo; <a href="#" rel="q-8"><?php _e('What is "Post type" for?', $this->plugin_slug); ?></a></h4>
597
+ <div class="wpp-ans" id="q-8">
598
+ <p><?php _e('This filter allows you to decide which post types to show on the listing. By default, it will retrieve only posts and pages (which should be fine for most cases).', $this->plugin_slug); ?></p>
599
+ </div>
600
+
601
+ <h4 id="filter_category">&raquo; <a href="#" rel="q-9"><?php _e('What is "Category(ies) ID(s)" for?', $this->plugin_slug); ?></a></h4>
602
+ <div class="wpp-ans" id="q-9">
603
+ <p><?php _e('This filter allows you to select which categories should be included or excluded from the listing. A negative sign in front of the category ID number will exclude posts belonging to it from the list, for example. You can specify more than one ID with a comma separated list.', $this->plugin_slug); ?></p>
604
+ </div>
605
+
606
+ <h4 id="filter-author">&raquo; <a href="#" rel="q-10"><?php _e('What is "Author(s) ID(s)" for?', $this->plugin_slug); ?></a></h4>
607
+ <div class="wpp-ans" id="q-10">
608
+ <p><?php _e('Just like the Category filter, this one lets you filter posts by author ID. You can specify more than one ID with a comma separated list.', $this->plugin_slug); ?></p>
609
+ </div>
610
+
611
+ <h4 id="display-thumb">&raquo; <a href="#" rel="q-11"><?php _e('What does "Display post thumbnail" do?', $this->plugin_slug); ?></a></h4>
612
+ <div class="wpp-ans" id="q-11">
613
+ <p><?php _e('If checked, Wordpress Popular Posts will attempt to retrieve the thumbnail of each post. You can set up the source of the thumbnail via Settings - Wordpress Popular Posts - Tools.', $this->plugin_slug); ?></p>
614
+ </div>
615
+
616
+ <h4 id="stats-comments">&raquo; <a href="#" rel="q-12"><?php _e('What does "Display comment count" do?', $this->plugin_slug); ?></a></h4>
617
+ <div class="wpp-ans" id="q-12">
618
+ <p><?php _e('If checked, Wordpress Popular Posts will display how many comments each popular post has got in the selected Time Range.', $this->plugin_slug); ?></p>
619
+ </div>
620
+
621
+ <h4 id="stats-views">&raquo; <a href="#" rel="q-13"><?php _e('What does "Display views" do?', $this->plugin_slug); ?></a></h4>
622
+ <div class="wpp-ans" id="q-13">
623
+ <p><?php _e('If checked, Wordpress Popular Posts will show how many pageviews a single post has gotten in the selected Time Range.', $this->plugin_slug); ?></p>
624
+ </div>
625
+
626
+ <h4 id="stats-author">&raquo; <a href="#" rel="q-14"><?php _e('What does "Display author" do?', $this->plugin_slug); ?></a></h4>
627
+ <div class="wpp-ans" id="q-14">
628
+ <p><?php _e('If checked, Wordpress Popular Posts will display the name of the author of each entry listed.', $this->plugin_slug); ?></p>
629
+ </div>
630
+
631
+ <h4 id="stats-date">&raquo; <a href="#" rel="q-15"><?php _e('What does "Display date" do?', $this->plugin_slug); ?></a></h4>
632
+ <div class="wpp-ans" id="q-15">
633
+ <p><?php _e('If checked, Wordpress Popular Posts will display the date when each popular posts was published.', $this->plugin_slug); ?></p>
634
+ </div>
635
+
636
+ <h4 id="stats-cat">&raquo; <a href="#" rel="q-16"><?php _e('What does "Display category" do?', $this->plugin_slug); ?></a></h4>
637
+ <div class="wpp-ans" id="q-16">
638
+ <p><?php _e('If checked, Wordpress Popular Posts will display the category of each post.', $this->plugin_slug); ?></p>
639
+ </div>
640
+
641
+ <h4 id="custom-html-markup">&raquo; <a href="#" rel="q-17"><?php _e('What does "Use custom HTML Markup" do?', $this->plugin_slug); ?></a></h4>
642
+ <div class="wpp-ans" id="q-17">
643
+ <p><?php _e('If checked, you will be able to customize the HTML markup of your popular posts listing. For example, you can decide whether to wrap your posts in an unordered list, an ordered list, a div, etc. If you know xHTML/CSS, this is for you!', $this->plugin_slug); ?></p>
644
+ </div>
645
+
646
+ <h4>&raquo; <a href="#" rel="q-18"><?php _e('What are "Content Tags"?', $this->plugin_slug); ?></a></h4>
647
+ <div class="wpp-ans" id="q-18">
648
+ <p><?php echo sprintf( __('Content Tags are codes to display a variety of items on your popular posts custom HTML structure. For example, setting it to "{title}: {summary}" (without the quotes) would display "Post title: excerpt of the post here". For more Content Tags, see the <a href="%s" target="_blank">Parameters</a> section.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></p>
649
+ </div>
650
+
651
+ <h4 id="template-tags">&raquo; <a href="#" rel="q-19"><?php _e('What are "Template Tags"?', $this->plugin_slug); ?></a></h4>
652
+ <div class="wpp-ans" id="q-19">
653
+ <p><?php _e('Template Tags are simply php functions that allow you to perform certain actions. For example, Wordpress Popular Posts currently supports two different template tags: wpp_get_mostpopular() and wpp_get_views().', $this->plugin_slug); ?></p>
654
+ </div>
655
+
656
+ <h4>&raquo; <a href="#" rel="q-20"><?php _e('What are the template tags that Wordpress Popular Posts supports?', $this->plugin_slug); ?></a></h4>
657
+ <div class="wpp-ans" id="q-20">
658
+ <p><?php _e('The following are the template tags supported by Wordpress Popular Posts', $this->plugin_slug); ?>:</p>
659
+ <table cellspacing="0" class="wp-list-table widefat fixed posts">
660
+ <thead>
661
+ <tr>
662
+ <th class="manage-column column-title"><?php _e('Template tag', $this->plugin_slug); ?></th>
663
+ <th class="manage-column column-title"><?php _e('What it does ', $this->plugin_slug); ?></th>
664
+ <th class="manage-column column-title"><?php _e('Parameters', $this->plugin_slug); ?></th>
665
+ <th class="manage-column column-title"><?php _e('Example', $this->plugin_slug); ?></th>
666
+ </tr>
667
+ </thead>
668
+ <tbody>
669
+ <tr>
670
+ <td><strong>wpp_get_mostpopular()</strong></td>
671
+ <td><?php printf( __('Similar to the widget functionality, this tag retrieves the most popular posts on your blog. This function also accepts <a href="%1$s">parameters</a> so you can customize your popular listing, but these are not required.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></td>
672
+ <td><?php printf( __('Please refer to the <a href="%1$s">Parameters section</a> for a complete list of attributes.', $this->plugin_slug), admin_url('options-general.php?page=wordpress-popular-posts&tab=params') ); ?></td>
673
+ <td>&lt;?php wpp_get_mostpopular(); ?&gt;<br />&lt;?php wpp_get_mostpopular("range=weekly&amp;limit=7"); ?&gt;</td>
674
+ </tr>
675
+ <tr class="alternate">
676
+ <td><strong>wpp_get_views()</strong></td>
677
+ <td><?php _e('Displays the number of views of a single post. Post ID is required or it will return false.', $this->plugin_slug); ?></td>
678
+ <td><?php _e('Post ID', $this->plugin_slug); ?>, range ("daily", "weekly", "monthly", "all")</td>
679
+ <td>&lt;?php echo wpp_get_views($post->ID); ?&gt;<br />&lt;?php echo wpp_get_views(15, 'weekly'); ?&gt;</td>
680
+ </tr>
681
+ </tbody>
682
+ </table>
683
+ </div>
684
+
685
+ <h4 id="shortcode">&raquo; <a href="#" rel="q-21"><?php _e('What are "shortcodes"?', $this->plugin_slug); ?></a></h4>
686
+ <div class="wpp-ans" id="q-21">
687
+ <p><?php echo sprintf( __('Shortcodes are similar to BB Codes, these allow us to call a php function by simply typing something like [shortcode]. With Wordpress Popular Posts, the shortcode [wpp] will let you insert a list of the most popular posts in posts content and pages too! For more information about shortcodes, please visit the <a href="%s" target="_blank">Wordpress Shortcode API</a> page.', $this->plugin_slug), 'http://codex.wordpress.org/Shortcode_API' ); ?></p>
688
+ </div>
689
+ </div>
690
+ <!-- End faq -->
691
+
692
+ <!-- Start about -->
693
+ <div id="wpp_faq" class="wpp_boxes"<?php if ( "about" == $current ) {?> style="display:block;"<?php } ?>>
694
+
695
+ <div style="float:left; width:800px;">
696
+ <h3><?php echo sprintf( __('About Wordpress Popular Posts %s', $this->plugin_slug), $this->version); ?></h3>
697
+ <p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
698
+ <ul>
699
+ <li>- Plugin refactoring based on <a href="https://github.com/tikaszvince">@tikaszvince</a>'s work (many thanks, Vince!).</li>
700
+ <li>- Added WPML support.</li>
701
+ <li>- Added experimental Wordpress Multisite support.</li>
702
+ <li>- Added bot detection.</li>
703
+ <li>- Added ability to filter posts by freshness.</li>
704
+ <li>- Added own data caching method.</li>
705
+ <li>- Added filters <em>wpp_custom_html</em>, <em>wpp_post</em>.</li>
706
+ <li>- Added action <em>wpp_update_views</em>.</li>
707
+ <li>- Dropped support on Dutch and Persian languages since the translations were outdated.</li>
708
+ <li>- Several minor fixes and improvements.</li>
709
+ </ul>
710
+ </div>
711
+
712
+ <div style="display:inline; float:right; margin:15px 0 0 0; padding:10px; width:230px; background:#f9f9f9; border: 1px solid #ccc;">
713
+ <h3 style="margin-top:0; text-align:center;"><?php _e('Do you like this plugin?', $this->plugin_slug); ?></h3>
714
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
715
+ <input type="hidden" name="cmd" value="_s-xclick">
716
+ <input type="hidden" name="hosted_button_id" value="RP9SK8KVQHRKS">
717
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="display:block; margin:0 auto;">
718
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
719
+ </form>
720
+ <p><?php _e( 'Each donation motivates me to keep releasing free stuff for the Wordpress community!', $this->plugin_slug ); ?></p>
721
+ <p><?php echo sprintf( __('You can <a href="%s" target="_blank">leave a review</a>, too!', $this->plugin_slug), 'http://wordpress.org/support/view/plugin-reviews/wordpress-popular-posts' ); ?></p>
722
+ </div>
723
+
724
+ <div style="display:inline; float:right; clear:right; margin:15px 0 0 0; padding:10px; width:230px; background:#f9f9f9; border: 1px solid #ccc;">
725
+ <h3 style="margin-top:0; text-align:center;"><?php _e('Need help?', $this->plugin_slug); ?></h3>
726
+ <p><?php echo sprintf( __('Visit <a href="%s" target="_blank">the forum</a> for support, questions and feedback.', $this->plugin_slug), 'http://wordpress.org/support/plugin/wordpress-popular-posts' ); ?></p>
727
+ <p><?php _e('Let\'s make this plugin even better!', $this->plugin_slug); ?></p>
728
+ </div>
729
+ </div>
730
+ <!-- End about -->
731
+
732
+ </div>
views/form.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <p>
2
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#widget-title'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
3
+ <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" class="widefat" />
4
+ </p>
5
+
6
+ <p>
7
+ <label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e('Show up to', 'wordpress-popular-posts'); ?>:</label><br />
8
+ <input id="<?php echo $this->get_field_id( 'limit' ); ?>" name="<?php echo $this->get_field_name( 'limit' ); ?>" value="<?php echo $instance['limit']; ?>" class="widefat" style="width:50px!important" /> <?php _e('posts', 'wordpress-popular-posts'); ?>
9
+ </p>
10
+
11
+ <p>
12
+ <label for="<?php echo $this->get_field_id( 'order_by' ); ?>"><?php _e('Sort posts by', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#sorting'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
13
+ <select id="<?php echo $this->get_field_id( 'order_by' ); ?>" name="<?php echo $this->get_field_name( 'order_by' ); ?>" class="widefat">
14
+ <option value="comments" <?php if ( 'comments' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Comments', 'wordpress-popular-posts'); ?></option>
15
+ <option value="views" <?php if ( 'views' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Total views', 'wordpress-popular-posts'); ?></option>
16
+ <option value="avg" <?php if ( 'avg' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Avg. daily views', 'wordpress-popular-posts'); ?></option>
17
+ </select>
18
+ </p>
19
+
20
+ <br /><hr /><br />
21
+
22
+ <legend><strong><?php _e('Filters', 'wordpress-popular-posts'); ?></strong></legend><br />
23
+
24
+ <label for="<?php echo $this->get_field_id( 'range' ); ?>"><?php _e('Time Range', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#time-range'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
25
+ <select id="<?php echo $this->get_field_id( 'range' ); ?>" name="<?php echo $this->get_field_name( 'range' ); ?>" class="widefat" style="margin-bottom:5px;">
26
+ <option value="daily" <?php if ( 'daily' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 24 hours', 'wordpress-popular-posts'); ?></option>
27
+ <option value="weekly" <?php if ( 'weekly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 7 days', 'wordpress-popular-posts'); ?></option>
28
+ <option value="monthly" <?php if ( 'monthly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 30 days', 'wordpress-popular-posts'); ?></option>
29
+ <option value="all" <?php if ( 'all' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('All-time', 'wordpress-popular-posts'); ?></option>
30
+ </select><br />
31
+
32
+ <input type="checkbox" class="checkbox" <?php echo ($instance['freshness']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'freshness' ); ?>" name="<?php echo $this->get_field_name( 'freshness' ); ?>" /> <label for="<?php echo $this->get_field_id( 'freshness' ); ?>"><small><?php _e('Display only posts published within the selected Time Range', 'wordpress-popular-posts'); ?></small></label><br /><br />
33
+
34
+ <label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e('Post type(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-post-type'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
35
+ <input id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>" value="<?php echo $instance['post_type']; ?>" class="widefat" /><br /><br />
36
+
37
+ <label for="<?php echo $this->get_field_id( 'pid' ); ?>"><?php _e('Post(s) ID(s) to exclude', 'wordpress-popular-posts'); ?>:</label>
38
+ <input id="<?php echo $this->get_field_id( 'pid' ); ?>" name="<?php echo $this->get_field_name( 'pid' ); ?>" value="<?php echo $instance['pid']; ?>" class="widefat" /><br /><br />
39
+
40
+ <label for="<?php echo $this->get_field_id( 'cat' ); ?>"><?php _e('Category(ies) ID(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-category'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
41
+ <input id="<?php echo $this->get_field_id( 'cat' ); ?>" name="<?php echo $this->get_field_name( 'cat' ); ?>" value="<?php echo $instance['cat']; ?>" class="widefat" /><br /><br />
42
+
43
+ <label for="<?php echo $this->get_field_id( 'uid' ); ?>"><?php _e('Author(s) ID(s)', 'wordpress-popular-posts'); ?>:</label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#filter-author'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
44
+ <input id="<?php echo $this->get_field_id( 'uid' ); ?>" name="<?php echo $this->get_field_name( 'uid' ); ?>" value="<?php echo $instance['author']; ?>" class="widefat" /><br /><br />
45
+
46
+ <br /><hr /><br />
47
+
48
+ <legend><strong><?php _e('Posts settings', 'wordpress-popular-posts'); ?></strong></legend>
49
+ <br />
50
+
51
+ <div style="display:<?php if ( function_exists('the_ratings_results') ) : ?>block<?php else: ?>none<?php endif; ?>;">
52
+ <input type="checkbox" class="checkbox" <?php echo ($instance['rating']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'rating' ); ?>" name="<?php echo $this->get_field_name( 'rating' ); ?>" /> <label for="<?php echo $this->get_field_id( 'rating' ); ?>"><?php _e('Display post rating', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-rating'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
53
+ </div>
54
+
55
+ <input type="checkbox" class="checkbox" <?php echo ($instance['shorten_title']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>"><?php _e('Shorten title', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#shorten-title'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
56
+
57
+ <div style="display:<?php if ($instance['shorten_title']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
58
+ <label for="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>"><?php _e('Shorten title to', 'wordpress-popular-posts'); ?> <input id="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-length' ); ?>" value="<?php echo $instance['shorten_title']['length']; ?>" class="widefat" style="width:50px!important" /></label><br />
59
+ <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="0" <?php echo (!isset($instance['shorten_title']['words']) || !$instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
60
+ <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="1" <?php echo (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label>
61
+ </div>
62
+
63
+ <input type="checkbox" class="checkbox" <?php echo ($instance['post-excerpt']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>"><?php _e('Display post excerpt', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-excerpt'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
64
+
65
+ <div style="display:<?php if ($instance['post-excerpt']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
66
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-format' ); ?>" <?php echo ($instance['post-excerpt']['keep_format']) ? 'checked="checked"' : ''; ?> /> <label for="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>"><?php _e('Keep text format and links', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#keep-format'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br /><br />
67
+ <label for="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>"><?php _e('Excerpt length', 'wordpress-popular-posts'); ?>: <input id="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-length' ); ?>" value="<?php echo $instance['post-excerpt']['length']; ?>" class="widefat" style="width:50px!important" /></label><br />
68
+
69
+ <label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="0" <?php echo (!isset($instance['post-excerpt']['words']) || !$instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
70
+ <label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="1" <?php echo (isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label>
71
+ </div>
72
+
73
+ <input type="checkbox" class="checkbox" <?php echo ($instance['thumbnail']['active'] && $this->thumbnailing) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>"><?php _e('Display post thumbnail', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#display-thumb'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
74
+
75
+ <div style="display:<?php if ($instance['thumbnail']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
76
+ <label for="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>"><?php _e('Width', 'wordpress-popular-posts'); ?>:</label>
77
+ <input id="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-width' ); ?>" value="<?php echo $instance['thumbnail']['width']; ?>" class="widefat" style="width:50px!important" <?php echo ($this->thumbnailing) ? '' : 'disabled="disabled"' ?> /> <?php _e('px', 'wordpress-popular-posts'); ?><br />
78
+
79
+ <label for="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>"><?php _e('Height', 'wordpress-popular-posts'); ?>:</label>
80
+ <input id="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-height' ); ?>" value="<?php echo $instance['thumbnail']['height']; ?>" class="widefat" style="width:50px!important" <?php echo ($this->thumbnailing) ? '' : 'disabled="disabled"' ?> /> <?php _e('px', 'wordpress-popular-posts'); ?>
81
+ </div>
82
+
83
+ <br /><hr /><br />
84
+
85
+ <legend><strong><?php _e('Stats Tag settings', 'wordpress-popular-posts'); ?></strong></legend><br />
86
+
87
+ <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['comment_count']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'comment_count' ); ?>" name="<?php echo $this->get_field_name( 'comment_count' ); ?>" /> <label for="<?php echo $this->get_field_id( 'comment_count' ); ?>"><?php _e('Display comment count', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-comments'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
88
+
89
+ <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['views']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'views' ); ?>" name="<?php echo $this->get_field_name( 'views' ); ?>" /> <label for="<?php echo $this->get_field_id( 'views' ); ?>"><?php _e('Display views', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-views'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
90
+
91
+ <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['author']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'author' ); ?>" name="<?php echo $this->get_field_name( 'author' ); ?>" /> <label for="<?php echo $this->get_field_id( 'author' ); ?>"><?php _e('Display author', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-author'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
92
+
93
+ <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['date']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'date' ); ?>" name="<?php echo $this->get_field_name( 'date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'date' ); ?>"><?php _e('Display date', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-date'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
94
+
95
+ <div style="display:<?php if ($instance['stats_tag']['date']['active']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
96
+ <legend><strong><?php _e('Date Format', 'wordpress-popular-posts'); ?></strong></legend><br />
97
+
98
+ <label title='<?php echo get_option('date_format'); ?>'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='<?php echo get_option('date_format'); ?>' <?php echo ($instance['stats_tag']['date']['format'] == get_option('date_format')) ? 'checked="checked"' : ''; ?> /><?php echo date_i18n(get_option('date_format'), time()); ?></label> <small>(<a href="<?php echo admin_url('options-general.php'); ?>" title="<?php _e('Wordpress Date Format', 'wordpress-popular-posts'); ?>" target="_blank"><?php _e('Wordpress Date Format', 'wordpress-popular-posts'); ?></a>)</small><br />
99
+ <label title='F j, Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='F j, Y' <?php echo ($instance['stats_tag']['date']['format'] == 'F j, Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('F j, Y', time()); ?></label><br />
100
+ <label title='Y/m/d'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='Y/m/d' <?php echo ($instance['stats_tag']['date']['format'] == 'Y/m/d') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('Y/m/d', time()); ?></label><br />
101
+ <label title='m/d/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='m/d/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'm/d/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('m/d/Y', time()); ?></label><br />
102
+ <label title='d/m/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='d/m/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'd/m/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('d/m/Y', time()); ?></label>
103
+ </div>
104
+
105
+ <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['category']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'category' ); ?>" name="<?php echo $this->get_field_name( 'category' ); ?>" /> <label for="<?php echo $this->get_field_id( 'category' ); ?>"><?php _e('Display category', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#stats-cat'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
106
+
107
+ <br /><hr /><br />
108
+
109
+ <legend><strong><?php _e('HTML Markup settings', 'wordpress-popular-posts'); ?></strong></legend><br />
110
+
111
+ <input type="checkbox" class="checkbox" <?php echo ($instance['markup']['custom_html']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'custom_html' ); ?>" name="<?php echo $this->get_field_name( 'custom_html' ); ?>" /> <label for="<?php echo $this->get_field_id( 'custom_html' ); ?>"><?php _e('Use custom HTML Markup', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo admin_url('options-general.php?page=wordpress-popular-posts&tab=faq#custom-html-markup'); ?>" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
112
+
113
+ <div style="display:<?php if ($instance['markup']['custom_html']) : ?>block<?php else: ?>none<?php endif; ?>; width:90%; margin:10px 0; padding:3% 5%; background:#f5f5f5;">
114
+ <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'title-start' ); ?>"><?php _e('Before / after title', 'wordpress-popular-posts'); ?>:</label> <br />
115
+ <input type="text" id="<?php echo $this->get_field_id( 'title-start' ); ?>" name="<?php echo $this->get_field_name( 'title-start' ); ?>" value="<?php echo $instance['markup']['title-start']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'title-end' ); ?>" name="<?php echo $this->get_field_name( 'title-end' ); ?>" value="<?php echo $instance['markup']['title-end']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
116
+
117
+ <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'wpp_start' ); ?>"><?php _e('Before / after Popular Posts', 'wordpress-popular-posts'); ?>:</label> <br />
118
+ <input type="text" id="<?php echo $this->get_field_id( 'wpp-start' ); ?>" name="<?php echo $this->get_field_name( 'wpp-start' ); ?>" value="<?php echo $instance['markup']['wpp-start']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'wpp-end' ); ?>" name="<?php echo $this->get_field_name( 'wpp-end' ); ?>" value="<?php echo $instance['markup']['wpp-end']; ?>" class="widefat" style="width:49%!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
119
+
120
+ <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'post-html' ); ?>"><?php _e('Post HTML Markup', 'wordpress-popular-posts'); ?>:</label> <br />
121
+ <textarea class="widefat" rows="10" id="<?php echo $this->get_field_id( 'post-html' ); ?>" name="<?php echo $this->get_field_name( 'post-html' ); ?>"><?php echo $instance['markup']['post-html']; ?></textarea>
122
+ </div>
123
+ <br />
views/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden ?>
wordpress-popular-posts.php CHANGED
@@ -2,45 +2,142 @@
2
  /*
3
  Plugin Name: Wordpress Popular Posts
4
  Plugin URI: http://wordpress.org/extend/plugins/wordpress-popular-posts
5
- Description: Showcases your most popular posts to your visitors on your blog's sidebar. Use Wordpress Popular Posts as a widget or place it anywhere on your theme using <strong>&lt;?php wpp_get_mostpopular(); ?&gt;</strong>
6
- Version: 2.3.7
7
- Author: H&eacute;ctor Cabrera
8
  Author URI: http://cabrerahector.com
9
- License: GPL2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  */
11
 
12
- if (basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__)) exit('Please do not load this page directly');
13
-
14
- /**
15
- * Load Wordpress Popular Posts to widgets_init.
16
- * @since 2.0
17
- */
18
- add_action('widgets_init', 'load_wpp');
19
-
20
- function load_wpp() {
21
- register_widget('WordpressPopularPosts');
22
- }
23
 
24
  /**
25
  * Wordpress Popular Posts class.
26
  */
27
  if ( !class_exists('WordpressPopularPosts') ) {
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  class WordpressPopularPosts extends WP_Widget {
30
- // plugin global variables
31
- var $version = "2.3.7";
32
- var $qTrans = false;
33
- var $postRating = false;
34
- var $thumb = false;
35
- var $pluginDir = "";
36
- var $charset = "UTF-8";
37
- var $magicquotes = false;
38
- var $default_thumbnail = "";
39
- var $user_ops = array();
40
- var $defaults = array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  'title' => '',
42
  'limit' => 10,
43
  'range' => 'daily',
 
44
  'order_by' => 'views',
45
  'post_type' => 'post,page',
46
  'pid' => '',
@@ -64,8 +161,8 @@ if ( !class_exists('WordpressPopularPosts') ) {
64
  ),
65
  'rating' => false,
66
  'stats_tag' => array(
67
- 'comment_count' => true,
68
- 'views' => false,
69
  'author' => false,
70
  'date' => array(
71
  'active' => false,
@@ -84,11 +181,19 @@ if ( !class_exists('WordpressPopularPosts') ) {
84
  'title-end' => '&lt;/h2&gt;'
85
  )
86
  );
87
- var $wpp_user_settings_def = array(
 
 
 
 
 
 
 
88
  'stats' => array(
89
  'order_by' => 'views',
90
  'limit' => 10,
91
- 'post_type' => 'post,page'
 
92
  ),
93
  'tools' => array(
94
  'ajax' => false,
@@ -103,7 +208,9 @@ if ( !class_exists('WordpressPopularPosts') ) {
103
  'resize' => false,
104
  'default' => ''
105
  ),
106
- 'log_loggedin' => false,
 
 
107
  'cache' => array(
108
  'active' => false,
109
  'interval' => array(
@@ -115,104 +222,129 @@ if ( !class_exists('WordpressPopularPosts') ) {
115
  );
116
 
117
  /**
118
- * WPP's Constructor
119
- * Since 1.4.0
 
 
120
  */
121
- function WordpressPopularPosts() {
122
- global $wp_version;
 
 
 
 
 
 
 
123
 
124
- // Set default title
125
- $this->defaults['title'] = __('Popular Posts', 'wordpress-popular-posts');
 
126
 
127
- // widget settings
128
- $widget_ops = array( 'classname' => 'popular-posts', 'description' => __('The most Popular Posts on your blog.', 'wordpress-popular-posts') );
 
 
 
 
129
 
130
- // widget control settings
131
- $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'wpp' );
132
 
133
- // create the widget
134
- $this->WP_Widget( 'wpp', 'Wordpress Popular Posts', $widget_ops, $control_ops );
135
 
136
- // set plugin path
137
- if (empty($this->pluginDir)) $this->pluginDir = plugin_dir_url(__FILE__);
138
 
139
- // set charset
140
- $this->charset = get_bloginfo('charset');
141
 
142
- // detect PHP magic quotes
143
- $this->magicquotes = get_magic_quotes_gpc();
 
 
 
 
 
 
 
144
 
145
- // get user options
146
- $this->user_ops = get_option('wpp_settings_config');
147
- if ( !$this->user_ops ) {
148
- add_option('wpp_settings_config', $this->wpp_user_settings_def);
149
- $this->user_ops = $this->wpp_user_settings_def;
 
 
150
  }
151
 
152
- // set default thumbnail
153
- $this->default_thumbnail = $this->pluginDir . "no_thumb.jpg";
154
- $this->wpp_user_settings_def['tools']['thumbnail']['default'] = $this->default_thumbnail;
155
 
156
- if ( !empty($this->user_ops['tools']['thumbnail']['default']) ) {
157
- $this->default_thumbnail = $this->user_ops['tools']['thumbnail']['default'];
158
- }
 
159
 
160
- // set version and check for upgrades
161
- $wpp_ver = get_option('wpp_ver');
162
- if ( !$wpp_ver ) {
163
- add_option('wpp_ver', $this->version);
164
- } else if ( version_compare($wpp_ver, $this->version, '<') ) {
165
- $this->wpp_upgrade();
166
- }
167
 
168
- // print stylesheet
169
- if ($this->user_ops['tools']['css']) {
170
- add_action('get_header', array(&$this, 'wpp_print_stylesheet'));
171
- }
172
 
173
- //wpp_ajax_get_popular
174
- add_action('wp_ajax_wpp_ajax_get_popular', array(&$this, 'ajax_getpopular'));
175
- add_action('wp_ajax_nopriv_wpp_ajax_get_popular', array(&$this, 'ajax_getpopular'));
176
 
177
- if ($this->user_ops['tools']['ajax']) {
178
- remove_action('the_content', array(&$this,'wpp_update') );
179
- // add ajax update to wp_ajax_ hook
180
- if ( isset($this->user_ops['tools']['log_loggedin']) && $this->user_ops['tools']['log_loggedin'] == 1 ) {
181
- add_action('wp_ajax_wpp_update', array(&$this, 'wpp_ajax_update'));
182
- }
183
- add_action('wp_ajax_nopriv_wpp_update', array(&$this, 'wpp_ajax_update'));
184
- add_action('wp_head', array(&$this, 'wpp_print_ajax'));
185
 
186
- } else {
187
- // stop Wordpress from preloading next post and thus calling single.php twice!
188
- remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
189
 
190
- if ( isset($this->user_ops['tools']['log_loggedin']) && $this->user_ops['tools']['log_loggedin'] == 1 ) {
191
- remove_action('wp_ajax_wpp_update', array(&$this, 'wpp_ajax_update'));
192
- }
193
- remove_action('wp_ajax_nopriv_wpp_update', array(&$this, 'wpp_ajax_update'));
194
- remove_action('wp_head', array(&$this, 'wpp_print_ajax'));
195
- // add update action, no ajax
196
- add_action('the_content', array(&$this,'wpp_update') );
197
- }
198
 
199
- // add ajax table truncation to wp_ajax_ hook
200
- add_action('wp_ajax_wpp_clear_cache', array(&$this, 'wpp_clear_data'));
201
- add_action('wp_ajax_wpp_clear_all', array(&$this, 'wpp_clear_data'));
202
 
203
- // activate textdomain for translations
204
- add_action('init', array(&$this, 'wpp_textdomain'));
 
 
205
 
206
- // activate admin page
207
- add_action('admin_menu', array(&$this, 'add_wpp_admin'));
208
- // enqueue scripts
209
- add_action('admin_enqueue_scripts', array(&$this, 'wpp_admin_enqueue_scripts'));
210
- add_action('admin_init', array(&$this, 'wpp_tb_setup') );
 
 
 
 
 
 
 
 
 
 
 
 
 
211
 
212
- // cache maintenance schedule
213
- register_deactivation_hook(__FILE__, array(&$this, 'wpp_deactivation'));
214
- add_action('wpp_cache_event', array(&$this, 'wpp_cache_maintenance'));
215
- if (!wp_next_scheduled('wpp_cache_event')) {
 
 
216
  $tomorrow = time() + 86400;
217
  $midnight = mktime(0, 0, 0,
218
  date("m", $tomorrow),
@@ -221,45 +353,47 @@ if ( !class_exists('WordpressPopularPosts') ) {
221
  wp_schedule_event( $midnight, 'daily', 'wpp_cache_event' );
222
  }
223
 
224
- // Wordpress version check
225
- if (version_compare($wp_version, '3.3', '<')) add_action('admin_notices', array(&$this, 'wpp_update_warning'));
226
-
227
- // PHP version check
228
- if ( version_compare(phpversion(), '5.2.0', '<') ) add_action('admin_notices', array(&$this, 'php_update_warning'));
229
 
230
- // qTrans plugin support
231
- if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) $this->qTrans = true;
232
-
233
- // WP-Post Ratings plugin support
234
- if (function_exists('the_ratings_results')) $this->postRating = true;
235
-
236
- // Can we create thumbnails?
237
- if (extension_loaded('gd') && function_exists('gd_info') && version_compare(phpversion(), '5.2.0', '>=')) $this->thumb = true;
238
-
239
- // shortcode
240
- if( function_exists('add_shortcode') ){
241
- add_shortcode('wpp', array(&$this, 'wpp_shortcode'));
242
- add_shortcode('WPP', array(&$this, 'wpp_shortcode'));
243
- }
244
-
245
- // add plugin action link
246
- add_filter('plugin_action_links', array(&$this, 'wpp_action_links'), 10, 2);
247
- }
248
 
249
  /**
250
- * Builds WPP's widget
251
- * Since 2.0.0
 
 
 
252
  */
253
- function widget($args, $instance) {
254
- extract($args);
255
- //echo $widget_id;
256
-
257
- echo "<!-- Wordpress Popular Posts Plugin v". $this->version ." [W] [".$instance['range']."] [".$instance['order_by']."]". (($instance['markup']['custom_html']) ? ' [custom]' : ' [regular]') ." -->"."\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
 
259
  echo $before_widget . "\n";
260
 
261
  // has user set a title?
262
- if ($instance['title'] != '') {
263
 
264
  $title = apply_filters( 'widget_title', $instance['title'] );
265
 
@@ -270,632 +404,973 @@ if ( !class_exists('WordpressPopularPosts') ) {
270
  }
271
  }
272
 
273
- if ( $this->user_ops['tools']['ajax'] ) {
 
 
 
 
 
274
  ?>
275
- <script type="text/javascript">
276
- /* <![CDATA[ */
277
  jQuery(document).ready(function(){
278
- jQuery.get('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_ajax_get_popular', id: '<?php echo $this->number; ?>'}, function(data){
 
 
 
279
  jQuery('#<?php echo $widget_id; ?>').append(data);
280
  });
281
  });
282
- /* ]]> */
283
- </script>
284
  <?php
 
285
  } else {
286
- echo $this->get_popular_posts( $instance );
287
  }
288
 
289
  echo $after_widget . "\n";
290
- echo "<!-- End Wordpress Popular Posts Plugin v". $this->version ." -->"."\n";
291
- }
 
292
 
293
  /**
294
- * Updates each widget instance when user clicks the "save" button
295
- * Since 2.0.0
 
 
 
 
296
  */
297
- function update($new_instance, $old_instance) {
298
 
299
  $instance = $old_instance;
300
 
301
- $instance['title'] = ($this->magicquotes) ? htmlspecialchars( stripslashes(strip_tags( $new_instance['title'] )), ENT_QUOTES ) : htmlspecialchars( strip_tags( $new_instance['title'] ), ENT_QUOTES );
302
- $instance['limit'] = is_numeric($new_instance['limit']) ? $new_instance['limit'] : 10;
 
 
303
  $instance['range'] = $new_instance['range'];
304
  $instance['order_by'] = $new_instance['order_by'];
305
 
306
  // FILTERS
307
- if ($new_instance['post_type'] == "") { // user did not define the custom post type name, so we fall back to default
308
- $instance['post_type'] = 'post,page';
309
- } else {
310
- $instance['post_type'] = $new_instance['post_type'];
311
- }
312
 
313
  $instance['pid'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['pid'] ))));
314
-
315
  $instance['cat'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,-]|', '', $new_instance['cat'] ))));
316
  $instance['author'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['uid'] ))));
317
 
318
- $instance['shorten_title']['active'] = (bool) $new_instance['shorten_title-active'];
319
- $instance['shorten_title']['length'] = is_numeric($new_instance['shorten_title-length']) ? $new_instance['shorten_title-length'] : 25;
320
  $instance['shorten_title']['words'] = $new_instance['shorten_title-words'];
321
- $instance['post-excerpt']['active'] = (bool) $new_instance['post-excerpt-active'];
322
- $instance['post-excerpt']['length'] = is_numeric($new_instance['post-excerpt-length']) ? $new_instance['post-excerpt-length'] : 55;
 
 
 
323
  $instance['post-excerpt']['keep_format'] = $new_instance['post-excerpt-format'];
324
  $instance['post-excerpt']['words'] = $new_instance['post-excerpt-words'];
 
 
 
 
 
 
 
 
 
 
 
325
 
326
- if ($this->thumb) { // can create thumbnails
327
- $instance['thumbnail']['active'] = (bool) $new_instance['thumbnail-active'];
328
 
329
- if (is_numeric($new_instance['thumbnail-width']) && is_numeric($new_instance['thumbnail-height'])) {
330
  $instance['thumbnail']['width'] = $new_instance['thumbnail-width'];
331
  $instance['thumbnail']['height'] = $new_instance['thumbnail-height'];
332
- } else {
333
- $instance['thumbnail']['width'] = 15;
334
- $instance['thumbnail']['height'] = 15;
335
  }
336
 
337
- } else { // cannot create thumbnails
338
- $instance['thumbnail']['active'] = false;
339
- $instance['thumbnail']['width'] = 15;
340
- $instance['thumbnail']['height'] = 15;
341
  }
342
 
343
  if ( isset($instance['thumbnail']['thumb_selection']) )
344
  unset( $instance['thumbnail']['thumb_selection'] );
345
 
346
- $instance['rating'] = (bool) $new_instance['rating'];
347
- $instance['stats_tag']['comment_count'] = (bool) $new_instance['comment_count'];
348
- $instance['stats_tag']['views'] = (bool) $new_instance['views'];
349
- $instance['stats_tag']['author'] = (bool) $new_instance['author'];
350
- $instance['stats_tag']['date']['active'] = (bool) $new_instance['date'];
351
- $instance['stats_tag']['date']['format'] = empty($new_instance['date_format']) ? 'F j, Y' : $new_instance['date_format'];
352
- $instance['stats_tag']['category'] = (bool) $new_instance['category'];
 
 
 
353
  $instance['markup']['custom_html'] = $new_instance['custom_html'];
354
- $instance['markup']['wpp-start'] = empty($new_instance['wpp-start']) ? '&lt;ul&gt;' : htmlspecialchars( $new_instance['wpp-start'], ENT_QUOTES );
355
- $instance['markup']['wpp-end'] = empty($new_instance['wpp-end']) ? '&lt;/ul&gt;' : htmlspecialchars( $new_instance['wpp-end'], ENT_QUOTES );
356
- $instance['markup']['post-html'] = empty ($new_instance['post-html']) ? '&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;' : htmlspecialchars( $new_instance['post-html'], ENT_QUOTES );
357
- $instance['markup']['post-start'] = empty ($new_instance['post-start']) ? '&lt;li&gt;' : htmlspecialchars( $new_instance['post-start'], ENT_QUOTES );
358
- $instance['markup']['post-end'] = empty ($new_instance['post-end']) ? '&lt;/li&gt;' : htmlspecialchars( $new_instance['post-end'], ENT_QUOTES );
359
- $instance['markup']['title-start'] = empty($new_instance['title-start']) ? '' : htmlspecialchars( $new_instance['title-start'], ENT_QUOTES );
360
- $instance['markup']['title-end'] = empty($new_instance['title-end']) ? '' : htmlspecialchars( $new_instance['title-end'], ENT_QUOTES );
 
 
 
 
 
 
 
 
 
 
 
 
361
 
362
  return $instance;
363
- }
 
364
 
365
  /**
366
- * WPP widget's form
367
- * Since 2.0.0
 
 
368
  */
369
- function form($instance) {
370
 
371
- // update instance's settings
372
- /*echo "<pre>"; print_r($instance); echo "</pre>";*/
373
- $instance = $this->array_merge_recursive_distinct($this->defaults, $instance);
374
- /*echo "<pre>"; print_r($instance); echo "</pre>";*/
 
375
 
376
- // form
377
- ?>
378
- <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
379
- <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" class="widefat" /></p>
380
- <p><label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e('Show up to:', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
381
- <input id="<?php echo $this->get_field_id( 'limit' ); ?>" name="<?php echo $this->get_field_name( 'limit' ); ?>" value="<?php echo $instance['limit']; ?>" class="widefat" style="width:50px!important" /> <?php _e('posts', 'wordpress-popular-posts'); ?></p>
382
- <p><label for="<?php echo $this->get_field_id( 'range' ); ?>"><?php _e('Time Range:', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
383
- <select id="<?php echo $this->get_field_id( 'range' ); ?>" name="<?php echo $this->get_field_name( 'range' ); ?>" class="widefat">
384
- <option value="daily" <?php if ( 'daily' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 24 hours', 'wordpress-popular-posts'); ?></option>
385
- <option value="weekly" <?php if ( 'weekly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 7 days', 'wordpress-popular-posts'); ?></option>
386
- <option value="monthly" <?php if ( 'monthly' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('Last 30 days', 'wordpress-popular-posts'); ?></option>
387
- <option value="all" <?php if ( 'all' == $instance['range'] ) echo 'selected="selected"'; ?>><?php _e('All-time', 'wordpress-popular-posts'); ?></option>
388
- </select>
389
- </p>
390
- <p><label for="<?php echo $this->get_field_id( 'order_by' ); ?>"><?php _e('Sort posts by:', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small> <br />
391
- <select id="<?php echo $this->get_field_id( 'order_by' ); ?>" name="<?php echo $this->get_field_name( 'order_by' ); ?>" class="widefat">
392
- <option value="comments" <?php if ( 'comments' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Comments', 'wordpress-popular-posts'); ?></option>
393
- <option value="views" <?php if ( 'views' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Total views', 'wordpress-popular-posts'); ?></option>
394
- <option value="avg" <?php if ( 'avg' == $instance['order_by'] ) echo 'selected="selected"'; ?>><?php _e('Avg. daily views', 'wordpress-popular-posts'); ?></option>
395
- </select>
396
- </p>
397
-
398
- <fieldset style="width:214px; padding:5px;" class="widefat">
399
- <legend><?php _e('Posts settings', 'wordpress-popular-posts'); ?></legend>
400
- <div style="display:<?php if ($this->postRating) : ?>block<?php else: ?>none<?php endif; ?>">
401
- <input type="checkbox" class="checkbox" <?php echo ($instance['rating']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'rating' ); ?>" name="<?php echo $this->get_field_name( 'rating' ); ?>" /> <label for="<?php echo $this->get_field_id( 'rating' ); ?>"><?php _e('Display post rating', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
402
- </div>
403
- <input type="checkbox" class="checkbox" <?php echo ($instance['shorten_title']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'shorten_title-active' ); ?>"><?php _e('Shorten title', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
404
- <div style="display:<?php if ($instance['shorten_title']['active']) : ?>block<?php else: ?>none<?php endif; ?>">
405
- <br />
406
- <label for="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>"><?php _e('Shorten title to', 'wordpress-popular-posts'); ?> <input id="<?php echo $this->get_field_id( 'shorten_title-length' ); ?>" name="<?php echo $this->get_field_name( 'shorten_title-length' ); ?>" value="<?php echo $instance['shorten_title']['length']; ?>" class="widefat" style="width:50px!important" /></label><br />
407
- <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="0" <?php echo (!isset($instance['shorten_title']['words']) || !$instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
408
- <label for="<?php echo $this->get_field_id( 'shorten_title-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'shorten_title-words' ); ?>" value="1" <?php echo (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label><br /><br />
409
- </div>
410
- <input type="checkbox" class="checkbox" <?php echo ($instance['post-excerpt']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'post-excerpt-active' ); ?>"><?php _e('Display post excerpt', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
411
- <div style="display:<?php if ($instance['post-excerpt']['active']) : ?>block<?php else: ?>none<?php endif; ?>">
412
- <fieldset class="widefat">
413
- <legend><?php _e('Excerpt Properties', 'wordpress-popular-posts'); ?></legend><br />
414
- &nbsp;&nbsp;<input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-format' ); ?>" <?php echo ($instance['post-excerpt']['keep_format']) ? 'checked="checked"' : ''; ?> /> <label for="<?php echo $this->get_field_id( 'post-excerpt-format' ); ?>"><?php _e('Keep text format and links', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br /><br />
415
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>"><?php _e('Excerpt length:', 'wordpress-popular-posts'); ?> <input id="<?php echo $this->get_field_id( 'post-excerpt-length' ); ?>" name="<?php echo $this->get_field_name( 'post-excerpt-length' ); ?>" value="<?php echo $instance['post-excerpt']['length']; ?>" class="widefat" style="width:50px!important" /></label><br />
416
-
417
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="0" <?php echo (!isset($instance['post-excerpt']['words']) || !$instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('characters', 'wordpress-popular-posts'); ?></label><br />
418
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'post-excerpt-words' ); ?>"><input type="radio" name="<?php echo $this->get_field_name( 'post-excerpt-words' ); ?>" value="1" <?php echo (isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words']) ? 'checked="checked"' : ''; ?> /> <?php _e('words', 'wordpress-popular-posts'); ?></label><br /><br />
419
-
420
- </fieldset>
421
- <br />
422
- </div>
423
- </fieldset>
424
- <br />
425
-
426
- <fieldset class="widefat">
427
- <legend><?php _e('Filters:', 'wordpress-popular-posts'); ?> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small></legend><br />
428
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e('Post type(s):', 'wordpress-popular-posts'); ?></label><br />
429
- &nbsp;&nbsp;<input id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>" value="<?php echo $instance['post_type']; ?>" class="widefat" style="width:150px" /><br /><br />
430
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'pid' ); ?>"><?php _e('Post(s) ID(s) to exclude:', 'wordpress-popular-posts'); ?></label><br />
431
- &nbsp;&nbsp;<input id="<?php echo $this->get_field_id( 'pid' ); ?>" name="<?php echo $this->get_field_name( 'pid' ); ?>" value="<?php echo $instance['pid']; ?>" class="widefat" style="width:150px" /><br /><br />
432
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'cat' ); ?>"><?php _e('Category(ies) ID(s):', 'wordpress-popular-posts'); ?></label><br />
433
- &nbsp;&nbsp;<input id="<?php echo $this->get_field_id( 'cat' ); ?>" name="<?php echo $this->get_field_name( 'cat' ); ?>" value="<?php echo $instance['cat']; ?>" class="widefat" style="width:150px" /><br /><br />
434
- &nbsp;&nbsp;<label for="<?php echo $this->get_field_id( 'uid' ); ?>"><?php _e('Author(s) ID(s):', 'wordpress-popular-posts'); ?></label><br />
435
- &nbsp;&nbsp;<input id="<?php echo $this->get_field_id( 'uid' ); ?>" name="<?php echo $this->get_field_name( 'uid' ); ?>" value="<?php echo $instance['author']; ?>" class="widefat" style="width:150px" /><br /><br />
436
- </fieldset>
437
- <br />
438
-
439
- <fieldset style="width:214px; padding:5px;" class="widefat">
440
- <legend><?php _e('Thumbnail settings', 'wordpress-popular-posts'); ?></legend>
441
- <input type="checkbox" class="checkbox" <?php echo ($instance['thumbnail']['active'] && $this->thumb) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-active' ); ?>" /> <label for="<?php echo $this->get_field_id( 'thumbnail-active' ); ?>"><?php _e('Display post thumbnail', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
442
- <div style="display:<?php if ($instance['thumbnail']['active']) : ?>block<?php else: ?>none<?php endif; ?>">
443
- <label for="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>"><?php _e('Width:', 'wordpress-popular-posts'); ?></label>
444
- <input id="<?php echo $this->get_field_id( 'thumbnail-width' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-width' ); ?>" value="<?php echo $instance['thumbnail']['width']; ?>" class="widefat" style="width:30px!important" <?php echo ($this->thumb) ? '' : 'disabled="disabled"' ?> /> <?php _e('px', 'wordpress-popular-posts'); ?> <br />
445
- <label for="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>"><?php _e('Height:', 'wordpress-popular-posts'); ?></label>
446
- <input id="<?php echo $this->get_field_id( 'thumbnail-height' ); ?>" name="<?php echo $this->get_field_name( 'thumbnail-height' ); ?>" value="<?php echo $instance['thumbnail']['height']; ?>" class="widefat" style="width:30px!important" <?php echo ($this->thumb) ? '' : 'disabled="disabled"' ?> /> <?php _e('px', 'wordpress-popular-posts'); ?><br />
447
- </div>
448
- </fieldset>
449
-
450
- <br />
451
- <fieldset style="width:214px; padding:5px;" class="widefat">
452
- <legend><?php _e('Stats Tag settings', 'wordpress-popular-posts'); ?></legend>
453
- <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['comment_count']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'comment_count' ); ?>" name="<?php echo $this->get_field_name( 'comment_count' ); ?>" /> <label for="<?php echo $this->get_field_id( 'comment_count' ); ?>"><?php _e('Display comment count', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
454
- <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['views']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'views' ); ?>" name="<?php echo $this->get_field_name( 'views' ); ?>" /> <label for="<?php echo $this->get_field_id( 'views' ); ?>"><?php _e('Display views', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
455
- <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['author']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'author' ); ?>" name="<?php echo $this->get_field_name( 'author' ); ?>" /> <label for="<?php echo $this->get_field_id( 'author' ); ?>"><?php _e('Display author', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
456
- <input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['date']['active']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'date' ); ?>" name="<?php echo $this->get_field_name( 'date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'date' ); ?>"><?php _e('Display date', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small>
457
- <div style="display:<?php if ($instance['stats_tag']['date']['active']) : ?>block<?php else: ?>none<?php endif; ?>">
458
- <fieldset class="widefat">
459
- <legend><?php _e('Date Format', 'wordpress-popular-posts'); ?></legend>
460
- <label title='F j, Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='F j, Y' <?php echo ($instance['stats_tag']['date']['format'] == 'F j, Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('F j, Y', time()); ?></label><br />
461
- <label title='Y/m/d'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='Y/m/d' <?php echo ($instance['stats_tag']['date']['format'] == 'Y/m/d') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('Y/m/d', time()); ?></label><br />
462
- <label title='m/d/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='m/d/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'm/d/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('m/d/Y', time()); ?></label><br />
463
- <label title='d/m/Y'><input type='radio' name='<?php echo $this->get_field_name( 'date_format' ); ?>' value='d/m/Y' <?php echo ($instance['stats_tag']['date']['format'] == 'd/m/Y') ? 'checked="checked"' : ''; ?> /><?php echo date_i18n('d/m/Y', time()); ?></label><br />
464
- </fieldset>
465
- </div>
466
- <br /><input type="checkbox" class="checkbox" <?php echo ($instance['stats_tag']['category']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'category' ); ?>" name="<?php echo $this->get_field_name( 'category' ); ?>" /> <label for="<?php echo $this->get_field_id( 'category' ); ?>"><?php _e('Display category', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
467
- </fieldset>
468
- <br />
469
-
470
- <fieldset style="width:214px; padding:5px;" class="widefat">
471
- <legend><?php _e('HTML Markup settings', 'wordpress-popular-posts'); ?></legend>
472
- <input type="checkbox" class="checkbox" <?php echo ($instance['markup']['custom_html']) ? 'checked="checked"' : ''; ?> id="<?php echo $this->get_field_id( 'custom_html' ); ?>" name="<?php echo $this->get_field_name( 'custom_html' ); ?>" /> <label for="<?php echo $this->get_field_id( 'custom_html' ); ?>"><?php _e('Use custom HTML Markup', 'wordpress-popular-posts'); ?></label> <small>[<a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/options-general.php?page=wpp_admin" title="<?php _e('What is this?', 'wordpress-popular-posts'); ?>">?</a>]</small><br />
473
- <div style="display:<?php if ($instance['markup']['custom_html']) : ?>block<?php else: ?>none<?php endif; ?>">
474
- <br />
475
- <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'title-start' ); ?>"><?php _e('Before / after title:', 'wordpress-popular-posts'); ?></label> <br />
476
- <input type="text" id="<?php echo $this->get_field_id( 'title-start' ); ?>" name="<?php echo $this->get_field_name( 'title-start' ); ?>" value="<?php echo $instance['markup']['title-start']; ?>" class="widefat" style="width:80px!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'title-end' ); ?>" name="<?php echo $this->get_field_name( 'title-end' ); ?>" value="<?php echo $instance['markup']['title-end']; ?>" class="widefat" style="width:80px!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
477
- <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'wpp_start' ); ?>"><?php _e('Before / after Popular Posts:', 'wordpress-popular-posts'); ?></label> <br />
478
- <input type="text" id="<?php echo $this->get_field_id( 'wpp-start' ); ?>" name="<?php echo $this->get_field_name( 'wpp-start' ); ?>" value="<?php echo $instance['markup']['wpp-start']; ?>" class="widefat" style="width:80px!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /> <input type="text" id="<?php echo $this->get_field_id( 'wpp-end' ); ?>" name="<?php echo $this->get_field_name( 'wpp-end' ); ?>" value="<?php echo $instance['markup']['wpp-end']; ?>" class="widefat" style="width:80px!important" <?php echo ($instance['markup']['custom_html']) ? '' : 'disabled="disabled"' ?> /></p>
479
-
480
- <p style="font-size:11px"><label for="<?php echo $this->get_field_id( 'post-html' ); ?>"><?php _e('Post HTML Markup:', 'wordpress-popular-posts'); ?></label> <br />
481
- <textarea class="widefat" rows="10" id="<?php echo $this->get_field_id( 'post-html' ); ?>" name="<?php echo $this->get_field_name( 'post-html' ); ?>"><?php echo $instance['markup']['post-html']; ?></textarea>
482
- </div>
483
- </fieldset>
484
- <?php
485
- }
486
 
487
- /**
488
- * RRR Added to get local time as per WP settings
489
- * Since 2.1.6
490
- */
491
- function curdate() {
492
- return gmdate( 'Y-m-d', ( time() + ( get_option( 'gmt_offset' ) * 3600 ) ));
493
- }
494
 
495
- function now() {
496
- return current_time('mysql');
497
- }
498
 
499
  /**
500
- * Calculates script execution time
501
- * Since 2.3.0
 
502
  */
503
- function microtime_float() {
504
- list( $msec, $sec ) = explode( ' ', microtime() );
505
- $microtime = (float) $msec + (float) $sec;
506
- return $microtime;
507
- }
508
 
509
- /**
510
- * Updates popular posts data table via AJAX on post/page view
511
- * Since 2.0.0
512
- */
513
- function wpp_ajax_update() {
514
- $nonce = $_POST['token'];
515
 
516
- // is this a valid request?
517
- if ( !wp_verify_nonce($nonce, 'wpp-token') ) die("Invalid token");
518
 
519
- if (is_numeric($_POST['id']) && (intval($_POST['id']) == floatval($_POST['id'])) && ($_POST['id'] != '')) {
520
- $id = $_POST['id'];
521
- } else {
522
- die("Invalid ID");
523
- }
524
 
525
- // if we got an ID, let's update the data table
526
- global $wpdb;
 
 
 
 
527
 
528
- $wpdb->show_errors();
 
 
529
 
530
- $table = $wpdb->prefix . 'popularpostsdata';
531
- $exec_time = 0;
 
 
532
 
 
533
 
534
- // update popularpostsdata table
535
- $start = $this->microtime_float();
536
- $result = $wpdb->query("INSERT INTO {$table} (postid, day, last_viewed) VALUES ({$id}, '{$this->now()}', '{$this->now()}') ON DUPLICATE KEY UPDATE last_viewed = '{$this->now()}', pageviews = pageviews + 1;");
537
- $end = $this->microtime_float();
 
 
538
 
539
- $exec_time += round($end - $start, 6);
 
 
540
 
541
- // update popularpostsdatacache table
542
- $start = $this->microtime_float();
 
 
 
 
 
543
 
544
- $result2 = $wpdb->query("INSERT INTO {$table}cache (id, day, day_no_time) VALUES ({$id}, '{$this->now()}', '{$this->curdate()}') ON DUPLICATE KEY UPDATE pageviews = pageviews + 1, day = '{$this->now()}', day_no_time = '{$this->curdate()}';");
545
 
546
- $exec_time += round($end - $start, 6);
 
 
 
 
 
547
 
548
- if ($result && $result2) {
549
- die( "OK. Execution time: " . $exec_time . " seconds" );
550
- } else {
551
- die( "Oops: " . $wpdb->print_error() );
552
  }
553
- }
 
554
 
555
  /**
556
- * Updates popular posts data table on post/page view
557
- * Since 2.3.0
 
 
 
 
 
558
  */
559
- function wpp_update($content) {
560
 
561
- //if ( (is_single() || is_page()) && !is_user_logged_in() && !is_front_page() ) {
562
- if ( (is_single() || is_page()) && !is_front_page() && !is_preview() ) {
 
 
 
 
563
 
564
- if ( isset($this->user_ops['tools']['log_loggedin']) && $this->user_ops['tools']['log_loggedin'] == 0 && is_user_logged_in() )
565
- return $content;
566
 
567
- global $wpdb, $post;
568
 
569
- $table = $wpdb->prefix . 'popularpostsdata';
570
- $result = $wpdb->query("INSERT INTO {$table} (postid, day, last_viewed) VALUES ({$post->ID}, '{$this->now()}', '{$this->now()}') ON DUPLICATE KEY UPDATE last_viewed = '{$this->now()}', pageviews = pageviews + 1;");
571
- $result2 = $wpdb->query("INSERT INTO {$table}cache (id, day, day_no_time) VALUES ({$post->ID}, '{$this->now()}', '{$this->curdate()}') ON DUPLICATE KEY UPDATE pageviews = pageviews + 1, day = '{$this->now()}', day_no_time = '{$this->curdate()}';");
 
 
 
 
 
572
 
573
- if (!$result || !$result2) {
574
- print_r( $wpdb->print_error() );
575
- }
 
 
 
 
 
576
 
577
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
578
 
579
- return $content;
580
 
 
 
 
 
 
 
 
581
  }
582
 
583
  /**
584
- * Builds list via AJAX
585
- * Since 2.3.3
 
 
 
 
586
  */
587
- function ajax_getpopular() {
588
 
589
- if ( is_numeric($_GET['id']) && (intval($_GET['id']) == floatval($_GET['id'])) && ($_GET['id'] != '') ) {
590
- $id = $_GET['id'];
591
- } else {
592
- die("Invalid ID");
593
- }
594
 
595
- $settings = $this->get_settings();
 
 
596
 
597
- if ( isset($settings[$id]) ) {
598
 
599
- $instance = $settings[$id];
600
- echo $this->get_popular_posts( $instance );
601
 
602
- } else {
 
 
603
 
604
- echo "Invalid Widget ID";
 
 
 
 
 
 
605
 
 
 
 
606
  }
607
 
608
- die();
609
 
610
- }
611
 
612
  /**
613
- * Clears WPP datacache table
614
- * Since 2.0.0
 
 
 
615
  */
616
- function wpp_clear_data() {
617
- $token = $_POST['token'];
618
- $clear = isset($_POST['clear']) ? $_POST['clear'] : '';
619
- $key = get_option("wpp_rand");
620
 
621
- if (current_user_can('manage_options') && ($token === $key) && !empty($clear)) {
622
- global $wpdb;
623
- // set table name
624
- $table = $wpdb->prefix . "popularpostsdata";
625
- $cache = $wpdb->prefix . "popularpostsdatacache";
626
 
627
- if ($clear == 'cache') {
628
- if ( $wpdb->get_var("SHOW TABLES LIKE '$cache'") == $cache ) {
629
- $wpdb->query("TRUNCATE TABLE $cache;");
630
- _e('Success! The cache table has been cleared!', 'wordpress-popular-posts');
631
- } else {
632
- _e('Error: cache table does not exist.', 'wordpress-popular-posts');
633
- }
634
- } else if ($clear == 'all') {
635
- if ( $wpdb->get_var("SHOW TABLES LIKE '$table'") == $table && $wpdb->get_var("SHOW TABLES LIKE '$cache'") == $cache ) {
636
- $wpdb->query("TRUNCATE TABLE $table;");
637
- $wpdb->query("TRUNCATE TABLE $cache;");
638
- _e('Success! All data have been cleared!', 'wordpress-popular-posts');
639
- } else {
640
- _e('Error: one or both data tables are missing.', 'wordpress-popular-posts');
641
  }
642
- } else {
643
- _e('Invalid action.', 'wordpress-popular-posts');
 
 
 
 
644
  }
645
- } else {
646
- _e('Sorry, you do not have enough permissions to do this. Please contact the site administrator for support.', 'wordpress-popular-posts');
647
  }
648
 
649
- die();
650
- }
 
651
 
652
  /**
653
- * Installs WPP DB tables
654
- * Since 2.0.0
 
 
655
  */
656
- function wpp_install() {
657
- global $wpdb;
658
 
659
- $wpdb->show_errors();
 
660
 
661
- $sql = "";
662
- $charset_collate = "";
 
663
 
664
- require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
 
 
 
 
 
 
 
 
 
 
 
665
 
666
- if ( ! empty($wpdb->charset) ) $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
667
- if ( ! empty($wpdb->collate) ) $charset_collate .= " COLLATE $wpdb->collate";
668
 
669
  // set table name
670
- $table = $wpdb->prefix . "popularpostsdata";
671
 
672
- // does popularpostsdata table exists?
673
- if ( $wpdb->get_var("SHOW TABLES LIKE '$table'") != $table ) { // fresh setup
674
- $sql = "CREATE TABLE " . $table . " ( UNIQUE KEY id (postid), postid int(10) NOT NULL, day datetime NOT NULL default '0000-00-00 00:00:00', last_viewed datetime NOT NULL default '0000-00-00 00:00:00', pageviews int(10) default 1 ) $charset_collate; CREATE TABLE " . $table ."cache ( UNIQUE KEY compositeID (id, day_no_time), id int(10) NOT NULL, day datetime NOT NULL default '0000-00-00 00:00:00', day_no_time date NOT NULL default '0000-00-00', pageviews int(10) default 1 ) $charset_collate;";
675
- } else {
676
 
677
- // check if cahe table is missing
678
- $cache = $table . "cache";
679
 
680
- if ( $wpdb->get_var("SHOW TABLES LIKE '$cache'") != $cache ) {
681
- $sql = "CREATE TABLE $cache ( UNIQUE KEY compositeID (id, day_no_time), id int(10) NOT NULL, day datetime NOT NULL default '0000-00-00 00:00:00', day_no_time date NOT NULL default '0000-00-00', pageviews int(10) default 1 ) $charset_collate;";
682
- } else { // check if any column is missing
 
 
 
 
 
683
 
684
- // get table columns
685
- $cacheFields = $wpdb->get_results("SHOW FIELDS FROM $cache", ARRAY_A);
686
 
687
- $alter_day = true;
688
- $add_daynotime = true;
689
 
690
- foreach ($cacheFields as $column) {
691
- // check if day column is type datetime
692
- if ($column['Field'] == 'day') {
693
- if ($column['Type'] == 'datetime') {
694
- $alter_day = false;
695
- }
696
- }
697
 
698
- // check if day_no_time field exists
699
- if ($column['Field'] == 'day_no_time') {
700
- $add_daynotime = false;
701
- }
702
- }
703
 
704
- if ($alter_day) { // day column is not datimetime, so change it
705
- $wpdb->query("ALTER TABLE $cache CHANGE day day datetime NOT NULL default '0000-00-00 00:00:00';");
 
706
  }
707
 
708
- if ($add_daynotime) { // day_no_time column is missing, add it
709
- $wpdb->query("ALTER TABLE $cache ADD day_no_time date NOT NULL default '0000-00-00';");
710
- $wpdb->query("UPDATE $cache SET day_no_time = day;");
711
- }
712
 
713
- $cacheIndex = $wpdb->get_results("SHOW INDEX FROM $cache", ARRAY_A);
714
- if ($cacheIndex[0]['Key_name'] == "id") { // if index is id-day change to id-day_no_time
715
- $wpdb->query("ALTER TABLE $cache DROP INDEX id, ADD UNIQUE KEY compositeID (id, day_no_time);");
716
- }
717
 
718
  }
 
719
  }
720
 
721
- dbDelta($sql);
722
- }
 
723
 
724
  /**
725
- * Checks for stuff that needs updating on plugin upgrade
726
- * Since 2.3.1
 
727
  */
728
- function wpp_upgrade() {
729
 
730
- update_option('wpp_ver', $this->version); // update wpp version in db
 
731
 
732
- // update user options
733
- $this->user_ops = $this->array_merge_recursive_distinct( $this->wpp_user_settings_def, $this->user_ops );
734
- update_option('wpp_settings_config', $this->user_ops);
735
 
736
- global $wpdb;
737
- $wpdb->show_errors();
 
 
 
 
738
 
739
- $sql = "";
740
- $charset_collate = "";
741
 
742
- require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
 
 
 
 
743
 
744
- if ( ! empty($wpdb->charset) ) $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
745
- if ( ! empty($wpdb->collate) ) $charset_collate .= " COLLATE $wpdb->collate";
 
 
 
 
 
 
 
 
 
 
746
 
747
  // set table name
748
- $data = $wpdb->prefix . "popularpostsdata";
749
- $cache = $data . "cache";
750
 
751
- // if the cache table is missing, create it
752
- if ( $wpdb->get_var("SHOW TABLES LIKE '$cache'") != $cache ) {
753
- $sql = "CREATE TABLE $cache ( UNIQUE KEY compositeID (id, day_no_time), id int(10) NOT NULL, day datetime NOT NULL default '0000-00-00 00:00:00', day_no_time date NOT NULL default '0000-00-00', pageviews int(10) default 1 ) $charset_collate;";
754
- } else { // check if any column is missing
755
 
756
- // get table columns
757
- $cacheFields = $wpdb->get_results("SHOW FIELDS FROM $cache", ARRAY_A);
758
 
759
- $alter_day = true;
760
- $add_daynotime = true;
761
 
762
- foreach ($cacheFields as $column) {
763
- // check if day column is type datetime
764
- if ($column['Field'] == 'day') {
765
- if ($column['Type'] == 'datetime') {
766
- $alter_day = false;
767
- }
768
- }
769
 
770
- // check if day_no_time field exists
771
- if ($column['Field'] == 'day_no_time') {
772
- $add_daynotime = false;
 
 
773
  }
774
- }
775
 
776
- if ($alter_day) { // day column is not datimetime, so change it
777
- $wpdb->query("ALTER TABLE $cache CHANGE day day datetime NOT NULL default '0000-00-00 00:00:00';");
778
  }
779
 
780
- if ($add_daynotime) { // day_no_time column is missing, add it
781
- $wpdb->query("ALTER TABLE $cache ADD day_no_time date NOT NULL default '0000-00-00';");
782
- $wpdb->query("UPDATE $cache SET day_no_time = day;");
 
 
 
 
 
 
783
  }
784
 
785
- $cacheIndex = $wpdb->get_results("SHOW INDEX FROM $cache", ARRAY_A);
786
- if ($cacheIndex[0]['Key_name'] == "id") { // if index is id-day change to id-day_no_time
787
- $wpdb->query("ALTER TABLE $cache DROP INDEX id, ADD UNIQUE KEY compositeID (id, day_no_time);");
788
  }
789
  }
790
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
791
  dbDelta($sql);
792
 
793
- }
794
 
795
  /**
796
- * Prints AJAX script to wp_head()
797
- * Since 2.0.0
 
 
 
 
798
  */
799
- function wpp_print_ajax() {
800
 
801
- wp_print_scripts('jquery');
802
 
803
- // if we're on a page or post, load the script
804
- if ( (is_single() || is_page()) && !is_front_page() && !is_preview() ) {
 
 
805
 
806
- if ( isset($this->user_ops['tools']['log_loggedin']) && $this->user_ops['tools']['log_loggedin'] == 0 && is_user_logged_in() )
807
- return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
808
 
809
- // create security token
810
- $nonce = wp_create_nonce('wpp-token');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811
 
812
- // get current post's ID
813
- global $wp_query;
814
- wp_reset_query();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
815
 
816
- $id = $wp_query->post->ID;
817
  ?>
818
- <!-- Wordpress Popular Posts v<?php echo $this->version; ?> -->
819
- <script type="text/javascript">
820
- /* <![CDATA[ */
821
- jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id; ?>}, function(data){/*alert(data);*/});
822
- /* ]]> */
823
- </script>
824
- <!-- End Wordpress Popular Posts v<?php echo $this->version; ?> -->
 
 
 
 
 
 
 
825
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
826
  }
827
- }
 
828
 
829
  /**
830
- * Builds popular posts list
831
- * Since 1.4.0
 
 
 
 
832
  */
833
- function get_popular_posts($instance, $return = false) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
 
835
- // update instance's settings
836
- /*echo "<pre>"; print_r($instance); echo "</pre>";*/
837
- $instance = $this->array_merge_recursive_distinct($this->defaults, $instance);
838
- /*echo "<pre>"; print_r($instance); echo "</pre>";*/
 
 
 
 
 
 
 
 
 
839
 
840
  global $wpdb;
841
- $table = $wpdb->prefix . "popularpostsdata";
842
- $fields = "";
 
 
 
 
 
 
 
843
  $from = "";
844
- $where = "";
 
 
 
 
845
  $post_types = "";
846
  $pids = "";
847
  $cats = "";
848
  $authors = "";
849
  $content = "";
850
 
 
 
851
  // post filters
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
852
  // * post types - based on code seen at https://github.com/williamsba/WordPress-Popular-Posts-with-Custom-Post-Type-Support
853
  $types = explode(",", $instance['post_type']);
854
- $i = 0;
855
- $len = count($types);
856
  $sql_post_types = "";
857
  $join_cats = true;
858
 
859
- if ($len > 1) { // we are getting posts from more that one ctp
860
- foreach ( $types as $post_type ) {
861
- $sql_post_types .= "'" .$post_type. "'";
862
 
863
- if ($i != $len - 1) $sql_post_types .= ",";
 
864
 
865
- $i++;
866
- }
 
867
 
868
- $post_types = " p.post_type IN({$sql_post_types}) ";
869
- } else if ($len == 1) { // post from one ctp only
 
 
 
870
 
871
- $post_types = " p.post_type = '".$instance['post_type']."' ";
 
872
 
873
- // if we're getting just pages, why join the categories table?
874
- if ( strtolower($instance['post_type']) == 'page' )
875
- $join_cats = false;
876
 
877
  }
878
 
879
  // * posts exclusion
880
  if ( !empty($instance['pid']) ) {
 
881
  $ath = explode(",", $instance['pid']);
882
- $len = count($ath);
883
 
884
- if ($len > 1) { // we are excluding more than one post
885
- $pids = " AND p.ID NOT IN(".$instance['pid'].") ";
886
- } else if ($len == 1) { // exclude one post only
887
- $pids = " AND p.ID <> '".$instance['pid']."' ";
888
- }
889
  }
890
 
891
  // * categories
892
  if ( !empty($instance['cat']) && $join_cats ) {
 
893
  $cat_ids = explode(",", $instance['cat']);
894
  $in = array();
895
  $out = array();
896
  $not_in = "";
897
 
898
- usort($cat_ids, array(&$this, 'sorter'));
899
 
900
  for ($i=0; $i < count($cat_ids); $i++) {
901
  if ($cat_ids[$i] >= 0) $in[] = $cat_ids[$i];
@@ -907,78 +1382,89 @@ if ( !class_exists('WordpressPopularPosts') ) {
907
  $out_cats = preg_replace( '|[^0-9,]|', '', $out_cats );
908
 
909
  if ($in_cats != "" && $out_cats == "") { // get posts from from given cats only
910
- $cats = " AND p.ID IN (
911
  SELECT object_id
912
- FROM $wpdb->term_relationships AS r
913
- JOIN $wpdb->term_taxonomy AS x ON x.term_taxonomy_id = r.term_taxonomy_id
914
- JOIN $wpdb->terms AS t ON t.term_id = x.term_id
915
- WHERE x.taxonomy = 'category' AND t.term_id IN($in_cats)
916
- ) ";
917
  } else if ($in_cats == "" && $out_cats != "") { // exclude posts from given cats only
918
- $cats = " AND p.ID NOT IN (
919
  SELECT object_id
920
- FROM $wpdb->term_relationships AS r
921
- JOIN $wpdb->term_taxonomy AS x ON x.term_taxonomy_id = r.term_taxonomy_id
922
- JOIN $wpdb->terms AS t ON t.term_id = x.term_id
923
- WHERE x.taxonomy = 'category' AND t.term_id IN($out_cats)
924
- ) ";
925
  } else { // mixed, and possibly a heavy load on the DB
926
- $cats = " AND p.ID IN (
927
  SELECT object_id
928
- FROM $wpdb->term_relationships AS r
929
- JOIN $wpdb->term_taxonomy AS x ON x.term_taxonomy_id = r.term_taxonomy_id
930
- JOIN $wpdb->terms AS t ON t.term_id = x.term_id
931
- WHERE x.taxonomy = 'category' AND t.term_id IN($in_cats)
932
  ) AND p.ID NOT IN (
933
  SELECT object_id
934
- FROM $wpdb->term_relationships AS r
935
- JOIN $wpdb->term_taxonomy AS x ON x.term_taxonomy_id = r.term_taxonomy_id
936
- JOIN $wpdb->terms AS t ON t.term_id = x.term_id
937
- WHERE x.taxonomy = 'category' AND t.term_id IN($out_cats)
938
- ) ";
939
  }
 
940
  }
941
 
942
  // * authors
943
  if ( !empty($instance['author']) ) {
 
944
  $ath = explode(",", $instance['author']);
945
- $len = count($ath);
946
 
947
- if ($len > 1) { // we are getting posts from more that one author
948
- $authors = " AND p.post_author IN(".$instance['author'].") ";
949
- } else if ($len == 1) { // post from one author only
950
- $authors = " AND p.post_author = '".$instance['author']."' ";
951
- }
952
  }
953
 
954
- $fields = "p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid' ";
 
955
 
956
- if ($instance['range'] == "all") { // ALL TIME
957
 
958
- $fields .= ", p.comment_count AS 'comment_count' ";
 
959
 
960
- if ($instance['order_by'] == "comments") { // ordered by comments
 
 
961
 
962
- if ($instance['stats_tag']['views']) { // get views, too
 
963
 
964
- $fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews' ";
965
- $from = " {$wpdb->posts} p LEFT JOIN {$table} v ON p.ID = v.postid WHERE {$post_types} {$pids} {$authors} {$cats} AND p.comment_count > 0 AND p.post_password = '' AND p.post_status = 'publish' ORDER BY p.comment_count DESC LIMIT {$instance['limit']} ";
966
 
967
- } else { // get data from wp_posts only
968
- $from = " {$wpdb->posts} p WHERE {$post_types} {$pids} {$authors} {$cats} AND p.comment_count > 0 AND p.post_password = '' AND p.post_status = 'publish' ORDER BY p.comment_count DESC LIMIT {$instance['limit']} ";
969
  }
970
 
971
- } else { // ordered by views / avg
 
 
 
 
 
972
 
973
- if ( $instance['order_by'] == "views" ) {
 
974
 
975
- $fields .= ", v.pageviews AS 'pageviews' ";
976
- $from = " {$table} v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID WHERE {$post_types} {$pids} {$authors} {$cats} AND p.post_password = '' AND p.post_status = 'publish' ORDER BY pageviews DESC LIMIT {$instance['limit']} ";
977
 
978
- } else if ( $instance['order_by'] == "avg" ) {
 
 
979
 
980
- $fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$this->now()}', MIN(v.day)) > 0, DATEDIFF('{$this->now()}', MIN(v.day)), 1) ) ) AS 'avg_views' ";
981
- $from = " {$table} v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID WHERE {$post_types} {$pids} {$authors} {$cats} AND p.post_password = '' AND p.post_status = 'publish' GROUP BY p.ID ORDER BY avg_views DESC LIMIT {$instance['limit']} ";
982
 
983
  }
984
 
@@ -1010,603 +1496,1180 @@ if ( !class_exists('WordpressPopularPosts') ) {
1010
  break;
1011
  }
1012
 
1013
- if ($instance['order_by'] == "comments") { // ordered by comments
 
1014
 
1015
- $fields .= ", c.comment_count AS 'comment_count' ";
1016
- $from = " (SELECT comment_post_ID AS 'id', COUNT(comment_post_ID) AS 'comment_count', MAX(comment_date) AS comment_date FROM {$wpdb->comments} WHERE comment_date > DATE_SUB('{$this->now()}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY id ORDER BY comment_count DESC, comment_date DESC) c LEFT JOIN {$wpdb->posts} p ON p.ID = c.id ";
 
1017
 
1018
- if ($instance['stats_tag']['views']) { // get views, too
1019
 
1020
- $fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews' ";
1021
- $from .= " LEFT JOIN (SELECT id, SUM(pageviews) AS pageviews, MAX(day) AS day FROM {$table}cache WHERE day > DATE_SUB('{$this->now()}', INTERVAL {$interval}) GROUP BY id ORDER BY pageviews DESC, day DESC) v ON p.ID = v.id ";
1022
 
1023
  }
1024
 
1025
- $from .= " WHERE {$post_types} {$pids} {$authors} {$cats} AND p.post_password = '' AND p.post_status = 'publish' LIMIT {$instance['limit']} ";
1026
-
1027
- } else { // ordered by views / avg
1028
-
1029
- if ( $instance['order_by'] == "views" ) {
1030
-
1031
- $fields .= ", v.pageviews AS 'pageviews' ";
1032
- $from = " (SELECT id, SUM(pageviews) AS pageviews, MAX(day) AS day FROM {$table}cache WHERE day > DATE_SUB('{$this->now()}', INTERVAL {$interval}) GROUP BY id ORDER BY pageviews DESC, day DESC) v LEFT JOIN {$wpdb->posts} p ON v.id = p.ID ";
1033
-
1034
- } else if ( $instance['order_by'] == "avg" ) {
1035
 
1036
- $fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$this->now()}', DATE_SUB('{$this->now()}', INTERVAL {$interval})) > 0, DATEDIFF('{$this->now()}', DATE_SUB('{$this->now()}', INTERVAL {$interval})), 1) ) ) AS 'avg_views' ";
1037
- $from = " (SELECT id, SUM(pageviews) AS pageviews, MAX(day) AS day FROM {$table}cache WHERE day > DATE_SUB('{$this->now()}', INTERVAL {$interval}) GROUP BY id ORDER BY pageviews DESC, day DESC) v LEFT JOIN {$wpdb->posts} p ON v.id = p.ID ";
1038
 
 
 
 
1039
  }
 
 
1040
 
1041
- if ( $instance['stats_tag']['comment_count'] ) { // get comments, too
1042
-
1043
- $fields .= ", IFNULL(c.comment_count, 0) AS 'comment_count' ";
1044
- $from .= " LEFT JOIN (SELECT comment_post_ID AS 'id', COUNT(comment_post_ID) AS 'comment_count', MAX(comment_date) AS comment_date FROM {$wpdb->comments} WHERE comment_date > DATE_SUB('{$this->now()}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY id ORDER BY comment_count DESC, comment_date DESC) c ON p.ID = c.id ";
1045
 
1046
  }
1047
 
1048
- $from .= " WHERE {$post_types} {$pids} {$authors} {$cats} AND p.post_password = '' AND p.post_status = 'publish' ";
 
1049
 
1050
- if ( $instance['order_by'] == "avg" ) {
1051
- $from .= " GROUP BY v.id ORDER BY avg_views DESC ";
1052
- }
1053
 
1054
- $from .= " LIMIT {$instance['limit']} ";
1055
 
1056
  }
1057
 
1058
  }
1059
 
1060
- $query = "SELECT {$fields} FROM {$from}";
1061
- //echo $query;
1062
 
1063
- $mostpopular = $wpdb->get_results($query);
1064
- /*echo "<pre>"; print_r($mostpopular); echo "</pre>";*/
1065
 
1066
- // posts array
1067
- $posts_data = array();
1068
 
1069
- if ( !is_array($mostpopular) || empty($mostpopular) ) { // no posts to show
1070
- $content .= "<p>".__('Sorry. No data so far.', 'wordpress-popular-posts')."</p>"."\n";
1071
- } else { // list posts
1072
 
1073
- // HTML wrapper
1074
- if ($instance['markup']['custom_html']) {
1075
- $content .= htmlspecialchars_decode($instance['markup']['wpp-start'], ENT_QUOTES) ."\n";
1076
- } else {
1077
- $content .= "<ul class=\"wpp-list\">" . "\n";
1078
- }
 
 
1079
 
1080
- foreach($mostpopular as $p) {
 
 
 
 
1081
 
1082
- $stats = "";
1083
- $thumb = "";
1084
- $title = "";
1085
- $title_sub = "";
1086
- $permalink = get_permalink( $p->id );
1087
- $author = ($instance['stats_tag']['author']) ? get_the_author_meta('display_name', $p->uid) : "";
1088
- $date = date_i18n( $instance['stats_tag']['date']['format'], strtotime($p->date) );
1089
- $pageviews = ($instance['order_by'] == "views" || $instance['order_by'] == "avg" || $instance['stats_tag']['views']) ? (($instance['order_by'] == "views" || $instance['order_by'] == "comments") ? $p->pageviews : $p->avg_views ) : 0;
1090
- $comments = ($instance['order_by'] == "comments" || $instance['stats_tag']['comment_count']) ? $p->comment_count : 0;
1091
 
1092
- $post_cat = "";
1093
- $excerpt = "";
1094
- $rating = "";
1095
- $data = array();
 
 
1096
 
1097
- // TITLE
1098
- $title = ($this->qTrans) ? qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($p->title) : $p->title;
1099
- $title = strip_tags($title);
1100
- $title_sub = strip_tags($title);
1101
 
1102
- // truncate title
1103
- if ( $instance['shorten_title']['active'] ) {
 
 
1104
 
1105
- if ( isset($instance['shorten_title']['words']) && $instance['shorten_title']['words'] ) { // by words
 
 
1106
 
1107
- $words = explode(" ", $title, $instance['shorten_title']['length'] + 1);
 
 
1108
 
1109
- if ( count($words) > $instance['shorten_title']['length'] ) {
 
 
1110
 
1111
- array_pop($words);
1112
- $title_sub = implode(" ", $words) . "...";
 
 
1113
 
1114
- }
1115
 
1116
- } else { // by characters
 
 
 
1117
 
1118
- if ( strlen($title) > $instance['shorten_title']['length'] ) {
1119
- $title_sub = mb_substr($title, 0, $instance['shorten_title']['length'], $this->charset) . "...";
1120
- }
1121
 
 
 
 
 
 
 
 
1122
  }
1123
-
1124
  }
 
 
 
 
1125
 
1126
- $title = htmlspecialchars( $title, ENT_QUOTES, $this->charset );
1127
- $title_sub = htmlspecialchars( $title_sub, ENT_QUOTES, $this->charset );
1128
-
1129
- $title = apply_filters('the_title', $title, $p->id);
1130
- $title_sub = apply_filters('the_title', $title_sub, $p->id);
1131
 
1132
- // EXCERPT
1133
- if ( $instance['post-excerpt']['active'] ) {
 
 
 
1134
 
1135
- $excerpt = trim( $this->get_summary($p->id, $instance) );
 
 
 
 
 
1136
 
1137
- if ( !empty($excerpt) ) {
 
 
 
1138
 
1139
- if ( !$instance['markup']['custom_html'] ) {
1140
- $excerpt = ": <span class=\"wpp-excerpt\">" . $excerpt . "</span>";
1141
- }
 
 
 
1142
 
1143
- }
1144
 
1145
- }
1146
 
1147
- // STATS
1148
- // comments
1149
- if ( $instance['stats_tag']['comment_count'] ) {
1150
- $comments_text =sprintf(
1151
- _n('1 comment', '%s comments', $comments, 'wordpress-popular-posts'),
1152
- number_format_i18n($comments));
1153
- $stats .= "<span class=\"wpp-comments\">" . $comments_text . "</span>";
1154
- } else {
1155
- }
1156
- // views
1157
- if ( $instance['stats_tag']['views'] ) {
 
 
 
 
 
 
 
1158
 
1159
- if ($instance['order_by'] == 'avg') {
1160
- $views_text = sprintf(
1161
- _n('1 view per day', '%s views per day', intval($pageviews), 'wordpress-popular-posts'),
1162
- number_format_i18n($pageviews, 2)
1163
- );
1164
- }
1165
- else {
1166
- $views_text = sprintf(
1167
- _n('1 view', '%s views', intval($pageviews), 'wordpress-popular-posts'),
1168
- number_format_i18n($pageviews)
1169
- );
1170
- }
1171
 
1172
- $stats .= ($stats == "") ? "<span class=\"wpp-views\">" . $views_text . "</span>" : " | <span class=\"wpp-views\">" . $views_text . "</span>";
 
1173
 
1174
- }
1175
- //author
1176
- if ( $instance['stats_tag']['author'] ) {
1177
- $display_name = "<a href=\"".get_author_posts_url($p->uid)."\">{$author}</a>";
1178
- $stats .= ($stats == "") ? "<span class=\"wpp-author\">" . __('by', 'wordpress-popular-posts')." {$display_name}</span>" : " | <span class=\"wpp-author\">" . __('by', 'wordpress-popular-posts') . " {$display_name}</span>";
1179
- }
1180
- // date
1181
- if ( $instance['stats_tag']['date']['active'] ) {
1182
- $stats .= ($stats == "") ? "<span class=\"wpp-date\">" . __('posted on', 'wordpress-popular-posts')." {$date}</span>" : " | <span class=\"wpp-date\">" . __('posted on', 'wordpress-popular-posts') . " {$date}</span>";
1183
- }
1184
- // category
1185
- if ( $instance['stats_tag']['category'] ) {
1186
- $post_cat = get_the_category( $p->id );
1187
- $post_cat = ( isset($post_cat[0]) ) ? '<a href="'.get_category_link($post_cat[0]->term_id ).'">'.$post_cat[0]->cat_name.'</a>' : '';
1188
 
1189
- if ( $post_cat != '' ) {
1190
- $stats .= ($stats == "") ? "<span class=\"wpp-category\">" . __('under', 'wordpress-popular-posts'). " {$post_cat}</span>" : " | <span class=\"wpp-category\">" . __('under', 'wordpress-popular-posts') . " {$post_cat}</span>";
1191
- }
1192
- }
1193
 
1194
- // RATING
1195
- if ( $instance['rating'] && $this->postRating && function_exists('the_ratings') ) {
1196
- $rating = '<span class="wpp-rating">'.the_ratings( 'span', $p->id, false ).'</span>';
1197
- }
1198
 
1199
- // POST THUMBNAIL
1200
- if ($instance['thumbnail']['active'] && $this->thumb) {
 
1201
 
1202
- $tbWidth = $instance['thumbnail']['width'];
1203
- $tbHeight = $instance['thumbnail']['height'];
 
 
 
 
 
 
 
 
 
 
 
1204
 
1205
- $thumb = "<a href=\"". $permalink ."\" title=\"{$title}\" target=\"".$this->user_ops['tools']['link']['target']."\">";
1206
 
1207
- if ( $this->user_ops['tools']['thumbnail']['source'] == "custom_field" ) { // get image from custom field
 
 
 
 
 
 
 
 
 
 
1208
 
1209
- $path = get_post_meta($p->id, $this->user_ops['tools']['thumbnail']['field'], true);
1210
 
1211
- if ( $path != "" ) {
1212
-
1213
- if ( $this->user_ops['tools']['thumbnail']['resize'] ) {
1214
-
1215
- $thumb .= $this->get_img( $p->id, array($tbWidth, $tbHeight), $this->user_ops['tools']['thumbnail']['source'] );
1216
-
1217
- } else {
1218
- $thumb .= "<img src=\"{$path}\" width=\"{$tbWidth}\" height=\"{$tbHeight}\" alt=\"{$title}\" border=\"0\" class=\"wpp-thumbnail wpp_cf\" />";
1219
- }
1220
-
1221
- } else {
1222
- $thumb .= "<img src=\"". $this->default_thumbnail ."\" alt=\"{$title}\" border=\"0\" width=\"{$tbWidth}\" height=\"{$tbHeight}\" class=\"wpp-thumbnail wpp_cf_def\" />";
1223
- }
1224
 
1225
- } else { // get image from post / Featured Image
1226
- $thumb .= $this->get_img( $p->id, array($tbWidth, $tbHeight), $this->user_ops['tools']['thumbnail']['source'] );
1227
- }
 
 
 
 
 
 
1228
 
1229
- $thumb .= "</a>";
1230
- }
1231
 
1232
- $data = array(
1233
- 'id' => $p->id,
1234
- 'title' => '<a href="'.$permalink.'" title="'.$title.'">'.$title_sub.'</a>',
1235
- 'summary' => $excerpt,
1236
- 'stats' => $stats,
1237
- 'img' => $thumb,
1238
- 'url' => $permalink,
1239
- 'text_title' => $title,
1240
- 'category' => $post_cat,
1241
- 'author' => "<a href=\"".get_author_posts_url($p->uid)."\">{$author}</a>",
1242
- 'views' => $pageviews,
1243
- 'comments' => $comments
1244
- );
1245
 
1246
- $posts_data[] = (object) $data;
 
 
1247
 
1248
- // PUTTING IT ALL TOGETHER
1249
- if ($instance['markup']['custom_html']) { // build custom layout
1250
 
1251
- $content .= htmlspecialchars_decode( $this->format_content($instance['markup']['post-html'], $data, $instance['rating']), ENT_QUOTES ) . "\n";
1252
 
1253
- } else { // build regular layout
1254
- $content .= "<li>{$thumb}<a href=\"{$permalink}\" title=\"{$title}\" class=\"wpp-post-title\" target=\"".$this->user_ops['tools']['link']['target']."\">{$title_sub}</a> {$excerpt}<span class=\"post-stats\">{$stats}</span>{$rating}</li>" . "\n";
1255
- }
1256
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1257
 
1258
- // END HTML wrapper
1259
- if ($instance['markup']['custom_html']) {
1260
- $content .= htmlspecialchars_decode($instance['markup']['wpp-end'], ENT_QUOTES) ."\n";
1261
- } else {
1262
- $content .= "\n"."</ul>"."\n";
1263
  }
1264
  }
1265
 
1266
- //return $content;
1267
- return apply_filters( 'wpp_html', $content, $posts_data );
1268
- die();
1269
 
1270
- }
1271
 
1272
  /**
1273
- * Builds post's excerpt
1274
- * Since 1.4.6
 
 
 
 
1275
  */
1276
- function get_summary($id, $instance){
1277
 
1278
- if ( !is_numeric($id) )
1279
- return false;
1280
 
1281
- global $wpdb;
 
 
1282
 
1283
- $excerpt = "";
1284
- $the_post = get_post( $id );
1285
- $excerpt = ( $the_post->post_excerpt == "" ) ? $the_post->post_content : $the_post->post_excerpt;
1286
 
1287
- // RRR added call to the_content filters, allows qTranslate to hook in.
1288
- if ( $this->qTrans )
1289
- $excerpt = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $excerpt );
 
 
 
 
 
1290
 
1291
- // remove WP shortcodes (and HTML tags if requested)
1292
- if ( $instance['post-excerpt']['keep_format'] ) {
1293
- $excerpt = strip_shortcodes( strip_tags($excerpt, '<a><b><i><em><strong>') );
1294
- } else {
1295
- $excerpt = strip_shortcodes( strip_tags($excerpt) );
1296
  }
1297
 
1298
- // remove caption tags
1299
- $excerpt = preg_replace( "/\[caption.*\[\/caption\]/", "", $excerpt );
1300
 
1301
- // remove Flash objects
1302
- $excerpt = preg_replace( "/<object[0-9 a-z_?*=\":\-\/\.#\,\\n\\r\\t]+/smi", "", $excerpt );
1303
 
1304
- // remove Iframes
1305
- $excerpt = preg_replace( "/<iframe.*?\/iframe>/i", "", $excerpt);
 
 
 
 
 
 
 
1306
 
1307
- // remove URLs
1308
- $excerpt = preg_replace( '_^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$_iuS', '', $excerpt );
 
1309
 
1310
- // do we still have something to display?
1311
- if ( !empty($excerpt) ) {
1312
 
1313
- // truncate excerpt
1314
- if ( isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words'] ) { // by words
 
1315
 
1316
- $words = explode(" ", $excerpt, $instance['post-excerpt']['length'] + 1);
 
 
 
1317
 
1318
- if ( count($words) > $instance['post-excerpt']['length'] ) {
1319
 
1320
- array_pop($words);
1321
- $excerpt = implode(" ", $words) . "...";
 
1322
 
 
 
 
 
1323
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1324
 
1325
- } else { // by characters
1326
 
1327
- if ( strlen($excerpt) > $instance['post-excerpt']['length'] ) {
1328
- $excerpt = mb_substr( $excerpt, 0, $instance['post-excerpt']['length'] ) . "...";
1329
- }
1330
 
1331
- }
1332
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1333
  }
1334
 
1335
- // remove HTML tags if requested
1336
- if ( $instance['post-excerpt']['keep_format'] ) {
1337
- $excerpt = force_balance_tags(strip_tags($excerpt, '<a><b><i><em><strong>'));
1338
- } else {
1339
- $excerpt = strip_tags($excerpt);
 
 
 
 
 
1340
  }
1341
 
1342
- // remove WP shortcodes
1343
- $excerpt = strip_shortcodes( $excerpt );
1344
 
1345
- return $excerpt;
1346
 
1347
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1348
 
1349
  /**
1350
- * Retrieves post's image
1351
- * Since 1.4.6
1352
- * Last modified: 2.3.3
1353
- * Borrowed some ideas from Victor Teixeira's VT function http://core.trac.wordpress.org/ticket/15311
1354
- * and added a check for the WP_Image_Editor Class
 
1355
  */
1356
- function get_img( $id = NULL, $dim = array(80, 80), $source = "featured" ) {
1357
 
1358
- if ( !$id || empty($id) || !is_numeric($id) )
1359
- return "<img src=\"". $this->default_thumbnail ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_def_noID\" />";
1360
 
1361
- $file_path = '';
 
 
1362
 
1363
- if ( $source == "featured" ) { // get thumbnail path from the Featured Image
1364
 
1365
- $thumbnail_id = get_post_thumbnail_id( $id ); // thumb attachment ID
 
 
 
1366
 
1367
- if ( $thumbnail_id ) {
 
1368
 
1369
- $thumbnail = wp_get_attachment_image_src( $thumbnail_id, 'full' ); // full size image
1370
- $file_path = get_attached_file( $thumbnail_id ); // image path
 
 
 
 
 
 
 
1371
 
1372
- }
1373
 
1374
- } else if ( $source == "first_image" ) { // get thumbnail path from post content
 
 
1375
 
1376
- global $wpdb;
 
 
1377
 
1378
- $content = $wpdb->get_var( "SELECT post_content FROM $wpdb->posts WHERE ID = {$id}" );
1379
- $count = substr_count($content, '<img');
1380
 
1381
- if ($count > 0) { // images have been found
1382
 
1383
- $output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $ContentImages );
 
 
 
 
 
 
 
 
1384
 
1385
- if ( isset($ContentImages[1][0]) ) {
1386
 
1387
- $image_url = esc_url( $ContentImages[1][0] ); // sanitize URL, just in case
1388
- preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $image_url, $matches); // remove querystring
1389
- $image_url = $matches[0];
1390
 
1391
- $attachment_id = $this->wpp_get_attachment_id( $image_url );
 
1392
 
1393
- if ( $attachment_id ) { // image comes from Media library
1394
 
1395
- $thumbnail[0] = $image_url;
1396
- $file_path = get_attached_file( $attachment_id );
 
 
 
 
 
 
 
1397
 
1398
- } else { // image not found in Media library, maybe external image?
1399
-
1400
- $result = $this->download_image( $image_url, $id );
1401
-
1402
- if ( is_array($result) && !empty($result) ) {
1403
-
1404
- $thumbnail[0] = $result[0];
1405
- $file_path = $result[1];
1406
-
1407
- }
1408
 
1409
- }
 
 
1410
 
1411
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1412
 
 
 
 
 
 
 
 
 
 
1413
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1414
 
1415
- } else if ( $source == "custom_field" ) { // get thumbnail path from custom field
 
 
1416
 
1417
- $image_url = get_post_meta($id, $this->user_ops['tools']['thumbnail']['field'], true);
1418
- $image_url = esc_url( $image_url ); // sanitize URL, just in case
1419
- preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $image_url, $matches); // remove querystring
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1420
  $image_url = $matches[0];
1421
-
1422
- $result = $this->download_image( $image_url, $id );
1423
-
1424
- if ( is_array($result) && !empty($result) ) {
1425
-
1426
- $thumbnail[0] = $result[0];
1427
- $file_path = $result[1];
1428
-
 
 
 
 
 
 
 
 
 
 
1429
  }
 
1430
 
 
 
 
 
 
 
 
1431
  }
1432
 
1433
- if ( $file_path == '' ) {
1434
- return "<img src=\"". $this->default_thumbnail ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_def_noPath wpp_{$source}\" />";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1435
  }
1436
 
1437
- $file_info = pathinfo( $file_path );
1438
- $extension = '.'. $file_info['extension'];
 
1439
 
1440
- $cropped_thumb = $file_info['dirname'].'/'.$file_info['filename'].'-'.$dim[0].'x'.$dim[1].$extension;
1441
 
1442
- if ( file_exists( $cropped_thumb ) ) { // there is a thumbnail already, use it
 
 
 
 
 
 
 
 
1443
 
1444
- $new_img = str_replace( wp_basename( $thumbnail[0] ), wp_basename( $cropped_thumb ), $thumbnail[0] );
1445
- return "<img src=\"". $new_img ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_cached_thumb wpp_{$source}\" />";
1446
 
1447
- } else { // no thumbnail or image file missing, try to create it
 
1448
 
1449
- if ( function_exists('wp_get_image_editor') ) { // if supported, use WP_Image_Editor Class
 
1450
 
1451
- $image = wp_get_image_editor( $file_path );
1452
 
1453
- if ( is_wp_error( $image ) ) { // image file path is invalid
1454
- return "<!-- " . $image->get_error_message() ." --> <img src=\"". $this->default_thumbnail ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_imgeditor_error wpp_{$source}\" />";
1455
- }
 
 
1456
 
1457
- $image->resize( $dim[0], $dim[1], true );
1458
- $new_img = $image->save();
1459
 
1460
- if ( is_wp_error( $new_img ) ) {
1461
- return "<!-- " . $new_img->get_error_message() ." --> <img src=\"". $this->default_thumbnail ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_imgeditor_error wpp_{$source}\" />";
1462
- }
1463
 
1464
- $new_img = str_replace( wp_basename( $thumbnail[0] ), $new_img['file'], $thumbnail[0] );
1465
- return "<img src=\"". $new_img ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_imgeditor_thumb wpp_{$source}\" />";
1466
 
1467
- } else { // create thumb using image_resize()
 
1468
 
1469
- $new_img_path = image_resize( $file_path, $dim[0], $dim[1], true );
 
 
1470
 
1471
- if ( is_wp_error( $new_img_path ) ) { // image file path is invalid
1472
- return "<!-- " . $new_img_path->get_error_message() ." --> <img src=\"". $this->default_thumbnail ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_image_resize_error wpp_{$source}\" />";
1473
- }
1474
 
1475
- $new_img_size = getimagesize( $new_img_path );
1476
- $new_img = str_replace( wp_basename( $thumbnail[0] ), wp_basename( $new_img_path ), $thumbnail[0] );
1477
- return "<img src=\"". $new_img ."\" alt=\"\" border=\"0\" width=\"{$dim[0]}\" height=\"{$dim[1]}\" class=\"wpp-thumbnail wpp_image_resize_thumb wpp_{$source}\" />";
1478
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1479
  }
1480
 
1481
  }
1482
 
1483
- }
1484
-
1485
- function is_external_image( $url ){
1486
-
1487
- $dir = wp_upload_dir();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1488
 
1489
- // baseurl never has a trailing slash
1490
- if ( false === strpos( $url, $dir['baseurl'] . '/' ) ) {
1491
- // URL points to a place outside of upload directory
1492
- return true;
1493
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1494
 
1495
- return false;
1496
-
1497
- }
1498
-
1499
- function download_image( $url, $id ){
 
 
 
 
 
 
 
 
 
 
1500
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1501
  $image = array();
1502
-
1503
  $uploads = wp_upload_dir();
1504
- $image[0] = trailingslashit( $uploads['baseurl'] ) . "{$id}_". sanitize_file_name( rawurldecode(wp_basename( $url )) );
1505
- $image[1] = trailingslashit( $uploads['basedir'] ) . "{$id}_". sanitize_file_name( rawurldecode(wp_basename( $url )) );
1506
 
1507
  // if the file exists already, return URL and path
1508
- if ( file_exists($image[1]) )
1509
  return $image;
1510
-
1511
  $accepted_status_codes = array( 200, 301, 302 );
1512
  $response = wp_remote_head( $url, array( 'timeout' => 5, 'sslverify' => false ) );
1513
-
1514
  if ( !is_wp_error($response) && in_array(wp_remote_retrieve_response_code($response), $accepted_status_codes) ) {
1515
-
1516
  $image_data = getimagesize( $url );
1517
-
1518
  if ( is_array($image_data) && !empty($image_data) ) {
1519
-
1520
  require_once( ABSPATH . 'wp-admin/includes/file.php' );
1521
 
1522
  $url = str_replace( 'https://', 'http://', $url );
1523
  $tmp = download_url( $url );
1524
 
1525
  // move file to Uploads
1526
- if ( !is_wp_error( $tmp ) && rename($tmp, $image[1]) ) {
1527
-
1528
  // borrowed from WP - set correct file permissions
1529
- $stat = stat( dirname( $image[1] ));
1530
  $perms = $stat['mode'] & 0000666;
1531
- @chmod( $image[1], $perms );
1532
-
1533
  return $image;
1534
-
1535
  }
1536
-
1537
  }
1538
-
1539
  }
1540
-
1541
  return false;
1542
-
1543
- }
1544
 
1545
- /**
1546
- * Get the Attachment ID for a given image URL.
1547
- * Source: http://wordpress.stackexchange.com/a/7094
1548
- * @param string $url
1549
- * @return boolean|integer
1550
- */
1551
- function wpp_get_attachment_id( $url ) {
1552
-
1553
- if ( $this->is_external_image($url) )
1554
- return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1555
 
1556
- $file = wp_basename( $url );
1557
- $query = array(
1558
- 'post_type' => 'attachment',
1559
- 'fields' => 'ids',
1560
- 'meta_query' => array(
1561
- array(
1562
- 'value' => $file,
1563
- 'compare' => 'LIKE',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1564
  ),
 
 
 
 
 
 
 
 
 
1565
  )
1566
  );
1567
 
1568
- $query['meta_query'][0]['key'] = '_wp_attached_file';
1569
-
1570
- // query attachments
1571
- $ids = get_posts( $query );
1572
 
1573
- if ( ! empty( $ids ) ) {
1574
-
1575
- foreach ( $ids as $id ) {
1576
-
1577
- // first entry of returned array is the URL
1578
- if ( $url === array_shift( wp_get_attachment_image_src( $id, 'full' ) ) )
1579
- return $id;
1580
- }
1581
  }
1582
 
1583
- $query['meta_query'][0]['key'] = '_wp_attachment_metadata';
1584
-
1585
- // query attachments again
1586
- $ids = get_posts( $query );
1587
-
1588
- if ( empty( $ids) )
1589
- return false;
1590
-
1591
- foreach ( $ids as $id ) {
1592
-
1593
- $meta = wp_get_attachment_metadata( $id );
1594
-
1595
- foreach ( $meta['sizes'] as $size => $values ) {
1596
 
1597
- if ( $values['file'] === $file && $url === array_shift( wp_get_attachment_image_src( $id, $size ) ) )
1598
- return $id;
1599
- }
1600
- }
1601
 
1602
- return false;
1603
- }
1604
 
1605
  /**
1606
  * Parses content tags
1607
- * Since 1.4.6
 
 
 
 
 
1608
  */
1609
- function format_content($string, $data = array(), $rating) {
1610
 
1611
  if (empty($string) || (empty($data) || !is_array($data)))
1612
  return false;
@@ -1644,12 +2707,12 @@ if ( !class_exists('WordpressPopularPosts') ) {
1644
  }
1645
 
1646
  // WP-PostRatings check
1647
- if ($rating && $this->postRating) {
1648
- if ( in_array("{rating}", $matches[0]) ) {
1649
  $string = str_replace( "{rating}", the_ratings_results($data['id']), $string );
1650
  }
1651
 
1652
- if ( in_array("{score}", $matches[0]) ) {
1653
  $string = str_replace( "{score}", expand_ratings_template('%RATINGS_SCORE%', $data['id']), $string);
1654
  // removing the redundant plus sign
1655
  $string = str_replace('+', '', $string);
@@ -1680,407 +2743,180 @@ if ( !class_exists('WordpressPopularPosts') ) {
1680
  $string = str_replace( "{comments}", $data['comments'], $string );
1681
  }
1682
 
1683
- return html_entity_decode( $string );
1684
- }
 
1685
 
1686
- // code seen at http://www.gsdesign.ro/blog/cut-html-string-without-breaking-the-tags/
1687
- // Since 2.0.1
1688
  /**
1689
- * Truncates text.
1690
  *
1691
- * Cuts a string to the length of $length and replaces the last characters
1692
- * with the ending if the text is longer than length.
1693
- *
1694
- * @param string $text String to truncate.
1695
- * @param integer $length Length of returned string, including ellipsis.
1696
- * @param string $ending Ending to be appended to the trimmed string.
1697
- * @param boolean $exact If false, $text will not be cut mid-word
1698
- * @param boolean $considerHtml If true, HTML tags would be handled correctly
1699
- * @return string Trimmed string.
1700
  */
1701
- function truncate($text, $length = 100, $ending = '...', $exact = true, $considerHtml = false) {
1702
- if ($considerHtml) {
1703
- // if the plain text is shorter than the maximum length, return the whole text
1704
- if (strlen(preg_replace('/<.*?>/', '', $text)) <= $length) {
1705
- return $text;
1706
- }
1707
- // splits all html-tags to scanable lines
1708
- preg_match_all('/(<.+?>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
1709
- $total_length = strlen($ending);
1710
- $open_tags = array();
1711
- $truncate = '';
1712
- foreach ($lines as $line_matchings) {
1713
- // if there is any html-tag in this line, handle it and add it (uncounted) to the output
1714
- if (!empty($line_matchings[1])) {
1715
- // if it's an "empty element" with or without xhtml-conform closing slash (f.e. <br/>)
1716
- if (preg_match('/^<(\s*.+?\/\s*|\s*(img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param)(\s.+?)?)>$/is', $line_matchings[1])) {
1717
- // do nothing
1718
- // if tag is a closing tag (f.e. </b>)
1719
- } else if (preg_match('/^<\s*\/([^\s]+?)\s*>$/s', $line_matchings[1], $tag_matchings)) {
1720
- // delete tag from $open_tags list
1721
- $pos = array_search($tag_matchings[1], $open_tags);
1722
- if ($pos !== false) {
1723
- unset($open_tags[$pos]);
1724
- }
1725
- // if tag is an opening tag (f.e. <b>)
1726
- } else if (preg_match('/^<\s*([^\s>!]+).*?>$/s', $line_matchings[1], $tag_matchings)) {
1727
- // add tag to the beginning of $open_tags list
1728
- array_unshift($open_tags, strtolower($tag_matchings[1]));
1729
- }
1730
- // add html-tag to $truncate'd text
1731
- $truncate .= $line_matchings[1];
1732
- }
1733
- // calculate the length of the plain text part of the line; handle entities as one character
1734
- $content_length = strlen(preg_replace('/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', ' ', $line_matchings[2]));
1735
- if ($total_length+$content_length> $length) {
1736
- // the number of characters which are left
1737
- $left = $length - $total_length;
1738
- $entities_length = 0;
1739
- // search for html entities
1740
- if (preg_match_all('/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', $line_matchings[2], $entities, PREG_OFFSET_CAPTURE)) {
1741
- // calculate the real length of all entities in the legal range
1742
- foreach ($entities[0] as $entity) {
1743
- if ($entity[1]+1-$entities_length <= $left) {
1744
- $left--;
1745
- $entities_length += strlen($entity[0]);
1746
- } else {
1747
- // no more characters left
1748
- break;
1749
- }
1750
- }
1751
- }
1752
- //$truncate .= substr($line_matchings[2], 0, $left+$entities_length);
1753
- $truncate .= mb_substr($line_matchings[2], 0, $left+$entities_length);
1754
- // maximum length is reached, so get off the loop
1755
- break;
1756
- } else {
1757
- $truncate .= $line_matchings[2];
1758
- $total_length += $content_length;
1759
- }
1760
- // if the maximum length is reached, get off the loop
1761
- if($total_length>= $length) {
1762
- break;
1763
- }
1764
- }
1765
  } else {
1766
- if (strlen($text) <= $length) {
1767
- return $text;
1768
- } else {
1769
- //$truncate = substr($text, 0, $length - strlen($ending));
1770
- $truncate = mb_substr($text, 0, $length - strlen($ending));
1771
- }
1772
- }
1773
- // if the words shouldn't be cut in the middle...
1774
- if (!$exact) {
1775
- // ...search the last occurance of a space...
1776
- $spacepos = strrpos($truncate, ' ');
1777
- if (isset($spacepos)) {
1778
- // ...and cut the text in this position
1779
- //$truncate = substr($truncate, 0, $spacepos);
1780
- $truncate = mb_substr($truncate, 0, $spacepos);
1781
- }
1782
- }
1783
- // add the defined ending to the text
1784
- $truncate .= $ending;
1785
- if($considerHtml) {
1786
- // close all unclosed html-tags
1787
- foreach ($open_tags as $tag) {
1788
- $truncate .= '</' . $tag . '>';
1789
- }
1790
  }
1791
- return $truncate;
1792
- }
1793
 
1794
- /**
1795
- * Loads translations
1796
- * Since 2.0.0
1797
- */
1798
- function wpp_textdomain() {
1799
- load_plugin_textdomain( 'wordpress-popular-posts', false, dirname(plugin_basename( __FILE__ )) . '/lang/' );
1800
- }
1801
 
1802
- /**
1803
- * Loads WPP stylesheet into wp_head()
1804
- * Since 2.0.0
1805
- */
1806
- function wpp_print_stylesheet() {
1807
 
1808
- $css_path = NULL;
1809
 
1810
- if ( !is_admin() ) {
1811
 
1812
- $theme_file = get_stylesheet_directory() . '/wpp.css';
1813
- $plugin_file = plugin_dir_path(__FILE__) . 'style/wpp.css';
1814
 
1815
- if ( @file_exists($theme_file) ) { // user stored a custom wpp.css on theme's directory, so use it
1816
- $css_path = get_stylesheet_directory_uri() . "/wpp.css";
1817
- } elseif ( @file_exists($plugin_file) ) { // no custom wpp.css, use plugin's instead
1818
- $css_path = $this->pluginDir . 'style/wpp.css';
1819
- }
1820
 
1821
- if ( $css_path )
1822
- wp_enqueue_style('wordpress-popular-posts', $css_path, false, $this->version);
1823
 
1824
- }
1825
- }
 
1826
 
1827
  /**
1828
- * WPP Admin page
1829
- * Since 2.3.0
1830
- */
1831
- function wpp_admin() {
1832
- require (dirname(__FILE__) . '/admin.php');
1833
- }
1834
- function add_wpp_admin() {
1835
- add_options_page('Wordpress Popular Posts', 'Wordpress Popular Posts', 'manage_options', 'wpp_admin', array(&$this, 'wpp_admin'));
1836
- }
1837
- /**
1838
- * Upload scripts for the admin section
1839
- * Since 2.3.4
1840
  */
1841
- function wpp_admin_enqueue_scripts() {
1842
-
1843
- wp_register_script( 'wpp-upload', $this->pluginDir . 'js/wpp-upload.js', array('jquery','media-upload','thickbox'), $this->version );
1844
-
1845
- if ( get_current_screen()->id == 'settings_page_wpp_admin' ) {
1846
-
1847
- wp_enqueue_script('jquery');
1848
- wp_enqueue_script('thickbox');
1849
- wp_enqueue_style('thickbox');
1850
- wp_enqueue_script('media-upload');
1851
- wp_enqueue_script('wpp-upload');
1852
-
1853
- }
1854
-
1855
- }
1856
- function wpp_tb_setup() {
1857
-
1858
- global $pagenow;
1859
- if ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) {
1860
- add_filter( 'gettext', array(&$this, 'replace_thickbox_text'), 1, 3 );
1861
- }
1862
-
1863
- }
1864
- function replace_thickbox_text($translated_text, $text, $domain) {
1865
-
1866
- if ('Insert into Post' == $text) {
1867
- $referer = strpos( wp_get_referer(), 'wpp_admin' );
1868
- if ( $referer != '' ) {
1869
- return __('Upload', 'wordpress-popular-posts' );
1870
- }
1871
- }
1872
-
1873
- return $translated_text;
1874
  }
1875
 
1876
  /**
1877
- * WPP Update warning - lets the user know that the current WP version is too old
1878
- * Since 2.0.0
 
 
1879
  */
1880
- function wpp_update_warning() {
1881
- $msg = '<div id="wpp-message" class="error fade"><p>'.__('Your Wordpress version is too old. Wordpress Popular Posts Plugin requires at least version 3.3 to function correctly. Please update your blog via Tools &gt; Upgrade.', 'wordpress-popular-posts').'</p></div>';
1882
- echo trim($msg);
1883
- }
1884
 
1885
  /**
1886
- * PHP Update warning - lets the user know that the PHP version is too old
1887
- * Since 2.3.3
 
 
1888
  */
1889
- function php_update_warning() {
1890
- $msg = '<div id="wpp-php-message" class="error fade"><p>'.__('Your PHP installation is too old. Wordpress Popular Posts Plugin requires at least PHP v5.2.0 to function correctly. Please contact your hosting provider and ask them to upgrade PHP to 5.2.x or higher.', 'wordpress-popular-posts').'</p></div>';
1891
- echo trim($msg);
1892
- }
1893
 
1894
  /**
1895
- * WPP cache maintenance
1896
- * Since 2.0.0
 
 
1897
  */
1898
- function wpp_cache_maintenance() {
1899
- global $wpdb;
1900
-
1901
- // delete posts that have not been seen in the past 30 days
1902
- $wpdb->query( "DELETE FROM ".$wpdb->prefix."popularpostsdatacache WHERE day < DATE_SUB('".$this->curdate()."', INTERVAL 30 DAY);" );
1903
 
1904
- // delete posts that have been deleted or trashed - added on ver 2.3.3
1905
- $wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostsdata WHERE postid IN (SELECT c.id FROM (SELECT id FROM {$wpdb->prefix}popularpostsdatacache GROUP BY id) c LEFT JOIN {$wpdb->posts} p ON c.id = p.ID WHERE p.ID IS NULL OR p.post_status = 'trash');" );
1906
- $wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostsdatacache WHERE id IN (SELECT c.id FROM (SELECT id FROM {$wpdb->prefix}popularpostsdatacache GROUP BY id) c LEFT JOIN {$wpdb->posts} p ON c.id = p.ID WHERE p.ID IS NULL OR p.post_status = 'trash');" );
1907
 
1908
- }
 
1909
 
1910
- /**
1911
- * WPP plugin deactivation
1912
- * Since 2.0.0
1913
- */
1914
- function wpp_deactivation() {
1915
- wp_clear_scheduled_hook('wpp_cache_event');
1916
- remove_shortcode('wpp');
1917
- remove_shortcode('WPP');
1918
- }
1919
 
1920
  /**
1921
- * WPP shortcode handler
1922
- * Since 2.0.0
 
 
 
 
1923
  */
1924
- function wpp_shortcode($atts = NULL, $content = NULL) {
1925
 
1926
- extract( shortcode_atts( array(
1927
- 'header' => '',
1928
- 'limit' => 10,
1929
- 'range' => 'daily',
1930
- 'order_by' => 'views',
1931
- 'post_type' => 'post,page',
1932
- 'pid' => '',
1933
- 'cat' => '',
1934
- 'author' => '',
1935
- 'title_length' => 0,
1936
- 'title_by_words' => 0,
1937
- 'excerpt_length' => 0,
1938
- 'excerpt_format' => 0,
1939
- 'excerpt_by_words' => 0,
1940
- 'thumbnail_width' => 0,
1941
- 'thumbnail_height' => 0,
1942
- 'thumbnail_selection' => 'wppgenerated',
1943
- 'rating' => false,
1944
- 'stats_comments' => true,
1945
- 'stats_views' => false,
1946
- 'stats_author' => false,
1947
- 'stats_date' => false,
1948
- 'stats_date_format' => 'F j, Y',
1949
- 'stats_category' => false,
1950
- 'wpp_start' => '<ul class="wpp-list">',
1951
- 'wpp_end' => '</ul>',
1952
- 'post_html' => '',
1953
- 'post_start' => '<li>',
1954
- 'post_end' => '</li>',
1955
- 'header_start' => '<h2>',
1956
- 'header_end' => '</h2>',
1957
- 'do_pattern' => false,
1958
- 'pattern_form' => '{thumb} {title}: {summary} {stats}'
1959
- ), $atts ) );
1960
 
1961
- // possible values for "Time Range" and "Order by"
1962
- $range_values = array("yesterday", "daily", "weekly", "monthly", "all");
1963
- $order_by_values = array("comments", "views", "avg");
1964
- $thumbnail_selector = array("wppgenerated", "usergenerated");
1965
 
1966
- $shortcode_ops = array(
1967
- 'title' => strip_tags($header),
1968
- 'limit' => empty($limit) ? 10 : (is_numeric($limit)) ? (($limit > 0) ? $limit : 10) : 10,
1969
- 'range' => (in_array($range, $range_values)) ? $range : 'daily',
1970
- 'order_by' => (in_array($order_by, $order_by_values)) ? $order_by : 'views',
1971
- 'post_type' => empty($post_type) ? 'post,page' : $post_type,
1972
- 'pid' => preg_replace( '|[^0-9,]|', '', $pid ),
1973
- 'cat' => preg_replace( '|[^0-9,-]|', '', $cat ),
1974
- 'author' => preg_replace( '|[^0-9,]|', '', $author ),
1975
- 'shorten_title' => array(
1976
- 'active' => empty($title_length) ? false : (is_numeric($title_length)) ? (($title_length > 0) ? true : false) : false,
1977
- 'length' => empty($title_length) ? 0 : (is_numeric($title_length)) ? $title_length : 0,
1978
- 'words' => empty($title_by_words) ? false : (is_numeric($title_by_words) && $title_by_words > 0) ? true : false
1979
- ),
1980
- 'post-excerpt' => array(
1981
- 'active' => empty($excerpt_length) ? false : (is_numeric($excerpt_length)) ? (($excerpt_length > 0) ? true : false) : false,
1982
- 'length' => empty($excerpt_length) ? 0 : (is_numeric($excerpt_length)) ? $excerpt_length : 0,
1983
- 'keep_format' => empty($excerpt_format) ? false : (is_numeric($excerpt_format)) ? (($excerpt_format > 0) ? true : false) : false,
1984
- 'words' => empty($excerpt_by_words) ? false : (is_numeric($excerpt_by_words) && $excerpt_by_words > 0) ? true : false,
1985
- ),
1986
- 'thumbnail' => array(
1987
- 'active' => empty($thumbnail_width) ? false : (is_numeric($thumbnail_width)) ? (($thumbnail_width > 0) ? true : false) : false,
1988
- 'width' => empty($thumbnail_width) ? 0 : (is_numeric($thumbnail_width)) ? $thumbnail_width : 0,
1989
- 'height' => empty($thumbnail_height) ? 0 : (is_numeric($thumbnail_height)) ? $thumbnail_height : 0
1990
- ),
1991
- 'rating' => empty($rating) || $rating = "false" ? false : true,
1992
- 'stats_tag' => array(
1993
- 'comment_count' => empty($stats_comments) ? false : $stats_comments,
1994
- 'views' => empty($stats_views) ? false : $stats_views,
1995
- 'author' => empty($stats_author) ? false : $stats_author,
1996
- 'date' => array(
1997
- 'active' => empty($stats_date) ? false : $stats_date,
1998
- 'format' => empty($stats_date_format) ? 'F j, Y' : $stats_date_format
1999
- ),
2000
- 'category' => empty($stats_category) ? false : $stats_category,
2001
- ),
2002
- 'markup' => array(
2003
- 'custom_html' => true,
2004
- 'wpp-start' => empty($wpp_start) ? '&lt;ul class="wpp-list"&gt;' : $wpp_start,
2005
- 'wpp-end' => empty($wpp_end) ? '&lt;/ul&gt;' : $wpp_end,
2006
- 'post-html' => empty($post_html) ? '&lt;li&gt;{thumb} {title} {stats}&lt;/li&gt;' : $post_html,
2007
- 'post-start' => empty($post_start) ? '&lt;li&gt;' : $post_start,
2008
- 'post-end' => empty($post_end) ? '&lt;/li&gt;' : $post_end,
2009
- 'title-start' => empty($header_start) ? '' : $header_start,
2010
- 'title-end' => empty($header_end) ? '' : $header_end
2011
- )
2012
- );
2013
 
2014
- /*echo "<pre>"; print_r( $shortcode_ops ); echo "</pre>";*/
2015
 
2016
- $shortcode_content = "<!-- Wordpress Popular Posts Plugin v". $this->version ." [SC] [".$shortcode_ops['range']."] [".$shortcode_ops['order_by']."]". (($shortcode_ops['markup']['custom_html']) ? ' [custom]' : ' [regular]') ." -->"."\n";
2017
 
2018
- // is there a title defined by user?
2019
- if (!empty($header) && !empty($header_start) && !empty($header_end)) {
2020
- $shortcode_content .= $header_start . apply_filters('widget_title', $header) . $header_end;
 
 
2021
  }
2022
 
2023
- // print popular posts list
2024
- $shortcode_content .= $this->get_popular_posts($shortcode_ops);
2025
- $shortcode_content .= "<!-- End Wordpress Popular Posts Plugin v". $this->version ." -->"."\n";
2026
 
2027
- return $shortcode_content;
2028
- }
2029
 
2030
  /**
2031
- * WPP action links
2032
- * Since 2.3.3
 
 
2033
  */
2034
- function wpp_action_links( $links, $file ){
2035
- static $this_plugin;
2036
 
2037
- if (!$this_plugin) {
2038
- $this_plugin = plugin_basename(__FILE__);
2039
- }
 
2040
 
2041
- if ($file == $this_plugin) {
2042
- $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/options-general.php?page=wpp_admin">Settings</a>';
2043
- array_unshift($links, $settings_link);
 
2044
  }
2045
 
2046
- return $links;
2047
- }
2048
 
2049
- /**
2050
- * Sorter
2051
- * Since 2.3.0
2052
- */
2053
- function sorter($a, $b) {
2054
- if ($a > 0 && $b > 0) {
2055
- return $a - $b;
2056
- } else {
2057
- return $b - $a;
2058
- }
2059
- }
2060
 
2061
  /**
2062
- * Merges two associative arrays recursively
2063
- * Source: http://www.php.net/manual/en/function.array-merge-recursive.php#92195
2064
- * Since 2.3.4
 
 
2065
  */
2066
- function array_merge_recursive_distinct( array &$array1, array &$array2 ) {
2067
- $merged = $array1;
 
 
 
 
 
 
 
 
2068
 
2069
- foreach ( $array2 as $key => &$value ) {
2070
- if ( is_array( $value ) && isset ( $merged[$key] ) && is_array( $merged[$key] ) ) {
2071
- $merged[$key] = $this->array_merge_recursive_distinct ( $merged[$key], $value );
2072
- } else {
2073
- $merged[$key] = $value;
2074
- }
2075
  }
2076
 
2077
- return $merged;
2078
- }
2079
 
2080
- }
2081
 
2082
- // create tables
2083
- register_activation_hook(__FILE__ , array('WordPressPopularPosts', 'wpp_install'));
2084
  }
2085
 
2086
  /**
@@ -2088,23 +2924,28 @@ if ( !class_exists('WordpressPopularPosts') ) {
2088
  */
2089
 
2090
  /**
2091
- * Template tag - gets views count
2092
- * $id (int) - post / page ID
2093
- * $range (string) - time frame
2094
- * Since 2.0.3.
 
 
 
 
2095
  */
2096
- function wpp_get_views($id = NULL, $range = NULL) {
 
2097
  // have we got an id?
2098
- if ( empty($id) || is_null($id) || !is_numeric($id) ) {
2099
  return "-1";
2100
  } else {
2101
  global $wpdb;
2102
 
2103
- $table_name = $wpdb->prefix . "popularpostsdata";
2104
- $query = "SELECT pageviews, last_viewed AS day FROM {$table_name} WHERE postid = '{$id}'";
2105
-
2106
- if ( $range ) {
2107
 
 
 
 
2108
  $interval = "";
2109
 
2110
  switch( $range ){
@@ -2131,22 +2972,25 @@ function wpp_get_views($id = NULL, $range = NULL) {
2131
 
2132
  $now = current_time('mysql');
2133
 
2134
- $query = "SELECT SUM(pageviews) AS pageviews, MAX(day) AS day FROM {$table_name}cache WHERE id = '{$id}' AND day > DATE_SUB('{$now}', INTERVAL {$interval}) LIMIT 1;";
2135
  }
2136
 
2137
- $result = $wpdb->get_results($query, ARRAY_A);
2138
 
2139
- if ( !is_array($result) || empty($result) || empty($result[0]['pageviews']) ) {
2140
  return "0";
2141
- } else {
2142
- return number_format( $result[0]['pageviews'] );
2143
  }
 
 
2144
  }
 
2145
  }
2146
 
2147
  /**
2148
- * Template tag - gets popular posts
2149
- * Since 2.0.3.
 
 
2150
  */
2151
  function wpp_get_mostpopular($args = NULL) {
2152
 
@@ -2168,30 +3012,15 @@ function wpp_get_mostpopular($args = NULL) {
2168
  }
2169
 
2170
  echo do_shortcode( $shortcode );
 
2171
  }
2172
 
2173
  /**
2174
- * Template tag - gets popular posts
2175
- * Deprecated in 2.0.3.
2176
- * Use wpp_get_mostpopular instead.
 
2177
  */
2178
  function get_mostpopular($args = NULL) {
2179
  return wpp_get_mostpopular($args);
2180
  }
2181
-
2182
-
2183
- /**
2184
- * Wordpress Popular Posts 2.3.6 Changelog.
2185
- */
2186
-
2187
- /*
2188
- = 2.3.6 =
2189
- * Added wpp_html filter to allow total control of the HTML output.
2190
- * Added sanitization for external thumbnail filenames to avoid weird characters.
2191
- * Updated thumbnail feature to handle external images.
2192
- * Removed unnecesary wpp-thumbnail class from link tag, the image already has it.
2193
- * Added wpp-list class to the UL tag, this should help style the popular list better.
2194
- * Updated wpp.css with text floating next to thumbnails - this sets a predefined style for the plugin for the first time.
2195
- * Added plugin version to wp_enqueue_* calls.
2196
- * Fixed typo in wpp_update_warning. From v2.3.3, minimun Wordpress version required is 3.3.
2197
- */
2
  /*
3
  Plugin Name: Wordpress Popular Posts
4
  Plugin URI: http://wordpress.org/extend/plugins/wordpress-popular-posts
5
+ Description: Wordpress Popular Posts is a highly customizable widget that displays the most popular posts on your blog
6
+ Version: 3.0.0
7
+ Author: Hector Cabrera
8
  Author URI: http://cabrerahector.com
9
+ Author Email: hcabrerab@gmail.com
10
+ Text Domain: wordpress-popular-posts
11
+ Domain Path: /lang/
12
+ Network: false
13
+ License: GPLv2 or later
14
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
+
16
+ Copyright 2013 Hector Cabrera (hcabrerab@gmail.com)
17
+
18
+ This program is free software; you can redistribute it and/or modify
19
+ it under the terms of the GNU General Public License, version 2, as
20
+ published by the Free Software Foundation.
21
+
22
+ This program is distributed in the hope that it will be useful,
23
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ GNU General Public License for more details.
26
+
27
+ You should have received a copy of the GNU General Public License
28
+ along with this program; if not, write to the Free Software
29
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
  */
31
 
32
+ if ( !defined('ABSPATH') )
33
+ exit('Please do not load this file directly.');
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * Wordpress Popular Posts class.
37
  */
38
  if ( !class_exists('WordpressPopularPosts') ) {
39
 
40
+ /**
41
+ * Register plugin's activation / deactivation functions
42
+ * @since 1.3
43
+ */
44
+ register_activation_hook( __FILE__, array( 'WordpressPopularPosts', 'activate' ) );
45
+ register_deactivation_hook( __FILE__, array( 'WordpressPopularPosts', 'deactivate' ) );
46
+
47
+ /**
48
+ * Add function to widgets_init that'll load WPP.
49
+ * @since 2.0
50
+ */
51
+ function load_wpp() {
52
+ register_widget( 'WordpressPopularPosts' );
53
+ }
54
+ add_action( 'widgets_init', 'load_wpp' );
55
+
56
  class WordpressPopularPosts extends WP_Widget {
57
+
58
+ /**
59
+ * Plugin version, used for cache-busting of style and script file references.
60
+ *
61
+ * @since 1.3.0
62
+ * @var string
63
+ */
64
+ private $version = '3.0.0';
65
+
66
+ /**
67
+ * Plugin identifier.
68
+ *
69
+ * @since 3.0.0
70
+ * @var string
71
+ */
72
+ private $plugin_slug = 'wordpress-popular-posts';
73
+
74
+ /**
75
+ * Instance of this class.
76
+ *
77
+ * @since 3.0.0
78
+ * @var object
79
+ */
80
+ protected static $instance = NULL;
81
+
82
+ /**
83
+ * Slug of the plugin screen.
84
+ *
85
+ * @since 3.0.0
86
+ * @var string
87
+ */
88
+ protected $plugin_screen_hook_suffix = NULL;
89
+
90
+ /**
91
+ * Plugin directory.
92
+ *
93
+ * @since 1.4.6
94
+ * @var string
95
+ */
96
+ private $plugin_dir = '';
97
+
98
+ /**
99
+ * Default thumbnail.
100
+ *
101
+ * @since 2.2.0
102
+ * @var string
103
+ */
104
+ private $default_thumbnail = '';
105
+
106
+ /**
107
+ * Flag to verify if thumbnails can be created or not.
108
+ *
109
+ * @since 1.4.6
110
+ * @var bool
111
+ */
112
+ private $thumbnailing = false;
113
+
114
+ /**
115
+ * Flag to verify if qTrans is present.
116
+ *
117
+ * @since 1.4.6
118
+ * @var bool
119
+ */
120
+ private $qTrans = false;
121
+
122
+ /**
123
+ * Default charset.
124
+ *
125
+ * @since 2.1.4
126
+ * @var string
127
+ */
128
+ private $charset = "UTF-8";
129
+
130
+ /**
131
+ * Plugin defaults.
132
+ *
133
+ * @since 2.3.3
134
+ * @var array
135
+ */
136
+ protected $defaults = array(
137
  'title' => '',
138
  'limit' => 10,
139
  'range' => 'daily',
140
+ 'freshness' => false,
141
  'order_by' => 'views',
142
  'post_type' => 'post,page',
143
  'pid' => '',
161
  ),
162
  'rating' => false,
163
  'stats_tag' => array(
164
+ 'comment_count' => false,
165
+ 'views' => true,
166
  'author' => false,
167
  'date' => array(
168
  'active' => false,
181
  'title-end' => '&lt;/h2&gt;'
182
  )
183
  );
184
+
185
+ /**
186
+ * Admin page user settings defaults.
187
+ *
188
+ * @since 2.3.3
189
+ * @var array
190
+ */
191
+ protected $default_user_settings = array(
192
  'stats' => array(
193
  'order_by' => 'views',
194
  'limit' => 10,
195
+ 'post_type' => 'post,page',
196
+ 'freshness' => false
197
  ),
198
  'tools' => array(
199
  'ajax' => false,
208
  'resize' => false,
209
  'default' => ''
210
  ),
211
+ 'log' => array(
212
+ 'level' => 0
213
+ ),
214
  'cache' => array(
215
  'active' => false,
216
  'interval' => array(
222
  );
223
 
224
  /**
225
+ * Admin page user settings.
226
+ *
227
+ * @since 2.3.3
228
+ * @var array
229
  */
230
+ private $user_settings = array();
231
+
232
+ /**
233
+ * Bots list.
234
+ *
235
+ * @since 3.0.0
236
+ * @var array
237
+ */
238
+ protected $botlist = array( 'abcdatos', 'accoona', 'acme', 'ahoy', 'altavista', 'anthill', 'appie', 'arachnophilia', 'araneo', 'aretha', 'ariadne', 'arks', 'ask', 'aspseek', 'atn', 'atomz', 'auresys', 'awapclient', 'backrub', 'bbot', 'bigfoot', 'blackwidow', 'blinde', 'bot', 'brother', 'cactvs', 'calif', 'cienciaficcion', 'cmc', 'combine', 'computingsite', 'cosmos', 'crawl', 'curl', 'cusco', 'cyberspyder', 'desertrealm', 'deweb', 'digger', 'digimarc', 'docomo', 'duppies', 'dwcp', 'ebiness', 'emacs', 'esculapio', 'esirover', 'esther', 'estyle', 'explorersearch', 'facebookexternalhit', 'feedfetcher', 'felixide', 'fido', 'flunky', 'fouineur', 'funnelweb', 'gazz', 'gcreep', 'gestalticonoclast', 'geturl', 'golem', 'google', 'grabber', 'griffon', 'gromit', 'gulliver', 'gulper', 'havindex', 'hazel', 'htdig', 'htmlgobble', 'ia_archiver', 'iagent', 'ibm', 'incywincy', 'indy', 'informant', 'infoseek', 'ingrid', 'inktomi', 'inspectorwww', 'intelliseek', 'internetseer', 'iron33', 'israelisearch', 'java', 'jeeves', 'jobo', 'jumpstation', 'kapsi', 'katipo', 'kdd', 'labelgrab', 'larbin', 'legs', 'link', 'linkidator', 'linkscan', 'linkwalker', 'lockon', 'logo', 'lwp', 'lycos', 'magpie', 'markwatch', 'marvin', 'mediafox', 'merzscope', 'meshexplorer', 'moget', 'monster', 'motor', 'mouse', 'msn', 'muninn', 'muscatferret', 'mwdsearch', 'nederland', 'netcarta', 'netmechanic', 'netscoop', 'newscan', 'nhsewalker', 'nomad', 'northstar', 'objectssearch', 'occam', 'openfind', 'orbsearch', 'packrat', 'pageboy', 'parasite', 'patric', 'pbwf', 'peregrinator', 'perl', 'pgp', 'phpdig', 'picaloader', 'piltdownman', 'pioneer', 'plumtreewebaccessor', 'poppi', 'portaljuice', 'raven', 'resume', 'rhcs', 'road', 'robbie', 'robofox', 'robozilla', 'root', 'rules', 'safetynet', 'scooter', 'scout', 'searchprocess', 'senrigan', 'shagseeker', 'shai', 'sitetech', 'sleek', 'slurp', 'slysearch', 'snooper', 'spanner', 'spider', 'sqworm', 'ssearcher', 'straight', 'suke', 'suntek', 'tarantula', 'teleport', 'templeton', 'teoma', 'teradex', 'titan', 'titin', 'ucsd', 'udmsearch', 'urlck', 'valet', 'validator', 'valkyrie', 'victoria', 'vision', 'voyager', 'w3index', 'w3m2', 'w3mir', 'webbandit', 'webcatcher', 'webclipping', 'webcopy', 'webfetcher', 'weblayers', 'weblinker', 'webmoose', 'webquest', 'webrank', 'webreader', 'webreaper', 'webs', 'websquash', 'webvac', 'webwalk', 'webwalker', 'webwatch', 'wget', 'whatuseek', 'whizbang', 'widow', 'wlm', 'wolp', 'wwwc', 'wwwwanderer', 'xget', 'yahoo', 'yandex', 'zealbot', 'zeus', 'zippy' );
239
 
240
+ /*--------------------------------------------------*/
241
+ /* Constructor
242
+ /*--------------------------------------------------*/
243
 
244
+ /**
245
+ * Initialize the widget by setting localization, filters, and administration functions.
246
+ *
247
+ * @since 1.0.0
248
+ */
249
+ public function __construct() {
250
 
251
+ // Load plugin text domain
252
+ add_action( 'init', array( $this, 'widget_textdomain' ) );
253
 
254
+ // Upgrade check
255
+ add_action( 'init', array( $this, 'upgrade_check' ) );
256
 
257
+ // Hook fired when a new blog is activated on WP Multisite
258
+ add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
259
 
260
+ // Notices check
261
+ add_action( 'admin_notices', array( $this, 'check_admin_notices' ) );
262
 
263
+ // Create the widget
264
+ parent::__construct(
265
+ 'wpp',
266
+ 'Wordpress Popular Posts',
267
+ array(
268
+ 'classname' => 'popular-posts',
269
+ 'description' => __( 'The most Popular Posts on your blog.', $this->plugin_slug )
270
+ )
271
+ );
272
 
273
+ // Get user options
274
+ $this->user_settings = get_site_option('wpp_settings_config');
275
+ if ( !$this->user_settings ) {
276
+ add_site_option('wpp_settings_config', $this->default_user_settings);
277
+ $this->user_settings = $this->default_user_settings;
278
+ } else {
279
+ $this->user_settings = $this->__merge_array_r( $this->default_user_settings, $this->user_settings );
280
  }
281
 
282
+ // Add the options page and menu item.
283
+ add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ) );
 
284
 
285
+ // Register admin styles and scripts
286
+ add_action( 'admin_print_styles', array( $this, 'register_admin_styles' ) );
287
+ add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );
288
+ add_action( 'admin_init', array( $this, 'thickbox_setup' ) );
289
 
290
+ // Register site styles and scripts
291
+ add_action( 'wp_enqueue_scripts', array( $this, 'register_widget_styles' ) );
292
+ add_action( 'wp_enqueue_scripts', array( $this, 'register_widget_scripts' ) );
 
 
 
 
293
 
294
+ // Add plugin settings link
295
+ add_filter( 'plugin_action_links', array( $this, 'add_plugin_settings_link' ), 10, 2 );
 
 
296
 
297
+ // Set plugin directory
298
+ $this->plugin_dir = plugin_dir_url(__FILE__);
 
299
 
300
+ // Get blog charset
301
+ $this->charset = get_bloginfo('charset');
 
 
 
 
 
 
302
 
303
+ // Add ajax table truncation to wp_ajax_ hook
304
+ add_action('wp_ajax_wpp_clear_data', array( $this, 'clear_data' ));
 
305
 
306
+ // Add ajax hook for widget
307
+ add_action('wp_ajax_wpp_get_popular', array( $this, 'get_popular') );
308
+ add_action('wp_ajax_nopriv_wpp_get_popular', array( $this, 'get_popular') );
309
+
310
+ // Check if images can be created
311
+ if ( extension_loaded('ImageMagick') || (extension_loaded('GD') && function_exists('gd_info')) )
312
+ $this->thumbnailing = true;
 
313
 
314
+ // Set default thumbnail
315
+ $this->default_thumbnail = $this->plugin_dir . "no_thumb.jpg";
316
+ $this->default_user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
317
 
318
+ if ( !empty($this->user_settings['tools']['thumbnail']['default']) )
319
+ $this->default_thumbnail = $this->user_settings['tools']['thumbnail']['default'];
320
+ else
321
+ $this->user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
322
 
323
+ // qTrans plugin support
324
+ if ( function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') )
325
+ $this->qTrans = true;
326
+
327
+ // Remove post/page prefetching!
328
+ remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
329
+ // Add the update hooks only if the logging conditions are met
330
+ if ( (0 == $this->user_settings['tools']['log']['level'] && !is_user_logged_in()) || (1 == $this->user_settings['tools']['log']['level']) || (2 == $this->user_settings['tools']['log']['level'] && is_user_logged_in()) ) {
331
+ // Log views on page load via AJAX
332
+ add_action( 'wp_head', array(&$this, 'print_ajax') );
333
+
334
+ // Register views from everyone and/or connected users
335
+ if ( 0 != $this->user_settings['tools']['log']['level'] )
336
+ add_action( 'wp_ajax_update_views_ajax', array($this, 'update_views_ajax') );
337
+ // Register views from everyone and/or visitors only
338
+ if ( 2 != $this->user_settings['tools']['log']['level'] )
339
+ add_action( 'wp_ajax_nopriv_update_views_ajax', array($this, 'update_views_ajax') );
340
+ }
341
 
342
+ // Add shortcode
343
+ add_shortcode('wpp', array(&$this, 'shortcode'));
344
+
345
+ // Enable data purging at midnight
346
+ add_action( 'wpp_cache_event', array($this, 'purge_data') );
347
+ if ( !wp_next_scheduled('wpp_cache_event') ) {
348
  $tomorrow = time() + 86400;
349
  $midnight = mktime(0, 0, 0,
350
  date("m", $tomorrow),
353
  wp_schedule_event( $midnight, 'daily', 'wpp_cache_event' );
354
  }
355
 
356
+ } // end constructor
 
 
 
 
357
 
358
+ /*--------------------------------------------------*/
359
+ /* Widget API Functions
360
+ /*--------------------------------------------------*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
 
362
  /**
363
+ * Outputs the content of the widget.
364
+ *
365
+ * @since 1.0.0
366
+ * @param array args The array of form elements
367
+ * @param array instance The current instance of the widget
368
  */
369
+ public function widget( $args, $instance ) {
370
+
371
+ $this->__debug($args);
372
+
373
+ /**
374
+ * @var String $name
375
+ * @var String $id
376
+ * @var String $description
377
+ * @var String $class
378
+ * @var String $before_widget
379
+ * @var String $after_widget
380
+ * @var String $before_title
381
+ * @var String $after_title
382
+ * @var String $widget_id
383
+ * @var String $widget_name
384
+ */
385
+ extract( $args, EXTR_SKIP );
386
+
387
+ $markup = ($instance['markup']['custom_html'])
388
+ ? 'custom'
389
+ : 'regular';
390
+
391
+ echo "\n". "<!-- Wordpress Popular Posts Plugin v{$this->version} [W] [{$instance['range']}] [{$instance['order_by']}] [{$markup}] -->" . "\n";
392
 
393
  echo $before_widget . "\n";
394
 
395
  // has user set a title?
396
+ if ( '' != $instance['title'] ) {
397
 
398
  $title = apply_filters( 'widget_title', $instance['title'] );
399
 
404
  }
405
  }
406
 
407
+ if ( $this->user_settings['tools']['ajax'] ) {
408
+ if ( empty($before_widget) || !preg_match('/id="[^"]*"/', $before_widget) ) {
409
+ ?>
410
+ <p><?php _e('Error: cannot ajaxify Wordpress Popular Posts on this theme. It\'s missing the <em>id</em> attribute on before_widget (see <a href="http://codex.wordpress.org/Function_Reference/register_sidebar" target="_blank" rel="nofollow">register_sidebar</a> for more).', $this->plugin_slug ); ?></p>
411
+ <?php
412
+ } else {
413
  ?>
414
+ <script type="text/javascript">//<![CDATA[
 
415
  jQuery(document).ready(function(){
416
+ jQuery.get('<?php echo admin_url('admin-ajax.php'); ?>', {
417
+ action: 'wpp_get_popular',
418
+ id: '<?php echo $this->number; ?>'
419
+ }, function(data){
420
  jQuery('#<?php echo $widget_id; ?>').append(data);
421
  });
422
  });
423
+ //]]></script>
 
424
  <?php
425
+ }
426
  } else {
427
+ echo $this->__get_popular_posts( $instance );
428
  }
429
 
430
  echo $after_widget . "\n";
431
+ echo "<!-- End Wordpress Popular Posts Plugin v{$this->version} -->"."\n";
432
+
433
+ } // end widget
434
 
435
  /**
436
+ * Processes the widget's options to be saved.
437
+ *
438
+ * @since 1.0.0
439
+ * @param array new_instance The previous instance of values before the update.
440
+ * @param array old_instance The new instance of values to be generated via the update.
441
+ * @return array instance Updated instance.
442
  */
443
+ public function update( $new_instance, $old_instance ) {
444
 
445
  $instance = $old_instance;
446
 
447
+ $instance['title'] = htmlspecialchars( stripslashes_deep(strip_tags( $new_instance['title'] )), ENT_QUOTES );
448
+ $instance['limit'] = ( $this->__is_numeric($new_instance['limit']) && $new_instance['limit'] > 0 )
449
+ ? $new_instance['limit']
450
+ : 10;
451
  $instance['range'] = $new_instance['range'];
452
  $instance['order_by'] = $new_instance['order_by'];
453
 
454
  // FILTERS
455
+ // user did not define the custom post type name, so we fall back to default
456
+ $instance['post_type'] = ( '' == $new_instance['post_type'] )
457
+ ? 'post,page'
458
+ : $new_instance['post_type'];
 
459
 
460
  $instance['pid'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['pid'] ))));
 
461
  $instance['cat'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,-]|', '', $new_instance['cat'] ))));
462
  $instance['author'] = implode(",", array_filter(explode(",", preg_replace( '|[^0-9,]|', '', $new_instance['uid'] ))));
463
 
 
 
464
  $instance['shorten_title']['words'] = $new_instance['shorten_title-words'];
465
+ $instance['shorten_title']['active'] = $new_instance['shorten_title-active'];
466
+ $instance['shorten_title']['length'] = ( $this->__is_numeric($new_instance['shorten_title-length']) && $new_instance['shorten_title-length'] > 0 )
467
+ ? $new_instance['shorten_title-length']
468
+ : 25;
469
+
470
  $instance['post-excerpt']['keep_format'] = $new_instance['post-excerpt-format'];
471
  $instance['post-excerpt']['words'] = $new_instance['post-excerpt-words'];
472
+ $instance['post-excerpt']['active'] = $new_instance['post-excerpt-active'];
473
+ $instance['post-excerpt']['length'] = ( $this->__is_numeric($new_instance['post-excerpt-length']) && $new_instance['post-excerpt-length'] > 0 )
474
+ ? $new_instance['post-excerpt-length']
475
+ : 55;
476
+
477
+ $instance['thumbnail']['active'] = false;
478
+ $instance['thumbnail']['width'] = 15;
479
+ $instance['thumbnail']['height'] = 15;
480
+
481
+ // can create thumbnails
482
+ if ( $this->thumbnailing ) {
483
 
484
+ $instance['thumbnail']['active'] = $new_instance['thumbnail-active'];
 
485
 
486
+ if ($this->__is_numeric($new_instance['thumbnail-width']) && $this->__is_numeric($new_instance['thumbnail-height'])) {
487
  $instance['thumbnail']['width'] = $new_instance['thumbnail-width'];
488
  $instance['thumbnail']['height'] = $new_instance['thumbnail-height'];
 
 
 
489
  }
490
 
 
 
 
 
491
  }
492
 
493
  if ( isset($instance['thumbnail']['thumb_selection']) )
494
  unset( $instance['thumbnail']['thumb_selection'] );
495
 
496
+ $instance['rating'] = $new_instance['rating'];
497
+ $instance['stats_tag']['comment_count'] = $new_instance['comment_count'];
498
+ $instance['stats_tag']['views'] = $new_instance['views'];
499
+ $instance['stats_tag']['author'] = $new_instance['author'];
500
+ $instance['stats_tag']['date']['active'] = $new_instance['date'];
501
+ $instance['stats_tag']['date']['format'] = empty($new_instance['date_format'])
502
+ ? 'F j, Y'
503
+ : $new_instance['date_format'];
504
+
505
+ $instance['stats_tag']['category'] = $new_instance['category'];
506
  $instance['markup']['custom_html'] = $new_instance['custom_html'];
507
+ $instance['markup']['wpp-start'] = empty($new_instance['wpp-start'])
508
+ ? htmlspecialchars( '<ul class="wpp-list">', ENT_QUOTES )
509
+ : htmlspecialchars( $new_instance['wpp-start'], ENT_QUOTES );
510
+
511
+ $instance['markup']['wpp-end'] = empty($new_instance['wpp-end'])
512
+ ? htmlspecialchars( '</ul>', ENT_QUOTES )
513
+ : htmlspecialchars( $new_instance['wpp-end'], ENT_QUOTES );
514
+
515
+ $instance['markup']['post-html'] = empty($new_instance['post-html'])
516
+ ? htmlspecialchars( '<li>{thumb} {title} {stats}</li>', ENT_QUOTES )
517
+ : htmlspecialchars( $new_instance['post-html'], ENT_QUOTES );
518
+
519
+ $instance['markup']['title-start'] = empty($new_instance['title-start'])
520
+ ? ''
521
+ : htmlspecialchars( $new_instance['title-start'], ENT_QUOTES );
522
+
523
+ $instance['markup']['title-end'] = empty($new_instance['title-end'])
524
+ ? '' :
525
+ htmlspecialchars( $new_instance['title-end'], ENT_QUOTES );
526
 
527
  return $instance;
528
+
529
+ } // end widget
530
 
531
  /**
532
+ * Generates the administration form for the widget.
533
+ *
534
+ * @since 1.0.0
535
+ * @param array instance The array of keys and values for the widget.
536
  */
537
+ public function form( $instance ) {
538
 
539
+ // parse instance values
540
+ $instance = $this->__merge_array_r(
541
+ $this->defaults,
542
+ $instance
543
+ );
544
 
545
+ // Display the admin form
546
+ include( plugin_dir_path(__FILE__) . '/views/form.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547
 
548
+ } // end form
 
 
 
 
 
 
549
 
550
+ /*--------------------------------------------------*/
551
+ /* Public methods
552
+ /*--------------------------------------------------*/
553
 
554
  /**
555
+ * Loads the Widget's text domain for localization and translation.
556
+ *
557
+ * @since 1.0.0
558
  */
559
+ public function widget_textdomain() {
 
 
 
 
560
 
561
+ $domain = $this->plugin_slug;
562
+ $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
 
 
 
 
563
 
564
+ load_textdomain( $domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' );
565
+ load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
566
 
567
+ } // end widget_textdomain
 
 
 
 
568
 
569
+ /**
570
+ * Registers and enqueues admin-specific styles.
571
+ *
572
+ * @since 1.0.0
573
+ */
574
+ public function register_admin_styles() {
575
 
576
+ if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
577
+ return;
578
+ }
579
 
580
+ $screen = get_current_screen();
581
+ if ( $screen->id == $this->plugin_screen_hook_suffix ) {
582
+ wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'style/admin.css', __FILE__ ), array(), $this->version );
583
+ }
584
 
585
+ } // end register_admin_styles
586
 
587
+ /**
588
+ * Registers and enqueues admin-specific JavaScript.
589
+ *
590
+ * @since 2.3.4
591
+ */
592
+ public function register_admin_scripts() {
593
 
594
+ if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
595
+ return;
596
+ }
597
 
598
+ $screen = get_current_screen();
599
+ if ( $screen->id == $this->plugin_screen_hook_suffix ) {
600
+ wp_enqueue_script( 'thickbox' );
601
+ wp_enqueue_style( 'thickbox' );
602
+ wp_enqueue_script( 'media-upload' );
603
+ wp_enqueue_script( $this->plugin_slug .'-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array('jquery'), $this->version );
604
+ }
605
 
606
+ } // end register_admin_scripts
607
 
608
+ /**
609
+ * Hooks into getttext to change upload button text when uploader is called by WPP.
610
+ *
611
+ * @since 2.3.4
612
+ */
613
+ function thickbox_setup() {
614
 
615
+ global $pagenow;
616
+ if ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) {
617
+ add_filter( 'gettext', array( $this, 'replace_thickbox_text' ), 1, 3 );
 
618
  }
619
+
620
+ } // end thickbox_setup
621
 
622
  /**
623
+ * Replaces upload button text when uploader is called by WPP.
624
+ *
625
+ * @since 2.3.4
626
+ * @param string translated_text
627
+ * @param string text
628
+ * @param string domain
629
+ * @return string
630
  */
631
+ function replace_thickbox_text($translated_text, $text, $domain) {
632
 
633
+ if ('Insert into Post' == $text) {
634
+ $referer = strpos( wp_get_referer(), $this->plugin_slug );
635
+ if ( $referer != '' ) {
636
+ return __('Upload', $this->plugin_slug );
637
+ }
638
+ }
639
 
640
+ return $translated_text;
 
641
 
642
+ } // end replace_thickbox_text
643
 
644
+ /**
645
+ * Registers and enqueues widget-specific styles.
646
+ *
647
+ * @since 1.0.0
648
+ */
649
+ public function register_widget_styles() {
650
+ wp_enqueue_style( $this->plugin_slug, plugins_url( 'style/wpp.css', __FILE__ ), array(), $this->version );
651
+ } // end register_widget_styles
652
 
653
+ /**
654
+ * Registers and enqueues widget-specific scripts.
655
+ *
656
+ * @since 1.0.0
657
+ */
658
+ public function register_widget_scripts() {
659
+ wp_enqueue_script( $this->plugin_slug .'-script', plugins_url( 'js/widget.js', __FILE__ ), array('jquery'), $this->version );
660
+ } // end register_widget_scripts
661
 
662
+ /**
663
+ * Register the administration menu for this plugin into the WordPress Dashboard menu.
664
+ *
665
+ * @since 1.0.0
666
+ */
667
+ public function add_plugin_admin_menu() {
668
+
669
+ $this->plugin_screen_hook_suffix = add_options_page(
670
+ 'Wordpress Popular Posts',
671
+ 'Wordpress Popular Posts',
672
+ 'manage_options',
673
+ $this->plugin_slug,
674
+ array( $this, 'display_plugin_admin_page' )
675
+ );
676
 
677
+ }
678
 
679
+ /**
680
+ * Render the settings page for this plugin.
681
+ *
682
+ * @since 1.0.0
683
+ */
684
+ public function display_plugin_admin_page() {
685
+ include_once( 'views/admin.php' );
686
  }
687
 
688
  /**
689
+ * Registers Settings link on plugin description.
690
+ *
691
+ * @since 2.3.3
692
+ * @param array links
693
+ * @param string file
694
+ * @return array
695
  */
696
+ public function add_plugin_settings_link( $links, $file ){
697
 
698
+ $this_plugin = plugin_basename(__FILE__);
 
 
 
 
699
 
700
+ if ( is_plugin_active($this_plugin) && $file == $this_plugin ) {
701
+ $links[] = '<a href="' . admin_url( 'options-general.php?page=wordpress-popular-posts' ) . '">Settings</a>';
702
+ }
703
 
704
+ return $links;
705
 
706
+ } // end add_plugin_settings_link
 
707
 
708
+ /*--------------------------------------------------*/
709
+ /* Install / activation / deactivation methods
710
+ /*--------------------------------------------------*/
711
 
712
+ /**
713
+ * Return an instance of this class.
714
+ *
715
+ * @since 3.0.0
716
+ * @return object A single instance of this class.
717
+ */
718
+ public static function get_instance() {
719
 
720
+ // If the single instance hasn't been set, set it now.
721
+ if ( NULL == self::$instance ) {
722
+ self::$instance = new self;
723
  }
724
 
725
+ return self::$instance;
726
 
727
+ } // end get_instance
728
 
729
  /**
730
+ * Fired when the plugin is activated.
731
+ *
732
+ * @since 1.0.0
733
+ * @global object wpdb
734
+ * @param bool network_wide True if WPMU superadmin uses "Network Activate" action, false if WPMU is disabled or plugin is activated on an individual blog.
735
  */
736
+ public static function activate( $network_wide ) {
 
 
 
737
 
738
+ global $wpdb;
 
 
 
 
739
 
740
+ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
741
+
742
+ // run activation for each blog in the network
743
+ if ( $network_wide ) {
744
+
745
+ $original_blog_id = get_current_blog_id();
746
+ $blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
747
+
748
+ foreach( $blogs_ids as $blog_id ) {
749
+ switch_to_blog( $blog_id );
750
+ self::__activate();
 
 
 
751
  }
752
+
753
+ // switch back to current blog
754
+ switch_to_blog( $original_blog_id );
755
+
756
+ return;
757
+
758
  }
759
+
 
760
  }
761
 
762
+ self::__activate();
763
+
764
+ } // end activate
765
 
766
  /**
767
+ * Fired when a new blog is activated on WP Multisite.
768
+ *
769
+ * @since 3.0.0
770
+ * @param int blog_id New blog ID
771
  */
772
+ public function activate_new_site( $blog_id ){
 
773
 
774
+ if ( 1 !== did_action( 'wpmu_new_blog' ) )
775
+ return;
776
 
777
+ // run activation for the new blog
778
+ switch_to_blog( $blog_id );
779
+ self::__activate();
780
 
781
+ // switch back to current blog
782
+ restore_current_blog();
783
+
784
+ } // end activate_new_site
785
+
786
+ /**
787
+ * On plugin activation, checks that the WPP database tables are present.
788
+ *
789
+ * @since 2.4.0
790
+ * @global object wpdb
791
+ */
792
+ private static function __activate() {
793
 
794
+ global $wpdb;
 
795
 
796
  // set table name
797
+ $prefix = $wpdb->prefix . "popularposts";
798
 
799
+ // fresh setup
800
+ if ( $prefix != $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") ) {
801
+ self::__do_db_tables( $prefix );
802
+ }
803
 
804
+ } // end __activate
 
805
 
806
+ /**
807
+ * Fired when the plugin is deactivated.
808
+ *
809
+ * @since 1.0.0
810
+ * @global object wpbd
811
+ * @param bool network_wide True if WPMU superadmin uses "Network Activate" action, false if WPMU is disabled or plugin is activated on an individual blog
812
+ */
813
+ public static function deactivate( $network_wide ) {
814
 
815
+ global $wpdb;
 
816
 
817
+ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
 
818
 
819
+ // Run deactivation for each blog in the network
820
+ if ( $network_wide ) {
 
 
 
 
 
821
 
822
+ $original_blog_id = get_current_blog_id();
823
+ $blogs_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" );
 
 
 
824
 
825
+ foreach( $blogs_ids as $blog_id ) {
826
+ switch_to_blog( $blog_id );
827
+ self::__deactivate();
828
  }
829
 
830
+ // Switch back to current blog
831
+ switch_to_blog( $original_blog_id );
 
 
832
 
833
+ return;
 
 
 
834
 
835
  }
836
+
837
  }
838
 
839
+ self::__deactivate();
840
+
841
+ } // end deactivate
842
 
843
  /**
844
+ * On plugin deactivation, disables the shortcode and removes the scheduled task.
845
+ *
846
+ * @since 2.4.0
847
  */
848
+ private static function __deactivate() {
849
 
850
+ remove_shortcode('wpp');
851
+ wp_clear_scheduled_hook('wpp_cache_event');
852
 
853
+ } // end __deactivate
 
 
854
 
855
+ /**
856
+ * Checks if an upgrade procedure is required.
857
+ *
858
+ * @since 2.4.0
859
+ */
860
+ public function upgrade_check(){
861
 
862
+ // Get WPP version
863
+ $wpp_ver = get_site_option('wpp_ver');
864
 
865
+ if ( !$wpp_ver ) {
866
+ add_site_option('wpp_ver', $this->version);
867
+ } elseif ( version_compare($wpp_ver, $this->version, '<') ) {
868
+ $this->__upgrade();
869
+ }
870
 
871
+ } // end upgrade_check
872
+
873
+ /**
874
+ * On plugin upgrade, performs a number of actions: update WPP database tables structures (if needed),
875
+ * run the setup wizard (if needed), and some other checks.
876
+ *
877
+ * @since 2.4.0
878
+ * @global object wpdb
879
+ */
880
+ private function __upgrade() {
881
+
882
+ global $wpdb;
883
 
884
  // set table name
885
+ $prefix = $wpdb->prefix . "popularposts";
 
886
 
887
+ // validate the structure of the tables and create missing tables
888
+ self::__do_db_tables( $prefix );
 
 
889
 
890
+ // If summary is empty, import data from popularpostsdatacache
891
+ if ( !$wpdb->get_var("SELECT COUNT(*) FROM {$prefix}summary") ) {
892
 
893
+ // popularpostsdatacache table is still there
894
+ if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}datacache'") ) {
895
 
896
+ $sql = "
897
+ INSERT INTO {$prefix}summary (postid, pageviews, view_date, last_viewed)
898
+ SELECT id, pageviews, day_no_time, day
899
+ FROM {$prefix}datacache
900
+ GROUP BY day_no_time, id
901
+ ORDER BY day_no_time DESC";
 
902
 
903
+ $result = $wpdb->query( $sql );
904
+
905
+ // Rename old caching table
906
+ if ( $result ) {
907
+ $result = $wpdb->query( "RENAME TABLE {$prefix}datacache TO {$prefix}datacache_backup;" );
908
  }
 
909
 
 
 
910
  }
911
 
912
+ }
913
+
914
+ // Check indexes and fields
915
+ $dataFields = $wpdb->get_results( "SHOW FIELDS FROM {$prefix}data;" );
916
+
917
+ // Update fields, if needed
918
+ foreach ( $dataFields as $column ) {
919
+ if ( "postid" == $column->Field && "bigint(20)" != $column->Type ) {
920
+ $wpdb->query("ALTER TABLE {$prefix}data CHANGE postid postid bigint(20) NOT NULL;");
921
  }
922
 
923
+ if ( "pageviews" == $column->Field && "bigint(20)" != $column->Type ) {
924
+ $wpdb->query("ALTER TABLE {$prefix}data CHANGE pageviews pageviews bigint(20) DEFAULT 1;");
 
925
  }
926
  }
927
 
928
+ // Update index, if needed
929
+ $dataIndex = $wpdb->get_results("SHOW INDEX FROM {$prefix}data;", ARRAY_A);
930
+
931
+ if ( "PRIMARY" != $dataIndex[0]['Key_name'] ) {
932
+ $wpdb->query("ALTER TABLE {$prefix}data DROP INDEX id, ADD PRIMARY KEY (postid);");
933
+ }
934
+
935
+ // Update WPP version
936
+ update_site_option('wpp_ver', $this->version);
937
+
938
+ } // end __upgrade
939
+
940
+ /**
941
+ * Creates/updates the WPP database tables.
942
+ *
943
+ * @since 2.4.0
944
+ * @global object wpdb
945
+ */
946
+ private static function __do_db_tables( $prefix ) {
947
+
948
+ global $wpdb;
949
+
950
+ $sql = "";
951
+ $charset_collate = "";
952
+
953
+ if ( !empty($wpdb->charset) )
954
+ $charset_collate = "DEFAULT CHARACTER SET {$wpdb->charset} ";
955
+
956
+ if ( !empty($wpdb->collate) )
957
+ $charset_collate .= "COLLATE {$wpdb->collate}";
958
+
959
+ $sql = "
960
+ CREATE TABLE {$prefix}data (
961
+ postid bigint(20) NOT NULL,
962
+ day datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
963
+ last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
964
+ pageviews bigint(20) DEFAULT 1,
965
+ PRIMARY KEY (postid)
966
+ ) {$charset_collate};
967
+ CREATE TABLE {$prefix}summary (
968
+ ID bigint(20) NOT NULL AUTO_INCREMENT,
969
+ postid bigint(20) NOT NULL,
970
+ pageviews bigint(20) NOT NULL DEFAULT 1,
971
+ view_date date NOT NULL DEFAULT '0000-00-00',
972
+ last_viewed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
973
+ PRIMARY KEY (ID),
974
+ UNIQUE KEY ID_date (postid,view_date),
975
+ KEY postid (postid),
976
+ KEY last_viewed (last_viewed)
977
+ ) {$charset_collate};";
978
+
979
+ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
980
  dbDelta($sql);
981
 
982
+ } // end __do_db_tables
983
 
984
  /**
985
+ * Checks if the technical requirements are met.
986
+ *
987
+ * @since 2.4.0
988
+ * @link http://wordpress.stackexchange.com/questions/25910/uninstall-activate-deactivate-a-plugin-typical-features-how-to/25979#25979
989
+ * @global string $wp_version
990
+ * @return array
991
  */
992
+ private function __check_requirements() {
993
 
994
+ global $wp_version;
995
 
996
+ $php_min_version = '5.2';
997
+ $wp_min_version = '3.8';
998
+ $php_current_version = phpversion();
999
+ $errors = array();
1000
 
1001
+ if ( version_compare( $php_min_version, $php_current_version, '>' ) ) {
1002
+ $errors[] = sprintf(
1003
+ __( 'Your PHP installation is too old. Wordpress Popular Posts requires at least PHP version %1$s to function correctly. Please contact your hosting provider and ask them to upgrade PHP to %1$s or higher.', $this->plugin_slug ),
1004
+ $php_min_version
1005
+ );
1006
+ }
1007
+
1008
+ if ( version_compare( $wp_min_version, $wp_version, '>' ) ) {
1009
+ $errors[] = sprintf(
1010
+ __( 'Your Wordpress version is too old. Wordpress Popular Posts requires at least Wordpress version %1$s to function correctly. Please update your blog via Dashboard &gt; Update.', $this->plugin_slug ),
1011
+ $wp_min_version
1012
+ );
1013
+ }
1014
+
1015
+ return $errors;
1016
+
1017
+ } // end __check_requirements
1018
+
1019
+ /**
1020
+ * Outputs error messages to wp-admin.
1021
+ *
1022
+ * @since 2.4.0
1023
+ */
1024
+ public function check_admin_notices() {
1025
+
1026
+ $errors = $this->__check_requirements();
1027
+
1028
+ if ( empty($errors) )
1029
+ return;
1030
+
1031
+ if ( isset($_GET['activate']) )
1032
+ unset($_GET['activate']);
1033
+
1034
+ printf(
1035
+ __('<div class="error"><p>%1$s</p><p><i>%2$s</i> has been <strong>deactivated</strong>.</p></div>', $this->plugin_slug),
1036
+ join( '</p><p>', $errors ),
1037
+ 'Wordpress Popular Posts'
1038
+ );
1039
+
1040
+ deactivate_plugins( plugin_basename( __FILE__ ) );
1041
+
1042
+ } // end check_admin_notices
1043
+
1044
+
1045
+ /*--------------------------------------------------*/
1046
+ /* Plugin methods / functions
1047
+ /*--------------------------------------------------*/
1048
+
1049
+ /**
1050
+ * Purges deleted posts from data/summary tables.
1051
+ *
1052
+ * @since 2.0.0
1053
+ * @global object $wpdb
1054
+ */
1055
+ public function purge_data() {
1056
+
1057
+ global $wpdb;
1058
+
1059
+ if ( $missing = $wpdb->get_results( "SELECT v.postid AS id FROM {$wpdb->prefix}popularpostsdata v WHERE NOT EXISTS (SELECT p.ID FROM {$wpdb->posts} p WHERE v.postid = p.ID);" ) ) {
1060
+ $to_be_deleted = '';
1061
+
1062
+ foreach ( $missing as $deleted )
1063
+ $to_be_deleted .= $deleted->id . ",";
1064
+
1065
+ $to_be_deleted = rtrim( $to_be_deleted, "," );
1066
+
1067
+ $wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostsdata WHERE postid IN({$to_be_deleted});" );
1068
+ $wpdb->query( "DELETE FROM {$wpdb->prefix}popularpostssummary WHERE postid IN({$to_be_deleted});" );
1069
+ }
1070
+
1071
+ } // end purge_data
1072
+
1073
+ /**
1074
+ * Truncates data and cache on demand.
1075
+ *
1076
+ * @since 2.0.0
1077
+ * @global object wpdb
1078
+ */
1079
+ public function clear_data() {
1080
+
1081
+ $token = $_POST['token'];
1082
+ $clear = isset($_POST['clear']) ? $_POST['clear'] : '';
1083
+ $key = get_site_option("wpp_rand");
1084
+
1085
+ if (current_user_can('manage_options') && ($token === $key) && !empty($clear)) {
1086
+ global $wpdb;
1087
+
1088
+ // set table name
1089
+ $prefix = $wpdb->prefix . "popularposts";
1090
+
1091
+ if ($clear == 'cache') {
1092
+ if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}summary'") ) {
1093
+ $wpdb->query("TRUNCATE TABLE {$prefix}summary;");
1094
+ $this->__flush_transients();
1095
+ _e('Success! The cache table has been cleared!', $this->plugin_slug);
1096
+ } else {
1097
+ _e('Error: cache table does not exist.', $this->plugin_slug);
1098
+ }
1099
+ } else if ($clear == 'all') {
1100
+ if ( $wpdb->get_var("SHOW TABLES LIKE '{$prefix}data'") && $wpdb->get_var("SHOW TABLES LIKE '{$prefix}summary'") ) {
1101
+ $wpdb->query("TRUNCATE TABLE {$prefix}data;");
1102
+ $wpdb->query("TRUNCATE TABLE {$prefix}summary;");
1103
+ $this->__flush_transients();
1104
+ _e('Success! All data have been cleared!', $this->plugin_slug);
1105
+ } else {
1106
+ _e('Error: one or both data tables are missing.', $this->plugin_slug);
1107
+ }
1108
+ } else {
1109
+ _e('Invalid action.', $this->plugin_slug);
1110
+ }
1111
+ } else {
1112
+ _e('Sorry, you do not have enough permissions to do this. Please contact the site administrator for support.', $this->plugin_slug);
1113
+ }
1114
 
1115
+ die();
1116
+
1117
+ } // end clear_data
1118
+
1119
+ /**
1120
+ * Updates views count on page load via AJAX.
1121
+ *
1122
+ * @since 2.0.0
1123
+ */
1124
+ public function update_views_ajax(){
1125
+
1126
+ if ( !wp_verify_nonce($_GET['token'], 'wpp-token') || !$this->__is_numeric($_GET['id']) )
1127
+ die("WPP: Oops, invalid request!");
1128
+
1129
+ $nonce = $_GET['token'];
1130
+ $post_ID = $_GET['id'];
1131
+
1132
+ $exec_time = 0;
1133
+
1134
+ $start = $this->__microtime_float();
1135
+ $result = $this->__update_views($post_ID);
1136
+ $end = $this->__microtime_float();
1137
+
1138
+ $exec_time += round($end - $start, 6);
1139
+
1140
+ if ( $result ) {
1141
+ die( "WPP: OK. Execution time: " . $exec_time . " seconds" );
1142
+ }
1143
+
1144
+ die( "WPP: Oops, could not update the views count!" );
1145
 
1146
+ } // end update_views_ajax
1147
+
1148
+ /**
1149
+ * Outputs script to update views via AJAX.
1150
+ *
1151
+ * @since 2.0.0
1152
+ * @global object post
1153
+ */
1154
+ public function print_ajax(){
1155
+
1156
+ wp_print_scripts('jquery');
1157
+
1158
+ if ( !is_singular() || is_attachment() || is_front_page() || is_preview() || is_trackback() || is_feed() || is_robots() || $this->__is_bot() )
1159
+ return;
1160
+
1161
+ global $post;
1162
+ $nonce = wp_create_nonce('wpp-token');
1163
 
 
1164
  ?>
1165
+ <!-- Wordpress Popular Posts v<?php echo $this->version; ?> -->
1166
+ <script type="text/javascript">//<![CDATA[
1167
+ jQuery(document).ready(function(){
1168
+ jQuery.get('<?php echo admin_url('admin-ajax.php'); ?>', {
1169
+ action: 'update_views_ajax',
1170
+ token: '<?php echo $nonce; ?>',
1171
+ id: <?php echo $post->ID; ?>
1172
+ }, function(response){
1173
+ if ( console && console.log )
1174
+ console.log(response);
1175
+ });
1176
+ });
1177
+ //]]></script>
1178
+ <!-- End Wordpress Popular Posts v<?php echo $this->version; ?> -->
1179
  <?php
1180
+
1181
+ } // end print_ajax
1182
+
1183
+ /**
1184
+ * Deletes cached (transient) data.
1185
+ *
1186
+ * @since 3.0.0
1187
+ */
1188
+ private function __flush_transients() {
1189
+
1190
+ $wpp_transients = get_site_option('wpp_transients');
1191
+
1192
+ if ( $wpp_transients && is_array($wpp_transients) && !empty($wpp_transients) ) {
1193
+ for ($t=0; $t < count($wpp_transients); $t++)
1194
+ delete_transient( $wpp_transients[$t] );
1195
+
1196
+ update_site_option('wpp_transients', array());
1197
  }
1198
+
1199
+ } // end __flush_transients
1200
 
1201
  /**
1202
+ * Updates views count.
1203
+ *
1204
+ * @since 1.4.0
1205
+ * @global object $wpdb
1206
+ * @param int Post ID
1207
+ * @return bool|int FALSE if query failed, TRUE on success
1208
  */
1209
+ private function __update_views($id) {
1210
+
1211
+ /*
1212
+ TODO:
1213
+ For WordPress Multisite, we must define the DIEONDBERROR constant for database errors to display like so:
1214
+ <?php define( 'DIEONDBERROR', true ); ?>
1215
+ */
1216
+
1217
+ global $wpdb;
1218
+ $table = $wpdb->prefix . "popularposts";
1219
+ $wpdb->show_errors();
1220
+
1221
+ // WPML support, get original post/page ID
1222
+ if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
1223
+ global $sitepress;
1224
+ $id = icl_object_id( $id, get_post_type( $id ), false, $sitepress->get_default_language() );
1225
+ }
1226
+
1227
+ $now = $this->__now();
1228
+ $curdate = $this->__curdate();
1229
+
1230
+ // Update all-time table
1231
+ $result1 = $wpdb->query( $wpdb->prepare(
1232
+ "INSERT INTO {$table}data
1233
+ (postid, day, last_viewed, pageviews) VALUES (%d, %s, %s, %d)
1234
+ ON DUPLICATE KEY UPDATE pageviews = pageviews + 1, last_viewed = '%3\$s';",
1235
+ $id,
1236
+ $now,
1237
+ $now,
1238
+ 1
1239
+ ));
1240
+
1241
+ // Update range (summary) table
1242
+ $result2 = $wpdb->query( $wpdb->prepare(
1243
+ "INSERT INTO {$table}summary
1244
+ (postid, pageviews, view_date, last_viewed) VALUES (%d, %d, %s, %s)
1245
+ ON DUPLICATE KEY UPDATE pageviews = pageviews + 1, last_viewed = '%4\$s';",
1246
+ $id,
1247
+ 1,
1248
+ $curdate,
1249
+ $now
1250
+ ));
1251
+
1252
+ if ( !$result1 || !$result2 )
1253
+ return false;
1254
+
1255
+ // Allow WP themers / coders perform an action
1256
+ // after updating views count
1257
+ if ( has_action( 'wpp_update_views' ) )
1258
+ do_action( 'wpp_update_views', $id );
1259
 
1260
+ return true;
1261
+
1262
+ } // end __update_views
1263
+
1264
+ /**
1265
+ * Queries the database and returns the posts (if any met the criteria set by the user).
1266
+ *
1267
+ * @since 1.4.0
1268
+ * @global object $wpdb
1269
+ * @param array Widget instance
1270
+ * @return null|array Array of posts, or null if nothing was found
1271
+ */
1272
+ protected function _query_posts($instance) {
1273
 
1274
  global $wpdb;
1275
+
1276
+ // parse instance values
1277
+ $instance = $this->__merge_array_r(
1278
+ $this->defaults,
1279
+ $instance
1280
+ );
1281
+
1282
+ $prefix = $wpdb->prefix . "popularposts";
1283
+ $fields = "p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid'";
1284
  $from = "";
1285
+ $where = "WHERE 1 = 1";
1286
+ $orderby = "";
1287
+ $groupby = "";
1288
+ $limit = "LIMIT {$instance['limit']}";
1289
+
1290
  $post_types = "";
1291
  $pids = "";
1292
  $cats = "";
1293
  $authors = "";
1294
  $content = "";
1295
 
1296
+ $now = $this->__now();
1297
+
1298
  // post filters
1299
+ // * freshness - get posts published within the selected time range only
1300
+ if ( $instance['freshness'] ) {
1301
+ switch( $instance['range'] ){
1302
+ case "yesterday":
1303
+ $where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 DAY) ";
1304
+ break;
1305
+
1306
+ case "daily":
1307
+ $where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 DAY) ";
1308
+ break;
1309
+
1310
+ case "weekly":
1311
+ $where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 WEEK) ";
1312
+ break;
1313
+
1314
+ case "monthly":
1315
+ $where .= " AND p.post_date > DATE_SUB('{$now}', INTERVAL 1 MONTH) ";
1316
+ break;
1317
+
1318
+ default:
1319
+ $where .= "";
1320
+ break;
1321
+ }
1322
+ }
1323
+
1324
  // * post types - based on code seen at https://github.com/williamsba/WordPress-Popular-Posts-with-Custom-Post-Type-Support
1325
  $types = explode(",", $instance['post_type']);
 
 
1326
  $sql_post_types = "";
1327
  $join_cats = true;
1328
 
1329
+ // if we're getting just pages, why join the categories table?
1330
+ if ( 'page' == strtolower($instance['post_type']) ) {
 
1331
 
1332
+ $join_cats = false;
1333
+ $where .= " AND p.post_type = '{$instance['post_type']}'";
1334
 
1335
+ }
1336
+ // we're listing other custom type(s)
1337
+ else {
1338
 
1339
+ if ( count($types) > 1 ) {
1340
+
1341
+ foreach ( $types as $post_type ) {
1342
+ $sql_post_types .= "'{$post_type}',";
1343
+ }
1344
 
1345
+ $sql_post_types = rtrim( $sql_post_types, ",");
1346
+ $where .= " AND p.post_type IN({$sql_post_types})";
1347
 
1348
+ } else {
1349
+ $where .= " AND p.post_type = '{$instance['post_type']}'";
1350
+ }
1351
 
1352
  }
1353
 
1354
  // * posts exclusion
1355
  if ( !empty($instance['pid']) ) {
1356
+
1357
  $ath = explode(",", $instance['pid']);
 
1358
 
1359
+ $where .= ( count($ath) > 1 )
1360
+ ? " AND p.ID NOT IN({$instance['pid']})"
1361
+ : " AND p.ID <> '{$instance['pid']}'";
1362
+
 
1363
  }
1364
 
1365
  // * categories
1366
  if ( !empty($instance['cat']) && $join_cats ) {
1367
+
1368
  $cat_ids = explode(",", $instance['cat']);
1369
  $in = array();
1370
  $out = array();
1371
  $not_in = "";
1372
 
1373
+ usort($cat_ids, array(&$this, '__sorter'));
1374
 
1375
  for ($i=0; $i < count($cat_ids); $i++) {
1376
  if ($cat_ids[$i] >= 0) $in[] = $cat_ids[$i];
1382
  $out_cats = preg_replace( '|[^0-9,]|', '', $out_cats );
1383
 
1384
  if ($in_cats != "" && $out_cats == "") { // get posts from from given cats only
1385
+ $where .= " AND p.ID IN (
1386
  SELECT object_id
1387
+ FROM {$wpdb->term_relationships} AS r
1388
+ JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
1389
+ JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
1390
+ WHERE x.taxonomy = 'category' AND t.term_id IN({$in_cats})
1391
+ )";
1392
  } else if ($in_cats == "" && $out_cats != "") { // exclude posts from given cats only
1393
+ $where .= " AND p.ID NOT IN (
1394
  SELECT object_id
1395
+ FROM {$wpdb->term_relationships} AS r
1396
+ JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
1397
+ JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
1398
+ WHERE x.taxonomy = 'category' AND t.term_id IN({$out_cats})
1399
+ )";
1400
  } else { // mixed, and possibly a heavy load on the DB
1401
+ $where .= " AND p.ID IN (
1402
  SELECT object_id
1403
+ FROM {$wpdb->term_relationships} AS r
1404
+ JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
1405
+ JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
1406
+ WHERE x.taxonomy = 'category' AND t.term_id IN({$in_cats})
1407
  ) AND p.ID NOT IN (
1408
  SELECT object_id
1409
+ FROM {$wpdb->term_relationships} AS r
1410
+ JOIN {$wpdb->term_taxonomy} AS x ON x.term_taxonomy_id = r.term_taxonomy_id
1411
+ JOIN {$wpdb->terms} AS t ON t.term_id = x.term_id
1412
+ WHERE x.taxonomy = 'category' AND t.term_id IN({$out_cats})
1413
+ )";
1414
  }
1415
+
1416
  }
1417
 
1418
  // * authors
1419
  if ( !empty($instance['author']) ) {
1420
+
1421
  $ath = explode(",", $instance['author']);
 
1422
 
1423
+ $where .= ( count($ath) > 1 )
1424
+ ? " AND p.post_author IN({$instance['author']})"
1425
+ : " AND p.post_author = '{$instance['author']}'";
1426
+
 
1427
  }
1428
 
1429
+ // All-time range
1430
+ if ( "all" == $instance['range'] ) {
1431
 
1432
+ $fields .= ", p.comment_count AS 'comment_count'";
1433
 
1434
+ // order by comments
1435
+ if ( "comments" == $instance['order_by'] ) {
1436
 
1437
+ $from = "{$wpdb->posts} p";
1438
+ $where .= " AND p.comment_count > 0 AND p.post_password = '' AND p.post_status = 'publish'";
1439
+ $orderby = " ORDER BY p.comment_count DESC";
1440
 
1441
+ // get views, too
1442
+ if ( $instance['stats_tag']['views'] ) {
1443
 
1444
+ $fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews'";
1445
+ $from .= " LEFT JOIN {$prefix}data v ON p.ID = v.postid";
1446
 
 
 
1447
  }
1448
 
1449
+ }
1450
+ // order by (avg) views
1451
+ else {
1452
+
1453
+ $from = "{$prefix}data v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID";
1454
+ $where .= " AND p.post_password = '' AND p.post_status = 'publish'";
1455
 
1456
+ // order by views
1457
+ if ( "views" == $instance['order_by'] ) {
1458
 
1459
+ $fields .= ", v.pageviews AS 'pageviews'";
1460
+ $orderby = "ORDER BY pageviews DESC";
1461
 
1462
+ }
1463
+ // order by avg views
1464
+ elseif ( "avg" == $instance['order_by'] ) {
1465
 
1466
+ $fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$now}', MIN(v.day)) > 0, DATEDIFF('{$now}', MIN(v.day)), 1) ) ) AS 'avg_views'";
1467
+ $orderby = "ORDER BY avg_views DESC";
1468
 
1469
  }
1470
 
1496
  break;
1497
  }
1498
 
1499
+ // order by comments
1500
+ if ( "comments" == $instance['order_by'] ) {
1501
 
1502
+ $fields .= ", c.comment_count AS 'comment_count'";
1503
+ $from = "(SELECT comment_post_ID AS 'id', COUNT(comment_post_ID) AS 'comment_count' FROM {$wpdb->comments} WHERE comment_date > DATE_SUB('{$now}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY id ORDER BY comment_count DESC) c LEFT JOIN {$wpdb->posts} p ON c.id = p.ID";
1504
+ $where .= " AND p.post_password = '' AND p.post_status = 'publish'";
1505
 
1506
+ if ( $instance['stats_tag']['views'] ) { // get views, too
1507
 
1508
+ $fields .= ", IFNULL(v.pageviews, 0) AS 'pageviews'";
1509
+ $from .= " LEFT JOIN (SELECT postid, SUM(pageviews) AS pageviews FROM {$prefix}summary WHERE last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid ORDER BY pageviews DESC) v ON p.ID = v.postid";
1510
 
1511
  }
1512
 
1513
+ }
1514
+ // ordered by views / avg
1515
+ else {
 
 
 
 
 
 
 
1516
 
1517
+ $from = "(SELECT postid, IFNULL(SUM(pageviews), 0) AS pageviews FROM {$prefix}summary WHERE last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) GROUP BY postid ORDER BY pageviews DESC) v LEFT JOIN {$wpdb->posts} p ON v.postid = p.ID";
1518
+ $where .= " AND p.post_password = '' AND p.post_status = 'publish'";
1519
 
1520
+ // ordered by views
1521
+ if ( "views" == $instance['order_by'] ) {
1522
+ $fields .= ", v.pageviews AS 'pageviews'";
1523
  }
1524
+ // ordered by avg views
1525
+ elseif ( "avg" == $instance['order_by'] ) {
1526
 
1527
+ $fields .= ", ( v.pageviews/(IF ( DATEDIFF('{$now}', DATE_SUB('{$now}', INTERVAL {$interval})) > 0, DATEDIFF('{$now}', DATE_SUB('{$now}', INTERVAL {$interval})), 1) ) ) AS 'avg_views' ";
1528
+ $groupby = "GROUP BY v.postid";
1529
+ $orderby = "ORDER BY avg_views DESC";
 
1530
 
1531
  }
1532
 
1533
+ // get comments, too
1534
+ if ( $instance['stats_tag']['comment_count'] ) {
1535
 
1536
+ $fields .= ", IFNULL(c.comment_count, 0) AS 'comment_count'";
1537
+ $from .= " LEFT JOIN (SELECT comment_post_ID AS 'id', COUNT(comment_post_ID) AS 'comment_count' FROM {$wpdb->comments} WHERE comment_date > DATE_SUB('{$now}', INTERVAL {$interval}) AND comment_approved = 1 GROUP BY id ORDER BY comment_count DESC) c ON p.ID = c.id";
 
1538
 
1539
+ }
1540
 
1541
  }
1542
 
1543
  }
1544
 
1545
+ $query = "SELECT {$fields} FROM {$from} {$where} {$groupby} {$orderby} {$limit};";
1546
+ $this->__debug( $query );
1547
 
1548
+ $result = $wpdb->get_results($query);
 
1549
 
1550
+ return apply_filters( 'wpp_query_posts', $result, $instance );
 
1551
 
1552
+ } // end query_posts
 
 
1553
 
1554
+ /**
1555
+ * Returns the formatted list of posts.
1556
+ *
1557
+ * @since 3.0.0
1558
+ * @param array instance The current instance of the widget / shortcode parameters
1559
+ * @return string HTML list of popular posts
1560
+ */
1561
+ private function __get_popular_posts( $instance ) {
1562
 
1563
+ // Parse instance values
1564
+ $instance = $this->__merge_array_r(
1565
+ $this->defaults,
1566
+ $instance
1567
+ );
1568
 
1569
+ $content = "";
 
 
 
 
 
 
 
 
1570
 
1571
+ // Fetch posts
1572
+ if ( !defined('WPP_ADMIN') && $this->user_settings['tools']['cache']['active'] ) {
1573
+ $transient_name = md5(json_encode($instance));
1574
+ $mostpopular = ( function_exists( 'is_multisite' ) && is_multisite() )
1575
+ ? get_site_transient( $transient_name )
1576
+ : get_transient( $transient_name );
1577
 
1578
+ // It wasn't there, so regenerate the data and save the transient
1579
+ if ( false === $mostpopular ) {
1580
+ $mostpopular = $this->_query_posts( $instance );
 
1581
 
1582
+ switch($this->user_settings['tools']['cache']['interval']['time']){
1583
+ case 'hour':
1584
+ $time = 60 * 60;
1585
+ break;
1586
 
1587
+ case 'day':
1588
+ $time = 60 * 60 * 24;
1589
+ break;
1590
 
1591
+ case 'week':
1592
+ $time = 60 * 60 * 24 * 7;
1593
+ break;
1594
 
1595
+ case 'month':
1596
+ $time = 60 * 60 * 24 * 30;
1597
+ break;
1598
 
1599
+ case 'year':
1600
+ $time = 60 * 60 * 24 * 365;
1601
+ break;
1602
+ }
1603
 
1604
+ $expiration = $time * $this->user_settings['tools']['cache']['interval']['value'];
1605
 
1606
+ if ( function_exists( 'is_multisite' ) && is_multisite() )
1607
+ set_site_transient( $transient_name, $mostpopular, $expiration );
1608
+ else
1609
+ set_transient( $transient_name, $mostpopular, $expiration );
1610
 
1611
+ $wpp_transients = get_site_option('wpp_transients');
 
 
1612
 
1613
+ if ( !$wpp_transients ) {
1614
+ $wpp_transients = array( $transient_name );
1615
+ add_site_option('wpp_transients', $wpp_transients);
1616
+ } else {
1617
+ if ( !in_array($transient_name, $wpp_transients) ) {
1618
+ $wpp_transients[] = $transient_name;
1619
+ update_site_option('wpp_transients', $wpp_transients);
1620
  }
 
1621
  }
1622
+ }
1623
+ } else {
1624
+ $mostpopular = $this->_query_posts( $instance );
1625
+ }
1626
 
1627
+ // No posts to show
1628
+ if ( !is_array($mostpopular) || empty($mostpopular) ) {
1629
+ return "<p>".__('Sorry. No data so far.', $this->plugin_slug)."</p>";
1630
+ }
 
1631
 
1632
+ // Allow WP themers / coders access to raw data
1633
+ // so they can build their own output
1634
+ if ( has_filter( 'wpp_custom_html' ) && !defined('WPP_ADMIN') ) {
1635
+ return apply_filters( 'wpp_custom_html', $mostpopular, $instance );
1636
+ }
1637
 
1638
+ // HTML wrapper
1639
+ if ($instance['markup']['custom_html']) {
1640
+ $content .= "\n" . htmlspecialchars_decode($instance['markup']['wpp-start'], ENT_QUOTES) ."\n";
1641
+ } else {
1642
+ $content .= "\n" . "<ul class=\"wpp-list\">" . "\n";
1643
+ }
1644
 
1645
+ // Loop through posts
1646
+ foreach($mostpopular as $p) {
1647
+ $content .= $this->__render_popular_post( $p, $instance );
1648
+ }
1649
 
1650
+ // END HTML wrapper
1651
+ if ($instance['markup']['custom_html']) {
1652
+ $content .= "\n". htmlspecialchars_decode($instance['markup']['wpp-end'], ENT_QUOTES) ."\n";
1653
+ } else {
1654
+ $content .= "\n". "</ul>". "\n";
1655
+ }
1656
 
1657
+ return $content;
1658
 
1659
+ } // end __get_popular_posts
1660
 
1661
+ /**
1662
+ * Returns the formatted post.
1663
+ *
1664
+ * @since 3.0.0
1665
+ * @param object p
1666
+ * @param array instance The current instance of the widget / shortcode parameters
1667
+ * @return string
1668
+ */
1669
+ private function __render_popular_post($p, $instance) {
1670
+
1671
+ // WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
1672
+ if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
1673
+ $current_id = icl_object_id( $p->id, get_post_type( $p->id ), true, ICL_LANGUAGE_CODE );
1674
+ $permalink = get_permalink( $current_id );
1675
+ } // Get original permalink
1676
+ else {
1677
+ $permalink = get_permalink($p->id);
1678
+ }
1679
 
1680
+ $title = $this->_get_title($p, $instance);
1681
+ $title_sub = $this->_get_title_sub($p, $instance);
 
 
 
 
 
 
 
 
 
 
1682
 
1683
+ $author = $this->_get_author($p, $instance);
1684
+ $post_cat = $this->_get_post_cat($p, $instance);
1685
 
1686
+ $thumb = $this->_get_thumb($p, $instance);
1687
+ $excerpt = $this->_get_excerpt($p, $instance);
 
 
 
 
 
 
 
 
 
 
 
 
1688
 
1689
+ $pageviews = $this->_get_pageviews($p, $instance);
1690
+ $comments = $this->_get_comments($p, $instance);
1691
+ $rating = $this->_get_rating($p, $instance);
 
1692
 
1693
+ $_stats = join(' | ', $this->_get_stats($p, $instance));
 
 
 
1694
 
1695
+ // PUTTING IT ALL TOGETHER
1696
+ // build custom layout
1697
+ if ($instance['markup']['custom_html']) {
1698
 
1699
+ $data = array(
1700
+ 'title' => '<a href="'.$permalink.'" title="'. esc_attr($title) .'">'.$title_sub.'</a>',
1701
+ 'summary' => $excerpt,
1702
+ 'stats' => $_stats,
1703
+ 'img' => $thumb,
1704
+ 'id' => $p->id,
1705
+ 'url' => $permalink,
1706
+ 'text_title' => $title,
1707
+ 'category' => $post_cat,
1708
+ 'author' => '<a href="' . get_author_posts_url($p->uid) . '">' . $author . '</a>',
1709
+ 'views' => $pageviews,
1710
+ 'comments' => $comments
1711
+ );
1712
 
1713
+ $content = htmlspecialchars_decode($this->__format_content($instance['markup']['post-html'], $data, $instance['rating']), ENT_QUOTES) . "\n";
1714
 
1715
+ }
1716
+ // build regular layout
1717
+ else {
1718
+ $content =
1719
+ '<li>'
1720
+ . $thumb
1721
+ . '<a href="' . $permalink . '" title="' . esc_attr($title) . '" class="wpp-post-title" target="' . $this->user_settings['tools']['link']['target'] . '">' . $title_sub . '</a> '
1722
+ . $excerpt . ' <span class="post-stats">' . $_stats . '</span> '
1723
+ . $rating
1724
+ . "</li>\n";
1725
+ }
1726
 
1727
+ return apply_filters('wpp_post', $content, $p, $instance);
1728
 
1729
+ } // end __render_popular_post
 
 
 
 
 
 
 
 
 
 
 
 
1730
 
1731
+ /**
1732
+ * Cache.
1733
+ *
1734
+ * @since 3.0.0
1735
+ * @param string $func function name
1736
+ * @param mixed $default
1737
+ * @return mixed
1738
+ */
1739
+ private function &__cache($func, $default = null) {
1740
 
1741
+ static $cache;
 
1742
 
1743
+ if ( !isset($cache) ) {
1744
+ $cache = array();
1745
+ }
 
 
 
 
 
 
 
 
 
 
1746
 
1747
+ if ( !isset($cache[$func]) ) {
1748
+ $cache[$func] = $default;
1749
+ }
1750
 
1751
+ return $cache[$func];
 
1752
 
1753
+ } // end __cache
1754
 
1755
+ /**
1756
+ * Gets post title.
1757
+ *
1758
+ * @since 3.0.0
1759
+ * @param object p
1760
+ * @param array instance The current instance of the widget / shortcode parameters
1761
+ * @return string
1762
+ */
1763
+ protected function _get_title($p, $instance) {
1764
+
1765
+ $cache = &$this->__cache(__FUNCTION__, array());
1766
+
1767
+ if ( isset($cache[$p->id]) ) {
1768
+ return $cache[$p->id];
1769
+ }
1770
+
1771
+ // WPML support, based on Serhat Evren's suggestion - see http://wordpress.org/support/topic/wpml-trick#post-5452607
1772
+ if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
1773
+ $current_id = icl_object_id( $p->id, get_post_type( $p->id ), true, ICL_LANGUAGE_CODE );
1774
+ $title = get_the_title( $current_id );
1775
+ } // Check for qTranslate
1776
+ else if ( $this->qTrans && function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') ) {
1777
+ $title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $p->title );
1778
+ } // Use ol' plain title
1779
+ else {
1780
+ $title = $p->title;
1781
+ }
1782
+
1783
+ // Strip HTML tags
1784
+ $title = strip_tags($title);
1785
+
1786
+ return $cache[$p->id] = apply_filters('the_title', $title, $p->id);
1787
+
1788
+ } // end _get_title
1789
+
1790
+ /**
1791
+ * Gets substring of post title.
1792
+ *
1793
+ * @since 3.0.0
1794
+ * @param object p
1795
+ * @param array instance The current instance of the widget / shortcode parameters
1796
+ * @return string
1797
+ */
1798
+ protected function _get_title_sub($p, $instance) {
1799
+
1800
+ $cache = &$this->__cache(__FUNCTION__, array());
1801
+
1802
+ if ( isset($cache[$p->id]) ) {
1803
+ return $cache[$p->id];
1804
+ }
1805
+
1806
+ // TITLE
1807
+ $title_sub = $this->_get_title($p, $instance);
1808
+
1809
+ // truncate title
1810
+ if ($instance['shorten_title']['active']) {
1811
+ // by words
1812
+ if (isset($instance['shorten_title']['words']) && $instance['shorten_title']['words']) {
1813
+
1814
+ $words = explode(" ", $title_sub, $instance['shorten_title']['length'] + 1);
1815
+ if (count($words) > $instance['shorten_title']['length']) {
1816
+ array_pop($words);
1817
+ $title_sub = implode(" ", $words) . "...";
1818
+ }
1819
 
1820
+ }
1821
+ elseif (strlen($title_sub) > $instance['shorten_title']['length']) {
1822
+ $title_sub = mb_substr($title_sub, 0, $instance['shorten_title']['length'], $this->charset) . "...";
 
 
1823
  }
1824
  }
1825
 
1826
+ return $cache[$p->id] = $title_sub;
 
 
1827
 
1828
+ } // end _get_title_sub
1829
 
1830
  /**
1831
+ * Gets post's excerpt.
1832
+ *
1833
+ * @since 3.0.0
1834
+ * @param object p
1835
+ * @param array instance The current instance of the widget / shortcode parameters
1836
+ * @return string
1837
  */
1838
+ protected function _get_excerpt($p, $instance) {
1839
 
1840
+ $cache = &$this->__cache(__FUNCTION__, array());
 
1841
 
1842
+ if ( isset($cache[$p->id]) ) {
1843
+ return $cache[$p->id];
1844
+ }
1845
 
1846
+ $excerpt = '';
 
 
1847
 
1848
+ // EXCERPT
1849
+ if ($instance['post-excerpt']['active']) {
1850
+
1851
+ $excerpt = trim($this->_get_summary($p->id, $instance));
1852
+
1853
+ if (!empty($excerpt) && !$instance['markup']['custom_html']) {
1854
+ $excerpt = '<span class="wpp-excerpt">' . $excerpt . '</span>';
1855
+ }
1856
 
 
 
 
 
 
1857
  }
1858
 
1859
+ return $cache[$p->id] = $excerpt;
 
1860
 
1861
+ } // end _get_excerpt
 
1862
 
1863
+ /**
1864
+ * Gets post's thumbnail.
1865
+ *
1866
+ * @since 3.0.0
1867
+ * @param object p
1868
+ * @param array instance The current instance of the widget / shortcode parameters
1869
+ * @return string
1870
+ */
1871
+ protected function _get_thumb($p, $instance) {
1872
 
1873
+ if ( !$instance['thumbnail']['active'] || !$this->thumbnailing ) {
1874
+ return '';
1875
+ }
1876
 
1877
+ $cache = &$this->__cache(__FUNCTION__, array());
 
1878
 
1879
+ if ( isset($cache[$p->id]) ) {
1880
+ return $cache[$p->id];
1881
+ }
1882
 
1883
+ $tbWidth = $instance['thumbnail']['width'];
1884
+ $tbHeight = $instance['thumbnail']['height'];
1885
+ $permalink = get_permalink($p->id);
1886
+ $title = $this->_get_title($p, $instance);
1887
 
1888
+ $thumb = '<a href="' . $permalink . '" title="' . esc_attr($title) . '" target="' . $this->user_settings['tools']['link']['target'] . '">';
1889
 
1890
+ // get image from custom field
1891
+ if ($this->user_settings['tools']['thumbnail']['source'] == "custom_field") {
1892
+ $path = get_post_meta($p->id, $this->user_settings['tools']['thumbnail']['field'], true);
1893
 
1894
+ if ($path != '') {
1895
+ // user has requested to resize cf image
1896
+ if ( $this->user_settings['tools']['thumbnail']['resize'] ) {
1897
+ $thumb .= $this->__get_img($p, null, $path, array($tbWidth, $tbHeight), $this->user_settings['tools']['thumbnail']['source'], $title);
1898
  }
1899
+ // use original size
1900
+ else {
1901
+ $thumb .= $this->_render_image($path, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_cf', $title);
1902
+ }
1903
+ }
1904
+ else {
1905
+ $thumb .= $this->_render_image($this->default_thumbnail, array($tbWidth, $tbHeight), 'wpp-thumbnail wpp_cf_def', $title);
1906
+ }
1907
+ }
1908
+ // get image from post / Featured Image
1909
+ else {
1910
+ $thumb .= $this->__get_img($p, $p->id, null, array($tbWidth, $tbHeight), $this->user_settings['tools']['thumbnail']['source'], $title);
1911
+ }
1912
 
1913
+ $thumb .= "</a>";
1914
 
1915
+ return $cache[$p->id] = $thumb;
 
 
1916
 
1917
+ } // end _get_thumb
1918
 
1919
+ /**
1920
+ * Gets post's views.
1921
+ *
1922
+ * @since 3.0.0
1923
+ * @param object p
1924
+ * @param array instance The current instance of the widget / shortcode parameters
1925
+ * @return int|float
1926
+ */
1927
+ protected function _get_pageviews($p, $instance) {
1928
+
1929
+ $cache = &$this->__cache(__FUNCTION__ . md5(json_encode($instance)), array());
1930
+
1931
+ if ( isset($cache[$p->id]) ) {
1932
+ return $cache[$p->id];
1933
  }
1934
 
1935
+ $pageviews = 0;
1936
+
1937
+ if (
1938
+ $instance['order_by'] == "views"
1939
+ || $instance['order_by'] == "avg"
1940
+ || $instance['stats_tag']['views']
1941
+ ) {
1942
+ $pageviews = ($instance['order_by'] == "views" || $instance['order_by'] == "comments")
1943
+ ? $p->pageviews
1944
+ : $p->avg_views;
1945
  }
1946
 
1947
+ return $cache[$p->id] = $pageviews;
 
1948
 
1949
+ } // end _get_pageviews
1950
 
1951
+ /**
1952
+ * Gets post's comment count.
1953
+ *
1954
+ * @since 3.0.0
1955
+ * @param object p
1956
+ * @param array instance The current instance of the widget / shortcode parameters
1957
+ * @return int
1958
+ */
1959
+ protected function _get_comments($p, $instance) {
1960
+
1961
+ $cache = &$this->__cache(__FUNCTION__ . md5(json_encode($instance)), array());
1962
+
1963
+ if ( isset($cache[$p->id]) ) {
1964
+ return $cache[$p->id];
1965
+ }
1966
+
1967
+ $comments = ($instance['order_by'] == "comments" || $instance['stats_tag']['comment_count'])
1968
+ ? $p->comment_count
1969
+ : 0;
1970
+
1971
+ return $cache[$p->id] = $comments;
1972
+
1973
+ } // end _get_comments
1974
 
1975
  /**
1976
+ * Gets post's rating.
1977
+ *
1978
+ * @since 3.0.0
1979
+ * @param object p
1980
+ * @param array instance The current instance of the widget / shortcode parameters
1981
+ * @return string
1982
  */
1983
+ protected function _get_rating($p, $instance) {
1984
 
1985
+ $cache = &$this->__cache(__FUNCTION__, array());
 
1986
 
1987
+ if ( isset($cache[$p->id]) ) {
1988
+ return $cache[$p->id];
1989
+ }
1990
 
1991
+ $rating = '';
1992
 
1993
+ // RATING
1994
+ if (function_exists('the_ratings') && $instance['rating']) {
1995
+ $rating = '<span class="wpp-rating">' . the_ratings('span', $p->id, false) . '</span>';
1996
+ }
1997
 
1998
+ return $cache[$p->id] = $rating;
1999
+ } // end _get_rating
2000
 
2001
+ /**
2002
+ * Gets post's author.
2003
+ *
2004
+ * @since 3.0.0
2005
+ * @param object p
2006
+ * @param array instance The current instance of the widget / shortcode parameters
2007
+ * @return string
2008
+ */
2009
+ protected function _get_author($p, $instance) {
2010
 
2011
+ $cache = &$this->__cache(__FUNCTION__, array());
2012
 
2013
+ if ( isset($cache[$p->id]) ) {
2014
+ return $cache[$p->id];
2015
+ }
2016
 
2017
+ $author = ($instance['stats_tag']['author'])
2018
+ ? get_the_author_meta('display_name', $p->uid)
2019
+ : "";
2020
 
2021
+ return $cache[$p->id] = $author;
 
2022
 
2023
+ } // end _get_author
2024
 
2025
+ /**
2026
+ * Gets post's date.
2027
+ *
2028
+ * @since 3.0.0
2029
+ * @param object p
2030
+ * @param array instance The current instance of the widget / shortcode parameters
2031
+ * @return string
2032
+ */
2033
+ protected function _get_date($p, $instance) {
2034
 
2035
+ $cache = &$this->__cache(__FUNCTION__, array());
2036
 
2037
+ if ( isset($cache[$p->id]) ) {
2038
+ return $cache[$p->id];
2039
+ }
2040
 
2041
+ $date = date_i18n($instance['stats_tag']['date']['format'], strtotime($p->date));
2042
+ return $cache[$p->id] = $date;
2043
 
2044
+ } // end _get_date
2045
 
2046
+ /**
2047
+ * Gets post's category.
2048
+ *
2049
+ * @since 3.0.0
2050
+ * @param object p
2051
+ * @param array instance The current instance of the widget / shortcode parameters
2052
+ * @return string
2053
+ */
2054
+ protected function _get_post_cat($p, $instance) {
2055
 
2056
+ $cache = &$this->__cache(__FUNCTION__, array());
 
 
 
 
 
 
 
 
 
2057
 
2058
+ if ( isset($cache[$p->id]) ) {
2059
+ return $cache[$p->id];
2060
+ }
2061
 
2062
+ $post_cat = '';
2063
+
2064
+ if ($instance['stats_tag']['category']) {
2065
+
2066
+ $post_cat = get_the_category($p->id);
2067
+ $post_cat = (isset($post_cat[0]))
2068
+ ? '<a href="' . get_category_link($post_cat[0]->term_id) . '">' . $post_cat[0]->cat_name . '</a>'
2069
+ : '';
2070
+
2071
+ }
2072
+
2073
+ return $cache[$p->id] = $post_cat;
2074
+
2075
+ } // end _get_post_cat
2076
+
2077
+ /**
2078
+ * Gets statistics data.
2079
+ *
2080
+ * @since 3.0.0
2081
+ * @param object p
2082
+ * @param array instance The current instance of the widget / shortcode parameters
2083
+ * @return array
2084
+ */
2085
+ protected function _get_stats($p, $instance) {
2086
+
2087
+ $cache = &$this->__cache(__FUNCTION__ . md5(json_encode($instance)), array());
2088
+
2089
+ if ( isset($cache[$p->id]) ) {
2090
+ return $cache[$p->id];
2091
+ }
2092
+
2093
+ $stats = array();
2094
+
2095
+ // STATS
2096
+ // comments
2097
+ if ($instance['stats_tag']['comment_count']) {
2098
+ $comments = $this->_get_comments($p, $instance);
2099
+
2100
+ $comments_text = sprintf(
2101
+ _n('1 comment', '%s comments', $comments, $this->plugin_slug),
2102
+ number_format_i18n($comments));
2103
+
2104
+ $stats[] = '<span class="wpp-comments">' . $comments_text . '</span>';
2105
+ }
2106
 
2107
+ // views
2108
+ if ($instance['stats_tag']['views']) {
2109
+ $pageviews = $this->_get_pageviews($p, $instance);
2110
+
2111
+ if ($instance['order_by'] == 'avg') {
2112
+ $views_text = sprintf(
2113
+ _n('1 view per day', '%s views per day', intval($pageviews), $this->plugin_slug),
2114
+ number_format_i18n($pageviews, 2)
2115
+ );
2116
  }
2117
+ else {
2118
+ $views_text = sprintf(
2119
+ _n('1 view', '%s views', intval($pageviews), $this->plugin_slug),
2120
+ number_format_i18n($pageviews)
2121
+ );
2122
+ }
2123
+
2124
+ $stats[] = '<span class="wpp-views">' . $views_text . "</span>";
2125
+ }
2126
+
2127
+ // author
2128
+ if ($instance['stats_tag']['author']) {
2129
+ $author = $this->_get_author($p, $instance);
2130
+ $display_name = '<a href="' . get_author_posts_url($p->uid) . '">' . $author . '</a>';
2131
+ $stats[] = '<span class="wpp-author">' . sprintf(__('by %s', $this->plugin_slug), $display_name).'</span>';
2132
+ }
2133
+
2134
+ // date
2135
+ if ($instance['stats_tag']['date']['active']) {
2136
+ $date = $this->_get_date($p, $instance);
2137
+ $stats[] = '<span class="wpp-date">' . sprintf(__('posted on %s', $this->plugin_slug), $date) . '</span>';
2138
+ }
2139
 
2140
+ // category
2141
+ if ($instance['stats_tag']['category']) {
2142
+ $post_cat = $this->_get_post_cat($p, $instance);
2143
 
2144
+ if ($post_cat != '') {
2145
+ $stats[] = '<span class="wpp-category">' . sprintf(__('under %s', $this->plugin_slug), $post_cat) . '</span>';
2146
+ }
2147
+ }
2148
+
2149
+ return $cache[$p->id] = $stats;
2150
+
2151
+ } // end _get_stats
2152
+
2153
+ /**
2154
+ * Retrieves / creates the post thumbnail.
2155
+ *
2156
+ * @since 2.3.3
2157
+ * @param int id Post ID
2158
+ * @param string url Image URL
2159
+ * @param array dim Thumbnail width & height
2160
+ * @param string source Image source
2161
+ * @return string
2162
+ */
2163
+ private function __get_img($p, $id = null, $url = null, $dim = array(80, 80), $source = "featured", $title) {
2164
+
2165
+ if ( (!$id || empty($id) || !$this->__is_numeric($id)) && (!$url || empty($url)) ) {
2166
+ return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noID', $title);
2167
+ }
2168
+
2169
+ // Get image by post ID (parent)
2170
+ if ( $id ) {
2171
+ $file_paths = $this->__get_image_file_paths($id, $source);
2172
+ $file_path = $file_paths['file_path'];
2173
+ $thumbnail = isset( $file_paths['thumbnail'] )
2174
+ ? $file_paths['thumbnail']
2175
+ : '';
2176
+
2177
+ // No images found, return default thumbnail
2178
+ if ($file_path == '') {
2179
+ return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noPath wpp_' . $source, $title);
2180
+ }
2181
+ }
2182
+ // Get image from URL
2183
+ else {
2184
+ // sanitize URL, just in case
2185
+ $image_url = esc_url( $url );
2186
+ // remove querystring
2187
+ preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $image_url, $matches);
2188
  $image_url = $matches[0];
2189
+
2190
+ $attachment_id = $this->__get_attachment_id($image_url);
2191
+
2192
+ // Image is hosted locally
2193
+ if ( $attachment_id ) {
2194
+ $thumbnail = $image_url;
2195
+ $file_path = get_attached_file($attachment_id);
2196
+ }
2197
+ // Image is hosted outside Wordpress
2198
+ else {
2199
+ $external_image = $this->__fetch_external_image($p->id, $image_url);
2200
+
2201
+ if ( !$external_image ) {
2202
+ return $this->_render_image($this->default_thumbnail, $dim, 'wpp-thumbnail wpp_def_noPath wpp_no_external', $title);
2203
+ }
2204
+
2205
+ $thumbnail = $external_image['thumbnail'];
2206
+ $file_path = $external_image['file_path'];
2207
  }
2208
+ }
2209
 
2210
+ $file_info = pathinfo($file_path);
2211
+ $cropped_thumb = $file_info['dirname'] . '/' . $file_info['filename'] . '-' . $dim[0] . 'x' . $dim[1] . '.' . $file_info['extension'];
2212
+
2213
+ // there is a thumbnail already
2214
+ if (file_exists($cropped_thumb)) {
2215
+ $new_img = str_replace(basename($thumbnail), basename($cropped_thumb), $thumbnail);
2216
+ return $this->_render_image($new_img, $dim, 'wpp-thumbnail wpp_cached_thumb wpp_' . $source, $title);
2217
  }
2218
 
2219
+ return $this->__image_resize($file_path, $thumbnail, $dim, $source);
2220
+
2221
+ } // end __get_img
2222
+
2223
+ /**
2224
+ * Resizes image.
2225
+ *
2226
+ * @since 3.0.0
2227
+ * @param string path Image path
2228
+ * @param string url Original image's URL
2229
+ * @param array dimension Image's width and height
2230
+ * @return string
2231
+ */
2232
+ private function __image_resize($path, $thumbnail, $dimension, $source) {
2233
+
2234
+ $image = wp_get_image_editor($path);
2235
+
2236
+ // valid image, create thumbnail
2237
+ if (!is_wp_error($image)) {
2238
+
2239
+ $image->resize($dimension[0], $dimension[1], true);
2240
+ $new_img = $image->save();
2241
+
2242
+ if (is_wp_error($new_img)) {
2243
+ return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $image->get_error_message());
2244
+ }
2245
+
2246
+ $new_img = str_replace(basename($thumbnail), $new_img['file'], $thumbnail);
2247
+
2248
+ return $this->_render_image($new_img, $dimension, 'wpp-thumbnail wpp_imgeditor_thumb wpp_' . $source, '');
2249
  }
2250
 
2251
+ // ELSE
2252
+ // image file path is invalid
2253
+ return $this->_render_image($this->default_thumbnail, $dimension, 'wpp-thumbnail wpp_imgeditor_error wpp_' . $source, '', $image->get_error_message());
2254
 
2255
+ } // end __image_resize
2256
 
2257
+ /**
2258
+ * Get image absolute path / URL.
2259
+ *
2260
+ * @since 3.0.0
2261
+ * @param int id Post ID
2262
+ * @param string source Image source
2263
+ * @return array
2264
+ */
2265
+ private function __get_image_file_paths($id, $source) {
2266
 
2267
+ $file_path = '';
2268
+ $thumbnail = array();
2269
 
2270
+ // get thumbnail path from the Featured Image
2271
+ if ($source == "featured") {
2272
 
2273
+ // thumb attachment ID
2274
+ $thumbnail_id = get_post_thumbnail_id($id);
2275
 
2276
+ if ($thumbnail_id) {
2277
 
2278
+ // full size image
2279
+ $thumbnail = wp_get_attachment_image_src($thumbnail_id, 'full');
2280
+ $thumbnail = $thumbnail[0];
2281
+ // image path
2282
+ $file_path = get_attached_file($thumbnail_id);
2283
 
2284
+ }
 
2285
 
2286
+ }
2287
+ // get thumbnail path from post content
2288
+ elseif ($source == "first_image") {
2289
 
2290
+ /** @var wpdb $wpdb */
2291
+ global $wpdb;
2292
 
2293
+ $content = $wpdb->get_results("SELECT post_content FROM {$wpdb->posts} WHERE ID = " . $id, ARRAY_A);
2294
+ $count = substr_count($content[0]['post_content'], '<img');
2295
 
2296
+ // images have been found
2297
+ // TODO: try to merge these conditions into one IF.
2298
+ if ($count > 0) {
2299
 
2300
+ preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content[0]['post_content'], $content_images);
 
 
2301
 
2302
+ if (isset($content_images[1][0])) {
2303
+ $attachment_id = $this->__get_attachment_id($content_images[1][0]);
 
2304
 
2305
+ // image from Media Library
2306
+ if ($attachment_id) {
2307
+ $thumbnail = $content_images[1][0];
2308
+ // If it's a resized image, get the original name
2309
+ $thumbnail = preg_replace( '/-[0-9]{1,4}x[0-9]{1,4}\.(jpg|jpeg|png|gif|bmp)$/i', '.$1', $thumbnail );
2310
+
2311
+ $file_path = get_attached_file($attachment_id);
2312
+ } // external image?
2313
+ else {
2314
+ $external_image = $this->__fetch_external_image($id, $content_images[1][0]);
2315
+ if ( $external_image ) {
2316
+ return $external_image;
2317
+ }
2318
+ }
2319
+ }
2320
  }
2321
 
2322
  }
2323
 
2324
+ return array(
2325
+ 'file_path' => $file_path,
2326
+ 'thumbnail' => $thumbnail
2327
+ );
2328
+
2329
+ } // end __get_image_file_paths
2330
+
2331
+ /**
2332
+ * Render image tag.
2333
+ *
2334
+ * @since 3.0.0
2335
+ * @param string src Image URL
2336
+ * @param array dimension Image's width and height
2337
+ * @param string class CSS class
2338
+ * @param string title Image's title/alt attribute
2339
+ * @param string error Error, if the image could not be created
2340
+ * @return string
2341
+ */
2342
+ protected function _render_image($src, $dimension, $class, $title = "", $error = null) {
2343
 
2344
+ $msg = '';
2345
+
2346
+ if ($error) {
2347
+ $msg = '<!-- ' . $error . ' --> ';
2348
  }
2349
+
2350
+ return $msg .
2351
+ '<img src="' . $src . '" title="' . esc_attr($title) . '" alt="' . esc_attr($title) . '" width="' . $dimension[0] . '" height="' . $dimension[1] . '" class="' . $class . '" />';
2352
+
2353
+ } // _render_image
2354
+
2355
+ /**
2356
+ * Get the Attachment ID for a given image URL.
2357
+ *
2358
+ * @since 3.0.0
2359
+ * @author Frankie Jarrett
2360
+ * @link http://frankiejarrett.com/get-an-attachment-id-by-url-in-wordpress/
2361
+ * @param string url
2362
+ * @return bool|int
2363
+ */
2364
+ private function __get_attachment_id($url) {
2365
 
2366
+ // Split the $url into two parts with the wp-content directory as the separator.
2367
+ $parse_url = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $url );
2368
+
2369
+ // Get the host of the current site and the host of the $url, ignoring www.
2370
+ $this_host = str_ireplace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
2371
+ $file_host = str_ireplace( 'www.', '', parse_url( $url, PHP_URL_HOST ) );
2372
+
2373
+ // Return nothing if there aren't any $url parts or if the current host and $url host do not match.
2374
+ if ( ! isset( $parse_url[1] ) || empty( $parse_url[1] ) || ( $this_host != $file_host ) ) {
2375
+ return false;
2376
+ }
2377
+
2378
+ // Now we're going to quickly search the DB for any attachment GUID with a partial path match.
2379
+ // Example: /uploads/2013/05/test-image.jpg
2380
+ global $wpdb;
2381
 
2382
+ // If it's a resized image, get the original name
2383
+ $parse_url[1] = preg_replace( '/-[0-9]{1,4}x[0-9]{1,4}\.(jpg|jpeg|png|gif|bmp)$/i', '.$1', $parse_url[1] );
2384
+
2385
+ $attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->prefix}posts WHERE guid RLIKE %s;", $parse_url[1] ) );
2386
+
2387
+ // Returns null if no attachment is found.
2388
+ return $attachment[0];
2389
+
2390
+ } // __get_attachment_id
2391
+
2392
+ /**
2393
+ * Fetchs external images.
2394
+ *
2395
+ * @since 2.3.3
2396
+ * @param string url
2397
+ * @return bool|int
2398
+ */
2399
+ private function __fetch_external_image($id, $url){
2400
+
2401
  $image = array();
2402
+
2403
  $uploads = wp_upload_dir();
2404
+ $image['thumbnail'] = trailingslashit( $uploads['baseurl'] ) . "{$id}_". sanitize_file_name( rawurldecode(wp_basename( $url )) );
2405
+ $image['file_path'] = trailingslashit( $uploads['basedir'] ) . "{$id}_". sanitize_file_name( rawurldecode(wp_basename( $url )) );
2406
 
2407
  // if the file exists already, return URL and path
2408
+ if ( file_exists($image['file_path']) )
2409
  return $image;
2410
+
2411
  $accepted_status_codes = array( 200, 301, 302 );
2412
  $response = wp_remote_head( $url, array( 'timeout' => 5, 'sslverify' => false ) );
2413
+
2414
  if ( !is_wp_error($response) && in_array(wp_remote_retrieve_response_code($response), $accepted_status_codes) ) {
 
2415
  $image_data = getimagesize( $url );
2416
+
2417
  if ( is_array($image_data) && !empty($image_data) ) {
 
2418
  require_once( ABSPATH . 'wp-admin/includes/file.php' );
2419
 
2420
  $url = str_replace( 'https://', 'http://', $url );
2421
  $tmp = download_url( $url );
2422
 
2423
  // move file to Uploads
2424
+ if ( !is_wp_error( $tmp ) && rename($tmp, $image['file_path']) ) {
 
2425
  // borrowed from WP - set correct file permissions
2426
+ $stat = stat( dirname( $image['file_path'] ));
2427
  $perms = $stat['mode'] & 0000666;
2428
+ @chmod( $image['file_path'], $perms );
2429
+
2430
  return $image;
 
2431
  }
 
2432
  }
 
2433
  }
2434
+
2435
  return false;
 
 
2436
 
2437
+ } // end __fetch_external_image
2438
+
2439
+ /**
2440
+ * Builds post's excerpt
2441
+ *
2442
+ * @since 1.4.6
2443
+ * @global object wpdb
2444
+ * @param int post ID
2445
+ * @param array widget instance
2446
+ * @return string
2447
+ */
2448
+ protected function _get_summary($id, $instance){
2449
+
2450
+ if ( !$this->__is_numeric($id) )
2451
+ return false;
2452
+
2453
+ global $wpdb;
2454
+
2455
+ $excerpt = "";
2456
+
2457
+ // WPML support, get excerpt for current language
2458
+ if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
2459
+ $current_id = icl_object_id( $id, get_post_type( $id ), true, ICL_LANGUAGE_CODE );
2460
+
2461
+ $the_post = get_post( $current_id );
2462
+ $excerpt = ( empty($the_post->post_excerpt) )
2463
+ ? $the_post->post_content
2464
+ : $the_post->post_excerpt;
2465
+ } // Use ol' plain excerpt
2466
+ else {
2467
+ $the_post = get_post( $id );
2468
+ $excerpt = ( empty($the_post->post_excerpt) )
2469
+ ? $the_post->post_content
2470
+ : $the_post->post_excerpt;
2471
+
2472
+ // RRR added call to the_content filters, allows qTranslate to hook in.
2473
+ if ( $this->qTrans )
2474
+ $excerpt = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $excerpt );
2475
+ }
2476
+
2477
+ // remove caption tags
2478
+ $excerpt = preg_replace( "/\[caption.*\[\/caption\]/", "", $excerpt );
2479
+
2480
+ // remove Flash objects
2481
+ $excerpt = preg_replace( "/<object[0-9 a-z_?*=\":\-\/\.#\,\\n\\r\\t]+/smi", "", $excerpt );
2482
+
2483
+ // remove Iframes
2484
+ $excerpt = preg_replace( "/<iframe.*?\/iframe>/i", "", $excerpt);
2485
+
2486
+ // remove URLs
2487
+ $excerpt = preg_replace( '_^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$_iuS', '', $excerpt );
2488
+
2489
+ // Fix RSS CDATA tags
2490
+ $excerpt = str_replace( ']]>', ']]&gt;', $excerpt );
2491
+
2492
+ // do we still have something to display?
2493
+ if ( !empty($excerpt) ) {
2494
+
2495
+ // truncate excerpt
2496
+ if ( isset($instance['post-excerpt']['words']) && $instance['post-excerpt']['words'] ) { // by words
2497
+
2498
+ $words = explode(" ", $excerpt, $instance['post-excerpt']['length'] + 1);
2499
+
2500
+ if ( count($words) > $instance['post-excerpt']['length'] ) {
2501
+
2502
+ array_pop($words);
2503
+ $excerpt = implode(" ", $words) . "...";
2504
+
2505
+ }
2506
+
2507
+ } else { // by characters
2508
+
2509
+ if ( strlen($excerpt) > $instance['post-excerpt']['length'] ) {
2510
+ $excerpt = mb_substr( $excerpt, 0, $instance['post-excerpt']['length'] ) . "...";
2511
+ }
2512
+
2513
+ }
2514
+
2515
+ // remove HTML tags if requested
2516
+ if ( $instance['post-excerpt']['keep_format'] ) {
2517
+ $excerpt = force_balance_tags(strip_tags($excerpt, '<a><b><i><em><strong>'));
2518
+ } else {
2519
+ $excerpt = strip_tags($excerpt);
2520
+ }
2521
+
2522
+ // remove WP shortcodes
2523
+ $excerpt = strip_shortcodes( $excerpt );
2524
+
2525
+ }
2526
+
2527
+ return $excerpt;
2528
+
2529
+ } // _get_summary
2530
+
2531
+ /**
2532
+ * WPP shortcode handler
2533
+ * Since 2.0.0
2534
+ */
2535
+ public function shortcode($atts = null, $content = null) {
2536
+ /**
2537
+ * @var String $header
2538
+ * @var Int $limit
2539
+ * @var String $range
2540
+ * @var Bool $freshness
2541
+ * @var String $order_by
2542
+ * @var String $post_type
2543
+ * @var String $pid
2544
+ * @var String $cat
2545
+ * @var String $author
2546
+ * @var Int $title_length
2547
+ * @var Int $title_by_words
2548
+ * @var Int $excerpt_length
2549
+ * @var Int $excerpt_format
2550
+ * @var Int $excerpt_by_words
2551
+ * @var Int $thumbnail_width
2552
+ * @var Int $thumbnail_height
2553
+ * @var Bool $rating
2554
+ * @var Bool $stats_comments
2555
+ * @var Bool $stats_views
2556
+ * @var Bool $stats_author
2557
+ * @var Bool $stats_date
2558
+ * @var String $stats_date_format
2559
+ * @var Bool $stats_category
2560
+ * @var String $wpp_start
2561
+ * @var String $wpp_end
2562
+ * @var String $header_start
2563
+ * @var String $header_end
2564
+ * @var String $post_html
2565
+ */
2566
+ extract( shortcode_atts( array(
2567
+ 'header' => '',
2568
+ 'limit' => 10,
2569
+ 'range' => 'daily',
2570
+ 'freshness' => false,
2571
+ 'order_by' => 'views',
2572
+ 'post_type' => 'post,page',
2573
+ 'pid' => '',
2574
+ 'cat' => '',
2575
+ 'author' => '',
2576
+ 'title_length' => 0,
2577
+ 'title_by_words' => 0,
2578
+ 'excerpt_length' => 0,
2579
+ 'excerpt_format' => 0,
2580
+ 'excerpt_by_words' => 0,
2581
+ 'thumbnail_width' => 0,
2582
+ 'thumbnail_height' => 0,
2583
+ 'rating' => false,
2584
+ 'stats_comments' => false,
2585
+ 'stats_views' => true,
2586
+ 'stats_author' => false,
2587
+ 'stats_date' => false,
2588
+ 'stats_date_format' => 'F j, Y',
2589
+ 'stats_category' => false,
2590
+ 'wpp_start' => '<ul class="wpp-list">',
2591
+ 'wpp_end' => '</ul>',
2592
+ 'header_start' => '<h2>',
2593
+ 'header_end' => '</h2>',
2594
+ 'post_html' => ''
2595
+ ),$atts));
2596
+
2597
+ // possible values for "Time Range" and "Order by"
2598
+ $range_values = array("yesterday", "daily", "weekly", "monthly", "all");
2599
+ $order_by_values = array("comments", "views", "avg");
2600
 
2601
+ $shortcode_ops = array(
2602
+ 'title' => strip_tags($header),
2603
+ 'limit' => (!empty($limit) && $this->__is_numeric($limit) && $limit > 0) ? $limit : 10,
2604
+ 'range' => (in_array($range, $range_values)) ? $range : 'daily',
2605
+ 'freshness' => empty($freshness) ? false : $freshness,
2606
+ 'order_by' => (in_array($order_by, $order_by_values)) ? $order_by : 'views',
2607
+ 'post_type' => empty($post_type) ? 'post,page' : $post_type,
2608
+ 'pid' => preg_replace('|[^0-9,]|', '', $pid),
2609
+ 'cat' => preg_replace('|[^0-9,-]|', '', $cat),
2610
+ 'author' => preg_replace('|[^0-9,]|', '', $author),
2611
+ 'shorten_title' => array(
2612
+ 'active' => (!empty($title_length) && $this->__is_numeric($title_length) && $title_length > 0),
2613
+ 'length' => (!empty($title_length) && $this->__is_numeric($title_length)) ? $title_length : 0,
2614
+ 'words' => (!empty($title_by_words) && $this->__is_numeric($title_by_words) && $title_by_words > 0),
2615
+ ),
2616
+ 'post-excerpt' => array(
2617
+ 'active' => (!empty($excerpt_length) && $this->__is_numeric($excerpt_length) && ($excerpt_length > 0)),
2618
+ 'length' => (!empty($excerpt_length) && $this->__is_numeric($excerpt_length)) ? $excerpt_length : 0,
2619
+ 'keep_format' => (!empty($excerpt_format) && $this->__is_numeric($excerpt_format) && ($excerpt_format > 0)),
2620
+ 'words' => (!empty($excerpt_by_words) && $this->__is_numeric($excerpt_by_words) && $excerpt_by_words > 0),
2621
+ ),
2622
+ 'thumbnail' => array(
2623
+ 'active' => (!empty($thumbnail_width) && $this->__is_numeric($thumbnail_width) && $thumbnail_width > 0),
2624
+ 'width' => (!empty($thumbnail_width) && $this->__is_numeric($thumbnail_width) && $thumbnail_width > 0) ? $thumbnail_width : 0,
2625
+ 'height' => (!empty($thumbnail_height) && $this->__is_numeric($thumbnail_height) && $thumbnail_height > 0) ? $thumbnail_height : 0,
2626
+ ),
2627
+ 'rating' => empty($rating) || $rating = "false" ? false : true,
2628
+ 'stats_tag' => array(
2629
+ 'comment_count' => empty($stats_comments) ? false : $stats_comments,
2630
+ 'views' => empty($stats_views) ? false : $stats_views,
2631
+ 'author' => empty($stats_author) ? false : $stats_author,
2632
+ 'date' => array(
2633
+ 'active' => empty($stats_date) ? false : $stats_date,
2634
+ 'format' => empty($stats_date_format) ? 'F j, Y' : $stats_date_format
2635
  ),
2636
+ 'category' => empty($stats_category) ? false : $stats_category,
2637
+ ),
2638
+ 'markup' => array(
2639
+ 'custom_html' => true,
2640
+ 'wpp-start' => empty($wpp_start) ? '<ul class="wpp-list">' : $wpp_start,
2641
+ 'wpp-end' => empty($wpp_end) ? '</ul>' : $wpp_end,
2642
+ 'title-start' => empty($header_start) ? '' : $header_start,
2643
+ 'title-end' => empty($header_end) ? '' : $header_end,
2644
+ 'post-html' => empty($post_html) ? '<li>{thumb} {title} {stats}</li>' : $post_html
2645
  )
2646
  );
2647
 
2648
+ $shortcode_content = "\n". "<!-- Wordpress Popular Posts Plugin v". $this->version ." [SC] [".$shortcode_ops['range']."] [".$shortcode_ops['order_by']."] [custom] -->"."\n";
 
 
 
2649
 
2650
+ // is there a title defined by user?
2651
+ if (!empty($header) && !empty($header_start) && !empty($header_end)) {
2652
+ $shortcode_content .= $header_start . apply_filters('widget_title', $header) . $header_end;
 
 
 
 
 
2653
  }
2654
 
2655
+ // print popular posts list
2656
+ $shortcode_content .= $this->__get_popular_posts($shortcode_ops);
2657
+ $shortcode_content .= "\n". "<!-- End Wordpress Popular Posts Plugin v". $this->version ." -->"."\n";
 
 
 
 
 
 
 
 
 
 
2658
 
2659
+ return $shortcode_content;
 
 
 
2660
 
2661
+ } // end shortcode
 
2662
 
2663
  /**
2664
  * Parses content tags
2665
+ *
2666
+ * @since 1.4.6
2667
+ * @param string HTML string with content tags
2668
+ * @param array Post data
2669
+ * @param bool Used to display post rating (if functionality is available)
2670
+ * @return string
2671
  */
2672
+ private function __format_content($string, $data = array(), $rating) {
2673
 
2674
  if (empty($string) || (empty($data) || !is_array($data)))
2675
  return false;
2707
  }
2708
 
2709
  // WP-PostRatings check
2710
+ if ( $rating ) {
2711
+ if ( function_exists('the_ratings_results') && in_array("{rating}", $matches[0]) ) {
2712
  $string = str_replace( "{rating}", the_ratings_results($data['id']), $string );
2713
  }
2714
 
2715
+ if ( function_exists('expand_ratings_template') && in_array("{score}", $matches[0]) ) {
2716
  $string = str_replace( "{score}", expand_ratings_template('%RATINGS_SCORE%', $data['id']), $string);
2717
  // removing the redundant plus sign
2718
  $string = str_replace('+', '', $string);
2743
  $string = str_replace( "{comments}", $data['comments'], $string );
2744
  }
2745
 
2746
+ return html_entity_decode( $string, ENT_QUOTES, $this->charset );
2747
+
2748
+ } // end __format_content
2749
 
 
 
2750
  /**
2751
+ * Returns HTML list via AJAX
2752
  *
2753
+ * @since 2.3.3
2754
+ * @return string
 
 
 
 
 
 
 
2755
  */
2756
+ public function get_popular( ) {
2757
+
2758
+ if ( $this->__is_numeric($_GET['id']) && ($_GET['id'] != '') ) {
2759
+ $id = $_GET['id'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2760
  } else {
2761
+ die("Invalid ID");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2762
  }
 
 
2763
 
2764
+ $widget_instances = $this->get_settings();
 
 
 
 
 
 
2765
 
2766
+ if ( isset($widget_instances[$id]) ) {
 
 
 
 
2767
 
2768
+ echo $this->__get_popular_posts( $widget_instances[$id] );
2769
 
2770
+ } else {
2771
 
2772
+ echo "Invalid Widget ID";
2773
+ }
2774
 
2775
+ exit();
 
 
 
 
2776
 
2777
+ } // end get_popular
 
2778
 
2779
+ /*--------------------------------------------------*/
2780
+ /* Helper functions
2781
+ /*--------------------------------------------------*/
2782
 
2783
  /**
2784
+ * Checks for valid number
2785
+ *
2786
+ * @since 2.1.6
2787
+ * @param int number
2788
+ * @return bool
 
 
 
 
 
 
 
2789
  */
2790
+ private function __is_numeric($number){
2791
+ return !empty($number) && is_numeric($number) && (intval($number) == floatval($number));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2792
  }
2793
 
2794
  /**
2795
+ * Returns server datetime
2796
+ *
2797
+ * @since 2.1.6
2798
+ * @return string
2799
  */
2800
+ private function __curdate() {
2801
+ return gmdate( 'Y-m-d', ( time() + ( get_site_option( 'gmt_offset' ) * 3600 ) ));
2802
+ } // end __curdate
 
2803
 
2804
  /**
2805
+ * Returns mysql datetime
2806
+ *
2807
+ * @since 2.1.6
2808
+ * @return string
2809
  */
2810
+ private function __now() {
2811
+ return current_time('mysql');
2812
+ } // end __now
 
2813
 
2814
  /**
2815
+ * Returns time
2816
+ *
2817
+ * @since 2.3.0
2818
+ * @return string
2819
  */
2820
+ private function __microtime_float() {
 
 
 
 
2821
 
2822
+ list( $msec, $sec ) = explode( ' ', microtime() );
 
 
2823
 
2824
+ $microtime = (float) $msec + (float) $sec;
2825
+ return $microtime;
2826
 
2827
+ } // end __microtime_float
 
 
 
 
 
 
 
 
2828
 
2829
  /**
2830
+ * Compares values
2831
+ *
2832
+ * @since 2.3.4
2833
+ * @param int a
2834
+ * @param int b
2835
+ * @return int
2836
  */
2837
+ private function __sorter($a, $b) {
2838
 
2839
+ if ($a > 0 && $b > 0) {
2840
+ return $a - $b;
2841
+ } else {
2842
+ return $b - $a;
2843
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2844
 
2845
+ } // end __sorter
 
 
 
2846
 
2847
+ /**
2848
+ * Merges two associative arrays recursively
2849
+ *
2850
+ * @since 2.3.4
2851
+ * @link http://www.php.net/manual/en/function.array-merge-recursive.php#92195
2852
+ * @param array array1
2853
+ * @param array array2
2854
+ * @return array
2855
+ */
2856
+ private function __merge_array_r( array &$array1, array &$array2 ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2857
 
2858
+ $merged = $array1;
2859
 
2860
+ foreach ( $array2 as $key => &$value ) {
2861
 
2862
+ if ( is_array( $value ) && isset ( $merged[$key] ) && is_array( $merged[$key] ) ) {
2863
+ $merged[$key] = $this->__merge_array_r( $merged[$key], $value );
2864
+ } else {
2865
+ $merged[$key] = $value;
2866
+ }
2867
  }
2868
 
2869
+ return $merged;
 
 
2870
 
2871
+ } // end __merge_array_r
 
2872
 
2873
  /**
2874
+ * Checks if visitor is human or bot.
2875
+ *
2876
+ * @since 3.0.0
2877
+ * @return bool FALSE if human, TRUE if bot
2878
  */
2879
+ private function __is_bot() {
 
2880
 
2881
+ if ( !isset($_SERVER['HTTP_USER_AGENT']) || empty($_SERVER['HTTP_USER_AGENT']) )
2882
+ return true; // No UA? Bot (probably)
2883
+
2884
+ $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
2885
 
2886
+ foreach ( $this->botlist as $bot ) {
2887
+ if ( false !== strpos($user_agent, $bot) ) {
2888
+ return true; // Bot
2889
+ }
2890
  }
2891
 
2892
+ return false; // Human, I guess...
 
2893
 
2894
+ } // end __is_bot
 
 
 
 
 
 
 
 
 
 
2895
 
2896
  /**
2897
+ * Debug function.
2898
+ *
2899
+ * @since 3.0.0
2900
+ * @param mixed $v variable to display with var_dump()
2901
+ * @param mixed $v,... unlimited optional number of variables to display with var_dump()
2902
  */
2903
+ private function __debug($v) {
2904
+
2905
+ if ( !WP_DEBUG )
2906
+ return;
2907
+
2908
+ foreach (func_get_args() as $arg) {
2909
+
2910
+ print "<pre>";
2911
+ var_dump($arg);
2912
+ print "</pre>";
2913
 
 
 
 
 
 
 
2914
  }
2915
 
2916
+ } // end __debug
 
2917
 
2918
+ } // end class
2919
 
 
 
2920
  }
2921
 
2922
  /**
2924
  */
2925
 
2926
  /**
2927
+ * Template tag - gets views count.
2928
+ *
2929
+ * @since 2.0.3
2930
+ * @global object wpdb
2931
+ * @param int id
2932
+ * @param string range
2933
+ * @param bool number_format
2934
+ * @return string
2935
  */
2936
+ function wpp_get_views($id = NULL, $range = NULL, $number_format = true) {
2937
+
2938
  // have we got an id?
2939
+ if ( empty($id) || is_null($id) || !$this->__is_numeric($id) ) {
2940
  return "-1";
2941
  } else {
2942
  global $wpdb;
2943
 
2944
+ $table_name = $wpdb->prefix . "popularposts";
 
 
 
2945
 
2946
+ if ( !$range || 'all' == $range ) {
2947
+ $query = "SELECT pageviews FROM {$table_name}data WHERE postid = '{$id}'";
2948
+ } else {
2949
  $interval = "";
2950
 
2951
  switch( $range ){
2972
 
2973
  $now = current_time('mysql');
2974
 
2975
+ $query = "SELECT SUM(views) FROM {$table_name}summary WHERE postid = '{$id}' AND last_viewed > DATE_SUB('{$now}', INTERVAL {$interval}) LIMIT 1;";
2976
  }
2977
 
2978
+ $result = $wpdb->get_var($query);
2979
 
2980
+ if ( !$result ) {
2981
  return "0";
 
 
2982
  }
2983
+
2984
+ return ($number_format) ? number_format_i18n( intval($result) ) : $result;
2985
  }
2986
+
2987
  }
2988
 
2989
  /**
2990
+ * Template tag - gets popular posts.
2991
+ *
2992
+ * @since 2.0.3
2993
+ * @param mixed args
2994
  */
2995
  function wpp_get_mostpopular($args = NULL) {
2996
 
3012
  }
3013
 
3014
  echo do_shortcode( $shortcode );
3015
+
3016
  }
3017
 
3018
  /**
3019
+ * Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
3020
+ *
3021
+ * @since 1.0
3022
+ * @param mixed args
3023
  */
3024
  function get_mostpopular($args = NULL) {
3025
  return wpp_get_mostpopular($args);
3026
  }