Version Description
- Added an option to specify the file size info when editing the item. Size info can be shown in the fancy display template using a shortcode parameter (show_size).
- Added an option to specify the version number info when editing the item. Version info can be shown in the fancy display template using a shortcode parameter (show_version).
- Added French language translation. Translation file submitted by Laurent Jaunaux.
- The stats metabox in the download edit page will now appear before the shortcodes metabox.
- Added more usage instructions in the download file upload section.
Download this release
Release Info
Developer | mra13 |
Plugin | Simple Download Monitor |
Version | 3.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.3.2
- css/sdm_wp_styles.css +6 -0
- includes/sdm-admin-menu-handler.php +2 -2
- includes/sdm-logs-list-table.php +1 -1
- includes/templates/fancy1/sdm-fancy-1.php +35 -1
- includes/templates/fancy2/sdm-fancy-2-styles.css +9 -0
- includes/templates/fancy2/sdm-fancy-2.php +33 -1
- langs/simple-download-monitor-fr_FR.mo +0 -0
- langs/simple-download-monitor-fr_FR.po +534 -0
- main.php +115 -46
- readme.txt +20 -2
- sdm-post-type-content-handler.php +45 -22
css/sdm_wp_styles.css
CHANGED
@@ -82,6 +82,12 @@
|
|
82 |
display: inline-block;
|
83 |
padding: 10px 15px;
|
84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
.sdm_post_download_section{
|
86 |
margin: 15px 0;
|
87 |
}
|
82 |
display: inline-block;
|
83 |
padding: 10px 15px;
|
84 |
}
|
85 |
+
.sdm_post_download_file_size{
|
86 |
+
font-weight: bold;
|
87 |
+
}
|
88 |
+
.sdm_post_download_version{
|
89 |
+
font-weight: bold;
|
90 |
+
}
|
91 |
.sdm_post_download_section{
|
92 |
margin: 15px 0;
|
93 |
}
|
includes/sdm-admin-menu-handler.php
CHANGED
@@ -21,7 +21,7 @@ function sdm_create_settings_page() {
|
|
21 |
|
22 |
<div style="background: #FFF6D5; border: 1px solid #D1B655; color: #3F2502; padding: 15px 10px">
|
23 |
Read the full plugin usage documentation <a href="https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin" target="_blank">here</a>.
|
24 |
-
You can also <a href="
|
25 |
</div>
|
26 |
|
27 |
<!-- settings page form -->
|
@@ -137,7 +137,7 @@ function sdm_create_logs_page() {
|
|
137 |
|
138 |
<!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions -->
|
139 |
<form id="sdm_downloads-filter" method="post">
|
140 |
-
<input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" />
|
141 |
<!-- Now we can render the completed list table -->
|
142 |
<?php $sdmListTable->display() ?>
|
143 |
</form>
|
21 |
|
22 |
<div style="background: #FFF6D5; border: 1px solid #D1B655; color: #3F2502; padding: 15px 10px">
|
23 |
Read the full plugin usage documentation <a href="https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin" target="_blank">here</a>.
|
24 |
+
You can also <a href="https://www.tipsandtricks-hq.com/development-center" target="_blank"><?php _e('follow us', 'simple-download-monitor'); ?></a> <?php _e('on Twitter, Google+ or via Email to stay upto date about the new features of this plugin.', 'simple-download-monitor'); ?>
|
25 |
</div>
|
26 |
|
27 |
<!-- settings page form -->
|
137 |
|
138 |
<!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions -->
|
139 |
<form id="sdm_downloads-filter" method="post">
|
140 |
+
<input type="hidden" name="page" value="<?php echo esc_attr($_REQUEST['page']) ?>" />
|
141 |
<!-- Now we can render the completed list table -->
|
142 |
<?php $sdmListTable->display() ?>
|
143 |
</form>
|
includes/sdm-logs-list-table.php
CHANGED
@@ -43,7 +43,7 @@ class sdm_List_Table extends WP_List_Table {
|
|
43 |
//Build row actions
|
44 |
$actions = array(
|
45 |
'edit' => sprintf('<a href="' . admin_url('post.php?post=' . $item['ID'] . '&action=edit') . '">' . __('Edit', 'simple-download-monitor') . '</a>'),
|
46 |
-
'delete' => sprintf('<a href="?post_type=sdm_downloads&page
|
47 |
);
|
48 |
|
49 |
//Return the title contents
|
43 |
//Build row actions
|
44 |
$actions = array(
|
45 |
'edit' => sprintf('<a href="' . admin_url('post.php?post=' . $item['ID'] . '&action=edit') . '">' . __('Edit', 'simple-download-monitor') . '</a>'),
|
46 |
+
'delete' => sprintf('<a href="?post_type=sdm_downloads&page=logs&action=%s&download=%s&row_id=%s&_wpnonce=%s" onclick="return confirm(\'Are you sure you want to delete this entry?\')">' . __('Delete', 'simple-download-monitor') . '</a>', 'delete', $item['ID'], $item['row_id'], $delete_log_nonce),
|
47 |
);
|
48 |
|
49 |
//Return the title contents
|
includes/templates/fancy1/sdm-fancy-1.php
CHANGED
@@ -5,6 +5,9 @@ function sdm_generate_fancy1_latest_downloads_display_output($get_posts, $args)
|
|
5 |
$output = "";
|
6 |
isset($args['button_text']) ? $button_text = $args['button_text'] : $button_text = '';
|
7 |
isset($args['new_window']) ? $new_window = $args['new_window'] : $new_window = '';
|
|
|
|
|
|
|
8 |
foreach ($get_posts as $item) {
|
9 |
$id = $item->ID; //Get the post ID
|
10 |
//Create a args array
|
@@ -13,6 +16,8 @@ function sdm_generate_fancy1_latest_downloads_display_output($get_posts, $args)
|
|
13 |
'fancy' => '1',
|
14 |
'button_text' => $button_text,
|
15 |
'new_window' => $new_window,
|
|
|
|
|
16 |
);
|
17 |
$output .= sdm_generate_fancy1_display_output($args);
|
18 |
}
|
@@ -28,7 +33,10 @@ function sdm_generate_fancy1_category_display_output($get_posts, $args) {
|
|
28 |
//$output .= '<link type="text/css" rel="stylesheet" href="' . WP_SIMPLE_DL_MONITOR_URL . '/includes/templates/fancy1/sdm-fancy-1-styles.css?ver=' . WP_SIMPLE_DL_MONITOR_VERSION . '" />';
|
29 |
|
30 |
isset($args['button_text']) ? $button_text = $args['button_text'] : $button_text = '';
|
31 |
-
isset($args['new_window']) ? $new_window = $args['new_window'] : $new_window = '';
|
|
|
|
|
|
|
32 |
foreach ($get_posts as $item) {
|
33 |
$id = $item->ID; //Get the post ID
|
34 |
//Create a args array
|
@@ -37,6 +45,8 @@ function sdm_generate_fancy1_category_display_output($get_posts, $args) {
|
|
37 |
'fancy' => '1',
|
38 |
'button_text' => $button_text,
|
39 |
'new_window' => $new_window,
|
|
|
|
|
40 |
);
|
41 |
$output .= sdm_generate_fancy1_display_output($args);
|
42 |
}
|
@@ -96,6 +106,14 @@ function sdm_generate_fancy1_display_output($args) {
|
|
96 |
$download_url = $homepage . '/?smd_process_download=1&download_id=' . $id;
|
97 |
$download_button_code = '<a href="' . $download_url . '" class="sdm_download ' . $def_color . '" title="' . $isset_item_title . '" ' . $window_target . '>' . $button_text_string . '</a>';
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
// Check to see if the download link cpt is password protected
|
100 |
$get_cpt_object = get_post($id);
|
101 |
$cpt_is_password = !empty($get_cpt_object->post_password) ? 'yes' : 'no'; // yes = download is password protected;
|
@@ -117,7 +135,23 @@ function sdm_generate_fancy1_display_output($args) {
|
|
117 |
$output .= '<div class="sdm_download_title">' . $isset_item_title . '</div>';
|
118 |
$output .= '</div>'; //End of .sdm_download_item_top
|
119 |
$output .= '<div style="clear:both;"></div>';
|
|
|
120 |
$output .= '<div class="sdm_download_description">' . $isset_item_description . '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
$output .= '<div class="sdm_download_link">';
|
122 |
$output .= '<span class="sdm_download_button">' . $download_button_code . '</span>';
|
123 |
if(!isset($main_opts['general_hide_donwload_count'])) {//The hide download count is enabled.
|
5 |
$output = "";
|
6 |
isset($args['button_text']) ? $button_text = $args['button_text'] : $button_text = '';
|
7 |
isset($args['new_window']) ? $new_window = $args['new_window'] : $new_window = '';
|
8 |
+
isset($args['show_size']) ? $show_size = $args['show_size'] : $show_size = '';
|
9 |
+
isset($args['show_version']) ? $show_version = $args['show_version'] : $show_version = '';
|
10 |
+
|
11 |
foreach ($get_posts as $item) {
|
12 |
$id = $item->ID; //Get the post ID
|
13 |
//Create a args array
|
16 |
'fancy' => '1',
|
17 |
'button_text' => $button_text,
|
18 |
'new_window' => $new_window,
|
19 |
+
'show_size' => $show_size,
|
20 |
+
'show_version' => $show_version,
|
21 |
);
|
22 |
$output .= sdm_generate_fancy1_display_output($args);
|
23 |
}
|
33 |
//$output .= '<link type="text/css" rel="stylesheet" href="' . WP_SIMPLE_DL_MONITOR_URL . '/includes/templates/fancy1/sdm-fancy-1-styles.css?ver=' . WP_SIMPLE_DL_MONITOR_VERSION . '" />';
|
34 |
|
35 |
isset($args['button_text']) ? $button_text = $args['button_text'] : $button_text = '';
|
36 |
+
isset($args['new_window']) ? $new_window = $args['new_window'] : $new_window = '';
|
37 |
+
isset($args['show_size']) ? $show_size = $args['show_size'] : $show_size = '';
|
38 |
+
isset($args['show_version']) ? $show_version = $args['show_version'] : $show_version = '';
|
39 |
+
|
40 |
foreach ($get_posts as $item) {
|
41 |
$id = $item->ID; //Get the post ID
|
42 |
//Create a args array
|
45 |
'fancy' => '1',
|
46 |
'button_text' => $button_text,
|
47 |
'new_window' => $new_window,
|
48 |
+
'show_size' => $show_size,
|
49 |
+
'show_version' => $show_version,
|
50 |
);
|
51 |
$output .= sdm_generate_fancy1_display_output($args);
|
52 |
}
|
106 |
$download_url = $homepage . '/?smd_process_download=1&download_id=' . $id;
|
107 |
$download_button_code = '<a href="' . $download_url . '" class="sdm_download ' . $def_color . '" title="' . $isset_item_title . '" ' . $window_target . '>' . $button_text_string . '</a>';
|
108 |
|
109 |
+
//Get item file size
|
110 |
+
$item_file_size = get_post_meta($id, 'sdm_item_file_size', true);
|
111 |
+
$isset_item_file_size = (isset($args['show_size']) && isset($item_file_size)) ? $item_file_size : '';//check if show_size is enabled and if there is a size value
|
112 |
+
|
113 |
+
//Get item version
|
114 |
+
$item_version = get_post_meta($id, 'sdm_item_version', true);
|
115 |
+
$isset_item_version = (isset($args['show_version']) && isset($item_version)) ? $item_version : '';//check if show_version is enabled and if there is a version value
|
116 |
+
|
117 |
// Check to see if the download link cpt is password protected
|
118 |
$get_cpt_object = get_post($id);
|
119 |
$cpt_is_password = !empty($get_cpt_object->post_password) ? 'yes' : 'no'; // yes = download is password protected;
|
135 |
$output .= '<div class="sdm_download_title">' . $isset_item_title . '</div>';
|
136 |
$output .= '</div>'; //End of .sdm_download_item_top
|
137 |
$output .= '<div style="clear:both;"></div>';
|
138 |
+
|
139 |
$output .= '<div class="sdm_download_description">' . $isset_item_description . '</div>';
|
140 |
+
|
141 |
+
if (!empty($isset_item_file_size)) {//Show file size info
|
142 |
+
$output .= '<div class="sdm_download_size">';
|
143 |
+
$output .= '<span class="sdm_download_size_label">' . __('Size: ', 'simple-download-monitor') . '</span>';
|
144 |
+
$output .= '<span class="sdm_download_size_value">' . $isset_item_file_size . '</span>';
|
145 |
+
$output .= '</div>';
|
146 |
+
}
|
147 |
+
|
148 |
+
if (!empty($isset_item_version)) {//Show version info
|
149 |
+
$output .= '<div class="sdm_download_version">';
|
150 |
+
$output .= '<span class="sdm_download_version_label">' . __('Version: ', 'simple-download-monitor') . '</span>';
|
151 |
+
$output .= '<span class="sdm_download_version_value">' . $isset_item_version . '</span>';
|
152 |
+
$output .= '</div>';
|
153 |
+
}
|
154 |
+
|
155 |
$output .= '<div class="sdm_download_link">';
|
156 |
$output .= '<span class="sdm_download_button">' . $download_button_code . '</span>';
|
157 |
if(!isset($main_opts['general_hide_donwload_count'])) {//The hide download count is enabled.
|
includes/templates/fancy2/sdm-fancy-2-styles.css
CHANGED
@@ -54,6 +54,15 @@
|
|
54 |
background-color: #2D3140;
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
/*** For smaller devices ***/
|
58 |
@media only screen and (max-width : 480px)
|
59 |
{
|
54 |
background-color: #2D3140;
|
55 |
}
|
56 |
|
57 |
+
.sdm_fancy2_download_size{
|
58 |
+
margin: 5px 0;
|
59 |
+
text-align: center;
|
60 |
+
}
|
61 |
+
.sdm_fancy2_download_version{
|
62 |
+
margin: 5px 0;
|
63 |
+
text-align: center;
|
64 |
+
}
|
65 |
+
|
66 |
/*** For smaller devices ***/
|
67 |
@media only screen and (max-width : 480px)
|
68 |
{
|
includes/templates/fancy2/sdm-fancy-2.php
CHANGED
@@ -13,7 +13,9 @@ function sdm_generate_fancy2_latest_downloads_display_output($get_posts, $args)
|
|
13 |
$id = $item->ID; //Get the post ID
|
14 |
$button_text = isset($args['button_text'])? $args['button_text'] : '';
|
15 |
$new_window = isset($args['new_window'])? $args['new_window'] : '';
|
16 |
-
|
|
|
|
|
17 |
//Create a args array
|
18 |
$args = array(
|
19 |
'id' => $id,
|
@@ -21,6 +23,8 @@ function sdm_generate_fancy2_latest_downloads_display_output($get_posts, $args)
|
|
21 |
'button_text' => $button_text,
|
22 |
'new_window' => $new_window,
|
23 |
'css_class' => 'sdm_fancy2_grid',
|
|
|
|
|
24 |
);
|
25 |
$output .= sdm_generate_fancy2_display_output($args);
|
26 |
|
@@ -45,6 +49,8 @@ function sdm_generate_fancy2_category_display_output($get_posts, $args) {
|
|
45 |
$id = $item->ID; //Get the post ID
|
46 |
$button_text = isset($args['button_text'])? $args['button_text'] : '';
|
47 |
$new_window = isset($args['new_window'])? $args['new_window'] : '';
|
|
|
|
|
48 |
|
49 |
//Create a args array
|
50 |
$args = array(
|
@@ -53,6 +59,8 @@ function sdm_generate_fancy2_category_display_output($get_posts, $args) {
|
|
53 |
'button_text' => $button_text,
|
54 |
'new_window' => $new_window,
|
55 |
'css_class' => 'sdm_fancy2_grid',
|
|
|
|
|
56 |
);
|
57 |
$output .= sdm_generate_fancy2_display_output($args);
|
58 |
|
@@ -118,6 +126,15 @@ function sdm_generate_fancy2_display_output($args) {
|
|
118 |
// Get item description
|
119 |
$isset_item_description = sdm_get_item_description_output($id);
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
$css_class = isset($args['css_class']) ? $args['css_class'] : '';
|
122 |
$output = '';
|
123 |
$output .= '<div class="sdm_fancy2_item ' . $css_class . '">';
|
@@ -128,6 +145,21 @@ function sdm_generate_fancy2_display_output($args) {
|
|
128 |
$output .= '</div>'; //End of .sdm_download_item_top
|
129 |
|
130 |
$output .= '<div class="sdm_fancy2_download_title">' . $isset_item_title . '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
$output .= '<div class="sdm_fancy2_download_link">' . $download_button_code . '</div>';
|
132 |
|
133 |
$output .= '</div>'; //end .sdm_fancy2_item
|
13 |
$id = $item->ID; //Get the post ID
|
14 |
$button_text = isset($args['button_text'])? $args['button_text'] : '';
|
15 |
$new_window = isset($args['new_window'])? $args['new_window'] : '';
|
16 |
+
$show_size = isset($args['show_size'])? $args['show_size'] : '';
|
17 |
+
$show_version = isset($args['show_version'])? $args['show_version'] : '';
|
18 |
+
|
19 |
//Create a args array
|
20 |
$args = array(
|
21 |
'id' => $id,
|
23 |
'button_text' => $button_text,
|
24 |
'new_window' => $new_window,
|
25 |
'css_class' => 'sdm_fancy2_grid',
|
26 |
+
'show_size' => $show_size,
|
27 |
+
'show_version' => $show_version,
|
28 |
);
|
29 |
$output .= sdm_generate_fancy2_display_output($args);
|
30 |
|
49 |
$id = $item->ID; //Get the post ID
|
50 |
$button_text = isset($args['button_text'])? $args['button_text'] : '';
|
51 |
$new_window = isset($args['new_window'])? $args['new_window'] : '';
|
52 |
+
$show_size = isset($args['show_size'])? $args['show_size'] : '';
|
53 |
+
$show_version = isset($args['show_version'])? $args['show_version'] : '';
|
54 |
|
55 |
//Create a args array
|
56 |
$args = array(
|
59 |
'button_text' => $button_text,
|
60 |
'new_window' => $new_window,
|
61 |
'css_class' => 'sdm_fancy2_grid',
|
62 |
+
'show_size' => $show_size,
|
63 |
+
'show_version' => $show_version,
|
64 |
);
|
65 |
$output .= sdm_generate_fancy2_display_output($args);
|
66 |
|
126 |
// Get item description
|
127 |
$isset_item_description = sdm_get_item_description_output($id);
|
128 |
|
129 |
+
//Get item file size
|
130 |
+
$item_file_size = get_post_meta($id, 'sdm_item_file_size', true);
|
131 |
+
$isset_item_file_size = (isset($args['show_size']) && isset($item_file_size)) ? $item_file_size : '';//check if show_size is enabled and if there is a size value
|
132 |
+
|
133 |
+
//Get item version
|
134 |
+
$item_version = get_post_meta($id, 'sdm_item_version', true);
|
135 |
+
$isset_item_version = (isset($args['show_version']) && isset($item_version)) ? $item_version : '';//check if show_version is enabled and if there is a version value
|
136 |
+
|
137 |
+
|
138 |
$css_class = isset($args['css_class']) ? $args['css_class'] : '';
|
139 |
$output = '';
|
140 |
$output .= '<div class="sdm_fancy2_item ' . $css_class . '">';
|
145 |
$output .= '</div>'; //End of .sdm_download_item_top
|
146 |
|
147 |
$output .= '<div class="sdm_fancy2_download_title">' . $isset_item_title . '</div>';
|
148 |
+
|
149 |
+
if (!empty($isset_item_file_size)) {//Show file size info if specified in the shortcode
|
150 |
+
$output .= '<div class="sdm_fancy2_download_size">';
|
151 |
+
$output .= '<span class="sdm_fancy2_download_size_label">' . __('Size: ', 'simple-download-monitor') . '</span>';
|
152 |
+
$output .= '<span class="sdm_fancy2_download_size_value">' . $isset_item_file_size . '</span>';
|
153 |
+
$output .= '</div>';
|
154 |
+
}
|
155 |
+
|
156 |
+
if (!empty($isset_item_version)) {//Show version info if specified in the shortcode
|
157 |
+
$output .= '<div class="sdm_fancy2_download_version">';
|
158 |
+
$output .= '<span class="sdm_fancy2_download_version_label">' . __('Version: ', 'simple-download-monitor') . '</span>';
|
159 |
+
$output .= '<span class="sdm_fancy2_download_version_value">' . $isset_item_version . '</span>';
|
160 |
+
$output .= '</div>';
|
161 |
+
}
|
162 |
+
|
163 |
$output .= '<div class="sdm_fancy2_download_link">' . $download_button_code . '</div>';
|
164 |
|
165 |
$output .= '</div>'; //end .sdm_fancy2_item
|
langs/simple-download-monitor-fr_FR.mo
ADDED
Binary file
|
langs/simple-download-monitor-fr_FR.po
ADDED
@@ -0,0 +1,534 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: SDM 3.1\n"
|
4 |
+
"POT-Creation-Date: 2016-06-10 12:27+0200\n"
|
5 |
+
"PO-Revision-Date: 2016-06-10 13:20+0200\n"
|
6 |
+
"Language-Team: \n"
|
7 |
+
"MIME-Version: 1.0\n"
|
8 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
+
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"X-Generator: Poedit 1.8.8\n"
|
11 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
12 |
+
"X-Poedit-Basepath: .\n"
|
13 |
+
"Last-Translator: \n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
15 |
+
"Language: fr_FR\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:/Users/amin/Desktop/simple-download-monitor\n"
|
17 |
+
|
18 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:91
|
19 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:310
|
20 |
+
msgid "Settings"
|
21 |
+
msgstr "Paramètres"
|
22 |
+
|
23 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:145
|
24 |
+
msgid "Image Successfully Removed"
|
25 |
+
msgstr "Image supprimée avec succès"
|
26 |
+
|
27 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:146
|
28 |
+
msgid "Error with AJAX"
|
29 |
+
msgstr "Erreur avec AJAX"
|
30 |
+
|
31 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:156
|
32 |
+
msgid "Please select a Download Item:"
|
33 |
+
msgstr "Veuillez sélectionner un téléchargement :"
|
34 |
+
|
35 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:156
|
36 |
+
msgid "Download Title"
|
37 |
+
msgstr "Titre du Téléchargement"
|
38 |
+
|
39 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:156
|
40 |
+
msgid "Include Fancy Box"
|
41 |
+
msgstr "Inclure la Fancy Box"
|
42 |
+
|
43 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:156
|
44 |
+
msgid "Insert SDM Shortcode"
|
45 |
+
msgstr "Insérez le Shortcode SDM"
|
46 |
+
|
47 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:166
|
48 |
+
msgid "Incorrect Password"
|
49 |
+
msgstr "Mot de passe incorrect"
|
50 |
+
|
51 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:182
|
52 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:183
|
53 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:188
|
54 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:194
|
55 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:590
|
56 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1034
|
57 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-post-type-content-handler.php:48
|
58 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:94
|
59 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/includes/templates/fancy1/sdm-fancy-1.php:87
|
60 |
+
msgid "Downloads"
|
61 |
+
msgstr "Téléchargements"
|
62 |
+
|
63 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:184
|
64 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:185
|
65 |
+
msgid "Add New"
|
66 |
+
msgstr "Ajouter Nouveau"
|
67 |
+
|
68 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:186
|
69 |
+
msgid "Edit Download"
|
70 |
+
msgstr "Modifier Téléchargement"
|
71 |
+
|
72 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:187
|
73 |
+
msgid "New Download"
|
74 |
+
msgstr "Nouveau téléchargement"
|
75 |
+
|
76 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:189
|
77 |
+
msgid "View Download"
|
78 |
+
msgstr "Afficher Téléchargement"
|
79 |
+
|
80 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:190
|
81 |
+
msgid "Search Downloads"
|
82 |
+
msgstr "Recherche de téléchargements"
|
83 |
+
|
84 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:191
|
85 |
+
msgid "No Downloads found"
|
86 |
+
msgstr "Aucun Téléchargement Trouvé"
|
87 |
+
|
88 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:192
|
89 |
+
msgid "No Downloads found in Trash"
|
90 |
+
msgstr "Aucun téléchargement trouvé dans la poubelle"
|
91 |
+
|
92 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:193
|
93 |
+
msgid "Parent Download"
|
94 |
+
msgstr "Téléchargement Parent"
|
95 |
+
|
96 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:221
|
97 |
+
msgid "Search Categories"
|
98 |
+
msgstr "Chercher dans Catégories"
|
99 |
+
|
100 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:222
|
101 |
+
msgid "All Categories"
|
102 |
+
msgstr "Toutes Catégories"
|
103 |
+
|
104 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:223
|
105 |
+
msgid "Categories Genre"
|
106 |
+
msgstr "Types de catégories"
|
107 |
+
|
108 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:224
|
109 |
+
msgid "Categories Genre:"
|
110 |
+
msgstr "Types de catégories"
|
111 |
+
|
112 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:225
|
113 |
+
msgid "Edit Category"
|
114 |
+
msgstr "Modifier Catégorie"
|
115 |
+
|
116 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:226
|
117 |
+
msgid "Update Category"
|
118 |
+
msgstr "\tMettre à jour la catégorie"
|
119 |
+
|
120 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:227
|
121 |
+
msgid "Add New Category"
|
122 |
+
msgstr "Ajouter une nouvelle catégorie"
|
123 |
+
|
124 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:228
|
125 |
+
msgid "New Category"
|
126 |
+
msgstr "Nouvelle catégorie"
|
127 |
+
|
128 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:229
|
129 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1032
|
130 |
+
msgid "Categories"
|
131 |
+
msgstr "Catégories"
|
132 |
+
|
133 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:246
|
134 |
+
msgid "Search Tags"
|
135 |
+
msgstr "Rechercher parmi les mots-clés"
|
136 |
+
|
137 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:247
|
138 |
+
msgid "All Tags"
|
139 |
+
msgstr "Tous les tags"
|
140 |
+
|
141 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:248
|
142 |
+
msgid "Tags Genre"
|
143 |
+
msgstr "Genre de mots-clés"
|
144 |
+
|
145 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:249
|
146 |
+
msgid "Tags Genre:"
|
147 |
+
msgstr "Genre de mots-clés:"
|
148 |
+
|
149 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:250
|
150 |
+
msgid "Edit Tag"
|
151 |
+
msgstr "Modifier le mots-clé"
|
152 |
+
|
153 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:251
|
154 |
+
msgid "Update Tag"
|
155 |
+
msgstr "Mettre à jour les mots-clés"
|
156 |
+
|
157 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:252
|
158 |
+
msgid "Add New Tag"
|
159 |
+
msgstr "Ajouter un nouveau mot clé"
|
160 |
+
|
161 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:253
|
162 |
+
msgid "New Tag"
|
163 |
+
msgstr "Nouveau tag"
|
164 |
+
|
165 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:254
|
166 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1033
|
167 |
+
msgid "Tags"
|
168 |
+
msgstr "Mots clés "
|
169 |
+
|
170 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:309
|
171 |
+
msgid "Logs"
|
172 |
+
msgstr "Logs"
|
173 |
+
|
174 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:317
|
175 |
+
msgid "Simple Download Monitor Settings Page"
|
176 |
+
msgstr "Page de Paramètres SDM "
|
177 |
+
|
178 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:320
|
179 |
+
msgid "Follow us"
|
180 |
+
msgstr "Nous suivre"
|
181 |
+
|
182 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:320
|
183 |
+
msgid ""
|
184 |
+
"on Twitter, Google+ or via Email to stay upto date about the new features of "
|
185 |
+
"this plugin."
|
186 |
+
msgstr ""
|
187 |
+
"sur Twitter, Google +, ou par Email pour être tenu à jour sur les nouvelles "
|
188 |
+
"fonctionnalités de ce plugin."
|
189 |
+
|
190 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:329
|
191 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:528
|
192 |
+
msgid "Admin Options"
|
193 |
+
msgstr "Option d’administration"
|
194 |
+
|
195 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:332
|
196 |
+
msgid "Control various plugin features."
|
197 |
+
msgstr "Contrôlez diverses fonctionnalités plug-in."
|
198 |
+
|
199 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:349
|
200 |
+
msgid "Color Options"
|
201 |
+
msgstr "Options de Couleur"
|
202 |
+
|
203 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:352
|
204 |
+
msgid "Adjust color options"
|
205 |
+
msgstr "Réglez les options de couleurs"
|
206 |
+
|
207 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:370
|
208 |
+
msgid ""
|
209 |
+
"If you need a feature rich and supported plugin for selling your digital "
|
210 |
+
"items then checkout our"
|
211 |
+
msgstr ""
|
212 |
+
"Si vous avez besoin d'un plugin riche en fonctionnalités pour la vente de "
|
213 |
+
"vos objets numériques alors allez voir sur"
|
214 |
+
|
215 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:370
|
216 |
+
msgid "WP eStore Plugin"
|
217 |
+
msgstr "WP eStore Plugin"
|
218 |
+
|
219 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:383
|
220 |
+
msgid "Description"
|
221 |
+
msgstr "Description"
|
222 |
+
|
223 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:385
|
224 |
+
msgid "Upload File"
|
225 |
+
msgstr "Télécharger un fichier"
|
226 |
+
|
227 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:387
|
228 |
+
msgid "File Thumbnail (Optional)"
|
229 |
+
msgstr "La miniature du fichier (Facultatif)"
|
230 |
+
|
231 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:389
|
232 |
+
msgid "Shortcodes"
|
233 |
+
msgstr "Shortcodes"
|
234 |
+
|
235 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:391
|
236 |
+
msgid "Statistics"
|
237 |
+
msgstr "Statistiques"
|
238 |
+
|
239 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:396
|
240 |
+
msgid "Add a description for this download item."
|
241 |
+
msgstr "Ajouter une description pour ce fichier."
|
242 |
+
|
243 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:409
|
244 |
+
msgid "Click \"Select File\" to upload (or choose) the file."
|
245 |
+
msgstr ""
|
246 |
+
"Cliquez sur \"Sélectionner un fichier\" pour Uploader (ou choisir) le "
|
247 |
+
"fichier."
|
248 |
+
|
249 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:412
|
250 |
+
msgid "Select File"
|
251 |
+
msgstr "Sélectionnez un fichier"
|
252 |
+
|
253 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:414
|
254 |
+
msgid "File URL:"
|
255 |
+
msgstr "URL du fichier:"
|
256 |
+
|
257 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:422
|
258 |
+
msgid ""
|
259 |
+
"Click \"Select Image\" to upload (or choose) the file thumbnail image. This "
|
260 |
+
"thumbnail image will be used to create a fancy file download box if you want "
|
261 |
+
"to use it."
|
262 |
+
msgstr ""
|
263 |
+
"Cliquez sur \"Sélectionner une Image\" pour uploader (ou choisir) la "
|
264 |
+
"miniature du fichier. Cette miniature servira à créer une boite de "
|
265 |
+
"téléchargement si vous souhaitez l'utiliser."
|
266 |
+
|
267 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:427
|
268 |
+
msgid "Select Image"
|
269 |
+
msgstr "Selectionnez une image"
|
270 |
+
|
271 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:428
|
272 |
+
msgid "Remove Image"
|
273 |
+
msgstr "Supprimer I'image"
|
274 |
+
|
275 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:442
|
276 |
+
msgid ""
|
277 |
+
"This is the shortcode which can used on posts or pages to embed a download "
|
278 |
+
"now button for this file. You can also use the shortcode inserter to add "
|
279 |
+
"this shortcode to a post or page."
|
280 |
+
msgstr ""
|
281 |
+
"Il s'agit d'un raccourci utilisable dans les articles ou pages permettant "
|
282 |
+
"d'intégrer un bouton de téléchargement pour ce fichier. Vous pouvez "
|
283 |
+
"également utiliser l'outil d'insertion pour ajouter ce raccourci pour un "
|
284 |
+
"article ou une page."
|
285 |
+
|
286 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:447
|
287 |
+
msgid "This shortcode may be used as a download counter."
|
288 |
+
msgstr "Ce raccourci peut être utilisé comme un compteur de téléchargement."
|
289 |
+
|
290 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:456
|
291 |
+
msgid "These are the statistics for this download item."
|
292 |
+
msgstr "Voici les statistiques pour ce téléchargement."
|
293 |
+
|
294 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:461
|
295 |
+
msgid "Number of Downloads:"
|
296 |
+
msgstr "Nombre de téléchargements:"
|
297 |
+
|
298 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:464
|
299 |
+
msgid "Offset Count"
|
300 |
+
msgstr "Décalage de compteur"
|
301 |
+
|
302 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:529
|
303 |
+
msgid "Colors"
|
304 |
+
msgstr "Couleurs"
|
305 |
+
|
306 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:531
|
307 |
+
msgid "Remove Tinymce Button"
|
308 |
+
msgstr "Supprimer le bouton Tinymce"
|
309 |
+
|
310 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:532
|
311 |
+
msgid "Download Button Color"
|
312 |
+
msgstr "Couleur du bouton de Téléchargement"
|
313 |
+
|
314 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:536
|
315 |
+
msgid "Admin options settings"
|
316 |
+
msgstr "Paramètres des options d'administration"
|
317 |
+
|
318 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:540
|
319 |
+
msgid "Front End colors settings"
|
320 |
+
msgstr "Paramètres de couleurs de l'interface utilisateur"
|
321 |
+
|
322 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:546
|
323 |
+
msgid "Removes the SDM Downloads button from the WP content editor."
|
324 |
+
msgstr "Supprime le bouton Téléchargements SDM de l'éditeur de contenu de WP."
|
325 |
+
|
326 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
327 |
+
msgid "Green"
|
328 |
+
msgstr "Vert"
|
329 |
+
|
330 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
331 |
+
msgid "Blue"
|
332 |
+
msgstr "Bleu"
|
333 |
+
|
334 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
335 |
+
msgid "Purple"
|
336 |
+
msgstr "Mauve"
|
337 |
+
|
338 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
339 |
+
msgid "Teal"
|
340 |
+
msgstr "Bleu Canard"
|
341 |
+
|
342 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
343 |
+
msgid "Dark Blue"
|
344 |
+
msgstr "Bleu foncé"
|
345 |
+
|
346 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
347 |
+
msgid "Black"
|
348 |
+
msgstr "noir"
|
349 |
+
|
350 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
351 |
+
msgid "Grey"
|
352 |
+
msgstr "Gris"
|
353 |
+
|
354 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
355 |
+
msgid "Pink"
|
356 |
+
msgstr "Rose"
|
357 |
+
|
358 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
359 |
+
msgid "Orange"
|
360 |
+
msgstr "Orange"
|
361 |
+
|
362 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:552
|
363 |
+
msgid "White"
|
364 |
+
msgstr "Blanc"
|
365 |
+
|
366 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:555
|
367 |
+
msgid "current"
|
368 |
+
msgstr "Actuel"
|
369 |
+
|
370 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:561
|
371 |
+
msgid "Adjusts the color of the \"Download Now\" button."
|
372 |
+
msgstr "Modifier la couleur du bouton \"Télécharger Maintenant\"."
|
373 |
+
|
374 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:589
|
375 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-post-type-content-handler.php:48
|
376 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:94
|
377 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/includes/templates/fancy1/sdm-fancy-1.php:87
|
378 |
+
msgid "Download"
|
379 |
+
msgstr "Telecharger"
|
380 |
+
|
381 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:613
|
382 |
+
msgid "Edit"
|
383 |
+
msgstr "Éditer (Modifier)"
|
384 |
+
|
385 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:614
|
386 |
+
msgid "Delete"
|
387 |
+
msgstr "Effacer"
|
388 |
+
|
389 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:638
|
390 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1029
|
391 |
+
msgid "Title"
|
392 |
+
msgstr " Titre"
|
393 |
+
|
394 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:639
|
395 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1031
|
396 |
+
msgid "File"
|
397 |
+
msgstr "Fichier"
|
398 |
+
|
399 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:640
|
400 |
+
msgid "Visitor IP"
|
401 |
+
msgstr "IP du visiteur"
|
402 |
+
|
403 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:641
|
404 |
+
msgid "Date"
|
405 |
+
msgstr "Date"
|
406 |
+
|
407 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:642
|
408 |
+
msgid "Country"
|
409 |
+
msgstr "Pays"
|
410 |
+
|
411 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:662
|
412 |
+
msgid "Delete Permanently"
|
413 |
+
msgstr "Supprimer Définitivement"
|
414 |
+
|
415 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:663
|
416 |
+
msgid "Export All as Excel"
|
417 |
+
msgstr "Export Tout sous Excel"
|
418 |
+
|
419 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:678
|
420 |
+
msgid "Nope! Security check failed!"
|
421 |
+
msgstr "Zut! Le contrôle de sécurité a échoué !"
|
422 |
+
|
423 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:686
|
424 |
+
msgid "Download Export File"
|
425 |
+
msgstr "Télécharger le fichier d'exportation"
|
426 |
+
|
427 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:693
|
428 |
+
msgid "No entries were selected."
|
429 |
+
msgstr "Pas d'entrées ont été sélectionnés."
|
430 |
+
|
431 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:693
|
432 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:709
|
433 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:711
|
434 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:728
|
435 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:730
|
436 |
+
msgid "Click to Dismiss"
|
437 |
+
msgstr "Cliquez pour ignorer"
|
438 |
+
|
439 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:709
|
440 |
+
msgid "Entries Deleted!"
|
441 |
+
msgstr "Entrées supprimées!"
|
442 |
+
|
443 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:711
|
444 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:730
|
445 |
+
msgid "Error"
|
446 |
+
msgstr "Erreur"
|
447 |
+
|
448 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:728
|
449 |
+
msgid "Entry Deleted!"
|
450 |
+
msgstr "Ecriture supprimée !"
|
451 |
+
|
452 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:788
|
453 |
+
msgid "Download Logs"
|
454 |
+
msgstr "Télécharger le journal"
|
455 |
+
|
456 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:791
|
457 |
+
msgid "This page lists all tracked downloads."
|
458 |
+
msgstr "Cette page liste les suivis de téléchargements."
|
459 |
+
|
460 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:813
|
461 |
+
msgid "Enter Password to Download:"
|
462 |
+
msgstr "Entrez le mot de passe pour télécharger :"
|
463 |
+
|
464 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:816
|
465 |
+
msgid "Submit"
|
466 |
+
msgstr "Soumettre"
|
467 |
+
|
468 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:862
|
469 |
+
msgid "Error! Failed to log the download request in the database table"
|
470 |
+
msgstr ""
|
471 |
+
"Erreur! Impossible de se connecter à la demande de téléchargement dans la "
|
472 |
+
"table de base de données"
|
473 |
+
|
474 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:871
|
475 |
+
msgid ""
|
476 |
+
"Error! The URL value is empty. Please specify a correct URL value to "
|
477 |
+
"redirect to!"
|
478 |
+
msgstr ""
|
479 |
+
"Erreur! La valeur de l'URL est vide. S'il vous plaît spécifier une valeur "
|
480 |
+
"d'URL correcte pour rediriger vers elle!"
|
481 |
+
|
482 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1028
|
483 |
+
msgid "Image"
|
484 |
+
msgstr "Image"
|
485 |
+
|
486 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1030
|
487 |
+
msgid "ID"
|
488 |
+
msgstr "ID "
|
489 |
+
|
490 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1035
|
491 |
+
msgid "Date Posted"
|
492 |
+
msgstr "Date de Publication"
|
493 |
+
|
494 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/main.php:1036
|
495 |
+
msgid "Visitor Country"
|
496 |
+
msgstr "Pays du visiteur"
|
497 |
+
|
498 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-post-type-content-handler.php:32
|
499 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:40
|
500 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:166
|
501 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/includes/templates/fancy1/sdm-fancy-1.php:42
|
502 |
+
msgid "green"
|
503 |
+
msgstr "vert"
|
504 |
+
|
505 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-post-type-content-handler.php:37
|
506 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:48
|
507 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:174
|
508 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/includes/templates/fancy1/sdm-fancy-1.php:53
|
509 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/includes/templates/fancy2/sdm-fancy-2.php:57
|
510 |
+
msgid "Download Now!"
|
511 |
+
msgstr "Télécharger maintenant!"
|
512 |
+
|
513 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:27
|
514 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:88
|
515 |
+
msgid "Error! Please enter an ID value with this shortcode."
|
516 |
+
msgstr "Erreur ! Veuillez entrer une valeur d'ID avec ce raccourci."
|
517 |
+
|
518 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:118
|
519 |
+
msgid ""
|
520 |
+
"Error! You must enter a category slug OR a category id with this shortcode. "
|
521 |
+
"Refer to the documentation for usage instructions."
|
522 |
+
msgstr ""
|
523 |
+
"Erreur ! Veuillez saisir une catégorie ou un id de catégorie avec ce "
|
524 |
+
"raccourci. Reportez-vous à la documentation pour obtenir des instructions "
|
525 |
+
"d'utilisation."
|
526 |
+
|
527 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:122
|
528 |
+
msgid "Error! Please enter a category slug OR id; not both."
|
529 |
+
msgstr "Erreur ! Veuillez saisir une catégorie OU un ID pas les deux."
|
530 |
+
|
531 |
+
#: C:\Users\amin\Desktop\simple-download-monitor/sdm-shortcodes.php:153
|
532 |
+
msgid "There are no download items matching this category criteria."
|
533 |
+
msgstr ""
|
534 |
+
"Il n'y a pas de téléchargement correspondant à ces critères de catégorie."
|
main.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Download Monitor
|
4 |
* Plugin URI: https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin
|
5 |
* Description: Easily manage downloadable files and monitor downloads of your digital files from your WordPress site.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: Tips and Tricks HQ, Ruhul Amin, Josh Lobe
|
8 |
* Author URI: https://www.tipsandtricks-hq.com/development-center
|
9 |
* License: GPL2
|
@@ -12,7 +12,7 @@ if (!defined('ABSPATH')) {
|
|
12 |
exit;
|
13 |
}
|
14 |
|
15 |
-
define('WP_SIMPLE_DL_MONITOR_VERSION', '3.3.
|
16 |
define('WP_SIMPLE_DL_MONITOR_DIR_NAME', dirname(plugin_basename(__FILE__)));
|
17 |
define('WP_SIMPLE_DL_MONITOR_URL', plugins_url('', __FILE__));
|
18 |
define('WP_SIMPLE_DL_MONITOR_PATH', plugin_dir_path(__FILE__));
|
@@ -129,7 +129,8 @@ class simpleDownloadManager {
|
|
129 |
add_action('save_post', array(&$this, 'sdm_save_description_meta_data')); // Save 'description' metabox
|
130 |
add_action('save_post', array(&$this, 'sdm_save_upload_meta_data')); // Save 'upload file' metabox
|
131 |
add_action('save_post', array(&$this, 'sdm_save_thumbnail_meta_data')); // Save 'thumbnail' metabox
|
132 |
-
add_action('save_post', array(&$this, 'sdm_save_statistics_meta_data')); // Save '
|
|
|
133 |
|
134 |
add_action('admin_enqueue_scripts', array(&$this, 'sdm_admin_scripts')); // Register admin scripts
|
135 |
add_action('admin_print_styles', array(&$this, 'sdm_admin_styles')); // Register admin styles
|
@@ -203,19 +204,15 @@ class simpleDownloadManager {
|
|
203 |
}
|
204 |
|
205 |
public function sdm_create_upload_metabox() {
|
206 |
-
|
207 |
-
//*****
|
208 |
//***** Create metaboxes for the custom post type
|
209 |
-
add_meta_box('sdm_description_meta_box', __('Description', 'simple-download-monitor'), array(&$this, 'display_sdm_description_meta_box'), 'sdm_downloads', 'normal', 'default'
|
210 |
-
);
|
211 |
-
add_meta_box('
|
212 |
-
);
|
213 |
-
add_meta_box('
|
214 |
-
);
|
215 |
-
|
216 |
-
);
|
217 |
-
add_meta_box('sdm_stats_meta_box', __('Statistics', 'simple-download-monitor'), array(&$this, 'display_sdm_stats_meta_box'), 'sdm_downloads', 'normal', 'default'
|
218 |
-
);
|
219 |
}
|
220 |
|
221 |
public function display_sdm_description_meta_box($post) { // Description metabox
|
@@ -232,13 +229,25 @@ class simpleDownloadManager {
|
|
232 |
public function display_sdm_upload_meta_box($post) { // File Upload metabox
|
233 |
$old_upload = get_post_meta($post->ID, 'sdm_upload', true);
|
234 |
$old_value = isset($old_upload) ? $old_upload : '';
|
235 |
-
|
236 |
-
|
237 |
-
<br /><br />
|
238 |
-
|
239 |
-
<
|
240 |
-
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
wp_nonce_field('sdm_upload_box_nonce', 'sdm_upload_box_nonce_check');
|
243 |
}
|
244 |
|
@@ -246,12 +255,11 @@ class simpleDownloadManager {
|
|
246 |
$old_thumbnail = get_post_meta($post->ID, 'sdm_upload_thumbnail', true);
|
247 |
$old_value = isset($old_thumbnail) ? $old_thumbnail : '';
|
248 |
_e('Manually enter a valid URL, or click "Select Image" to upload (or choose) the file thumbnail image.', 'simple-download-monitor');
|
249 |
-
|
250 |
-
_e('This thumbnail image will be used to create a fancy file download box if you want to use it.', 'simple-download-monitor');
|
251 |
?>
|
252 |
<br /><br />
|
253 |
-
<input id="sdm_upload_thumbnail" type="text" size="
|
254 |
-
<br />
|
255 |
<input id="upload_thumbnail_button" type="button" class="button-primary" value="<?php _e('Select Image', 'simple-download-monitor'); ?>" />
|
256 |
<input id="remove_thumbnail_button" type="button" class="button" value="<?php _e('Remove Image', 'simple-download-monitor'); ?>" />
|
257 |
<br /><br />
|
@@ -262,22 +270,18 @@ class simpleDownloadManager {
|
|
262 |
?><img id="sdm_thumbnail_image" src="<?php echo $old_value; ?>" style="max-width:200px;" />
|
263 |
<?php
|
264 |
}
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
_e('This
|
271 |
-
echo '
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
_e('This shortcode may be used as a download counter.', 'simple-download-monitor');
|
276 |
-
echo '<br />';
|
277 |
-
echo '[sdm_download_counter id="' . $post->ID . '"]';
|
278 |
}
|
279 |
|
280 |
-
public function display_sdm_stats_meta_box($post) { //
|
281 |
$old_count = get_post_meta($post->ID, 'sdm_count_offset', true);
|
282 |
$value = isset($old_count) && $old_count != '' ? $old_count : '0';
|
283 |
|
@@ -290,20 +294,67 @@ class simpleDownloadManager {
|
|
290 |
|
291 |
global $wpdb;
|
292 |
$wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'sdm_downloads WHERE post_id=%s', $post->ID));
|
|
|
|
|
293 |
_e('Number of Downloads:', 'simple-download-monitor');
|
294 |
echo ' <strong>' . $wpdb->num_rows . '</strong>';
|
295 |
-
echo '
|
296 |
-
|
297 |
-
echo '
|
298 |
-
|
299 |
-
|
300 |
-
echo '<
|
|
|
|
|
|
|
|
|
|
|
301 |
echo '<input type="checkbox" name="sdm_item_no_log" ' . $checked . ' />';
|
302 |
echo '<span style="margin-left: 5px;"></span>';
|
303 |
_e('Disable download logging for this item.', 'simple-download-monitor');
|
|
|
304 |
|
305 |
wp_nonce_field('sdm_count_offset_nonce', 'sdm_count_offset_nonce_check');
|
306 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
|
308 |
public function sdm_save_description_meta_data($post_id) { // Save Description metabox
|
309 |
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
|
@@ -356,6 +407,24 @@ class simpleDownloadManager {
|
|
356 |
delete_post_meta($post_id, 'sdm_item_no_log');
|
357 |
}
|
358 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
public function sdm_remove_view_link_cpt($action, $post) {
|
361 |
|
3 |
* Plugin Name: Simple Download Monitor
|
4 |
* Plugin URI: https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin
|
5 |
* Description: Easily manage downloadable files and monitor downloads of your digital files from your WordPress site.
|
6 |
+
* Version: 3.3.2
|
7 |
* Author: Tips and Tricks HQ, Ruhul Amin, Josh Lobe
|
8 |
* Author URI: https://www.tipsandtricks-hq.com/development-center
|
9 |
* License: GPL2
|
12 |
exit;
|
13 |
}
|
14 |
|
15 |
+
define('WP_SIMPLE_DL_MONITOR_VERSION', '3.3.2');
|
16 |
define('WP_SIMPLE_DL_MONITOR_DIR_NAME', dirname(plugin_basename(__FILE__)));
|
17 |
define('WP_SIMPLE_DL_MONITOR_URL', plugins_url('', __FILE__));
|
18 |
define('WP_SIMPLE_DL_MONITOR_PATH', plugin_dir_path(__FILE__));
|
129 |
add_action('save_post', array(&$this, 'sdm_save_description_meta_data')); // Save 'description' metabox
|
130 |
add_action('save_post', array(&$this, 'sdm_save_upload_meta_data')); // Save 'upload file' metabox
|
131 |
add_action('save_post', array(&$this, 'sdm_save_thumbnail_meta_data')); // Save 'thumbnail' metabox
|
132 |
+
add_action('save_post', array(&$this, 'sdm_save_statistics_meta_data')); // Save 'statistics' metabox
|
133 |
+
add_action('save_post', array(&$this, 'sdm_save_other_details_meta_data')); // Save 'other details' metabox
|
134 |
|
135 |
add_action('admin_enqueue_scripts', array(&$this, 'sdm_admin_scripts')); // Register admin scripts
|
136 |
add_action('admin_print_styles', array(&$this, 'sdm_admin_styles')); // Register admin styles
|
204 |
}
|
205 |
|
206 |
public function sdm_create_upload_metabox() {
|
207 |
+
|
|
|
208 |
//***** Create metaboxes for the custom post type
|
209 |
+
add_meta_box('sdm_description_meta_box', __('Description', 'simple-download-monitor'), array(&$this, 'display_sdm_description_meta_box'), 'sdm_downloads', 'normal', 'default');
|
210 |
+
add_meta_box('sdm_upload_meta_box', __('Upload File', 'simple-download-monitor'), array(&$this, 'display_sdm_upload_meta_box'), 'sdm_downloads', 'normal', 'default');
|
211 |
+
add_meta_box('sdm_thumbnail_meta_box', __('File Thumbnail (Optional)', 'simple-download-monitor'), array(&$this, 'display_sdm_thumbnail_meta_box'), 'sdm_downloads', 'normal', 'default');
|
212 |
+
add_meta_box('sdm_stats_meta_box', __('Statistics', 'simple-download-monitor'), array(&$this, 'display_sdm_stats_meta_box'), 'sdm_downloads', 'normal', 'default');
|
213 |
+
add_meta_box('sdm_other_details_meta_box', __('Other Details (Optional)', 'simple-download-monitor'), array(&$this, 'display_sdm_other_details_meta_box'), 'sdm_downloads', 'normal', 'default');
|
214 |
+
add_meta_box('sdm_shortcode_meta_box', __('Shortcodes', 'simple-download-monitor'), array(&$this, 'display_sdm_shortcode_meta_box'), 'sdm_downloads', 'normal', 'default');
|
215 |
+
|
|
|
|
|
|
|
216 |
}
|
217 |
|
218 |
public function display_sdm_description_meta_box($post) { // Description metabox
|
229 |
public function display_sdm_upload_meta_box($post) { // File Upload metabox
|
230 |
$old_upload = get_post_meta($post->ID, 'sdm_upload', true);
|
231 |
$old_value = isset($old_upload) ? $old_upload : '';
|
232 |
+
|
233 |
+
_e('Manually enter a valid URL of the file in the text box below, or click "Select File" button to upload (or choose) the downloadable file.', 'simple-download-monitor');
|
234 |
+
echo '<br /><br />';
|
235 |
+
|
236 |
+
echo '<div class="sdm-download-edit-file-url-section">';
|
237 |
+
echo '<input id="sdm_upload" type="text" size="100" name="sdm_upload" value="'.$old_value.'" placeholder="http://..." />';
|
238 |
+
echo '</div>';
|
239 |
+
|
240 |
+
echo '<br />';
|
241 |
+
echo '<input id="upload_image_button" type="button" class="button-primary" value="'.__('Select File', 'simple-download-monitor').'" />';
|
242 |
+
|
243 |
+
echo '<br /><br />';
|
244 |
+
_e('Steps to upload a file or choose one from your media library:', 'simple-download-monitor');
|
245 |
+
echo '<ol>';
|
246 |
+
echo '<li>Hit the "Select File" button</li>';
|
247 |
+
echo '<li>Upload a new file or choose an existing one from your media library.</li>';
|
248 |
+
echo '<li>Click the "Insert into Post" button, this will populate the uploaded file URL in the above text field.</li>';
|
249 |
+
echo '</ol>';
|
250 |
+
|
251 |
wp_nonce_field('sdm_upload_box_nonce', 'sdm_upload_box_nonce_check');
|
252 |
}
|
253 |
|
255 |
$old_thumbnail = get_post_meta($post->ID, 'sdm_upload_thumbnail', true);
|
256 |
$old_value = isset($old_thumbnail) ? $old_thumbnail : '';
|
257 |
_e('Manually enter a valid URL, or click "Select Image" to upload (or choose) the file thumbnail image.', 'simple-download-monitor');
|
258 |
+
|
|
|
259 |
?>
|
260 |
<br /><br />
|
261 |
+
<input id="sdm_upload_thumbnail" type="text" size="100" name="sdm_upload_thumbnail" value="<?php echo $old_value; ?>" placeholder="http://..." />
|
262 |
+
<br /><br />
|
263 |
<input id="upload_thumbnail_button" type="button" class="button-primary" value="<?php _e('Select Image', 'simple-download-monitor'); ?>" />
|
264 |
<input id="remove_thumbnail_button" type="button" class="button" value="<?php _e('Remove Image', 'simple-download-monitor'); ?>" />
|
265 |
<br /><br />
|
270 |
?><img id="sdm_thumbnail_image" src="<?php echo $old_value; ?>" style="max-width:200px;" />
|
271 |
<?php
|
272 |
}
|
273 |
+
?>
|
274 |
+
</span>
|
275 |
+
|
276 |
+
<?php
|
277 |
+
echo '<p class="description">';
|
278 |
+
_e('This thumbnail image will be used to create a fancy file download box if you want to use it.', 'simple-download-monitor');
|
279 |
+
echo '</p>';
|
280 |
+
|
281 |
+
wp_nonce_field('sdm_thumbnail_box_nonce', 'sdm_thumbnail_box_nonce_check');
|
|
|
|
|
|
|
|
|
282 |
}
|
283 |
|
284 |
+
public function display_sdm_stats_meta_box($post) { //Stats metabox
|
285 |
$old_count = get_post_meta($post->ID, 'sdm_count_offset', true);
|
286 |
$value = isset($old_count) && $old_count != '' ? $old_count : '0';
|
287 |
|
294 |
|
295 |
global $wpdb;
|
296 |
$wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'sdm_downloads WHERE post_id=%s', $post->ID));
|
297 |
+
|
298 |
+
echo '<div class="sdm-download-edit-dl-count">';
|
299 |
_e('Number of Downloads:', 'simple-download-monitor');
|
300 |
echo ' <strong>' . $wpdb->num_rows . '</strong>';
|
301 |
+
echo '</div>';
|
302 |
+
|
303 |
+
echo '<div class="sdm-download-edit-offset-count">';
|
304 |
+
_e('Offset Count: ', 'simple-download-monitor');
|
305 |
+
echo '<br />';
|
306 |
+
echo ' <input type="text" size="10" name="sdm_count_offset" value="' . $value . '" />';
|
307 |
+
echo '<p class="description">'.__('Enter any positive or negative numerical value; to offset the download count shown to the visitors (when using the download counter shortcode).', 'simple-download-monitor').'</p>';
|
308 |
+
echo '</div>';
|
309 |
+
|
310 |
+
echo '<br />';
|
311 |
+
echo '<div class="sdm-download-edit-disable-logging">';
|
312 |
echo '<input type="checkbox" name="sdm_item_no_log" ' . $checked . ' />';
|
313 |
echo '<span style="margin-left: 5px;"></span>';
|
314 |
_e('Disable download logging for this item.', 'simple-download-monitor');
|
315 |
+
echo '</div>';
|
316 |
|
317 |
wp_nonce_field('sdm_count_offset_nonce', 'sdm_count_offset_nonce_check');
|
318 |
}
|
319 |
+
|
320 |
+
public function display_sdm_other_details_meta_box($post){ //Other details metabox
|
321 |
+
$file_size = get_post_meta($post->ID, 'sdm_item_file_size', true);
|
322 |
+
$file_size = isset($file_size) ? $file_size : '';
|
323 |
+
|
324 |
+
$version = get_post_meta($post->ID, 'sdm_item_version', true);
|
325 |
+
$version = isset($version) ? $version : '';
|
326 |
+
|
327 |
+
echo '<div class="sdm-download-edit-filesize">';
|
328 |
+
_e('File Size: ', 'simple-download-monitor');
|
329 |
+
echo '<br />';
|
330 |
+
echo ' <input type="text" name="sdm_item_file_size" value="' . $file_size . '" size="20" />';
|
331 |
+
echo '<p class="description">'.__('Enter the size of this file (example value: 2.15 MB). You can show shis value in the fancy display by using a shortcode parameter.', 'simple-download-monitor').'</p>';
|
332 |
+
echo '</div>';
|
333 |
+
|
334 |
+
echo '<div class="sdm-download-edit-version">';
|
335 |
+
_e('Version: ', 'simple-download-monitor');
|
336 |
+
echo '<br />';
|
337 |
+
echo ' <input type="text" name="sdm_item_version" value="' . $version . '" size="20" />';
|
338 |
+
echo '<p class="description">'.__('Enter the version number for this item if any (example value: v2.5.10). You can show shis value in the fancy display by using a shortcode parameter.', 'simple-download-monitor').'</p>';
|
339 |
+
echo '</div>';
|
340 |
+
|
341 |
+
wp_nonce_field('sdm_other_details_nonce', 'sdm_other_details_nonce_check');
|
342 |
+
|
343 |
+
}
|
344 |
+
|
345 |
+
public function display_sdm_shortcode_meta_box($post) { //Shortcode metabox
|
346 |
+
_e('The following shortcode can be used on posts or pages to embed a download now button for this file. You can also use the shortcode inserter (in the post editor) to add this shortcode to a post or page.', 'simple-download-monitor');
|
347 |
+
echo '<br />';
|
348 |
+
echo '[sdm_download id="' . $post->ID . '" fancy="0"]';
|
349 |
+
echo '<br /><br />';
|
350 |
+
|
351 |
+
_e('The following shortcode can be used to show a download counter for this item.', 'simple-download-monitor');
|
352 |
+
echo '<br />';
|
353 |
+
echo '[sdm_download_counter id="' . $post->ID . '"]';
|
354 |
+
|
355 |
+
echo '<br /><br />';
|
356 |
+
echo 'Read the full shortcode usage documentation <a href="https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin" target="_blank">here</a>.';
|
357 |
+
}
|
358 |
|
359 |
public function sdm_save_description_meta_data($post_id) { // Save Description metabox
|
360 |
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
|
407 |
delete_post_meta($post_id, 'sdm_item_no_log');
|
408 |
}
|
409 |
}
|
410 |
+
|
411 |
+
public function sdm_save_other_details_meta_data($post_id) { // Save Statistics Upload metabox
|
412 |
+
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE){
|
413 |
+
return;
|
414 |
+
}
|
415 |
+
if (!isset($_POST['sdm_other_details_nonce_check']) || !wp_verify_nonce($_POST['sdm_other_details_nonce_check'], 'sdm_other_details_nonce')){
|
416 |
+
return;
|
417 |
+
}
|
418 |
+
|
419 |
+
if (isset($_POST['sdm_item_file_size'])) {
|
420 |
+
update_post_meta($post_id, 'sdm_item_file_size', $_POST['sdm_item_file_size']);
|
421 |
+
}
|
422 |
+
|
423 |
+
if (isset($_POST['sdm_item_version'])){
|
424 |
+
update_post_meta($post_id, 'sdm_item_version', $_POST['sdm_item_version']);
|
425 |
+
}
|
426 |
+
|
427 |
+
}
|
428 |
|
429 |
public function sdm_remove_view_link_cpt($action, $post) {
|
430 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Tips and Tricks HQ, Ruhul Amin, josh401, mbrsolution
|
|
3 |
Donate link: https://www.tipsandtricks-hq.com
|
4 |
Tags: download, downloads, count, counter, tracker, tracking, hits, logging, monitor, manager, files, media, digital, download monitor, download manager, downloadmanager, file manager, protect downloads, password, download category, file tree, ajax, download template, grid, documents, ip address
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 3.3.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Easily manage downloadable files and monitor downloads of your digital files from your WordPress site.
|
@@ -61,6 +61,8 @@ https://www.youtube.com/watch?v=L-mXbs7kp0s
|
|
61 |
* Shortcode to show a number of latest downloads to your visitors.
|
62 |
* Ability to disable the download monitoring (logging) for certain items (or all items).
|
63 |
* You can also choose to only monitor downloads from unique IP address only.
|
|
|
|
|
64 |
|
65 |
View more details on the [download monitor plugin](https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin) page.
|
66 |
|
@@ -71,6 +73,7 @@ The following language translations are already available for the download monit
|
|
71 |
* English
|
72 |
* German
|
73 |
* Spanish
|
|
|
74 |
* Italian
|
75 |
* Russian
|
76 |
* Dutch
|
@@ -112,8 +115,16 @@ Example Shortcode Usage:
|
|
112 |
|
113 |
You can check the download stats from the "Downloads->Logs" interface. It shows the number of downloads for each files, IP address of the user who downloaded it, date and time of the download.
|
114 |
|
|
|
|
|
115 |
View more usage instructions on the [Download Monitor Plugin](https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin) page.
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
== Installation ==
|
118 |
|
119 |
1. Go to the Add New plugins screen in your WordPress admin area
|
@@ -156,6 +167,13 @@ For screenshots please visit the [download monitor plugin page](https://www.tips
|
|
156 |
|
157 |
== Changelog ==
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
= 3.3.1 =
|
160 |
- Added a new feature to hide the download counts that is shown in some of the fancy templates. This new option can be found in the settings menu of the plugin.
|
161 |
- Added delete confirm dialogue in the individual download logs delete option.
|
3 |
Donate link: https://www.tipsandtricks-hq.com
|
4 |
Tags: download, downloads, count, counter, tracker, tracking, hits, logging, monitor, manager, files, media, digital, download monitor, download manager, downloadmanager, file manager, protect downloads, password, download category, file tree, ajax, download template, grid, documents, ip address
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 3.3.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Easily manage downloadable files and monitor downloads of your digital files from your WordPress site.
|
61 |
* Shortcode to show a number of latest downloads to your visitors.
|
62 |
* Ability to disable the download monitoring (logging) for certain items (or all items).
|
63 |
* You can also choose to only monitor downloads from unique IP address only.
|
64 |
+
* Option to specify file size info so it can be shown to your visitors.
|
65 |
+
* Option to specify version number info for the download item so it can be shown to your visitors.
|
66 |
|
67 |
View more details on the [download monitor plugin](https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin) page.
|
68 |
|
73 |
* English
|
74 |
* German
|
75 |
* Spanish
|
76 |
+
* French
|
77 |
* Italian
|
78 |
* Russian
|
79 |
* Dutch
|
115 |
|
116 |
You can check the download stats from the "Downloads->Logs" interface. It shows the number of downloads for each files, IP address of the user who downloaded it, date and time of the download.
|
117 |
|
118 |
+
= Detailed Usage Documentation =
|
119 |
+
|
120 |
View more usage instructions on the [Download Monitor Plugin](https://www.tipsandtricks-hq.com/simple-wordpress-download-monitor-plugin) page.
|
121 |
|
122 |
+
= Github Repository =
|
123 |
+
|
124 |
+
https://github.com/Arsenal21/simple-download-monitor
|
125 |
+
|
126 |
+
If you need some extra action hooks or filters for this plugin then let us know.
|
127 |
+
|
128 |
== Installation ==
|
129 |
|
130 |
1. Go to the Add New plugins screen in your WordPress admin area
|
167 |
|
168 |
== Changelog ==
|
169 |
|
170 |
+
= 3.3.2 =
|
171 |
+
- Added an option to specify the file size info when editing the item. Size info can be shown in the fancy display template using a shortcode parameter (show_size).
|
172 |
+
- Added an option to specify the version number info when editing the item. Version info can be shown in the fancy display template using a shortcode parameter (show_version).
|
173 |
+
- Added French language translation. Translation file submitted by Laurent Jaunaux.
|
174 |
+
- The stats metabox in the download edit page will now appear before the shortcodes metabox.
|
175 |
+
- Added more usage instructions in the download file upload section.
|
176 |
+
|
177 |
= 3.3.1 =
|
178 |
- Added a new feature to hide the download counts that is shown in some of the fancy templates. This new option can be found in the settings menu of the plugin.
|
179 |
- Added delete confirm dialogue in the individual download logs delete option.
|
sdm-post-type-content-handler.php
CHANGED
@@ -3,28 +3,35 @@
|
|
3 |
add_filter('the_content', 'filter_sdm_post_type_content');
|
4 |
|
5 |
function filter_sdm_post_type_content($content) {
|
6 |
-
global $post;
|
7 |
if ($post->post_type == "sdm_downloads") {//Handle the content for sdm_downloads type post
|
8 |
//$download_id = $post->ID;
|
9 |
//$args = array('id' => $download_id, 'fancy' => '1');
|
10 |
//$content = sdm_create_download_shortcode($args);
|
11 |
-
|
12 |
$id = $post->ID;
|
13 |
-
|
|
|
14 |
$get_cpt_object = get_post($id);
|
15 |
$cpt_is_password = !empty($get_cpt_object->post_password) ? 'yes' : 'no'; // yes = download is password protected;
|
16 |
-
//
|
17 |
$item_download_thumbnail = get_post_meta($id, 'sdm_upload_thumbnail', true);
|
18 |
$isset_download_thumbnail = isset($item_download_thumbnail) && !empty($item_download_thumbnail) ? '<img class="sdm_post_thumbnail_image" src="' . $item_download_thumbnail . '" />' : '';
|
19 |
|
20 |
-
//
|
21 |
$item_title = get_the_title($id);
|
22 |
$isset_item_title = isset($item_title) && !empty($item_title) ? $item_title : '';
|
23 |
|
24 |
-
//
|
25 |
$isset_item_description = sdm_get_item_description_output($id);
|
26 |
-
|
27 |
//$isset_item_description = apply_filters('the_content', $isset_item_description);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
// See if user color option is selected
|
30 |
$main_opts = get_option('sdm_downloads_options');
|
@@ -46,33 +53,49 @@ function filter_sdm_post_type_content($content) {
|
|
46 |
|
47 |
$db_count = sdm_get_download_count_for_post($id);
|
48 |
$string = ($db_count == '1') ? __('Download', 'simple-download-monitor') : __('Downloads', 'simple-download-monitor');
|
49 |
-
$download_count_string = '<span class="sdm_post_count_number">'
|
50 |
-
|
51 |
-
//
|
52 |
$content = '<div class="sdm_post_item">';
|
53 |
$content .= '<div class="sdm_post_item_top">';
|
54 |
-
|
55 |
$content .= '<div class="sdm_post_item_top_left">';
|
56 |
$content .= '<div class="sdm_post_thumbnail">' . $isset_download_thumbnail . '</div>';
|
57 |
-
$content .= '</div>'
|
58 |
-
|
59 |
$content .= '<div class="sdm_post_item_top_right">';
|
60 |
$content .= '<div class="sdm_post_title">' . $isset_item_title . '</div>';
|
61 |
-
|
62 |
-
if(!isset($main_opts['general_hide_donwload_count'])) {//The hide download count is enabled.
|
63 |
$content .= '<div class="sdm_post_download_count">' . $download_count_string . '</div>';
|
64 |
}
|
65 |
-
|
66 |
$content .= '<div class="sdm_post_description">' . $isset_item_description . '</div>';
|
|
|
67 |
$content .= '<div class="sdm_post_download_section"><div class="sdm_download_link">' . $download_button_code . '</div></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
//$content .= '<div class="sdm_post_meta_section"></div>';//TODO - Show post meta (category and tags)
|
69 |
-
$content .= '</div>'
|
70 |
-
|
71 |
$content .= '</div>'; //end of .sdm_download_item_top
|
72 |
-
|
73 |
-
$content .= '<div style="clear:both;"></div>';
|
74 |
-
|
75 |
-
$content .= '</div>'
|
76 |
|
77 |
return $content;
|
78 |
}
|
3 |
add_filter('the_content', 'filter_sdm_post_type_content');
|
4 |
|
5 |
function filter_sdm_post_type_content($content) {
|
6 |
+
global $post;
|
7 |
if ($post->post_type == "sdm_downloads") {//Handle the content for sdm_downloads type post
|
8 |
//$download_id = $post->ID;
|
9 |
//$args = array('id' => $download_id, 'fancy' => '1');
|
10 |
//$content = sdm_create_download_shortcode($args);
|
|
|
11 |
$id = $post->ID;
|
12 |
+
|
13 |
+
//Check to see if the download link cpt is password protected
|
14 |
$get_cpt_object = get_post($id);
|
15 |
$cpt_is_password = !empty($get_cpt_object->post_password) ? 'yes' : 'no'; // yes = download is password protected;
|
16 |
+
//Get item thumbnail
|
17 |
$item_download_thumbnail = get_post_meta($id, 'sdm_upload_thumbnail', true);
|
18 |
$isset_download_thumbnail = isset($item_download_thumbnail) && !empty($item_download_thumbnail) ? '<img class="sdm_post_thumbnail_image" src="' . $item_download_thumbnail . '" />' : '';
|
19 |
|
20 |
+
//Get item title
|
21 |
$item_title = get_the_title($id);
|
22 |
$isset_item_title = isset($item_title) && !empty($item_title) ? $item_title : '';
|
23 |
|
24 |
+
//Get item description
|
25 |
$isset_item_description = sdm_get_item_description_output($id);
|
26 |
+
|
27 |
//$isset_item_description = apply_filters('the_content', $isset_item_description);
|
28 |
+
//Get item file size
|
29 |
+
$item_file_size = get_post_meta($id, 'sdm_item_file_size', true);
|
30 |
+
$isset_item_file_size = isset($item_file_size) ? $item_file_size : '';
|
31 |
+
|
32 |
+
//Get item version
|
33 |
+
$item_version = get_post_meta($id, 'sdm_item_version', true);
|
34 |
+
$isset_item_version = isset($item_version) ? $item_version : '';
|
35 |
|
36 |
// See if user color option is selected
|
37 |
$main_opts = get_option('sdm_downloads_options');
|
53 |
|
54 |
$db_count = sdm_get_download_count_for_post($id);
|
55 |
$string = ($db_count == '1') ? __('Download', 'simple-download-monitor') : __('Downloads', 'simple-download-monitor');
|
56 |
+
$download_count_string = '<span class="sdm_post_count_number">' . $db_count . '</span><span class="sdm_post_count_string"> ' . $string . '</span>';
|
57 |
+
|
58 |
+
//Output the download item details
|
59 |
$content = '<div class="sdm_post_item">';
|
60 |
$content .= '<div class="sdm_post_item_top">';
|
61 |
+
|
62 |
$content .= '<div class="sdm_post_item_top_left">';
|
63 |
$content .= '<div class="sdm_post_thumbnail">' . $isset_download_thumbnail . '</div>';
|
64 |
+
$content .= '</div>'; //end .sdm_post_item_top_left
|
65 |
+
|
66 |
$content .= '<div class="sdm_post_item_top_right">';
|
67 |
$content .= '<div class="sdm_post_title">' . $isset_item_title . '</div>';
|
68 |
+
|
69 |
+
if (!isset($main_opts['general_hide_donwload_count'])) {//The hide download count is enabled.
|
70 |
$content .= '<div class="sdm_post_download_count">' . $download_count_string . '</div>';
|
71 |
}
|
72 |
+
|
73 |
$content .= '<div class="sdm_post_description">' . $isset_item_description . '</div>';
|
74 |
+
|
75 |
$content .= '<div class="sdm_post_download_section"><div class="sdm_download_link">' . $download_button_code . '</div></div>';
|
76 |
+
|
77 |
+
if (!empty($isset_item_file_size)) {//Show file size info
|
78 |
+
$content .= '<div class="sdm_post_download_file_size">';
|
79 |
+
$content .= '<span class="sdm_post_download_size_label">' . __('Size: ', 'simple-download-monitor') . '</span>';
|
80 |
+
$content .= '<span class="sdm_post_download_size_value">' . $isset_item_file_size . '</span>';
|
81 |
+
$content .= '</div>';
|
82 |
+
}
|
83 |
+
|
84 |
+
if (!empty($isset_item_version)) {//Show version info
|
85 |
+
$content .= '<div class="sdm_post_download_version">';
|
86 |
+
$content .= '<span class="sdm_post_download_version_label">' . __('Version: ', 'simple-download-monitor') . '</span>';
|
87 |
+
$content .= '<span class="sdm_post_download_version_value">' . $isset_item_version . '</span>';
|
88 |
+
$content .= '</div>';
|
89 |
+
}
|
90 |
+
|
91 |
//$content .= '<div class="sdm_post_meta_section"></div>';//TODO - Show post meta (category and tags)
|
92 |
+
$content .= '</div>'; //end .sdm_post_item_top_right
|
93 |
+
|
94 |
$content .= '</div>'; //end of .sdm_download_item_top
|
95 |
+
|
96 |
+
$content .= '<div style="clear:both;"></div>';
|
97 |
+
|
98 |
+
$content .= '</div>'; //end .sdm_post_item
|
99 |
|
100 |
return $content;
|
101 |
}
|