first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
/**
* WP File Download
*
* @package WP File Download
* @author Joomunited
* @version 1.0
*/
$content = '';
if (!empty($this->versions)) {
$content .= '<table>';
foreach ($this->versions as $meta_id => $file) {
$version = '1';
$content .= '<tr>';
$content .= '<td><a href="admin-ajax.php?action=wpfd&task=file.download&version=' . $version . '&id=' . $this->file_id . '&vid=' . $file['meta_id'] . '&catid='.$file['catid'].'" >';
$content .= date("Y M d", strtotime($file['created_time'])) . ' ';
$content .= '</a></td>';
$content .= '<td>' . wpfdHelperFiles::bytesToSize($file['size']) . '</td>';
$content .= '<td>'.
'<a data-id="' . $this->file_id . '" data-vid="' . $file['meta_id'] . '" data-catid="'.$file['catid'].'" href="#" class="restore"><i class="icon-restore"></i></a>';
if(apply_filters('wpfdAddonCategoryFrom',$file['catid']) == 'dropbox'){
$content .= '';
}else{
$content .= '<a data-id="' . $this->file_id . '" data-vid="' . $file['meta_id'] . '" data-catid="'.$file['catid'].'" href="#" class="trash"><i class="icon-trash"></i></a></td>';
}
$content .= '</tr>';
}
$content .= '</table>';
}
echo $content;