Download Monitor - Version 1.9.3

Version Description

Download this release

Release Info

Developer barrykooij
Plugin Icon 128x128 Download Monitor
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

download-monitor.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: Download Monitor
4
  Plugin URI: https://www.download-monitor.com
5
  Description: A full solution for managing downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
6
- Version: 1.9.2
7
  Author: Never5
8
  Author URI: https://www.never5.com
9
  Requires at least: 3.8
10
- Tested up to: 4.4.2
11
  Text Domain: download-monitor
12
 
13
  License: GPL v3
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
33
  } // Exit if accessed directly
34
 
35
  // Define DLM Version
36
- define( 'DLM_VERSION', '1.9.2' );
37
 
38
  function __download_monitor_main() {
39
 
3
  Plugin Name: Download Monitor
4
  Plugin URI: https://www.download-monitor.com
5
  Description: A full solution for managing downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site.
6
+ Version: 1.9.3
7
  Author: Never5
8
  Author URI: https://www.never5.com
9
  Requires at least: 3.8
10
+ Tested up to: 4.5
11
  Text Domain: download-monitor
12
 
13
  License: GPL v3
33
  } // Exit if accessed directly
34
 
35
  // Define DLM Version
36
+ define( 'DLM_VERSION', '1.9.3' );
37
 
38
  function __download_monitor_main() {
39
 
includes/admin/class-dlm-logging-list-table.php CHANGED
@@ -109,7 +109,11 @@ class DLM_Logging_List_Table extends WP_List_Table {
109
  }
110
 
111
  if ( $log->version ) {
112
- $download_string .= ' (' . sprintf( __( 'v%s', 'download-monitor' ), $log->version ) . ')';
 
 
 
 
113
  }
114
 
115
  return $download_string;
@@ -118,7 +122,7 @@ class DLM_Logging_List_Table extends WP_List_Table {
118
  $download = new DLM_Download( $log->download_id );
119
  $download->set_version( $log->version_id );
120
 
121
- if ( $download->exists() && $download->get_the_filename() ) {
122
  $download_string = '<code>' . $download->get_the_filename() . '</code>';
123
  } else {
124
  $download_string = '&ndash;';
109
  }
110
 
111
  if ( $log->version ) {
112
+ if ( $download->version_exists( $log->version_id ) ) {
113
+ $download_string .= sprintf( __( ' (v%s)', 'download-monitor' ), $log->version );
114
+ } else {
115
+ $download_string .= sprintf( __( ' (v%s no longer exists)', 'download-monitor' ), $log->version );
116
+ }
117
  }
118
 
119
  return $download_string;
122
  $download = new DLM_Download( $log->download_id );
123
  $download->set_version( $log->version_id );
124
 
125
+ if ( $download->exists() && $download->version_exists( $log->version_id ) && $download->get_the_filename() ) {
126
  $download_string = '<code>' . $download->get_the_filename() . '</code>';
127
  } else {
128
  $download_string = '&ndash;';
includes/class-dlm-shortcodes.php CHANGED
@@ -392,27 +392,46 @@ class DLM_Shortcodes {
392
  // Template handler
393
  $template_handler = new DLM_Template_Handler();
394
 
395
- if ( $downloads->have_posts() ) : ?>
396
 
397
- <?php echo html_entity_decode( $loop_start ); ?>
 
398
 
399
- <?php while ( $downloads->have_posts() ) : $downloads->the_post(); ?>
400
 
401
- <?php echo html_entity_decode( $before ); ?>
 
402
 
403
- <?php $template_handler->get_template_part( 'content-download', $template, '', array( 'dlm_download' => new DLM_Download( get_the_ID() ) ) ); ?>
 
404
 
405
- <?php echo html_entity_decode( $after ); ?>
 
406
 
407
- <?php endwhile; // end of the loop. ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
 
409
- <?php echo html_entity_decode( $loop_end ); ?>
 
410
 
411
- <?php if ( $paginate ) {
412
  $template_handler->get_template_part( 'pagination', '' );
413
  } ?>
414
 
415
- <?php endif;
416
 
417
  wp_reset_postdata();
418
 
392
  // Template handler
393
  $template_handler = new DLM_Template_Handler();
394
 
395
+ if ( $downloads->have_posts() ) {
396
 
397
+ // loop start output
398
+ echo html_entity_decode( $loop_start );
399
 
400
+ while ( $downloads->have_posts() ) {
401
 
402
+ // next iteration in downloads loop
403
+ $downloads->the_post();
404
 
405
+ // create download instance
406
+ $download = new DLM_Download( get_the_ID() );
407
 
408
+ // make download filterable
409
+ $download = apply_filters( 'dlm_shortcode_downloads_loop_download', $download );
410
 
411
+ // check if filtered download is still a DLM_Download instance
412
+ if ( ! $download instanceof DLM_Download ) {
413
+ continue;
414
+ }
415
+
416
+ // display the 'before'
417
+ echo html_entity_decode( $before );
418
+
419
+ // load the template
420
+ $template_handler->get_template_part( 'content-download', $template, '', array( 'dlm_download' => $download ) );
421
+
422
+ // display the 'after'
423
+ echo html_entity_decode( $after );
424
+
425
+ } // end of the loop.
426
 
427
+ // end of loop html
428
+ echo html_entity_decode( $loop_end );
429
 
430
+ if ( $paginate ) {
431
  $template_handler->get_template_part( 'pagination', '' );
432
  } ?>
433
 
434
+ <?php }
435
 
436
  wp_reset_postdata();
437
 
languages/download-monitor-da_DK.mo CHANGED
Binary file
languages/download-monitor-da_DK.po CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "Project-Id-Version: Download Monitor\n"
7
  "Report-Msgid-Bugs-To: https://github.com/download-monitor/download-monitor/issues\n"
8
  "POT-Creation-Date: 2016-03-27 14:45:08+00:00\n"
9
- "PO-Revision-Date: 2016-03-27 14:46+0000\n"
10
  "Last-Translator: Barry Kooij <mail@barrykooij.nl>\n"
11
  "Language-Team: Danish (Denmark) (http://www.transifex.com/barrykooijplugins/download-monitor/language/da_DK/)\n"
12
  "MIME-Version: 1.0\n"
@@ -137,7 +137,7 @@ msgstr "Ja"
137
 
138
  #: includes/admin/class-dlm-admin-cpt.php:384
139
  msgid "Download Monitor Data"
140
- msgstr ""
141
 
142
  #: includes/admin/class-dlm-admin-cpt.php:386
143
  #: includes/admin/class-dlm-admin-writepanels.php:118
@@ -315,7 +315,7 @@ msgstr "Kun brugere, der er logget ind, vil få adgang til filen via et download
315
  msgid ""
316
  "Don't force download. If the <code>dlm_uploads</code> folder is protected "
317
  "you may need to move your file."
318
- msgstr ""
319
 
320
  #: includes/admin/class-dlm-admin-writepanels.php:160
321
  msgid "Add file"
@@ -331,7 +331,7 @@ msgstr "Udvid alle"
331
 
332
  #: includes/admin/class-dlm-admin.php:104
333
  msgid "Select Page"
334
- msgstr ""
335
 
336
  #: includes/admin/class-dlm-admin.php:131
337
  msgid "General"
@@ -389,7 +389,7 @@ msgstr "Hvis uudfyldt bruges standardskabelonfilen <code>content-download.php</c
389
 
390
  #: includes/admin/class-dlm-admin.php:158
391
  msgid "X-Accel-Redirect / X-Sendfile"
392
- msgstr ""
393
 
394
  #: includes/admin/class-dlm-admin.php:159
395
  #: includes/admin/class-dlm-admin.php:167
@@ -455,7 +455,7 @@ msgstr "Downloadkorttitel"
455
 
456
  #: includes/admin/class-dlm-admin.php:197
457
  msgid "Hashes"
458
- msgstr ""
459
 
460
  #: includes/admin/class-dlm-admin.php:202
461
  msgid "MD5 hashes"
@@ -501,27 +501,27 @@ msgstr "Log downloadforsøg, IP-adresser m.m."
501
 
502
  #: includes/admin/class-dlm-admin.php:239
503
  msgid "Count unique IPs only"
504
- msgstr ""
505
 
506
  #: includes/admin/class-dlm-admin.php:241
507
  msgid ""
508
  "If enabled, the counter for each download will only increment and create a "
509
  "log entry once per IP address."
510
- msgstr ""
511
 
512
  #: includes/admin/class-dlm-admin.php:247
513
  msgid "Access"
514
- msgstr ""
515
 
516
  #: includes/admin/class-dlm-admin.php:252
517
  msgid "No Access Page"
518
- msgstr ""
519
 
520
  #: includes/admin/class-dlm-admin.php:253
521
  msgid ""
522
  "Choose what page is displayed when the user has no access to a file. Don't "
523
  "forget to add the <code>[dlm_no_access]</code> shortcode to the page."
524
- msgstr ""
525
 
526
  #: includes/admin/class-dlm-admin.php:259 includes/class-dlm-installer.php:41
527
  #: includes/class-dlm-upgrade-manager.php:54
@@ -548,7 +548,7 @@ msgid ""
548
  "ranges. IPv4 examples: <code>198.51.100.1</code> or "
549
  "<code>198.51.100.0/24</code>. IPv6 examples: <code>2001:db8::1</code> or "
550
  "<code>2001:db8::/32</code>."
551
- msgstr ""
552
 
553
  #: includes/admin/class-dlm-admin.php:276
554
  msgid "Blacklist user agents"
@@ -574,13 +574,13 @@ msgstr "Udvidelser"
574
  msgid ""
575
  "Because your server is running on nginx, our .htaccess file can't protect "
576
  "your downloads."
577
- msgstr ""
578
 
579
  #: includes/admin/class-dlm-admin.php:412
580
  msgid ""
581
  "Please add the following rules to your nginx config to disable direct file "
582
  "access: %s"
583
- msgstr ""
584
 
585
  #: includes/admin/class-dlm-admin.php:451
586
  msgid "Settings successfully saved"
@@ -648,7 +648,7 @@ msgstr "Hvis du kan lide %sDownload Monitor%s, så giv os en %s★★★★★%s
648
 
649
  #: includes/admin/class-dlm-logging-list-table.php:63
650
  msgid "Delete"
651
- msgstr ""
652
 
653
  #: includes/admin/class-dlm-logging-list-table.php:90
654
  msgid "Download Complete"
@@ -680,7 +680,7 @@ msgstr "IP-adresse"
680
 
681
  #: includes/admin/class-dlm-logging-list-table.php:192
682
  msgid "Log entries deleted"
683
- msgstr ""
684
 
685
  #: includes/admin/class-dlm-logging-list-table.php:209
686
  msgid "Any status"
@@ -785,11 +785,11 @@ msgstr "Fildato"
785
 
786
  #: includes/admin/html-downloadable-file-version.php:69
787
  msgid "h"
788
- msgstr ""
789
 
790
  #: includes/admin/html-downloadable-file-version.php:72
791
  msgid "m"
792
- msgstr ""
793
 
794
  #: includes/class-dlm-download-handler.php:277
795
  msgid "Password Required"
@@ -837,7 +837,7 @@ msgstr "Fil ikke fundet."
837
 
838
  #: includes/class-dlm-installer.php:165 includes/class-dlm-installer.php:174
839
  msgid "No Access"
840
- msgstr ""
841
 
842
  #: includes/class-dlm-post-type-manager.php:21
843
  msgid "All Downloads"
6
  "Project-Id-Version: Download Monitor\n"
7
  "Report-Msgid-Bugs-To: https://github.com/download-monitor/download-monitor/issues\n"
8
  "POT-Creation-Date: 2016-03-27 14:45:08+00:00\n"
9
+ "PO-Revision-Date: 2016-04-11 14:03+0000\n"
10
  "Last-Translator: Barry Kooij <mail@barrykooij.nl>\n"
11
  "Language-Team: Danish (Denmark) (http://www.transifex.com/barrykooijplugins/download-monitor/language/da_DK/)\n"
12
  "MIME-Version: 1.0\n"
137
 
138
  #: includes/admin/class-dlm-admin-cpt.php:384
139
  msgid "Download Monitor Data"
140
+ msgstr "Download Monitor-data"
141
 
142
  #: includes/admin/class-dlm-admin-cpt.php:386
143
  #: includes/admin/class-dlm-admin-writepanels.php:118
315
  msgid ""
316
  "Don't force download. If the <code>dlm_uploads</code> folder is protected "
317
  "you may need to move your file."
318
+ msgstr "Gennemtving ikke download. Hvis <code>dlm_uploads</code>-mappen er beskyttet, kan du blive nødt til at flytte filen."
319
 
320
  #: includes/admin/class-dlm-admin-writepanels.php:160
321
  msgid "Add file"
331
 
332
  #: includes/admin/class-dlm-admin.php:104
333
  msgid "Select Page"
334
+ msgstr "Vælg side"
335
 
336
  #: includes/admin/class-dlm-admin.php:131
337
  msgid "General"
389
 
390
  #: includes/admin/class-dlm-admin.php:158
391
  msgid "X-Accel-Redirect / X-Sendfile"
392
+ msgstr "X-Accel-Redirect / X-Sendfile"
393
 
394
  #: includes/admin/class-dlm-admin.php:159
395
  #: includes/admin/class-dlm-admin.php:167
455
 
456
  #: includes/admin/class-dlm-admin.php:197
457
  msgid "Hashes"
458
+ msgstr "Hashfunktioner"
459
 
460
  #: includes/admin/class-dlm-admin.php:202
461
  msgid "MD5 hashes"
501
 
502
  #: includes/admin/class-dlm-admin.php:239
503
  msgid "Count unique IPs only"
504
+ msgstr "Tæl kun unikke IP'er"
505
 
506
  #: includes/admin/class-dlm-admin.php:241
507
  msgid ""
508
  "If enabled, the counter for each download will only increment and create a "
509
  "log entry once per IP address."
510
+ msgstr "Hvis aktiveret, forøges tælleren for hver downloadfil kun én gang for hver IP-adresse, og der logges kun én gang."
511
 
512
  #: includes/admin/class-dlm-admin.php:247
513
  msgid "Access"
514
+ msgstr "Adgang"
515
 
516
  #: includes/admin/class-dlm-admin.php:252
517
  msgid "No Access Page"
518
+ msgstr "Ingen adgang-side"
519
 
520
  #: includes/admin/class-dlm-admin.php:253
521
  msgid ""
522
  "Choose what page is displayed when the user has no access to a file. Don't "
523
  "forget to add the <code>[dlm_no_access]</code> shortcode to the page."
524
+ msgstr "Vælg, hvilken side der vises, når brugeren ikke har adgang til en fil. Husk at tilføje <code>[dlm_no_access]</code>-kortkoden på siden."
525
 
526
  #: includes/admin/class-dlm-admin.php:259 includes/class-dlm-installer.php:41
527
  #: includes/class-dlm-upgrade-manager.php:54
548
  "ranges. IPv4 examples: <code>198.51.100.1</code> or "
549
  "<code>198.51.100.0/24</code>. IPv6 examples: <code>2001:db8::1</code> or "
550
  "<code>2001:db8::/32</code>."
551
+ msgstr "Anfør IP-adresser, der skal sortlistes, 1 per linje. Brug IP/CIDR-netmaskeformat for interval. IPv4-eksempler: <code>198.51.100.1</code> eller <code>198.51.100.0/24</code>. IPv6-eksempler: <code>2001:db8::1</code> eller <code>2001:db8::/32</code>."
552
 
553
  #: includes/admin/class-dlm-admin.php:276
554
  msgid "Blacklist user agents"
574
  msgid ""
575
  "Because your server is running on nginx, our .htaccess file can't protect "
576
  "your downloads."
577
+ msgstr "Fordi din server kører på nginx, kan din .htaccess-fil ikke beskytte dine downloads."
578
 
579
  #: includes/admin/class-dlm-admin.php:412
580
  msgid ""
581
  "Please add the following rules to your nginx config to disable direct file "
582
  "access: %s"
583
+ msgstr "Tilføj venligst de følgende regler til din nginx-konfiguration for at deaktivere direkte filadgang: %s"
584
 
585
  #: includes/admin/class-dlm-admin.php:451
586
  msgid "Settings successfully saved"
648
 
649
  #: includes/admin/class-dlm-logging-list-table.php:63
650
  msgid "Delete"
651
+ msgstr "Slet"
652
 
653
  #: includes/admin/class-dlm-logging-list-table.php:90
654
  msgid "Download Complete"
680
 
681
  #: includes/admin/class-dlm-logging-list-table.php:192
682
  msgid "Log entries deleted"
683
+ msgstr "Logoptegnelser slettet"
684
 
685
  #: includes/admin/class-dlm-logging-list-table.php:209
686
  msgid "Any status"
785
 
786
  #: includes/admin/html-downloadable-file-version.php:69
787
  msgid "h"
788
+ msgstr "h"
789
 
790
  #: includes/admin/html-downloadable-file-version.php:72
791
  msgid "m"
792
+ msgstr "m"
793
 
794
  #: includes/class-dlm-download-handler.php:277
795
  msgid "Password Required"
837
 
838
  #: includes/class-dlm-installer.php:165 includes/class-dlm-installer.php:174
839
  msgid "No Access"
840
+ msgstr "Ingen adgang"
841
 
842
  #: includes/class-dlm-post-type-manager.php:21
843
  msgid "All Downloads"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: never5, barrykooij, mikejolley
3
  Donate link: http://www.barrykooij.com/donate/
4
  Tags: download, downloads, monitor, hits, download monitor, tracking, admin, count, counter, files, versions, download count, logging, AJAX, digital, documents, download category, download manager, download template, downloadmanager, file manager, file tree, grid, hits, ip-address, manager, media, monitor, password, protect downloads, tracker
5
  Requires at least: 3.8
6
- Tested up to: 4.4.2
7
- Stable tag: 1.9.2
8
  License: GPLv3
9
 
10
  Download Monitor is a plugin for uploading and managing downloads, tracking downloads, and displaying links.
@@ -36,8 +36,19 @@ Download Monitor provides an interface for uploading and managing downloadable f
36
  > Want to see more? [Browse All Extensions](https://www.download-monitor.com/extensions/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-browse-all)
37
 
38
  = Documentation =
 
39
 
40
- Documentation can be found on the [Download Monitor website](https://www.download-monitor.com/documentation/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation).
 
 
 
 
 
 
 
 
 
 
41
 
42
  = Contributing and reporting bugs =
43
 
@@ -107,6 +118,11 @@ More documentation can be found in our [Knowledge Base](https://www.download-mon
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
110
  = 1.9.2: March 27, 2016 =
111
  * Tweak: Fixed bug where 'version' and 'version_id' were ignored in [download].
112
  * Tweak: Fixed a bug that caused the file upload overlay to append file URL to wrong version, props [kraftner](https://github.com/kraftner).
3
  Donate link: http://www.barrykooij.com/donate/
4
  Tags: download, downloads, monitor, hits, download monitor, tracking, admin, count, counter, files, versions, download count, logging, AJAX, digital, documents, download category, download manager, download template, downloadmanager, file manager, file tree, grid, hits, ip-address, manager, media, monitor, password, protect downloads, tracker
5
  Requires at least: 3.8
6
+ Tested up to: 4.5
7
+ Stable tag: 1.9.3
8
  License: GPLv3
9
 
10
  Download Monitor is a plugin for uploading and managing downloads, tracking downloads, and displaying links.
36
  > Want to see more? [Browse All Extensions](https://www.download-monitor.com/extensions/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-block-browse-all)
37
 
38
  = Documentation =
39
+ We have a large Knowledge Base on our [Download Monitor website](https://www.download-monitor.com/kb/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation) that contains documentation about how to how to setup and use Download Monitor.
40
 
41
+ Are you a new Download Monitor user? Read these articles on how to get your files ready for download with Download Monitor:
42
+
43
+ 1. [How to install Download Monitor](https://www.download-monitor.com/kb/installation/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation)
44
+ 2. [How to add your first download in Download Monitor](https://www.download-monitor.com/kb/adding-downloads/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation)
45
+ 3. [How to list your first download on your website with the download shortcode](https://www.download-monitor.com/kb/shortcode-download/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation)
46
+
47
+ More advanced topics that a lot of people find interesting:
48
+
49
+ 1. [Learn more about the different ways you can style your download buttons](https://www.download-monitor.com/kb/content-templates/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation)
50
+ 2. [Learn more about how to customize your download buttons](https://www.download-monitor.com/kb/overriding-content-templates/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation)
51
+ 3. [Learn more about what actions and filters are available in Download Monitor](https://www.download-monitor.com/kb/action-and-filter-reference/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=description-documentation)
52
 
53
  = Contributing and reporting bugs =
54
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.9.3: April 11, 2016 =
122
+ * Tweak: Small rework of [downloads] loop. Downloads now filterable per download via dlm_shortcode_downloads_loop_download.
123
+ * Tweak: We now report missing versions for removed downloads in logs, props [Matt Mower](https://github.com/mdmower).
124
+ * Tweak: Updated Danish translation, props [Georg Adamsen](https://github.com/GSAdev).
125
+
126
  = 1.9.2: March 27, 2016 =
127
  * Tweak: Fixed bug where 'version' and 'version_id' were ignored in [download].
128
  * Tweak: Fixed a bug that caused the file upload overlay to append file URL to wrong version, props [kraftner](https://github.com/kraftner).